{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kinopipe-com/json-schema/kinopipe-com-direct-upload-response-schema.json",
  "title": "DirectUploadResponse",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kinopipe-com-openapi.json#/components/schemas/DirectUploadResponse",
  "type": "object",
  "required": [
    "ok",
    "upload"
  ],
  "properties": {
    "ok": {
      "const": true
    },
    "upload": {
      "type": "object",
      "required": [
        "uploadUrl",
        "mediaUrl",
        "method",
        "fields",
        "uploadExpiresAt",
        "mediaExpiresAt"
      ],
      "properties": {
        "objectKey": {
          "type": "string"
        },
        "uploadUrl": {
          "type": "string",
          "format": "uri",
          "description": "Signed storage form target valid for 15 minutes."
        },
        "mediaUrl": {
          "type": "string",
          "format": "uri",
          "description": "Signed input URL valid for 24 hours."
        },
        "method": {
          "const": "POST"
        },
        "fields": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Append every field to multipart form data before the file."
        },
        "headers": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "uploadExpiresAt": {
          "type": "string",
          "format": "date-time"
        },
        "mediaExpiresAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}