-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
134 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters