{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vaquill-ai/json-schema/vaquill-ai-upload-complete-request-schema.json",
  "title": "UploadCompleteRequest",
  "description": "Assemble the parts into the final object and start ingesting it.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vaquill-ai-uploads-api-openapi.yml#/components/schemas/UploadCompleteRequest",
  "properties": {
    "parts": {
      "items": {
        "$ref": "#/$defs/CompletedPart"
      },
      "type": "array",
      "minItems": 1,
      "title": "Parts",
      "description": "Every part that was uploaded, each with the ETag storage returned for it. All parts must be listed; a missing one is not detected until assembly fails."
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "parts"
  ],
  "$defs": {
    "CompletedPart": {
      "properties": {
        "partNumber": {
          "type": "integer",
          "maximum": 10000.0,
          "minimum": 1.0,
          "title": "Partnumber",
          "description": "The part number this ETag belongs to. Send each part number exactly once; a repeat silently changes which bytes are assembled."
        },
        "etag": {
          "type": "string",
          "maxLength": 255,
          "minLength": 1,
          "title": "Etag",
          "description": "The `ETag` header storage returned when this part was uploaded. Quoted or unquoted are both accepted, so it can be passed through from any HTTP client unchanged."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "partNumber",
        "etag"
      ],
      "title": "CompletedPart",
      "description": "One uploaded part, as R2 acknowledged it."
    }
  }
}