{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudinary/json-schema/cloudinary-aivideo-analysis-wrapped-response-schema.json",
  "title": "AIVideoAnalysisWrappedResponse",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudinary-ai-video-analysis-openapi.yml#/components/schemas/AIVideoAnalysisWrappedResponse",
  "type": "object",
  "required": [
    "request_id",
    "data"
  ],
  "properties": {
    "request_id": {
      "type": "string",
      "description": "Unique identifier of the API request, useful for support and debugging."
    },
    "data": {
      "$ref": "#/$defs/AIVideoAnalysisResponse"
    }
  },
  "$defs": {
    "AIVideoAnalysisResponse": {
      "type": "object",
      "required": [
        "job_id",
        "status"
      ],
      "properties": {
        "job_id": {
          "type": "string",
          "description": "Unique identifier of the analysis job, used to poll for the result."
        },
        "status": {
          "type": "string",
          "enum": [
            "pending",
            "completed",
            "failed"
          ],
          "description": "Current status of the analysis job."
        },
        "visual_transcription": {
          "$ref": "#/$defs/AIVideoAnalysisVisualTranscription"
        },
        "message": {
          "type": "string",
          "description": "Error message when the analysis has failed."
        }
      }
    },
    "AIVideoAnalysisVisualTranscription": {
      "type": [
        "object",
        "null"
      ],
      "description": "Details of the generated visual transcript file, stored as a raw asset in your product environment (present when the status is `completed`).",
      "properties": {
        "asset_id": {
          "type": "string",
          "description": "Cloudinary asset ID of the visual transcript file."
        },
        "public_id": {
          "type": "string",
          "description": "Cloudinary public ID of the visual transcript file."
        },
        "resource_type": {
          "type": "string",
          "description": "Cloudinary resource type of the visual transcript file."
        },
        "delivery_type": {
          "type": "string",
          "description": "Cloudinary delivery type of the visual transcript file."
        },
        "url": {
          "type": "string",
          "description": "HTTPS URL of the visual transcript file."
        }
      }
    }
  }
}