{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/docspeed-ai/json-schema/docspeed-ai-synthesize-set-response-schema.json",
  "title": "SynthesizeSetResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/docspeed-ai-generation-api-openapi.yml#/components/schemas/SynthesizeSetResponse",
  "properties": {
    "documents": {
      "items": {
        "$ref": "#/$defs/SynthesizeSetDocument"
      },
      "type": "array",
      "title": "Documents"
    },
    "prompt": {
      "type": "string",
      "title": "Prompt"
    },
    "source_file_ids": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Source File Ids"
    },
    "metadata": {
      "additionalProperties": true,
      "type": "object",
      "title": "Metadata"
    }
  },
  "type": "object",
  "required": [
    "prompt"
  ],
  "$defs": {
    "FileRef": {
      "properties": {
        "file_id": {
          "type": "string",
          "title": "File Id"
        },
        "filename": {
          "type": "string",
          "title": "Filename"
        },
        "content_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Content Type"
        },
        "size_bytes": {
          "type": "integer",
          "title": "Size Bytes"
        },
        "created_at": {
          "type": "number",
          "title": "Created At"
        },
        "page_count": {
          "type": "integer",
          "title": "Page Count",
          "default": 1
        }
      },
      "type": "object",
      "required": [
        "file_id",
        "filename",
        "size_bytes",
        "created_at"
      ],
      "title": "FileRef"
    },
    "SynthesizePage": {
      "properties": {
        "page_index": {
          "type": "integer",
          "title": "Page Index"
        },
        "width": {
          "type": "integer",
          "title": "Width"
        },
        "height": {
          "type": "integer",
          "title": "Height"
        },
        "image_ref": {
          "type": "string",
          "title": "Image Ref"
        }
      },
      "type": "object",
      "required": [
        "page_index",
        "width",
        "height",
        "image_ref"
      ],
      "title": "SynthesizePage"
    },
    "SynthesizeSetDocument": {
      "properties": {
        "document_key": {
          "type": "string",
          "title": "Document Key"
        },
        "document_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Document Type"
        },
        "role": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Role"
        },
        "file": {
          "$ref": "#/$defs/FileRef"
        },
        "pages": {
          "items": {
            "$ref": "#/$defs/SynthesizePage"
          },
          "type": "array",
          "title": "Pages"
        },
        "task": {
          "type": "string",
          "enum": [
            "edit_document",
            "generate_po",
            "generate_related_document"
          ],
          "title": "Task"
        },
        "prompt": {
          "type": "string",
          "title": "Prompt"
        },
        "source_file_ids": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Source File Ids"
        },
        "input_file_ids": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Input File Ids"
        },
        "depends_on": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Depends On"
        },
        "matching_against": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Matching Against"
        },
        "matching_policy": {
          "additionalProperties": true,
          "type": "object",
          "title": "Matching Policy"
        },
        "metadata": {
          "additionalProperties": true,
          "type": "object",
          "title": "Metadata"
        }
      },
      "type": "object",
      "required": [
        "document_key",
        "file",
        "task",
        "prompt"
      ],
      "title": "SynthesizeSetDocument"
    }
  }
}