{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cloudflare/main/json-schema/cloudflare-consumer-input-schema.json",
  "title": "ConsumerInput",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudflare-consumers-api-openapi.yml#/components/schemas/ConsumerInput",
  "type": "object",
  "properties": {
    "script_name": {
      "type": "string",
      "description": "The Worker script name that will consume messages."
    },
    "settings": {
      "type": "object",
      "properties": {
        "batch_size": {
          "type": "integer",
          "description": "Maximum number of messages per batch."
        },
        "max_retries": {
          "type": "integer",
          "description": "Maximum number of retries for failed messages."
        },
        "max_wait_time_ms": {
          "type": "integer",
          "description": "Maximum time to wait for a full batch in milliseconds."
        }
      }
    }
  }
}