Checks a complete proposed rule configuration and returns the changes it would make. Nothing changes until you apply the preview, and rule_configuration_version stays unchanged.Each rule replaces its stored definition, and omitting an existing rule archives it when the preview is applied. Start from the current configuration to keep existing rules intact. Include field_definitions for new event fields the proposed rules read, and state_definitions for any new counters or tags they write (definitions are shared across the organization; unrecognized event field reads return a validation error).Send the returned preview_token and request_hash to Apply a rule-configuration change set. Only the caller who created the preview can apply it, and it must be applied before expires_at.
See Preview and apply for preparing and reviewing a configuration change.
Authorizations
Authorization
string
header
default:sk_...
required
Send your API key as Authorization: Bearer <key>.
Path Parameters
program_id
string<uuid>
required
The program's id.
Body
application/json
Complete proposed rule configuration
The complete rule configuration you want for a program. Scrip compares it with the live configuration and returns the changes. Nothing is saved.
base_rule_configuration_version
integer
required
Current rule_configuration_version from the configuration read endpoint.
Required range: x >= 1
Example:
4
rule_sets
object[]
required
Complete desired rule-set and non-archived rule configuration in execution order.
Minimum array length: 1
A rule set in a proposed configuration, with its rules. Use id for an existing set or client_ref for a new one.
Who is making the change, as recorded with the preview.
Show child attributes
state_definitions
object[]
Counters and tags to save with the rule change.
Show child attributes
warnings
object[]
Non-blocking advisories found while validating the proposed configuration.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Scrip Docs","description":"The operating system for rewards programs. Build and run card rewards, customer loyalty, referral programs, and marketplace incentives with Scrip's API, dashboard, and double-entry ledger.","colors":{"primary":"#FF4F0C","light":"#FF4F0C","dark":"#FF4F0C"},"logo":{"light":"https://mintcdn.com/scrip/T3s-FRIg6XhFktLB/logo/scrip-logo-light.svg?fit=max\u0026auto=format\u0026n=T3s-FRIg6XhFktLB\u0026q=85\u0026s=b63bc2ffbb52895c7ca415bc1c30e9c6","dark":"https://mintcdn.com/scrip/T3s-FRIg6XhFktLB/logo/scrip-logo-dark.svg?fit=max\u0026auto=format\u0026n=T3s-FRIg6XhFktLB\u0026q=85\u0026s=e28fa32a605d1b2150fa46387793366b"},"favicon":"https://mintcdn.com/scrip/3oFesJ41GdpKauvv/logo/scrip-favicon.svg?fit=max\u0026auto=format\u0026n=3oFesJ41GdpKauvv\u0026q=85\u0026s=20c277b33f9cf71c42c42c8549b18eb4","api":{"openapi":["openapi.json"],"examples":{"languages":["curl","python","javascript","go"]}},"navbar":{"links":[{"href":"mailto:hello@scrip.dev","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.scrip.dev"}},"footer":{},"fonts":{"heading":{"family":"Geist"},"body":{"family":"Geist"}},"contextual":{"options":["copy","view","claude","mcp","cursor","vscode"],"display":"header"},"interaction":{"drilldown":false},"markdown":{"instructions":["Start with https://docs.scrip.dev/agents.md and https://docs.scrip.dev/which-endpoints-you-need.md. Your application only needs a few API calls as users earn and spend (`POST /v1/events`, balance/history reads, and redemptions); program setup happens in the dashboard or setup scripts.","Use `https://api-sandbox.scrip.dev` with `sk_test_` keys for testing, and `https://api.scrip.dev` with `sk_live_` keys for production. Keep API keys on your server.","Pass your own user ID as `external_id` on events and prefix it with `ext:` in participant URL paths (e.g., `GET /v1/participants/ext:user_123/balances`). By default (`on_unknown_participant: CREATE`), the first event for a new `external_id` creates and enrolls the participant automatically.","Events process asynchronously: `POST /v1/events` returns `202 Accepted` when queued, and rules evaluate in the background. Pass an `idempotency_key` (such as an order ID) on every event, and wait for the `event.completed` webhook or poll `GET /v1/events/{event_id}` before reading updated balances.","Connect the hosted MCP server at https://mcp.scrip.dev/mcp (OAuth, defaults to Sandbox) to inspect programs, validate and simulate rules, and trace events. Append `.md` to any docs URL for Markdown, or fetch https://docs.scrip.dev/openapi.json for full endpoint schemas."]},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"scrip","hasAudioNarration":false,"actualSubdomain":"scrip","customDomains":["docs.scrip.dev"],"gitSource":{"type":"github","owner":"scrip-dev","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b03d4784ca26305da2ba9c6","clientVersion":"0.0.4286","searchFilterCounts":[{"language":"default","tag":"Endpoints","count":157},{"language":"default","tag":"API Reference","count":153},{"language":"default","tag":"Guides","count":41},{"language":"default","tag":"Rules","count":24},{"language":"default","tag":"Groups","count":14},{"language":"default","tag":"Participants","count":12},{"language":"default","tag":"Programs","count":12},{"language":"default","tag":"Webhooks","count":12},{"language":"default","tag":"Gift cards","count":11},{"language":"default","tag":"Reporting","count":11}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":".sidebar-group button[aria-label^=\"Toggle\"]{justify-content:space-between}div:has(>.sidebar-group-header)+div:has(>.sidebar-group-header){border-top:1px solid var(--border-color, #e5e7eb);margin-top:1rem!important;padding-top:1rem}.dark div:has(>.sidebar-group-header)+div:has(>.sidebar-group-header){border-color:var(--border-color, #374151)}"}]}
{"page":{"pagePath":"api-reference/rules/preview-rule-configuration","slug":"/api-reference/rules/preview-rule-configuration","pageMetadata":{"title":"Preview a rule-configuration change set","openapi":"POST /v1/programs/{program_id}/rule-configuration/preview","description":"Preview a proposed rule configuration and return its planned changes, warnings, and preview token.","href":"/api-reference/rules/preview-rule-configuration"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Preview a proposed rule configuration and return its planned changes, warnings, and preview token.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,..._provideComponents(),...props.components},{Note}=_components;if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Checks a complete proposed rule configuration and returns the changes it would make. Nothing changes until you apply the preview, and `,_jsx(_components.code,{children:`rule_configuration_version`}),` stays unchanged.`]}),`\n`,_jsxs(_components.p,{children:[`Each rule replaces its stored definition, and omitting an existing rule archives it when the preview is applied. Start from `,_jsx(_components.a,{href:`/api-reference/rules/get-rule-configuration`,children:`the current configuration`}),` to keep existing rules intact. Include `,_jsx(_components.code,{children:`field_definitions`}),` for new event fields the proposed rules read, and `,_jsx(_components.code,{children:`state_definitions`}),` for any new counters or tags they write (definitions are shared across the organization; unrecognized event field reads return a validation error).`]}),`\n`,_jsxs(_components.p,{children:[`Send the returned `,_jsx(_components.code,{children:`preview_token`}),` and `,_jsx(_components.code,{children:`request_hash`}),` to `,_jsx(_components.a,{href:`/api-reference/rules/apply-rule-configuration`,children:`Apply a rule-configuration change set`}),`. Only the caller who created the preview can apply it, and it must be applied before `,_jsx(_components.code,{children:`expires_at`}),`.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/guides/managing-rule-configuration#preview-and-apply`,children:`Preview and apply`}),` for preparing and reviewing a configuration change.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Preview a rule-configuration change set","openapi":"POST /v1/programs/{program_id}/rule-configuration/preview","description":"Preview a proposed rule configuration and return its planned changes, warnings, and preview token.","href":"/api-reference/rules/preview-rule-configuration"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Preview a proposed rule configuration and return its planned changes, warnings, and preview token.","operationId":"previewRuleConfiguration","parameters":["27b9f1cc-e6af-41df-9c19-1c6ab87e878d"],"requestBody":"8670032c-92f2-4b5d-9e74-bb5e35395473","responses":{"200":"c190644a-9dcb-4d3c-9792-59a7c1e795c4","400":"52f47bf3-9e39-4dde-8484-91322b9de5bd","401":"da530be2-18a3-46b3-9072-67fadd39a960","403":"2a9f6463-12ca-46c6-9cdc-23ba28479253","404":"7a33c339-a780-44f5-b953-bb2730dff9e8","409":"3c2352eb-088b-4079-bd7a-6e44290133e5","429":"6bba78a8-6514-4a87-95af-fc557301370f","500":"4904cea1-55cb-4aee-b5d1-65de2b937578"},"security":["9fac2388-aa7d-4f1e-b130-11c312d3d1ee"],"summary":"Preview an atomic rule-configuration change set","tags":["Rules"],"x-scrip-idempotency":"none","method":"post","type":"path","servers":["121dbe0f-d156-4944-97e6-6130832ce07d","507f9d07-4c8d-4877-8525-1f10e203f59b"],"path":"/v1/programs/{program_id}/rule-configuration/preview","baseUrlOptions":["https://api.scrip.dev","https://api-sandbox.scrip.dev"],"title":"Preview an atomic rule-configuration change set","codeSamples":[],"requestExampleLanguages":["bash","python","javascript","go"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"27b9f1cc-e6af-41df-9c19-1c6ab87e878d":{"description":"The program's id.","example":"8f14e45f-ceea-4e70-9df8-2a7d1b3c9f01","in":"path","name":"program_id","required":true,"schema":{"format":"uuid","type":"string","isRequired":true,"description":"The program's id.","uniqueKey":"","typeLabel":"string\u003cuuid>"}}},"requestBody":{"content":{"application/json":{"example":{"base_rule_configuration_version":4,"rule_sets":[{"id":"d4735e3a-265e-4f16-b1a5-4c8e9d6f0a04","key":"default","name":"Default","rules":[{"actions":[{"amount":"${{ event.amount * 10 }}","asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","type":"CREDIT"}],"budgets":[],"condition":"event.type == 'purchase'","id":"c9f0f895-fb98-4b39-9f86-1e5a0d3e2b03","name":"Earn points on purchases","status":"ACTIVE","stop_after_match":false}]}]},"schema":{"additionalProperties":false,"description":"The complete rule configuration you want for a program. Scrip compares it with the live configuration and returns the changes. Nothing is saved.","properties":{"base_rule_configuration_version":{"description":"Current rule_configuration_version from the configuration read endpoint.","examples":[4],"minimum":1,"type":"integer","isRequired":true,"uniqueKey":"base_rule_configuration_version","typeLabel":"integer"},"rule_sets":{"description":"Complete desired rule-set and non-archived rule configuration in execution order.","examples":[[{"id":"d4735e3a-265e-4f16-b1a5-4c8e9d6f0a04","key":"default","name":"Default","rules":[{"actions":[{"amount":"${{ event.amount * 10 }}","asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","type":"CREDIT"}],"budgets":[],"condition":"event.type == 'purchase'","id":"c9f0f895-fb98-4b39-9f86-1e5a0d3e2b03","name":"Earn points on purchases","status":"ACTIVE","stop_after_match":false}]}]],"items":{"oneOf":[{"type":"object","description":"A rule set in a proposed configuration, with its rules. Use `id` for an existing set or `client_ref` for a new one.","required":["key","name","rules","id"],"properties":{"id":{"description":"Stable ID for an existing rule set. Supply exactly one of id or client_ref.","examples":["d4735e3a-265e-4f16-b1a5-4c8e9d6f0a04"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.id","typeLabel":"string\u003cuuid>"},"key":{"description":"Immutable program-scoped key. Existing sets must repeat their current key.","examples":["seasonal"],"minLength":1,"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.key","typeLabel":"string"},"name":{"description":"Operator-facing display name.","examples":["Seasonal Promotions"],"maxLength":255,"minLength":1,"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.name","typeLabel":"string"},"rules":{"description":"Complete desired ACTIVE and SUSPENDED rule list for this set. Omitted existing rules are archived.","items":{"oneOf":[{"type":"object","description":"A rule in a proposed configuration. Use `id` for an existing rule or `client_ref` for a new one.","required":["actions","budgets","condition","name","status","stop_after_match","id"],"properties":{"actions":{"description":"Complete non-empty action list.","items":{"oneOf":[{"type":"object","title":"CREDIT action","description":"Credit an asset to the target. `reference_id`, `expires_at`, `expires_in`, `matures_at`, and `matures_in` require a `LOT`-mode asset (`expires_at`/`expires_in` and `matures_at`/`matures_in` are each mutually exclusive).","required":["type","asset_id","amount"],"example":{"amount":"${{ event.amount * 0.03 }}","asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","description":"Purchase reward","expires_in":"365d","matures_in":"30d","type":"CREDIT"},"properties":{"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.amount","typeLabel":"string"},"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.asset_id","typeLabel":"string\u003cuuid>"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["CREDIT"],"examples":["CREDIT"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.description","typeLabel":"string"},"expires_at":{"description":"Expiration timestamp (RFC 3339) or ${{ }} CEL expression (LOT-mode assets on CREDIT, or SET_TIER). Mutually exclusive with expires_in.","examples":["2027-12-31T23:59:59Z"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.expires_at","typeLabel":"string"},"expires_in":{"description":"Expiration duration such as \"365d\" or ${{ }} CEL expression (LOT-mode assets on CREDIT, or SET_TIER). Mutually exclusive with expires_at.","examples":["365d"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.expires_in","typeLabel":"string"},"matures_at":{"description":"Vesting timestamp (RFC 3339) or ${{ }} CEL expression when credited rewards become spendable (LOT-mode assets on CREDIT only). Mutually exclusive with matures_in.","examples":["2027-12-31T23:59:59Z"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.matures_at","typeLabel":"string"},"matures_in":{"description":"Vesting duration such as \"30d\" or ${{ }} CEL expression when credited rewards become spendable (LOT-mode assets on CREDIT only). Mutually exclusive with matures_at.","examples":["30d"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.matures_in","typeLabel":"string"},"reference_id":{"description":"Correlation ID that links a hold to its release or pending rewards to their settlement (LOT-mode assets only). Static string or ${{ }} CEL expression.","examples":["${{ event.authorization_id }}"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.reference_id","typeLabel":"string"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0","typeLabel":"CREDIT action · object"},{"type":"object","title":"DEBIT action","description":"Debit an asset from the target. Requires asset_id and a positive amount. allow_negative is accepted only on DEBIT, and only when the target is not a PROGRAM wallet.","required":["type","asset_id","amount"],"example":{"amount":"50","asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","type":"DEBIT"},"properties":{"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.amount","typeLabel":"string"},"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.asset_id","typeLabel":"string\u003cuuid>"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["DEBIT"],"examples":["DEBIT"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"allow_negative":{"description":"Allow debit to overdraw and create a negative balance when funds are insufficient.\nDEBIT only. Defaults to false.","examples":[false],"type":"boolean","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.allow_negative","typeLabel":"boolean"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.description","typeLabel":"string"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1","typeLabel":"DEBIT action · object"},{"type":"object","title":"HOLD action","description":"Move value from `AVAILABLE` to `HELD`. Use `reference_id` to link the hold to a later `RELEASE`; this requires a LOT-mode asset.","required":["type","asset_id","amount"],"example":{"amount":"25","asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","reference_id":"${{ event.authorization_id }}","type":"HOLD"},"properties":{"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.2.amount","typeLabel":"string"},"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.2.asset_id","typeLabel":"string\u003cuuid>"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["HOLD"],"examples":["HOLD"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.2.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.2.description","typeLabel":"string"},"reference_id":{"description":"Correlation ID that links a hold to its release or pending rewards to their settlement (LOT-mode assets only). Static string or ${{ }} CEL expression.","examples":["${{ event.authorization_id }}"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.2.reference_id","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.2","typeLabel":"HOLD action · object"},{"type":"object","title":"RELEASE action","description":"Release held funds back to the available bucket. Provide amount for a partial release, or reference_id to release the correlated hold. At least one of the two is required.","required":["type","asset_id","amount"],"example":{"asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","reference_id":"${{ event.authorization_id }}","type":"RELEASE"},"properties":{"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.3.amount","typeLabel":"string"},"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.3.asset_id","typeLabel":"string\u003cuuid>"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["RELEASE"],"examples":["RELEASE"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.3.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.3.description","typeLabel":"string"},"reference_id":{"description":"Correlation ID that links a hold to its release or pending rewards to their settlement (LOT-mode assets only). Static string or ${{ }} CEL expression.","examples":["${{ event.authorization_id }}"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.3.reference_id","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.3","typeLabel":"RELEASE action · object"},{"type":"object","title":"RELEASE action","description":"Release held funds back to the available bucket. Provide amount for a partial release, or reference_id to release the correlated hold. At least one of the two is required.","required":["type","asset_id","reference_id"],"example":{"asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","reference_id":"${{ event.authorization_id }}","type":"RELEASE"},"properties":{"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.4.asset_id","typeLabel":"string\u003cuuid>"},"reference_id":{"description":"Correlation ID that links a hold to its release or pending rewards to their settlement (LOT-mode assets only). Static string or ${{ }} CEL expression.","examples":["${{ event.authorization_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.4.reference_id","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["RELEASE"],"examples":["RELEASE"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.4.amount","typeLabel":"string"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.4.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.4.description","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.4","typeLabel":"RELEASE action · object"},{"type":"object","title":"FORFEIT action","description":"Forfeit an amount out of the participant's balance. Requires asset_id and a positive amount. reference_id is not supported.","required":["type","asset_id","amount"],"example":{"amount":"10","asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","type":"FORFEIT"},"properties":{"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.5.amount","typeLabel":"string"},"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.5.asset_id","typeLabel":"string\u003cuuid>"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["FORFEIT"],"examples":["FORFEIT"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.5.type","typeLabel":"enum\u003cstring>"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.5.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.5.description","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.5","typeLabel":"FORFEIT action · object"},{"type":"object","title":"VOID_PENDING action","description":"Cancel pending rewards credited into `HELD` for `reference_id` and return the value to its source (`LOT`-mode assets only; omit `amount` to cancel all pending rewards under `reference_id`, or pass a positive amount to cancel part newest-first).","required":["type","asset_id","reference_id"],"example":{"asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","reference_id":"${{ event.authorization_id }}","type":"VOID_PENDING"},"properties":{"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.6.asset_id","typeLabel":"string\u003cuuid>"},"reference_id":{"description":"Correlation ID that links a hold to its release or pending rewards to their settlement (LOT-mode assets only). Static string or ${{ }} CEL expression.","examples":["${{ event.authorization_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.6.reference_id","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["VOID_PENDING"],"examples":["VOID_PENDING"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.6.type","typeLabel":"enum\u003cstring>"},"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.6.amount","typeLabel":"string"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.6.description","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.6","typeLabel":"VOID_PENDING action · object"},{"type":"object","title":"TAG action","description":"Add a tag to the target. tag is a literal name; it does not accept ${{ }} expressions.","required":["type","tag"],"example":{"tag":"VIP","type":"TAG"},"properties":{"tag":{"description":"Tag name to add (TAG) or remove (UNTAG)","examples":["VIP"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.tag","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["TAG"],"examples":["TAG"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.type","typeLabel":"enum\u003cstring>"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7","typeLabel":"TAG action · object"},{"type":"object","title":"UNTAG action","description":"Remove a tag from the target. tag is a literal name; it does not accept ${{ }} expressions.","required":["type","tag"],"example":{"tag":"VIP","type":"UNTAG"},"properties":{"tag":{"description":"Tag name to add (TAG) or remove (UNTAG)","examples":["VIP"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.tag","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["UNTAG"],"examples":["UNTAG"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.type","typeLabel":"enum\u003cstring>"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8","typeLabel":"UNTAG action · object"},{"type":"object","title":"COUNTER action","description":"Increment or set a counter on the target. operation defaults to INCREMENT; SET assigns value. key is a literal name; value is a static number or a ${{ }} expression resolving to one.","required":["type","key","value"],"example":{"key":"purchase_count","type":"COUNTER","value":"1"},"properties":{"key":{"description":"Counter or attribute key name","examples":["purchase_count"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.key","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["COUNTER"],"examples":["COUNTER"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.type","typeLabel":"enum\u003cstring>"},"value":{"description":"Numeric string (e.g. \"1\" or \"-1\") or a ${{ }} CEL expression that evaluates to a number.","examples":["1"],"pattern":"^(?:[-+]?(?:[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+)(?:[eE][-+]?[0-9]+)?|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*)$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.value","typeLabel":"string"},"operation":{"default":"INCREMENT","description":"How COUNTER changes the value. INCREMENT adds value; SET assigns it. Defaults to INCREMENT.","enum":["INCREMENT","SET"],"examples":["SET"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.operation","typeLabel":"enum\u003cstring>"},"reset_after":{"description":"Auto-reset duration for COUNTER actions. The counter resets to 0 after this duration elapses since the last reset; w, d, h, m or s units (e.g. \"30d\", \"720h\"). Send an empty string to remove auto-reset.","examples":["30d"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.reset_after","typeLabel":"string"},"reset_period":{"description":"Calendar reset for COUNTER actions. Uses the event timestamp; defaults to UTC. Mutually exclusive with reset_after. NONE removes the calendar reset. Changing type or timezone starts an empty series.","properties":{"type":{"description":"DAY, Monday-based WEEK, MONTH, or NONE to remove the calendar reset.","enum":["DAY","WEEK","MONTH","NONE"],"examples":["MONTH"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.reset_period.type","typeLabel":"enum\u003cstring>"},"timezone":{"description":"IANA time zone used for period boundaries. Omit for UTC.","examples":["America/Chicago"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.reset_period.timezone","typeLabel":"string"}},"required":["type"],"type":"object","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.reset_period","typeLabel":"object"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9","typeLabel":"COUNTER action · object"},{"type":"object","title":"SET_ATTRIBUTE action","description":"Set an attribute on the target. key is a literal name; value is a literal string or a ${{ }} expression.","required":["type","key","value"],"example":{"key":"region","type":"SET_ATTRIBUTE","value":"${{ event.region }}"},"properties":{"key":{"description":"Counter or attribute key name","examples":["purchase_count"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.key","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["SET_ATTRIBUTE"],"examples":["SET_ATTRIBUTE"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.type","typeLabel":"enum\u003cstring>"},"value":{"description":"COUNTER: static numeric string or ${{ }} CEL expression. SET_ATTRIBUTE: literal string or ${{ }} CEL expression.","examples":["1"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.value","typeLabel":"string"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10","typeLabel":"SET_ATTRIBUTE action · object"},{"type":"object","title":"SET_TIER action","description":"Assign a tier level to the target. Use literal keys for `tier` and `level`. Set `expires_in` (a duration such as `90d`) or `expires_at` (an RFC 3339 timestamp) to give the assignment an expiration, not both.","required":["type","tier","level"],"example":{"level":"gold","tier":"status","type":"SET_TIER"},"properties":{"level":{"description":"Tier level within the track (e.g. \"gold\", \"platinum\")","examples":["gold"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.level","typeLabel":"string"},"tier":{"description":"Tier track name (e.g. \"status\", \"loyalty\")","examples":["status"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.tier","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["SET_TIER"],"examples":["SET_TIER"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.type","typeLabel":"enum\u003cstring>"},"expires_at":{"description":"Expiration timestamp (RFC 3339) or ${{ }} CEL expression (LOT-mode assets on CREDIT, or SET_TIER). Mutually exclusive with expires_in.","examples":["2027-12-31T23:59:59Z"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.expires_at","typeLabel":"string"},"expires_in":{"description":"Expiration duration such as \"365d\" or ${{ }} CEL expression (LOT-mode assets on CREDIT, or SET_TIER). Mutually exclusive with expires_at.","examples":["365d"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.expires_in","typeLabel":"string"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11","typeLabel":"SET_TIER action · object"},{"type":"object","title":"SCHEDULE_EVENT action","description":"Schedule a delayed follow-up event for the participant, another targeted participant, or the program (`target.type: PROGRAM`). `event_type` names the event, and rules read it as `event.type`. String values in `event_data` may include `${{ }}` CEL expressions evaluated when this rule runs. `event_data` must not contain a `type` key.","required":["type","delay","event_type"],"example":{"delay":"24h","event_data":{"reason":"follow_up"},"event_type":"check_status","type":"SCHEDULE_EVENT"},"properties":{"delay":{"description":"How long to wait before firing the scheduled event; w, d, h, m or s units (e.g. \"24h\", \"7d\"). SCHEDULE_EVENT only.","examples":["24h"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.delay","typeLabel":"string"},"event_type":{"description":"The name of the event the action sends, such as `check_status`: 1 to 255 characters with no leading or trailing whitespace, a literal string. Rules read it as `event.type`. Required when you create or change the rule.","examples":["check_status"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.event_type","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["SCHEDULE_EVENT"],"examples":["SCHEDULE_EVENT"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.type","typeLabel":"enum\u003cstring>"},"event_data":{"description":"Event data submitted when the action fires. String values may embed ${{ }} CEL expressions\n(at any nesting depth, values only), resolved against the triggering rule's context when the action executes.\nIt must not contain a `type` key; send the name as event_type.","type":"object","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.event_data","typeLabel":"object"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12","typeLabel":"SCHEDULE_EVENT action · object"},{"type":"object","title":"BROADCAST action","description":"Send an event to every participant in the program. Delivery starts without a delay and runs asynchronously. `event_type` names the event, and rules read it as `event.type`. `event_data` must not contain a `type` key. Do not send `target`; the broadcast already reaches everyone. Use `SCHEDULE_EVENT` for a delayed event.","required":["type","event_type"],"example":{"event_data":{"season":"2027"},"event_type":"season_reset","type":"BROADCAST"},"properties":{"event_type":{"description":"The name of the event the action sends, such as `check_status`: 1 to 255 characters with no leading or trailing whitespace, a literal string. Rules read it as `event.type`. Required when you create or change the rule.","examples":["check_status"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.13.event_type","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["BROADCAST"],"examples":["BROADCAST"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.13.type","typeLabel":"enum\u003cstring>"},"event_data":{"description":"Event data submitted when the action fires. String values may embed ${{ }} CEL expressions\n(at any nesting depth, values only), resolved against the triggering rule's context when the action executes.\nIt must not contain a `type` key; send the name as event_type.","type":"object","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.13.event_data","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.13","typeLabel":"BROADCAST action · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions.items.[INDEX]","typeLabel":"CREDIT action · object · DEBIT action · object · HOLD action · object · RELEASE action · object · RELEASE action · object · FORFEIT action · object · VOID_PENDING action · object · TAG action · object · UNTAG action · object · COUNTER action · object · SET_ATTRIBUTE action · object · SET_TIER action · object · SCHEDULE_EVENT action · object · BROADCAST action · object"},"minItems":1,"type":"array","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.actions","typeLabel":"CREDIT action · object · DEBIT action · object · HOLD action · object · RELEASE action · object · RELEASE action · object · FORFEIT action · object · VOID_PENDING action · object · TAG action · object · UNTAG action · object · COUNTER action · object · SET_ATTRIBUTE action · object · SET_TIER action · object · SCHEDULE_EVENT action · object · BROADCAST action · object[]"},"budgets":{"description":"Complete budget list. Send an empty array for no budgets.","items":{"oneOf":[{"type":"object","title":"Lifetime budget","description":"Never resets. schedule_type, cron_expression, and interval are all rejected.","required":["asset_id","limit"],"properties":{"asset_id":{"description":"Asset this budget constrains","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.0.asset_id","typeLabel":"string\u003cuuid>"},"limit":{"description":"Maximum amount allowed per budget period, as a positive decimal string (e.g. \"10000.00\").","examples":["10000.00"],"pattern":"^\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.0.limit","typeLabel":"string"},"scope":{"default":"PROGRAM","description":"Budget scope: PROGRAM (shared cap across all participants, the default) or PARTICIPANT (separate cap per recipient).","enum":["PROGRAM","PARTICIPANT"],"examples":["PROGRAM"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.0.scope","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.0","typeLabel":"Lifetime budget · object"},{"type":"object","title":"Cron budget","description":"Resets on a UTC cron schedule. For PARTICIPANT budgets, every participant resets at the same time. Requires cron_expression without a timezone. Do not send interval.","required":["asset_id","limit","schedule_type","cron_expression"],"properties":{"asset_id":{"description":"Asset this budget constrains","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.1.asset_id","typeLabel":"string\u003cuuid>"},"cron_expression":{"description":"Cron expression for CRON-based resets, evaluated in UTC (e.g. \"0 0 1 * *\" for first of every month)","examples":["0 0 1 * *"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.1.cron_expression","typeLabel":"string"},"limit":{"description":"Maximum amount allowed per budget period, as a positive decimal string (e.g. \"10000.00\").","examples":["10000.00"],"pattern":"^\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.1.limit","typeLabel":"string"},"schedule_type":{"description":"Reset schedule type: CRON or INTERVAL. Omit for lifetime (no-reset) budgets.","enum":["CRON"],"examples":["CRON"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.1.schedule_type","typeLabel":"enum\u003cstring>"},"scope":{"default":"PROGRAM","description":"Budget scope: PROGRAM (shared cap across all participants, the default) or PARTICIPANT (separate cap per recipient).","enum":["PROGRAM","PARTICIPANT"],"examples":["PROGRAM"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.1.scope","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.1","typeLabel":"Cron budget · object"},{"type":"object","title":"Interval budget","description":"Resets after each interval. For PARTICIPANT budgets, each participant's period starts with their first credit from this rule. Requires interval. Do not send cron_expression.","required":["asset_id","limit","schedule_type","interval"],"properties":{"asset_id":{"description":"Asset this budget constrains","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.2.asset_id","typeLabel":"string\u003cuuid>"},"interval":{"description":"Duration for INTERVAL-based resets; w, d, h, m or s units (e.g. \"30d\", \"720h\")","examples":["30d"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.2.interval","typeLabel":"string"},"limit":{"description":"Maximum amount allowed per budget period, as a positive decimal string (e.g. \"10000.00\").","examples":["10000.00"],"pattern":"^\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.2.limit","typeLabel":"string"},"schedule_type":{"description":"Reset schedule type: CRON or INTERVAL. Omit for lifetime (no-reset) budgets.","enum":["INTERVAL"],"examples":["INTERVAL"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.2.schedule_type","typeLabel":"enum\u003cstring>"},"scope":{"default":"PROGRAM","description":"Budget scope: PROGRAM (shared cap across all participants, the default) or PARTICIPANT (separate cap per recipient).","enum":["PROGRAM","PARTICIPANT"],"examples":["PROGRAM"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.2.scope","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.2","typeLabel":"Interval budget · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX]","typeLabel":"Lifetime budget · object | Cron budget · object | Interval budget · object"},"type":"array","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.budgets","typeLabel":"(Lifetime budget · object | Cron budget · object | Interval budget · object)[]"},"condition":{"description":"CEL condition that determines whether the rule matches.","examples":["event.type == 'purchase'"],"minLength":1,"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.condition","typeLabel":"string"},"id":{"description":"Stable ID for an existing rule. Supply exactly one of id or client_ref.","examples":["c9f0f895-fb98-4b39-9f86-1e5a0d3e2b03"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.id","typeLabel":"string\u003cuuid>"},"name":{"description":"The name people see for the rule.","examples":["Holiday purchase reward"],"maxLength":255,"minLength":1,"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.name","typeLabel":"string"},"status":{"description":"Effective lifecycle status. Archived rules are represented by omitting them from the proposal.","enum":["ACTIVE","SUSPENDED"],"examples":["ACTIVE"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.status","typeLabel":"enum\u003cstring>"},"stop_after_match":{"description":"Whether a successful match stops the remainder of this rule set.","examples":[false],"type":"boolean","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.stop_after_match","typeLabel":"boolean"},"active_from":{"description":"Inclusive RFC 3339 start of the rule's active window, checked against `event_timestamp`. Leaving it out of an existing rule clears it.","examples":["2027-01-01T00:00:00Z"],"format":"date-time","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.active_from","typeLabel":"string\u003cdate-time>"},"active_to":{"description":"Exclusive RFC 3339 end of the rule's active window, checked against `event_timestamp`. Leaving it out of an existing rule clears it.","examples":["2027-12-31T23:59:59Z"],"format":"date-time","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.active_to","typeLabel":"string\u003cdate-time>"},"client_ref":{"description":"Request-local identity for a new rule. Must be unique across the change set.","examples":["holiday-purchase"],"maxLength":64,"minLength":1,"pattern":"^[A-Za-z][A-Za-z0-9_-]*$","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.client_ref","typeLabel":"string"},"description":{"description":"Rule description. Leaving it out of an existing rule clears it when the preview is applied.","maxLength":1000,"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0.description","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"A rule in a proposed configuration. Use `id` for an existing rule or `client_ref` for a new one.","required":["actions","budgets","condition","name","status","stop_after_match","client_ref"],"properties":{"actions":{"description":"Complete non-empty action list.","items":{"oneOf":[{"type":"object","title":"CREDIT action","description":"Credit an asset to the target. `reference_id`, `expires_at`, `expires_in`, `matures_at`, and `matures_in` require a `LOT`-mode asset (`expires_at`/`expires_in` and `matures_at`/`matures_in` are each mutually exclusive).","required":["type","asset_id","amount"],"example":{"amount":"${{ event.amount * 0.03 }}","asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","description":"Purchase reward","expires_in":"365d","matures_in":"30d","type":"CREDIT"},"properties":{"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.amount","typeLabel":"string"},"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.asset_id","typeLabel":"string\u003cuuid>"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["CREDIT"],"examples":["CREDIT"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.description","typeLabel":"string"},"expires_at":{"description":"Expiration timestamp (RFC 3339) or ${{ }} CEL expression (LOT-mode assets on CREDIT, or SET_TIER). Mutually exclusive with expires_in.","examples":["2027-12-31T23:59:59Z"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.expires_at","typeLabel":"string"},"expires_in":{"description":"Expiration duration such as \"365d\" or ${{ }} CEL expression (LOT-mode assets on CREDIT, or SET_TIER). Mutually exclusive with expires_at.","examples":["365d"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.expires_in","typeLabel":"string"},"matures_at":{"description":"Vesting timestamp (RFC 3339) or ${{ }} CEL expression when credited rewards become spendable (LOT-mode assets on CREDIT only). Mutually exclusive with matures_in.","examples":["2027-12-31T23:59:59Z"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.matures_at","typeLabel":"string"},"matures_in":{"description":"Vesting duration such as \"30d\" or ${{ }} CEL expression when credited rewards become spendable (LOT-mode assets on CREDIT only). Mutually exclusive with matures_at.","examples":["30d"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.matures_in","typeLabel":"string"},"reference_id":{"description":"Correlation ID that links a hold to its release or pending rewards to their settlement (LOT-mode assets only). Static string or ${{ }} CEL expression.","examples":["${{ event.authorization_id }}"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.reference_id","typeLabel":"string"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0","typeLabel":"CREDIT action · object"},{"type":"object","title":"DEBIT action","description":"Debit an asset from the target. Requires asset_id and a positive amount. allow_negative is accepted only on DEBIT, and only when the target is not a PROGRAM wallet.","required":["type","asset_id","amount"],"example":{"amount":"50","asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","type":"DEBIT"},"properties":{"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.amount","typeLabel":"string"},"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.asset_id","typeLabel":"string\u003cuuid>"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["DEBIT"],"examples":["DEBIT"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"allow_negative":{"description":"Allow debit to overdraw and create a negative balance when funds are insufficient.\nDEBIT only. Defaults to false.","examples":[false],"type":"boolean","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.allow_negative","typeLabel":"boolean"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.description","typeLabel":"string"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1","typeLabel":"DEBIT action · object"},{"type":"object","title":"HOLD action","description":"Move value from `AVAILABLE` to `HELD`. Use `reference_id` to link the hold to a later `RELEASE`; this requires a LOT-mode asset.","required":["type","asset_id","amount"],"example":{"amount":"25","asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","reference_id":"${{ event.authorization_id }}","type":"HOLD"},"properties":{"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.2.amount","typeLabel":"string"},"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.2.asset_id","typeLabel":"string\u003cuuid>"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["HOLD"],"examples":["HOLD"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.2.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.2.description","typeLabel":"string"},"reference_id":{"description":"Correlation ID that links a hold to its release or pending rewards to their settlement (LOT-mode assets only). Static string or ${{ }} CEL expression.","examples":["${{ event.authorization_id }}"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.2.reference_id","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.2","typeLabel":"HOLD action · object"},{"type":"object","title":"RELEASE action","description":"Release held funds back to the available bucket. Provide amount for a partial release, or reference_id to release the correlated hold. At least one of the two is required.","required":["type","asset_id","amount"],"example":{"asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","reference_id":"${{ event.authorization_id }}","type":"RELEASE"},"properties":{"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.3.amount","typeLabel":"string"},"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.3.asset_id","typeLabel":"string\u003cuuid>"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["RELEASE"],"examples":["RELEASE"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.3.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.3.description","typeLabel":"string"},"reference_id":{"description":"Correlation ID that links a hold to its release or pending rewards to their settlement (LOT-mode assets only). Static string or ${{ }} CEL expression.","examples":["${{ event.authorization_id }}"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.3.reference_id","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.3","typeLabel":"RELEASE action · object"},{"type":"object","title":"RELEASE action","description":"Release held funds back to the available bucket. Provide amount for a partial release, or reference_id to release the correlated hold. At least one of the two is required.","required":["type","asset_id","reference_id"],"example":{"asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","reference_id":"${{ event.authorization_id }}","type":"RELEASE"},"properties":{"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.4.asset_id","typeLabel":"string\u003cuuid>"},"reference_id":{"description":"Correlation ID that links a hold to its release or pending rewards to their settlement (LOT-mode assets only). Static string or ${{ }} CEL expression.","examples":["${{ event.authorization_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.4.reference_id","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["RELEASE"],"examples":["RELEASE"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.4.amount","typeLabel":"string"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.4.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.4.description","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.4","typeLabel":"RELEASE action · object"},{"type":"object","title":"FORFEIT action","description":"Forfeit an amount out of the participant's balance. Requires asset_id and a positive amount. reference_id is not supported.","required":["type","asset_id","amount"],"example":{"amount":"10","asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","type":"FORFEIT"},"properties":{"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.5.amount","typeLabel":"string"},"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.5.asset_id","typeLabel":"string\u003cuuid>"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["FORFEIT"],"examples":["FORFEIT"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.5.type","typeLabel":"enum\u003cstring>"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.5.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.5.description","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.5","typeLabel":"FORFEIT action · object"},{"type":"object","title":"VOID_PENDING action","description":"Cancel pending rewards credited into `HELD` for `reference_id` and return the value to its source (`LOT`-mode assets only; omit `amount` to cancel all pending rewards under `reference_id`, or pass a positive amount to cancel part newest-first).","required":["type","asset_id","reference_id"],"example":{"asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","reference_id":"${{ event.authorization_id }}","type":"VOID_PENDING"},"properties":{"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.6.asset_id","typeLabel":"string\u003cuuid>"},"reference_id":{"description":"Correlation ID that links a hold to its release or pending rewards to their settlement (LOT-mode assets only). Static string or ${{ }} CEL expression.","examples":["${{ event.authorization_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.6.reference_id","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["VOID_PENDING"],"examples":["VOID_PENDING"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.6.type","typeLabel":"enum\u003cstring>"},"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.6.amount","typeLabel":"string"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.6.description","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.6","typeLabel":"VOID_PENDING action · object"},{"type":"object","title":"TAG action","description":"Add a tag to the target. tag is a literal name; it does not accept ${{ }} expressions.","required":["type","tag"],"example":{"tag":"VIP","type":"TAG"},"properties":{"tag":{"description":"Tag name to add (TAG) or remove (UNTAG)","examples":["VIP"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.tag","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["TAG"],"examples":["TAG"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.type","typeLabel":"enum\u003cstring>"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7","typeLabel":"TAG action · object"},{"type":"object","title":"UNTAG action","description":"Remove a tag from the target. tag is a literal name; it does not accept ${{ }} expressions.","required":["type","tag"],"example":{"tag":"VIP","type":"UNTAG"},"properties":{"tag":{"description":"Tag name to add (TAG) or remove (UNTAG)","examples":["VIP"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.tag","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["UNTAG"],"examples":["UNTAG"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.type","typeLabel":"enum\u003cstring>"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8","typeLabel":"UNTAG action · object"},{"type":"object","title":"COUNTER action","description":"Increment or set a counter on the target. operation defaults to INCREMENT; SET assigns value. key is a literal name; value is a static number or a ${{ }} expression resolving to one.","required":["type","key","value"],"example":{"key":"purchase_count","type":"COUNTER","value":"1"},"properties":{"key":{"description":"Counter or attribute key name","examples":["purchase_count"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.key","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["COUNTER"],"examples":["COUNTER"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.type","typeLabel":"enum\u003cstring>"},"value":{"description":"Numeric string (e.g. \"1\" or \"-1\") or a ${{ }} CEL expression that evaluates to a number.","examples":["1"],"pattern":"^(?:[-+]?(?:[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+)(?:[eE][-+]?[0-9]+)?|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*)$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.value","typeLabel":"string"},"operation":{"default":"INCREMENT","description":"How COUNTER changes the value. INCREMENT adds value; SET assigns it. Defaults to INCREMENT.","enum":["INCREMENT","SET"],"examples":["SET"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.operation","typeLabel":"enum\u003cstring>"},"reset_after":{"description":"Auto-reset duration for COUNTER actions. The counter resets to 0 after this duration elapses since the last reset; w, d, h, m or s units (e.g. \"30d\", \"720h\"). Send an empty string to remove auto-reset.","examples":["30d"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.reset_after","typeLabel":"string"},"reset_period":{"description":"Calendar reset for COUNTER actions. Uses the event timestamp; defaults to UTC. Mutually exclusive with reset_after. NONE removes the calendar reset. Changing type or timezone starts an empty series.","properties":{"type":{"description":"DAY, Monday-based WEEK, MONTH, or NONE to remove the calendar reset.","enum":["DAY","WEEK","MONTH","NONE"],"examples":["MONTH"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.reset_period.type","typeLabel":"enum\u003cstring>"},"timezone":{"description":"IANA time zone used for period boundaries. Omit for UTC.","examples":["America/Chicago"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.reset_period.timezone","typeLabel":"string"}},"required":["type"],"type":"object","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.reset_period","typeLabel":"object"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9","typeLabel":"COUNTER action · object"},{"type":"object","title":"SET_ATTRIBUTE action","description":"Set an attribute on the target. key is a literal name; value is a literal string or a ${{ }} expression.","required":["type","key","value"],"example":{"key":"region","type":"SET_ATTRIBUTE","value":"${{ event.region }}"},"properties":{"key":{"description":"Counter or attribute key name","examples":["purchase_count"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.key","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["SET_ATTRIBUTE"],"examples":["SET_ATTRIBUTE"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.type","typeLabel":"enum\u003cstring>"},"value":{"description":"COUNTER: static numeric string or ${{ }} CEL expression. SET_ATTRIBUTE: literal string or ${{ }} CEL expression.","examples":["1"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.value","typeLabel":"string"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10","typeLabel":"SET_ATTRIBUTE action · object"},{"type":"object","title":"SET_TIER action","description":"Assign a tier level to the target. Use literal keys for `tier` and `level`. Set `expires_in` (a duration such as `90d`) or `expires_at` (an RFC 3339 timestamp) to give the assignment an expiration, not both.","required":["type","tier","level"],"example":{"level":"gold","tier":"status","type":"SET_TIER"},"properties":{"level":{"description":"Tier level within the track (e.g. \"gold\", \"platinum\")","examples":["gold"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.level","typeLabel":"string"},"tier":{"description":"Tier track name (e.g. \"status\", \"loyalty\")","examples":["status"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.tier","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["SET_TIER"],"examples":["SET_TIER"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.type","typeLabel":"enum\u003cstring>"},"expires_at":{"description":"Expiration timestamp (RFC 3339) or ${{ }} CEL expression (LOT-mode assets on CREDIT, or SET_TIER). Mutually exclusive with expires_in.","examples":["2027-12-31T23:59:59Z"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.expires_at","typeLabel":"string"},"expires_in":{"description":"Expiration duration such as \"365d\" or ${{ }} CEL expression (LOT-mode assets on CREDIT, or SET_TIER). Mutually exclusive with expires_at.","examples":["365d"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.expires_in","typeLabel":"string"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11","typeLabel":"SET_TIER action · object"},{"type":"object","title":"SCHEDULE_EVENT action","description":"Schedule a delayed follow-up event for the participant, another targeted participant, or the program (`target.type: PROGRAM`). `event_type` names the event, and rules read it as `event.type`. String values in `event_data` may include `${{ }}` CEL expressions evaluated when this rule runs. `event_data` must not contain a `type` key.","required":["type","delay","event_type"],"example":{"delay":"24h","event_data":{"reason":"follow_up"},"event_type":"check_status","type":"SCHEDULE_EVENT"},"properties":{"delay":{"description":"How long to wait before firing the scheduled event; w, d, h, m or s units (e.g. \"24h\", \"7d\"). SCHEDULE_EVENT only.","examples":["24h"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.delay","typeLabel":"string"},"event_type":{"description":"The name of the event the action sends, such as `check_status`: 1 to 255 characters with no leading or trailing whitespace, a literal string. Rules read it as `event.type`. Required when you create or change the rule.","examples":["check_status"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.event_type","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["SCHEDULE_EVENT"],"examples":["SCHEDULE_EVENT"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.type","typeLabel":"enum\u003cstring>"},"event_data":{"description":"Event data submitted when the action fires. String values may embed ${{ }} CEL expressions\n(at any nesting depth, values only), resolved against the triggering rule's context when the action executes.\nIt must not contain a `type` key; send the name as event_type.","type":"object","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.event_data","typeLabel":"object"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12","typeLabel":"SCHEDULE_EVENT action · object"},{"type":"object","title":"BROADCAST action","description":"Send an event to every participant in the program. Delivery starts without a delay and runs asynchronously. `event_type` names the event, and rules read it as `event.type`. `event_data` must not contain a `type` key. Do not send `target`; the broadcast already reaches everyone. Use `SCHEDULE_EVENT` for a delayed event.","required":["type","event_type"],"example":{"event_data":{"season":"2027"},"event_type":"season_reset","type":"BROADCAST"},"properties":{"event_type":{"description":"The name of the event the action sends, such as `check_status`: 1 to 255 characters with no leading or trailing whitespace, a literal string. Rules read it as `event.type`. Required when you create or change the rule.","examples":["check_status"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.13.event_type","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["BROADCAST"],"examples":["BROADCAST"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.13.type","typeLabel":"enum\u003cstring>"},"event_data":{"description":"Event data submitted when the action fires. String values may embed ${{ }} CEL expressions\n(at any nesting depth, values only), resolved against the triggering rule's context when the action executes.\nIt must not contain a `type` key; send the name as event_type.","type":"object","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.13.event_data","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.13","typeLabel":"BROADCAST action · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions.items.[INDEX]","typeLabel":"CREDIT action · object · DEBIT action · object · HOLD action · object · RELEASE action · object · RELEASE action · object · FORFEIT action · object · VOID_PENDING action · object · TAG action · object · UNTAG action · object · COUNTER action · object · SET_ATTRIBUTE action · object · SET_TIER action · object · SCHEDULE_EVENT action · object · BROADCAST action · object"},"minItems":1,"type":"array","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.actions","typeLabel":"CREDIT action · object · DEBIT action · object · HOLD action · object · RELEASE action · object · RELEASE action · object · FORFEIT action · object · VOID_PENDING action · object · TAG action · object · UNTAG action · object · COUNTER action · object · SET_ATTRIBUTE action · object · SET_TIER action · object · SCHEDULE_EVENT action · object · BROADCAST action · object[]"},"budgets":{"description":"Complete budget list. Send an empty array for no budgets.","items":{"oneOf":[{"type":"object","title":"Lifetime budget","description":"Never resets. schedule_type, cron_expression, and interval are all rejected.","required":["asset_id","limit"],"properties":{"asset_id":{"description":"Asset this budget constrains","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.0.asset_id","typeLabel":"string\u003cuuid>"},"limit":{"description":"Maximum amount allowed per budget period, as a positive decimal string (e.g. \"10000.00\").","examples":["10000.00"],"pattern":"^\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.0.limit","typeLabel":"string"},"scope":{"default":"PROGRAM","description":"Budget scope: PROGRAM (shared cap across all participants, the default) or PARTICIPANT (separate cap per recipient).","enum":["PROGRAM","PARTICIPANT"],"examples":["PROGRAM"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.0.scope","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.0","typeLabel":"Lifetime budget · object"},{"type":"object","title":"Cron budget","description":"Resets on a UTC cron schedule. For PARTICIPANT budgets, every participant resets at the same time. Requires cron_expression without a timezone. Do not send interval.","required":["asset_id","limit","schedule_type","cron_expression"],"properties":{"asset_id":{"description":"Asset this budget constrains","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.1.asset_id","typeLabel":"string\u003cuuid>"},"cron_expression":{"description":"Cron expression for CRON-based resets, evaluated in UTC (e.g. \"0 0 1 * *\" for first of every month)","examples":["0 0 1 * *"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.1.cron_expression","typeLabel":"string"},"limit":{"description":"Maximum amount allowed per budget period, as a positive decimal string (e.g. \"10000.00\").","examples":["10000.00"],"pattern":"^\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.1.limit","typeLabel":"string"},"schedule_type":{"description":"Reset schedule type: CRON or INTERVAL. Omit for lifetime (no-reset) budgets.","enum":["CRON"],"examples":["CRON"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.1.schedule_type","typeLabel":"enum\u003cstring>"},"scope":{"default":"PROGRAM","description":"Budget scope: PROGRAM (shared cap across all participants, the default) or PARTICIPANT (separate cap per recipient).","enum":["PROGRAM","PARTICIPANT"],"examples":["PROGRAM"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.1.scope","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.1","typeLabel":"Cron budget · object"},{"type":"object","title":"Interval budget","description":"Resets after each interval. For PARTICIPANT budgets, each participant's period starts with their first credit from this rule. Requires interval. Do not send cron_expression.","required":["asset_id","limit","schedule_type","interval"],"properties":{"asset_id":{"description":"Asset this budget constrains","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.2.asset_id","typeLabel":"string\u003cuuid>"},"interval":{"description":"Duration for INTERVAL-based resets; w, d, h, m or s units (e.g. \"30d\", \"720h\")","examples":["30d"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.2.interval","typeLabel":"string"},"limit":{"description":"Maximum amount allowed per budget period, as a positive decimal string (e.g. \"10000.00\").","examples":["10000.00"],"pattern":"^\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.2.limit","typeLabel":"string"},"schedule_type":{"description":"Reset schedule type: CRON or INTERVAL. Omit for lifetime (no-reset) budgets.","enum":["INTERVAL"],"examples":["INTERVAL"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.2.schedule_type","typeLabel":"enum\u003cstring>"},"scope":{"default":"PROGRAM","description":"Budget scope: PROGRAM (shared cap across all participants, the default) or PARTICIPANT (separate cap per recipient).","enum":["PROGRAM","PARTICIPANT"],"examples":["PROGRAM"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.2.scope","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.2","typeLabel":"Interval budget · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX]","typeLabel":"Lifetime budget · object | Cron budget · object | Interval budget · object"},"type":"array","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.budgets","typeLabel":"(Lifetime budget · object | Cron budget · object | Interval budget · object)[]"},"client_ref":{"description":"Request-local identity for a new rule. Must be unique across the change set.","examples":["holiday-purchase"],"maxLength":64,"minLength":1,"pattern":"^[A-Za-z][A-Za-z0-9_-]*$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.client_ref","typeLabel":"string"},"condition":{"description":"CEL condition that determines whether the rule matches.","examples":["event.type == 'purchase'"],"minLength":1,"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.condition","typeLabel":"string"},"name":{"description":"The name people see for the rule.","examples":["Holiday purchase reward"],"maxLength":255,"minLength":1,"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.name","typeLabel":"string"},"status":{"description":"Effective lifecycle status. Archived rules are represented by omitting them from the proposal.","enum":["ACTIVE","SUSPENDED"],"examples":["ACTIVE"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.status","typeLabel":"enum\u003cstring>"},"stop_after_match":{"description":"Whether a successful match stops the remainder of this rule set.","examples":[false],"type":"boolean","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.stop_after_match","typeLabel":"boolean"},"active_from":{"description":"Inclusive RFC 3339 start of the rule's active window, checked against `event_timestamp`. Leaving it out of an existing rule clears it.","examples":["2027-01-01T00:00:00Z"],"format":"date-time","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.active_from","typeLabel":"string\u003cdate-time>"},"active_to":{"description":"Exclusive RFC 3339 end of the rule's active window, checked against `event_timestamp`. Leaving it out of an existing rule clears it.","examples":["2027-12-31T23:59:59Z"],"format":"date-time","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.active_to","typeLabel":"string\u003cdate-time>"},"description":{"description":"Rule description. Leaving it out of an existing rule clears it when the preview is applied.","maxLength":1000,"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.description","typeLabel":"string"},"id":{"description":"Stable ID for an existing rule. Supply exactly one of id or client_ref.","examples":["c9f0f895-fb98-4b39-9f86-1e5a0d3e2b03"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1.id","typeLabel":"string\u003cuuid>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules.items.[INDEX]","typeLabel":"object"},"type":"array","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0.rules","typeLabel":"object[]"},"client_ref":{"description":"Request-local identity for a new rule set. Must be unique across the change set.","examples":["seasonal"],"maxLength":64,"minLength":1,"pattern":"^[A-Za-z][A-Za-z0-9_-]*$","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.0.client_ref","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"A rule set in a proposed configuration, with its rules. Use `id` for an existing set or `client_ref` for a new one.","required":["key","name","rules","client_ref"],"properties":{"client_ref":{"description":"Request-local identity for a new rule set. Must be unique across the change set.","examples":["seasonal"],"maxLength":64,"minLength":1,"pattern":"^[A-Za-z][A-Za-z0-9_-]*$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.client_ref","typeLabel":"string"},"key":{"description":"Immutable program-scoped key. Existing sets must repeat their current key.","examples":["seasonal"],"minLength":1,"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.key","typeLabel":"string"},"name":{"description":"Operator-facing display name.","examples":["Seasonal Promotions"],"maxLength":255,"minLength":1,"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.name","typeLabel":"string"},"rules":{"description":"Complete desired ACTIVE and SUSPENDED rule list for this set. Omitted existing rules are archived.","items":{"oneOf":[{"type":"object","description":"A rule in a proposed configuration. Use `id` for an existing rule or `client_ref` for a new one.","required":["actions","budgets","condition","name","status","stop_after_match","id"],"properties":{"actions":{"description":"Complete non-empty action list.","items":{"oneOf":[{"type":"object","title":"CREDIT action","description":"Credit an asset to the target. `reference_id`, `expires_at`, `expires_in`, `matures_at`, and `matures_in` require a `LOT`-mode asset (`expires_at`/`expires_in` and `matures_at`/`matures_in` are each mutually exclusive).","required":["type","asset_id","amount"],"example":{"amount":"${{ event.amount * 0.03 }}","asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","description":"Purchase reward","expires_in":"365d","matures_in":"30d","type":"CREDIT"},"properties":{"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.amount","typeLabel":"string"},"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.asset_id","typeLabel":"string\u003cuuid>"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["CREDIT"],"examples":["CREDIT"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.description","typeLabel":"string"},"expires_at":{"description":"Expiration timestamp (RFC 3339) or ${{ }} CEL expression (LOT-mode assets on CREDIT, or SET_TIER). Mutually exclusive with expires_in.","examples":["2027-12-31T23:59:59Z"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.expires_at","typeLabel":"string"},"expires_in":{"description":"Expiration duration such as \"365d\" or ${{ }} CEL expression (LOT-mode assets on CREDIT, or SET_TIER). Mutually exclusive with expires_at.","examples":["365d"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.expires_in","typeLabel":"string"},"matures_at":{"description":"Vesting timestamp (RFC 3339) or ${{ }} CEL expression when credited rewards become spendable (LOT-mode assets on CREDIT only). Mutually exclusive with matures_in.","examples":["2027-12-31T23:59:59Z"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.matures_at","typeLabel":"string"},"matures_in":{"description":"Vesting duration such as \"30d\" or ${{ }} CEL expression when credited rewards become spendable (LOT-mode assets on CREDIT only). Mutually exclusive with matures_at.","examples":["30d"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.matures_in","typeLabel":"string"},"reference_id":{"description":"Correlation ID that links a hold to its release or pending rewards to their settlement (LOT-mode assets only). Static string or ${{ }} CEL expression.","examples":["${{ event.authorization_id }}"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.reference_id","typeLabel":"string"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.0","typeLabel":"CREDIT action · object"},{"type":"object","title":"DEBIT action","description":"Debit an asset from the target. Requires asset_id and a positive amount. allow_negative is accepted only on DEBIT, and only when the target is not a PROGRAM wallet.","required":["type","asset_id","amount"],"example":{"amount":"50","asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","type":"DEBIT"},"properties":{"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.amount","typeLabel":"string"},"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.asset_id","typeLabel":"string\u003cuuid>"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["DEBIT"],"examples":["DEBIT"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"allow_negative":{"description":"Allow debit to overdraw and create a negative balance when funds are insufficient.\nDEBIT only. Defaults to false.","examples":[false],"type":"boolean","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.allow_negative","typeLabel":"boolean"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.description","typeLabel":"string"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.1","typeLabel":"DEBIT action · object"},{"type":"object","title":"HOLD action","description":"Move value from `AVAILABLE` to `HELD`. Use `reference_id` to link the hold to a later `RELEASE`; this requires a LOT-mode asset.","required":["type","asset_id","amount"],"example":{"amount":"25","asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","reference_id":"${{ event.authorization_id }}","type":"HOLD"},"properties":{"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.2.amount","typeLabel":"string"},"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.2.asset_id","typeLabel":"string\u003cuuid>"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["HOLD"],"examples":["HOLD"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.2.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.2.description","typeLabel":"string"},"reference_id":{"description":"Correlation ID that links a hold to its release or pending rewards to their settlement (LOT-mode assets only). Static string or ${{ }} CEL expression.","examples":["${{ event.authorization_id }}"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.2.reference_id","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.2","typeLabel":"HOLD action · object"},{"type":"object","title":"RELEASE action","description":"Release held funds back to the available bucket. Provide amount for a partial release, or reference_id to release the correlated hold. At least one of the two is required.","required":["type","asset_id","amount"],"example":{"asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","reference_id":"${{ event.authorization_id }}","type":"RELEASE"},"properties":{"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.3.amount","typeLabel":"string"},"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.3.asset_id","typeLabel":"string\u003cuuid>"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["RELEASE"],"examples":["RELEASE"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.3.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.3.description","typeLabel":"string"},"reference_id":{"description":"Correlation ID that links a hold to its release or pending rewards to their settlement (LOT-mode assets only). Static string or ${{ }} CEL expression.","examples":["${{ event.authorization_id }}"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.3.reference_id","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.3","typeLabel":"RELEASE action · object"},{"type":"object","title":"RELEASE action","description":"Release held funds back to the available bucket. Provide amount for a partial release, or reference_id to release the correlated hold. At least one of the two is required.","required":["type","asset_id","reference_id"],"example":{"asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","reference_id":"${{ event.authorization_id }}","type":"RELEASE"},"properties":{"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.4.asset_id","typeLabel":"string\u003cuuid>"},"reference_id":{"description":"Correlation ID that links a hold to its release or pending rewards to their settlement (LOT-mode assets only). Static string or ${{ }} CEL expression.","examples":["${{ event.authorization_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.4.reference_id","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["RELEASE"],"examples":["RELEASE"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.4.amount","typeLabel":"string"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.4.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.4.description","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.4","typeLabel":"RELEASE action · object"},{"type":"object","title":"FORFEIT action","description":"Forfeit an amount out of the participant's balance. Requires asset_id and a positive amount. reference_id is not supported.","required":["type","asset_id","amount"],"example":{"amount":"10","asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","type":"FORFEIT"},"properties":{"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.5.amount","typeLabel":"string"},"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.5.asset_id","typeLabel":"string\u003cuuid>"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["FORFEIT"],"examples":["FORFEIT"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.5.type","typeLabel":"enum\u003cstring>"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.5.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.5.description","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.5","typeLabel":"FORFEIT action · object"},{"type":"object","title":"VOID_PENDING action","description":"Cancel pending rewards credited into `HELD` for `reference_id` and return the value to its source (`LOT`-mode assets only; omit `amount` to cancel all pending rewards under `reference_id`, or pass a positive amount to cancel part newest-first).","required":["type","asset_id","reference_id"],"example":{"asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","reference_id":"${{ event.authorization_id }}","type":"VOID_PENDING"},"properties":{"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.6.asset_id","typeLabel":"string\u003cuuid>"},"reference_id":{"description":"Correlation ID that links a hold to its release or pending rewards to their settlement (LOT-mode assets only). Static string or ${{ }} CEL expression.","examples":["${{ event.authorization_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.6.reference_id","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["VOID_PENDING"],"examples":["VOID_PENDING"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.6.type","typeLabel":"enum\u003cstring>"},"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.6.amount","typeLabel":"string"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.6.description","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.6","typeLabel":"VOID_PENDING action · object"},{"type":"object","title":"TAG action","description":"Add a tag to the target. tag is a literal name; it does not accept ${{ }} expressions.","required":["type","tag"],"example":{"tag":"VIP","type":"TAG"},"properties":{"tag":{"description":"Tag name to add (TAG) or remove (UNTAG)","examples":["VIP"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.tag","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["TAG"],"examples":["TAG"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.type","typeLabel":"enum\u003cstring>"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.7","typeLabel":"TAG action · object"},{"type":"object","title":"UNTAG action","description":"Remove a tag from the target. tag is a literal name; it does not accept ${{ }} expressions.","required":["type","tag"],"example":{"tag":"VIP","type":"UNTAG"},"properties":{"tag":{"description":"Tag name to add (TAG) or remove (UNTAG)","examples":["VIP"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.tag","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["UNTAG"],"examples":["UNTAG"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.type","typeLabel":"enum\u003cstring>"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.8","typeLabel":"UNTAG action · object"},{"type":"object","title":"COUNTER action","description":"Increment or set a counter on the target. operation defaults to INCREMENT; SET assigns value. key is a literal name; value is a static number or a ${{ }} expression resolving to one.","required":["type","key","value"],"example":{"key":"purchase_count","type":"COUNTER","value":"1"},"properties":{"key":{"description":"Counter or attribute key name","examples":["purchase_count"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.key","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["COUNTER"],"examples":["COUNTER"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.type","typeLabel":"enum\u003cstring>"},"value":{"description":"Numeric string (e.g. \"1\" or \"-1\") or a ${{ }} CEL expression that evaluates to a number.","examples":["1"],"pattern":"^(?:[-+]?(?:[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+)(?:[eE][-+]?[0-9]+)?|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*)$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.value","typeLabel":"string"},"operation":{"default":"INCREMENT","description":"How COUNTER changes the value. INCREMENT adds value; SET assigns it. Defaults to INCREMENT.","enum":["INCREMENT","SET"],"examples":["SET"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.operation","typeLabel":"enum\u003cstring>"},"reset_after":{"description":"Auto-reset duration for COUNTER actions. The counter resets to 0 after this duration elapses since the last reset; w, d, h, m or s units (e.g. \"30d\", \"720h\"). Send an empty string to remove auto-reset.","examples":["30d"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.reset_after","typeLabel":"string"},"reset_period":{"description":"Calendar reset for COUNTER actions. Uses the event timestamp; defaults to UTC. Mutually exclusive with reset_after. NONE removes the calendar reset. Changing type or timezone starts an empty series.","properties":{"type":{"description":"DAY, Monday-based WEEK, MONTH, or NONE to remove the calendar reset.","enum":["DAY","WEEK","MONTH","NONE"],"examples":["MONTH"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.reset_period.type","typeLabel":"enum\u003cstring>"},"timezone":{"description":"IANA time zone used for period boundaries. Omit for UTC.","examples":["America/Chicago"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.reset_period.timezone","typeLabel":"string"}},"required":["type"],"type":"object","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.reset_period","typeLabel":"object"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.9","typeLabel":"COUNTER action · object"},{"type":"object","title":"SET_ATTRIBUTE action","description":"Set an attribute on the target. key is a literal name; value is a literal string or a ${{ }} expression.","required":["type","key","value"],"example":{"key":"region","type":"SET_ATTRIBUTE","value":"${{ event.region }}"},"properties":{"key":{"description":"Counter or attribute key name","examples":["purchase_count"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.key","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["SET_ATTRIBUTE"],"examples":["SET_ATTRIBUTE"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.type","typeLabel":"enum\u003cstring>"},"value":{"description":"COUNTER: static numeric string or ${{ }} CEL expression. SET_ATTRIBUTE: literal string or ${{ }} CEL expression.","examples":["1"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.value","typeLabel":"string"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.10","typeLabel":"SET_ATTRIBUTE action · object"},{"type":"object","title":"SET_TIER action","description":"Assign a tier level to the target. Use literal keys for `tier` and `level`. Set `expires_in` (a duration such as `90d`) or `expires_at` (an RFC 3339 timestamp) to give the assignment an expiration, not both.","required":["type","tier","level"],"example":{"level":"gold","tier":"status","type":"SET_TIER"},"properties":{"level":{"description":"Tier level within the track (e.g. \"gold\", \"platinum\")","examples":["gold"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.level","typeLabel":"string"},"tier":{"description":"Tier track name (e.g. \"status\", \"loyalty\")","examples":["status"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.tier","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["SET_TIER"],"examples":["SET_TIER"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.type","typeLabel":"enum\u003cstring>"},"expires_at":{"description":"Expiration timestamp (RFC 3339) or ${{ }} CEL expression (LOT-mode assets on CREDIT, or SET_TIER). Mutually exclusive with expires_in.","examples":["2027-12-31T23:59:59Z"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.expires_at","typeLabel":"string"},"expires_in":{"description":"Expiration duration such as \"365d\" or ${{ }} CEL expression (LOT-mode assets on CREDIT, or SET_TIER). Mutually exclusive with expires_at.","examples":["365d"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.expires_in","typeLabel":"string"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.11","typeLabel":"SET_TIER action · object"},{"type":"object","title":"SCHEDULE_EVENT action","description":"Schedule a delayed follow-up event for the participant, another targeted participant, or the program (`target.type: PROGRAM`). `event_type` names the event, and rules read it as `event.type`. String values in `event_data` may include `${{ }}` CEL expressions evaluated when this rule runs. `event_data` must not contain a `type` key.","required":["type","delay","event_type"],"example":{"delay":"24h","event_data":{"reason":"follow_up"},"event_type":"check_status","type":"SCHEDULE_EVENT"},"properties":{"delay":{"description":"How long to wait before firing the scheduled event; w, d, h, m or s units (e.g. \"24h\", \"7d\"). SCHEDULE_EVENT only.","examples":["24h"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.delay","typeLabel":"string"},"event_type":{"description":"The name of the event the action sends, such as `check_status`: 1 to 255 characters with no leading or trailing whitespace, a literal string. Rules read it as `event.type`. Required when you create or change the rule.","examples":["check_status"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.event_type","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["SCHEDULE_EVENT"],"examples":["SCHEDULE_EVENT"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.type","typeLabel":"enum\u003cstring>"},"event_data":{"description":"Event data submitted when the action fires. String values may embed ${{ }} CEL expressions\n(at any nesting depth, values only), resolved against the triggering rule's context when the action executes.\nIt must not contain a `type` key; send the name as event_type.","type":"object","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.event_data","typeLabel":"object"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.12","typeLabel":"SCHEDULE_EVENT action · object"},{"type":"object","title":"BROADCAST action","description":"Send an event to every participant in the program. Delivery starts without a delay and runs asynchronously. `event_type` names the event, and rules read it as `event.type`. `event_data` must not contain a `type` key. Do not send `target`; the broadcast already reaches everyone. Use `SCHEDULE_EVENT` for a delayed event.","required":["type","event_type"],"example":{"event_data":{"season":"2027"},"event_type":"season_reset","type":"BROADCAST"},"properties":{"event_type":{"description":"The name of the event the action sends, such as `check_status`: 1 to 255 characters with no leading or trailing whitespace, a literal string. Rules read it as `event.type`. Required when you create or change the rule.","examples":["check_status"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.13.event_type","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["BROADCAST"],"examples":["BROADCAST"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.13.type","typeLabel":"enum\u003cstring>"},"event_data":{"description":"Event data submitted when the action fires. String values may embed ${{ }} CEL expressions\n(at any nesting depth, values only), resolved against the triggering rule's context when the action executes.\nIt must not contain a `type` key; send the name as event_type.","type":"object","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.13.event_data","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX].oneOf.13","typeLabel":"BROADCAST action · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions.items.[INDEX]","typeLabel":"CREDIT action · object · DEBIT action · object · HOLD action · object · RELEASE action · object · RELEASE action · object · FORFEIT action · object · VOID_PENDING action · object · TAG action · object · UNTAG action · object · COUNTER action · object · SET_ATTRIBUTE action · object · SET_TIER action · object · SCHEDULE_EVENT action · object · BROADCAST action · object"},"minItems":1,"type":"array","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.actions","typeLabel":"CREDIT action · object · DEBIT action · object · HOLD action · object · RELEASE action · object · RELEASE action · object · FORFEIT action · object · VOID_PENDING action · object · TAG action · object · UNTAG action · object · COUNTER action · object · SET_ATTRIBUTE action · object · SET_TIER action · object · SCHEDULE_EVENT action · object · BROADCAST action · object[]"},"budgets":{"description":"Complete budget list. Send an empty array for no budgets.","items":{"oneOf":[{"type":"object","title":"Lifetime budget","description":"Never resets. schedule_type, cron_expression, and interval are all rejected.","required":["asset_id","limit"],"properties":{"asset_id":{"description":"Asset this budget constrains","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.0.asset_id","typeLabel":"string\u003cuuid>"},"limit":{"description":"Maximum amount allowed per budget period, as a positive decimal string (e.g. \"10000.00\").","examples":["10000.00"],"pattern":"^\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.0.limit","typeLabel":"string"},"scope":{"default":"PROGRAM","description":"Budget scope: PROGRAM (shared cap across all participants, the default) or PARTICIPANT (separate cap per recipient).","enum":["PROGRAM","PARTICIPANT"],"examples":["PROGRAM"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.0.scope","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.0","typeLabel":"Lifetime budget · object"},{"type":"object","title":"Cron budget","description":"Resets on a UTC cron schedule. For PARTICIPANT budgets, every participant resets at the same time. Requires cron_expression without a timezone. Do not send interval.","required":["asset_id","limit","schedule_type","cron_expression"],"properties":{"asset_id":{"description":"Asset this budget constrains","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.1.asset_id","typeLabel":"string\u003cuuid>"},"cron_expression":{"description":"Cron expression for CRON-based resets, evaluated in UTC (e.g. \"0 0 1 * *\" for first of every month)","examples":["0 0 1 * *"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.1.cron_expression","typeLabel":"string"},"limit":{"description":"Maximum amount allowed per budget period, as a positive decimal string (e.g. \"10000.00\").","examples":["10000.00"],"pattern":"^\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.1.limit","typeLabel":"string"},"schedule_type":{"description":"Reset schedule type: CRON or INTERVAL. Omit for lifetime (no-reset) budgets.","enum":["CRON"],"examples":["CRON"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.1.schedule_type","typeLabel":"enum\u003cstring>"},"scope":{"default":"PROGRAM","description":"Budget scope: PROGRAM (shared cap across all participants, the default) or PARTICIPANT (separate cap per recipient).","enum":["PROGRAM","PARTICIPANT"],"examples":["PROGRAM"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.1.scope","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.1","typeLabel":"Cron budget · object"},{"type":"object","title":"Interval budget","description":"Resets after each interval. For PARTICIPANT budgets, each participant's period starts with their first credit from this rule. Requires interval. Do not send cron_expression.","required":["asset_id","limit","schedule_type","interval"],"properties":{"asset_id":{"description":"Asset this budget constrains","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.2.asset_id","typeLabel":"string\u003cuuid>"},"interval":{"description":"Duration for INTERVAL-based resets; w, d, h, m or s units (e.g. \"30d\", \"720h\")","examples":["30d"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.2.interval","typeLabel":"string"},"limit":{"description":"Maximum amount allowed per budget period, as a positive decimal string (e.g. \"10000.00\").","examples":["10000.00"],"pattern":"^\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.2.limit","typeLabel":"string"},"schedule_type":{"description":"Reset schedule type: CRON or INTERVAL. Omit for lifetime (no-reset) budgets.","enum":["INTERVAL"],"examples":["INTERVAL"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.2.schedule_type","typeLabel":"enum\u003cstring>"},"scope":{"default":"PROGRAM","description":"Budget scope: PROGRAM (shared cap across all participants, the default) or PARTICIPANT (separate cap per recipient).","enum":["PROGRAM","PARTICIPANT"],"examples":["PROGRAM"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.2.scope","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX].oneOf.2","typeLabel":"Interval budget · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.budgets.items.[INDEX]","typeLabel":"Lifetime budget · object | Cron budget · object | Interval budget · object"},"type":"array","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.budgets","typeLabel":"(Lifetime budget · object | Cron budget · object | Interval budget · object)[]"},"condition":{"description":"CEL condition that determines whether the rule matches.","examples":["event.type == 'purchase'"],"minLength":1,"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.condition","typeLabel":"string"},"id":{"description":"Stable ID for an existing rule. Supply exactly one of id or client_ref.","examples":["c9f0f895-fb98-4b39-9f86-1e5a0d3e2b03"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.id","typeLabel":"string\u003cuuid>"},"name":{"description":"The name people see for the rule.","examples":["Holiday purchase reward"],"maxLength":255,"minLength":1,"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.name","typeLabel":"string"},"status":{"description":"Effective lifecycle status. Archived rules are represented by omitting them from the proposal.","enum":["ACTIVE","SUSPENDED"],"examples":["ACTIVE"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.status","typeLabel":"enum\u003cstring>"},"stop_after_match":{"description":"Whether a successful match stops the remainder of this rule set.","examples":[false],"type":"boolean","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.stop_after_match","typeLabel":"boolean"},"active_from":{"description":"Inclusive RFC 3339 start of the rule's active window, checked against `event_timestamp`. Leaving it out of an existing rule clears it.","examples":["2027-01-01T00:00:00Z"],"format":"date-time","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.active_from","typeLabel":"string\u003cdate-time>"},"active_to":{"description":"Exclusive RFC 3339 end of the rule's active window, checked against `event_timestamp`. Leaving it out of an existing rule clears it.","examples":["2027-12-31T23:59:59Z"],"format":"date-time","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.active_to","typeLabel":"string\u003cdate-time>"},"client_ref":{"description":"Request-local identity for a new rule. Must be unique across the change set.","examples":["holiday-purchase"],"maxLength":64,"minLength":1,"pattern":"^[A-Za-z][A-Za-z0-9_-]*$","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.client_ref","typeLabel":"string"},"description":{"description":"Rule description. Leaving it out of an existing rule clears it when the preview is applied.","maxLength":1000,"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0.description","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"A rule in a proposed configuration. Use `id` for an existing rule or `client_ref` for a new one.","required":["actions","budgets","condition","name","status","stop_after_match","client_ref"],"properties":{"actions":{"description":"Complete non-empty action list.","items":{"oneOf":[{"type":"object","title":"CREDIT action","description":"Credit an asset to the target. `reference_id`, `expires_at`, `expires_in`, `matures_at`, and `matures_in` require a `LOT`-mode asset (`expires_at`/`expires_in` and `matures_at`/`matures_in` are each mutually exclusive).","required":["type","asset_id","amount"],"example":{"amount":"${{ event.amount * 0.03 }}","asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","description":"Purchase reward","expires_in":"365d","matures_in":"30d","type":"CREDIT"},"properties":{"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.amount","typeLabel":"string"},"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.asset_id","typeLabel":"string\u003cuuid>"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["CREDIT"],"examples":["CREDIT"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.description","typeLabel":"string"},"expires_at":{"description":"Expiration timestamp (RFC 3339) or ${{ }} CEL expression (LOT-mode assets on CREDIT, or SET_TIER). Mutually exclusive with expires_in.","examples":["2027-12-31T23:59:59Z"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.expires_at","typeLabel":"string"},"expires_in":{"description":"Expiration duration such as \"365d\" or ${{ }} CEL expression (LOT-mode assets on CREDIT, or SET_TIER). Mutually exclusive with expires_at.","examples":["365d"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.expires_in","typeLabel":"string"},"matures_at":{"description":"Vesting timestamp (RFC 3339) or ${{ }} CEL expression when credited rewards become spendable (LOT-mode assets on CREDIT only). Mutually exclusive with matures_in.","examples":["2027-12-31T23:59:59Z"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.matures_at","typeLabel":"string"},"matures_in":{"description":"Vesting duration such as \"30d\" or ${{ }} CEL expression when credited rewards become spendable (LOT-mode assets on CREDIT only). Mutually exclusive with matures_at.","examples":["30d"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.matures_in","typeLabel":"string"},"reference_id":{"description":"Correlation ID that links a hold to its release or pending rewards to their settlement (LOT-mode assets only). Static string or ${{ }} CEL expression.","examples":["${{ event.authorization_id }}"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.reference_id","typeLabel":"string"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.0","typeLabel":"CREDIT action · object"},{"type":"object","title":"DEBIT action","description":"Debit an asset from the target. Requires asset_id and a positive amount. allow_negative is accepted only on DEBIT, and only when the target is not a PROGRAM wallet.","required":["type","asset_id","amount"],"example":{"amount":"50","asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","type":"DEBIT"},"properties":{"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.amount","typeLabel":"string"},"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.asset_id","typeLabel":"string\u003cuuid>"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["DEBIT"],"examples":["DEBIT"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"allow_negative":{"description":"Allow debit to overdraw and create a negative balance when funds are insufficient.\nDEBIT only. Defaults to false.","examples":[false],"type":"boolean","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.allow_negative","typeLabel":"boolean"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.description","typeLabel":"string"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.1","typeLabel":"DEBIT action · object"},{"type":"object","title":"HOLD action","description":"Move value from `AVAILABLE` to `HELD`. Use `reference_id` to link the hold to a later `RELEASE`; this requires a LOT-mode asset.","required":["type","asset_id","amount"],"example":{"amount":"25","asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","reference_id":"${{ event.authorization_id }}","type":"HOLD"},"properties":{"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.2.amount","typeLabel":"string"},"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.2.asset_id","typeLabel":"string\u003cuuid>"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["HOLD"],"examples":["HOLD"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.2.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.2.description","typeLabel":"string"},"reference_id":{"description":"Correlation ID that links a hold to its release or pending rewards to their settlement (LOT-mode assets only). Static string or ${{ }} CEL expression.","examples":["${{ event.authorization_id }}"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.2.reference_id","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.2","typeLabel":"HOLD action · object"},{"type":"object","title":"RELEASE action","description":"Release held funds back to the available bucket. Provide amount for a partial release, or reference_id to release the correlated hold. At least one of the two is required.","required":["type","asset_id","amount"],"example":{"asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","reference_id":"${{ event.authorization_id }}","type":"RELEASE"},"properties":{"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.3.amount","typeLabel":"string"},"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.3.asset_id","typeLabel":"string\u003cuuid>"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["RELEASE"],"examples":["RELEASE"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.3.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.3.description","typeLabel":"string"},"reference_id":{"description":"Correlation ID that links a hold to its release or pending rewards to their settlement (LOT-mode assets only). Static string or ${{ }} CEL expression.","examples":["${{ event.authorization_id }}"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.3.reference_id","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.3","typeLabel":"RELEASE action · object"},{"type":"object","title":"RELEASE action","description":"Release held funds back to the available bucket. Provide amount for a partial release, or reference_id to release the correlated hold. At least one of the two is required.","required":["type","asset_id","reference_id"],"example":{"asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","reference_id":"${{ event.authorization_id }}","type":"RELEASE"},"properties":{"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.4.asset_id","typeLabel":"string\u003cuuid>"},"reference_id":{"description":"Correlation ID that links a hold to its release or pending rewards to their settlement (LOT-mode assets only). Static string or ${{ }} CEL expression.","examples":["${{ event.authorization_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.4.reference_id","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["RELEASE"],"examples":["RELEASE"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.4.amount","typeLabel":"string"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.4.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.4.description","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.4","typeLabel":"RELEASE action · object"},{"type":"object","title":"FORFEIT action","description":"Forfeit an amount out of the participant's balance. Requires asset_id and a positive amount. reference_id is not supported.","required":["type","asset_id","amount"],"example":{"amount":"10","asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","type":"FORFEIT"},"properties":{"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.5.amount","typeLabel":"string"},"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.5.asset_id","typeLabel":"string\u003cuuid>"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["FORFEIT"],"examples":["FORFEIT"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.5.type","typeLabel":"enum\u003cstring>"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.5.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.5.description","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.5","typeLabel":"FORFEIT action · object"},{"type":"object","title":"VOID_PENDING action","description":"Cancel pending rewards credited into `HELD` for `reference_id` and return the value to its source (`LOT`-mode assets only; omit `amount` to cancel all pending rewards under `reference_id`, or pass a positive amount to cancel part newest-first).","required":["type","asset_id","reference_id"],"example":{"asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","reference_id":"${{ event.authorization_id }}","type":"VOID_PENDING"},"properties":{"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.6.asset_id","typeLabel":"string\u003cuuid>"},"reference_id":{"description":"Correlation ID that links a hold to its release or pending rewards to their settlement (LOT-mode assets only). Static string or ${{ }} CEL expression.","examples":["${{ event.authorization_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.6.reference_id","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["VOID_PENDING"],"examples":["VOID_PENDING"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.6.type","typeLabel":"enum\u003cstring>"},"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.6.amount","typeLabel":"string"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.6.description","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.6","typeLabel":"VOID_PENDING action · object"},{"type":"object","title":"TAG action","description":"Add a tag to the target. tag is a literal name; it does not accept ${{ }} expressions.","required":["type","tag"],"example":{"tag":"VIP","type":"TAG"},"properties":{"tag":{"description":"Tag name to add (TAG) or remove (UNTAG)","examples":["VIP"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.tag","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["TAG"],"examples":["TAG"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.type","typeLabel":"enum\u003cstring>"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.7","typeLabel":"TAG action · object"},{"type":"object","title":"UNTAG action","description":"Remove a tag from the target. tag is a literal name; it does not accept ${{ }} expressions.","required":["type","tag"],"example":{"tag":"VIP","type":"UNTAG"},"properties":{"tag":{"description":"Tag name to add (TAG) or remove (UNTAG)","examples":["VIP"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.tag","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["UNTAG"],"examples":["UNTAG"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.type","typeLabel":"enum\u003cstring>"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.8","typeLabel":"UNTAG action · object"},{"type":"object","title":"COUNTER action","description":"Increment or set a counter on the target. operation defaults to INCREMENT; SET assigns value. key is a literal name; value is a static number or a ${{ }} expression resolving to one.","required":["type","key","value"],"example":{"key":"purchase_count","type":"COUNTER","value":"1"},"properties":{"key":{"description":"Counter or attribute key name","examples":["purchase_count"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.key","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["COUNTER"],"examples":["COUNTER"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.type","typeLabel":"enum\u003cstring>"},"value":{"description":"Numeric string (e.g. \"1\" or \"-1\") or a ${{ }} CEL expression that evaluates to a number.","examples":["1"],"pattern":"^(?:[-+]?(?:[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+)(?:[eE][-+]?[0-9]+)?|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*)$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.value","typeLabel":"string"},"operation":{"default":"INCREMENT","description":"How COUNTER changes the value. INCREMENT adds value; SET assigns it. Defaults to INCREMENT.","enum":["INCREMENT","SET"],"examples":["SET"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.operation","typeLabel":"enum\u003cstring>"},"reset_after":{"description":"Auto-reset duration for COUNTER actions. The counter resets to 0 after this duration elapses since the last reset; w, d, h, m or s units (e.g. \"30d\", \"720h\"). Send an empty string to remove auto-reset.","examples":["30d"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.reset_after","typeLabel":"string"},"reset_period":{"description":"Calendar reset for COUNTER actions. Uses the event timestamp; defaults to UTC. Mutually exclusive with reset_after. NONE removes the calendar reset. Changing type or timezone starts an empty series.","properties":{"type":{"description":"DAY, Monday-based WEEK, MONTH, or NONE to remove the calendar reset.","enum":["DAY","WEEK","MONTH","NONE"],"examples":["MONTH"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.reset_period.type","typeLabel":"enum\u003cstring>"},"timezone":{"description":"IANA time zone used for period boundaries. Omit for UTC.","examples":["America/Chicago"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.reset_period.timezone","typeLabel":"string"}},"required":["type"],"type":"object","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.reset_period","typeLabel":"object"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.9","typeLabel":"COUNTER action · object"},{"type":"object","title":"SET_ATTRIBUTE action","description":"Set an attribute on the target. key is a literal name; value is a literal string or a ${{ }} expression.","required":["type","key","value"],"example":{"key":"region","type":"SET_ATTRIBUTE","value":"${{ event.region }}"},"properties":{"key":{"description":"Counter or attribute key name","examples":["purchase_count"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.key","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["SET_ATTRIBUTE"],"examples":["SET_ATTRIBUTE"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.type","typeLabel":"enum\u003cstring>"},"value":{"description":"COUNTER: static numeric string or ${{ }} CEL expression. SET_ATTRIBUTE: literal string or ${{ }} CEL expression.","examples":["1"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.value","typeLabel":"string"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.10","typeLabel":"SET_ATTRIBUTE action · object"},{"type":"object","title":"SET_TIER action","description":"Assign a tier level to the target. Use literal keys for `tier` and `level`. Set `expires_in` (a duration such as `90d`) or `expires_at` (an RFC 3339 timestamp) to give the assignment an expiration, not both.","required":["type","tier","level"],"example":{"level":"gold","tier":"status","type":"SET_TIER"},"properties":{"level":{"description":"Tier level within the track (e.g. \"gold\", \"platinum\")","examples":["gold"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.level","typeLabel":"string"},"tier":{"description":"Tier track name (e.g. \"status\", \"loyalty\")","examples":["status"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.tier","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["SET_TIER"],"examples":["SET_TIER"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.type","typeLabel":"enum\u003cstring>"},"expires_at":{"description":"Expiration timestamp (RFC 3339) or ${{ }} CEL expression (LOT-mode assets on CREDIT, or SET_TIER). Mutually exclusive with expires_in.","examples":["2027-12-31T23:59:59Z"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.expires_at","typeLabel":"string"},"expires_in":{"description":"Expiration duration such as \"365d\" or ${{ }} CEL expression (LOT-mode assets on CREDIT, or SET_TIER). Mutually exclusive with expires_at.","examples":["365d"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.expires_in","typeLabel":"string"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.11","typeLabel":"SET_TIER action · object"},{"type":"object","title":"SCHEDULE_EVENT action","description":"Schedule a delayed follow-up event for the participant, another targeted participant, or the program (`target.type: PROGRAM`). `event_type` names the event, and rules read it as `event.type`. String values in `event_data` may include `${{ }}` CEL expressions evaluated when this rule runs. `event_data` must not contain a `type` key.","required":["type","delay","event_type"],"example":{"delay":"24h","event_data":{"reason":"follow_up"},"event_type":"check_status","type":"SCHEDULE_EVENT"},"properties":{"delay":{"description":"How long to wait before firing the scheduled event; w, d, h, m or s units (e.g. \"24h\", \"7d\"). SCHEDULE_EVENT only.","examples":["24h"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.delay","typeLabel":"string"},"event_type":{"description":"The name of the event the action sends, such as `check_status`: 1 to 255 characters with no leading or trailing whitespace, a literal string. Rules read it as `event.type`. Required when you create or change the rule.","examples":["check_status"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.event_type","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["SCHEDULE_EVENT"],"examples":["SCHEDULE_EVENT"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.type","typeLabel":"enum\u003cstring>"},"event_data":{"description":"Event data submitted when the action fires. String values may embed ${{ }} CEL expressions\n(at any nesting depth, values only), resolved against the triggering rule's context when the action executes.\nIt must not contain a `type` key; send the name as event_type.","type":"object","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.event_data","typeLabel":"object"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.12","typeLabel":"SCHEDULE_EVENT action · object"},{"type":"object","title":"BROADCAST action","description":"Send an event to every participant in the program. Delivery starts without a delay and runs asynchronously. `event_type` names the event, and rules read it as `event.type`. `event_data` must not contain a `type` key. Do not send `target`; the broadcast already reaches everyone. Use `SCHEDULE_EVENT` for a delayed event.","required":["type","event_type"],"example":{"event_data":{"season":"2027"},"event_type":"season_reset","type":"BROADCAST"},"properties":{"event_type":{"description":"The name of the event the action sends, such as `check_status`: 1 to 255 characters with no leading or trailing whitespace, a literal string. Rules read it as `event.type`. Required when you create or change the rule.","examples":["check_status"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.13.event_type","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["BROADCAST"],"examples":["BROADCAST"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.13.type","typeLabel":"enum\u003cstring>"},"event_data":{"description":"Event data submitted when the action fires. String values may embed ${{ }} CEL expressions\n(at any nesting depth, values only), resolved against the triggering rule's context when the action executes.\nIt must not contain a `type` key; send the name as event_type.","type":"object","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.13.event_data","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX].oneOf.13","typeLabel":"BROADCAST action · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions.items.[INDEX]","typeLabel":"CREDIT action · object · DEBIT action · object · HOLD action · object · RELEASE action · object · RELEASE action · object · FORFEIT action · object · VOID_PENDING action · object · TAG action · object · UNTAG action · object · COUNTER action · object · SET_ATTRIBUTE action · object · SET_TIER action · object · SCHEDULE_EVENT action · object · BROADCAST action · object"},"minItems":1,"type":"array","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.actions","typeLabel":"CREDIT action · object · DEBIT action · object · HOLD action · object · RELEASE action · object · RELEASE action · object · FORFEIT action · object · VOID_PENDING action · object · TAG action · object · UNTAG action · object · COUNTER action · object · SET_ATTRIBUTE action · object · SET_TIER action · object · SCHEDULE_EVENT action · object · BROADCAST action · object[]"},"budgets":{"description":"Complete budget list. Send an empty array for no budgets.","items":{"oneOf":[{"type":"object","title":"Lifetime budget","description":"Never resets. schedule_type, cron_expression, and interval are all rejected.","required":["asset_id","limit"],"properties":{"asset_id":{"description":"Asset this budget constrains","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.0.asset_id","typeLabel":"string\u003cuuid>"},"limit":{"description":"Maximum amount allowed per budget period, as a positive decimal string (e.g. \"10000.00\").","examples":["10000.00"],"pattern":"^\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.0.limit","typeLabel":"string"},"scope":{"default":"PROGRAM","description":"Budget scope: PROGRAM (shared cap across all participants, the default) or PARTICIPANT (separate cap per recipient).","enum":["PROGRAM","PARTICIPANT"],"examples":["PROGRAM"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.0.scope","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.0","typeLabel":"Lifetime budget · object"},{"type":"object","title":"Cron budget","description":"Resets on a UTC cron schedule. For PARTICIPANT budgets, every participant resets at the same time. Requires cron_expression without a timezone. Do not send interval.","required":["asset_id","limit","schedule_type","cron_expression"],"properties":{"asset_id":{"description":"Asset this budget constrains","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.1.asset_id","typeLabel":"string\u003cuuid>"},"cron_expression":{"description":"Cron expression for CRON-based resets, evaluated in UTC (e.g. \"0 0 1 * *\" for first of every month)","examples":["0 0 1 * *"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.1.cron_expression","typeLabel":"string"},"limit":{"description":"Maximum amount allowed per budget period, as a positive decimal string (e.g. \"10000.00\").","examples":["10000.00"],"pattern":"^\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.1.limit","typeLabel":"string"},"schedule_type":{"description":"Reset schedule type: CRON or INTERVAL. Omit for lifetime (no-reset) budgets.","enum":["CRON"],"examples":["CRON"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.1.schedule_type","typeLabel":"enum\u003cstring>"},"scope":{"default":"PROGRAM","description":"Budget scope: PROGRAM (shared cap across all participants, the default) or PARTICIPANT (separate cap per recipient).","enum":["PROGRAM","PARTICIPANT"],"examples":["PROGRAM"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.1.scope","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.1","typeLabel":"Cron budget · object"},{"type":"object","title":"Interval budget","description":"Resets after each interval. For PARTICIPANT budgets, each participant's period starts with their first credit from this rule. Requires interval. Do not send cron_expression.","required":["asset_id","limit","schedule_type","interval"],"properties":{"asset_id":{"description":"Asset this budget constrains","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.2.asset_id","typeLabel":"string\u003cuuid>"},"interval":{"description":"Duration for INTERVAL-based resets; w, d, h, m or s units (e.g. \"30d\", \"720h\")","examples":["30d"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.2.interval","typeLabel":"string"},"limit":{"description":"Maximum amount allowed per budget period, as a positive decimal string (e.g. \"10000.00\").","examples":["10000.00"],"pattern":"^\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.2.limit","typeLabel":"string"},"schedule_type":{"description":"Reset schedule type: CRON or INTERVAL. Omit for lifetime (no-reset) budgets.","enum":["INTERVAL"],"examples":["INTERVAL"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.2.schedule_type","typeLabel":"enum\u003cstring>"},"scope":{"default":"PROGRAM","description":"Budget scope: PROGRAM (shared cap across all participants, the default) or PARTICIPANT (separate cap per recipient).","enum":["PROGRAM","PARTICIPANT"],"examples":["PROGRAM"],"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.2.scope","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX].oneOf.2","typeLabel":"Interval budget · object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.budgets.items.[INDEX]","typeLabel":"Lifetime budget · object | Cron budget · object | Interval budget · object"},"type":"array","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.budgets","typeLabel":"(Lifetime budget · object | Cron budget · object | Interval budget · object)[]"},"client_ref":{"description":"Request-local identity for a new rule. Must be unique across the change set.","examples":["holiday-purchase"],"maxLength":64,"minLength":1,"pattern":"^[A-Za-z][A-Za-z0-9_-]*$","type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.client_ref","typeLabel":"string"},"condition":{"description":"CEL condition that determines whether the rule matches.","examples":["event.type == 'purchase'"],"minLength":1,"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.condition","typeLabel":"string"},"name":{"description":"The name people see for the rule.","examples":["Holiday purchase reward"],"maxLength":255,"minLength":1,"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.name","typeLabel":"string"},"status":{"description":"Effective lifecycle status. Archived rules are represented by omitting them from the proposal.","enum":["ACTIVE","SUSPENDED"],"examples":["ACTIVE"],"type":"string","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.status","typeLabel":"enum\u003cstring>"},"stop_after_match":{"description":"Whether a successful match stops the remainder of this rule set.","examples":[false],"type":"boolean","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.stop_after_match","typeLabel":"boolean"},"active_from":{"description":"Inclusive RFC 3339 start of the rule's active window, checked against `event_timestamp`. Leaving it out of an existing rule clears it.","examples":["2027-01-01T00:00:00Z"],"format":"date-time","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.active_from","typeLabel":"string\u003cdate-time>"},"active_to":{"description":"Exclusive RFC 3339 end of the rule's active window, checked against `event_timestamp`. Leaving it out of an existing rule clears it.","examples":["2027-12-31T23:59:59Z"],"format":"date-time","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.active_to","typeLabel":"string\u003cdate-time>"},"description":{"description":"Rule description. Leaving it out of an existing rule clears it when the preview is applied.","maxLength":1000,"type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.description","typeLabel":"string"},"id":{"description":"Stable ID for an existing rule. Supply exactly one of id or client_ref.","examples":["c9f0f895-fb98-4b39-9f86-1e5a0d3e2b03"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1.id","typeLabel":"string\u003cuuid>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules.items.[INDEX]","typeLabel":"object"},"type":"array","isRequired":true,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1.rules","typeLabel":"object[]"},"id":{"description":"Stable ID for an existing rule set. Supply exactly one of id or client_ref.","examples":["d4735e3a-265e-4f16-b1a5-4c8e9d6f0a04"],"format":"uuid","type":"string","uniqueKey":"rule_sets.items.[INDEX].oneOf.1.id","typeLabel":"string\u003cuuid>"}},"additionalProperties":false,"uniqueKey":"rule_sets.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"rule_sets.items.[INDEX]","typeLabel":"object"},"minItems":1,"type":"array","isRequired":true,"uniqueKey":"rule_sets","typeLabel":"object[]"},"field_definitions":{"description":"Fields to save with the rule change.","items":{"description":"A field sent by an app on one event type, with its confirmed label and type.","properties":{"event_type":{"description":"The event.type value this definition applies to.","examples":["purchase"],"type":"string","uniqueKey":"field_definitions.items.[INDEX].event_type","typeLabel":"string"},"label":{"description":"The name people see for this field.","examples":["Amount"],"type":"string","uniqueKey":"field_definitions.items.[INDEX].label","typeLabel":"string"},"path":{"description":"The field path in the event payload.","examples":["event.amount"],"type":"string","uniqueKey":"field_definitions.items.[INDEX].path","typeLabel":"string"},"type":{"description":"The confirmed kind of value.","enum":["text","number","dollars","cents","bool","datetime","enum"],"type":"string","uniqueKey":"field_definitions.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"values":{"description":"Allowed values when the type is enum.","items":{"type":"string","uniqueKey":"field_definitions.items.[INDEX].values.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"field_definitions.items.[INDEX].values","typeLabel":"string[]"}},"type":"object","uniqueKey":"field_definitions.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"field_definitions","typeLabel":"object[]"},"source":{"additionalProperties":false,"description":"Optional caller category and correlation reference for audit history. Defaults to type api.","properties":{"type":{"description":"Which kind of caller is making the change; Scrip records it on the preview and the resulting revision.","enum":["API","DASHBOARD","MCP","SDK","CONFIG_AS_CODE","SCENARIO_PROMOTION"],"examples":["DASHBOARD"],"type":"string","isRequired":true,"uniqueKey":"source.type","typeLabel":"enum\u003cstring>"},"primary_rule_id":{"description":"Rule intentionally moved, when known.","format":"uuid","type":"string","uniqueKey":"source.primary_rule_id","typeLabel":"string\u003cuuid>"},"reference":{"description":"Optional caller-supplied correlation reference.","examples":["rules-editor-save"],"maxLength":255,"minLength":1,"type":"string","uniqueKey":"source.reference","typeLabel":"string"}},"required":["type"],"type":"object","uniqueKey":"source","typeLabel":"object"},"state_definitions":{"description":"Counters and tags to save with the rule change.","items":{"description":"A counter or tag written by a rule, with a confirmed label and unit.","properties":{"category":{"description":"A group name an app can filter by, for example `badges`. Lowercase letters, digits, `_` and `-`, at most 64 characters, starting with a letter or digit.","examples":["badges"],"type":"string","uniqueKey":"state_definitions.items.[INDEX].category","typeLabel":"string"},"description":{"description":"What the counter or tag means, for people. 1 to 1000 characters.","examples":["Made a first purchase."],"type":"string","uniqueKey":"state_definitions.items.[INDEX].description","typeLabel":"string"},"icon_url":{"description":"An HTTPS URL of an image an app can show for this key, for example a badge. At most 2048 characters.","examples":["https://example.com/badges/first-purchase.png"],"type":"string","uniqueKey":"state_definitions.items.[INDEX].icon_url","typeLabel":"string"},"key":{"description":"The counter key or tag name.","examples":["first_purchase"],"type":"string","uniqueKey":"state_definitions.items.[INDEX].key","typeLabel":"string"},"kind":{"description":"Whether the key is a counter or tag.","enum":["counter","tag"],"type":"string","uniqueKey":"state_definitions.items.[INDEX].kind","typeLabel":"enum\u003cstring>"},"label":{"description":"The name people see for this key.","examples":["First purchase"],"type":"string","uniqueKey":"state_definitions.items.[INDEX].label","typeLabel":"string"},"scope":{"description":"The entity class whose state is written.","enum":["participant","program","group"],"type":"string","uniqueKey":"state_definitions.items.[INDEX].scope","typeLabel":"enum\u003cstring>"},"unit":{"description":"The unit of a counter. Tags have no unit.","enum":["number","dollars","cents"],"type":"string","uniqueKey":"state_definitions.items.[INDEX].unit","typeLabel":"enum\u003cstring>"},"window":{"description":"The periods the counter adds up. Omit it for a counter that keeps one total or resets through `reset_period` or `reset_after`. You can add a window only to a counter key that no participant, program or group has yet, even at 0. Rules that write the counter cannot send `reset_period` or `reset_after`. A saved window cannot change.","properties":{"count":{"description":"Periods the counter adds up, including the current one. At most 90 for DAY, 52 for WEEK and 36 for MONTH.","examples":[12],"maximum":90,"minimum":1,"type":"integer","isRequired":true,"uniqueKey":"state_definitions.items.[INDEX].window.count","typeLabel":"integer"},"unit":{"description":"Length of one period. A WEEK starts on Monday.","enum":["DAY","WEEK","MONTH"],"examples":["MONTH"],"type":"string","isRequired":true,"uniqueKey":"state_definitions.items.[INDEX].window.unit","typeLabel":"enum\u003cstring>"},"timezone":{"description":"IANA time zone for period boundaries. Omit for UTC.","examples":["America/New_York"],"type":"string","uniqueKey":"state_definitions.items.[INDEX].window.timezone","typeLabel":"string"}},"required":["count","unit"],"type":"object","uniqueKey":"state_definitions.items.[INDEX].window","typeLabel":"object"}},"type":"object","uniqueKey":"state_definitions.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"state_definitions","typeLabel":"object[]"}},"required":["base_rule_configuration_version","rule_sets"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"base_rule_configuration_version":4,"rule_sets":[{"id":"d4735e3a-265e-4f16-b1a5-4c8e9d6f0a04","key":"default","name":"Default","rules":[{"actions":[{"amount":"${{ event.amount * 10 }}","asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","type":"CREDIT"}],"budgets":[],"condition":"event.type == 'purchase'","id":"c9f0f895-fb98-4b39-9f86-1e5a0d3e2b03","name":"Earn points on purchases","status":"ACTIVE","stop_after_match":false}]}]}}},"exampleType":"examples"}},"description":"Complete proposed rule configuration","required":true,"x-originalParamName":"request","exampleType":"examples"},"responses":{"c190644a-9dcb-4d3c-9792-59a7c1e795c4":{"content":{"application/json":{"examples":{"default":{"title":"default","value":{"base_rule_configuration_version":1,"diff":{"rule_sets":[{"change_type":"UPDATE","id":"c9f0f895-fb98-4b39-9f86-1e5a0d3e2b03"}],"rules":[{"change_type":"UPDATE","id":"c9f0f895-fb98-4b39-9f86-1e5a0d3e2b03"}]},"expires_at":"2027-01-15T10:30:00Z","field_definitions":[{"event_type":"purchase","label":"Amount","path":"event.amount","type":"text"}],"preview_token":"ahSToYq-OEn3S2Q1-qOP7iebMf_xahN0KciKUSygcKs","proposed_rule_configuration":{"base_rule_configuration_version":1,"rule_sets":[{"existing":true,"order":1,"rules":[{"actions":[{"amount":"${{ event.amount * 0.03 }}","asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","description":"Purchase reward","expires_in":"365d","matures_in":"30d","type":"CREDIT"}],"active_from":"2027-01-15T10:30:00Z","active_to":"2027-01-15T10:30:00Z","budgets":[{"asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","limit":"10000.00","scope":"PROGRAM"}],"existing":true,"order":1,"status":"ACTIVE","stop_after_match":true}]}]},"request_hash":"3a7bd3e2360a3d29eea436fcfb7e44c735d117c42d1c1835420b6b9942dd4f1b","source":{"reference":"rules-editor-save","source_revision":4,"type":"DASHBOARD"},"state_definitions":[{"category":"badges","description":"Made a first purchase.","icon_url":"https://example.com/badges/first-purchase.png","key":"first_purchase","kind":"counter","label":"First purchase","scope":"participant","unit":"number"}],"warnings":[{"code":"unknown_state_key","key":"purchaseCnt","kind":"counter","message":"unknown counter \"purchaseCnt\" on participant: no rule in this program writes it; did you mean \"purchase_count\"?","scope":"participant","suggestion":"purchase_count"}]}}},"schema":{"description":"The changes a proposed rule configuration would make, and the token and hash to apply it.","properties":{"base_rule_configuration_version":{"description":"Configuration version the preview was planned from.","type":"integer","uniqueKey":"base_rule_configuration_version","typeLabel":"integer"},"change_id":{"description":"The id of this change. The apply response and the revision history carry the same id.","format":"uuid","type":"string","uniqueKey":"change_id","typeLabel":"string\u003cuuid>"},"diff":{"description":"Resource-level changes between the base and proposed configurations.","properties":{"rule_sets":{"description":"Created, updated, moved, or otherwise changed rule sets.","items":{"description":"One rule set or rule that a change creates, updates, moves, suspends, activates, archives or removes.","properties":{"after":{"description":"Normalized resource state after the change.","uniqueKey":"diff.rule_sets.items.[INDEX].after","typeLabel":"any"},"before":{"description":"Normalized resource state before the change.","uniqueKey":"diff.rule_sets.items.[INDEX].before","typeLabel":"any"},"change_type":{"description":"How the resource changed.","enum":["CREATE","UPDATE","MOVE","STATUS","ARCHIVE","REMOVE"],"examples":["UPDATE"],"type":"string","uniqueKey":"diff.rule_sets.items.[INDEX].change_type","typeLabel":"enum\u003cstring>"},"client_ref":{"description":"Request-local identity when the resource is created by this change set.","type":"string","uniqueKey":"diff.rule_sets.items.[INDEX].client_ref","typeLabel":"string"},"fields":{"description":"Fields whose values changed.","items":{"type":"string","uniqueKey":"diff.rule_sets.items.[INDEX].fields.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"diff.rule_sets.items.[INDEX].fields","typeLabel":"string[]"},"id":{"description":"The id of the rule set or rule that changed.","examples":["c9f0f895-fb98-4b39-9f86-1e5a0d3e2b03"],"format":"uuid","type":"string","uniqueKey":"diff.rule_sets.items.[INDEX].id","typeLabel":"string\u003cuuid>"}},"type":"object","uniqueKey":"diff.rule_sets.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"diff.rule_sets","typeLabel":"object[]"},"rules":{"description":"Created, updated, moved, archived, or otherwise changed rules.","items":{"description":"One rule set or rule that a change creates, updates, moves, suspends, activates, archives or removes.","properties":{"after":{"description":"Normalized resource state after the change.","uniqueKey":"diff.rules.items.[INDEX].after","typeLabel":"any"},"before":{"description":"Normalized resource state before the change.","uniqueKey":"diff.rules.items.[INDEX].before","typeLabel":"any"},"change_type":{"description":"How the resource changed.","enum":["CREATE","UPDATE","MOVE","STATUS","ARCHIVE","REMOVE"],"examples":["UPDATE"],"type":"string","uniqueKey":"diff.rules.items.[INDEX].change_type","typeLabel":"enum\u003cstring>"},"client_ref":{"description":"Request-local identity when the resource is created by this change set.","type":"string","uniqueKey":"diff.rules.items.[INDEX].client_ref","typeLabel":"string"},"fields":{"description":"Fields whose values changed.","items":{"type":"string","uniqueKey":"diff.rules.items.[INDEX].fields.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"diff.rules.items.[INDEX].fields","typeLabel":"string[]"},"id":{"description":"The id of the rule set or rule that changed.","examples":["c9f0f895-fb98-4b39-9f86-1e5a0d3e2b03"],"format":"uuid","type":"string","uniqueKey":"diff.rules.items.[INDEX].id","typeLabel":"string\u003cuuid>"}},"type":"object","uniqueKey":"diff.rules.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"diff.rules","typeLabel":"object[]"}},"type":"object","uniqueKey":"diff","typeLabel":"object"},"expires_at":{"description":"When `preview_token` stops working.","format":"date-time","type":"string","uniqueKey":"expires_at","typeLabel":"string\u003cdate-time>"},"field_definitions":{"description":"Fields to save with the rule change.","items":{"description":"A field sent by an app on one event type, with its confirmed label and type.","properties":{"event_type":{"description":"The event.type value this definition applies to.","examples":["purchase"],"type":"string","uniqueKey":"field_definitions.items.[INDEX].event_type","typeLabel":"string"},"label":{"description":"The name people see for this field.","examples":["Amount"],"type":"string","uniqueKey":"field_definitions.items.[INDEX].label","typeLabel":"string"},"path":{"description":"The field path in the event payload.","examples":["event.amount"],"type":"string","uniqueKey":"field_definitions.items.[INDEX].path","typeLabel":"string"},"type":{"description":"The confirmed kind of value.","enum":["text","number","dollars","cents","bool","datetime","enum"],"type":"string","uniqueKey":"field_definitions.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"values":{"description":"Allowed values when the type is enum.","items":{"type":"string","uniqueKey":"field_definitions.items.[INDEX].values.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"field_definitions.items.[INDEX].values","typeLabel":"string[]"}},"type":"object","uniqueKey":"field_definitions.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"field_definitions","typeLabel":"object[]"},"local_references":{"additionalProperties":{"type":"string","uniqueKey":"local_references.additionalProperties","typeLabel":"string"},"description":"Mapping from each client_ref to its preview-allocated stable UUID.","type":"object","uniqueKey":"local_references","typeLabel":"object"},"preview_token":{"description":"The token to send to apply. Nobody else can use it, and it stops working at `expires_at`.","examples":["ahSToYq-OEn3S2Q1-qOP7iebMf_xahN0KciKUSygcKs"],"type":"string","uniqueKey":"preview_token","typeLabel":"string"},"proposed_rule_configuration":{"description":"The configuration that apply will save.","properties":{"base_rule_configuration_version":{"description":"The rule configuration version this plan was made from.","type":"integer","uniqueKey":"proposed_rule_configuration.base_rule_configuration_version","typeLabel":"integer"},"program_id":{"description":"The program the plan belongs to.","type":"string","uniqueKey":"proposed_rule_configuration.program_id","typeLabel":"string"},"rule_sets":{"description":"The rule sets, with their rules, that will exist after you apply the plan.","items":{"description":"A rule set as Scrip will save it after you apply a rule configuration, with its rules.","properties":{"client_ref":{"description":"The `client_ref` you sent for this rule set, when the rule set is new.","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].client_ref","typeLabel":"string"},"existing":{"description":"Whether the rule set already exists. It is false for a rule set that applying the change creates.","type":"boolean","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].existing","typeLabel":"boolean"},"id":{"description":"The id of the rule set. Scrip assigns it when the rule set is new.","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].id","typeLabel":"string"},"key":{"description":"The key of the rule set, unique in the program.","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].key","typeLabel":"string"},"name":{"description":"The name people see for the rule set.","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].name","typeLabel":"string"},"order":{"description":"The position of the rule set in the program. Lower numbers run first.","type":"integer","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].order","typeLabel":"integer"},"rules":{"description":"The rules in the rule set, in order.","items":{"description":"A rule as Scrip will save it after you apply a rule configuration.","properties":{"actions":{"description":"The actions Scrip takes when the rule matches.","items":{"oneOf":[{"type":"object","title":"CREDIT action","description":"Credit an asset to the target. `reference_id`, `expires_at`, `expires_in`, `matures_at`, and `matures_in` require a `LOT`-mode asset (`expires_at`/`expires_in` and `matures_at`/`matures_in` are each mutually exclusive).","required":["type","asset_id","amount"],"example":{"amount":"${{ event.amount * 0.03 }}","asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","description":"Purchase reward","expires_in":"365d","matures_in":"30d","type":"CREDIT"},"properties":{"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.0.amount","typeLabel":"string"},"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.0.asset_id","typeLabel":"string\u003cuuid>"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["CREDIT"],"examples":["CREDIT"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.0.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.0.description","typeLabel":"string"},"expires_at":{"description":"Expiration timestamp (RFC 3339) or ${{ }} CEL expression (LOT-mode assets on CREDIT, or SET_TIER). Mutually exclusive with expires_in.","examples":["2027-12-31T23:59:59Z"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.0.expires_at","typeLabel":"string"},"expires_in":{"description":"Expiration duration such as \"365d\" or ${{ }} CEL expression (LOT-mode assets on CREDIT, or SET_TIER). Mutually exclusive with expires_at.","examples":["365d"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.0.expires_in","typeLabel":"string"},"matures_at":{"description":"Vesting timestamp (RFC 3339) or ${{ }} CEL expression when credited rewards become spendable (LOT-mode assets on CREDIT only). Mutually exclusive with matures_in.","examples":["2027-12-31T23:59:59Z"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.0.matures_at","typeLabel":"string"},"matures_in":{"description":"Vesting duration such as \"30d\" or ${{ }} CEL expression when credited rewards become spendable (LOT-mode assets on CREDIT only). Mutually exclusive with matures_at.","examples":["30d"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.0.matures_in","typeLabel":"string"},"reference_id":{"description":"Correlation ID that links a hold to its release or pending rewards to their settlement (LOT-mode assets only). Static string or ${{ }} CEL expression.","examples":["${{ event.authorization_id }}"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.0.reference_id","typeLabel":"string"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.0.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.0.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.0.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.0.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.0.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.0.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.0.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.0.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.0.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.0.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.0.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.0.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.0.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.0.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.0.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.0","typeLabel":"CREDIT action · object"},{"type":"object","title":"DEBIT action","description":"Debit an asset from the target. Requires asset_id and a positive amount. allow_negative is accepted only on DEBIT, and only when the target is not a PROGRAM wallet.","required":["type","asset_id","amount"],"example":{"amount":"50","asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","type":"DEBIT"},"properties":{"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.1.amount","typeLabel":"string"},"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.1.asset_id","typeLabel":"string\u003cuuid>"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["DEBIT"],"examples":["DEBIT"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"allow_negative":{"description":"Allow debit to overdraw and create a negative balance when funds are insufficient.\nDEBIT only. Defaults to false.","examples":[false],"type":"boolean","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.1.allow_negative","typeLabel":"boolean"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.1.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.1.description","typeLabel":"string"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.1.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.1.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.1.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.1.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.1.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.1.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.1.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.1.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.1.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.1.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.1.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.1.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.1.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.1.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.1.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.1","typeLabel":"DEBIT action · object"},{"type":"object","title":"HOLD action","description":"Move value from `AVAILABLE` to `HELD`. Use `reference_id` to link the hold to a later `RELEASE`; this requires a LOT-mode asset.","required":["type","asset_id","amount"],"example":{"amount":"25","asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","reference_id":"${{ event.authorization_id }}","type":"HOLD"},"properties":{"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.2.amount","typeLabel":"string"},"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.2.asset_id","typeLabel":"string\u003cuuid>"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["HOLD"],"examples":["HOLD"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.2.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.2.description","typeLabel":"string"},"reference_id":{"description":"Correlation ID that links a hold to its release or pending rewards to their settlement (LOT-mode assets only). Static string or ${{ }} CEL expression.","examples":["${{ event.authorization_id }}"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.2.reference_id","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.2","typeLabel":"HOLD action · object"},{"type":"object","title":"RELEASE action","description":"Release held funds back to the available bucket. Provide amount for a partial release, or reference_id to release the correlated hold. At least one of the two is required.","required":["type","asset_id","amount"],"example":{"asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","reference_id":"${{ event.authorization_id }}","type":"RELEASE"},"properties":{"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.3.amount","typeLabel":"string"},"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.3.asset_id","typeLabel":"string\u003cuuid>"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["RELEASE"],"examples":["RELEASE"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.3.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.3.description","typeLabel":"string"},"reference_id":{"description":"Correlation ID that links a hold to its release or pending rewards to their settlement (LOT-mode assets only). Static string or ${{ }} CEL expression.","examples":["${{ event.authorization_id }}"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.3.reference_id","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.3","typeLabel":"RELEASE action · object"},{"type":"object","title":"RELEASE action","description":"Release held funds back to the available bucket. Provide amount for a partial release, or reference_id to release the correlated hold. At least one of the two is required.","required":["type","asset_id","reference_id"],"example":{"asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","reference_id":"${{ event.authorization_id }}","type":"RELEASE"},"properties":{"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.4.asset_id","typeLabel":"string\u003cuuid>"},"reference_id":{"description":"Correlation ID that links a hold to its release or pending rewards to their settlement (LOT-mode assets only). Static string or ${{ }} CEL expression.","examples":["${{ event.authorization_id }}"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.4.reference_id","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["RELEASE"],"examples":["RELEASE"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.4.amount","typeLabel":"string"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.4.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.4.description","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.4","typeLabel":"RELEASE action · object"},{"type":"object","title":"FORFEIT action","description":"Forfeit an amount out of the participant's balance. Requires asset_id and a positive amount. reference_id is not supported.","required":["type","asset_id","amount"],"example":{"amount":"10","asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","type":"FORFEIT"},"properties":{"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.5.amount","typeLabel":"string"},"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.5.asset_id","typeLabel":"string\u003cuuid>"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["FORFEIT"],"examples":["FORFEIT"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.5.type","typeLabel":"enum\u003cstring>"},"bucket":{"description":"The balance bucket the action targets. Defaults to AVAILABLE, or HELD for RELEASE.","enum":["AVAILABLE","HELD"],"examples":["AVAILABLE"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.5.bucket","typeLabel":"enum\u003cstring>"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.5.description","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.5","typeLabel":"FORFEIT action · object"},{"type":"object","title":"VOID_PENDING action","description":"Cancel pending rewards credited into `HELD` for `reference_id` and return the value to its source (`LOT`-mode assets only; omit `amount` to cancel all pending rewards under `reference_id`, or pass a positive amount to cancel part newest-first).","required":["type","asset_id","reference_id"],"example":{"asset_id":"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02","reference_id":"${{ event.authorization_id }}","type":"VOID_PENDING"},"properties":{"asset_id":{"description":"Asset to operate on","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.6.asset_id","typeLabel":"string\u003cuuid>"},"reference_id":{"description":"Correlation ID that links a hold to its release or pending rewards to their settlement (LOT-mode assets only). Static string or ${{ }} CEL expression.","examples":["${{ event.authorization_id }}"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.6.reference_id","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["VOID_PENDING"],"examples":["VOID_PENDING"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.6.type","typeLabel":"enum\u003cstring>"},"amount":{"description":"Positive numeric string (e.g. \"100\") or a ${{ }} CEL expression that evaluates to a positive number (e.g. \"${{ event.amount * 0.03 }}\").","examples":["${{ event.amount * 0.03 }}"],"pattern":"^(?:\\s*\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?\\s*|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*|[^$]*\\b[A-Za-z_][A-Za-z0-9_]*\\s*[.(\\[][^$]*)$","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.6.amount","typeLabel":"string"},"description":{"description":"Context string recorded on the ledger entry","examples":["Purchase reward"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.6.description","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.6","typeLabel":"VOID_PENDING action · object"},{"type":"object","title":"TAG action","description":"Add a tag to the target. tag is a literal name; it does not accept ${{ }} expressions.","required":["type","tag"],"example":{"tag":"VIP","type":"TAG"},"properties":{"tag":{"description":"Tag name to add (TAG) or remove (UNTAG)","examples":["VIP"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.7.tag","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["TAG"],"examples":["TAG"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.7.type","typeLabel":"enum\u003cstring>"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.7.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.7.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.7.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.7.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.7.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.7.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.7.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.7.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.7.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.7.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.7.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.7.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.7.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.7.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.7.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.7","typeLabel":"TAG action · object"},{"type":"object","title":"UNTAG action","description":"Remove a tag from the target. tag is a literal name; it does not accept ${{ }} expressions.","required":["type","tag"],"example":{"tag":"VIP","type":"UNTAG"},"properties":{"tag":{"description":"Tag name to add (TAG) or remove (UNTAG)","examples":["VIP"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.8.tag","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["UNTAG"],"examples":["UNTAG"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.8.type","typeLabel":"enum\u003cstring>"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.8.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.8.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.8.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.8.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.8.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.8.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.8.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.8.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.8.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.8.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.8.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.8.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.8.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.8.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.8.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.8","typeLabel":"UNTAG action · object"},{"type":"object","title":"COUNTER action","description":"Increment or set a counter on the target. operation defaults to INCREMENT; SET assigns value. key is a literal name; value is a static number or a ${{ }} expression resolving to one.","required":["type","key","value"],"example":{"key":"purchase_count","type":"COUNTER","value":"1"},"properties":{"key":{"description":"Counter or attribute key name","examples":["purchase_count"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.9.key","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["COUNTER"],"examples":["COUNTER"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.9.type","typeLabel":"enum\u003cstring>"},"value":{"description":"Numeric string (e.g. \"1\" or \"-1\") or a ${{ }} CEL expression that evaluates to a number.","examples":["1"],"pattern":"^(?:[-+]?(?:[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+)(?:[eE][-+]?[0-9]+)?|[\\s\\S]*\\$\\{\\{\\s*[^\\s][\\s\\S]*\\}\\}[\\s\\S]*)$","type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.9.value","typeLabel":"string"},"operation":{"default":"INCREMENT","description":"How COUNTER changes the value. INCREMENT adds value; SET assigns it. Defaults to INCREMENT.","enum":["INCREMENT","SET"],"examples":["SET"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.9.operation","typeLabel":"enum\u003cstring>"},"reset_after":{"description":"Auto-reset duration for COUNTER actions. The counter resets to 0 after this duration elapses since the last reset; w, d, h, m or s units (e.g. \"30d\", \"720h\"). Send an empty string to remove auto-reset.","examples":["30d"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.9.reset_after","typeLabel":"string"},"reset_period":{"description":"Calendar reset for COUNTER actions. Uses the event timestamp; defaults to UTC. Mutually exclusive with reset_after. NONE removes the calendar reset. Changing type or timezone starts an empty series.","properties":{"type":{"description":"DAY, Monday-based WEEK, MONTH, or NONE to remove the calendar reset.","enum":["DAY","WEEK","MONTH","NONE"],"examples":["MONTH"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.9.reset_period.type","typeLabel":"enum\u003cstring>"},"timezone":{"description":"IANA time zone used for period boundaries. Omit for UTC.","examples":["America/Chicago"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.9.reset_period.timezone","typeLabel":"string"}},"required":["type"],"type":"object","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.9.reset_period","typeLabel":"object"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.9.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.9.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.9.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.9.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.9.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.9.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.9.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.9.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.9.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.9.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.9.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.9.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.9.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.9.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.9.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.9","typeLabel":"COUNTER action · object"},{"type":"object","title":"SET_ATTRIBUTE action","description":"Set an attribute on the target. key is a literal name; value is a literal string or a ${{ }} expression.","required":["type","key","value"],"example":{"key":"region","type":"SET_ATTRIBUTE","value":"${{ event.region }}"},"properties":{"key":{"description":"Counter or attribute key name","examples":["purchase_count"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.10.key","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["SET_ATTRIBUTE"],"examples":["SET_ATTRIBUTE"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.10.type","typeLabel":"enum\u003cstring>"},"value":{"description":"COUNTER: static numeric string or ${{ }} CEL expression. SET_ATTRIBUTE: literal string or ${{ }} CEL expression.","examples":["1"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.10.value","typeLabel":"string"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.10.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.10.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.10.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.10.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.10.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.10.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.10.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.10.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.10.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.10.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.10.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.10.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.10.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.10.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.10.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.10","typeLabel":"SET_ATTRIBUTE action · object"},{"type":"object","title":"SET_TIER action","description":"Assign a tier level to the target. Use literal keys for `tier` and `level`. Set `expires_in` (a duration such as `90d`) or `expires_at` (an RFC 3339 timestamp) to give the assignment an expiration, not both.","required":["type","tier","level"],"example":{"level":"gold","tier":"status","type":"SET_TIER"},"properties":{"level":{"description":"Tier level within the track (e.g. \"gold\", \"platinum\")","examples":["gold"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.11.level","typeLabel":"string"},"tier":{"description":"Tier track name (e.g. \"status\", \"loyalty\")","examples":["status"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.11.tier","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["SET_TIER"],"examples":["SET_TIER"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.11.type","typeLabel":"enum\u003cstring>"},"expires_at":{"description":"Expiration timestamp (RFC 3339) or ${{ }} CEL expression (LOT-mode assets on CREDIT, or SET_TIER). Mutually exclusive with expires_in.","examples":["2027-12-31T23:59:59Z"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.11.expires_at","typeLabel":"string"},"expires_in":{"description":"Expiration duration such as \"365d\" or ${{ }} CEL expression (LOT-mode assets on CREDIT, or SET_TIER). Mutually exclusive with expires_at.","examples":["365d"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.11.expires_in","typeLabel":"string"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.11.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.11.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.11.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.11.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.11.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.11.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.11.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.11.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.11.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.11.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.11.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.11.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.11.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.11.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.11.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.11","typeLabel":"SET_TIER action · object"},{"type":"object","title":"SCHEDULE_EVENT action","description":"Schedule a delayed follow-up event for the participant, another targeted participant, or the program (`target.type: PROGRAM`). `event_type` names the event, and rules read it as `event.type`. String values in `event_data` may include `${{ }}` CEL expressions evaluated when this rule runs. `event_data` must not contain a `type` key.","required":["type","delay","event_type"],"example":{"delay":"24h","event_data":{"reason":"follow_up"},"event_type":"check_status","type":"SCHEDULE_EVENT"},"properties":{"delay":{"description":"How long to wait before firing the scheduled event; w, d, h, m or s units (e.g. \"24h\", \"7d\"). SCHEDULE_EVENT only.","examples":["24h"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.12.delay","typeLabel":"string"},"event_type":{"description":"The name of the event the action sends, such as `check_status`: 1 to 255 characters with no leading or trailing whitespace, a literal string. Rules read it as `event.type`. Required when you create or change the rule.","examples":["check_status"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.12.event_type","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["SCHEDULE_EVENT"],"examples":["SCHEDULE_EVENT"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.12.type","typeLabel":"enum\u003cstring>"},"event_data":{"description":"Event data submitted when the action fires. String values may embed ${{ }} CEL expressions\n(at any nesting depth, values only), resolved against the triggering rule's context when the action executes.\nIt must not contain a `type` key; send the name as event_type.","type":"object","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.12.event_data","typeLabel":"object"},"target":{"oneOf":[{"type":"object","title":"Static entity","description":"A known participant or group, addressed by its public ID. type defaults to PARTICIPANT; GROUP requires this shape. With type PROGRAM, Scrip ignores id and uses the wallet of the event's program.","required":["id"],"properties":{"id":{"description":"ID is the public entity ID: participant_id for PARTICIPANT, group_id for GROUP.","examples":["f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"],"format":"uuid","not":{"enum":["00000000-0000-0000-0000-000000000000"]},"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.12.target.oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","GROUP","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.12.target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.12.target.oneOf.0","typeLabel":"Static entity · object"},{"type":"object","title":"Dynamic participant by external_id","description":"Find a participant by your application's ID. The ${{ }} expression uses the same input as the condition and must return a non-empty external_id. PARTICIPANT only.","required":["external_id"],"properties":{"external_id":{"description":"Expression that finds a participant by your application's ID, such as \"${{ event.referrer_id }}\" or \"${{ participant.attribute.referred_by }}\".\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or participant_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ event.referrer_id }}"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.12.target.oneOf.1.external_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.12.target.oneOf.1.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.12.target.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.12.target.oneOf.1","typeLabel":"Dynamic participant by external_id · object"},{"type":"object","title":"Dynamic participant by participant_id","description":"Find a participant by Scrip UUID. The ${{ }} expression uses the same input as the condition and must return a participant UUID. PARTICIPANT only.","required":["participant_id"],"properties":{"participant_id":{"description":"Expression that finds a participant by Scrip UUID, such as \"${{ recipient.id }}\" for the event's named recipient.\nUses the same variables and state snapshot as the condition: event, participant, program, groups, recipient, and now.\nCannot be combined with id or external_id. A null or empty result fails the action; check for missing values in the condition.","examples":["${{ recipient.id }}"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.12.target.oneOf.2.participant_id","typeLabel":"string"},"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.12.target.oneOf.2.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.12.target.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.12.target.oneOf.2","typeLabel":"Dynamic participant by participant_id · object"},{"type":"object","title":"Contextual entity","description":"No identifier: PARTICIPANT resolves to the event's participant and PROGRAM resolves to the program wallet.","properties":{"id":{"description":"Always serialized. The nil UUID means no static entity ID was set on this target.","enum":["00000000-0000-0000-0000-000000000000"],"examples":["00000000-0000-0000-0000-000000000000"],"format":"uuid","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.12.target.oneOf.3.id","typeLabel":"enum\u003cstring>"},"type":{"description":"Type is the entity type: PARTICIPANT, GROUP, or PROGRAM.\nOptional when using id or dynamic ID fields (defaults to PARTICIPANT).","enum":["PARTICIPANT","PROGRAM"],"examples":["PARTICIPANT"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.12.target.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.12.target.oneOf.3","typeLabel":"Contextual entity · object"}],"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.12.target","typeLabel":"Static entity · object | Dynamic participant by external_id · object | Dynamic participant by participant_id · object | Contextual entity · object"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.12","typeLabel":"SCHEDULE_EVENT action · object"},{"type":"object","title":"BROADCAST action","description":"Send an event to every participant in the program. Delivery starts without a delay and runs asynchronously. `event_type` names the event, and rules read it as `event.type`. `event_data` must not contain a `type` key. Do not send `target`; the broadcast already reaches everyone. Use `SCHEDULE_EVENT` for a delayed event.","required":["type","event_type"],"example":{"event_data":{"season":"2027"},"event_type":"season_reset","type":"BROADCAST"},"properties":{"event_type":{"description":"The name of the event the action sends, such as `check_status`: 1 to 255 characters with no leading or trailing whitespace, a literal string. Rules read it as `event.type`. Required when you create or change the rule.","examples":["check_status"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.13.event_type","typeLabel":"string"},"type":{"description":"Action kind. Selects which other fields this action accepts.","enum":["BROADCAST"],"examples":["BROADCAST"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.13.type","typeLabel":"enum\u003cstring>"},"event_data":{"description":"Event data submitted when the action fires. String values may embed ${{ }} CEL expressions\n(at any nesting depth, values only), resolved against the triggering rule's context when the action executes.\nIt must not contain a `type` key; send the name as event_type.","type":"object","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.13.event_data","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX].oneOf.13","typeLabel":"BROADCAST action · object"}],"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions.items.[INDEX]","typeLabel":"CREDIT action · object · DEBIT action · object · HOLD action · object · RELEASE action · object · RELEASE action · object · FORFEIT action · object · VOID_PENDING action · object · TAG action · object · UNTAG action · object · COUNTER action · object · SET_ATTRIBUTE action · object · SET_TIER action · object · SCHEDULE_EVENT action · object · BROADCAST action · object"},"type":"array","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].actions","typeLabel":"CREDIT action · object · DEBIT action · object · HOLD action · object · RELEASE action · object · RELEASE action · object · FORFEIT action · object · VOID_PENDING action · object · TAG action · object · UNTAG action · object · COUNTER action · object · SET_ATTRIBUTE action · object · SET_TIER action · object · SCHEDULE_EVENT action · object · BROADCAST action · object[]"},"active_from":{"description":"The earliest event time the rule applies to, as an RFC 3339 timestamp.","format":"date-time","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].active_from","typeLabel":"string\u003cdate-time>"},"active_to":{"description":"The event time the rule stops applying, as an RFC 3339 timestamp.","format":"date-time","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].active_to","typeLabel":"string\u003cdate-time>"},"budgets":{"description":"The spending limits on the rule.","items":{"oneOf":[{"type":"object","title":"Lifetime budget","description":"Never resets. schedule_type, cron_expression, and interval are all rejected.","required":["asset_id","limit"],"properties":{"asset_id":{"description":"Asset this budget constrains","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].budgets.items.[INDEX].oneOf.0.asset_id","typeLabel":"string\u003cuuid>"},"limit":{"description":"Maximum amount allowed per budget period, as a positive decimal string (e.g. \"10000.00\").","examples":["10000.00"],"pattern":"^\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?$","type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].budgets.items.[INDEX].oneOf.0.limit","typeLabel":"string"},"scope":{"default":"PROGRAM","description":"Budget scope: PROGRAM (shared cap across all participants, the default) or PARTICIPANT (separate cap per recipient).","enum":["PROGRAM","PARTICIPANT"],"examples":["PROGRAM"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].budgets.items.[INDEX].oneOf.0.scope","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].budgets.items.[INDEX].oneOf.0","typeLabel":"Lifetime budget · object"},{"type":"object","title":"Cron budget","description":"Resets on a UTC cron schedule. For PARTICIPANT budgets, every participant resets at the same time. Requires cron_expression without a timezone. Do not send interval.","required":["asset_id","limit","schedule_type","cron_expression"],"properties":{"asset_id":{"description":"Asset this budget constrains","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].budgets.items.[INDEX].oneOf.1.asset_id","typeLabel":"string\u003cuuid>"},"cron_expression":{"description":"Cron expression for CRON-based resets, evaluated in UTC (e.g. \"0 0 1 * *\" for first of every month)","examples":["0 0 1 * *"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].budgets.items.[INDEX].oneOf.1.cron_expression","typeLabel":"string"},"limit":{"description":"Maximum amount allowed per budget period, as a positive decimal string (e.g. \"10000.00\").","examples":["10000.00"],"pattern":"^\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?$","type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].budgets.items.[INDEX].oneOf.1.limit","typeLabel":"string"},"schedule_type":{"description":"Reset schedule type: CRON or INTERVAL. Omit for lifetime (no-reset) budgets.","enum":["CRON"],"examples":["CRON"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].budgets.items.[INDEX].oneOf.1.schedule_type","typeLabel":"enum\u003cstring>"},"scope":{"default":"PROGRAM","description":"Budget scope: PROGRAM (shared cap across all participants, the default) or PARTICIPANT (separate cap per recipient).","enum":["PROGRAM","PARTICIPANT"],"examples":["PROGRAM"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].budgets.items.[INDEX].oneOf.1.scope","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].budgets.items.[INDEX].oneOf.1","typeLabel":"Cron budget · object"},{"type":"object","title":"Interval budget","description":"Resets after each interval. For PARTICIPANT budgets, each participant's period starts with their first credit from this rule. Requires interval. Do not send cron_expression.","required":["asset_id","limit","schedule_type","interval"],"properties":{"asset_id":{"description":"Asset this budget constrains","examples":["a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"],"format":"uuid","type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].budgets.items.[INDEX].oneOf.2.asset_id","typeLabel":"string\u003cuuid>"},"interval":{"description":"Duration for INTERVAL-based resets; w, d, h, m or s units (e.g. \"30d\", \"720h\")","examples":["30d"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].budgets.items.[INDEX].oneOf.2.interval","typeLabel":"string"},"limit":{"description":"Maximum amount allowed per budget period, as a positive decimal string (e.g. \"10000.00\").","examples":["10000.00"],"pattern":"^\\+?(?:0*[1-9][0-9]*(?:\\.[0-9]*)?|0*\\.[0-9]*[1-9][0-9]*)(?:[eE][-+]?[0-9]+)?$","type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].budgets.items.[INDEX].oneOf.2.limit","typeLabel":"string"},"schedule_type":{"description":"Reset schedule type: CRON or INTERVAL. Omit for lifetime (no-reset) budgets.","enum":["INTERVAL"],"examples":["INTERVAL"],"type":"string","isRequired":true,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].budgets.items.[INDEX].oneOf.2.schedule_type","typeLabel":"enum\u003cstring>"},"scope":{"default":"PROGRAM","description":"Budget scope: PROGRAM (shared cap across all participants, the default) or PARTICIPANT (separate cap per recipient).","enum":["PROGRAM","PARTICIPANT"],"examples":["PROGRAM"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].budgets.items.[INDEX].oneOf.2.scope","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].budgets.items.[INDEX].oneOf.2","typeLabel":"Interval budget · object"}],"uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].budgets.items.[INDEX]","typeLabel":"Lifetime budget · object | Cron budget · object | Interval budget · object"},"type":"array","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].budgets","typeLabel":"(Lifetime budget · object | Cron budget · object | Interval budget · object)[]"},"client_ref":{"description":"The `client_ref` you sent for this rule, when the rule is new.","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].client_ref","typeLabel":"string"},"condition":{"description":"The CEL condition that decides whether the rule matches an event.","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].condition","typeLabel":"string"},"description":{"description":"What the rule is for.","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].description","typeLabel":"string"},"existing":{"description":"Whether the rule already exists. It is false for a rule that applying the change creates.","type":"boolean","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].existing","typeLabel":"boolean"},"id":{"description":"The id of the rule. Scrip assigns it when the rule is new.","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].id","typeLabel":"string"},"name":{"description":"The name people see for the rule.","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].name","typeLabel":"string"},"order":{"description":"The position in the list. Lower numbers run first.","type":"integer","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].order","typeLabel":"integer"},"restore_archived":{"description":"Whether applying the change restores an archived rule with this name.","type":"boolean","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].restore_archived","typeLabel":"boolean"},"rule_set_id":{"description":"The rule set that holds the rule.","type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].rule_set_id","typeLabel":"string"},"status":{"description":"Whether the rule is ACTIVE or SUSPENDED.","enum":["ACTIVE","SUSPENDED"],"type":"string","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"stop_after_match":{"description":"Whether a match stops the rest of the rule set from running.","type":"boolean","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX].stop_after_match","typeLabel":"boolean"}},"type":"object","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX].rules","typeLabel":"object[]"}},"type":"object","uniqueKey":"proposed_rule_configuration.rule_sets.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"proposed_rule_configuration.rule_sets","typeLabel":"object[]"}},"type":"object","uniqueKey":"proposed_rule_configuration","typeLabel":"object"},"request_hash":{"description":"The hash to send to apply with `preview_token`.","examples":["3a7bd3e2360a3d29eea436fcfb7e44c735d117c42d1c1835420b6b9942dd4f1b"],"type":"string","uniqueKey":"request_hash","typeLabel":"string"},"source":{"description":"Who is making the change, as recorded with the preview.","properties":{"primary_rule_id":{"description":"Rule intentionally moved, when known.","format":"uuid","type":"string","uniqueKey":"source.primary_rule_id","typeLabel":"string\u003cuuid>"},"reference":{"description":"Correlation reference the caller supplied with the change, if any.","examples":["rules-editor-save"],"type":"string","uniqueKey":"source.reference","typeLabel":"string"},"source_revision":{"description":"Historical revision restored when the change was a forward rollback.","examples":[4],"type":"integer","uniqueKey":"source.source_revision","typeLabel":"integer"},"type":{"description":"Which kind of caller made the change.","enum":["API","DASHBOARD","MCP","SDK","CONFIG_AS_CODE","SCENARIO_PROMOTION"],"examples":["DASHBOARD"],"type":"string","uniqueKey":"source.type","typeLabel":"enum\u003cstring>"}},"type":"object","uniqueKey":"source","typeLabel":"object"},"state_definitions":{"description":"Counters and tags to save with the rule change.","items":{"description":"A counter or tag written by a rule, with a confirmed label and unit.","properties":{"category":{"description":"A group name an app can filter by, for example `badges`. Lowercase letters, digits, `_` and `-`, at most 64 characters, starting with a letter or digit.","examples":["badges"],"type":"string","uniqueKey":"state_definitions.items.[INDEX].category","typeLabel":"string"},"description":{"description":"What the counter or tag means, for people. 1 to 1000 characters.","examples":["Made a first purchase."],"type":"string","uniqueKey":"state_definitions.items.[INDEX].description","typeLabel":"string"},"icon_url":{"description":"An HTTPS URL of an image an app can show for this key, for example a badge. At most 2048 characters.","examples":["https://example.com/badges/first-purchase.png"],"type":"string","uniqueKey":"state_definitions.items.[INDEX].icon_url","typeLabel":"string"},"key":{"description":"The counter key or tag name.","examples":["first_purchase"],"type":"string","uniqueKey":"state_definitions.items.[INDEX].key","typeLabel":"string"},"kind":{"description":"Whether the key is a counter or tag.","enum":["counter","tag"],"type":"string","uniqueKey":"state_definitions.items.[INDEX].kind","typeLabel":"enum\u003cstring>"},"label":{"description":"The name people see for this key.","examples":["First purchase"],"type":"string","uniqueKey":"state_definitions.items.[INDEX].label","typeLabel":"string"},"scope":{"description":"The entity class whose state is written.","enum":["participant","program","group"],"type":"string","uniqueKey":"state_definitions.items.[INDEX].scope","typeLabel":"enum\u003cstring>"},"unit":{"description":"The unit of a counter. Tags have no unit.","enum":["number","dollars","cents"],"type":"string","uniqueKey":"state_definitions.items.[INDEX].unit","typeLabel":"enum\u003cstring>"},"window":{"description":"The periods the counter adds up. Omit it for a counter that keeps one total or resets through `reset_period` or `reset_after`. You can add a window only to a counter key that no participant, program or group has yet, even at 0. Rules that write the counter cannot send `reset_period` or `reset_after`. A saved window cannot change.","properties":{"count":{"description":"Periods the counter adds up, including the current one. At most 90 for DAY, 52 for WEEK and 36 for MONTH.","examples":[12],"maximum":90,"minimum":1,"type":"integer","isRequired":true,"uniqueKey":"state_definitions.items.[INDEX].window.count","typeLabel":"integer"},"unit":{"description":"Length of one period. A WEEK starts on Monday.","enum":["DAY","WEEK","MONTH"],"examples":["MONTH"],"type":"string","isRequired":true,"uniqueKey":"state_definitions.items.[INDEX].window.unit","typeLabel":"enum\u003cstring>"},"timezone":{"description":"IANA time zone for period boundaries. Omit for UTC.","examples":["America/New_York"],"type":"string","uniqueKey":"state_definitions.items.[INDEX].window.timezone","typeLabel":"string"}},"required":["count","unit"],"type":"object","uniqueKey":"state_definitions.items.[INDEX].window","typeLabel":"object"}},"type":"object","uniqueKey":"state_definitions.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"state_definitions","typeLabel":"object[]"},"warnings":{"description":"Non-blocking advisories found while validating the proposed configuration.","items":{"description":"A warning about a rule's condition or actions. It does not block the change. The usual cases are a reference to a key that no rule writes, and a reference to an event field that no recent event has.","properties":{"client_ref":{"description":"The `client_ref` of the rule, when the rule is new.","type":"string","uniqueKey":"warnings.items.[INDEX].client_ref","typeLabel":"string"},"code":{"description":"Warning code (e.g. `unknown_state_key`, `event_field_not_received`, `default_accessor_has`, `deprecated_alias`, `possible_unmarked_expression`, `missing_participant_context`).","examples":["unknown_state_key"],"type":"string","uniqueKey":"warnings.items.[INDEX].code","typeLabel":"string"},"event_type":{"description":"The event type the warning is about. Present only on an `event_field_not_received` warning for a rule whose condition checks `event.type` against fixed values. Omitted otherwise.","examples":["purchase"],"type":"string","uniqueKey":"warnings.items.[INDEX].event_type","typeLabel":"string"},"key":{"description":"The referenced key, as written in the condition. For an `event_field_not_received` warning it is the event field path.","examples":["purchaseCnt"],"type":"string","uniqueKey":"warnings.items.[INDEX].key","typeLabel":"string"},"kind":{"description":"Kind of reference: `counter`, `tag`, `attribute`, `alias`, or `field` for an event field.","examples":["counter"],"type":"string","uniqueKey":"warnings.items.[INDEX].kind","typeLabel":"string"},"message":{"description":"Human-readable explanation (includes the suggestion when one exists).","examples":["unknown counter \"purchaseCnt\" on participant: no rule in this program writes it; did you mean \"purchase_count\"?"],"type":"string","uniqueKey":"warnings.items.[INDEX].message","typeLabel":"string"},"rule_id":{"description":"Rule identity is populated for complete-configuration validation. The\nsingle-rule authoring surfaces omit these fields.","type":"string","uniqueKey":"warnings.items.[INDEX].rule_id","typeLabel":"string"},"rule_set_id":{"description":"The id of the rule set that holds the rule.","type":"string","uniqueKey":"warnings.items.[INDEX].rule_set_id","typeLabel":"string"},"scope":{"description":"Where the referenced state belongs: `participant`, `program`, `group`, or `event` for an event field.","examples":["participant"],"type":"string","uniqueKey":"warnings.items.[INDEX].scope","typeLabel":"string"},"suggestion":{"description":"Closest known key, when a near-match exists. Empty otherwise.","examples":["purchase_count"],"type":"string","uniqueKey":"warnings.items.[INDEX].suggestion","typeLabel":"string"}},"type":"object","uniqueKey":"warnings.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"warnings","typeLabel":"object[]"}},"type":"object","uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"The planned changes, and the token and hash to apply them","headers":{"X-RateLimit-Limit":{"description":"Request ceiling enforced by the API instance that served your request.","schema":{"examples":[1000],"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left before the instance that served your request returns 429.","schema":{"examples":[0],"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time in seconds when the instance that served your request has its full allowance again.","schema":{"examples":[1790000000],"type":"integer"}},"X-Request-ID":{"description":"The id of this request, the same `req_` value as `request_id` in an error body. Quote it when you contact support.","schema":{"examples":["req_6f1c2d7e-4b7a-4c0e-9c1a-2f3e4d5c6b7a"],"type":"string"}}},"exampleType":"examples"},"52f47bf3-9e39-4dde-8484-91322b9de5bd":{"content":{"application/json":{"examples":{"invalid_json":{"title":"invalid_json","summary":"The request body is not a valid JSON object.","value":{"code":"invalid_json","doc_url":"https://docs.scrip.dev/errors#invalid_json","message":"The request body is not a valid JSON object.","request_id":"req_6f1c2d7e-4b7a-4c0e-9c1a-2f3e4d5c6b7a","type":"invalid_request"}},"validation_error":{"title":"validation_error","summary":"One or more request fields are missing, malformed or not allowed; `fields` lists each one.","value":{"code":"validation_error","doc_url":"https://docs.scrip.dev/errors#validation_error","fields":[{"field":"base_rule_configuration_version","message":"Add the base_rule_configuration_version field.","reason":"required"}],"message":"Add the base_rule_configuration_version field.","param":"base_rule_configuration_version","request_id":"req_6f1c2d7e-4b7a-4c0e-9c1a-2f3e4d5c6b7a","type":"invalid_request"}}},"schema":{"additionalProperties":false,"description":"The error body for a 400 response: the request itself is wrong.","properties":{"code":{"description":"The specific reason for the error. Branch on this value, not on message","examples":["validation_error"],"type":"string","uniqueKey":"code","typeLabel":"string"},"details":{"additionalProperties":true,"description":"Extra context for this code, documented per code on the errors page","type":"object","uniqueKey":"details","typeLabel":"object"},"doc_url":{"description":"A link to this code on the errors page","examples":["https://docs.scrip.dev/errors#validation_error"],"type":"string","uniqueKey":"doc_url","typeLabel":"string"},"fields":{"description":"Every failing field on a validation_error, reported in one pass","items":{"description":"One failing field: its JSON name, why it failed, and what to change.","properties":{"field":{"description":"The JSON name of the failing field, with dots for nested fields","type":"string","uniqueKey":"fields.items.[INDEX].field","typeLabel":"string"},"message":{"description":"What to change in this field","type":"string","uniqueKey":"fields.items.[INDEX].message","typeLabel":"string"},"reason":{"description":"Why the field failed: required, invalid_format, out_of_range, unknown_field, not_allowed or too_long","examples":["required"],"type":"string","uniqueKey":"fields.items.[INDEX].reason","typeLabel":"string"}},"type":"object","uniqueKey":"fields.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"fields","typeLabel":"object[]"},"message":{"description":"What happened and what to do next, in one or two sentences","examples":["The request failed validation. Fix every field listed in fields."],"type":"string","uniqueKey":"message","typeLabel":"string"},"param":{"description":"The one request field at fault, when there is one","type":"string","uniqueKey":"param","typeLabel":"string"},"request_id":{"description":"The id of this request, the same req_ value as the X-Request-ID response header. Quote it when you contact support","examples":["req_6f1c2d7e-4b7a-4c0e-9c1a-2f3e4d5c6b7a"],"type":"string","uniqueKey":"request_id","typeLabel":"string"},"type":{"description":"The error family. It is one value per HTTP status","examples":["invalid_request"],"type":"string","uniqueKey":"type","typeLabel":"string"}},"type":"object","uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"The body or the proposed configuration is malformed (code: validation_error | invalid_json)","headers":{"X-RateLimit-Limit":{"description":"Request ceiling enforced by the API instance that served your request.","schema":{"examples":[1000],"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left before the instance that served your request returns 429.","schema":{"examples":[0],"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time in seconds when the instance that served your request has its full allowance again.","schema":{"examples":[1790000000],"type":"integer"}},"X-Request-ID":{"description":"The id of this request, the same `req_` value as `request_id` in an error body. Quote it when you contact support.","schema":{"examples":["req_6f1c2d7e-4b7a-4c0e-9c1a-2f3e4d5c6b7a"],"type":"string"}}},"exampleType":"examples"},"da530be2-18a3-46b3-9072-67fadd39a960":{"content":{"application/json":{"examples":{"authentication_required":{"title":"authentication_required","summary":"The request carried no API key or session token.","value":{"code":"authentication_required","doc_url":"https://docs.scrip.dev/errors#authentication_required","message":"The request carried no API key or session token.","request_id":"req_6f1c2d7e-4b7a-4c0e-9c1a-2f3e4d5c6b7a","type":"authentication"}},"invalid_api_key":{"title":"invalid_api_key","summary":"The API key in the `Authorization` header is unknown, revoked or needs rotation.","value":{"code":"invalid_api_key","doc_url":"https://docs.scrip.dev/errors#invalid_api_key","message":"The API key in the Authorization header is unknown, revoked or needs rotation.","request_id":"req_6f1c2d7e-4b7a-4c0e-9c1a-2f3e4d5c6b7a","type":"authentication"}}},"schema":{"description":"The error body for a 401 response: the API key is missing or not valid.","properties":{"code":{"description":"The specific reason for the error. Branch on this value, not on message","examples":["invalid_api_key"],"type":"string","uniqueKey":"code","typeLabel":"string"},"details":{"additionalProperties":true,"description":"Extra context for this code, documented per code on the errors page","type":"object","uniqueKey":"details","typeLabel":"object"},"doc_url":{"description":"A link to this code on the errors page","examples":["https://docs.scrip.dev/errors#invalid_api_key"],"type":"string","uniqueKey":"doc_url","typeLabel":"string"},"fields":{"description":"Every failing field on a validation_error, reported in one pass","items":{"description":"One failing field: its JSON name, why it failed, and what to change.","properties":{"field":{"description":"The JSON name of the failing field, with dots for nested fields","type":"string","uniqueKey":"fields.items.[INDEX].field","typeLabel":"string"},"message":{"description":"What to change in this field","type":"string","uniqueKey":"fields.items.[INDEX].message","typeLabel":"string"},"reason":{"description":"Why the field failed: required, invalid_format, out_of_range, unknown_field, not_allowed or too_long","examples":["required"],"type":"string","uniqueKey":"fields.items.[INDEX].reason","typeLabel":"string"}},"type":"object","uniqueKey":"fields.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"fields","typeLabel":"object[]"},"message":{"description":"What happened and what to do next, in one or two sentences","examples":["The API key in the Authorization header is unknown, revoked or needs rotation."],"type":"string","uniqueKey":"message","typeLabel":"string"},"param":{"description":"The one request field at fault, when there is one","type":"string","uniqueKey":"param","typeLabel":"string"},"request_id":{"description":"The id of this request, the same req_ value as the X-Request-ID response header. Quote it when you contact support","examples":["req_6f1c2d7e-4b7a-4c0e-9c1a-2f3e4d5c6b7a"],"type":"string","uniqueKey":"request_id","typeLabel":"string"},"type":{"description":"The error family. It is one value per HTTP status","examples":["authentication"],"type":"string","uniqueKey":"type","typeLabel":"string"}},"type":"object","uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"The API key is missing or not valid. See [Authentication](https://docs.scrip.dev/authentication).","headers":{"WWW-Authenticate":{"description":"The authentication challenge: `Bearer realm=\"scrip\"`. Send your API key as a bearer token.","schema":{"examples":["Bearer realm=\"scrip\""],"type":"string"}},"X-Request-ID":{"description":"The id of this request, the same `req_` value as `request_id` in an error body. Quote it when you contact support.","schema":{"examples":["req_6f1c2d7e-4b7a-4c0e-9c1a-2f3e4d5c6b7a"],"type":"string"}}},"exampleType":"examples"},"2a9f6463-12ca-46c6-9cdc-23ba28479253":{"content":{"application/json":{"examples":{"insufficient_permissions":{"title":"insufficient_permissions","summary":"Your dashboard role does not allow this action.","value":{"code":"insufficient_permissions","doc_url":"https://docs.scrip.dev/errors#insufficient_permissions","message":"Your dashboard role does not allow this action.","request_id":"req_6f1c2d7e-4b7a-4c0e-9c1a-2f3e4d5c6b7a","type":"permission"}}},"schema":{"description":"The error body for a 403 response: the caller is not allowed to do this.","properties":{"code":{"description":"The specific reason for the error. Branch on this value, not on message","examples":["insufficient_permissions"],"type":"string","uniqueKey":"code","typeLabel":"string"},"details":{"additionalProperties":true,"description":"Extra context for this code, documented per code on the errors page","type":"object","uniqueKey":"details","typeLabel":"object"},"doc_url":{"description":"A link to this code on the errors page","examples":["https://docs.scrip.dev/errors#insufficient_permissions"],"type":"string","uniqueKey":"doc_url","typeLabel":"string"},"fields":{"description":"Every failing field on a validation_error, reported in one pass","items":{"description":"One failing field: its JSON name, why it failed, and what to change.","properties":{"field":{"description":"The JSON name of the failing field, with dots for nested fields","type":"string","uniqueKey":"fields.items.[INDEX].field","typeLabel":"string"},"message":{"description":"What to change in this field","type":"string","uniqueKey":"fields.items.[INDEX].message","typeLabel":"string"},"reason":{"description":"Why the field failed: required, invalid_format, out_of_range, unknown_field, not_allowed or too_long","examples":["required"],"type":"string","uniqueKey":"fields.items.[INDEX].reason","typeLabel":"string"}},"type":"object","uniqueKey":"fields.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"fields","typeLabel":"object[]"},"message":{"description":"What happened and what to do next, in one or two sentences","examples":["Your dashboard role does not allow this action."],"type":"string","uniqueKey":"message","typeLabel":"string"},"param":{"description":"The one request field at fault, when there is one","type":"string","uniqueKey":"param","typeLabel":"string"},"request_id":{"description":"The id of this request, the same req_ value as the X-Request-ID response header. Quote it when you contact support","examples":["req_6f1c2d7e-4b7a-4c0e-9c1a-2f3e4d5c6b7a"],"type":"string","uniqueKey":"request_id","typeLabel":"string"},"type":{"description":"The error family. It is one value per HTTP status","examples":["permission"],"type":"string","uniqueKey":"type","typeLabel":"string"}},"type":"object","uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"The caller is not allowed to do this.","headers":{"X-RateLimit-Limit":{"description":"Request ceiling enforced by the API instance that served your request.","schema":{"examples":[1000],"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left before the instance that served your request returns 429.","schema":{"examples":[0],"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time in seconds when the instance that served your request has its full allowance again.","schema":{"examples":[1790000000],"type":"integer"}},"X-Request-ID":{"description":"The id of this request, the same `req_` value as `request_id` in an error body. Quote it when you contact support.","schema":{"examples":["req_6f1c2d7e-4b7a-4c0e-9c1a-2f3e4d5c6b7a"],"type":"string"}}},"exampleType":"examples"},"7a33c339-a780-44f5-b953-bb2730dff9e8":{"content":{"application/json":{"examples":{"program_not_found":{"title":"program_not_found","summary":"No program with that id exists in your organization.","value":{"code":"program_not_found","doc_url":"https://docs.scrip.dev/errors#program_not_found","message":"No program with that id exists in your organization.","request_id":"req_6f1c2d7e-4b7a-4c0e-9c1a-2f3e4d5c6b7a","type":"not_found"}}},"schema":{"description":"The error body for a 404 response: the resource does not exist in your organization.","properties":{"code":{"description":"The specific reason for the error. Branch on this value, not on message","examples":["participant_not_found"],"type":"string","uniqueKey":"code","typeLabel":"string"},"details":{"additionalProperties":true,"description":"Extra context for this code, documented per code on the errors page","type":"object","uniqueKey":"details","typeLabel":"object"},"doc_url":{"description":"A link to this code on the errors page","examples":["https://docs.scrip.dev/errors#participant_not_found"],"type":"string","uniqueKey":"doc_url","typeLabel":"string"},"fields":{"description":"Every failing field on a validation_error, reported in one pass","items":{"description":"One failing field: its JSON name, why it failed, and what to change.","properties":{"field":{"description":"The JSON name of the failing field, with dots for nested fields","type":"string","uniqueKey":"fields.items.[INDEX].field","typeLabel":"string"},"message":{"description":"What to change in this field","type":"string","uniqueKey":"fields.items.[INDEX].message","typeLabel":"string"},"reason":{"description":"Why the field failed: required, invalid_format, out_of_range, unknown_field, not_allowed or too_long","examples":["required"],"type":"string","uniqueKey":"fields.items.[INDEX].reason","typeLabel":"string"}},"type":"object","uniqueKey":"fields.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"fields","typeLabel":"object[]"},"message":{"description":"What happened and what to do next, in one or two sentences","examples":["The participant was not found."],"type":"string","uniqueKey":"message","typeLabel":"string"},"param":{"description":"The one request field at fault, when there is one","type":"string","uniqueKey":"param","typeLabel":"string"},"request_id":{"description":"The id of this request, the same req_ value as the X-Request-ID response header. Quote it when you contact support","examples":["req_6f1c2d7e-4b7a-4c0e-9c1a-2f3e4d5c6b7a"],"type":"string","uniqueKey":"request_id","typeLabel":"string"},"type":{"description":"The error family. It is one value per HTTP status","examples":["not_found"],"type":"string","uniqueKey":"type","typeLabel":"string"}},"type":"object","uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"Program not found (code: program_not_found)","headers":{"X-RateLimit-Limit":{"description":"Request ceiling enforced by the API instance that served your request.","schema":{"examples":[1000],"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left before the instance that served your request returns 429.","schema":{"examples":[0],"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time in seconds when the instance that served your request has its full allowance again.","schema":{"examples":[1790000000],"type":"integer"}},"X-Request-ID":{"description":"The id of this request, the same `req_` value as `request_id` in an error body. Quote it when you contact support.","schema":{"examples":["req_6f1c2d7e-4b7a-4c0e-9c1a-2f3e4d5c6b7a"],"type":"string"}}},"exampleType":"examples"},"3c2352eb-088b-4079-bd7a-6e44290133e5":{"content":{"application/json":{"examples":{"counter_window_has_values":{"title":"counter_window_has_values","summary":"A participant, program or group already has this counter, even at 0, so its definition cannot add a `window`. `details` names the key.","value":{"code":"counter_window_has_values","doc_url":"https://docs.scrip.dev/errors#counter_window_has_values","message":"A participant, program or group already has this counter, even at 0, so its definition cannot add a window. details names the key.","request_id":"req_6f1c2d7e-4b7a-4c0e-9c1a-2f3e4d5c6b7a","type":"conflict"}},"counter_window_rule_policy":{"title":"counter_window_rule_policy","summary":"Rules send `reset_period` or `reset_after` for a counter whose definition declares a `window`. `details` lists them.","value":{"code":"counter_window_rule_policy","doc_url":"https://docs.scrip.dev/errors#counter_window_rule_policy","message":"Rules send reset_period or reset_after for a counter whose definition declares a window. details lists them.","request_id":"req_6f1c2d7e-4b7a-4c0e-9c1a-2f3e4d5c6b7a","type":"conflict"}},"field_definition_conflict":{"title":"field_definition_conflict","summary":"A field or state key has a conflicting saved definition.","value":{"code":"field_definition_conflict","doc_url":"https://docs.scrip.dev/errors#field_definition_conflict","message":"A field or state key has a conflicting saved definition.","request_id":"req_6f1c2d7e-4b7a-4c0e-9c1a-2f3e4d5c6b7a","type":"conflict"}},"program_archived":{"title":"program_archived","summary":"The program is `ARCHIVED` and does not accept configuration changes.","value":{"code":"program_archived","doc_url":"https://docs.scrip.dev/errors#program_archived","message":"The program is ARCHIVED and does not accept configuration changes.","request_id":"req_6f1c2d7e-4b7a-4c0e-9c1a-2f3e4d5c6b7a","type":"conflict"}},"rule_configuration_version_conflict":{"title":"rule_configuration_version_conflict","summary":"The rule configuration version you sent is behind the live version, which `details.current_version` shows.","value":{"code":"rule_configuration_version_conflict","details":{"current_version":4,"expected_version":3,"instruction":"Fetch the rule configuration, replan the change, and send it again."},"doc_url":"https://docs.scrip.dev/errors#rule_configuration_version_conflict","message":"The rule configuration version you sent is behind the live version, which details.current_version shows.","request_id":"req_6f1c2d7e-4b7a-4c0e-9c1a-2f3e4d5c6b7a","type":"conflict"}}},"schema":{"description":"The error body for a 409 response when the rule configuration changed after you read it.","properties":{"code":{"description":"The specific reason for the error. Branch on this value, not on message","examples":["rule_configuration_version_conflict"],"type":"string","uniqueKey":"code","typeLabel":"string"},"details":{"description":"The version the request was planned against and the current version","properties":{"current_version":{"description":"The version the rule configuration is at now","examples":[4],"type":"integer","uniqueKey":"details.current_version","typeLabel":"integer"},"expected_version":{"description":"The rule configuration version your request was planned against","examples":[3],"type":"integer","uniqueKey":"details.expected_version","typeLabel":"integer"},"instruction":{"description":"What to do next","examples":["Fetch the rule configuration, replan the change, and send it again."],"type":"string","uniqueKey":"details.instruction","typeLabel":"string"}},"type":"object","uniqueKey":"details","typeLabel":"object"},"doc_url":{"description":"A link to this code on the errors page","examples":["https://docs.scrip.dev/errors#rule_configuration_version_conflict"],"type":"string","uniqueKey":"doc_url","typeLabel":"string"},"message":{"description":"What happened and what to do next, in one or two sentences","examples":["The rule configuration changed after this request was planned. Fetch it again and replan."],"type":"string","uniqueKey":"message","typeLabel":"string"},"request_id":{"description":"The id of this request, the same req_ value as the X-Request-ID response header. Quote it when you contact support","examples":["req_6f1c2d7e-4b7a-4c0e-9c1a-2f3e4d5c6b7a"],"type":"string","uniqueKey":"request_id","typeLabel":"string"},"type":{"description":"The error family. It is one value per HTTP status","examples":["conflict"],"type":"string","uniqueKey":"type","typeLabel":"string"}},"type":"object","uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"base_rule_configuration_version is behind the live version, a definition conflicts, a counter window cannot be added, or the program is archived (code: rule_configuration_version_conflict | field_definition_conflict | counter_window_has_values | counter_window_rule_policy | program_archived)","headers":{"X-RateLimit-Limit":{"description":"Request ceiling enforced by the API instance that served your request.","schema":{"examples":[1000],"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left before the instance that served your request returns 429.","schema":{"examples":[0],"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time in seconds when the instance that served your request has its full allowance again.","schema":{"examples":[1790000000],"type":"integer"}},"X-Request-ID":{"description":"The id of this request, the same `req_` value as `request_id` in an error body. Quote it when you contact support.","schema":{"examples":["req_6f1c2d7e-4b7a-4c0e-9c1a-2f3e4d5c6b7a"],"type":"string"}}},"exampleType":"examples"},"6bba78a8-6514-4a87-95af-fc557301370f":{"content":{"application/json":{"examples":{"rate_limit_exceeded":{"title":"rate_limit_exceeded","summary":"Your organization sent more requests than the rate limit allows.","value":{"code":"rate_limit_exceeded","doc_url":"https://docs.scrip.dev/errors#rate_limit_exceeded","message":"Your organization sent more requests than the rate limit allows.","request_id":"req_6f1c2d7e-4b7a-4c0e-9c1a-2f3e4d5c6b7a","type":"rate_limited"}}},"schema":{"additionalProperties":false,"description":"The error body for a 429 response: you sent more requests than the rate limit allows.","properties":{"code":{"description":"The specific reason for the error. Branch on this value, not on message","examples":["rate_limit_exceeded"],"type":"string","uniqueKey":"code","typeLabel":"string"},"details":{"additionalProperties":true,"description":"Extra context for this code, documented per code on the errors page","type":"object","uniqueKey":"details","typeLabel":"object"},"doc_url":{"description":"A link to this code on the errors page","examples":["https://docs.scrip.dev/errors#rate_limit_exceeded"],"type":"string","uniqueKey":"doc_url","typeLabel":"string"},"fields":{"description":"Every failing field on a validation_error, reported in one pass","items":{"description":"One failing field: its JSON name, why it failed, and what to change.","properties":{"field":{"description":"The JSON name of the failing field, with dots for nested fields","type":"string","uniqueKey":"fields.items.[INDEX].field","typeLabel":"string"},"message":{"description":"What to change in this field","type":"string","uniqueKey":"fields.items.[INDEX].message","typeLabel":"string"},"reason":{"description":"Why the field failed: required, invalid_format, out_of_range, unknown_field, not_allowed or too_long","examples":["required"],"type":"string","uniqueKey":"fields.items.[INDEX].reason","typeLabel":"string"}},"type":"object","uniqueKey":"fields.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"fields","typeLabel":"object[]"},"message":{"description":"What happened and what to do next, in one or two sentences","examples":["Rate limit exceeded. Wait for the Retry-After delay, then retry."],"type":"string","uniqueKey":"message","typeLabel":"string"},"param":{"description":"The one request field at fault, when there is one","type":"string","uniqueKey":"param","typeLabel":"string"},"request_id":{"description":"The id of this request, the same req_ value as the X-Request-ID response header. Quote it when you contact support","examples":["req_6f1c2d7e-4b7a-4c0e-9c1a-2f3e4d5c6b7a"],"type":"string","uniqueKey":"request_id","typeLabel":"string"},"type":{"description":"The error family. It is one value per HTTP status","examples":["rate_limited"],"type":"string","uniqueKey":"type","typeLabel":"string"}},"type":"object","uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"Too many requests. Wait the number of seconds in the `Retry-After` header, then retry. See [Limits and durations](https://docs.scrip.dev/limits#rate-limits).","headers":{"Retry-After":{"description":"Seconds to wait before you retry, rounded up to a whole second.","schema":{"examples":[1],"type":"integer"}},"X-RateLimit-Limit":{"description":"Request ceiling enforced by the API instance that served your request.","schema":{"examples":[1000],"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left before the instance that served your request returns 429.","schema":{"examples":[0],"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time in seconds when the instance that served your request has its full allowance again.","schema":{"examples":[1790000000],"type":"integer"}},"X-Request-ID":{"description":"The id of this request, the same `req_` value as `request_id` in an error body. Quote it when you contact support.","schema":{"examples":["req_6f1c2d7e-4b7a-4c0e-9c1a-2f3e4d5c6b7a"],"type":"string"}}},"exampleType":"examples"},"4904cea1-55cb-4aee-b5d1-65de2b937578":{"content":{"application/json":{"examples":{"internal_error":{"title":"internal_error","summary":"Scrip hit an unexpected error while handling the request.","value":{"code":"internal_error","doc_url":"https://docs.scrip.dev/errors#internal_error","message":"Scrip hit an unexpected error while handling the request.","request_id":"req_6f1c2d7e-4b7a-4c0e-9c1a-2f3e4d5c6b7a","type":"internal"}}},"schema":{"description":"The error body for a 500 response: something failed on Scrip's side. Quote the `request_id` when you contact support.","properties":{"code":{"description":"The specific reason for the error. Branch on this value, not on message","examples":["internal_error"],"type":"string","uniqueKey":"code","typeLabel":"string"},"doc_url":{"description":"A link to this code on the errors page","examples":["https://docs.scrip.dev/errors#internal_error"],"type":"string","uniqueKey":"doc_url","typeLabel":"string"},"message":{"description":"What happened and what to do next, in one or two sentences","examples":["An internal error occurred. Retry the request; if it keeps failing, contact support with the request_id."],"type":"string","uniqueKey":"message","typeLabel":"string"},"request_id":{"description":"The id of this request, the same req_ value as the X-Request-ID response header. Quote it when you contact support","examples":["req_6f1c2d7e-4b7a-4c0e-9c1a-2f3e4d5c6b7a"],"type":"string","uniqueKey":"request_id","typeLabel":"string"},"type":{"description":"The error family. It is one value per HTTP status","examples":["internal"],"type":"string","uniqueKey":"type","typeLabel":"string"}},"type":"object","uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"Something failed on Scrip's side. Retry the request, and quote `request_id` if it keeps failing. [Errors](https://docs.scrip.dev/errors) lists every code, and the [API introduction](https://docs.scrip.dev/api-reference/introduction) describes the error format.","headers":{"X-RateLimit-Limit":{"description":"Request ceiling enforced by the API instance that served your request.","schema":{"examples":[1000],"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left before the instance that served your request returns 429.","schema":{"examples":[0],"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time in seconds when the instance that served your request has its full allowance again.","schema":{"examples":[1790000000],"type":"integer"}},"X-Request-ID":{"description":"The id of this request, the same `req_` value as `request_id` in an error body. Quote it when you contact support.","schema":{"examples":["req_6f1c2d7e-4b7a-4c0e-9c1a-2f3e4d5c6b7a"],"type":"string"}}},"exampleType":"examples"}},"security":{"9fac2388-aa7d-4f1e-b130-11c312d3d1ee":{"BearerAuth":{"description":"Send your API key as `Authorization: Bearer \u003ckey>`.","scheme":"bearer","type":"http","x-default":"sk_...","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"121dbe0f-d156-4944-97e6-6130832ce07d":{"description":"Production","url":"https://api.scrip.dev"},"507f9d07-4c8d-4877-8525-1f10e203f59b":{"description":"Sandbox","url":"https://api-sandbox.scrip.dev"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"description":"Send your API key as `Authorization: Bearer \u003ckey>`.","scheme":"bearer","type":"http","x-default":"sk_...","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Send your API key as `Authorization: Bearer \u003ckey>`.","format":"bearer","default":"sk_...","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"openapi.json"},"subdomain":"scrip","siteName":"Scrip Docs","title":"Preview a rule-configuration change set - Scrip Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-20T19:28:27.752Z","originalFileLocation":"api-reference/rules/preview-rule-configuration.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Preview a proposed rule configuration and return its planned changes, warnings, and preview token.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Scrip Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/scrip/ypIeIHGanLHv-iFW/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/scrip/ypIeIHGanLHv-iFW/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/scrip/ypIeIHGanLHv-iFW/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/scrip/ypIeIHGanLHv-iFW/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/scrip/ypIeIHGanLHv-iFW/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/scrip/ypIeIHGanLHv-iFW/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/scrip/ypIeIHGanLHv-iFW/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/scrip/ypIeIHGanLHv-iFW/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/scrip/ypIeIHGanLHv-iFW/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Preview a rule-configuration change set - Scrip Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Preview a proposed rule configuration and return its planned changes, warnings, and preview token.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Scrip Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.scrip.dev/api-reference/rules/preview-rule-configuration\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://scrip.mintlify.site/_mintlify/api/og/v2?division=Rule+configuration\u0026amp;title=Preview+a+rule-configuration+change+set\u0026amp;description=Preview+a+proposed+rule+configuration+and+return+its+planned+changes%2C+warnings%2C+and+preview+token.\u0026amp;theme=e6fcc7a0ae01d31eb0ec9668\u0026amp;signature=1a2195ddf63dfc59659292c2558835779b6cd74065dca319c1a228b0ae997a51\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Preview a rule-configuration change set - Scrip Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Preview a proposed rule configuration and return its planned changes, warnings, and preview token.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://scrip.mintlify.site/_mintlify/api/og/v2?division=Rule+configuration\u0026amp;title=Preview+a+rule-configuration+change+set\u0026amp;description=Preview+a+proposed+rule+configuration+and+return+its+planned+changes%2C+warnings%2C+and+preview+token.\u0026amp;theme=e6fcc7a0ae01d31eb0ec9668\u0026amp;signature=1a2195ddf63dfc59659292c2558835779b6cd74065dca319c1a228b0ae997a51\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/scrip/ypIeIHGanLHv-iFW/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Scrip Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FF4F0C\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.scrip.dev/api-reference/rules/preview-rule-configuration\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/rules/preview-rule-configuration.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.scrip.dev/#organization\",\"name\":\"Scrip Docs\",\"url\":\"https://docs.scrip.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/scrip/T3s-FRIg6XhFktLB/logo/scrip-logo-light.svg?fit=max\u0026auto=format\u0026n=T3s-FRIg6XhFktLB\u0026q=85\u0026s=b63bc2ffbb52895c7ca415bc1c30e9c6\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.scrip.dev#website\",\"name\":\"Scrip Docs\",\"url\":\"https://docs.scrip.dev\",\"publisher\":{\"@id\":\"https://docs.scrip.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.scrip.dev/api-reference/rules/preview-rule-configuration#webpage\",\"url\":\"https://docs.scrip.dev/api-reference/rules/preview-rule-configuration\",\"name\":\"Preview a rule-configuration change set\",\"description\":\"Preview a proposed rule configuration and return its planned changes, warnings, and preview token.\",\"dateModified\":\"2026-11-20T19:28:27.752Z\",\"isPartOf\":{\"@id\":\"https://docs.scrip.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.scrip.dev/api-reference/rules/preview-rule-configuration#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.scrip.dev/api-reference/rules/preview-rule-configuration#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.scrip.dev/api-reference/programs/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Rules\",\"item\":\"https://docs.scrip.dev/api-reference/rules/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Rule configuration\",\"item\":\"https://docs.scrip.dev/api-reference/rules/get-rule-configuration\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Preview a rule-configuration change set\",\"item\":\"https://docs.scrip.dev/api-reference/rules/preview-rule-configuration\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.scrip.dev/api-reference/rules/preview-rule-configuration#apireference\",\"headline\":\"Preview a rule-configuration change set\",\"name\":\"Preview a rule-configuration change set\",\"description\":\"Preview a proposed rule configuration and return its planned changes, warnings, and preview token.\",\"url\":\"https://docs.scrip.dev/api-reference/rules/preview-rule-configuration\",\"mainEntityOfPage\":{\"@id\":\"https://docs.scrip.dev/api-reference/rules/preview-rule-configuration#webpage\"},\"dateModified\":\"2026-11-20T19:28:27.752Z\",\"publisher\":{\"@id\":\"https://docs.scrip.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.scrip.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Scrip Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Scrip Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/rules/preview-rule-configuration.md","siteName":"Scrip Docs","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/introduction"}]},{"tab":"Examples","pages":[{"title":"Examples","href":"/examples/common-patterns"}]},{"tab":"API Reference","groups":[{"group":"Scrip API","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Data model","href":"/api-reference/data-model"}]},{"group":"Endpoints","pages":[{"group":"Programs","expanded":false,"pages":[{"title":"Programs","sidebarTitle":"Overview","href":"/api-reference/programs/overview"},{"title":"List programs","openapi":"GET /v1/programs","href":"/api-reference/programs/list-programs"},{"title":"Create a program","openapi":"POST /v1/programs","href":"/api-reference/programs/create-a-program"},{"title":"Get a program","openapi":"GET /v1/programs/{program_id}","href":"/api-reference/programs/get-a-program"},{"title":"Update a program","openapi":"PATCH /v1/programs/{program_id}","href":"/api-reference/programs/update-a-program"},{"group":"Linked assets","expanded":false,"pages":[{"title":"List program assets","openapi":"GET /v1/programs/{program_id}/assets","href":"/api-reference/programs/list-program-assets"},{"title":"Link asset to program","openapi":"POST /v1/programs/{program_id}/assets","href":"/api-reference/programs/link-asset-to-program"}]},{"group":"Wallet","expanded":false,"pages":[{"title":"Get program balances","openapi":"GET /v1/programs/{program_id}/balances","href":"/api-reference/programs/get-program-balance"},{"title":"Fund a program","openapi":"POST /v1/programs/{program_id}/balances/fund","href":"/api-reference/programs/fund-a-program"},{"title":"Burn program balance","openapi":"POST /v1/programs/{program_id}/assets/{asset_id}/burn","href":"/api-reference/programs/burn-program-balance"},{"title":"Get program wallet transaction history","openapi":"GET /v1/programs/{program_id}/history","href":"/api-reference/programs/get-program-wallet-transaction-history"},{"title":"Get program statement","openapi":"GET /v1/programs/{program_id}/statement","href":"/api-reference/programs/get-program-statement"}]}]},{"group":"Folders","expanded":false,"pages":[{"title":"Folders","sidebarTitle":"Overview","href":"/api-reference/folders/overview"},{"title":"List folders","openapi":"GET /v1/folders","href":"/api-reference/folders/list-folders"},{"title":"Create a folder","openapi":"POST /v1/folders","href":"/api-reference/folders/create-a-folder"},{"title":"Get a folder","openapi":"GET /v1/folders/{folder_id}","href":"/api-reference/folders/get-a-folder"},{"title":"Update a folder","openapi":"PATCH /v1/folders/{folder_id}","href":"/api-reference/folders/update-a-folder"}]},{"group":"Assets","expanded":false,"pages":[{"title":"Assets","sidebarTitle":"Overview","href":"/api-reference/assets/overview"},{"title":"List assets","openapi":"GET /v1/assets","href":"/api-reference/assets/list-assets"},{"title":"Create an asset","openapi":"POST /v1/assets","href":"/api-reference/assets/create-an-asset"},{"title":"Get an asset","openapi":"GET /v1/assets/{asset_id}","href":"/api-reference/assets/get-an-asset"},{"title":"Update an asset","openapi":"PATCH /v1/assets/{asset_id}","href":"/api-reference/assets/update-an-asset"}]},{"group":"Participants","expanded":false,"pages":[{"title":"Participants","sidebarTitle":"Overview","href":"/api-reference/participants/overview"},{"title":"List participants","openapi":"GET /v1/participants","href":"/api-reference/participants/list-or-get-participants"},{"title":"Create a participant","openapi":"POST /v1/participants","href":"/api-reference/participants/create-a-participant"},{"title":"Get a participant","openapi":"GET /v1/participants/{participant_id}","href":"/api-reference/participants/get-a-participant-by-internal-id"},{"title":"Update a participant","openapi":"PATCH /v1/participants/{participant_id}","href":"/api-reference/participants/update-a-participant"},{"group":"Balances","expanded":false,"pages":[{"title":"Get participant balances","openapi":"GET /v1/participants/{participant_id}/balances","href":"/api-reference/participants/get-participant-balances"},{"title":"Apply a balance operation","openapi":"POST /v1/participants/{participant_id}/balances/operations","href":"/api-reference/participants/apply-a-balance-operation-to-a-participant"},{"title":"List participant lots","openapi":"GET /v1/participants/{participant_id}/balances/lots","href":"/api-reference/participants/list-participant-lots"}]},{"group":"Activity","expanded":false,"pages":[{"title":"Get participant transaction history","openapi":"GET /v1/participants/{participant_id}/activity/history","href":"/api-reference/participants/get-participant-transaction-history"},{"title":"Get participant statement","openapi":"GET /v1/participants/{participant_id}/statement","href":"/api-reference/participants/get-participant-statement"},{"title":"List participant events","openapi":"GET /v1/participants/{participant_id}/activity/events","href":"/api-reference/participants/list-participant-events"},{"title":"Get participant state history","openapi":"GET /v1/participants/{participant_id}/activity/state-history","href":"/api-reference/participants/get-participant-state-history"}]}]},{"group":"Groups","expanded":false,"pages":[{"title":"Groups","sidebarTitle":"Overview","href":"/api-reference/groups/overview"},{"title":"List groups","openapi":"GET /v1/groups","href":"/api-reference/groups/list-groups"},{"title":"Create a group","openapi":"POST /v1/groups","href":"/api-reference/groups/create-a-group"},{"title":"Get a group","openapi":"GET /v1/groups/{group_id}","href":"/api-reference/groups/get-a-group"},{"title":"Update a group","openapi":"PATCH /v1/groups/{group_id}","href":"/api-reference/groups/update-a-group"},{"group":"Members","expanded":false,"pages":[{"title":"List group members","openapi":"GET /v1/groups/{group_id}/members","href":"/api-reference/groups/list-group-members"},{"title":"Add a member to a group","openapi":"POST /v1/groups/{group_id}/members","href":"/api-reference/groups/add-a-member-to-a-group"},{"title":"Remove a member from a group","openapi":"DELETE /v1/groups/{group_id}/members/{participant_id}","href":"/api-reference/groups/remove-a-member-from-a-group"},{"title":"Update group member role","openapi":"PATCH /v1/groups/{group_id}/members/{participant_id}","href":"/api-reference/groups/update-group-member-role"}]},{"group":"Balances","expanded":false,"pages":[{"title":"Get group balances","openapi":"GET /v1/groups/{group_id}/balances","href":"/api-reference/groups/get-group-balances"},{"title":"Apply a group balance operation","openapi":"POST /v1/groups/{group_id}/balances/operations","href":"/api-reference/groups/apply-a-balance-operation-to-a-group"},{"title":"List group lots","openapi":"GET /v1/groups/{group_id}/balances/lots","href":"/api-reference/groups/list-group-lots"}]},{"group":"Activity","expanded":false,"pages":[{"title":"Get group statement","openapi":"GET /v1/groups/{group_id}/statement","href":"/api-reference/groups/get-group-statement"},{"title":"Get group state history","openapi":"GET /v1/groups/{group_id}/activity/state-history","href":"/api-reference/groups/get-group-state-history"}]}]},{"group":"State definitions","expanded":false,"pages":[{"title":"State definitions","sidebarTitle":"Overview","href":"/api-reference/state-definitions/overview"},{"title":"List counter and tag definitions","openapi":"GET /v1/state-definitions","href":"/api-reference/rules/list-state-definitions"},{"title":"Set a counter or tag's display fields","openapi":"PUT /v1/state-definitions/{scope}/{kind}/{key}","href":"/api-reference/rules/set-state-definition-display-fields"}]},{"group":"Rules","expanded":false,"pages":[{"title":"Rules","sidebarTitle":"Overview","href":"/api-reference/rules/overview"},{"group":"Individual rules","expanded":false,"pages":[{"title":"List rules","openapi":"GET /v1/rules","href":"/api-reference/rules/list-rules"},{"title":"Create a rule","openapi":"POST /v1/rules","href":"/api-reference/rules/create-a-rule"},{"title":"Get a rule","openapi":"GET /v1/rules/{rule_id}","href":"/api-reference/rules/get-a-rule"},{"title":"Update a rule","openapi":"PATCH /v1/rules/{rule_id}","href":"/api-reference/rules/update-a-rule"},{"title":"Move a rule","openapi":"POST /v1/rules/{rule_id}/move","href":"/api-reference/rules/move-a-rule"},{"title":"Validate a CEL condition","openapi":"POST /v1/rules/validate","href":"/api-reference/rules/validate-a-cel-condition"},{"title":"Simulate a rule","openapi":"POST /v1/rules/{rule_id}/simulate","href":"/api-reference/rules/simulate-a-rule"},{"title":"Simulate a draft rule","openapi":"POST /v1/rules/simulate","href":"/api-reference/rules/simulate-a-draft-rule"}]},{"group":"Rule sets","expanded":false,"pages":[{"title":"Rule sets","sidebarTitle":"Overview","href":"/api-reference/rule-sets/overview"},{"title":"List rule sets","openapi":"GET /v1/programs/{program_id}/rule-sets","href":"/api-reference/rule-sets/list-rule-sets"},{"title":"Create a rule set","openapi":"POST /v1/programs/{program_id}/rule-sets","href":"/api-reference/rule-sets/create-a-rule-set"},{"title":"Get a rule set","openapi":"GET /v1/programs/{program_id}/rule-sets/{rule_set_id}","href":"/api-reference/rule-sets/get-a-rule-set"},{"title":"Update a rule set","openapi":"PATCH /v1/programs/{program_id}/rule-sets/{rule_set_id}","href":"/api-reference/rule-sets/update-a-rule-set"},{"title":"Reorder all rule sets","openapi":"PUT /v1/programs/{program_id}/rule-sets/order","href":"/api-reference/rules/reorder-rule-sets"},{"title":"Move a rule set","openapi":"POST /v1/programs/{program_id}/rule-sets/{rule_set_id}/move","href":"/api-reference/rules/move-a-rule-set"},{"title":"Reorder rules in a rule set","openapi":"PUT /v1/programs/{program_id}/rule-sets/{rule_set_id}/rules/order","href":"/api-reference/rules/reorder-rules-in-a-rule-set"}]},{"group":"Rule configuration","expanded":false,"pages":[{"title":"Get rule configuration","openapi":"GET /v1/programs/{program_id}/rule-configuration","href":"/api-reference/rules/get-rule-configuration"},{"title":"Analyze a rule configuration","openapi":"POST /v1/programs/{program_id}/rule-configuration/analysis","description":"Analyze a program's current or proposed rule configuration for potential issues.","href":"/api-reference/rules/analyze-rule-configuration"},{"title":"Preview a rule-configuration change set","openapi":"POST /v1/programs/{program_id}/rule-configuration/preview","href":"/api-reference/rules/preview-rule-configuration"},{"title":"Apply a rule-configuration change set","openapi":"POST /v1/programs/{program_id}/rule-configuration/apply","description":"Apply a previewed rule configuration change set atomically.","href":"/api-reference/rules/apply-rule-configuration"},{"title":"List rule-configuration revisions","openapi":"GET /v1/programs/{program_id}/rule-configuration/revisions","href":"/api-reference/rules/list-rule-configuration-revisions"},{"title":"Get a rule-configuration revision","openapi":"GET /v1/programs/{program_id}/rule-configuration/revisions/{version}","href":"/api-reference/rules/get-rule-configuration-revision"},{"title":"Preview a rule-configuration rollback","openapi":"POST /v1/programs/{program_id}/rule-configuration/revisions/{version}/rollback/preview","href":"/api-reference/rules/preview-rule-configuration-rollback"}]}]},{"group":"Events","expanded":false,"pages":[{"title":"Events","sidebarTitle":"Overview","href":"/api-reference/events/overview"},{"title":"List events","openapi":"GET /v1/events","href":"/api-reference/events/list-events"},{"title":"Ingest an event","openapi":"POST /v1/events","href":"/api-reference/events/ingest-an-event"},{"title":"Ingest events in batch","openapi":"POST /v1/events/batch","href":"/api-reference/events/ingest-events-in-batch"},{"title":"Get an event","openapi":"GET /v1/events/{event_id}","href":"/api-reference/events/get-an-event"},{"title":"Get event impact","openapi":"GET /v1/events/{event_id}/impact","href":"/api-reference/events/get-event-impact"},{"title":"Retry failed events","openapi":"POST /v1/events/retry","href":"/api-reference/events/retry-failed-events"},{"title":"Reverse an event's awards","openapi":"POST /v1/events/{event_id}/reverse","href":"/api-reference/events/reverse-an-event"}]},{"group":"Tiers","expanded":false,"pages":[{"title":"Tiers","sidebarTitle":"Overview","href":"/api-reference/tiers/overview"},{"group":"Tier definitions","expanded":false,"pages":[{"title":"List tiers","openapi":"GET /v1/programs/{program_id}/tiers","href":"/api-reference/tiers/list-tiers"},{"title":"Create a tier","openapi":"POST /v1/programs/{program_id}/tiers","href":"/api-reference/tiers/create-a-tier"},{"title":"Get a tier","openapi":"GET /v1/programs/{program_id}/tiers/{tier_key}","href":"/api-reference/tiers/get-a-tier"},{"title":"Update a tier","openapi":"PATCH /v1/programs/{program_id}/tiers/{tier_key}","href":"/api-reference/tiers/update-a-tier"}]},{"group":"Participant tiers","expanded":false,"pages":[{"title":"List participant tiers","openapi":"GET /v1/participants/{participant_id}/state/tiers","href":"/api-reference/tiers/list-participant-tiers"},{"title":"Get participant tier","openapi":"GET /v1/participants/{participant_id}/state/tiers/{tier_key}","href":"/api-reference/tiers/get-participant-tier"},{"title":"Set participant tier","openapi":"PUT /v1/participants/{participant_id}/state/tiers/{tier_key}","href":"/api-reference/tiers/set-participant-tier"},{"title":"Remove participant tier","openapi":"DELETE /v1/participants/{participant_id}/state/tiers/{tier_key}","href":"/api-reference/tiers/remove-participant-tier"}]}]},{"group":"Rewards","expanded":false,"pages":[{"title":"Rewards","sidebarTitle":"Overview","href":"/api-reference/rewards/overview"},{"title":"List rewards","openapi":"GET /v1/programs/{program_id}/rewards","href":"/api-reference/rewards/list-rewards"},{"title":"Create a reward","openapi":"POST /v1/programs/{program_id}/rewards","href":"/api-reference/rewards/create-a-reward"},{"title":"Get a reward","openapi":"GET /v1/programs/{program_id}/rewards/{reward_id}","href":"/api-reference/rewards/get-reward"},{"title":"Update a reward","openapi":"PATCH /v1/programs/{program_id}/rewards/{reward_id}","href":"/api-reference/rewards/update-a-reward"},{"title":"List reward redemptions","openapi":"GET /v1/programs/{program_id}/rewards/{reward_id}/redemptions","href":"/api-reference/rewards/list-reward-redemptions"}]},{"group":"Redemptions","expanded":false,"pages":[{"title":"Redemptions","sidebarTitle":"Overview","href":"/api-reference/redemptions/overview"},{"title":"Redeem an amount","openapi":"POST /v1/participants/{participant_id}/redemptions","href":"/api-reference/redemptions/redeem-points-assets"},{"title":"Redeem a catalog item","openapi":"POST /v1/participants/{participant_id}/redemptions/items","href":"/api-reference/redemptions/redeem-a-catalog-item"},{"title":"List participant redemptions","openapi":"GET /v1/participants/{participant_id}/redemptions","href":"/api-reference/redemptions/list-participant-redemptions"},{"title":"Get a redemption","openapi":"GET /v1/redemptions/{redemption_id}","href":"/api-reference/redemptions/get-redemption"},{"title":"Create a claim link","openapi":"POST /v1/redemptions/{redemption_id}/claim-link","href":"/api-reference/redemptions/create-a-claim-link"},{"title":"Complete a pending redemption","openapi":"POST /v1/redemptions/{redemption_id}/complete","href":"/api-reference/redemptions/complete-a-pending-redemption"},{"title":"Fail a pending redemption","openapi":"POST /v1/redemptions/{redemption_id}/fail","href":"/api-reference/redemptions/fail-a-pending-redemption"},{"title":"Cancel a pending redemption","openapi":"POST /v1/redemptions/{redemption_id}/cancel","href":"/api-reference/redemptions/cancel-a-redemption"},{"title":"Reverse a redemption","openapi":"POST /v1/redemptions/{redemption_id}/reverse","href":"/api-reference/redemptions/reverse-a-redemption"}]},{"group":"Gift cards","expanded":false,"pages":[{"title":"Gift cards","sidebarTitle":"Overview","href":"/api-reference/gift-cards/overview"},{"group":"Fulfillment accounts","expanded":false,"pages":[{"title":"List fulfillment accounts","openapi":"GET /v1/fulfillment-accounts","href":"/api-reference/gift-cards/list-fulfillment-accounts"},{"title":"Get a fulfillment account","openapi":"GET /v1/fulfillment-accounts/{fulfillment_account_id}","href":"/api-reference/gift-cards/get-a-fulfillment-account"},{"title":"List fulfillment products","openapi":"GET /v1/fulfillment-accounts/{fulfillment_account_id}/products","href":"/api-reference/gift-cards/list-products"}]},{"group":"Reward sources","expanded":false,"pages":[{"title":"List reward sources","openapi":"GET /v1/programs/{program_id}/reward-sources","href":"/api-reference/gift-cards/list-reward-sources"},{"title":"Create a reward source","openapi":"POST /v1/programs/{program_id}/reward-sources","href":"/api-reference/gift-cards/create-a-reward-source"},{"title":"Get a reward source","openapi":"GET /v1/programs/{program_id}/reward-sources/{reward_source_id}","href":"/api-reference/gift-cards/get-a-reward-source"},{"title":"Update a reward source","openapi":"PATCH /v1/programs/{program_id}/reward-sources/{reward_source_id}","href":"/api-reference/gift-cards/update-a-reward-source"}]},{"group":"Product settings","expanded":false,"pages":[{"title":"List product settings","openapi":"GET /v1/programs/{program_id}/reward-sources/{reward_source_id}/product-settings","href":"/api-reference/gift-cards/list-product-settings"},{"title":"Set product settings","openapi":"PUT /v1/programs/{program_id}/reward-sources/{reward_source_id}/product-settings/{product_id}","href":"/api-reference/gift-cards/set-product-settings"},{"title":"Clear product settings","openapi":"DELETE /v1/programs/{program_id}/reward-sources/{reward_source_id}/product-settings/{product_id}","href":"/api-reference/gift-cards/clear-product-settings"}]}]},{"group":"Transfers","expanded":false,"pages":[{"title":"Transfers","sidebarTitle":"Overview","href":"/api-reference/transfers/overview"},{"title":"Create a transfer","openapi":"POST /v1/transfers","href":"/api-reference/transfers/create-a-transfer"}]},{"group":"Automations","expanded":false,"pages":[{"title":"Automations","sidebarTitle":"Overview","href":"/api-reference/automations/overview"},{"title":"List automations","openapi":"GET /v1/programs/{program_id}/automations","href":"/api-reference/automations/list-automations"},{"title":"Create an automation","openapi":"POST /v1/programs/{program_id}/automations","href":"/api-reference/automations/create-an-automation"},{"title":"Get an automation","openapi":"GET /v1/programs/{program_id}/automations/{automation_id}","href":"/api-reference/automations/get-an-automation"},{"title":"Update an automation","openapi":"PATCH /v1/programs/{program_id}/automations/{automation_id}","href":"/api-reference/automations/update-an-automation"},{"title":"Cancel an automation","openapi":"POST /v1/programs/{program_id}/automations/{automation_id}/cancel","href":"/api-reference/automations/cancel-an-automation"},{"title":"List automation subscriptions","openapi":"GET /v1/programs/{program_id}/automations/{automation_id}/subscriptions","href":"/api-reference/automations/list-automation-subscriptions"}]},{"group":"Reporting","expanded":false,"pages":[{"title":"Reporting","sidebarTitle":"Overview","href":"/api-reference/reporting/overview"},{"title":"Get liability report","openapi":"GET /v1/reports/liability","href":"/api-reference/reporting/get-liability-report"},{"title":"Get liability rollforward","openapi":"GET /v1/reports/liability-rollforward","href":"/api-reference/reporting/get-liability-rollforward"},{"title":"Get redemption attribution","openapi":"GET /v1/reports/redemption-attribution","href":"/api-reference/reporting/get-redemption-attribution"},{"title":"Get expiration schedule","openapi":"GET /v1/reports/expiration-schedule","href":"/api-reference/reporting/get-expiration-schedule"},{"title":"Get ledger summary","openapi":"GET /v1/reports/ledger-summary","href":"/api-reference/reporting/get-ledger-summary"},{"title":"Get program activity","openapi":"GET /v1/reports/program-activity","href":"/api-reference/reporting/get-program-activity"},{"title":"Get fulfillment cost report","openapi":"GET /v1/reports/fulfillment-cost","href":"/api-reference/reporting/get-fulfillment-cost-report"},{"title":"List failure causes","openapi":"GET /v1/reports/failure-causes","href":"/api-reference/reporting/list-failure-causes"},{"group":"Journal entries","expanded":false,"pages":[{"title":"List journal entries","openapi":"GET /v1/journal-entries","href":"/api-reference/reporting/list-journal-entries"},{"title":"Get a journal entry","openapi":"GET /v1/journal-entries/{journal_entry_id}","href":"/api-reference/reporting/get-a-journal-entry"}]}]},{"group":"Webhooks","expanded":false,"pages":[{"title":"Webhooks","sidebarTitle":"Overview","href":"/api-reference/webhooks/overview"},{"title":"Event payloads","sidebarTitle":"Event payloads","href":"/api-reference/webhooks/event-payloads"},{"title":"List webhook event types","openapi":"GET /v1/webhook-event-types","href":"/api-reference/webhooks/list-webhook-event-types"},{"group":"Endpoints","expanded":false,"pages":[{"title":"List webhook endpoints","openapi":"GET /v1/webhook-endpoints","href":"/api-reference/webhooks/list-webhook-endpoints"},{"title":"Create a webhook endpoint","openapi":"POST /v1/webhook-endpoints","href":"/api-reference/webhooks/create-a-webhook-endpoint"},{"title":"Get a webhook endpoint","openapi":"GET /v1/webhook-endpoints/{webhook_endpoint_id}","href":"/api-reference/webhooks/get-a-webhook-endpoint"},{"title":"Update a webhook endpoint","openapi":"PATCH /v1/webhook-endpoints/{webhook_endpoint_id}","href":"/api-reference/webhooks/update-a-webhook-endpoint"},{"title":"Rotate endpoint secret","openapi":"POST /v1/webhook-endpoints/{webhook_endpoint_id}/rotate-secret","href":"/api-reference/webhooks/rotate-webhook-endpoint-secret"},{"title":"Send a test webhook","openapi":"POST /v1/webhook-endpoints/{webhook_endpoint_id}/test","href":"/api-reference/webhooks/send-a-test-webhook"}]},{"group":"Deliveries","expanded":false,"pages":[{"title":"List deliveries","openapi":"GET /v1/webhook-endpoints/{webhook_endpoint_id}/deliveries","href":"/api-reference/webhooks/list-webhook-deliveries"},{"title":"Get a delivery","openapi":"GET /v1/webhook-deliveries/{delivery_id}","href":"/api-reference/webhooks/get-a-webhook-delivery"},{"title":"Resend a delivery","openapi":"POST /v1/webhook-deliveries/{delivery_id}/resend","href":"/api-reference/webhooks/resend-a-webhook-delivery"}]}]}]}]},{"tab":"MCP","pages":[{"title":"MCP","href":"/mcp/overview"}]}]},"basePath":"","title":"Preview a rule-configuration change set - Scrip Docs","deploymentId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","buildId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-x4vGgoST.js","snippetPresets-BGlsYH49.js","utils-D225GpYB.js","style-to-object-BY3JEAdk.js","utils-fb7dxv-3.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-D0sNzoEe.js","conditional-requirements-CFM0id0Q.js","cloneDeep-C4iMfrOs.js","_Uint8Array-DDor1j2p.js","isObject-FP1Yky1u.js","ApiExamples-Bw_TWYoP.js","usePlaygroundInputsStore-DLRpNM_Z.js","shallow-DCZ_mvT2.js","isEqual-BZMHHGz2.js","CodeSnippets-CqYNT6UN.js","CodeSnippet-AsYrl7_f.js","getApiPlaygroundDisplay-B1HdZsAn.js","Page-COAeG2by.js","DynamicMarkdown-Bg54PExR.js","SectionHeading-BVOfbSTS.js","icon-Bwg0LftJ.js","MethodPill-ETXe5J4U.js","getPastedJson-6m1DH7UM.js","Check2Icon-Bz4v4IkN.js","axios-CsQoIw0U.js","Markdown-CYkmN8yk.js","AssistantPageLink-BZUrxqjy.js","dist-C-58LlaB.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}