{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "Structured Media Builder: chunks", "type": "object", "properties": { "schema_version": { "const": "1.0" }, "media_id": { "type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$" }, "canonical_url": { "type": "string", "format": "uri", "pattern": "^https://" }, "language": { "type": "string", "minLength": 1 }, "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 }, "input_sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "chunks": { "type": "array", "items": { "type": "object", "properties": { "chunk_id": { "type": "string", "pattern": "^[a-zA-Z0-9][a-zA-Z0-9:._-]*$" }, "knowledge_id": { "type": "string", "pattern": "^[a-zA-Z0-9][a-zA-Z0-9:._-]*$" }, "version": { "type": "integer", "minimum": 1 }, "supersedes": { "type": "array", "items": { "type": "string", "pattern": "^[a-zA-Z0-9][a-zA-Z0-9:._-]*$" }, "minItems": 0 }, "title": { "type": "string", "minLength": 1 }, "heading_path": { "type": "array", "items": { "type": "string", "minLength": 1 }, "minItems": 1 }, "summary": { "type": "string", "minLength": 1 }, "tags": { "type": "array", "items": { "type": "string", "minLength": 1 }, "minItems": 0 }, "cue_ids": { "type": "array", "items": { "type": "string", "pattern": "^cue-[0-9]{6}$" }, "minItems": 1, "uniqueItems": true }, "media_id": { "type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$" }, "order": { "type": "integer", "minimum": 1 }, "content": { "type": "string", "minLength": 1 }, "start_seconds": { "type": "number", "minimum": 0 }, "end_seconds": { "type": "number", "exclusiveMinimum": 0 }, "speakers": { "type": "array", "items": { "type": "string", "minLength": 1 }, "minItems": 0 }, "citations": { "type": "array", "items": { "type": "object", "properties": { "media_id": { "type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$" }, "cue_id": { "type": "string", "pattern": "^cue-[0-9]{6}$" }, "start_seconds": { "type": "number", "minimum": 0 }, "end_seconds": { "type": "number", "exclusiveMinimum": 0 }, "transcript_url": { "type": "string", "format": "uri", "pattern": "^https://" }, "playback_url": { "anyOf": [ { "type": "string", "format": "uri", "pattern": "^https://" }, { "type": "null" } ] } }, "required": [ "media_id", "cue_id", "start_seconds", "end_seconds", "transcript_url", "playback_url" ], "additionalProperties": false }, "minItems": 1 } }, "required": [ "chunk_id", "knowledge_id", "version", "supersedes", "title", "heading_path", "summary", "tags", "cue_ids", "media_id", "order", "content", "start_seconds", "end_seconds", "speakers", "citations" ], "additionalProperties": false }, "minItems": 1 } }, "required": [ "schema_version", "media_id", "canonical_url", "language", "rights", "input_sha256", "chunks" ], "additionalProperties": false }