{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nukez-xyz/json-schema/nukez-xyz-upload-session-create-request-schema.json",
  "title": "UploadSessionCreateRequest",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nukez-xyz-openapi.json#/components/schemas/UploadSessionCreateRequest",
  "properties": {
    "receipt_id": {
      "type": "string",
      "minLength": 1,
      "title": "Receipt Id"
    },
    "files": {
      "items": {
        "$ref": "#/$defs/SandboxIngestFileSpec"
      },
      "type": "array",
      "maxItems": 100,
      "minItems": 1,
      "title": "Files"
    },
    "execution_mode": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Execution Mode",
      "description": "Must be 'sandbox' for this endpoint",
      "default": "sandbox"
    },
    "upload_token_ttl_sec": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 86400.0,
          "minimum": 60.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Upload Token Ttl Sec"
    }
  },
  "type": "object",
  "required": [
    "receipt_id",
    "files"
  ],
  "$defs": {
    "SandboxIngestFileSpec": {
      "properties": {
        "filename": {
          "type": "string",
          "maxLength": 255,
          "minLength": 1,
          "title": "Filename"
        },
        "content_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Content Type"
        },
        "expected_size_bytes": {
          "anyOf": [
            {
              "type": "integer",
              "exclusiveMinimum": 0.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Expected Size Bytes"
        },
        "expected_sha256": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 71,
              "minLength": 64
            },
            {
              "type": "null"
            }
          ],
          "title": "Expected Sha256"
        }
      },
      "type": "object",
      "required": [
        "filename"
      ],
      "title": "SandboxIngestFileSpec"
    }
  }
}