{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/animgen-com/json-schema/animgen-com-direct-upload-prepare-request-schema.json",
  "title": "DirectUploadPrepareRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/animgen-com-uploads-api-openapi.yml#/components/schemas/DirectUploadPrepareRequest",
  "properties": {
    "workspaceId": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Workspaceid"
    },
    "filename": {
      "type": "string",
      "maxLength": 240,
      "minLength": 1,
      "title": "Filename"
    },
    "mimeType": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1,
      "title": "Mimetype"
    },
    "byteSize": {
      "type": "integer",
      "exclusiveMinimum": 0.0,
      "title": "Bytesize"
    },
    "kind": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "uploaded_video",
            "uploaded_image",
            "uploaded_file"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Kind"
    },
    "temporary": {
      "type": "boolean",
      "title": "Temporary",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "filename",
    "mimeType",
    "byteSize"
  ]
}