Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris committed Aug 8, 2024
2 parents 6087e6f + 3c32380 commit fe324a3
Show file tree
Hide file tree
Showing 3 changed files with 134 additions and 1 deletion.
70 changes: 70 additions & 0 deletions document/v0.1.0/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://common.schemas.verida.io/document/v0.1.0/schema.json",
"title": "Document",
"titlePlural": "Documents",
"description": "A document",
"type": "object",
"appearance": {
"style": {
"color": "#FD4F64",
"icon": "./icon.svg"
}
},
"database": {
"name": "document",
"indexes": {
"name": ["name", "type", "insertedAt"],
"insertedAt": ["insertedAt"],
"source": ["sourceApplication", "sourceId"]
}
},
"layouts": {
"create": [
"name",
"description",
"uri"
],
"view": [
"name",
"description",
"type",
"size",
"insertedAt"
]
},
"allOf": [
{"$ref": "https://core.schemas.verida.io/base/v0.1.0/schema.json"},
{
"properties": {
"type": {
"title": "Type",
"type": "string",
"enum": ["txt", "pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "other"],
"description": "Type of the document"
},
"size": {
"title": "Size",
"type": "integer",
"description": "Size of the document in bytes"
},
"contentText": {
"title": "Content (Text)",
"type": "string",
"description": "Text content of the document"
},
"contentRaw": {
"title": "Content",
"type": "string",
"description": "Base64 encoded content of the document (optional)"
},
"uri": {
"title": "URI",
"type": "string",
"description": "External link to the document (optional)"
}
},
"required": ["name", "contentText", "type"]
}
]
}
63 changes: 63 additions & 0 deletions favourite/v0.1.0/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://common.schemas.verida.io/favourite/v0.1.0/schema.json",
"title": "Favourite",
"titlePlural": "Favourites",
"description": "Favourite links across all platforms",
"type": "object",
"appearance": {
"style": {
"color": "#FD4F64",
"icon": "./icon.svg"
}
},
"database": {
"name": "favourite",
"indexes": {
"name": ["name", "contentType", "insertedAt"],
"insertedAt": ["insertedAt"],
"source": ["sourceApplication", "sourceId"]
}
},
"layouts": {
"create": [
"name",
"description",
"uri"
],
"view": [
"name",
"favouriteType",
"contentType",
"description",
"uri",
"sourceApplication",
"sourceId",
"insertedAt"
]
},
"allOf": [
{"$ref": "https://core.schemas.verida.io/base/v0.1.0/schema.json"},
{
"properties": {
"favouriteType": {
"title": "Favourite Type",
"description": "Type of post",
"type": "string",
"enum": ["like", "favourite", "recommendation", "share"]
},
"contentType": {
"title": "Content Type",
"description": "Type of post",
"type": "string",
"enum": ["video", "audio", "document", "webpage"]
},
"uri": {
"title": "URI",
"type": "string"
}
},
"required": ["name", "favouriteType", "contentType", "uri"]
}
]
}
2 changes: 1 addition & 1 deletion social/post/v0.1.0/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"title": "Type",
"description": "Type of post",
"type": "string",
"enum": ["link", "status", "photo", "video", "event", "offer", "question", "note", "album", "life_event"]
"enum": ["link", "status", "photo", "video", "music", "event", "offer", "question", "note", "album", "life_event"]
},
"content": {
"title": "Content",
Expand Down

0 comments on commit fe324a3

Please sign in to comment.