{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/token-io/main/json-schema/token-io-io-token-proto-gateway-upload-document-request-schema.json",
  "title": "io.token.proto.gateway.UploadDocumentRequest",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/token-io-subtpp-api-openapi.yml#/components/schemas/io.token.proto.gateway.UploadDocumentRequest",
  "type": "object",
  "properties": {
    "file": {
      "$ref": "#/$defs/io.token.proto.common.blob.Blob.Payload"
    },
    "fileType": {
      "type": "string"
    }
  },
  "$defs": {
    "io.token.proto.common.blob.Blob.AccessMode": {
      "enum": [
        "DEFAULT",
        "PUBLIC"
      ],
      "default": "DEFAULT",
      "type": "string"
    },
    "io.token.proto.common.blob.Blob.Payload": {
      "type": "object",
      "properties": {
        "accessMode": {
          "$ref": "#/$defs/io.token.proto.common.blob.Blob.AccessMode"
        },
        "data": {
          "format": "byte",
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "ownerId": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      }
    }
  }
}