sendwend 0.0.1 → 12.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +2065 -22
- package/dist/_virtual/_rolldown/runtime.cjs +22 -0
- package/dist/apns-relay.cjs +91 -0
- package/dist/apns-relay.cjs.map +1 -0
- package/dist/apns-relay.d.cts +26 -0
- package/dist/apns-relay.d.cts.map +1 -0
- package/dist/apns-relay.d.mts +26 -0
- package/dist/apns-relay.d.mts.map +1 -0
- package/dist/apns-relay.mjs +90 -0
- package/dist/apns-relay.mjs.map +1 -0
- package/dist/apns.cjs +215 -0
- package/dist/apns.cjs.map +1 -0
- package/dist/apns.d.cts +110 -0
- package/dist/apns.d.cts.map +1 -0
- package/dist/apns.d.mts +110 -0
- package/dist/apns.d.mts.map +1 -0
- package/dist/apns.mjs +207 -0
- package/dist/apns.mjs.map +1 -0
- package/dist/aws/engine-step.cjs +105 -0
- package/dist/aws/engine-step.cjs.map +1 -0
- package/dist/aws/engine-step.d.cts +42 -0
- package/dist/aws/engine-step.d.cts.map +1 -0
- package/dist/aws/engine-step.d.mts +42 -0
- package/dist/aws/engine-step.d.mts.map +1 -0
- package/dist/aws/engine-step.mjs +103 -0
- package/dist/aws/engine-step.mjs.map +1 -0
- package/dist/aws/function-url.cjs +53 -0
- package/dist/aws/function-url.cjs.map +1 -0
- package/dist/aws/function-url.d.cts +36 -0
- package/dist/aws/function-url.d.cts.map +1 -0
- package/dist/aws/function-url.d.mts +36 -0
- package/dist/aws/function-url.d.mts.map +1 -0
- package/dist/aws/function-url.mjs +50 -0
- package/dist/aws/function-url.mjs.map +1 -0
- package/dist/aws/index.cjs +232 -0
- package/dist/aws/index.cjs.map +1 -0
- package/dist/aws/index.d.cts +73 -0
- package/dist/aws/index.d.cts.map +1 -0
- package/dist/aws/index.d.mts +73 -0
- package/dist/aws/index.d.mts.map +1 -0
- package/dist/aws/index.mjs +218 -0
- package/dist/aws/index.mjs.map +1 -0
- package/dist/aws/instances.cjs +218 -0
- package/dist/aws/instances.cjs.map +1 -0
- package/dist/aws/instances.d.cts +102 -0
- package/dist/aws/instances.d.cts.map +1 -0
- package/dist/aws/instances.d.mts +102 -0
- package/dist/aws/instances.d.mts.map +1 -0
- package/dist/aws/instances.mjs +214 -0
- package/dist/aws/instances.mjs.map +1 -0
- package/dist/aws/lambda-api.cjs +86 -0
- package/dist/aws/lambda-api.cjs.map +1 -0
- package/dist/aws/lambda-api.d.cts +41 -0
- package/dist/aws/lambda-api.d.cts.map +1 -0
- package/dist/aws/lambda-api.d.mts +41 -0
- package/dist/aws/lambda-api.d.mts.map +1 -0
- package/dist/aws/lambda-api.mjs +85 -0
- package/dist/aws/lambda-api.mjs.map +1 -0
- package/dist/client.cjs +216 -0
- package/dist/client.cjs.map +1 -0
- package/dist/client.d.cts +193 -0
- package/dist/client.d.cts.map +1 -0
- package/dist/client.d.mts +193 -0
- package/dist/client.d.mts.map +1 -0
- package/dist/client.mjs +212 -0
- package/dist/client.mjs.map +1 -0
- package/dist/cloudflare/bindings.cjs +49 -0
- package/dist/cloudflare/bindings.cjs.map +1 -0
- package/dist/cloudflare/bindings.d.cts +31 -0
- package/dist/cloudflare/bindings.d.cts.map +1 -0
- package/dist/cloudflare/bindings.d.mts +31 -0
- package/dist/cloudflare/bindings.d.mts.map +1 -0
- package/dist/cloudflare/bindings.mjs +46 -0
- package/dist/cloudflare/bindings.mjs.map +1 -0
- package/dist/cloudflare/index.cjs +73 -0
- package/dist/cloudflare/index.d.cts +25 -0
- package/dist/cloudflare/index.d.mts +25 -0
- package/dist/cloudflare/index.mjs +20 -0
- package/dist/cloudflare/runner.cjs +200 -0
- package/dist/cloudflare/runner.cjs.map +1 -0
- package/dist/cloudflare/runner.d.cts +83 -0
- package/dist/cloudflare/runner.d.cts.map +1 -0
- package/dist/cloudflare/runner.d.mts +83 -0
- package/dist/cloudflare/runner.d.mts.map +1 -0
- package/dist/cloudflare/runner.mjs +199 -0
- package/dist/cloudflare/runner.mjs.map +1 -0
- package/dist/cloudflare/worker.cjs +106 -0
- package/dist/cloudflare/worker.cjs.map +1 -0
- package/dist/cloudflare/worker.d.cts +52 -0
- package/dist/cloudflare/worker.d.cts.map +1 -0
- package/dist/cloudflare/worker.d.mts +52 -0
- package/dist/cloudflare/worker.d.mts.map +1 -0
- package/dist/cloudflare/worker.mjs +104 -0
- package/dist/cloudflare/worker.mjs.map +1 -0
- package/dist/cloudflare/workers.d.cjs +0 -0
- package/dist/cloudflare/workers.d.cts +42 -0
- package/dist/cloudflare/workers.d.cts.map +1 -0
- package/dist/cloudflare/workers.d.mts +42 -0
- package/dist/cloudflare/workers.d.mts.map +1 -0
- package/dist/config.cjs +257 -0
- package/dist/config.cjs.map +1 -0
- package/dist/config.d.cts +184 -0
- package/dist/config.d.cts.map +1 -0
- package/dist/config.d.mts +184 -0
- package/dist/config.d.mts.map +1 -0
- package/dist/config.mjs +246 -0
- package/dist/config.mjs.map +1 -0
- package/dist/contract.cjs +222 -0
- package/dist/contract.cjs.map +1 -0
- package/dist/contract.d.cts +110 -0
- package/dist/contract.d.cts.map +1 -0
- package/dist/contract.d.mts +110 -0
- package/dist/contract.d.mts.map +1 -0
- package/dist/contract.mjs +216 -0
- package/dist/contract.mjs.map +1 -0
- package/dist/date-time.cjs +22 -0
- package/dist/date-time.cjs.map +1 -0
- package/dist/date-time.d.cts +10 -0
- package/dist/date-time.d.cts.map +1 -0
- package/dist/date-time.d.mts +10 -0
- package/dist/date-time.d.mts.map +1 -0
- package/dist/date-time.mjs +21 -0
- package/dist/date-time.mjs.map +1 -0
- package/dist/dsl/action.cjs +25 -0
- package/dist/dsl/action.cjs.map +1 -0
- package/dist/dsl/action.d.cts +63 -0
- package/dist/dsl/action.d.cts.map +1 -0
- package/dist/dsl/action.d.mts +63 -0
- package/dist/dsl/action.d.mts.map +1 -0
- package/dist/dsl/action.mjs +24 -0
- package/dist/dsl/action.mjs.map +1 -0
- package/dist/dsl/base.cjs +33 -0
- package/dist/dsl/base.cjs.map +1 -0
- package/dist/dsl/base.d.cts +43 -0
- package/dist/dsl/base.d.cts.map +1 -0
- package/dist/dsl/base.d.mts +43 -0
- package/dist/dsl/base.d.mts.map +1 -0
- package/dist/dsl/base.mjs +29 -0
- package/dist/dsl/base.mjs.map +1 -0
- package/dist/dsl/bundle.cjs +287 -0
- package/dist/dsl/bundle.cjs.map +1 -0
- package/dist/dsl/bundle.d.cts +33 -0
- package/dist/dsl/bundle.d.cts.map +1 -0
- package/dist/dsl/bundle.d.mts +33 -0
- package/dist/dsl/bundle.d.mts.map +1 -0
- package/dist/dsl/bundle.mjs +284 -0
- package/dist/dsl/bundle.mjs.map +1 -0
- package/dist/dsl/condition.cjs +200 -0
- package/dist/dsl/condition.cjs.map +1 -0
- package/dist/dsl/condition.d.cts +151 -0
- package/dist/dsl/condition.d.cts.map +1 -0
- package/dist/dsl/condition.d.mts +151 -0
- package/dist/dsl/condition.d.mts.map +1 -0
- package/dist/dsl/condition.mjs +178 -0
- package/dist/dsl/condition.mjs.map +1 -0
- package/dist/dsl/flow.cjs +335 -0
- package/dist/dsl/flow.cjs.map +1 -0
- package/dist/dsl/flow.d.cts +278 -0
- package/dist/dsl/flow.d.cts.map +1 -0
- package/dist/dsl/flow.d.mts +278 -0
- package/dist/dsl/flow.d.mts.map +1 -0
- package/dist/dsl/flow.mjs +331 -0
- package/dist/dsl/flow.mjs.map +1 -0
- package/dist/dsl/index.cjs +37 -0
- package/dist/dsl/index.d.cts +34 -0
- package/dist/dsl/index.d.mts +34 -0
- package/dist/dsl/index.mjs +9 -0
- package/dist/dsl/refs.cjs +101 -0
- package/dist/dsl/refs.cjs.map +1 -0
- package/dist/dsl/refs.d.cts +127 -0
- package/dist/dsl/refs.d.cts.map +1 -0
- package/dist/dsl/refs.d.mts +127 -0
- package/dist/dsl/refs.d.mts.map +1 -0
- package/dist/dsl/refs.mjs +93 -0
- package/dist/dsl/refs.mjs.map +1 -0
- package/dist/dsl/template.cjs +19 -0
- package/dist/dsl/template.cjs.map +1 -0
- package/dist/dsl/template.d.cts +30 -0
- package/dist/dsl/template.d.cts.map +1 -0
- package/dist/dsl/template.d.mts +30 -0
- package/dist/dsl/template.d.mts.map +1 -0
- package/dist/dsl/template.mjs +18 -0
- package/dist/dsl/template.mjs.map +1 -0
- package/dist/dsl/trigger.cjs +53 -0
- package/dist/dsl/trigger.cjs.map +1 -0
- package/dist/dsl/trigger.d.cts +112 -0
- package/dist/dsl/trigger.d.cts.map +1 -0
- package/dist/dsl/trigger.d.mts +112 -0
- package/dist/dsl/trigger.d.mts.map +1 -0
- package/dist/dsl/trigger.mjs +52 -0
- package/dist/dsl/trigger.mjs.map +1 -0
- package/dist/dsl/workflow.cjs +143 -0
- package/dist/dsl/workflow.cjs.map +1 -0
- package/dist/dsl/workflow.d.cts +88 -0
- package/dist/dsl/workflow.d.cts.map +1 -0
- package/dist/dsl/workflow.d.mts +88 -0
- package/dist/dsl/workflow.d.mts.map +1 -0
- package/dist/dsl/workflow.mjs +142 -0
- package/dist/dsl/workflow.mjs.map +1 -0
- package/dist/email-context.cjs +28 -0
- package/dist/email-context.cjs.map +1 -0
- package/dist/email-context.d.cts +9 -0
- package/dist/email-context.d.cts.map +1 -0
- package/dist/email-context.d.mts +9 -0
- package/dist/email-context.d.mts.map +1 -0
- package/dist/email-context.mjs +26 -0
- package/dist/email-context.mjs.map +1 -0
- package/dist/email-sender.cjs +93 -0
- package/dist/email-sender.cjs.map +1 -0
- package/dist/email-sender.d.cts +88 -0
- package/dist/email-sender.d.cts.map +1 -0
- package/dist/email-sender.d.mts +88 -0
- package/dist/email-sender.d.mts.map +1 -0
- package/dist/email-sender.mjs +90 -0
- package/dist/email-sender.mjs.map +1 -0
- package/dist/email.cjs +73 -0
- package/dist/email.cjs.map +1 -0
- package/dist/email.d.cts +59 -0
- package/dist/email.d.cts.map +1 -0
- package/dist/email.d.mts +59 -0
- package/dist/email.d.mts.map +1 -0
- package/dist/email.mjs +68 -0
- package/dist/email.mjs.map +1 -0
- package/dist/engine/actions.cjs +19 -0
- package/dist/engine/actions.cjs.map +1 -0
- package/dist/engine/actions.d.cts +27 -0
- package/dist/engine/actions.d.cts.map +1 -0
- package/dist/engine/actions.d.mts +27 -0
- package/dist/engine/actions.d.mts.map +1 -0
- package/dist/engine/actions.mjs +18 -0
- package/dist/engine/actions.mjs.map +1 -0
- package/dist/engine/bucket.cjs +71 -0
- package/dist/engine/bucket.cjs.map +1 -0
- package/dist/engine/bucket.d.cts +30 -0
- package/dist/engine/bucket.d.cts.map +1 -0
- package/dist/engine/bucket.d.mts +30 -0
- package/dist/engine/bucket.d.mts.map +1 -0
- package/dist/engine/bucket.mjs +68 -0
- package/dist/engine/bucket.mjs.map +1 -0
- package/dist/engine/condition.cjs +199 -0
- package/dist/engine/condition.cjs.map +1 -0
- package/dist/engine/condition.d.cts +76 -0
- package/dist/engine/condition.d.cts.map +1 -0
- package/dist/engine/condition.d.mts +76 -0
- package/dist/engine/condition.d.mts.map +1 -0
- package/dist/engine/condition.mjs +192 -0
- package/dist/engine/condition.mjs.map +1 -0
- package/dist/engine/duration.cjs +33 -0
- package/dist/engine/duration.cjs.map +1 -0
- package/dist/engine/duration.d.cts +3 -0
- package/dist/engine/duration.d.cts.map +1 -0
- package/dist/engine/duration.d.mts +3 -0
- package/dist/engine/duration.d.mts.map +1 -0
- package/dist/engine/duration.mjs +32 -0
- package/dist/engine/duration.mjs.map +1 -0
- package/dist/engine/index.cjs +33 -0
- package/dist/engine/index.d.cts +10 -0
- package/dist/engine/index.d.mts +10 -0
- package/dist/engine/index.mjs +9 -0
- package/dist/engine/interpreter.cjs +613 -0
- package/dist/engine/interpreter.cjs.map +1 -0
- package/dist/engine/interpreter.d.cts +4 -0
- package/dist/engine/interpreter.d.cts.map +1 -0
- package/dist/engine/interpreter.d.mts +4 -0
- package/dist/engine/interpreter.d.mts.map +1 -0
- package/dist/engine/interpreter.mjs +612 -0
- package/dist/engine/interpreter.mjs.map +1 -0
- package/dist/engine/ports.cjs +0 -0
- package/dist/engine/ports.d.cts +373 -0
- package/dist/engine/ports.d.cts.map +1 -0
- package/dist/engine/ports.d.mts +373 -0
- package/dist/engine/ports.d.mts.map +1 -0
- package/dist/engine/ports.mjs +1 -0
- package/dist/engine/recipient.cjs +22 -0
- package/dist/engine/recipient.cjs.map +1 -0
- package/dist/engine/recipient.d.cts +11 -0
- package/dist/engine/recipient.d.cts.map +1 -0
- package/dist/engine/recipient.d.mts +11 -0
- package/dist/engine/recipient.d.mts.map +1 -0
- package/dist/engine/recipient.mjs +21 -0
- package/dist/engine/recipient.mjs.map +1 -0
- package/dist/engine/retry.cjs +106 -0
- package/dist/engine/retry.cjs.map +1 -0
- package/dist/engine/retry.d.cts +73 -0
- package/dist/engine/retry.d.cts.map +1 -0
- package/dist/engine/retry.d.mts +73 -0
- package/dist/engine/retry.d.mts.map +1 -0
- package/dist/engine/retry.mjs +98 -0
- package/dist/engine/retry.mjs.map +1 -0
- package/dist/engine/time-scale.cjs +153 -0
- package/dist/engine/time-scale.cjs.map +1 -0
- package/dist/engine/time-scale.d.cts +41 -0
- package/dist/engine/time-scale.d.cts.map +1 -0
- package/dist/engine/time-scale.d.mts +41 -0
- package/dist/engine/time-scale.d.mts.map +1 -0
- package/dist/engine/time-scale.mjs +150 -0
- package/dist/engine/time-scale.mjs.map +1 -0
- package/dist/engine/time-window.cjs +148 -0
- package/dist/engine/time-window.cjs.map +1 -0
- package/dist/engine/time-window.d.cts +20 -0
- package/dist/engine/time-window.d.cts.map +1 -0
- package/dist/engine/time-window.d.mts +20 -0
- package/dist/engine/time-window.d.mts.map +1 -0
- package/dist/engine/time-window.mjs +146 -0
- package/dist/engine/time-window.mjs.map +1 -0
- package/dist/fcm.cjs +208 -0
- package/dist/fcm.cjs.map +1 -0
- package/dist/fcm.d.cts +89 -0
- package/dist/fcm.d.cts.map +1 -0
- package/dist/fcm.d.mts +89 -0
- package/dist/fcm.d.mts.map +1 -0
- package/dist/fcm.mjs +202 -0
- package/dist/fcm.mjs.map +1 -0
- package/dist/hash.cjs +244 -0
- package/dist/hash.cjs.map +1 -0
- package/dist/hash.d.cts +28 -0
- package/dist/hash.d.cts.map +1 -0
- package/dist/hash.d.mts +28 -0
- package/dist/hash.d.mts.map +1 -0
- package/dist/hash.mjs +238 -0
- package/dist/hash.mjs.map +1 -0
- package/dist/host/auth.cjs +48 -0
- package/dist/host/auth.cjs.map +1 -0
- package/dist/host/auth.d.cts +33 -0
- package/dist/host/auth.d.cts.map +1 -0
- package/dist/host/auth.d.mts +33 -0
- package/dist/host/auth.d.mts.map +1 -0
- package/dist/host/auth.mjs +45 -0
- package/dist/host/auth.mjs.map +1 -0
- package/dist/host/batch.cjs +178 -0
- package/dist/host/batch.cjs.map +1 -0
- package/dist/host/batch.d.cts +92 -0
- package/dist/host/batch.d.cts.map +1 -0
- package/dist/host/batch.d.mts +92 -0
- package/dist/host/batch.d.mts.map +1 -0
- package/dist/host/batch.mjs +169 -0
- package/dist/host/batch.mjs.map +1 -0
- package/dist/host/channels.cjs +256 -0
- package/dist/host/channels.cjs.map +1 -0
- package/dist/host/channels.d.cts +66 -0
- package/dist/host/channels.d.cts.map +1 -0
- package/dist/host/channels.d.mts +66 -0
- package/dist/host/channels.d.mts.map +1 -0
- package/dist/host/channels.mjs +252 -0
- package/dist/host/channels.mjs.map +1 -0
- package/dist/host/execute.cjs +102 -0
- package/dist/host/execute.cjs.map +1 -0
- package/dist/host/execute.d.cts +38 -0
- package/dist/host/execute.d.cts.map +1 -0
- package/dist/host/execute.d.mts +38 -0
- package/dist/host/execute.d.mts.map +1 -0
- package/dist/host/execute.mjs +101 -0
- package/dist/host/execute.mjs.map +1 -0
- package/dist/host/fresh-read.cjs +29 -0
- package/dist/host/fresh-read.cjs.map +1 -0
- package/dist/host/fresh-read.d.cts +16 -0
- package/dist/host/fresh-read.d.cts.map +1 -0
- package/dist/host/fresh-read.d.mts +16 -0
- package/dist/host/fresh-read.d.mts.map +1 -0
- package/dist/host/fresh-read.mjs +28 -0
- package/dist/host/fresh-read.mjs.map +1 -0
- package/dist/host/http.cjs +393 -0
- package/dist/host/http.cjs.map +1 -0
- package/dist/host/http.d.cts +61 -0
- package/dist/host/http.d.cts.map +1 -0
- package/dist/host/http.d.mts +61 -0
- package/dist/host/http.d.mts.map +1 -0
- package/dist/host/http.mjs +389 -0
- package/dist/host/http.mjs.map +1 -0
- package/dist/host/ingest.cjs +1210 -0
- package/dist/host/ingest.cjs.map +1 -0
- package/dist/host/ingest.d.cts +497 -0
- package/dist/host/ingest.d.cts.map +1 -0
- package/dist/host/ingest.d.mts +497 -0
- package/dist/host/ingest.d.mts.map +1 -0
- package/dist/host/ingest.mjs +1172 -0
- package/dist/host/ingest.mjs.map +1 -0
- package/dist/host/journey-host.cjs +223 -0
- package/dist/host/journey-host.cjs.map +1 -0
- package/dist/host/journey-host.d.cts +118 -0
- package/dist/host/journey-host.d.cts.map +1 -0
- package/dist/host/journey-host.d.mts +118 -0
- package/dist/host/journey-host.d.mts.map +1 -0
- package/dist/host/journey-host.mjs +219 -0
- package/dist/host/journey-host.mjs.map +1 -0
- package/dist/host/platform.cjs +20 -0
- package/dist/host/platform.cjs.map +1 -0
- package/dist/host/platform.d.cts +120 -0
- package/dist/host/platform.d.cts.map +1 -0
- package/dist/host/platform.d.mts +120 -0
- package/dist/host/platform.d.mts.map +1 -0
- package/dist/host/platform.mjs +18 -0
- package/dist/host/platform.mjs.map +1 -0
- package/dist/host/senders.cjs +71 -0
- package/dist/host/senders.cjs.map +1 -0
- package/dist/host/senders.d.cts +34 -0
- package/dist/host/senders.d.cts.map +1 -0
- package/dist/host/senders.d.mts +34 -0
- package/dist/host/senders.d.mts.map +1 -0
- package/dist/host/senders.mjs +67 -0
- package/dist/host/senders.mjs.map +1 -0
- package/dist/host/workflow-cache.cjs +47 -0
- package/dist/host/workflow-cache.cjs.map +1 -0
- package/dist/host/workflow-cache.d.cts +21 -0
- package/dist/host/workflow-cache.d.cts.map +1 -0
- package/dist/host/workflow-cache.d.mts +21 -0
- package/dist/host/workflow-cache.d.mts.map +1 -0
- package/dist/host/workflow-cache.mjs +46 -0
- package/dist/host/workflow-cache.mjs.map +1 -0
- package/dist/http2-client.cjs +89 -0
- package/dist/http2-client.cjs.map +1 -0
- package/dist/http2-client.d.cts +45 -0
- package/dist/http2-client.d.cts.map +1 -0
- package/dist/http2-client.d.mts +45 -0
- package/dist/http2-client.d.mts.map +1 -0
- package/dist/http2-client.mjs +87 -0
- package/dist/http2-client.mjs.map +1 -0
- package/dist/index.cjs +130 -0
- package/dist/index.d.cts +21 -0
- package/dist/index.d.mts +21 -0
- package/dist/index.mjs +20 -0
- package/dist/inflight.cjs +116 -0
- package/dist/inflight.cjs.map +1 -0
- package/dist/inflight.d.cts +49 -0
- package/dist/inflight.d.cts.map +1 -0
- package/dist/inflight.d.mts +49 -0
- package/dist/inflight.d.mts.map +1 -0
- package/dist/inflight.mjs +113 -0
- package/dist/inflight.mjs.map +1 -0
- package/dist/ir.cjs +429 -0
- package/dist/ir.cjs.map +1 -0
- package/dist/ir.d.cts +593 -0
- package/dist/ir.d.cts.map +1 -0
- package/dist/ir.d.mts +593 -0
- package/dist/ir.d.mts.map +1 -0
- package/dist/ir.mjs +404 -0
- package/dist/ir.mjs.map +1 -0
- package/dist/jwt.cjs +17 -0
- package/dist/jwt.cjs.map +1 -0
- package/dist/jwt.d.cts +7 -0
- package/dist/jwt.d.cts.map +1 -0
- package/dist/jwt.d.mts +7 -0
- package/dist/jwt.d.mts.map +1 -0
- package/dist/jwt.mjs +15 -0
- package/dist/jwt.mjs.map +1 -0
- package/dist/node/index.cjs +231 -0
- package/dist/node/index.cjs.map +1 -0
- package/dist/node/index.d.cts +59 -0
- package/dist/node/index.d.cts.map +1 -0
- package/dist/node/index.d.mts +59 -0
- package/dist/node/index.d.mts.map +1 -0
- package/dist/node/index.mjs +225 -0
- package/dist/node/index.mjs.map +1 -0
- package/dist/node/runs.cjs +222 -0
- package/dist/node/runs.cjs.map +1 -0
- package/dist/node/runs.d.cts +93 -0
- package/dist/node/runs.d.cts.map +1 -0
- package/dist/node/runs.d.mts +93 -0
- package/dist/node/runs.d.mts.map +1 -0
- package/dist/node/runs.mjs +221 -0
- package/dist/node/runs.mjs.map +1 -0
- package/dist/node/runtime.cjs +351 -0
- package/dist/node/runtime.cjs.map +1 -0
- package/dist/node/runtime.d.cts +96 -0
- package/dist/node/runtime.d.cts.map +1 -0
- package/dist/node/runtime.d.mts +96 -0
- package/dist/node/runtime.d.mts.map +1 -0
- package/dist/node/runtime.mjs +348 -0
- package/dist/node/runtime.mjs.map +1 -0
- package/dist/plan.cjs +221 -0
- package/dist/plan.cjs.map +1 -0
- package/dist/plan.d.cts +68 -0
- package/dist/plan.d.cts.map +1 -0
- package/dist/plan.d.mts +68 -0
- package/dist/plan.d.mts.map +1 -0
- package/dist/plan.mjs +218 -0
- package/dist/plan.mjs.map +1 -0
- package/dist/postgres-js.cjs +51 -0
- package/dist/postgres-js.cjs.map +1 -0
- package/dist/postgres-js.d.cts +32 -0
- package/dist/postgres-js.d.cts.map +1 -0
- package/dist/postgres-js.d.mts +32 -0
- package/dist/postgres-js.d.mts.map +1 -0
- package/dist/postgres-js.mjs +46 -0
- package/dist/postgres-js.mjs.map +1 -0
- package/dist/provenance.cjs +66 -0
- package/dist/provenance.cjs.map +1 -0
- package/dist/provenance.d.cts +40 -0
- package/dist/provenance.d.cts.map +1 -0
- package/dist/provenance.d.mts +40 -0
- package/dist/provenance.d.mts.map +1 -0
- package/dist/provenance.mjs +64 -0
- package/dist/provenance.mjs.map +1 -0
- package/dist/push.cjs +11 -0
- package/dist/push.cjs.map +1 -0
- package/dist/push.d.cts +14 -0
- package/dist/push.d.cts.map +1 -0
- package/dist/push.d.mts +14 -0
- package/dist/push.d.mts.map +1 -0
- package/dist/push.mjs +10 -0
- package/dist/push.mjs.map +1 -0
- package/dist/react-email.cjs +56 -0
- package/dist/react-email.cjs.map +1 -0
- package/dist/react-email.d.cts +5 -0
- package/dist/react-email.d.cts.map +1 -0
- package/dist/react-email.d.mts +5 -0
- package/dist/react-email.d.mts.map +1 -0
- package/dist/react-email.mjs +55 -0
- package/dist/react-email.mjs.map +1 -0
- package/dist/reporting/classify.cjs +46 -0
- package/dist/reporting/classify.cjs.map +1 -0
- package/dist/reporting/classify.d.cts +65 -0
- package/dist/reporting/classify.d.cts.map +1 -0
- package/dist/reporting/classify.d.mts +65 -0
- package/dist/reporting/classify.d.mts.map +1 -0
- package/dist/reporting/classify.mjs +42 -0
- package/dist/reporting/classify.mjs.map +1 -0
- package/dist/reporting/observer.cjs +137 -0
- package/dist/reporting/observer.cjs.map +1 -0
- package/dist/reporting/observer.d.cts +31 -0
- package/dist/reporting/observer.d.cts.map +1 -0
- package/dist/reporting/observer.d.mts +31 -0
- package/dist/reporting/observer.d.mts.map +1 -0
- package/dist/reporting/observer.mjs +134 -0
- package/dist/reporting/observer.mjs.map +1 -0
- package/dist/reporting/tracking.cjs +185 -0
- package/dist/reporting/tracking.cjs.map +1 -0
- package/dist/reporting/tracking.d.cts +63 -0
- package/dist/reporting/tracking.d.cts.map +1 -0
- package/dist/reporting/tracking.d.mts +63 -0
- package/dist/reporting/tracking.d.mts.map +1 -0
- package/dist/reporting/tracking.mjs +182 -0
- package/dist/reporting/tracking.mjs.map +1 -0
- package/dist/runtime.cjs +18 -0
- package/dist/runtime.cjs.map +1 -0
- package/dist/runtime.d.cts +44 -0
- package/dist/runtime.d.cts.map +1 -0
- package/dist/runtime.d.mts +44 -0
- package/dist/runtime.d.mts.map +1 -0
- package/dist/runtime.mjs +17 -0
- package/dist/runtime.mjs.map +1 -0
- package/dist/store/condition-sql.cjs +145 -0
- package/dist/store/condition-sql.cjs.map +1 -0
- package/dist/store/condition-sql.d.cts +38 -0
- package/dist/store/condition-sql.d.cts.map +1 -0
- package/dist/store/condition-sql.d.mts +38 -0
- package/dist/store/condition-sql.d.mts.map +1 -0
- package/dist/store/condition-sql.mjs +144 -0
- package/dist/store/condition-sql.mjs.map +1 -0
- package/dist/store/erasure.cjs +21 -0
- package/dist/store/erasure.cjs.map +1 -0
- package/dist/store/erasure.d.cts +16 -0
- package/dist/store/erasure.d.cts.map +1 -0
- package/dist/store/erasure.d.mts +16 -0
- package/dist/store/erasure.d.mts.map +1 -0
- package/dist/store/erasure.mjs +20 -0
- package/dist/store/erasure.mjs.map +1 -0
- package/dist/store/facts.cjs +79 -0
- package/dist/store/facts.cjs.map +1 -0
- package/dist/store/facts.d.cts +41 -0
- package/dist/store/facts.d.cts.map +1 -0
- package/dist/store/facts.d.mts +41 -0
- package/dist/store/facts.d.mts.map +1 -0
- package/dist/store/facts.mjs +77 -0
- package/dist/store/facts.mjs.map +1 -0
- package/dist/store/identity.cjs +34 -0
- package/dist/store/identity.cjs.map +1 -0
- package/dist/store/identity.d.cts +13 -0
- package/dist/store/identity.d.cts.map +1 -0
- package/dist/store/identity.d.mts +13 -0
- package/dist/store/identity.d.mts.map +1 -0
- package/dist/store/identity.mjs +30 -0
- package/dist/store/identity.mjs.map +1 -0
- package/dist/store/index.cjs +35 -0
- package/dist/store/index.cjs.map +1 -0
- package/dist/store/index.d.cts +766 -0
- package/dist/store/index.d.cts.map +1 -0
- package/dist/store/index.d.mts +766 -0
- package/dist/store/index.d.mts.map +1 -0
- package/dist/store/index.mjs +22 -0
- package/dist/store/index.mjs.map +1 -0
- package/dist/store/postgres-reporting.cjs +327 -0
- package/dist/store/postgres-reporting.cjs.map +1 -0
- package/dist/store/postgres-reporting.d.cts +95 -0
- package/dist/store/postgres-reporting.d.cts.map +1 -0
- package/dist/store/postgres-reporting.d.mts +95 -0
- package/dist/store/postgres-reporting.d.mts.map +1 -0
- package/dist/store/postgres-reporting.mjs +326 -0
- package/dist/store/postgres-reporting.mjs.map +1 -0
- package/dist/store/postgres.cjs +1173 -0
- package/dist/store/postgres.cjs.map +1 -0
- package/dist/store/postgres.d.cts +199 -0
- package/dist/store/postgres.d.cts.map +1 -0
- package/dist/store/postgres.d.mts +199 -0
- package/dist/store/postgres.d.mts.map +1 -0
- package/dist/store/postgres.mjs +1170 -0
- package/dist/store/postgres.mjs.map +1 -0
- package/dist/store/sql.cjs +24 -0
- package/dist/store/sql.cjs.map +1 -0
- package/dist/store/sql.d.cts +26 -0
- package/dist/store/sql.d.cts.map +1 -0
- package/dist/store/sql.d.mts +26 -0
- package/dist/store/sql.d.mts.map +1 -0
- package/dist/store/sql.mjs +23 -0
- package/dist/store/sql.mjs.map +1 -0
- package/dist/store/tables.cjs +660 -0
- package/dist/store/tables.cjs.map +1 -0
- package/dist/store/tables.d.cts +103 -0
- package/dist/store/tables.d.cts.map +1 -0
- package/dist/store/tables.d.mts +103 -0
- package/dist/store/tables.d.mts.map +1 -0
- package/dist/store/tables.mjs +653 -0
- package/dist/store/tables.mjs.map +1 -0
- package/dist/store/user-lock.cjs +42 -0
- package/dist/store/user-lock.cjs.map +1 -0
- package/dist/store/user-lock.d.cts +30 -0
- package/dist/store/user-lock.d.cts.map +1 -0
- package/dist/store/user-lock.d.mts +30 -0
- package/dist/store/user-lock.d.mts.map +1 -0
- package/dist/store/user-lock.mjs +39 -0
- package/dist/store/user-lock.mjs.map +1 -0
- package/dist/template-rules.cjs +94 -0
- package/dist/template-rules.cjs.map +1 -0
- package/dist/template-rules.d.cts +80 -0
- package/dist/template-rules.d.cts.map +1 -0
- package/dist/template-rules.d.mts +80 -0
- package/dist/template-rules.d.mts.map +1 -0
- package/dist/template-rules.mjs +86 -0
- package/dist/template-rules.mjs.map +1 -0
- package/dist/templates.cjs +375 -0
- package/dist/templates.cjs.map +1 -0
- package/dist/templates.d.cts +358 -0
- package/dist/templates.d.cts.map +1 -0
- package/dist/templates.d.mts +358 -0
- package/dist/templates.d.mts.map +1 -0
- package/dist/templates.mjs +353 -0
- package/dist/templates.mjs.map +1 -0
- package/dist/transports/cloudflare-email.cjs +69 -0
- package/dist/transports/cloudflare-email.cjs.map +1 -0
- package/dist/transports/cloudflare-email.d.cts +63 -0
- package/dist/transports/cloudflare-email.d.cts.map +1 -0
- package/dist/transports/cloudflare-email.d.mts +63 -0
- package/dist/transports/cloudflare-email.d.mts.map +1 -0
- package/dist/transports/cloudflare-email.mjs +67 -0
- package/dist/transports/cloudflare-email.mjs.map +1 -0
- package/dist/transports/ses.cjs +142 -0
- package/dist/transports/ses.cjs.map +1 -0
- package/dist/transports/ses.d.cts +49 -0
- package/dist/transports/ses.d.cts.map +1 -0
- package/dist/transports/ses.d.mts +49 -0
- package/dist/transports/ses.d.mts.map +1 -0
- package/dist/transports/ses.mjs +139 -0
- package/dist/transports/ses.mjs.map +1 -0
- package/dist/transports/sigv4.cjs +86 -0
- package/dist/transports/sigv4.cjs.map +1 -0
- package/dist/transports/sigv4.d.cts +25 -0
- package/dist/transports/sigv4.d.cts.map +1 -0
- package/dist/transports/sigv4.d.mts +25 -0
- package/dist/transports/sigv4.d.mts.map +1 -0
- package/dist/transports/sigv4.mjs +85 -0
- package/dist/transports/sigv4.mjs.map +1 -0
- package/dist/webhooks.cjs +97 -0
- package/dist/webhooks.cjs.map +1 -0
- package/dist/webhooks.d.cts +23 -0
- package/dist/webhooks.d.cts.map +1 -0
- package/dist/webhooks.d.mts +23 -0
- package/dist/webhooks.d.mts.map +1 -0
- package/dist/webhooks.mjs +95 -0
- package/dist/webhooks.mjs.map +1 -0
- package/dist/webpush.cjs +361 -0
- package/dist/webpush.cjs.map +1 -0
- package/dist/webpush.d.cts +135 -0
- package/dist/webpush.d.cts.map +1 -0
- package/dist/webpush.d.mts +135 -0
- package/dist/webpush.d.mts.map +1 -0
- package/dist/webpush.mjs +350 -0
- package/dist/webpush.mjs.map +1 -0
- package/package.json +270 -31
- package/src/cloudflare/workers.d.ts +44 -0
- package/index.cjs +0 -18
- package/index.d.cts +0 -4
- package/index.d.mts +0 -4
- package/index.mjs +0 -1
package/dist/ir.d.mts
ADDED
|
@@ -0,0 +1,593 @@
|
|
|
1
|
+
import * as z from "zod/mini";
|
|
2
|
+
/**
|
|
3
|
+
* IR (Intermediate Representation) — what the DSL compiles to: serializable
|
|
4
|
+
* JSON. It is the three-way contract between the engine that interprets it,
|
|
5
|
+
* the UI (react-flow) that renders it, and diff / audit tooling.
|
|
6
|
+
*
|
|
7
|
+
* Validation strategy: the zod/mini schemas are the authoritative definition.
|
|
8
|
+
* TS types are either inferred from a schema or hand-written under the same
|
|
9
|
+
* name (zod cannot infer recursive types; the hand-written type is anchored
|
|
10
|
+
* with a ZodMiniType<T> annotation, so any drift fails to compile). IR crosses
|
|
11
|
+
* process boundaries (database, network, UI), so runtime validation is a must.
|
|
12
|
+
*
|
|
13
|
+
* ## Versioning (two independent axes)
|
|
14
|
+
*
|
|
15
|
+
* 1. IR format version (irVersion): evolution of the IR schema itself. Adding
|
|
16
|
+
* optional fields does not bump it; only structurally incompatible changes
|
|
17
|
+
* do (changing a discriminant, dropping a field, altering semantics).
|
|
18
|
+
* Writers always write the current version, and readers accept only it:
|
|
19
|
+
* every schema below takes `irVersion` as the literal `IR_VERSION`, and
|
|
20
|
+
* there is no reader for an earlier version nor a migrator to this one. A
|
|
21
|
+
* bump therefore strands what is stored — pinned IRs stop parsing and the
|
|
22
|
+
* journeys running on them fail — and `irVersion` is part of the hash, so
|
|
23
|
+
* every content hash changes with it. Until readers dispatch on irVersion
|
|
24
|
+
* and migrate, a bump is a breaking release that drains or clears the
|
|
25
|
+
* engine's data first (README "Upgrading to 12.0" was one).
|
|
26
|
+
* 2. Content version (contentHash): a content-addressed id for a single
|
|
27
|
+
* definition's **execution semantics** — the canonical-JSON hash after
|
|
28
|
+
* metadata (meta / label / reason) is stripped, see hash.ts. It is used to:
|
|
29
|
+
* - pin a version when a user enters, so an in-flight journey runs the
|
|
30
|
+
* pinned version to completion. The pin covers the workflow's own
|
|
31
|
+
* structure and nothing else, by design (README "Versioning"): a
|
|
32
|
+
* template, segment or action is named by id and resolved when it is
|
|
33
|
+
* used, so a journey sends the latest content and a segment is a live
|
|
34
|
+
* audience — what marketing automation does. What a deploy must not do
|
|
35
|
+
* is take away or reshape something a pinned IR still names; that is
|
|
36
|
+
* checked before the deploy against the pinned IRs (inflight.ts);
|
|
37
|
+
* - diff on deploy: same hash means unchanged, skip publishing;
|
|
38
|
+
* - audit: answer "which version was this user on" at any point.
|
|
39
|
+
*
|
|
40
|
+
* ## Node ids
|
|
41
|
+
*
|
|
42
|
+
* Derived from the structural path at compile time — stable and deterministic:
|
|
43
|
+
* root level '0', '1', …; the j-th child of a branch's i-th case is
|
|
44
|
+
* '{branchId}.c{i}.{j}', the default arm '{branchId}.o.{j}'; cohort arms use
|
|
45
|
+
* the arm name '{cohortId}.{armName}.{j}'; a waitUntil timeout flow '{id}.t.{j}'.
|
|
46
|
+
* Editing a node's parameters keeps its id; inserting a node shifts the ids of
|
|
47
|
+
* its later siblings (a known trade-off — locating in-flight users relies on
|
|
48
|
+
* the pinned version rather than cross-version id alignment, and cross-version
|
|
49
|
+
* mapping is an explicit migrator's job).
|
|
50
|
+
*/
|
|
51
|
+
export declare const IR_VERSION = 3;
|
|
52
|
+
export declare const ScalarIR: z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>, z.ZodMiniBoolean<boolean>]>;
|
|
53
|
+
export type ScalarIR = z.infer<typeof ScalarIR>;
|
|
54
|
+
/** Duration: `value` keeps the DSL literal ('23 hours', for display), `ms` is what the engine uses. */
|
|
55
|
+
export declare const DurationIR: z.ZodMiniObject<{
|
|
56
|
+
value: z.ZodMiniString<string>;
|
|
57
|
+
ms: z.ZodMiniNumber<number>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
export type DurationIR = z.infer<typeof DurationIR>;
|
|
60
|
+
/** User-property reference — isomorphic to the DSL's UserPropertyRef once serialized (phantom type dropped). */
|
|
61
|
+
export declare const UserPropertyRefIR: z.ZodMiniObject<{
|
|
62
|
+
type: z.ZodMiniLiteral<"user_property">;
|
|
63
|
+
path: z.ZodMiniString<string>;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
export type UserPropertyRefIR = z.infer<typeof UserPropertyRefIR>;
|
|
66
|
+
/**
|
|
67
|
+
* A field of the event that started the journey (`t.payload.<field>` in the DSL), read from the
|
|
68
|
+
* payload the instance entered with. `event` names the workflow's own trigger event — the
|
|
69
|
+
* compiler refuses any other — and `path` is dotted for nested fields.
|
|
70
|
+
*/
|
|
71
|
+
export declare const TriggerPayloadRefIR: z.ZodMiniObject<{
|
|
72
|
+
type: z.ZodMiniLiteral<"trigger_payload">;
|
|
73
|
+
event: z.ZodMiniString<string>;
|
|
74
|
+
path: z.ZodMiniString<string>;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
export type TriggerPayloadRefIR = z.infer<typeof TriggerPayloadRefIR>;
|
|
77
|
+
/** A message prop / event payload value: a literal, a user-property reference or a trigger payload reference. */
|
|
78
|
+
export declare const PropValueIR: z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>, z.ZodMiniBoolean<boolean>]>, z.ZodMiniObject<{
|
|
79
|
+
type: z.ZodMiniLiteral<"user_property">;
|
|
80
|
+
path: z.ZodMiniString<string>;
|
|
81
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
82
|
+
type: z.ZodMiniLiteral<"trigger_payload">;
|
|
83
|
+
event: z.ZodMiniString<string>;
|
|
84
|
+
path: z.ZodMiniString<string>;
|
|
85
|
+
}, z.core.$strip>]>;
|
|
86
|
+
export type PropValueIR = z.infer<typeof PropValueIR>;
|
|
87
|
+
export declare const ChannelIR: z.ZodMiniEnum<{
|
|
88
|
+
discord: "discord";
|
|
89
|
+
email: "email";
|
|
90
|
+
in_app: "in_app";
|
|
91
|
+
push: "push";
|
|
92
|
+
slack: "slack";
|
|
93
|
+
sms: "sms";
|
|
94
|
+
survey: "survey";
|
|
95
|
+
}>;
|
|
96
|
+
export type ChannelIR = z.infer<typeof ChannelIR>;
|
|
97
|
+
export declare const WeekdayIR: z.ZodMiniEnum<{
|
|
98
|
+
fri: "fri";
|
|
99
|
+
mon: "mon";
|
|
100
|
+
sat: "sat";
|
|
101
|
+
sun: "sun";
|
|
102
|
+
thu: "thu";
|
|
103
|
+
tue: "tue";
|
|
104
|
+
wed: "wed";
|
|
105
|
+
}>;
|
|
106
|
+
export type WeekdayIR = z.infer<typeof WeekdayIR>;
|
|
107
|
+
/**
|
|
108
|
+
* Source location of the builder call that produced a definition — the IR's
|
|
109
|
+
* source map. Lives under `meta`, so it is **excluded from contentHash**
|
|
110
|
+
* (see hash.ts): provenance never affects execution identity or plan.
|
|
111
|
+
* `file` is cwd-relative when compiled under Node, a URL under Vite dev.
|
|
112
|
+
*/
|
|
113
|
+
export declare const SourceLocIR: z.ZodMiniObject<{
|
|
114
|
+
file: z.ZodMiniString<string>;
|
|
115
|
+
line: z.ZodMiniNumber<number>;
|
|
116
|
+
column: z.ZodMiniNumber<number>;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
export type SourceLocIR = z.infer<typeof SourceLocIR>;
|
|
119
|
+
/** Node-level metadata: provenance only, for now. Excluded from contentHash. */
|
|
120
|
+
export declare const NodeMetaIR: z.ZodMiniObject<{
|
|
121
|
+
loc: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
122
|
+
file: z.ZodMiniString<string>;
|
|
123
|
+
line: z.ZodMiniNumber<number>;
|
|
124
|
+
column: z.ZodMiniNumber<number>;
|
|
125
|
+
}, z.core.$strip>>;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
export type NodeMetaIR = z.infer<typeof NodeMetaIR>;
|
|
128
|
+
export declare const PropertyOperatorIR: z.ZodMiniEnum<{
|
|
129
|
+
between: "between";
|
|
130
|
+
contains: "contains";
|
|
131
|
+
eq: "eq";
|
|
132
|
+
exists: "exists";
|
|
133
|
+
gt: "gt";
|
|
134
|
+
gte: "gte";
|
|
135
|
+
in_array: "in_array";
|
|
136
|
+
lt: "lt";
|
|
137
|
+
lte: "lte";
|
|
138
|
+
ne: "ne";
|
|
139
|
+
not_between: "not_between";
|
|
140
|
+
not_contains: "not_contains";
|
|
141
|
+
not_exists: "not_exists";
|
|
142
|
+
not_in_array: "not_in_array";
|
|
143
|
+
}>;
|
|
144
|
+
export type PropertyOperatorIR = z.infer<typeof PropertyOperatorIR>;
|
|
145
|
+
/**
|
|
146
|
+
* Condition expression tree. The shape of value/values follows `op`:
|
|
147
|
+
* eq/ne/gt/gte/lt/lte/contains/not_contains → value; in_array/not_in_array →
|
|
148
|
+
* values; between/not_between → values = [min, max]; exists/not_exists → neither.
|
|
149
|
+
*
|
|
150
|
+
* `payload` predicates test the payload of an event (dotted paths reach nested
|
|
151
|
+
* fields). They are only valid inside a `where` subtree — `performed.where`
|
|
152
|
+
* and the event trigger's `where` — where an event row is in scope; the
|
|
153
|
+
* compiler (compileBundle) and the evaluator both enforce the placement.
|
|
154
|
+
* TODO: runtime refinement narrowing by op.
|
|
155
|
+
*/
|
|
156
|
+
/**
|
|
157
|
+
* Provenance rides on conditions too, so the studio can point at the exact
|
|
158
|
+
* `eq(...)` / `and(...)` that produced a node — same rule as nodes: `meta` is
|
|
159
|
+
* dropped before hashing, so carrying it never affects execution identity.
|
|
160
|
+
*/
|
|
161
|
+
interface ConditionBaseIR {
|
|
162
|
+
meta?: NodeMetaIR | undefined;
|
|
163
|
+
}
|
|
164
|
+
export type ConditionIR = (ConditionBaseIR & {
|
|
165
|
+
type: 'and';
|
|
166
|
+
conditions: ConditionIR[];
|
|
167
|
+
}) | (ConditionBaseIR & {
|
|
168
|
+
type: 'or';
|
|
169
|
+
conditions: ConditionIR[];
|
|
170
|
+
}) | (ConditionBaseIR & {
|
|
171
|
+
type: 'not';
|
|
172
|
+
condition: ConditionIR;
|
|
173
|
+
}) |
|
|
174
|
+
/** Reference a segment by id (defined in SegmentIR, versioned separately). */
|
|
175
|
+
(ConditionBaseIR & {
|
|
176
|
+
type: 'segment';
|
|
177
|
+
segment: string;
|
|
178
|
+
}) | (ConditionBaseIR & {
|
|
179
|
+
type: 'property';
|
|
180
|
+
path: string;
|
|
181
|
+
op: PropertyOperatorIR;
|
|
182
|
+
value?: ScalarIR | undefined;
|
|
183
|
+
values?: ScalarIR[] | undefined;
|
|
184
|
+
}) | (ConditionBaseIR & {
|
|
185
|
+
/** Event payload predicate; `path` is dotted for nested fields ('tags.utm_source'). */
|
|
186
|
+
type: 'payload';
|
|
187
|
+
path: string;
|
|
188
|
+
op: PropertyOperatorIR;
|
|
189
|
+
value?: ScalarIR | undefined;
|
|
190
|
+
values?: ScalarIR[] | undefined;
|
|
191
|
+
}) | (ConditionBaseIR & {
|
|
192
|
+
/**
|
|
193
|
+
* A predicate on the payload of the event that started the journey. Valid in the workflow
|
|
194
|
+
* that event triggers (flow conditions, goal, exitWhen) and nowhere else: a segment or a
|
|
195
|
+
* trigger filter has no journey to read it from.
|
|
196
|
+
*/
|
|
197
|
+
type: 'trigger_payload';
|
|
198
|
+
event: string;
|
|
199
|
+
path: string;
|
|
200
|
+
op: PropertyOperatorIR;
|
|
201
|
+
value?: ScalarIR | undefined;
|
|
202
|
+
values?: ScalarIR[] | undefined;
|
|
203
|
+
}) | (ConditionBaseIR & {
|
|
204
|
+
type: 'performed';
|
|
205
|
+
event: string;
|
|
206
|
+
/** Payload filter: only events matching it count (a payload-only subtree). */
|
|
207
|
+
where?: ConditionIR | undefined;
|
|
208
|
+
within?: DurationIR | undefined;
|
|
209
|
+
count?: number | undefined;
|
|
210
|
+
}) |
|
|
211
|
+
/**
|
|
212
|
+
* The user can be reached on the channel right now: for push, the host's
|
|
213
|
+
* device directory lists at least one device; for the others, the channel's
|
|
214
|
+
* recipient property (email, phone, …) is set.
|
|
215
|
+
*/
|
|
216
|
+
(ConditionBaseIR & {
|
|
217
|
+
type: 'reachable';
|
|
218
|
+
channel: ChannelIR;
|
|
219
|
+
});
|
|
220
|
+
export declare const ConditionIR: z.ZodMiniType<ConditionIR>;
|
|
221
|
+
/**
|
|
222
|
+
* Trigger shapes. A date trigger starts a journey for every known user its `filter` holds for,
|
|
223
|
+
* once, when its time comes. The event trigger has two independent gates: `where` tests
|
|
224
|
+
* the triggering event's payload (payload-only subtree, evaluated against the
|
|
225
|
+
* incoming event before anything else), `filter` tests the user's profile.
|
|
226
|
+
*/
|
|
227
|
+
export declare const TriggerIR: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
228
|
+
type: z.ZodMiniLiteral<"event">;
|
|
229
|
+
event: z.ZodMiniString<string>;
|
|
230
|
+
where: z.ZodMiniOptional<z.ZodMiniType<ConditionIR, unknown, z.core.$ZodTypeInternals<ConditionIR, unknown>>>;
|
|
231
|
+
filter: z.ZodMiniOptional<z.ZodMiniType<ConditionIR, unknown, z.core.$ZodTypeInternals<ConditionIR, unknown>>>;
|
|
232
|
+
visitors: z.ZodMiniOptional<z.ZodMiniLiteral<true>>;
|
|
233
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
234
|
+
type: z.ZodMiniLiteral<"segment">;
|
|
235
|
+
segment: z.ZodMiniString<string>;
|
|
236
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
237
|
+
type: z.ZodMiniLiteral<"date">;
|
|
238
|
+
at: z.ZodMiniString<string>;
|
|
239
|
+
filter: z.ZodMiniOptional<z.ZodMiniType<ConditionIR, unknown, z.core.$ZodTypeInternals<ConditionIR, unknown>>>;
|
|
240
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
241
|
+
type: z.ZodMiniLiteral<"webhook">;
|
|
242
|
+
}, z.core.$strip>], "type">;
|
|
243
|
+
export type TriggerIR = z.infer<typeof TriggerIR>;
|
|
244
|
+
interface NodeBaseIR {
|
|
245
|
+
/** Stable id derived from the structural path (rules in the file header). */
|
|
246
|
+
id: string;
|
|
247
|
+
/** Optional node name: UI title / observability handle (branch's optional first argument lands here). */
|
|
248
|
+
label?: string | undefined;
|
|
249
|
+
/** Metadata (provenance); excluded from contentHash. */
|
|
250
|
+
meta?: NodeMetaIR | undefined;
|
|
251
|
+
}
|
|
252
|
+
export type NodeIR = (NodeBaseIR & {
|
|
253
|
+
type: 'message';
|
|
254
|
+
channel: ChannelIR;
|
|
255
|
+
template: string;
|
|
256
|
+
props: Record<string, PropValueIR>;
|
|
257
|
+
/**
|
|
258
|
+
* Push only: which of the user's devices get a copy. Absent means every
|
|
259
|
+
* device the directory lists; 'latest' only the most recently registered.
|
|
260
|
+
*/
|
|
261
|
+
devices?: 'latest' | undefined;
|
|
262
|
+
/**
|
|
263
|
+
* Email and push: the template's subscription topic, or null for a transactional message
|
|
264
|
+
* (sent whatever the user opted out of). Absent for other channels, and in IR compiled
|
|
265
|
+
* before topics existed: such a step checks the channel-level opt-out only, as it always did.
|
|
266
|
+
*/
|
|
267
|
+
topic?: string | null | undefined;
|
|
268
|
+
/**
|
|
269
|
+
* The template opted into at-least-once: a replayed send step sends a copy an earlier run
|
|
270
|
+
* claimed but never settled again. Absent (the default, 'skip') the copy is not sent again
|
|
271
|
+
* — kept absent rather than written as 'skip', so adding the option changed no node hash.
|
|
272
|
+
*/
|
|
273
|
+
redelivery?: 'resend' | undefined;
|
|
274
|
+
}) | (NodeBaseIR & {
|
|
275
|
+
type: 'delay';
|
|
276
|
+
duration: DurationIR;
|
|
277
|
+
}) | (NodeBaseIR & {
|
|
278
|
+
type: 'random_delay';
|
|
279
|
+
min: DurationIR;
|
|
280
|
+
max: DurationIR;
|
|
281
|
+
}) | (NodeBaseIR & {
|
|
282
|
+
type: 'time_window';
|
|
283
|
+
days: WeekdayIR[];
|
|
284
|
+
between: [string, string];
|
|
285
|
+
tz: string;
|
|
286
|
+
}) | (NodeBaseIR & {
|
|
287
|
+
type: 'wait_until';
|
|
288
|
+
condition: ConditionIR;
|
|
289
|
+
timeout: DurationIR;
|
|
290
|
+
onTimeout: 'continue' | 'exit' | NodeIR[];
|
|
291
|
+
}) | (NodeBaseIR & {
|
|
292
|
+
type: 'branch';
|
|
293
|
+
cases: {
|
|
294
|
+
label?: string | undefined;
|
|
295
|
+
condition: ConditionIR;
|
|
296
|
+
flow: NodeIR[];
|
|
297
|
+
}[];
|
|
298
|
+
/** Default arm (the DSL's bare tail argument). Absent = fall through to the main line. */
|
|
299
|
+
otherwise?: NodeIR[] | undefined;
|
|
300
|
+
}) | (NodeBaseIR & {
|
|
301
|
+
type: 'filter';
|
|
302
|
+
/** Audit-log line for the users this gate drops. Metadata: excluded from contentHash. */
|
|
303
|
+
reason?: string | undefined;
|
|
304
|
+
condition: ConditionIR;
|
|
305
|
+
}) | (NodeBaseIR & {
|
|
306
|
+
type: 'cohort';
|
|
307
|
+
/**
|
|
308
|
+
* Explicit experiment key: bucketing hashes `userId:key` instead of the
|
|
309
|
+
* structural node id, so the assignment survives node insertion/moves and
|
|
310
|
+
* the experiment keeps one identity across workflow versions. Absent →
|
|
311
|
+
* the node id is used (fine for one-off splits).
|
|
312
|
+
*/
|
|
313
|
+
key?: string | undefined;
|
|
314
|
+
/**
|
|
315
|
+
* Arms in authoring order — the order the interpreter accumulates weights
|
|
316
|
+
* in, so it decides which bucket range each arm owns. The DSL keeps that
|
|
317
|
+
* promise by rejecting integer-like arm names, which JavaScript would
|
|
318
|
+
* hoist to the front of the object in numeric order. Weights sum to 100.
|
|
319
|
+
*/
|
|
320
|
+
arms: {
|
|
321
|
+
name: string;
|
|
322
|
+
weight: number;
|
|
323
|
+
flow: NodeIR[];
|
|
324
|
+
}[];
|
|
325
|
+
}) | (NodeBaseIR & {
|
|
326
|
+
/** `reason` is the audit-log line. Metadata: excluded from contentHash. */
|
|
327
|
+
type: 'exit';
|
|
328
|
+
reason?: string | undefined;
|
|
329
|
+
}) | (NodeBaseIR & {
|
|
330
|
+
type: 'send_event';
|
|
331
|
+
event: string;
|
|
332
|
+
payload: Record<string, PropValueIR>;
|
|
333
|
+
}) | (NodeBaseIR & {
|
|
334
|
+
type: 'action';
|
|
335
|
+
/** Registry name of the custom action; the code itself lives in the deployed Worker bundle. */
|
|
336
|
+
action: string;
|
|
337
|
+
/** Argument values; user_property references are resolved at run time, like message props. */
|
|
338
|
+
args: Record<string, PropValueIR>;
|
|
339
|
+
});
|
|
340
|
+
export declare const NodeIR: z.ZodMiniType<NodeIR>;
|
|
341
|
+
export declare const GoalIR: z.ZodMiniObject<{
|
|
342
|
+
condition: z.ZodMiniType<ConditionIR, unknown, z.core.$ZodTypeInternals<ConditionIR, unknown>>;
|
|
343
|
+
within: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
344
|
+
value: z.ZodMiniString<string>;
|
|
345
|
+
ms: z.ZodMiniNumber<number>;
|
|
346
|
+
}, z.core.$strip>>;
|
|
347
|
+
exitOnMatch: z.ZodMiniBoolean<boolean>;
|
|
348
|
+
}, z.core.$strip>;
|
|
349
|
+
export type GoalIR = z.infer<typeof GoalIR>;
|
|
350
|
+
/**
|
|
351
|
+
* Human-facing metadata: **excluded from contentHash** (see hash.ts).
|
|
352
|
+
* Editing a name or description does not touch execution semantics, so it never
|
|
353
|
+
* invalidates the version in-flight users are pinned to, nor shows up in plan.
|
|
354
|
+
*/
|
|
355
|
+
export declare const MetaIR: z.ZodMiniObject<{
|
|
356
|
+
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
357
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
358
|
+
loc: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
359
|
+
file: z.ZodMiniString<string>;
|
|
360
|
+
line: z.ZodMiniNumber<number>;
|
|
361
|
+
column: z.ZodMiniNumber<number>;
|
|
362
|
+
}, z.core.$strip>>;
|
|
363
|
+
}, z.core.$strip>;
|
|
364
|
+
export type MetaIR = z.infer<typeof MetaIR>;
|
|
365
|
+
/**
|
|
366
|
+
* Re-entry policy (`workflow({ reentry })`, README "Re-entry"): whether a user who already entered
|
|
367
|
+
* may enter again. `never` enters a user once; `after_exit` again once their previous instance
|
|
368
|
+
* ended; `concurrent` while it still runs. `cooldown` is the least time from the user's previous
|
|
369
|
+
* entry to the next one. The `never` branch is strict, so a cooldown on it is refused rather
|
|
370
|
+
* than dropped.
|
|
371
|
+
*/
|
|
372
|
+
export declare const ReentryIR: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
373
|
+
mode: z.ZodMiniLiteral<"never">;
|
|
374
|
+
}, z.core.$strict>, z.ZodMiniObject<{
|
|
375
|
+
mode: z.ZodMiniLiteral<"after_exit">;
|
|
376
|
+
cooldown: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
377
|
+
value: z.ZodMiniString<string>;
|
|
378
|
+
ms: z.ZodMiniNumber<number>;
|
|
379
|
+
}, z.core.$strip>>;
|
|
380
|
+
}, z.core.$strict>, z.ZodMiniObject<{
|
|
381
|
+
mode: z.ZodMiniLiteral<"concurrent">;
|
|
382
|
+
cooldown: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
383
|
+
value: z.ZodMiniString<string>;
|
|
384
|
+
ms: z.ZodMiniNumber<number>;
|
|
385
|
+
}, z.core.$strip>>;
|
|
386
|
+
}, z.core.$strict>], "mode">;
|
|
387
|
+
export type ReentryIR = z.infer<typeof ReentryIR>;
|
|
388
|
+
export declare const WorkflowIR: z.ZodMiniObject<{
|
|
389
|
+
irVersion: z.ZodMiniLiteral<3>;
|
|
390
|
+
id: z.ZodMiniString<string>;
|
|
391
|
+
contentHash: z.ZodMiniString<string>;
|
|
392
|
+
meta: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
393
|
+
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
394
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
395
|
+
loc: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
396
|
+
file: z.ZodMiniString<string>;
|
|
397
|
+
line: z.ZodMiniNumber<number>;
|
|
398
|
+
column: z.ZodMiniNumber<number>;
|
|
399
|
+
}, z.core.$strip>>;
|
|
400
|
+
}, z.core.$strip>>;
|
|
401
|
+
trigger: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
402
|
+
type: z.ZodMiniLiteral<"event">;
|
|
403
|
+
event: z.ZodMiniString<string>;
|
|
404
|
+
where: z.ZodMiniOptional<z.ZodMiniType<ConditionIR, unknown, z.core.$ZodTypeInternals<ConditionIR, unknown>>>;
|
|
405
|
+
filter: z.ZodMiniOptional<z.ZodMiniType<ConditionIR, unknown, z.core.$ZodTypeInternals<ConditionIR, unknown>>>;
|
|
406
|
+
visitors: z.ZodMiniOptional<z.ZodMiniLiteral<true>>;
|
|
407
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
408
|
+
type: z.ZodMiniLiteral<"segment">;
|
|
409
|
+
segment: z.ZodMiniString<string>;
|
|
410
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
411
|
+
type: z.ZodMiniLiteral<"date">;
|
|
412
|
+
at: z.ZodMiniString<string>;
|
|
413
|
+
filter: z.ZodMiniOptional<z.ZodMiniType<ConditionIR, unknown, z.core.$ZodTypeInternals<ConditionIR, unknown>>>;
|
|
414
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
415
|
+
type: z.ZodMiniLiteral<"webhook">;
|
|
416
|
+
}, z.core.$strip>], "type">;
|
|
417
|
+
reentry: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
418
|
+
mode: z.ZodMiniLiteral<"never">;
|
|
419
|
+
}, z.core.$strict>, z.ZodMiniObject<{
|
|
420
|
+
mode: z.ZodMiniLiteral<"after_exit">;
|
|
421
|
+
cooldown: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
422
|
+
value: z.ZodMiniString<string>;
|
|
423
|
+
ms: z.ZodMiniNumber<number>;
|
|
424
|
+
}, z.core.$strip>>;
|
|
425
|
+
}, z.core.$strict>, z.ZodMiniObject<{
|
|
426
|
+
mode: z.ZodMiniLiteral<"concurrent">;
|
|
427
|
+
cooldown: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
428
|
+
value: z.ZodMiniString<string>;
|
|
429
|
+
ms: z.ZodMiniNumber<number>;
|
|
430
|
+
}, z.core.$strip>>;
|
|
431
|
+
}, z.core.$strict>], "mode">;
|
|
432
|
+
goal: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
433
|
+
condition: z.ZodMiniType<ConditionIR, unknown, z.core.$ZodTypeInternals<ConditionIR, unknown>>;
|
|
434
|
+
within: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
435
|
+
value: z.ZodMiniString<string>;
|
|
436
|
+
ms: z.ZodMiniNumber<number>;
|
|
437
|
+
}, z.core.$strip>>;
|
|
438
|
+
exitOnMatch: z.ZodMiniBoolean<boolean>;
|
|
439
|
+
}, z.core.$strip>>;
|
|
440
|
+
exitWhen: z.ZodMiniOptional<z.ZodMiniType<ConditionIR, unknown, z.core.$ZodTypeInternals<ConditionIR, unknown>>>;
|
|
441
|
+
flow: z.ZodMiniArray<z.ZodMiniType<NodeIR, unknown, z.core.$ZodTypeInternals<NodeIR, unknown>>>;
|
|
442
|
+
}, z.core.$strip>;
|
|
443
|
+
export type WorkflowIR = z.infer<typeof WorkflowIR>;
|
|
444
|
+
export declare const SegmentIR: z.ZodMiniObject<{
|
|
445
|
+
irVersion: z.ZodMiniLiteral<3>;
|
|
446
|
+
id: z.ZodMiniString<string>;
|
|
447
|
+
contentHash: z.ZodMiniString<string>;
|
|
448
|
+
meta: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
449
|
+
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
450
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
451
|
+
loc: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
452
|
+
file: z.ZodMiniString<string>;
|
|
453
|
+
line: z.ZodMiniNumber<number>;
|
|
454
|
+
column: z.ZodMiniNumber<number>;
|
|
455
|
+
}, z.core.$strip>>;
|
|
456
|
+
}, z.core.$strip>>;
|
|
457
|
+
condition: z.ZodMiniType<ConditionIR, unknown, z.core.$ZodTypeInternals<ConditionIR, unknown>>;
|
|
458
|
+
}, z.core.$strip>;
|
|
459
|
+
export type SegmentIR = z.infer<typeof SegmentIR>;
|
|
460
|
+
/** Template manifest entry: IR records only the reference; the body lives in the template system. */
|
|
461
|
+
export declare const TemplateIR: z.ZodMiniObject<{
|
|
462
|
+
irVersion: z.ZodMiniLiteral<3>;
|
|
463
|
+
key: z.ZodMiniString<string>;
|
|
464
|
+
channel: z.ZodMiniEnum<{
|
|
465
|
+
discord: "discord";
|
|
466
|
+
email: "email";
|
|
467
|
+
in_app: "in_app";
|
|
468
|
+
push: "push";
|
|
469
|
+
slack: "slack";
|
|
470
|
+
sms: "sms";
|
|
471
|
+
survey: "survey";
|
|
472
|
+
}>;
|
|
473
|
+
}, z.core.$strip>;
|
|
474
|
+
export type TemplateIR = z.infer<typeof TemplateIR>;
|
|
475
|
+
/**
|
|
476
|
+
* Action manifest entry: IR records the name; the implementation solidifies
|
|
477
|
+
* into the Worker bundle at deploy time, never into IR (custom code stays out
|
|
478
|
+
* of the data plane by design).
|
|
479
|
+
*/
|
|
480
|
+
export declare const ActionIR: z.ZodMiniObject<{
|
|
481
|
+
irVersion: z.ZodMiniLiteral<3>;
|
|
482
|
+
name: z.ZodMiniString<string>;
|
|
483
|
+
}, z.core.$strip>;
|
|
484
|
+
export type ActionIR = z.infer<typeof ActionIR>;
|
|
485
|
+
/**
|
|
486
|
+
* Deployment unit: the complete snapshot one `deploy` produces (terraform
|
|
487
|
+
* apply, same mental model). The server diffs each definition's contentHash to
|
|
488
|
+
* decide publish / skip / retire.
|
|
489
|
+
*/
|
|
490
|
+
/**
|
|
491
|
+
* The subscription topics the contract declares, carried by the bundle so the engine validates
|
|
492
|
+
* `/subscriptions` and the templates' topics against the deployed list, not the SDK's word.
|
|
493
|
+
*/
|
|
494
|
+
export declare const SubscriptionsIR: z.ZodMiniObject<{
|
|
495
|
+
topics: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
496
|
+
}, z.core.$strip>;
|
|
497
|
+
export type SubscriptionsIR = z.infer<typeof SubscriptionsIR>;
|
|
498
|
+
export declare const BundleIR: z.ZodMiniObject<{
|
|
499
|
+
irVersion: z.ZodMiniLiteral<3>;
|
|
500
|
+
workflows: z.ZodMiniArray<z.ZodMiniObject<{
|
|
501
|
+
irVersion: z.ZodMiniLiteral<3>;
|
|
502
|
+
id: z.ZodMiniString<string>;
|
|
503
|
+
contentHash: z.ZodMiniString<string>;
|
|
504
|
+
meta: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
505
|
+
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
506
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
507
|
+
loc: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
508
|
+
file: z.ZodMiniString<string>;
|
|
509
|
+
line: z.ZodMiniNumber<number>;
|
|
510
|
+
column: z.ZodMiniNumber<number>;
|
|
511
|
+
}, z.core.$strip>>;
|
|
512
|
+
}, z.core.$strip>>;
|
|
513
|
+
trigger: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
514
|
+
type: z.ZodMiniLiteral<"event">;
|
|
515
|
+
event: z.ZodMiniString<string>;
|
|
516
|
+
where: z.ZodMiniOptional<z.ZodMiniType<ConditionIR, unknown, z.core.$ZodTypeInternals<ConditionIR, unknown>>>;
|
|
517
|
+
filter: z.ZodMiniOptional<z.ZodMiniType<ConditionIR, unknown, z.core.$ZodTypeInternals<ConditionIR, unknown>>>;
|
|
518
|
+
visitors: z.ZodMiniOptional<z.ZodMiniLiteral<true>>;
|
|
519
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
520
|
+
type: z.ZodMiniLiteral<"segment">;
|
|
521
|
+
segment: z.ZodMiniString<string>;
|
|
522
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
523
|
+
type: z.ZodMiniLiteral<"date">;
|
|
524
|
+
at: z.ZodMiniString<string>;
|
|
525
|
+
filter: z.ZodMiniOptional<z.ZodMiniType<ConditionIR, unknown, z.core.$ZodTypeInternals<ConditionIR, unknown>>>;
|
|
526
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
527
|
+
type: z.ZodMiniLiteral<"webhook">;
|
|
528
|
+
}, z.core.$strip>], "type">;
|
|
529
|
+
reentry: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
530
|
+
mode: z.ZodMiniLiteral<"never">;
|
|
531
|
+
}, z.core.$strict>, z.ZodMiniObject<{
|
|
532
|
+
mode: z.ZodMiniLiteral<"after_exit">;
|
|
533
|
+
cooldown: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
534
|
+
value: z.ZodMiniString<string>;
|
|
535
|
+
ms: z.ZodMiniNumber<number>;
|
|
536
|
+
}, z.core.$strip>>;
|
|
537
|
+
}, z.core.$strict>, z.ZodMiniObject<{
|
|
538
|
+
mode: z.ZodMiniLiteral<"concurrent">;
|
|
539
|
+
cooldown: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
540
|
+
value: z.ZodMiniString<string>;
|
|
541
|
+
ms: z.ZodMiniNumber<number>;
|
|
542
|
+
}, z.core.$strip>>;
|
|
543
|
+
}, z.core.$strict>], "mode">;
|
|
544
|
+
goal: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
545
|
+
condition: z.ZodMiniType<ConditionIR, unknown, z.core.$ZodTypeInternals<ConditionIR, unknown>>;
|
|
546
|
+
within: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
547
|
+
value: z.ZodMiniString<string>;
|
|
548
|
+
ms: z.ZodMiniNumber<number>;
|
|
549
|
+
}, z.core.$strip>>;
|
|
550
|
+
exitOnMatch: z.ZodMiniBoolean<boolean>;
|
|
551
|
+
}, z.core.$strip>>;
|
|
552
|
+
exitWhen: z.ZodMiniOptional<z.ZodMiniType<ConditionIR, unknown, z.core.$ZodTypeInternals<ConditionIR, unknown>>>;
|
|
553
|
+
flow: z.ZodMiniArray<z.ZodMiniType<NodeIR, unknown, z.core.$ZodTypeInternals<NodeIR, unknown>>>;
|
|
554
|
+
}, z.core.$strip>>;
|
|
555
|
+
segments: z.ZodMiniArray<z.ZodMiniObject<{
|
|
556
|
+
irVersion: z.ZodMiniLiteral<3>;
|
|
557
|
+
id: z.ZodMiniString<string>;
|
|
558
|
+
contentHash: z.ZodMiniString<string>;
|
|
559
|
+
meta: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
560
|
+
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
561
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
562
|
+
loc: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
563
|
+
file: z.ZodMiniString<string>;
|
|
564
|
+
line: z.ZodMiniNumber<number>;
|
|
565
|
+
column: z.ZodMiniNumber<number>;
|
|
566
|
+
}, z.core.$strip>>;
|
|
567
|
+
}, z.core.$strip>>;
|
|
568
|
+
condition: z.ZodMiniType<ConditionIR, unknown, z.core.$ZodTypeInternals<ConditionIR, unknown>>;
|
|
569
|
+
}, z.core.$strip>>;
|
|
570
|
+
templates: z.ZodMiniArray<z.ZodMiniObject<{
|
|
571
|
+
irVersion: z.ZodMiniLiteral<3>;
|
|
572
|
+
key: z.ZodMiniString<string>;
|
|
573
|
+
channel: z.ZodMiniEnum<{
|
|
574
|
+
discord: "discord";
|
|
575
|
+
email: "email";
|
|
576
|
+
in_app: "in_app";
|
|
577
|
+
push: "push";
|
|
578
|
+
slack: "slack";
|
|
579
|
+
sms: "sms";
|
|
580
|
+
survey: "survey";
|
|
581
|
+
}>;
|
|
582
|
+
}, z.core.$strip>>;
|
|
583
|
+
actions: z.ZodMiniArray<z.ZodMiniObject<{
|
|
584
|
+
irVersion: z.ZodMiniLiteral<3>;
|
|
585
|
+
name: z.ZodMiniString<string>;
|
|
586
|
+
}, z.core.$strip>>;
|
|
587
|
+
subscriptions: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
588
|
+
topics: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
589
|
+
}, z.core.$strip>>;
|
|
590
|
+
}, z.core.$strip>;
|
|
591
|
+
export type BundleIR = z.infer<typeof BundleIR>;
|
|
592
|
+
export {};
|
|
593
|
+
//# sourceMappingURL=ir.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ir.d.mts","names":[],"sources":["../src/ir.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAoDa;qBAIA,UAAQ,EAAA,uBAAA,EAAA,uBAAA,EAAA,uBAAA,EAAA;YACT,WAAW,EAAE,aAAa;;qBAUzB,YAAU,EAAA;;;GAAkD,EAAA,KAAA;YAC7D,aAAa,EAAE,aAAa;;qBAG3B,mBAAiB,EAAA;;;GAG5B,EAAA,KAAA;YACU,oBAAoB,EAAE,aAAa;;;;;;qBAOlC,qBAAmB,EAAA;;;;GAI9B,EAAA,KAAA;YACU,sBAAsB,EAAE,aAAa;;qBAGpC,aAAW,EAAA,uBAAA,EAAA,uBAAA,EAAA,uBAAA,EAAA,uBAAA,EAAA,2BAAA,EAAA;;;;;;;GAA8D,EAAA,KAAA;YAC1E,cAAc,EAAE,aAAa;qBAE5B,WAAS,EAAA;;;;;;;;;YACV,YAAY,EAAE,aAAa;qBAE1B,WAAS,EAAA;;;;;;;;;YACV,YAAY,EAAE,aAAa;;;;;;;qBAU1B,aAAW,EAAA;;;;GAItB,EAAA,KAAA;YACU,cAAc,EAAE,aAAa;;qBAG5B,YAAU,EAAA;;;;;;GAErB,EAAA,KAAA;YACU,aAAa,EAAE,aAAa;qBAI3B,oBAAkB,EAAA;;;;;;;;;;;;;;;;YAgBnB,qBAAqB,EAAE,aAAa;;;;;;;;;;;;;;;;;UAkBtC;EACR,OAAO;;YAGG,eACP;EAAoB;EAAa,YAAY;MAC7C;EAAoB;EAAY,YAAY;MAC5C;EAAoB;EAAa,WAAW;;;CAE5C;EAAoB;EAAiB;MACrC;EACC;EACA;EACA,IAAI;EACJ,QAAQ;EACR,SAAS;MAEV;;EAEC;EACA;EACA,IAAI;EACJ,QAAQ;EACR,SAAS;MAEV;;;;;;EAMC;EACA;EACA;EACA,IAAI;EACJ,QAAQ;EACR,SAAS;MAEV;EACC;EACA;;EAEA,QAAQ;EACR,SAAS;EACT;;;;;;;CAOD;EAAoB;EAAmB,SAAS;;qBAIxC,aAAa,EAAE,YAAY;;;;;;;qBAmD3B,WAAS,EAAA,2BAAA,EAAA;;;;;;;;;;;;;;;GAiBpB,EAAA,KAAA;YACU,YAAY,EAAE,aAAa;UAI7B;;EAER;;EAEA;;EAEA,OAAO;;YAGG,UACP;EACC;EACA,SAAS;EACT;EACA,OAAO,eAAe;;;;;EAKtB;;;;;;EAMA;;;;;;EAMA;MAED;EAAe;EAAe,UAAU;MACxC;EAAe;EAAsB,KAAK;EAAY,KAAK;MAC3D;EACC;EACA,MAAM;EACN;EACA;MAED;EACC;EACA,WAAW;EACX,SAAS;EACT,iCAAiC;MAElC;EACC;EACA;IAAS;IAA4B,WAAW;IAAa,MAAM;;;EAEnE,YAAY;MAEb;EACC;;EAEA;EACA,WAAW;MAEZ;EACC;;;;;;;EAOA;;;;;;;EAOA;IAAQ;IAAc;IAAgB,MAAM;;MAE7C;;EAEC;EACA;MAED;EAAe;EAAoB;EAAe,SAAS,eAAe;MAC1E;EACC;;EAEA;;EAEA,MAAM,eAAe;;qBAKd,QAAQ,EAAE,YAAY;qBAsEtB,QAAM,EAAA;;;;;;;GAIjB,EAAA,KAAA;YACU,SAAS,EAAE,aAAa;;;;;;qBAOvB,QAAM,EAAA;;;;;;;;GAUjB,EAAA,KAAA;YACU,SAAS,EAAE,aAAa;;;;;;;;qBASvB,WAAS,EAAA,2BAAA,EAAA;;;;;;;;;;;;;;GAIpB,EAAA,KAAA;YACU,YAAY,EAAE,aAAa;qBAE1B,YAAU,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAWrB,EAAA,KAAA;YACU,aAAa,EAAE,aAAa;qBAE3B,WAAS,EAAA;;;;;;;;;;;;;;GAQpB,EAAA,KAAA;YACU,YAAY,EAAE,aAAa;;qBAG1B,YAAU,EAAA;;;;;;;;;;;;GAIrB,EAAA,KAAA;YACU,aAAa,EAAE,aAAa;;;;;;qBAO3B,UAAQ,EAAA;;;GAGnB,EAAA,KAAA;YACU,WAAW,EAAE,aAAa;;;;;;;;;;qBAWzB,iBAAe,EAAA;;GAE1B,EAAA,KAAA;YACU,kBAAkB,EAAE,aAAa;qBAEhC,UAAQ,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQnB,EAAA,KAAA;YACU,WAAW,EAAE,aAAa"}
|