-
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
2 changed files
with
115 additions
and
0 deletions.
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,36 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://common.schemas.verida.io/data/base64/v0.1.0/schema.json", | ||
"title": "Data", | ||
"titlePlural": "Data", | ||
"description": "Base64 encoded data", | ||
"type": "object", | ||
"appearance": { | ||
"style": { | ||
"color": "#FD4F64", | ||
"icon": "./icon.svg" | ||
} | ||
}, | ||
"database": { | ||
"name": "data_base64", | ||
"indexes": {} | ||
}, | ||
"layouts": { | ||
"create": [ | ||
"_id", | ||
"data" | ||
], | ||
"view": [ | ||
"_id", | ||
"data" | ||
] | ||
}, | ||
"properties": { | ||
"data": { | ||
"title": "Data", | ||
"type": "string", | ||
"description": "Base64 encoded data" | ||
} | ||
}, | ||
"required": ["data"] | ||
} |
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,79 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://common.schemas.verida.io/file/v0.1.0/schema.json", | ||
"title": "File", | ||
"titlePlural": "Files", | ||
"description": "A file", | ||
"type": "object", | ||
"appearance": { | ||
"style": { | ||
"color": "#FD4F64", | ||
"icon": "./icon.svg" | ||
} | ||
}, | ||
"database": { | ||
"name": "file", | ||
"indexes": { | ||
"name": ["name", "type", "insertedAt"], | ||
"insertedAt": ["insertedAt"], | ||
"source": ["sourceApplication", "sourceId"] | ||
} | ||
}, | ||
"layouts": { | ||
"create": [ | ||
"name", | ||
"extension", | ||
"mimeType", | ||
"size", | ||
"summary", | ||
"uri" | ||
], | ||
"view": [ | ||
"name", | ||
"extension", | ||
"mimeType", | ||
"size", | ||
"fileDataId", | ||
"uri", | ||
"insertedAt" | ||
] | ||
}, | ||
"allOf": [ | ||
{"$ref": "https://core.schemas.verida.io/base/v0.1.0/schema.json"}, | ||
{ | ||
"properties": { | ||
"extension": { | ||
"title": "Extension", | ||
"type": "string", | ||
"description": "File extension of the document (ie: png)" | ||
}, | ||
"mimeType": { | ||
"title": "MIME Type", | ||
"type": "string", | ||
"description": "MIME type of the file" | ||
}, | ||
"size": { | ||
"title": "Size", | ||
"type": "integer", | ||
"description": "Size of the document in bytes" | ||
}, | ||
"contentText": { | ||
"title": "Content (Text)", | ||
"type": "string", | ||
"description": "Text content of the file (if relevant)" | ||
}, | ||
"fileDataId": { | ||
"title": "File Data ID", | ||
"type": "string", | ||
"description": "Reference to the base64 encoded content of the file (optional)" | ||
}, | ||
"uri": { | ||
"title": "URI", | ||
"type": "string", | ||
"description": "External link to the document (optional)" | ||
} | ||
}, | ||
"required": ["name", "extension", "mimeType", "size"] | ||
} | ||
] | ||
} |