{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://weverlabs.com/schemas/first-paid-production-run-execution.schema.json",
  "title": "Wever Labs First Paid Production Run Execution",
  "type": "object",
  "required": [
    "schema_version",
    "mode"
  ],
  "properties": {
    "schema_version": {
      "const": "first_paid_production_run_execution.v1"
    },
    "mode": {
      "enum": [
        "read_first_paid_production_run",
        "read_operator_checklist",
        "prepare_run_envelope",
        "validate_run_envelope",
        "execute_paid_production_run",
        "execute_first_paid_run",
        "verify_completion",
        "build_customer_closeout_message",
        "read_execution_snapshots"
      ]
    },
    "rail_key": {
      "enum": [
        "packetops",
        "diligenceops"
      ]
    },
    "package_level": {
      "enum": [
        "entry",
        "standard",
        "pro"
      ]
    },
    "customer_account_id": {
      "type": "string"
    },
    "customer_name": {
      "type": "string"
    },
    "organization_name": {
      "type": "string"
    },
    "contact_email": {
      "type": "string"
    },
    "work_order_id": {
      "type": "string"
    },
    "work_order_scope": {
      "type": "string"
    },
    "production_run_id": {
      "type": "string"
    },
    "idempotency_key": {
      "type": "string"
    },
    "payment_reference": {
      "type": "string"
    },
    "checkout_reference": {
      "type": "string"
    },
    "invoice_reference": {
      "type": "string"
    },
    "payment_intent_id": {
      "type": "string"
    },
    "settlement_reference": {
      "type": "string"
    },
    "wallet_id": {
      "type": "string"
    },
    "mandate_reference": {
      "type": "string"
    },
    "amount_units": {
      "type": "number"
    },
    "rail_fee_units": {
      "type": "number"
    },
    "currency": {
      "type": "string"
    },
    "callback_url": {
      "type": "string"
    },
    "return_package_id": {
      "type": "string"
    },
    "receipt_id": {
      "type": "string"
    },
    "fee_event_id": {
      "type": "string"
    },
    "returned_fields": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "attestation": {
      "type": "string"
    },
    "environment": {
      "enum": [
        "production",
        "sandbox"
      ]
    },
    "persist": {
      "type": "boolean"
    },
    "agent_id": {
      "type": "string"
    },
    "agent_key": {
      "type": "string"
    },
    "tool_scope": {
      "type": "string"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    }
  },
  "additionalProperties": true
}