{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:ausca:offer:transcription:output:v1",
  "type": "object",
  "additionalProperties": false,
  "required": ["schema", "source_digest", "provider_job_ref", "language_code", "text"],
  "properties": {
    "schema": {"const": "ausca.transcription.output.v1"},
    "source_digest": {"$ref": "urn:ausca:schema:sha256-digest:v1"},
    "provider_job_ref": {
      "type": "string",
      "pattern": "^runx:aws:transcription:runx-[0-9a-f]{64}$"
    },
    "language_code": {
      "type": "string",
      "pattern": "^[a-z]{2,3}(?:-[A-Z]{2})?$",
      "maxLength": 16
    },
    "text": {"type": "string", "minLength": 1, "maxLength": 8000000}
  }
}
