{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clipform-io/json-schema/clipform-io-node-media-schema.json",
  "title": "NodeMedia",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clipform-io-openapi.yml#/components/schemas/NodeMedia",
  "type": [
    "object",
    "null"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "maxLength": 36
    },
    "media_type": {
      "type": "string",
      "enum": [
        "video",
        "still"
      ]
    },
    "media_source": {
      "type": "string",
      "enum": [
        "uploaded",
        "recorded"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "ready",
        "processing",
        "errored"
      ]
    },
    "playback_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Playback ID (video only)",
      "maxLength": 64
    },
    "storage_path": {
      "type": [
        "string",
        "null"
      ],
      "description": "Stored file path (image only)",
      "maxLength": 2000
    },
    "background_color": {
      "type": [
        "string",
        "null"
      ],
      "description": "CSS color/gradient (still color)",
      "maxLength": 20
    },
    "audio_storage_path": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional audio for stills (auto-plays, no controls)",
      "maxLength": 2000
    },
    "duration": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Video duration in seconds",
      "format": "int32",
      "minimum": 0,
      "maximum": 2147483647
    },
    "video_width": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "minimum": 0,
      "maximum": 2147483647
    },
    "video_height": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "minimum": 0,
      "maximum": 2147483647
    },
    "options_reveal_seconds": {
      "type": [
        "number",
        "null"
      ],
      "description": "Seconds to wait after video starts before answer options appear (null = viewer default 3s, 0 = immediate)"
    },
    "transcription_status": {
      "type": "string",
      "enum": [
        "pending",
        "processing",
        "completed",
        "failed",
        "skipped"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "maxLength": 30
    }
  }
}