{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nukez-xyz/json-schema/nukez-xyz-finalize-upload-create-request-schema.json",
  "title": "FinalizeUploadCreateRequest",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nukez-xyz-openapi.json#/components/schemas/FinalizeUploadCreateRequest",
  "properties": {
    "receipt_id": {
      "type": "string",
      "minLength": 1,
      "title": "Receipt Id",
      "description": "Receipt ID bound to the locker"
    },
    "filenames": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "maxItems": 1000,
      "minItems": 1,
      "title": "Filenames",
      "description": "Filenames to confirm and finalize in one async job"
    },
    "auto_attest": {
      "type": "boolean",
      "title": "Auto Attest",
      "description": "If true, run attestation after confirm-batch completes",
      "default": false
    },
    "attest_sync": {
      "type": "boolean",
      "title": "Attest Sync",
      "description": "Reserved for compatibility; currently attestation runs synchronously inside the worker",
      "default": false
    },
    "push_attestation": {
      "type": "boolean",
      "title": "Push Attestation",
      "description": "If true and auto_attest=true, push attestation on-chain",
      "default": false
    },
    "run_inline": {
      "type": "boolean",
      "title": "Run Inline",
      "description": "Run job immediately in request thread (debug/dev only)",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "receipt_id",
    "filenames"
  ]
}