{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bitnob/json-schema/bitnob-public-evaluate-request-schema.json",
  "title": "PublicEvaluateRequest",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/bitnob-swagger-openapi.yml#/components/schemas/PublicEvaluateRequest",
  "properties": {
    "actor_id": {
      "description": "Specific API key ID or user ID of the initiator.",
      "type": "string"
    },
    "actor_type": {
      "description": "Initiator class: apikey or session. Empty means rules on actor_type won't match.",
      "type": "string"
    },
    "amount": {
      "description": "Amount as a human-readable decimal in the asset's display unit.",
      "type": "string"
    },
    "amount_raw": {
      "description": "Amount as an integer in the asset's smallest base unit.",
      "type": "string"
    },
    "amount_usd": {
      "description": "Approximate USD value of the amount, for USD-threshold rules.",
      "type": "string"
    },
    "asset_symbol": {
      "description": "Symbol of the asset involved.",
      "type": "string"
    },
    "automation_rule_id": {
      "description": "Identifier of the automation rule driving the operation, when automated.",
      "type": "string"
    },
    "chain": {
      "description": "Blockchain the synthetic operation is on.",
      "type": "string"
    },
    "connection_id": {
      "description": "Identifier of the connection the operation flows through, if any.",
      "type": "string"
    },
    "destination_type": {
      "description": "Destination classification for the operation.",
      "type": "string"
    },
    "from_address": {
      "description": "Sender address of the synthetic operation.",
      "type": "string"
    },
    "is_automated": {
      "description": "Whether the operation is initiated by automation rather than a user.",
      "type": "boolean"
    },
    "network": {
      "description": "Network the synthetic operation is on.",
      "type": "string"
    },
    "operation_type": {
      "description": "Operation being evaluated (e.g. the transaction/operation type).",
      "type": "string"
    },
    "policy_id": {
      "description": "Evaluate against this specific policy (any state) instead of the currently-enforced one. Absent uses the enforced policy.",
      "type": "string"
    },
    "source_type": {
      "description": "Source classification of the funds/operation.",
      "type": "string"
    },
    "to_address": {
      "description": "Recipient address of the synthetic operation.",
      "type": "string"
    },
    "token_address": {
      "description": "Token contract address, for token operations.",
      "type": "string"
    },
    "tx_type": {
      "description": "Transaction type of the synthetic operation.",
      "type": "string"
    },
    "user_id": {
      "description": "Initiating user, for rules conditioning on the user.",
      "type": "string"
    },
    "vault_id": {
      "description": "Vault the synthetic operation targets.",
      "type": "string"
    },
    "wallet_id": {
      "description": "Wallet the synthetic operation targets.",
      "type": "string"
    }
  },
  "type": "object"
}