Files

176 lines
4.4 KiB
JSON
Raw Permalink Normal View History

2026-10-17 14:59:30 -06:00
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Structured Media Builder: ai-index",
"type": "object",
"properties": {
"schema_version": {
"const": "1.0"
},
"site_url": {
"type": "string",
"format": "uri",
"pattern": "^https://"
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"media_id": {
"type": "string",
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"title": {
"type": "string",
"minLength": 1
},
"description": {
"type": "string",
"minLength": 1
},
"kind": {
"enum": [
"audio",
"video"
]
},
"language": {
"type": "string",
"minLength": 1
},
"synthetic": {
"type": "boolean"
},
"canonical_url": {
"type": "string",
"format": "uri",
"pattern": "^https://"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"rights": {
"type": "object",
"properties": {
"statement": {
"type": "string",
"minLength": 1
},
"license": {
"anyOf": [
{
"type": "string",
"format": "uri",
"pattern": "^https://"
},
{
"type": "null"
}
]
},
"usage_info": {
"anyOf": [
{
"type": "string",
"format": "uri",
"pattern": "^https://"
},
{
"type": "null"
}
]
},
"redistribution_allowed": {
"type": "boolean"
}
},
"required": [
"statement",
"license",
"usage_info",
"redistribution_allowed"
],
"additionalProperties": false
},
"artifacts": {
"type": "object",
"properties": {
"media.json": {
"type": "string",
"format": "uri",
"pattern": "^https://"
},
"transcript.txt": {
"type": "string",
"format": "uri",
"pattern": "^https://"
},
"transcript.vtt": {
"type": "string",
"format": "uri",
"pattern": "^https://"
},
"transcript.json": {
"type": "string",
"format": "uri",
"pattern": "^https://"
},
"chunks.json": {
"type": "string",
"format": "uri",
"pattern": "^https://"
},
"qa.json": {
"type": "string",
"format": "uri",
"pattern": "^https://"
},
"chapters.json": {
"type": "string",
"format": "uri",
"pattern": "^https://"
},
"schema.jsonld": {
"type": "string",
"format": "uri",
"pattern": "^https://"
}
},
"required": [
"media.json",
"transcript.txt",
"transcript.vtt",
"transcript.json",
"chunks.json",
"qa.json",
"chapters.json",
"schema.jsonld"
],
"additionalProperties": false
}
},
"required": [
"media_id",
"title",
"description",
"kind",
"language",
"synthetic",
"canonical_url",
"updated_at",
"rights",
"artifacts"
],
"additionalProperties": false
},
"minItems": 1
}
},
"required": [
"schema_version",
"site_url",
"items"
],
"additionalProperties": false
}