sendwend 0.0.0-stage → 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 +21 -0
- package/README.md +2082 -2
- 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 +279 -3
- package/src/cloudflare/workers.d.ts +44 -0
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
import { JourneyConfig } from "../config.mjs";
|
|
2
|
+
import { InFlightProblem } from "../inflight.mjs";
|
|
3
|
+
import { TriggerIR } from "../ir.mjs";
|
|
4
|
+
import { BundleVersion, JourneyStore, ProfileProps } from "../store/index.mjs";
|
|
5
|
+
import { JourneyEnv } from "./platform.mjs";
|
|
6
|
+
/**
|
|
7
|
+
* The largest payload an event may carry, as UTF-8 bytes of its JSON. A triggering event's
|
|
8
|
+
* payload rides in the instance's params for the whole journey (`t.payload.x` reads it there),
|
|
9
|
+
* and the runtimes cap those: Cloudflare Workflows at 1 MiB, and a batch arriving through a
|
|
10
|
+
* queue at 128 KiB a message. Refusing at the door, with the size in the message, replaces an
|
|
11
|
+
* instance that fails to start with an error nobody traces back to one oversized event.
|
|
12
|
+
*/
|
|
13
|
+
export declare const MAX_EVENT_PAYLOAD_BYTES: number;
|
|
14
|
+
/** What is wrong with a payload's size, or undefined when it fits. */
|
|
15
|
+
export declare function payloadSizeError(event: string, payload: unknown): string | undefined;
|
|
16
|
+
/** An event whose payload is over `MAX_EVENT_PAYLOAD_BYTES`: the caller's to fix, never retried into fitting. */
|
|
17
|
+
export declare class EventPayloadTooLargeError extends Error {
|
|
18
|
+
readonly name = "EventPayloadTooLargeError";
|
|
19
|
+
}
|
|
20
|
+
export interface IngestInput {
|
|
21
|
+
userId: string;
|
|
22
|
+
event: string;
|
|
23
|
+
payload?: Record<string, unknown>;
|
|
24
|
+
ts?: number;
|
|
25
|
+
/**
|
|
26
|
+
* This occurrence's identity, and with it the idempotency of sending it.
|
|
27
|
+
*
|
|
28
|
+
* Only the sender can know whether two deliveries describe one occurrence or
|
|
29
|
+
* two, so the engine does not decide: an id it has already stored makes the
|
|
30
|
+
* second delivery a no-op. That matters because ingest is reachable from two
|
|
31
|
+
* retrying callers — an HTTP client retrying a 500, and the interpreter's
|
|
32
|
+
* send_event step being retried after it already committed its row — and a
|
|
33
|
+
* second copy of an event silently changes every count- and window-based
|
|
34
|
+
* condition that reads the log.
|
|
35
|
+
*
|
|
36
|
+
* Callers that retry should send an id they can reproduce. Omitting it gets
|
|
37
|
+
* a fresh one, which records the event as its own occurrence.
|
|
38
|
+
*/
|
|
39
|
+
id?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface IngestResult {
|
|
42
|
+
/** The occurrence's identity: the caller's `id`, or the one minted for it. */
|
|
43
|
+
id: string;
|
|
44
|
+
/** False when that id was already in the log: nothing was written this time. */
|
|
45
|
+
stored: boolean;
|
|
46
|
+
woke: number;
|
|
47
|
+
started: string[];
|
|
48
|
+
}
|
|
49
|
+
export declare function ingestEvent(env: JourneyEnv, input: IngestInput, store: JourneyStore): Promise<IngestResult>;
|
|
50
|
+
/**
|
|
51
|
+
* Wake every instance of the user waiting on any of `events`, once each: an instance subscribed
|
|
52
|
+
* to several of them (a wait on two profile properties, patched together) gets one wake-up, and
|
|
53
|
+
* the payload names the first event it matched.
|
|
54
|
+
*/
|
|
55
|
+
export declare function wakeSubscribers(env: JourneyEnv, store: JourneyStore, userId: string, events: readonly string[]): Promise<number>;
|
|
56
|
+
/**
|
|
57
|
+
* Segment-entry triggers, maintained lazily: on each ingest/identify for a
|
|
58
|
+
* user, re-evaluate every trigger-routed segment for that user and act on the
|
|
59
|
+
* membership transition (enter → start journeys, leave → drop membership so a
|
|
60
|
+
* later re-qualification is a new entry attempt under the workflow's re-entry
|
|
61
|
+
* policy). Purely time-driven drift (an inactivity
|
|
62
|
+
* segment turning true by clock alone) has no event to ride on: the scheduled
|
|
63
|
+
* sweep catches it (`sweepSegments`).
|
|
64
|
+
*/
|
|
65
|
+
export declare function refreshSegmentTriggers(env: JourneyEnv, store: JourneyStore, userId: string, ts: number): Promise<string[]>;
|
|
66
|
+
export interface SweepResult {
|
|
67
|
+
/** Users the evaluator looked at: those whose membership may have changed, not everyone. */
|
|
68
|
+
evaluated: number;
|
|
69
|
+
/** Journeys the segments' entries started. */
|
|
70
|
+
started: string[];
|
|
71
|
+
/**
|
|
72
|
+
* Each deployed segment's size, recorded when a pass ends: empty while one is still under way
|
|
73
|
+
* (and when the store keeps no reporting).
|
|
74
|
+
*/
|
|
75
|
+
sizes: {
|
|
76
|
+
segment: string;
|
|
77
|
+
size: number;
|
|
78
|
+
}[];
|
|
79
|
+
/**
|
|
80
|
+
* Whether the pass over the segments has been through every user. False when this sweep ran
|
|
81
|
+
* out of time: the pass is kept in the store and the next sweep carries on from there.
|
|
82
|
+
*/
|
|
83
|
+
finished: boolean;
|
|
84
|
+
/** The date triggers this sweep worked on: how many journeys it started for each, and whether the fan-out is over. */
|
|
85
|
+
dates: DateFanout[];
|
|
86
|
+
}
|
|
87
|
+
/** What one sweep did for one date trigger. */
|
|
88
|
+
export interface DateFanout {
|
|
89
|
+
workflow: string;
|
|
90
|
+
/** The trigger's time, epoch milliseconds. */
|
|
91
|
+
at: number;
|
|
92
|
+
/** Journeys this sweep started for it. */
|
|
93
|
+
entered: number;
|
|
94
|
+
/** Whether every user has been gone through; false when the next sweep continues. */
|
|
95
|
+
finished: boolean;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* How long an entry may wait for its runner's admission before maintenance looks for its
|
|
99
|
+
* instance. A create takes well under a second and a queued instance is found by `get`, so this
|
|
100
|
+
* only has to outlast a create still in flight — generously, since a wrong call fails a journey.
|
|
101
|
+
*/
|
|
102
|
+
export declare const LOST_START_AFTER_MS: number;
|
|
103
|
+
/**
|
|
104
|
+
* Starts lost between the entry and the platform's create — the Worker cut off there, or a
|
|
105
|
+
* create that failed with its rollback failing too — leave a `running` entry nothing will ever
|
|
106
|
+
* admit, and as a running entry it would block re-entry for good. An instance that
|
|
107
|
+
* ended before admitting itself leaves the same. An entry old enough, unadmitted, whose instance
|
|
108
|
+
* the runtime does not know or reports ended, is marked `failed`: it blocks
|
|
109
|
+
* nothing, and a retry of its occurrence reclaims it. Nothing of such an instance ran, since admission precedes its first effect. Platform-neutral:
|
|
110
|
+
* on AWS a planned start is always known to `get` (its registry row), and reads as ended only once
|
|
111
|
+
* its retries have given up, so only a start with nothing behind it is touched.
|
|
112
|
+
*/
|
|
113
|
+
export declare function failLostStarts(env: JourneyEnv, store: JourneyStore, now: number): Promise<string[]>;
|
|
114
|
+
/**
|
|
115
|
+
* How long after its admission an entry is left out of the lost-instance sample. No age proves
|
|
116
|
+
* anything about an admitted instance — it can end a moment after admitting itself, and a long
|
|
117
|
+
* wait runs for weeks — so this is not a judgment, only a filter: the freshest entries are the
|
|
118
|
+
* ones most likely to still be running, and the ones a platform status may not have settled
|
|
119
|
+
* for yet. Correctness rests on the lookup and the conditional update, not on the window.
|
|
120
|
+
*/
|
|
121
|
+
export declare const LOST_INSTANCE_AFTER_MS: number;
|
|
122
|
+
/**
|
|
123
|
+
* Instances that ended on the platform without finalizing their entry: terminated from outside
|
|
124
|
+
* (the dashboard, the API), errored for good because a finalize step kept failing, or no longer
|
|
125
|
+
* known to the runtime at all. The entry stays `running`, and as such would block re-entry for
|
|
126
|
+
* good. Only admitted entries are looked at — an unadmitted one is
|
|
127
|
+
* `failLostStarts`' — and only a terminal status, or not found, ends one: an admitted instance
|
|
128
|
+
* did reach the runtime, so not found now means it finished and was evicted (as `stopInstance`
|
|
129
|
+
* reads it). A lookup that fails otherwise proves nothing and leaves the entry alone. The update
|
|
130
|
+
* is conditional on the entry still running under the instance id, so a run that finalized
|
|
131
|
+
* between the read and the lookup keeps its own status.
|
|
132
|
+
*
|
|
133
|
+
* `complete` ends in `failed` too: the run's finalize step is what records the real outcome, and
|
|
134
|
+
* an instance complete with its entry still running went without it, so what the journey would
|
|
135
|
+
* have recorded is unknown. Platform-neutral: on AWS the adapter's own maintenance reconciles
|
|
136
|
+
* these too (both writes are idempotent), and its `status` reads running through a stop's
|
|
137
|
+
* drain, so nothing is failed here that the adapter would still wait for.
|
|
138
|
+
*/
|
|
139
|
+
export declare function failLostInstances(env: JourneyEnv, store: JourneyStore, now: number): Promise<string[]>;
|
|
140
|
+
/** How long a visitor who never signs in is kept after they were last heard from. */
|
|
141
|
+
export declare const VISITOR_RETENTION_MS: number;
|
|
142
|
+
/** How many users one sweep page evaluates: a unit of resumable work (AWS checkpoints each). */
|
|
143
|
+
export declare const SWEEP_PAGE_SIZE = 500;
|
|
144
|
+
/**
|
|
145
|
+
* What the sweep does before it looks at any user: the runtime's own upkeep (AWS: unconfirmed
|
|
146
|
+
* starts, executions that ended unseen), the entries whose start or instance was lost, and the
|
|
147
|
+
* erasures left unfinished (an instance would not stop). A failure of any is logged, never
|
|
148
|
+
* fatal: the pages still run. Users whose erasure is still pending afterwards are skipped by
|
|
149
|
+
* every page (`sweepSegmentsPaged`).
|
|
150
|
+
*/
|
|
151
|
+
export declare function sweepMaintenance(env: JourneyEnv, store: JourneyStore): Promise<void>;
|
|
152
|
+
export interface SweepPage {
|
|
153
|
+
/** Users evaluated on this page (those being erased are listed but skipped). */
|
|
154
|
+
evaluated: number;
|
|
155
|
+
/** Journeys the segments' entries started on this page. */
|
|
156
|
+
started: string[];
|
|
157
|
+
/** The last user id listed, to resume past (`after`); undefined when the page was empty. */
|
|
158
|
+
lastUserId?: string | undefined;
|
|
159
|
+
/** Whether the page was full, so another may follow. */
|
|
160
|
+
more: boolean;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* One page of the sweep: the next users (ascending, at most `limit`) the store says may have a
|
|
164
|
+
* membership to change, evaluated for those segments only. The pages are what makes the sweep
|
|
165
|
+
* resumable: `sweepSegmentPass` saves its place in the store after each one.
|
|
166
|
+
*/
|
|
167
|
+
export declare function sweepSegmentsPaged(env: JourneyEnv, store: JourneyStore, page: {
|
|
168
|
+
after?: string | undefined;
|
|
169
|
+
limit?: number | undefined;
|
|
170
|
+
now?: number | undefined;
|
|
171
|
+
}): Promise<SweepPage>;
|
|
172
|
+
/** What a journey a date trigger started names as the event that started it. */
|
|
173
|
+
export declare const DATE_TRIGGER_EVENT = "$date";
|
|
174
|
+
/**
|
|
175
|
+
* How long after its time a date trigger may still begin. A send that no sweep picked up for a
|
|
176
|
+
* day (the cron was off, the database down) is no longer the send that was scheduled: a Black
|
|
177
|
+
* Friday email on Sunday is worse than none. One that has begun runs to its end however long
|
|
178
|
+
* that takes.
|
|
179
|
+
*/
|
|
180
|
+
export declare const DATE_TRIGGER_GRACE_MS: number;
|
|
181
|
+
/**
|
|
182
|
+
* How long one sweep spends on date triggers before it leaves the rest to the next one. A
|
|
183
|
+
* scheduled handler is not given unlimited time, and the fan-out is resumable by construction,
|
|
184
|
+
* so stopping early costs a sweep interval and running over costs the page in flight.
|
|
185
|
+
*/
|
|
186
|
+
export declare const DATE_FANOUT_BUDGET_MS = 30000;
|
|
187
|
+
/** One page of one date trigger's fan-out. */
|
|
188
|
+
export interface DatePage {
|
|
189
|
+
workflow: string;
|
|
190
|
+
at: number;
|
|
191
|
+
/** Journeys this page started. */
|
|
192
|
+
started: string[];
|
|
193
|
+
/** Whether this trigger's fan-out is over (its last page, or it was given up as missed). */
|
|
194
|
+
finished: boolean;
|
|
195
|
+
/** A start failed: the page is kept, and the next sweep takes it again. */
|
|
196
|
+
failed: boolean;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* One page of the earliest date trigger that is due: the next users its filter may hold for, a
|
|
200
|
+
* journey started for each one it does. Undefined when nothing is due. `except` names the
|
|
201
|
+
* workflows to leave alone — those whose page failed earlier in this sweep, so that one trigger
|
|
202
|
+
* in trouble does not keep the others waiting behind it.
|
|
203
|
+
*
|
|
204
|
+
* The cursor is saved after the page, so a page cut off before that is done again — which starts
|
|
205
|
+
* nothing twice: the occurrence is the trigger's time, and the entry ledger holds one entry per
|
|
206
|
+
* (workflow, user, occurrence). A start that fails leaves the cursor where it was, for the same
|
|
207
|
+
* reason: the next sweep takes the page again and the ledger skips whoever already entered. That
|
|
208
|
+
* is kept up for the grace period; past it, a user whose start still fails is passed over, or
|
|
209
|
+
* one user nobody can start would hold the trigger, and every sweep, forever.
|
|
210
|
+
*/
|
|
211
|
+
export declare function fanOutDatePage(env: JourneyEnv, store: JourneyStore, now?: number, limit?: number, except?: readonly string[]): Promise<DatePage | undefined>;
|
|
212
|
+
/**
|
|
213
|
+
* The date triggers that are due, page after page, until none is left or the budget is spent. A
|
|
214
|
+
* trigger whose page failed is left for the next sweep, and the others go on.
|
|
215
|
+
*/
|
|
216
|
+
export declare function sweepDateTriggers(env: JourneyEnv, store: JourneyStore, now?: number, budgetMs?: number): Promise<{
|
|
217
|
+
started: string[];
|
|
218
|
+
dates: DateFanout[];
|
|
219
|
+
}>;
|
|
220
|
+
/**
|
|
221
|
+
* How long one sweep spends on the segments before it leaves the rest of the pass to the next
|
|
222
|
+
* one. As for the date triggers: the handler a schedule calls is not given unlimited time, and
|
|
223
|
+
* the pass is kept in the store, so stopping early costs a sweep interval and nothing else.
|
|
224
|
+
*/
|
|
225
|
+
export declare const SWEEP_BUDGET_MS = 30000;
|
|
226
|
+
/** What one sweep did of the pass over the segments. */
|
|
227
|
+
export interface SegmentPassSlice {
|
|
228
|
+
/** Users evaluated by this sweep. */
|
|
229
|
+
evaluated: number;
|
|
230
|
+
/** Journeys the segments' entries started in this sweep. */
|
|
231
|
+
started: string[];
|
|
232
|
+
/** The sizes recorded at the end of the pass; empty until then. */
|
|
233
|
+
sizes: {
|
|
234
|
+
segment: string;
|
|
235
|
+
size: number;
|
|
236
|
+
}[];
|
|
237
|
+
/** Whether the pass has now been through every user. */
|
|
238
|
+
finished: boolean;
|
|
239
|
+
/** Whether it stopped for the budget alone, so calling again goes on at once. */
|
|
240
|
+
more: boolean;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* The pass over the segments, from wherever the store says it is: page after page until every
|
|
244
|
+
* user has been gone through or `budgetMs` is spent (0: one page). The place is saved after each
|
|
245
|
+
* page (`sweep_pass`), so a sweep that is cut off — by the budget, a timeout, a deploy — costs
|
|
246
|
+
* the page in flight, and that page done again changes nothing: whoever it already recorded is
|
|
247
|
+
* no longer a candidate.
|
|
248
|
+
*
|
|
249
|
+
* The pass ends once, however many sweeps it took: the segments that were being seeded when it
|
|
250
|
+
* began are seeded (only a pass that began with them has been through every user for them),
|
|
251
|
+
* and the sizes are recorded. Two sweeps on one pass (an overlap, one called by hand) both do
|
|
252
|
+
* their page; the one whose place was moved under it stops there.
|
|
253
|
+
*/
|
|
254
|
+
export declare function sweepSegmentPass(env: JourneyEnv, store: JourneyStore, now?: number, budgetMs?: number): Promise<SegmentPassSlice>;
|
|
255
|
+
/**
|
|
256
|
+
* The scheduled sweep: every deployed segment checked against every known user. The store narrows
|
|
257
|
+
* that down in one statement per page (`listSegmentCandidates`), so a sweep with nothing to change
|
|
258
|
+
* costs a few queries however many users there are, and the evaluator a journey's conditions run
|
|
259
|
+
* on decides each remaining case, so a member is exactly who a journey would see in it. Membership
|
|
260
|
+
* follows (joiners keep the time they joined, leavers are removed), segment triggers start the
|
|
261
|
+
* journeys of whoever entered by the clock alone, and the store records each segment's size.
|
|
262
|
+
* Before all that it starts the journeys of the date triggers that are due (`sweepDateTriggers`).
|
|
263
|
+
*
|
|
264
|
+
* One call spends a bounded time (`budgetMs` on the segments, `DATE_FANOUT_BUDGET_MS` on the
|
|
265
|
+
* date triggers) and both keep their place in the store, so an audience too large for one call
|
|
266
|
+
* is gone through by several: `finished` says whether the pass over the segments ended here.
|
|
267
|
+
*/
|
|
268
|
+
export declare function sweepSegments(env: JourneyEnv, store: JourneyStore, now?: number, budgetMs?: number): Promise<SweepResult>;
|
|
269
|
+
export interface IdentifyResult {
|
|
270
|
+
ok: true;
|
|
271
|
+
props: ProfileProps;
|
|
272
|
+
woke: number;
|
|
273
|
+
started: string[];
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Merge-patch profile properties (a null removes one), then wake property waits
|
|
277
|
+
* and re-evaluate segment triggers. The merge is one statement in the store, so
|
|
278
|
+
* two identifies landing together cannot lose each other's fields.
|
|
279
|
+
*/
|
|
280
|
+
export declare function identifyUser(env: JourneyEnv, userId: string, props: ProfileProps, store: JourneyStore,
|
|
281
|
+
/** When these values were read; a property written later stays. The Worker's clock by default. */
|
|
282
|
+
at?: number): Promise<IdentifyResult>;
|
|
283
|
+
export interface DeviceRegistration {
|
|
284
|
+
deviceId?: string | undefined;
|
|
285
|
+
userId?: string | undefined;
|
|
286
|
+
visitorId?: string | undefined;
|
|
287
|
+
token: string;
|
|
288
|
+
platform: string;
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* The visitor signed in as the user: what the engine knows of them moves to the user, once. Their
|
|
292
|
+
* journeys carry on as the user's (`instanceOwner`), except one the user is already in, which
|
|
293
|
+
* stops. Answers nothing to do when already linked: every signed-in batch names its visitor.
|
|
294
|
+
*/
|
|
295
|
+
export declare function linkVisitor(env: JourneyEnv, visitorId: string, userId: string, store: JourneyStore, at?: number): Promise<void>;
|
|
296
|
+
/**
|
|
297
|
+
* A push token registered for its current owner: the user, or before sign-in the visitor. The
|
|
298
|
+
* device holds only that, so a token moves to whoever registered it last. Wakes the waits that read
|
|
299
|
+
* devices (`reachable('push')` inside `waitUntil`), for the new owner and the previous one.
|
|
300
|
+
*/
|
|
301
|
+
export declare function registerDevice(env: JourneyEnv, device: DeviceRegistration, store: JourneyStore): Promise<{
|
|
302
|
+
ok: true;
|
|
303
|
+
woke: number;
|
|
304
|
+
}>;
|
|
305
|
+
/**
|
|
306
|
+
* Forget a user (a deleted account): the tombstone is committed first, then the erasure carried
|
|
307
|
+
* out. `erased: true` means every admitted runner of theirs was confirmed stopped, the entries
|
|
308
|
+
* never admitted can never run, and the data is deleted — for good, with no time window and no
|
|
309
|
+
* second pass: the tombstone commits under the user's lock, which every write about the user
|
|
310
|
+
* also takes, so nothing of theirs can land after it. An admitted instance that will not stop
|
|
311
|
+
* leaves it pending — nothing erased yet — and the scheduled sweep retries it; `erased: false`
|
|
312
|
+
* says so. A user already erased answers `erased: true` again, with nothing to do.
|
|
313
|
+
*/
|
|
314
|
+
export declare function forgetUser(env: JourneyEnv, userId: string, store: JourneyStore, now?: number): Promise<{
|
|
315
|
+
ok: true;
|
|
316
|
+
erased: boolean;
|
|
317
|
+
pending: string[];
|
|
318
|
+
}>;
|
|
319
|
+
/**
|
|
320
|
+
* The user signed out on the device: the token stays registered, bound to nobody, so the next
|
|
321
|
+
* sign-in only has to bind it again. Wakes the former owner's device waits (`reachable('push')`
|
|
322
|
+
* may no longer hold).
|
|
323
|
+
*/
|
|
324
|
+
export declare function unbindDevice(env: JourneyEnv, token: string, store: JourneyStore): Promise<{
|
|
325
|
+
ok: true;
|
|
326
|
+
woke: number;
|
|
327
|
+
}>;
|
|
328
|
+
/** A push token forgotten for good (the push service reports it gone); wakes its owner's device waits. */
|
|
329
|
+
export declare function removeDevice(env: JourneyEnv, token: string, store: JourneyStore): Promise<{
|
|
330
|
+
ok: true;
|
|
331
|
+
woke: number;
|
|
332
|
+
}>;
|
|
333
|
+
export interface DeployResult {
|
|
334
|
+
workflows: string[];
|
|
335
|
+
/**
|
|
336
|
+
* Workflows whose trigger type has no runtime routing yet — they deploy (the
|
|
337
|
+
* IR is stored and versioned) but will never start until the routing lands.
|
|
338
|
+
* Currently: webhook (TODO — needs endpoint allocation).
|
|
339
|
+
*/
|
|
340
|
+
unrouted: {
|
|
341
|
+
workflow: string;
|
|
342
|
+
trigger: TriggerIR['type'];
|
|
343
|
+
}[];
|
|
344
|
+
/**
|
|
345
|
+
* Whether the routes now point at this bundle: always for a forced deploy, false for a
|
|
346
|
+
* versioned one when a version as new or newer is already live (nothing was swapped).
|
|
347
|
+
*/
|
|
348
|
+
applied: boolean;
|
|
349
|
+
/**
|
|
350
|
+
* What this deploy took from the journeys still running (`checkInFlight`): empty unless the
|
|
351
|
+
* deploy was told to break them (`breakInFlight`), since otherwise it refuses.
|
|
352
|
+
*/
|
|
353
|
+
inFlight: InFlightProblem[];
|
|
354
|
+
}
|
|
355
|
+
/** A deploy refused because the bundle would break journeys still running: see `problems`. */
|
|
356
|
+
export declare class InFlightError extends Error {
|
|
357
|
+
readonly problems: readonly InFlightProblem[];
|
|
358
|
+
readonly name = "InFlightError";
|
|
359
|
+
constructor(problems: readonly InFlightProblem[]);
|
|
360
|
+
}
|
|
361
|
+
export interface DeployOptions {
|
|
362
|
+
/**
|
|
363
|
+
* The code version the bundle was compiled into. The swap then happens only over an older live
|
|
364
|
+
* version (how journeyWorker applies its own bundle), unless `force` is set.
|
|
365
|
+
*/
|
|
366
|
+
version?: BundleVersion | undefined;
|
|
367
|
+
/** Swap the routes whatever version is live, and record `version` as live (`POST /bundle/deploy`). */
|
|
368
|
+
force?: boolean | undefined;
|
|
369
|
+
/**
|
|
370
|
+
* The config whose templates the code serves: with it, pinned message nodes are checked against
|
|
371
|
+
* the registry (a new required prop, a template gone); without it, only against the bundle.
|
|
372
|
+
*/
|
|
373
|
+
config?: JourneyConfig | undefined;
|
|
374
|
+
/** Deploy although it breaks in-flight journeys; what it breaks is returned in `inFlight`. */
|
|
375
|
+
breakInFlight?: boolean | undefined;
|
|
376
|
+
}
|
|
377
|
+
/** A bundle whose declared hashes do not describe its contents — rejected before anything is written. */
|
|
378
|
+
export declare class BundleIntegrityError extends Error {
|
|
379
|
+
constructor(message: string);
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* Bundle deploy, terraform-apply style: workflow bodies first (content-addressed, so a failed
|
|
383
|
+
* deploy leaves only harmless orphans), then the routing swap. With a `version` the swap happens
|
|
384
|
+
* only over an older live version (`replaceRoutesIfNewer`) — how journeyWorker applies the bundle
|
|
385
|
+
* compiled into it — unless `force` is set: then it happens whatever is live, and the version is
|
|
386
|
+
* recorded as live (`POST /bundle/deploy`). Without a version it is forced and records nothing
|
|
387
|
+
* (`POST /deploy`, a hand-posted bundle).
|
|
388
|
+
*
|
|
389
|
+
* Before any write, the bundle is held against the journeys still running (`checkInFlight`): one
|
|
390
|
+
* that removes a segment or action a pinned IR names, or — with the `config` — a template a pinned
|
|
391
|
+
* message can no longer be sent with, is refused with `InFlightError`, unless `breakInFlight` says
|
|
392
|
+
* to deploy anyway (the refusal is a deploy-time guard; see README "Versioning" for why nothing is
|
|
393
|
+
* pinned beyond the IR). On Cloudflare a published version's code serves at once, and whether a
|
|
394
|
+
* running instance resumes on the version it started on is not documented, so the place to run
|
|
395
|
+
* the same check is before publishing: `sendwend-studio plan`.
|
|
396
|
+
*/
|
|
397
|
+
export declare function deployBundle(env: JourneyEnv, bundle: unknown, store: JourneyStore, { version, force, config, breakInFlight }?: DeployOptions): Promise<DeployResult>;
|
|
398
|
+
/** The channels a user opts out of per topic: `suppression` rows are keyed by (user, channel, topic). */
|
|
399
|
+
export declare const SUBSCRIPTION_CHANNELS: readonly ['email', 'push'];
|
|
400
|
+
export type SubscriptionChannel = (typeof SUBSCRIPTION_CHANNELS)[number];
|
|
401
|
+
/**
|
|
402
|
+
* Where a user stands with one channel: `true` is subscribed, per topic and for the channel as
|
|
403
|
+
* a whole. The two are independent records: `all: false` masks every topic, whatever `topics`
|
|
404
|
+
* says about it, and `all: true` does not switch a topic back on.
|
|
405
|
+
*/
|
|
406
|
+
export interface ChannelSubscriptions<T extends string = string> {
|
|
407
|
+
/**
|
|
408
|
+
* False once the user opted out of the whole channel (all email, all push). No topic is sent
|
|
409
|
+
* while it is false, however `topics` reads, so a consumer treats it as masking every topic.
|
|
410
|
+
*/
|
|
411
|
+
all: boolean;
|
|
412
|
+
/**
|
|
413
|
+
* Each declared topic: false once the user opted out of it on this channel. A topic's flag is
|
|
414
|
+
* its own record, answered as it is even while `all` is false, and it stays false when `all`
|
|
415
|
+
* turns true again until a patch names the topic.
|
|
416
|
+
*/
|
|
417
|
+
topics: Record<T, boolean>;
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* A user's subscriptions, topic × channel — what `GET /subscriptions/:userId` answers. Every
|
|
421
|
+
* channel lists every declared topic: a topic is a content category, and the user chooses per
|
|
422
|
+
* channel whether to get it.
|
|
423
|
+
*/
|
|
424
|
+
export interface Subscriptions<T extends string = string> {
|
|
425
|
+
email: ChannelSubscriptions<T>;
|
|
426
|
+
push: ChannelSubscriptions<T>;
|
|
427
|
+
}
|
|
428
|
+
/** One channel's part of a patch: only what changes. */
|
|
429
|
+
export interface ChannelSubscriptionsPatch<T extends string = string> {
|
|
430
|
+
all?: boolean;
|
|
431
|
+
topics?: Partial<Record<T, boolean>>;
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* What `PUT /subscriptions/:userId` takes: only what changes; an omitted channel or field stays
|
|
435
|
+
* as it is. `all: true` clears the channel-wide opt-out only — a topic opted out on its own stays
|
|
436
|
+
* off until the patch names it (a "subscribe to all" sends `all: true` plus every topic `true`).
|
|
437
|
+
*/
|
|
438
|
+
export interface SubscriptionsPatch<T extends string = string> {
|
|
439
|
+
email?: ChannelSubscriptionsPatch<T>;
|
|
440
|
+
push?: ChannelSubscriptionsPatch<T>;
|
|
441
|
+
}
|
|
442
|
+
/** One field of a patch refused, with the path the producer can fix. */
|
|
443
|
+
export interface SubscriptionsIssue {
|
|
444
|
+
path: string;
|
|
445
|
+
message: string;
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* A subscriptions patch as it arrives over HTTP: untrusted JSON, read field by field and never
|
|
449
|
+
* cast. Every topic must be one the bundle declares — the engine's list, not the caller's word.
|
|
450
|
+
*/
|
|
451
|
+
export declare function parseSubscriptionsPatch(body: unknown, topics: readonly string[]): {
|
|
452
|
+
ok: true;
|
|
453
|
+
patch: SubscriptionsPatch;
|
|
454
|
+
} | {
|
|
455
|
+
ok: false;
|
|
456
|
+
issues: SubscriptionsIssue[];
|
|
457
|
+
};
|
|
458
|
+
/** The user's subscriptions over the declared `topics`; a user with an erasure tombstone is refused. */
|
|
459
|
+
export declare function getSubscriptions(store: JourneyStore, userId: string, topics: readonly string[]): Promise<Subscriptions>;
|
|
460
|
+
/**
|
|
461
|
+
* Apply a patch — each field given sets or clears the matching opt-out, one transaction per
|
|
462
|
+
* channel — and answer the subscriptions as they now stand. A change of a channel's `all` is a
|
|
463
|
+
* change of its reachability, so the waits reading it wake, both ways: an
|
|
464
|
+
* `exitWhen: not(reachable('email'))` fires on the opt-out, and a wait for the channel to become
|
|
465
|
+
* reachable resumes on the opt-in. Email waits key on the address property, push waits on the
|
|
466
|
+
* device channel (`reachable('push')` subscribes to device changes).
|
|
467
|
+
*/
|
|
468
|
+
export declare function setSubscriptions(env: JourneyEnv, store: JourneyStore, userId: string, patch: SubscriptionsPatch, topics: readonly string[], now?: number): Promise<Subscriptions>;
|
|
469
|
+
/** The copy a message-scoped request came from: the channel it went out on, and its topic. */
|
|
470
|
+
export interface MessageOrigin<T extends string = string> {
|
|
471
|
+
channel: SubscriptionChannel;
|
|
472
|
+
topic: T;
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* A user's subscriptions reached through one of their copies — what
|
|
476
|
+
* `GET` / `PUT /subscriptions/by-message/:messageId` answer: the record, plus which channel and
|
|
477
|
+
* topic that copy belonged to, so a preference page opened from an email can highlight it.
|
|
478
|
+
*/
|
|
479
|
+
export interface MessageSubscriptions<T extends string = string> extends Subscriptions<T> {
|
|
480
|
+
message: MessageOrigin<T>;
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
* The recipient of a topic copy, by the copy's id. The id is the capability: a UUID nobody can
|
|
484
|
+
* guess, the same trust `/t/u/<message>` runs on. Undefined — a 404 — for an id that names no
|
|
485
|
+
* copy (never sent, or erased with its user by `forgetUser`), and for a transactional one, which
|
|
486
|
+
* has nothing to opt out of; the same rule as `/t/u`. A push copy's `push_<platform>` channel
|
|
487
|
+
* reads as `push`, the channel its subscriptions are keyed on.
|
|
488
|
+
*/
|
|
489
|
+
export declare function resolveMessageOwner(store: JourneyStore, messageId: string): Promise<{
|
|
490
|
+
userId: string;
|
|
491
|
+
message: MessageOrigin;
|
|
492
|
+
} | undefined>;
|
|
493
|
+
/** `getSubscriptions` for the copy's recipient, with the copy's channel and topic; undefined when `resolveMessageOwner` is. */
|
|
494
|
+
export declare function getSubscriptionsByMessage(store: JourneyStore, messageId: string, topics: readonly string[]): Promise<MessageSubscriptions | undefined>;
|
|
495
|
+
/** `setSubscriptions` for the copy's recipient, answering as `getSubscriptionsByMessage` does; undefined when `resolveMessageOwner` is. */
|
|
496
|
+
export declare function setSubscriptionsByMessage(env: JourneyEnv, store: JourneyStore, messageId: string, patch: SubscriptionsPatch, topics: readonly string[], now?: number): Promise<MessageSubscriptions | undefined>;
|
|
497
|
+
//# sourceMappingURL=ingest.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ingest.d.mts","names":[],"sources":["../../src/host/ingest.ts"],"mappings":";;;;;;;;;;;;qBAgEa;;wBAGG,iBAAiB,eAAe;;qBAQnC,kCAAkC;WAC3B;;iBAGH;EACf;EACA;EACA,UAAU;EACV;;;;;;;;;;;;;;;EAeA;;iBAGe;;EAEf;;EAEA;EACA;EACA;;wBAGoB,YACpB,KAAK,YACL,OAAO,aACP,OAAO,eACN,QAAQ;;;;;;wBA2DW,gBACpB,KAAK,YACL,OAAO,cACP,gBACA,4BACC;;;;;;;;;;wBA0EmB,uBACpB,KAAK,YACL,OAAO,cACP,gBACA,aACC;iBAmIc;;EAEf;;EAEA;;;;;EAKA;IAAS;IAAiB;;;;;;EAK1B;;EAEA,OAAO;;;iBAIQ;EACf;;EAEA;;EAEA;;EAEA;;;;;;;qBAQW;;;;;;;;;;;wBAeS,eACpB,KAAK,YACL,OAAO,cACP,cACC;;;;;;;;qBA4BU;;;;;;;;;;;;;;;;;;wBA0BS,kBACpB,KAAK,YACL,OAAO,cACP,cACC;;qBAqCU;;qBAKA;;;;;;;;wBASS,iBAAiB,KAAK,YAAY,OAAO,eAAe;iBAiC7D;;EAEf;;EAEA;;EAEA;;EAEA;;;;;;;wBAQoB,mBACpB,KAAK,YACL,OAAO,cACP;EAAQ;EAA4B;EAA4B;IAC/D,QAAQ;;qBAkCE;;;;;;;qBAQA;;;;;;qBAOA;;iBAMI;EACf;EACA;;EAEA;;EAEA;;EAEA;;;;;;;;;;;;;;;wBAgBoB,eACpB,KAAK,YACL,OAAO,cACP,cACA,gBACA,6BACC,QAAQ;;;;;wBAyEW,kBACpB,KAAK,YACL,OAAO,cACP,cACA,oBACC;EAAU;EAAmB,OAAO;;;;;;;qBA8B1B;;iBAGI;;EAEf;;EAEA;;EAEA;IAAS;IAAiB;;;EAE1B;;EAEA;;;;;;;;;;;;;;wBAeoB,iBACpB,KAAK,YACL,OAAO,cACP,cACA,oBACC,QAAQ;;;;;;;;;;;;;;wBA4CW,cACpB,KAAK,YACL,OAAO,cACP,cACA,oBACC,QAAQ;iBAgOM;EACf;EACA,OAAO;EACP;EACA;;;;;;;wBAQoB,aACpB,KAAK,YACL,gBACA,OAAO,cACP,OAAO;;AAEP,cACC,QAAQ;iBAiBM;EACf;EACA;EACA;EACA;EACA;;;;;;;wBAQoB,YACpB,KAAK,YACL,mBACA,gBACA,OAAO,cACP,cACC;;;;;;wBA2BmB,eACpB,KAAK,YACL,QAAQ,oBACR,OAAO,eACN;EAAU;EAAU;;;;;;;;;;;wBA2GD,WACpB,KAAK,YACL,gBACA,OAAO,cACP,eACC;EAAU;EAAU;EAAiB;;;;;;;wBAUlB,aACpB,KAAK,YACL,eACA,OAAO,eACN;EAAU;EAAU;;;wBAQD,aACpB,KAAK,YACL,eACA,OAAO,eACN;EAAU;EAAU;;iBASN;EACf;;;;;;EAMA;IAAY;IAAkB,SAAS;;;;;;EAKvC;;;;;EAKA,UAAU;;;qBAIC,sBAAsB;WAEZ,mBAAmB;WADtB;EAClB,YAAqB,mBAAmB;;iBAQzB;;;;;EAKf,UAAU;;EAEV;;;;;EAKA,SAAS;;EAET;;;qBAIW,6BAA6B;EACxC,YAAY;;;;;;;;;;;;;;;;;;wBAwDQ,aACpB,KAAK,YACL,iBACA,OAAO,gBACL,SAAS,OAAe,QAAQ,kBAAyB,gBAC1D,QAAQ;;qBA+BE;YACD,8BAA8B;;;;;;iBAOzB,qBAAqB;;;;;EAKpC;;;;;;EAMA,QAAQ,OAAO;;;;;;;iBAQA,cAAc;EAC7B,OAAO,qBAAqB;EAC5B,MAAM,qBAAqB;;;iBAIZ,0BAA0B;EACzC;EACA,SAAS,QAAQ,OAAO;;;;;;;iBAQT,mBAAmB;EAClC,QAAQ,0BAA0B;EAClC,OAAO,0BAA0B;;;iBAIlB;EACf;EACA;;;;;;wBAOc,wBACd,eACA;EACG;EAAU,OAAO;;EAAyB;EAAW,QAAQ;;;wBA8D5C,iBACpB,OAAO,cACP,gBACA,4BACC,QAAQ;;;;;;;;;wBAaW,iBACpB,KAAK,YACL,OAAO,cACP,gBACA,OAAO,oBACP,2BACA,eACC,QAAQ;;iBAwBM,cAAc;EAC7B,SAAS;EACT,OAAO;;;;;;;iBAQQ,qBAAqB,mCAAmC,cAAc;EACrF,SAAS,cAAc;;;;;;;;;wBAUH,oBACpB,OAAO,cACP,oBACC;EAAU;EAAgB,SAAS;;;wBAchB,0BACpB,OAAO,cACP,mBACA,4BACC,QAAQ;;wBAOW,0BACpB,KAAK,YACL,OAAO,cACP,mBACA,OAAO,oBACP,2BACA,eACC,QAAQ"}
|