{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/docspeed-ai/json-schema/docspeed-ai-schema-auto-request-schema.json",
  "title": "SchemaAutoRequest",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/docspeed-ai-openapi.json#/components/schemas/SchemaAutoRequest",
  "properties": {
    "inputs": {
      "items": {
        "$ref": "#/$defs/InputSource"
      },
      "type": "array",
      "title": "Inputs"
    },
    "file_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "File Id"
    },
    "execution_mode": {
      "type": "string",
      "enum": [
        "async",
        "sync"
      ],
      "title": "Execution Mode",
      "default": "async"
    },
    "instructions": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Instructions"
    },
    "response_language": {
      "type": "string",
      "enum": [
        "en",
        "ar",
        "es",
        "pt",
        "fr",
        "de",
        "nl",
        "it",
        "hi",
        "ru"
      ],
      "title": "Response Language",
      "default": "en"
    }
  },
  "type": "object",
  "$defs": {
    "InputSource": {
      "properties": {
        "file_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "File Id"
        },
        "text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Text"
        },
        "markdown": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Markdown"
        },
        "image_base64": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Image Base64"
        },
        "pdf_base64": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Pdf Base64"
        },
        "filename": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Filename"
        }
      },
      "type": "object",
      "title": "InputSource"
    }
  }
}