appview/lexicons/my/spoor/content/media.json

54 lines
1.3 KiB
JSON
Raw Normal View History

2025-03-21 19:54:05 -07:00
{
"lexicon": 1,
"id": "my.spoor.content.media",
2025-03-21 19:54:05 -07:00
"defs": {
"main": {
"type": "record",
2025-03-21 19:54:05 -07:00
"key": "nsid",
"record": {
"type": "object",
"required": [ "titles", "lastUpdated" ],
"properties": {
"titles": {
"type": "array",
"minLength": 1,
"items": {
"type": "ref",
2025-05-08 14:25:29 -07:00
"ref": "my.spoor.content.title"
}
},
"durationData": {
"type": "union",
"refs": [
"my.spoor.content.media#television",
"my.spoor.content.media#book"
]
},
"posterImage": {
"type": "blob",
"accept": ["image/png", "image/jpeg"],
"maxSize": 1000000
},
"lastUpdated": {
"type": "string",
"format": "datetime",
"description": "Client-declared timestamp for when this activity was last updated"
2025-03-21 19:54:05 -07:00
}
}
}
},
"television": {
"type": "object",
"properties": {
"episodes": { "type": "integer", "minimum": 0}
}
},
"book": {
"type": "object",
"properties": {
"chapters": { "type": "integer", "minimum": 0}
}
}
}
}