Engineering manualSchema reference
Brand Studio media storage evaluation
Declared schema: schemas/media-storage-evaluation.schema.json
Source: schemas/media-storage-evaluation.schema.json. This is the complete declaration, including nested definitions and constraints. Its presence is not evidence that a runtime producer or consumer validates against it.
All schemas · Data structures and lineage
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://brand.mirrorfactory.ai/schemas/media-storage-evaluation.schema.json",
"title": "Brand Studio media storage evaluation",
"type": "object",
"additionalProperties": false,
"required": [
"schema_version",
"generated_at",
"policy",
"platforms",
"combined",
"lineage"
],
"properties": {
"schema_version": {
"const": "brand-studio-media-storage-evaluation/v1"
},
"generated_at": {
"type": "string",
"format": "date-time"
},
"policy": {
"const": "link_first"
},
"platforms": {
"type": "array",
"minItems": 6,
"maxItems": 6,
"items": {
"$ref": "#/$defs/platformEvaluation"
},
"allOf": [
{
"contains": {
"type": "object",
"properties": {
"platform": {
"const": "linkedin"
}
},
"required": [
"platform"
]
}
},
{
"contains": {
"type": "object",
"properties": {
"platform": {
"const": "youtube"
}
},
"required": [
"platform"
]
}
},
{
"contains": {
"type": "object",
"properties": {
"platform": {
"const": "instagram"
}
},
"required": [
"platform"
]
}
},
{
"contains": {
"type": "object",
"properties": {
"platform": {
"const": "facebook"
}
},
"required": [
"platform"
]
}
},
{
"contains": {
"type": "object",
"properties": {
"platform": {
"const": "x"
}
},
"required": [
"platform"
]
}
},
{
"contains": {
"type": "object",
"properties": {
"platform": {
"const": "tiktok"
}
},
"required": [
"platform"
]
}
}
]
},
"combined": {
"$ref": "#/$defs/totals"
},
"lineage": {
"type": "object",
"additionalProperties": false,
"required": [
"source_manifest_sha256",
"source_refs"
],
"properties": {
"source_manifest_sha256": {
"type": [
"string",
"null"
],
"pattern": "^[a-f0-9]{64}$"
},
"source_refs": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 800
},
"uniqueItems": true
}
}
}
},
"$defs": {
"breakdown": {
"type": "object",
"additionalProperties": false,
"required": [
"records",
"posters_and_images",
"captions_and_transcripts",
"optimized_proxies",
"originals"
],
"properties": {
"records": {
"type": "integer",
"minimum": 0
},
"posters_and_images": {
"type": "integer",
"minimum": 0
},
"captions_and_transcripts": {
"type": "integer",
"minimum": 0
},
"optimized_proxies": {
"type": "integer",
"minimum": 0
},
"originals": {
"type": "integer",
"minimum": 0
}
}
},
"archiveEstimate": {
"type": "object",
"additionalProperties": false,
"required": [
"known_bytes",
"estimated_bytes",
"unknown_item_count",
"total_expected_bytes",
"complete",
"confidence",
"methods",
"limitations"
],
"properties": {
"known_bytes": {
"type": "integer",
"minimum": 0
},
"estimated_bytes": {
"type": "integer",
"minimum": 0
},
"unknown_item_count": {
"type": "integer",
"minimum": 0
},
"total_expected_bytes": {
"type": "integer",
"minimum": 0
},
"complete": {
"type": "boolean"
},
"confidence": {
"enum": [
"high",
"medium",
"low",
"unknown",
"not_evaluated"
]
},
"methods": {
"type": "array",
"items": {
"enum": [
"measured_file_size",
"content_length",
"platform_format_metadata",
"observed_bitrate",
"platform_baseline",
"unknown"
]
},
"uniqueItems": true
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 500
},
"uniqueItems": true
}
},
"allOf": [
{
"if": {
"type": "object",
"properties": {
"unknown_item_count": {
"type": "integer",
"minimum": 1
}
},
"required": [
"unknown_item_count"
]
},
"then": {
"type": "object",
"properties": {
"complete": {
"const": false
}
}
}
}
]
},
"totals": {
"type": "object",
"additionalProperties": false,
"required": [
"accepted_content_count",
"video_count",
"current_stored_bytes",
"current_breakdown_bytes",
"full_archive_estimate"
],
"properties": {
"accepted_content_count": {
"type": "integer",
"minimum": 0
},
"video_count": {
"type": "integer",
"minimum": 0
},
"current_stored_bytes": {
"type": "integer",
"minimum": 0
},
"current_breakdown_bytes": {
"$ref": "#/$defs/breakdown"
},
"full_archive_estimate": {
"$ref": "#/$defs/archiveEstimate"
}
}
},
"platformEvaluation": {
"type": "object",
"additionalProperties": false,
"required": [
"platform",
"state",
"accepted_content_count",
"video_count",
"current_stored_bytes",
"current_breakdown_bytes",
"full_archive_estimate"
],
"properties": {
"platform": {
"enum": [
"linkedin",
"youtube",
"instagram",
"facebook",
"x",
"tiktok"
]
},
"state": {
"enum": [
"completed",
"partial",
"authentication_required",
"source_unavailable",
"not_selected",
"failed"
]
},
"accepted_content_count": {
"type": "integer",
"minimum": 0
},
"video_count": {
"type": "integer",
"minimum": 0
},
"current_stored_bytes": {
"type": "integer",
"minimum": 0
},
"current_breakdown_bytes": {
"$ref": "#/$defs/breakdown"
},
"full_archive_estimate": {
"$ref": "#/$defs/archiveEstimate"
}
}
}
}
}