{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/skavio-eu/json-schema/skavio-eu-bulk-spec-schema.json",
  "title": "BulkSpec",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/skavio-eu-processing-openapi.json#/components/schemas/BulkSpec",
  "properties": {
    "operation": {
      "type": "string",
      "maxLength": 64,
      "title": "Operation"
    },
    "total_items": {
      "type": "integer",
      "maximum": 100000.0,
      "minimum": 1.0,
      "title": "Total Items"
    },
    "declared_input_bytes": {
      "type": "integer",
      "maximum": 1000000000000000.0,
      "minimum": 1.0,
      "title": "Declared Input Bytes"
    },
    "declared_output_bytes": {
      "type": "integer",
      "maximum": 1000000000000000.0,
      "minimum": 4096.0,
      "title": "Declared Output Bytes"
    },
    "declared_scratch_bytes": {
      "type": "integer",
      "maximum": 1000000000000000.0,
      "minimum": 4096.0,
      "title": "Declared Scratch Bytes"
    },
    "max_credits": {
      "type": "integer",
      "maximum": 1000000000.0,
      "minimum": 1.0,
      "title": "Max Credits"
    },
    "options": {
      "additionalProperties": true,
      "type": "object",
      "title": "Options"
    },
    "fields": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "maxItems": 30,
      "title": "Fields"
    },
    "instructions": {
      "type": "string",
      "maxLength": 1500,
      "title": "Instructions",
      "default": ""
    },
    "workflow_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Workflow Id"
    },
    "webhook_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Webhook Id"
    },
    "webhook_mode": {
      "type": "string",
      "enum": [
        "bulk",
        "items",
        "both"
      ],
      "title": "Webhook Mode",
      "default": "bulk"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "operation",
    "total_items",
    "declared_input_bytes",
    "declared_output_bytes",
    "declared_scratch_bytes",
    "max_credits"
  ]
}