{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/beatra-ai/json-schema/beatra-ai-upload-response-schema.json",
  "title": "UploadResponse",
  "description": "Returned by both /v1/uploads (201) and de-dup hit (200).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/beatra-ai-uploads-api-openapi.yml#/components/schemas/UploadResponse",
  "properties": {
    "object": {
      "type": "string",
      "const": "upload",
      "title": "Object",
      "default": "upload"
    },
    "artifact_id": {
      "type": "string",
      "title": "Artifact Id"
    },
    "cdn_url": {
      "type": "string",
      "title": "Cdn Url"
    },
    "mime_type": {
      "type": "string",
      "title": "Mime Type"
    },
    "media_type": {
      "type": "string",
      "enum": [
        "image",
        "video",
        "audio"
      ],
      "title": "Media Type"
    },
    "size_bytes": {
      "type": "integer",
      "title": "Size Bytes"
    },
    "width": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Width"
    },
    "height": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Height"
    },
    "duration_ms": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Duration Ms"
    },
    "checksum_sha256": {
      "type": "string",
      "title": "Checksum Sha256"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    }
  },
  "type": "object",
  "required": [
    "artifact_id",
    "cdn_url",
    "mime_type",
    "media_type",
    "size_bytes",
    "checksum_sha256",
    "created_at"
  ]
}