{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gen-pro/json-schema/gen-pro-direct-upload-schema.json",
  "title": "DirectUpload",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gen-pro-direct-upload-api-openapi.yml#/components/schemas/DirectUpload",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "key": {
      "type": "string"
    },
    "filename": {
      "type": "string"
    },
    "content_type": {
      "type": "string"
    },
    "byte_size": {
      "type": "integer"
    },
    "checksum": {
      "type": "string"
    },
    "signed_id": {
      "type": "string",
      "description": "Use this as `content_resource[file]` when creating a content resource."
    },
    "direct_upload": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "format": "uri",
          "description": "Pre-signed S3 URL. PUT the file here."
        },
        "headers": {
          "type": "object",
          "properties": {
            "Content-Type": {
              "type": "string"
            },
            "Content-MD5": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}