@shware/workflow 5.0.0 → 6.0.0
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/README.md +165 -42
- package/dist/_virtual/_rolldown/runtime.cjs +1 -2
- package/dist/apns-relay.cjs +1 -2
- package/dist/apns-relay.d.cts +0 -2
- package/dist/apns-relay.d.cts.map +1 -1
- package/dist/apns-relay.d.mts +0 -2
- package/dist/apns-relay.d.mts.map +1 -1
- package/dist/apns-relay.mjs +1 -2
- package/dist/apns.cjs +1 -2
- package/dist/apns.d.cts +0 -2
- package/dist/apns.d.cts.map +1 -1
- package/dist/apns.d.mts +0 -2
- package/dist/apns.d.mts.map +1 -1
- package/dist/apns.mjs +1 -2
- package/dist/aws/engine-step.cjs +1 -2
- package/dist/aws/engine-step.d.cts +0 -2
- package/dist/aws/engine-step.d.cts.map +1 -1
- package/dist/aws/engine-step.d.mts +0 -2
- package/dist/aws/engine-step.d.mts.map +1 -1
- package/dist/aws/engine-step.mjs +1 -2
- package/dist/aws/function-url.cjs +1 -2
- package/dist/aws/function-url.d.cts +0 -2
- package/dist/aws/function-url.d.cts.map +1 -1
- package/dist/aws/function-url.d.mts +0 -2
- package/dist/aws/function-url.d.mts.map +1 -1
- package/dist/aws/function-url.mjs +1 -2
- package/dist/aws/index.cjs +2 -3
- package/dist/aws/index.d.cts +0 -2
- package/dist/aws/index.d.cts.map +1 -1
- package/dist/aws/index.d.mts +0 -2
- package/dist/aws/index.d.mts.map +1 -1
- package/dist/aws/index.mjs +2 -3
- package/dist/aws/instances.cjs +1 -2
- package/dist/aws/instances.d.cts +0 -2
- package/dist/aws/instances.d.cts.map +1 -1
- package/dist/aws/instances.d.mts +0 -2
- package/dist/aws/instances.d.mts.map +1 -1
- package/dist/aws/instances.mjs +1 -2
- package/dist/aws/lambda-api.cjs +1 -2
- package/dist/aws/lambda-api.d.cts +0 -2
- package/dist/aws/lambda-api.d.cts.map +1 -1
- package/dist/aws/lambda-api.d.mts +0 -2
- package/dist/aws/lambda-api.d.mts.map +1 -1
- package/dist/aws/lambda-api.mjs +1 -2
- package/dist/client.cjs +46 -6
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +25 -5
- package/dist/client.d.cts.map +1 -1
- package/dist/client.d.mts +25 -5
- package/dist/client.d.mts.map +1 -1
- package/dist/client.mjs +46 -6
- package/dist/client.mjs.map +1 -1
- package/dist/cloudflare/bindings.cjs +1 -2
- package/dist/cloudflare/bindings.d.cts +0 -2
- package/dist/cloudflare/bindings.d.cts.map +1 -1
- package/dist/cloudflare/bindings.d.mts +0 -2
- package/dist/cloudflare/bindings.d.mts.map +1 -1
- package/dist/cloudflare/bindings.mjs +1 -2
- package/dist/cloudflare/index.cjs +2 -2
- package/dist/cloudflare/index.mjs +2 -2
- package/dist/cloudflare/runner.cjs +2 -3
- package/dist/cloudflare/runner.d.cts +1 -3
- package/dist/cloudflare/runner.d.cts.map +1 -1
- package/dist/cloudflare/runner.d.mts +1 -3
- package/dist/cloudflare/runner.d.mts.map +1 -1
- package/dist/cloudflare/runner.mjs +2 -3
- package/dist/cloudflare/worker.cjs +1 -2
- package/dist/cloudflare/worker.d.cts +0 -2
- package/dist/cloudflare/worker.d.cts.map +1 -1
- package/dist/cloudflare/worker.d.mts +0 -2
- package/dist/cloudflare/worker.d.mts.map +1 -1
- package/dist/cloudflare/worker.mjs +1 -2
- package/dist/cloudflare/workers.d.cts +0 -2
- package/dist/cloudflare/workers.d.cts.map +1 -1
- package/dist/cloudflare/workers.d.mts +0 -2
- package/dist/cloudflare/workers.d.mts.map +1 -1
- package/dist/config.cjs +25 -5
- package/dist/config.cjs.map +1 -1
- package/dist/config.d.cts +15 -11
- package/dist/config.d.cts.map +1 -1
- package/dist/config.d.mts +15 -11
- package/dist/config.d.mts.map +1 -1
- package/dist/config.mjs +26 -6
- package/dist/config.mjs.map +1 -1
- package/dist/contract.cjs +12 -2
- package/dist/contract.cjs.map +1 -1
- package/dist/contract.d.cts +28 -9
- package/dist/contract.d.cts.map +1 -1
- package/dist/contract.d.mts +28 -9
- package/dist/contract.d.mts.map +1 -1
- package/dist/contract.mjs +12 -2
- package/dist/contract.mjs.map +1 -1
- package/dist/dsl/action.cjs +1 -2
- package/dist/dsl/action.d.cts +0 -2
- package/dist/dsl/action.d.cts.map +1 -1
- package/dist/dsl/action.d.mts +0 -2
- package/dist/dsl/action.d.mts.map +1 -1
- package/dist/dsl/action.mjs +1 -2
- package/dist/dsl/base.cjs +1 -2
- package/dist/dsl/base.d.cts +0 -2
- package/dist/dsl/base.d.cts.map +1 -1
- package/dist/dsl/base.d.mts +0 -2
- package/dist/dsl/base.d.mts.map +1 -1
- package/dist/dsl/base.mjs +1 -2
- package/dist/dsl/bundle.cjs +5 -5
- package/dist/dsl/bundle.cjs.map +1 -1
- package/dist/dsl/bundle.d.cts +5 -3
- package/dist/dsl/bundle.d.cts.map +1 -1
- package/dist/dsl/bundle.d.mts +5 -3
- package/dist/dsl/bundle.d.mts.map +1 -1
- package/dist/dsl/bundle.mjs +5 -5
- package/dist/dsl/bundle.mjs.map +1 -1
- package/dist/dsl/condition.cjs +1 -2
- package/dist/dsl/condition.d.cts +0 -2
- package/dist/dsl/condition.d.cts.map +1 -1
- package/dist/dsl/condition.d.mts +0 -2
- package/dist/dsl/condition.d.mts.map +1 -1
- package/dist/dsl/condition.mjs +1 -2
- package/dist/dsl/flow.cjs +3 -3
- package/dist/dsl/flow.cjs.map +1 -1
- package/dist/dsl/flow.d.cts +1 -3
- package/dist/dsl/flow.d.cts.map +1 -1
- package/dist/dsl/flow.d.mts +1 -3
- package/dist/dsl/flow.d.mts.map +1 -1
- package/dist/dsl/flow.mjs +3 -3
- package/dist/dsl/flow.mjs.map +1 -1
- package/dist/dsl/refs.cjs +1 -2
- package/dist/dsl/refs.d.cts +0 -2
- package/dist/dsl/refs.d.cts.map +1 -1
- package/dist/dsl/refs.d.mts +0 -2
- package/dist/dsl/refs.d.mts.map +1 -1
- package/dist/dsl/refs.mjs +1 -2
- package/dist/dsl/template.cjs +1 -2
- package/dist/dsl/template.d.cts +0 -2
- package/dist/dsl/template.d.cts.map +1 -1
- package/dist/dsl/template.d.mts +0 -2
- package/dist/dsl/template.d.mts.map +1 -1
- package/dist/dsl/template.mjs +1 -2
- package/dist/dsl/trigger.cjs +1 -2
- package/dist/dsl/trigger.d.cts +0 -2
- package/dist/dsl/trigger.d.cts.map +1 -1
- package/dist/dsl/trigger.d.mts +0 -2
- package/dist/dsl/trigger.d.mts.map +1 -1
- package/dist/dsl/trigger.mjs +1 -2
- package/dist/dsl/workflow.cjs +3 -4
- package/dist/dsl/workflow.d.cts +0 -2
- package/dist/dsl/workflow.d.cts.map +1 -1
- package/dist/dsl/workflow.d.mts +0 -2
- package/dist/dsl/workflow.d.mts.map +1 -1
- package/dist/dsl/workflow.mjs +3 -4
- package/dist/email-context.cjs +1 -2
- package/dist/email-context.d.cts +0 -2
- package/dist/email-context.d.cts.map +1 -1
- package/dist/email-context.d.mts +0 -2
- package/dist/email-context.d.mts.map +1 -1
- package/dist/email-context.mjs +1 -2
- package/dist/email-sender.cjs +2 -3
- package/dist/email-sender.cjs.map +1 -1
- package/dist/email-sender.d.cts +1 -3
- package/dist/email-sender.d.cts.map +1 -1
- package/dist/email-sender.d.mts +1 -3
- package/dist/email-sender.d.mts.map +1 -1
- package/dist/email-sender.mjs +2 -3
- package/dist/email-sender.mjs.map +1 -1
- package/dist/email.cjs +33 -7
- package/dist/email.cjs.map +1 -1
- package/dist/email.d.cts +38 -11
- package/dist/email.d.cts.map +1 -1
- package/dist/email.d.mts +38 -11
- package/dist/email.d.mts.map +1 -1
- package/dist/email.mjs +33 -8
- package/dist/email.mjs.map +1 -1
- package/dist/engine/actions.cjs +1 -2
- package/dist/engine/actions.d.cts +0 -2
- package/dist/engine/actions.d.cts.map +1 -1
- package/dist/engine/actions.d.mts +0 -2
- package/dist/engine/actions.d.mts.map +1 -1
- package/dist/engine/actions.mjs +1 -2
- package/dist/engine/bucket.cjs +1 -2
- package/dist/engine/bucket.d.cts +0 -2
- package/dist/engine/bucket.d.cts.map +1 -1
- package/dist/engine/bucket.d.mts +0 -2
- package/dist/engine/bucket.d.mts.map +1 -1
- package/dist/engine/bucket.mjs +1 -2
- package/dist/engine/condition.cjs +1 -2
- package/dist/engine/condition.cjs.map +1 -1
- package/dist/engine/condition.d.cts +0 -2
- package/dist/engine/condition.d.cts.map +1 -1
- package/dist/engine/condition.d.mts +0 -2
- package/dist/engine/condition.d.mts.map +1 -1
- package/dist/engine/condition.mjs +1 -2
- package/dist/engine/condition.mjs.map +1 -1
- package/dist/engine/duration.cjs +1 -2
- package/dist/engine/duration.d.cts +0 -2
- package/dist/engine/duration.d.cts.map +1 -1
- package/dist/engine/duration.d.mts +0 -2
- package/dist/engine/duration.d.mts.map +1 -1
- package/dist/engine/duration.mjs +1 -2
- package/dist/engine/index.cjs +1 -1
- package/dist/engine/index.mjs +1 -1
- package/dist/engine/interpreter.cjs +22 -6
- package/dist/engine/interpreter.cjs.map +1 -1
- package/dist/engine/interpreter.d.cts +0 -2
- package/dist/engine/interpreter.d.cts.map +1 -1
- package/dist/engine/interpreter.d.mts +0 -2
- package/dist/engine/interpreter.d.mts.map +1 -1
- package/dist/engine/interpreter.mjs +22 -6
- package/dist/engine/interpreter.mjs.map +1 -1
- package/dist/engine/ports.d.cts +8 -4
- package/dist/engine/ports.d.cts.map +1 -1
- package/dist/engine/ports.d.mts +8 -4
- package/dist/engine/ports.d.mts.map +1 -1
- package/dist/engine/recipient.cjs +1 -2
- package/dist/engine/recipient.d.cts +0 -2
- package/dist/engine/recipient.d.cts.map +1 -1
- package/dist/engine/recipient.d.mts +0 -2
- package/dist/engine/recipient.d.mts.map +1 -1
- package/dist/engine/recipient.mjs +1 -2
- package/dist/engine/retry.cjs +1 -2
- package/dist/engine/retry.d.cts +0 -2
- package/dist/engine/retry.d.cts.map +1 -1
- package/dist/engine/retry.d.mts +0 -2
- package/dist/engine/retry.d.mts.map +1 -1
- package/dist/engine/retry.mjs +1 -2
- package/dist/engine/time-scale.cjs +1 -2
- package/dist/engine/time-scale.d.cts +0 -2
- package/dist/engine/time-scale.d.cts.map +1 -1
- package/dist/engine/time-scale.d.mts +0 -2
- package/dist/engine/time-scale.d.mts.map +1 -1
- package/dist/engine/time-scale.mjs +1 -2
- package/dist/engine/time-window.cjs +1 -2
- package/dist/engine/time-window.d.cts +0 -2
- package/dist/engine/time-window.d.cts.map +1 -1
- package/dist/engine/time-window.d.mts +0 -2
- package/dist/engine/time-window.d.mts.map +1 -1
- package/dist/engine/time-window.mjs +1 -2
- package/dist/fcm.cjs +1 -2
- package/dist/fcm.d.cts +0 -2
- package/dist/fcm.d.cts.map +1 -1
- package/dist/fcm.d.mts +0 -2
- package/dist/fcm.d.mts.map +1 -1
- package/dist/fcm.mjs +1 -2
- package/dist/hash.cjs +1 -2
- package/dist/hash.d.cts +0 -2
- package/dist/hash.d.cts.map +1 -1
- package/dist/hash.d.mts +0 -2
- package/dist/hash.d.mts.map +1 -1
- package/dist/hash.mjs +1 -2
- package/dist/host/auth.cjs +1 -2
- package/dist/host/auth.d.cts +0 -2
- package/dist/host/auth.d.cts.map +1 -1
- package/dist/host/auth.d.mts +0 -2
- package/dist/host/auth.d.mts.map +1 -1
- package/dist/host/auth.mjs +1 -2
- package/dist/host/channels.cjs +2 -3
- package/dist/host/channels.d.cts +0 -2
- package/dist/host/channels.d.cts.map +1 -1
- package/dist/host/channels.d.mts +0 -2
- package/dist/host/channels.d.mts.map +1 -1
- package/dist/host/channels.mjs +2 -3
- package/dist/host/execute.cjs +3 -4
- package/dist/host/execute.d.cts +1 -3
- package/dist/host/execute.d.cts.map +1 -1
- package/dist/host/execute.d.mts +1 -3
- package/dist/host/execute.d.mts.map +1 -1
- package/dist/host/execute.mjs +3 -4
- package/dist/host/fresh-read.cjs +1 -2
- package/dist/host/fresh-read.d.cts +0 -2
- package/dist/host/fresh-read.d.cts.map +1 -1
- package/dist/host/fresh-read.d.mts +0 -2
- package/dist/host/fresh-read.d.mts.map +1 -1
- package/dist/host/fresh-read.mjs +1 -2
- package/dist/host/http.cjs +39 -5
- package/dist/host/http.cjs.map +1 -1
- package/dist/host/http.d.cts +2 -4
- package/dist/host/http.d.cts.map +1 -1
- package/dist/host/http.d.mts +2 -4
- package/dist/host/http.d.mts.map +1 -1
- package/dist/host/http.mjs +40 -6
- package/dist/host/http.mjs.map +1 -1
- package/dist/host/ingest.cjs +129 -6
- package/dist/host/ingest.cjs.map +1 -1
- package/dist/host/ingest.d.cts +71 -2
- package/dist/host/ingest.d.cts.map +1 -1
- package/dist/host/ingest.d.mts +71 -2
- package/dist/host/ingest.d.mts.map +1 -1
- package/dist/host/ingest.mjs +126 -7
- package/dist/host/ingest.mjs.map +1 -1
- package/dist/host/journey-host.cjs +11 -10
- package/dist/host/journey-host.cjs.map +1 -1
- package/dist/host/journey-host.d.cts +0 -2
- package/dist/host/journey-host.d.cts.map +1 -1
- package/dist/host/journey-host.d.mts +0 -2
- package/dist/host/journey-host.d.mts.map +1 -1
- package/dist/host/journey-host.mjs +11 -10
- package/dist/host/journey-host.mjs.map +1 -1
- package/dist/host/platform.cjs +1 -2
- package/dist/host/platform.d.cts +0 -2
- package/dist/host/platform.d.cts.map +1 -1
- package/dist/host/platform.d.mts +0 -2
- package/dist/host/platform.d.mts.map +1 -1
- package/dist/host/platform.mjs +1 -2
- package/dist/host/senders.cjs +1 -2
- package/dist/host/senders.d.cts +0 -2
- package/dist/host/senders.d.cts.map +1 -1
- package/dist/host/senders.d.mts +0 -2
- package/dist/host/senders.d.mts.map +1 -1
- package/dist/host/senders.mjs +1 -2
- package/dist/http2-client.cjs +1 -2
- package/dist/http2-client.d.cts +0 -2
- package/dist/http2-client.d.cts.map +1 -1
- package/dist/http2-client.d.mts +0 -2
- package/dist/http2-client.d.mts.map +1 -1
- package/dist/http2-client.mjs +1 -2
- package/dist/index.cjs +5 -2
- package/dist/index.d.cts +5 -5
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +5 -5
- package/dist/ir.cjs +12 -4
- package/dist/ir.cjs.map +1 -1
- package/dist/ir.d.cts +17 -2
- package/dist/ir.d.cts.map +1 -1
- package/dist/ir.d.mts +17 -2
- package/dist/ir.d.mts.map +1 -1
- package/dist/ir.mjs +12 -5
- package/dist/ir.mjs.map +1 -1
- package/dist/jwt.cjs +1 -2
- package/dist/jwt.d.cts +0 -2
- package/dist/jwt.d.cts.map +1 -1
- package/dist/jwt.d.mts +0 -2
- package/dist/jwt.d.mts.map +1 -1
- package/dist/jwt.mjs +1 -2
- package/dist/plan.cjs +1 -2
- package/dist/plan.d.cts +0 -2
- package/dist/plan.d.cts.map +1 -1
- package/dist/plan.d.mts +0 -2
- package/dist/plan.d.mts.map +1 -1
- package/dist/plan.mjs +1 -2
- package/dist/postgres-js.cjs +1 -2
- package/dist/postgres-js.d.cts +0 -2
- package/dist/postgres-js.d.cts.map +1 -1
- package/dist/postgres-js.d.mts +0 -2
- package/dist/postgres-js.d.mts.map +1 -1
- package/dist/postgres-js.mjs +1 -2
- package/dist/provenance.cjs +1 -2
- package/dist/provenance.d.cts +0 -2
- package/dist/provenance.d.cts.map +1 -1
- package/dist/provenance.d.mts +0 -2
- package/dist/provenance.d.mts.map +1 -1
- package/dist/provenance.mjs +1 -2
- package/dist/push.cjs +1 -2
- package/dist/push.d.cts +0 -2
- package/dist/push.d.cts.map +1 -1
- package/dist/push.d.mts +0 -2
- package/dist/push.d.mts.map +1 -1
- package/dist/push.mjs +1 -2
- package/dist/react-email.cjs +1 -2
- package/dist/react-email.d.cts +0 -2
- package/dist/react-email.d.cts.map +1 -1
- package/dist/react-email.d.mts +0 -2
- package/dist/react-email.d.mts.map +1 -1
- package/dist/react-email.mjs +1 -2
- package/dist/reporting/classify.cjs +1 -2
- package/dist/reporting/classify.d.cts +0 -2
- package/dist/reporting/classify.d.cts.map +1 -1
- package/dist/reporting/classify.d.mts +0 -2
- package/dist/reporting/classify.d.mts.map +1 -1
- package/dist/reporting/classify.mjs +1 -2
- package/dist/reporting/observer.cjs +2 -2
- package/dist/reporting/observer.cjs.map +1 -1
- package/dist/reporting/observer.d.cts +0 -2
- package/dist/reporting/observer.d.cts.map +1 -1
- package/dist/reporting/observer.d.mts +0 -2
- package/dist/reporting/observer.d.mts.map +1 -1
- package/dist/reporting/observer.mjs +2 -2
- package/dist/reporting/observer.mjs.map +1 -1
- package/dist/reporting/tracking.cjs +29 -12
- package/dist/reporting/tracking.cjs.map +1 -1
- package/dist/reporting/tracking.d.cts +13 -8
- package/dist/reporting/tracking.d.cts.map +1 -1
- package/dist/reporting/tracking.d.mts +13 -8
- package/dist/reporting/tracking.d.mts.map +1 -1
- package/dist/reporting/tracking.mjs +29 -12
- package/dist/reporting/tracking.mjs.map +1 -1
- package/dist/runtime.cjs +1 -2
- package/dist/runtime.d.cts +0 -2
- package/dist/runtime.d.cts.map +1 -1
- package/dist/runtime.d.mts +0 -2
- package/dist/runtime.d.mts.map +1 -1
- package/dist/runtime.mjs +1 -2
- package/dist/store/erasure.cjs +1 -2
- package/dist/store/erasure.d.cts +0 -2
- package/dist/store/erasure.d.cts.map +1 -1
- package/dist/store/erasure.d.mts +0 -2
- package/dist/store/erasure.d.mts.map +1 -1
- package/dist/store/erasure.mjs +1 -2
- package/dist/store/facts.cjs +4 -5
- package/dist/store/facts.cjs.map +1 -1
- package/dist/store/facts.d.cts +2 -4
- package/dist/store/facts.d.cts.map +1 -1
- package/dist/store/facts.d.mts +2 -4
- package/dist/store/facts.d.mts.map +1 -1
- package/dist/store/facts.mjs +4 -5
- package/dist/store/facts.mjs.map +1 -1
- package/dist/store/index.cjs +2 -3
- package/dist/store/index.cjs.map +1 -1
- package/dist/store/index.d.cts +44 -15
- package/dist/store/index.d.cts.map +1 -1
- package/dist/store/index.d.mts +44 -15
- package/dist/store/index.d.mts.map +1 -1
- package/dist/store/index.mjs +2 -3
- package/dist/store/index.mjs.map +1 -1
- package/dist/store/postgres-reporting.cjs +31 -12
- package/dist/store/postgres-reporting.cjs.map +1 -1
- package/dist/store/postgres-reporting.d.cts +4 -4
- package/dist/store/postgres-reporting.d.cts.map +1 -1
- package/dist/store/postgres-reporting.d.mts +4 -4
- package/dist/store/postgres-reporting.d.mts.map +1 -1
- package/dist/store/postgres-reporting.mjs +31 -12
- package/dist/store/postgres-reporting.mjs.map +1 -1
- package/dist/store/postgres.cjs +40 -5
- package/dist/store/postgres.cjs.map +1 -1
- package/dist/store/postgres.d.cts +4 -4
- package/dist/store/postgres.d.cts.map +1 -1
- package/dist/store/postgres.d.mts +4 -4
- package/dist/store/postgres.d.mts.map +1 -1
- package/dist/store/postgres.mjs +41 -6
- package/dist/store/postgres.mjs.map +1 -1
- package/dist/store/sql.cjs +1 -2
- package/dist/store/sql.d.cts +0 -2
- package/dist/store/sql.d.cts.map +1 -1
- package/dist/store/sql.d.mts +0 -2
- package/dist/store/sql.d.mts.map +1 -1
- package/dist/store/sql.mjs +1 -2
- package/dist/store/tables.cjs +76 -13
- package/dist/store/tables.cjs.map +1 -1
- package/dist/store/tables.d.cts +17 -3
- package/dist/store/tables.d.cts.map +1 -1
- package/dist/store/tables.d.mts +17 -3
- package/dist/store/tables.d.mts.map +1 -1
- package/dist/store/tables.mjs +75 -14
- package/dist/store/tables.mjs.map +1 -1
- package/dist/store/user-lock.cjs +1 -2
- package/dist/store/user-lock.d.cts +0 -2
- package/dist/store/user-lock.d.cts.map +1 -1
- package/dist/store/user-lock.d.mts +0 -2
- package/dist/store/user-lock.d.mts.map +1 -1
- package/dist/store/user-lock.mjs +1 -2
- package/dist/templates.cjs +61 -9
- package/dist/templates.cjs.map +1 -1
- package/dist/templates.d.cts +101 -15
- package/dist/templates.d.cts.map +1 -1
- package/dist/templates.d.mts +101 -15
- package/dist/templates.d.mts.map +1 -1
- package/dist/templates.mjs +62 -11
- package/dist/templates.mjs.map +1 -1
- package/dist/transports/cloudflare-email.cjs +1 -2
- package/dist/transports/cloudflare-email.d.cts +0 -2
- package/dist/transports/cloudflare-email.d.cts.map +1 -1
- package/dist/transports/cloudflare-email.d.mts +0 -2
- package/dist/transports/cloudflare-email.d.mts.map +1 -1
- package/dist/transports/cloudflare-email.mjs +1 -2
- package/dist/transports/ses.cjs +1 -2
- package/dist/transports/ses.d.cts +0 -2
- package/dist/transports/ses.d.cts.map +1 -1
- package/dist/transports/ses.d.mts +0 -2
- package/dist/transports/ses.d.mts.map +1 -1
- package/dist/transports/ses.mjs +1 -2
- package/dist/transports/sigv4.cjs +1 -2
- package/dist/transports/sigv4.d.cts +0 -2
- package/dist/transports/sigv4.d.cts.map +1 -1
- package/dist/transports/sigv4.d.mts +0 -2
- package/dist/transports/sigv4.d.mts.map +1 -1
- package/dist/transports/sigv4.mjs +1 -2
- package/dist/webhooks.cjs +1 -2
- package/dist/webhooks.d.cts +0 -2
- package/dist/webhooks.d.cts.map +1 -1
- package/dist/webhooks.d.mts +0 -2
- package/dist/webhooks.d.mts.map +1 -1
- package/dist/webhooks.mjs +1 -2
- package/dist/webpush.cjs +1 -2
- package/dist/webpush.d.cts +0 -2
- package/dist/webpush.d.cts.map +1 -1
- package/dist/webpush.d.mts +0 -2
- package/dist/webpush.d.mts.map +1 -1
- package/dist/webpush.mjs +1 -2
- package/package.json +5 -5
package/dist/engine/retry.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/engine/retry.ts
|
|
3
3
|
/**
|
|
4
4
|
* Which step failures a retry would only repeat. A durable step retries what it throws; an
|
|
5
5
|
* error that is the same on every attempt — a template refusing its props, the contract
|
|
@@ -34,7 +34,6 @@ function isRetryable(error) {
|
|
|
34
34
|
function isRetryableStatus(status) {
|
|
35
35
|
return status === 408 || status === 429 || status >= 500;
|
|
36
36
|
}
|
|
37
|
-
//#endregion
|
|
38
37
|
exports.PermanentError = PermanentError;
|
|
39
38
|
exports.isRetryable = isRetryable;
|
|
40
39
|
exports.isRetryableStatus = isRetryableStatus;
|
package/dist/engine/retry.d.cts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/engine/retry.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Which step failures a retry would only repeat. A durable step retries what it throws; an
|
|
4
3
|
* error that is the same on every attempt — a template refusing its props, the contract
|
|
@@ -25,5 +24,4 @@ export declare class PermanentError extends Error {
|
|
|
25
24
|
export declare function isRetryable(error: unknown): boolean;
|
|
26
25
|
/** An HTTP answer a retry can change: a timeout, throttling, or the provider's own fault. */
|
|
27
26
|
export declare function isRetryableStatus(status: number): boolean;
|
|
28
|
-
//#endregion
|
|
29
27
|
//# sourceMappingURL=retry.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retry.d.cts","names":[],"sources":["../../src/engine/retry.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retry.d.cts","names":[],"sources":["../../src/engine/retry.ts"],"mappings":";;;;;;;;;;;;qBAaa,uBAAuB;WAChB;WACT;EACT,YAAY,iBAAiB;IAAY;;;;;;;wBAY3B,YAAY;;wBAOZ,kBAAkB"}
|
package/dist/engine/retry.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/engine/retry.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Which step failures a retry would only repeat. A durable step retries what it throws; an
|
|
4
3
|
* error that is the same on every attempt — a template refusing its props, the contract
|
|
@@ -25,5 +24,4 @@ export declare class PermanentError extends Error {
|
|
|
25
24
|
export declare function isRetryable(error: unknown): boolean;
|
|
26
25
|
/** An HTTP answer a retry can change: a timeout, throttling, or the provider's own fault. */
|
|
27
26
|
export declare function isRetryableStatus(status: number): boolean;
|
|
28
|
-
//#endregion
|
|
29
27
|
//# sourceMappingURL=retry.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retry.d.mts","names":[],"sources":["../../src/engine/retry.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retry.d.mts","names":[],"sources":["../../src/engine/retry.ts"],"mappings":";;;;;;;;;;;;qBAaa,uBAAuB;WAChB;WACT;EACT,YAAY,iBAAiB;IAAY;;;;;;;wBAY3B,YAAY;;wBAOZ,kBAAkB"}
|
package/dist/engine/retry.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/engine/retry.ts
|
|
2
2
|
/**
|
|
3
3
|
* Which step failures a retry would only repeat. A durable step retries what it throws; an
|
|
4
4
|
* error that is the same on every attempt — a template refusing its props, the contract
|
|
@@ -33,7 +33,6 @@ function isRetryable(error) {
|
|
|
33
33
|
function isRetryableStatus(status) {
|
|
34
34
|
return status === 408 || status === 429 || status >= 500;
|
|
35
35
|
}
|
|
36
|
-
//#endregion
|
|
37
36
|
export { PermanentError, isRetryable, isRetryableStatus };
|
|
38
37
|
|
|
39
38
|
//# sourceMappingURL=retry.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/engine/time-scale.ts
|
|
3
3
|
/**
|
|
4
4
|
* Debug time scale: divide every duration in a workflow's IR by a factor so a
|
|
5
5
|
* journey written in days plays out in seconds — with a factor of 3600, a
|
|
@@ -121,7 +121,6 @@ function scaleSegmentWindows(store, factor) {
|
|
|
121
121
|
return typeof value === "function" ? value.bind(target) : value;
|
|
122
122
|
} });
|
|
123
123
|
}
|
|
124
|
-
//#endregion
|
|
125
124
|
exports.scaleCondition = scaleCondition;
|
|
126
125
|
exports.scaleDurations = scaleDurations;
|
|
127
126
|
exports.scaleSegmentWindows = scaleSegmentWindows;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ConditionIR, WorkflowIR } from "../ir.cjs";
|
|
2
|
-
//#region src/engine/time-scale.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Debug time scale: divide every duration in a workflow's IR by a factor so a
|
|
5
4
|
* journey written in days plays out in seconds — with a factor of 3600, a
|
|
@@ -30,5 +29,4 @@ export declare function scaleCondition(condition: ConditionIR, factor: number):
|
|
|
30
29
|
export declare function scaleSegmentWindows<S extends {
|
|
31
30
|
getSegmentCondition(name: string): Promise<ConditionIR | undefined>;
|
|
32
31
|
}>(store: S, factor: number): S;
|
|
33
|
-
//#endregion
|
|
34
32
|
//# sourceMappingURL=time-scale.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time-scale.d.cts","names":[],"sources":["../../src/engine/time-scale.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"time-scale.d.cts","names":[],"sources":["../../src/engine/time-scale.ts"],"mappings":";;;;;;;;;;;;;;;;;;;wBAoBgB,eAAe,IAAI,YAAY,iBAAiB;;wBA4BhD,eAAe,WAAW,aAAa,iBAAiB;;;;;;;wBAuExD,oBACd;EAAY,oBAAoB,eAAe,QAAQ;GACvD,OAAO,GAAG,iBAAiB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ConditionIR, WorkflowIR } from "../ir.mjs";
|
|
2
|
-
//#region src/engine/time-scale.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Debug time scale: divide every duration in a workflow's IR by a factor so a
|
|
5
4
|
* journey written in days plays out in seconds — with a factor of 3600, a
|
|
@@ -30,5 +29,4 @@ export declare function scaleCondition(condition: ConditionIR, factor: number):
|
|
|
30
29
|
export declare function scaleSegmentWindows<S extends {
|
|
31
30
|
getSegmentCondition(name: string): Promise<ConditionIR | undefined>;
|
|
32
31
|
}>(store: S, factor: number): S;
|
|
33
|
-
//#endregion
|
|
34
32
|
//# sourceMappingURL=time-scale.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time-scale.d.mts","names":[],"sources":["../../src/engine/time-scale.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"time-scale.d.mts","names":[],"sources":["../../src/engine/time-scale.ts"],"mappings":";;;;;;;;;;;;;;;;;;;wBAoBgB,eAAe,IAAI,YAAY,iBAAiB;;wBA4BhD,eAAe,WAAW,aAAa,iBAAiB;;;;;;;wBAuExD,oBACd;EAAY,oBAAoB,eAAe,QAAQ;GACvD,OAAO,GAAG,iBAAiB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/engine/time-scale.ts
|
|
2
2
|
/**
|
|
3
3
|
* Debug time scale: divide every duration in a workflow's IR by a factor so a
|
|
4
4
|
* journey written in days plays out in seconds — with a factor of 3600, a
|
|
@@ -120,7 +120,6 @@ function scaleSegmentWindows(store, factor) {
|
|
|
120
120
|
return typeof value === "function" ? value.bind(target) : value;
|
|
121
121
|
} });
|
|
122
122
|
}
|
|
123
|
-
//#endregion
|
|
124
123
|
export { scaleCondition, scaleDurations, scaleSegmentWindows };
|
|
125
124
|
|
|
126
125
|
//# sourceMappingURL=time-scale.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/engine/time-window.ts
|
|
3
3
|
/**
|
|
4
4
|
* Time-window scheduling — when does the next send window open?
|
|
5
5
|
*
|
|
@@ -142,7 +142,6 @@ function nextWindowStart(nowMs, days, between, tz) {
|
|
|
142
142
|
}
|
|
143
143
|
return null;
|
|
144
144
|
}
|
|
145
|
-
//#endregion
|
|
146
145
|
exports.nextWindowStart = nextWindowStart;
|
|
147
146
|
exports.resolveTimeZone = resolveTimeZone;
|
|
148
147
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/engine/time-window.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Time-window scheduling — when does the next send window open?
|
|
4
3
|
*
|
|
@@ -18,5 +17,4 @@ export declare function resolveTimeZone(tz: string): string;
|
|
|
18
17
|
* forever on a config typo.
|
|
19
18
|
*/
|
|
20
19
|
export declare function nextWindowStart(nowMs: number, days: readonly string[], between: readonly [string, string], tz: string): number | null;
|
|
21
|
-
//#endregion
|
|
22
20
|
//# sourceMappingURL=time-window.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time-window.d.cts","names":[],"sources":["../../src/engine/time-window.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"time-window.d.cts","names":[],"sources":["../../src/engine/time-window.ts"],"mappings":";;;;;;;;;;wBA4CgB,gBAAgB;;;;;;;;wBAkGhB,gBACd,eACA,yBACA,oCACA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/engine/time-window.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Time-window scheduling — when does the next send window open?
|
|
4
3
|
*
|
|
@@ -18,5 +17,4 @@ export declare function resolveTimeZone(tz: string): string;
|
|
|
18
17
|
* forever on a config typo.
|
|
19
18
|
*/
|
|
20
19
|
export declare function nextWindowStart(nowMs: number, days: readonly string[], between: readonly [string, string], tz: string): number | null;
|
|
21
|
-
//#endregion
|
|
22
20
|
//# sourceMappingURL=time-window.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time-window.d.mts","names":[],"sources":["../../src/engine/time-window.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"time-window.d.mts","names":[],"sources":["../../src/engine/time-window.ts"],"mappings":";;;;;;;;;;wBA4CgB,gBAAgB;;;;;;;;wBAkGhB,gBACd,eACA,yBACA,oCACA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/engine/time-window.ts
|
|
2
2
|
/**
|
|
3
3
|
* Time-window scheduling — when does the next send window open?
|
|
4
4
|
*
|
|
@@ -141,7 +141,6 @@ function nextWindowStart(nowMs, days, between, tz) {
|
|
|
141
141
|
}
|
|
142
142
|
return null;
|
|
143
143
|
}
|
|
144
|
-
//#endregion
|
|
145
144
|
export { nextWindowStart, resolveTimeZone };
|
|
146
145
|
|
|
147
146
|
//# sourceMappingURL=time-window.mjs.map
|
package/dist/fcm.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_engine_retry = require("./engine/retry.cjs");
|
|
3
3
|
const require_jwt = require("./jwt.cjs");
|
|
4
4
|
let node_buffer = require("node:buffer");
|
|
5
|
-
|
|
5
|
+
// src/fcm.ts
|
|
6
6
|
/**
|
|
7
7
|
* How an FCM v1 answer is classified, after the API's error codes
|
|
8
8
|
* (https://firebase.google.com/docs/reference/fcm/rest/v1/ErrorCode):
|
|
@@ -188,7 +188,6 @@ function serviceAccountFromBase64(value) {
|
|
|
188
188
|
if (!json.project_id || !json.client_email || !json.private_key) throw new require_engine_retry.PermanentError("service account JSON is missing project_id, client_email or private_key");
|
|
189
189
|
return json;
|
|
190
190
|
}
|
|
191
|
-
//#endregion
|
|
192
191
|
exports.DEAD_TOKEN_REASONS = DEAD_TOKEN_REASONS;
|
|
193
192
|
exports.FcmAccessToken = FcmAccessToken;
|
|
194
193
|
exports.FcmPushSender = FcmPushSender;
|
package/dist/fcm.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MessageSender, OutboundMessage, SendResult } from "./engine/ports.cjs";
|
|
2
2
|
import "./engine/index.cjs";
|
|
3
3
|
import { PushRenderer } from "./push.cjs";
|
|
4
|
-
//#region src/fcm.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* `@shware/workflow/fcm` — push delivery through Firebase Cloud Messaging's
|
|
7
6
|
* HTTP v1 API, from a service account. No dependencies: the OAuth2 access
|
|
@@ -84,5 +83,4 @@ export declare function fcmErrorCode(body: string): string;
|
|
|
84
83
|
export declare function signJwt(account: FcmServiceAccount, audience: string, scope: string, nowMs?: number): Promise<string>;
|
|
85
84
|
/** Parse the service-account JSON as it is usually shipped: base64 of the file, in one secret. */
|
|
86
85
|
export declare function serviceAccountFromBase64(value: string): FcmServiceAccount;
|
|
87
|
-
//#endregion
|
|
88
86
|
//# sourceMappingURL=fcm.d.cts.map
|
package/dist/fcm.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fcm.d.cts","names":[],"sources":["../src/fcm.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fcm.d.cts","names":[],"sources":["../src/fcm.ts"],"mappings":";;;;;;;;;;;;;iBAiBiB;EACf;EACA;;EAEA;EACA;;iBAGe;EACf,gBAAgB;;EAEhB,eAAe;;iBAGA;;EAEf,aAAa;EACb,QAAQ;;EAER,UAAU;;EAEV,OAAO;;EAEP,eAAe;;;;;;;;;;;;;;;;;;;;qBAqBJ,oBAAoB;;;;;;;qBAgBpB;mBAMkB;;WAJpB;UACD;UACA;EAER,YAA6B,SAAS;;EAKhC,MAAM,eAAmB;;EAgB/B;UAIc;;qBA6BH,yBAAyB;mBACP;EAA7B,YAA6B,SAAS;EAEhC,KAAK,SAAS,kBAAkB,eAAe;;;wBAyEvC,aAAa;;wBAaP,QACpB,SAAS,mBACT,kBACA,eACA,iBACC;;wBAsBa,yBAAyB,gBAAgB"}
|
package/dist/fcm.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MessageSender, OutboundMessage, SendResult } from "./engine/ports.mjs";
|
|
2
2
|
import "./engine/index.mjs";
|
|
3
3
|
import { PushRenderer } from "./push.mjs";
|
|
4
|
-
//#region src/fcm.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* `@shware/workflow/fcm` — push delivery through Firebase Cloud Messaging's
|
|
7
6
|
* HTTP v1 API, from a service account. No dependencies: the OAuth2 access
|
|
@@ -84,5 +83,4 @@ export declare function fcmErrorCode(body: string): string;
|
|
|
84
83
|
export declare function signJwt(account: FcmServiceAccount, audience: string, scope: string, nowMs?: number): Promise<string>;
|
|
85
84
|
/** Parse the service-account JSON as it is usually shipped: base64 of the file, in one secret. */
|
|
86
85
|
export declare function serviceAccountFromBase64(value: string): FcmServiceAccount;
|
|
87
|
-
//#endregion
|
|
88
86
|
//# sourceMappingURL=fcm.d.mts.map
|
package/dist/fcm.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fcm.d.mts","names":[],"sources":["../src/fcm.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fcm.d.mts","names":[],"sources":["../src/fcm.ts"],"mappings":";;;;;;;;;;;;;iBAiBiB;EACf;EACA;;EAEA;EACA;;iBAGe;EACf,gBAAgB;;EAEhB,eAAe;;iBAGA;;EAEf,aAAa;EACb,QAAQ;;EAER,UAAU;;EAEV,OAAO;;EAEP,eAAe;;;;;;;;;;;;;;;;;;;;qBAqBJ,oBAAoB;;;;;;;qBAgBpB;mBAMkB;;WAJpB;UACD;UACA;EAER,YAA6B,SAAS;;EAKhC,MAAM,eAAmB;;EAgB/B;UAIc;;qBA6BH,yBAAyB;mBACP;EAA7B,YAA6B,SAAS;EAEhC,KAAK,SAAS,kBAAkB,eAAe;;;wBAyEvC,aAAa;;wBAaP,QACpB,SAAS,mBACT,kBACA,eACA,iBACC;;wBAsBa,yBAAyB,gBAAgB"}
|
package/dist/fcm.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PermanentError, isRetryableStatus } from "./engine/retry.mjs";
|
|
2
2
|
import { base64url, pemToDer } from "./jwt.mjs";
|
|
3
3
|
import { Buffer } from "node:buffer";
|
|
4
|
-
|
|
4
|
+
// src/fcm.ts
|
|
5
5
|
/**
|
|
6
6
|
* How an FCM v1 answer is classified, after the API's error codes
|
|
7
7
|
* (https://firebase.google.com/docs/reference/fcm/rest/v1/ErrorCode):
|
|
@@ -187,7 +187,6 @@ function serviceAccountFromBase64(value) {
|
|
|
187
187
|
if (!json.project_id || !json.client_email || !json.private_key) throw new PermanentError("service account JSON is missing project_id, client_email or private_key");
|
|
188
188
|
return json;
|
|
189
189
|
}
|
|
190
|
-
//#endregion
|
|
191
190
|
export { DEAD_TOKEN_REASONS, FcmAccessToken, FcmPushSender, fcmErrorCode, serviceAccountFromBase64, signJwt };
|
|
192
191
|
|
|
193
192
|
//# sourceMappingURL=fcm.mjs.map
|
package/dist/hash.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/hash.ts
|
|
3
3
|
/**
|
|
4
4
|
* Content hashing — contentHash covers execution semantics only.
|
|
5
5
|
*
|
|
@@ -234,7 +234,6 @@ function semanticHash(value) {
|
|
|
234
234
|
function fullHash(value) {
|
|
235
235
|
return contentHashOf(canonicalJSON(value));
|
|
236
236
|
}
|
|
237
|
-
//#endregion
|
|
238
237
|
exports.canonicalJSON = canonicalJSON;
|
|
239
238
|
exports.fullHash = fullHash;
|
|
240
239
|
exports.semanticHash = semanticHash;
|
package/dist/hash.d.cts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/hash.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Content hashing — contentHash covers execution semantics only.
|
|
4
3
|
*
|
|
@@ -26,5 +25,4 @@ export declare function sha256Hex(input: string): string;
|
|
|
26
25
|
export declare function semanticHash(value: unknown): string;
|
|
27
26
|
/** Canonical hash of the full content — used to tell "semantics unchanged, metadata edited" apart. */
|
|
28
27
|
export declare function fullHash(value: unknown): string;
|
|
29
|
-
//#endregion
|
|
30
28
|
//# sourceMappingURL=hash.d.cts.map
|
package/dist/hash.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hash.d.cts","names":[],"sources":["../src/hash.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"hash.d.cts","names":[],"sources":["../src/hash.ts"],"mappings":";;;;;;;;;;;;;;;;wBA+EgB,UAAU;;wBAKV,gBAAgB;;wBAKhB,cAAc;;wBAyCd,UAAU;;wBA2EV,aAAa;;wBAKb,SAAS"}
|
package/dist/hash.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/hash.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Content hashing — contentHash covers execution semantics only.
|
|
4
3
|
*
|
|
@@ -26,5 +25,4 @@ export declare function sha256Hex(input: string): string;
|
|
|
26
25
|
export declare function semanticHash(value: unknown): string;
|
|
27
26
|
/** Canonical hash of the full content — used to tell "semantics unchanged, metadata edited" apart. */
|
|
28
27
|
export declare function fullHash(value: unknown): string;
|
|
29
|
-
//#endregion
|
|
30
28
|
//# sourceMappingURL=hash.d.mts.map
|
package/dist/hash.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hash.d.mts","names":[],"sources":["../src/hash.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"hash.d.mts","names":[],"sources":["../src/hash.ts"],"mappings":";;;;;;;;;;;;;;;;wBA+EgB,UAAU;;wBAKV,gBAAgB;;wBAKhB,cAAc;;wBAyCd,UAAU;;wBA2EV,aAAa;;wBAKb,SAAS"}
|
package/dist/hash.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/hash.ts
|
|
2
2
|
/**
|
|
3
3
|
* Content hashing — contentHash covers execution semantics only.
|
|
4
4
|
*
|
|
@@ -233,7 +233,6 @@ function semanticHash(value) {
|
|
|
233
233
|
function fullHash(value) {
|
|
234
234
|
return contentHashOf(canonicalJSON(value));
|
|
235
235
|
}
|
|
236
|
-
//#endregion
|
|
237
236
|
export { canonicalJSON, fullHash, semanticHash, sha256Hex, stripMeta, stripProvenance };
|
|
238
237
|
|
|
239
238
|
//# sourceMappingURL=hash.mjs.map
|
package/dist/host/auth.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
let node_crypto = require("node:crypto");
|
|
3
|
-
|
|
3
|
+
// src/host/auth.ts
|
|
4
4
|
const utf8 = new TextEncoder();
|
|
5
5
|
/**
|
|
6
6
|
* `node:crypto`'s constant-time compare — on Node, Lambda, and a Worker with `nodejs_compat`
|
|
@@ -41,7 +41,6 @@ function bearerMatches(request, token) {
|
|
|
41
41
|
function authorized(request, env) {
|
|
42
42
|
return env.API_TOKEN === void 0 || bearerMatches(request, env.API_TOKEN);
|
|
43
43
|
}
|
|
44
|
-
//#endregion
|
|
45
44
|
exports.authorized = authorized;
|
|
46
45
|
exports.bearerMatches = bearerMatches;
|
|
47
46
|
exports.timingSafeEqual = timingSafeEqual;
|
package/dist/host/auth.d.cts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/host/auth.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Who may call the host's protected routes. By default the env's `API_TOKEN` as a bearer; a host
|
|
4
3
|
* replaces it with its own `Authorize` (an HMAC over the body, a JWT, a header its proxy adds).
|
|
@@ -31,5 +30,4 @@ export declare function bearerMatches(request: Request, token: string): boolean;
|
|
|
31
30
|
export declare function authorized(request: Request, env: {
|
|
32
31
|
API_TOKEN?: string | undefined;
|
|
33
32
|
}): boolean;
|
|
34
|
-
//#endregion
|
|
35
33
|
//# sourceMappingURL=auth.d.cts.map
|
package/dist/host/auth.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.cts","names":[],"sources":["../../src/host/auth.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"auth.d.cts","names":[],"sources":["../../src/host/auth.ts"],"mappings":";;;;;;;;;;;YAcY,UAAU,QAAQ,SAAS,SAAS,KAAK,kBAAkB;;;;;;wBAkBjD,gBAAgB,WAAW,YAAY;;;;;;wBAa7C,cAAc,SAAS,SAAS;;;;;;wBAehC,WAAW,SAAS,SAAS;EAAO"}
|
package/dist/host/auth.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/host/auth.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Who may call the host's protected routes. By default the env's `API_TOKEN` as a bearer; a host
|
|
4
3
|
* replaces it with its own `Authorize` (an HMAC over the body, a JWT, a header its proxy adds).
|
|
@@ -31,5 +30,4 @@ export declare function bearerMatches(request: Request, token: string): boolean;
|
|
|
31
30
|
export declare function authorized(request: Request, env: {
|
|
32
31
|
API_TOKEN?: string | undefined;
|
|
33
32
|
}): boolean;
|
|
34
|
-
//#endregion
|
|
35
33
|
//# sourceMappingURL=auth.d.mts.map
|
package/dist/host/auth.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.mts","names":[],"sources":["../../src/host/auth.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"auth.d.mts","names":[],"sources":["../../src/host/auth.ts"],"mappings":";;;;;;;;;;;YAcY,UAAU,QAAQ,SAAS,SAAS,KAAK,kBAAkB;;;;;;wBAkBjD,gBAAgB,WAAW,YAAY;;;;;;wBAa7C,cAAc,SAAS,SAAS;;;;;;wBAehC,WAAW,SAAS,SAAS;EAAO"}
|
package/dist/host/auth.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { timingSafeEqual as timingSafeEqual$1 } from "node:crypto";
|
|
2
|
-
|
|
2
|
+
// src/host/auth.ts
|
|
3
3
|
const utf8 = new TextEncoder();
|
|
4
4
|
/**
|
|
5
5
|
* `node:crypto`'s constant-time compare — on Node, Lambda, and a Worker with `nodejs_compat`
|
|
@@ -40,7 +40,6 @@ function bearerMatches(request, token) {
|
|
|
40
40
|
function authorized(request, env) {
|
|
41
41
|
return env.API_TOKEN === void 0 || bearerMatches(request, env.API_TOKEN);
|
|
42
42
|
}
|
|
43
|
-
//#endregion
|
|
44
43
|
export { authorized, bearerMatches, timingSafeEqual };
|
|
45
44
|
|
|
46
45
|
//# sourceMappingURL=auth.mjs.map
|
package/dist/host/channels.cjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_engine_retry = require("../engine/retry.cjs");
|
|
3
3
|
const require_apns = require("../apns.cjs");
|
|
4
|
+
const require_host_ingest = require("./ingest.cjs");
|
|
4
5
|
const require_templates = require("../templates.cjs");
|
|
5
6
|
const require_config = require("../config.cjs");
|
|
6
7
|
const require_email_sender = require("../email-sender.cjs");
|
|
@@ -10,10 +11,9 @@ const require_push = require("../push.cjs");
|
|
|
10
11
|
const require_react_email = require("../react-email.cjs");
|
|
11
12
|
const require_webhooks = require("../webhooks.cjs");
|
|
12
13
|
const require_webpush = require("../webpush.cjs");
|
|
13
|
-
const require_host_ingest = require("./ingest.cjs");
|
|
14
14
|
const require_host_senders = require("./senders.cjs");
|
|
15
15
|
let node_buffer = require("node:buffer");
|
|
16
|
-
|
|
16
|
+
// src/host/channels.ts
|
|
17
17
|
/**
|
|
18
18
|
* The outlets a `JourneyConfig` describes, assembled against the environment:
|
|
19
19
|
* email through the host's transport (SES, Cloudflare Email, ...) with each template's addresses, iOS pushes
|
|
@@ -231,7 +231,6 @@ function channelsFromConfig(config, env, options = {}) {
|
|
|
231
231
|
slack: slack()
|
|
232
232
|
});
|
|
233
233
|
}
|
|
234
|
-
//#endregion
|
|
235
234
|
exports.channelsFromConfig = channelsFromConfig;
|
|
236
235
|
exports.createProviderCache = createProviderCache;
|
|
237
236
|
exports.journeyMode = journeyMode;
|
package/dist/host/channels.d.cts
CHANGED
|
@@ -4,7 +4,6 @@ import { JourneyMode, JourneyRuntimeOptions } from "../runtime.cjs";
|
|
|
4
4
|
import { JourneyConfig } from "../config.cjs";
|
|
5
5
|
import { EmailTransport } from "../email-sender.cjs";
|
|
6
6
|
import { JourneyEnv } from "./platform.cjs";
|
|
7
|
-
//#region src/host/channels.d.ts
|
|
8
7
|
/**
|
|
9
8
|
* The outlets a `JourneyConfig` describes, assembled against the environment:
|
|
10
9
|
* email through the host's transport (SES, Cloudflare Email, ...) with each template's addresses, iOS pushes
|
|
@@ -56,5 +55,4 @@ export declare function channelsFromConfig(config: ChannelsConfig, env: JourneyE
|
|
|
56
55
|
*/
|
|
57
56
|
providers?: ProviderCache | undefined;
|
|
58
57
|
}): MessageSender;
|
|
59
|
-
//#endregion
|
|
60
58
|
//# sourceMappingURL=channels.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channels.d.cts","names":[],"sources":["../../src/host/channels.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"channels.d.cts","names":[],"sources":["../../src/host/channels.ts"],"mappings":";;;;;;;;;;;;;;;;;wBAmDgB,YAAY,KAAK,aAAa;;wBAK9B,kBACd,QAAQ,KAAK,uCACb,KAAK,aACJ,SAAS;;;;;;;;;;;;;;;;;iBAoDK;;EAEf,IAAI,GAAG,aAAa,aAAa,IAAI;;wBAGvB,uBAAuB;;YAiD3B,iBAAiB,KAC3B;wBAIc,mBACd,QAAQ,gBACR,KAAK,YACL;;EAEE,QAAQ;;EAER,QAAQ;EACR,eAAe;;EAEf,mBAAmB;;;;;EAKnB,YAAY;IAEb"}
|
package/dist/host/channels.d.mts
CHANGED
|
@@ -4,7 +4,6 @@ import { JourneyMode, JourneyRuntimeOptions } from "../runtime.mjs";
|
|
|
4
4
|
import { JourneyConfig } from "../config.mjs";
|
|
5
5
|
import { EmailTransport } from "../email-sender.mjs";
|
|
6
6
|
import { JourneyEnv } from "./platform.mjs";
|
|
7
|
-
//#region src/host/channels.d.ts
|
|
8
7
|
/**
|
|
9
8
|
* The outlets a `JourneyConfig` describes, assembled against the environment:
|
|
10
9
|
* email through the host's transport (SES, Cloudflare Email, ...) with each template's addresses, iOS pushes
|
|
@@ -56,5 +55,4 @@ export declare function channelsFromConfig(config: ChannelsConfig, env: JourneyE
|
|
|
56
55
|
*/
|
|
57
56
|
providers?: ProviderCache | undefined;
|
|
58
57
|
}): MessageSender;
|
|
59
|
-
//#endregion
|
|
60
58
|
//# sourceMappingURL=channels.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channels.d.mts","names":[],"sources":["../../src/host/channels.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"channels.d.mts","names":[],"sources":["../../src/host/channels.ts"],"mappings":";;;;;;;;;;;;;;;;;wBAmDgB,YAAY,KAAK,aAAa;;wBAK9B,kBACd,QAAQ,KAAK,uCACb,KAAK,aACJ,SAAS;;;;;;;;;;;;;;;;;iBAoDK;;EAEf,IAAI,GAAG,aAAa,aAAa,IAAI;;wBAGvB,uBAAuB;;YAiD3B,iBAAiB,KAC3B;wBAIc,mBACd,QAAQ,gBACR,KAAK,YACL;;EAEE,QAAQ;;EAER,QAAQ;EACR,eAAe;;EAEf,mBAAmB;;;;;EAKnB,YAAY;IAEb"}
|
package/dist/host/channels.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PermanentError } from "../engine/retry.mjs";
|
|
2
2
|
import { ApnsProviderToken, ApnsPushSender, DEAD_TOKEN_REASONS, apnsKeyFromBase64 } from "../apns.mjs";
|
|
3
|
+
import { removeDevice } from "./ingest.mjs";
|
|
3
4
|
import { indexTemplates, lookupTemplate, renderDiscordContent, renderSlackContent } from "../templates.mjs";
|
|
4
5
|
import { apnsEnvironment } from "../config.mjs";
|
|
5
6
|
import { EmailSender } from "../email-sender.mjs";
|
|
@@ -9,10 +10,9 @@ import { registryPushRenderer } from "../push.mjs";
|
|
|
9
10
|
import { registryRenderer } from "../react-email.mjs";
|
|
10
11
|
import { DiscordWebhookSender, SlackWebhookSender } from "../webhooks.mjs";
|
|
11
12
|
import { DEAD_TOKEN_REASONS as DEAD_TOKEN_REASONS$2, VapidSigner, WebPushSender } from "../webpush.mjs";
|
|
12
|
-
import { removeDevice } from "./ingest.mjs";
|
|
13
13
|
import { routeByChannel, routeByPlatform } from "./senders.mjs";
|
|
14
14
|
import { Buffer } from "node:buffer";
|
|
15
|
-
|
|
15
|
+
// src/host/channels.ts
|
|
16
16
|
/**
|
|
17
17
|
* The outlets a `JourneyConfig` describes, assembled against the environment:
|
|
18
18
|
* email through the host's transport (SES, Cloudflare Email, ...) with each template's addresses, iOS pushes
|
|
@@ -230,7 +230,6 @@ function channelsFromConfig(config, env, options = {}) {
|
|
|
230
230
|
slack: slack()
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
|
-
//#endregion
|
|
234
233
|
export { channelsFromConfig, createProviderCache, journeyMode, runtimeFromConfig };
|
|
235
234
|
|
|
236
235
|
//# sourceMappingURL=channels.mjs.map
|
package/dist/host/execute.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_store_facts = require("../store/facts.cjs");
|
|
3
|
+
const require_host_ingest = require("./ingest.cjs");
|
|
2
4
|
const require_contract = require("../contract.cjs");
|
|
3
5
|
const require_runtime = require("../runtime.cjs");
|
|
4
6
|
const require_engine_interpreter = require("../engine/interpreter.cjs");
|
|
5
7
|
const require_engine_time_scale = require("../engine/time-scale.cjs");
|
|
6
|
-
const require_store_facts = require("../store/facts.cjs");
|
|
7
8
|
const require_host_fresh_read = require("./fresh-read.cjs");
|
|
8
|
-
|
|
9
|
-
//#region src/host/execute.ts
|
|
9
|
+
// src/host/execute.ts
|
|
10
10
|
/** Development aid: echo each outbound message before handing it to the real sender. */
|
|
11
11
|
function logging(sender) {
|
|
12
12
|
return { async send(message) {
|
|
@@ -87,7 +87,6 @@ async function executeJourney(input, parts) {
|
|
|
87
87
|
});
|
|
88
88
|
return outcome;
|
|
89
89
|
}
|
|
90
|
-
//#endregion
|
|
91
90
|
exports.executeJourney = executeJourney;
|
|
92
91
|
|
|
93
92
|
//# sourceMappingURL=execute.cjs.map
|
package/dist/host/execute.d.cts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ActionInvoker, EngineStep, JourneyObserver, JourneyOutcome, MessageSender, MessageValidator } from "../engine/ports.cjs";
|
|
2
|
-
import { JourneyStore } from "../store/index.cjs";
|
|
3
2
|
import { Contract } from "../contract.cjs";
|
|
3
|
+
import { JourneyStore } from "../store/index.cjs";
|
|
4
4
|
import { JourneyRuntimeOptions } from "../runtime.cjs";
|
|
5
5
|
import { JourneyEnv, JourneyParams } from "./platform.cjs";
|
|
6
|
-
//#region src/host/execute.d.ts
|
|
7
6
|
/**
|
|
8
7
|
* One journey instance run to its end, on whatever durable runtime supplies the `EngineStep`:
|
|
9
8
|
* the runner admitted against the user's erasure tombstone, the IR loaded by the hash pinned at
|
|
@@ -33,5 +32,4 @@ export interface JourneyRunInput {
|
|
|
33
32
|
step: EngineStep;
|
|
34
33
|
}
|
|
35
34
|
export declare function executeJourney(input: JourneyRunInput, parts: JourneyRunParts): Promise<JourneyOutcome>;
|
|
36
|
-
//#endregion
|
|
37
35
|
//# sourceMappingURL=execute.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute.d.cts","names":[],"sources":["../../src/host/execute.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"execute.d.cts","names":[],"sources":["../../src/host/execute.ts"],"mappings":";;;;;;;;;;;;iBA2BiB;EACf,OAAO;;;;;EAKP,KAAK;EACL,SAAS;EACT,UAAU;EACV,SAAS;EACT,WAAW;EACX,YAAY;EACZ,WAAW;;iBAGI;EACf;EACA,QAAQ;;EAER;EACA,MAAM;;wBAec,eACpB,OAAO,iBACP,OAAO,kBACN,QAAQ"}
|
package/dist/host/execute.d.mts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ActionInvoker, EngineStep, JourneyObserver, JourneyOutcome, MessageSender, MessageValidator } from "../engine/ports.mjs";
|
|
2
|
-
import { JourneyStore } from "../store/index.mjs";
|
|
3
2
|
import { Contract } from "../contract.mjs";
|
|
3
|
+
import { JourneyStore } from "../store/index.mjs";
|
|
4
4
|
import { JourneyRuntimeOptions } from "../runtime.mjs";
|
|
5
5
|
import { JourneyEnv, JourneyParams } from "./platform.mjs";
|
|
6
|
-
//#region src/host/execute.d.ts
|
|
7
6
|
/**
|
|
8
7
|
* One journey instance run to its end, on whatever durable runtime supplies the `EngineStep`:
|
|
9
8
|
* the runner admitted against the user's erasure tombstone, the IR loaded by the hash pinned at
|
|
@@ -33,5 +32,4 @@ export interface JourneyRunInput {
|
|
|
33
32
|
step: EngineStep;
|
|
34
33
|
}
|
|
35
34
|
export declare function executeJourney(input: JourneyRunInput, parts: JourneyRunParts): Promise<JourneyOutcome>;
|
|
36
|
-
//#endregion
|
|
37
35
|
//# sourceMappingURL=execute.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute.d.mts","names":[],"sources":["../../src/host/execute.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"execute.d.mts","names":[],"sources":["../../src/host/execute.ts"],"mappings":";;;;;;;;;;;;iBA2BiB;EACf,OAAO;;;;;EAKP,KAAK;EACL,SAAS;EACT,UAAU;EACV,SAAS;EACT,WAAW;EACX,YAAY;EACZ,WAAW;;iBAGI;EACf;EACA,QAAQ;;EAER;EACA,MAAM;;wBAec,eACpB,OAAO,iBACP,OAAO,kBACN,QAAQ"}
|
package/dist/host/execute.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { JourneyFactSource } from "../store/facts.mjs";
|
|
2
|
+
import { ingestEvent } from "./ingest.mjs";
|
|
1
3
|
import { ContractValidationError, checkEvent } from "../contract.mjs";
|
|
2
4
|
import { resolveRuntime } from "../runtime.mjs";
|
|
3
5
|
import { runJourney } from "../engine/interpreter.mjs";
|
|
4
6
|
import { scaleDurations } from "../engine/time-scale.mjs";
|
|
5
|
-
import { JourneyFactSource } from "../store/facts.mjs";
|
|
6
7
|
import { readWithRetry } from "./fresh-read.mjs";
|
|
7
|
-
|
|
8
|
-
//#region src/host/execute.ts
|
|
8
|
+
// src/host/execute.ts
|
|
9
9
|
/** Development aid: echo each outbound message before handing it to the real sender. */
|
|
10
10
|
function logging(sender) {
|
|
11
11
|
return { async send(message) {
|
|
@@ -86,7 +86,6 @@ async function executeJourney(input, parts) {
|
|
|
86
86
|
});
|
|
87
87
|
return outcome;
|
|
88
88
|
}
|
|
89
|
-
//#endregion
|
|
90
89
|
export { executeJourney };
|
|
91
90
|
|
|
92
91
|
//# sourceMappingURL=execute.mjs.map
|
package/dist/host/fresh-read.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_engine_retry = require("../engine/retry.cjs");
|
|
3
|
-
|
|
3
|
+
// src/host/fresh-read.ts
|
|
4
4
|
/**
|
|
5
5
|
* A read that runs outside any durable step — a runner's admission at its entry, the registry
|
|
6
6
|
* check on AWS — which must see the record as it is now (an erasure since the last checkpoint)
|
|
@@ -24,7 +24,6 @@ async function readWithRetry(fn, about, budget = {
|
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
//#endregion
|
|
28
27
|
exports.readWithRetry = readWithRetry;
|
|
29
28
|
|
|
30
29
|
//# sourceMappingURL=fresh-read.cjs.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/host/fresh-read.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* A read that runs outside any durable step — a runner's admission at its entry, the registry
|
|
4
3
|
* check on AWS — which must see the record as it is now (an erasure since the last checkpoint)
|
|
@@ -14,5 +13,4 @@ export declare function readWithRetry<T>(fn: () => Promise<T>, about: {
|
|
|
14
13
|
attempts: number;
|
|
15
14
|
delaysMs: readonly number[];
|
|
16
15
|
}): Promise<T>;
|
|
17
|
-
//#endregion
|
|
18
16
|
//# sourceMappingURL=fresh-read.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fresh-read.d.cts","names":[],"sources":["../../src/host/fresh-read.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fresh-read.d.cts","names":[],"sources":["../../src/host/fresh-read.ts"],"mappings":";;;;;;;;wBAUsB,cAAc,GAClC,UAAU,QAAQ,IAClB;EAAS;EAAc;GACvB;EAAU;EAAkB;IAC3B,QAAQ"}
|