{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/docspeed-ai/json-schema/docspeed-ai-table-extract-request-schema.json",
  "title": "TableExtractRequest",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/docspeed-ai-openapi.json#/components/schemas/TableExtractRequest",
  "properties": {
    "input": {
      "$ref": "#/$defs/InputSource"
    },
    "execution_mode": {
      "type": "string",
      "enum": [
        "async",
        "sync"
      ],
      "title": "Execution Mode",
      "default": "async"
    },
    "grounding": {
      "type": "string",
      "enum": [
        "none",
        "table",
        "cell"
      ],
      "title": "Grounding",
      "default": "cell"
    },
    "detection_policy": {
      "type": "string",
      "enum": [
        "strict",
        "liberal"
      ],
      "title": "Detection Policy",
      "default": "strict"
    },
    "boundary_source": {
      "type": "string",
      "enum": [
        "detector",
        "layout",
        "none"
      ],
      "title": "Boundary Source",
      "default": "detector"
    }
  },
  "type": "object",
  "required": [
    "input"
  ],
  "$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"
    }
  }
}