{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudinary/json-schema/cloudinary-video-canvas-applet-details-wrapped-response-schema.json",
  "title": "VideoCanvasAppletDetailsWrappedResponse",
  "description": "A response envelope wrapping a single applet with its content.",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudinary-video-canvas-openapi.yml#/components/schemas/VideoCanvasAppletDetailsWrappedResponse",
  "type": "object",
  "required": [
    "request_id",
    "data"
  ],
  "properties": {
    "request_id": {
      "type": "string",
      "description": "A unique id for the request, useful when contacting support."
    },
    "data": {
      "$ref": "#/$defs/VideoCanvasAppletDetailsResponse"
    }
  },
  "$defs": {
    "VideoCanvasAppletDetailsResponse": {
      "type": "object",
      "description": "A saved applet with its full content.",
      "properties": {
        "id": {
          "type": "string",
          "description": "The server-generated, immutable applet id."
        },
        "name": {
          "type": "string",
          "description": "The applet's display name."
        },
        "description": {
          "type": "string",
          "description": "The applet's description."
        },
        "named_transformation": {
          "type": "string",
          "description": "The name of the named transformation that backs the applet."
        },
        "created_at": {
          "type": "integer",
          "format": "int64",
          "description": "Creation time, as a Unix timestamp in seconds."
        },
        "updated_at": {
          "type": "integer",
          "format": "int64",
          "description": "Last-modified time, as a Unix timestamp in seconds."
        },
        "inputs": {
          "type": "array",
          "description": "The applet's declared parameters.",
          "items": {
            "$ref": "#/$defs/VideoCanvasInputResponse"
          }
        },
        "blocks": {
          "type": "array",
          "description": "The nodes on the canvas.",
          "items": {
            "$ref": "#/$defs/VideoCanvasBlockResponse"
          }
        },
        "connections": {
          "type": "array",
          "description": "The directed edges between block ports.",
          "items": {
            "$ref": "#/$defs/VideoCanvasConnectionResponse"
          }
        },
        "outputs": {
          "type": "array",
          "description": "The applet's declared results.",
          "items": {
            "$ref": "#/$defs/VideoCanvasOutputResponse"
          }
        }
      }
    },
    "VideoCanvasBlockResponse": {
      "type": "object",
      "description": "A node on the canvas, as returned in a response.",
      "properties": {
        "id": {
          "type": "string",
          "description": "The client-supplied block id."
        },
        "kind": {
          "type": "string",
          "description": "The block kind (see the block payload for how kind is interpreted)."
        },
        "content": {
          "description": "Block content; mirrors the payload shape (an action-group array or a boundary reference object)."
        },
        "metadata": {
          "type": "object",
          "description": "Editor state, including the block's position."
        }
      }
    },
    "VideoCanvasConnectionResponse": {
      "type": "object",
      "description": "A directed edge between two block ports, as returned in a response.",
      "properties": {
        "id": {
          "type": "string",
          "description": "The client-supplied connection id."
        },
        "source_block_id": {
          "type": "string",
          "description": "The client-supplied id of the source block."
        },
        "source_port_id": {
          "type": "string",
          "description": "The output port on the source block."
        },
        "target_block_id": {
          "type": "string",
          "description": "The client-supplied id of the target block."
        },
        "target_port_id": {
          "type": "string",
          "description": "The input port on the target block."
        }
      }
    },
    "VideoCanvasInputResponse": {
      "type": "object",
      "description": "A declared parameter of the applet, as returned in a response.",
      "properties": {
        "id": {
          "type": "string",
          "description": "The client-supplied input id."
        },
        "kind": {
          "type": "string",
          "description": "The value type of the input.",
          "enum": [
            "video",
            "image",
            "text"
          ]
        },
        "state": {
          "type": "string",
          "description": "How the caller supplies the value.",
          "enum": [
            "required",
            "optional",
            "hidden"
          ]
        },
        "value": {
          "type": "string",
          "description": "The default or fixed value, if any."
        },
        "label": {
          "type": "string",
          "description": "A human-readable label for the input."
        }
      }
    },
    "VideoCanvasOutputResponse": {
      "type": "object",
      "description": "A declared result of the applet, as returned in a response.",
      "properties": {
        "id": {
          "type": "string",
          "description": "The client-supplied output id."
        },
        "kind": {
          "type": "string",
          "description": "The type of the result.",
          "enum": [
            "image",
            "video",
            "video_player",
            "raw"
          ]
        },
        "label": {
          "type": "string",
          "description": "A human-readable label for the output."
        }
      }
    }
  }
}