{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lensmor/json-schema/lensmor-action-precheck-request-schema.json",
  "title": "ActionPrecheckRequest",
  "description": "Read-only action eligibility and expected-credit evaluation request.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lensmor-actions-api-openapi.yml#/components/schemas/ActionPrecheckRequest",
  "type": "object",
  "required": [
    "action_type",
    "params"
  ],
  "properties": {
    "action_type": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100,
      "description": "Action to evaluate. The listed examples are handled explicitly. Other 1–100 character strings are accepted and return `allowed: false` with `reason_code: unsupported_action`."
    },
    "call_source": {
      "type": "string",
      "description": "Caller source label, typically `api` or `agent`.",
      "minLength": 1,
      "maxLength": 100
    },
    "params": {
      "type": "object",
      "additionalProperties": true,
      "description": "Action-specific identifiers and inputs, such as an `event_id`."
    },
    "locale": {
      "type": "string",
      "description": "Optional locale used for localized guidance or messages.",
      "minLength": 1,
      "maxLength": 20
    },
    "trace_id": {
      "type": "string",
      "description": "Optional caller-provided trace identifier for support correlation.",
      "minLength": 1,
      "maxLength": 200
    },
    "conversation_id": {
      "type": "string",
      "description": "Optional conversation identifier for agent workflows.",
      "minLength": 1,
      "maxLength": 200
    },
    "channel_message_id": {
      "type": "string",
      "description": "Optional channel message identifier for agent workflows.",
      "minLength": 1,
      "maxLength": 200
    }
  },
  "additionalProperties": false
}