@shware/workflow 5.0.0 → 5.0.1
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/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 +1 -2
- 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 +1 -2
- 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 +1 -2
- package/dist/client.d.cts +0 -2
- package/dist/client.d.cts.map +1 -1
- package/dist/client.d.mts +0 -2
- package/dist/client.d.mts.map +1 -1
- package/dist/client.mjs +1 -2
- 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/runner.cjs +1 -2
- package/dist/cloudflare/runner.d.cts +0 -2
- package/dist/cloudflare/runner.d.cts.map +1 -1
- package/dist/cloudflare/runner.d.mts +0 -2
- package/dist/cloudflare/runner.d.mts.map +1 -1
- package/dist/cloudflare/runner.mjs +1 -2
- 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 +1 -2
- package/dist/config.d.cts +0 -2
- package/dist/config.d.cts.map +1 -1
- package/dist/config.d.mts +0 -2
- package/dist/config.d.mts.map +1 -1
- package/dist/config.mjs +1 -2
- package/dist/contract.cjs +1 -2
- package/dist/contract.d.cts +0 -2
- package/dist/contract.d.cts.map +1 -1
- package/dist/contract.d.mts +0 -2
- package/dist/contract.d.mts.map +1 -1
- package/dist/contract.mjs +1 -2
- 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 +1 -2
- package/dist/dsl/bundle.d.cts +0 -2
- package/dist/dsl/bundle.d.cts.map +1 -1
- package/dist/dsl/bundle.d.mts +0 -2
- package/dist/dsl/bundle.d.mts.map +1 -1
- package/dist/dsl/bundle.mjs +1 -2
- 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 +1 -2
- package/dist/dsl/flow.d.cts +0 -2
- package/dist/dsl/flow.d.cts.map +1 -1
- package/dist/dsl/flow.d.mts +0 -2
- package/dist/dsl/flow.d.mts.map +1 -1
- package/dist/dsl/flow.mjs +1 -2
- 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 +1 -2
- 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 +1 -2
- 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 +1 -2
- package/dist/email-sender.d.cts +0 -2
- package/dist/email-sender.d.cts.map +1 -1
- package/dist/email-sender.d.mts +0 -2
- package/dist/email-sender.d.mts.map +1 -1
- package/dist/email-sender.mjs +1 -2
- package/dist/email.cjs +1 -2
- package/dist/email.d.cts +0 -2
- package/dist/email.d.cts.map +1 -1
- package/dist/email.d.mts +0 -2
- package/dist/email.d.mts.map +1 -1
- package/dist/email.mjs +1 -2
- 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.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/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/interpreter.cjs +1 -2
- 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 +1 -2
- package/dist/engine/ports.d.cts +0 -2
- package/dist/engine/ports.d.cts.map +1 -1
- package/dist/engine/ports.d.mts +0 -2
- 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 +1 -2
- 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 +1 -2
- package/dist/host/execute.cjs +1 -2
- package/dist/host/execute.d.cts +0 -2
- package/dist/host/execute.d.cts.map +1 -1
- package/dist/host/execute.d.mts +0 -2
- package/dist/host/execute.d.mts.map +1 -1
- package/dist/host/execute.mjs +1 -2
- 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 +1 -2
- package/dist/host/http.d.cts +0 -2
- package/dist/host/http.d.cts.map +1 -1
- package/dist/host/http.d.mts +0 -2
- package/dist/host/http.d.mts.map +1 -1
- package/dist/host/http.mjs +1 -2
- package/dist/host/ingest.cjs +1 -2
- package/dist/host/ingest.d.cts +0 -2
- package/dist/host/ingest.d.cts.map +1 -1
- package/dist/host/ingest.d.mts +0 -2
- package/dist/host/ingest.d.mts.map +1 -1
- package/dist/host/ingest.mjs +1 -2
- package/dist/host/journey-host.cjs +1 -2
- 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 +1 -2
- 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/ir.cjs +1 -2
- package/dist/ir.d.cts +0 -2
- package/dist/ir.d.cts.map +1 -1
- package/dist/ir.d.mts +0 -2
- package/dist/ir.d.mts.map +1 -1
- package/dist/ir.mjs +1 -2
- 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 +1 -2
- 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 +1 -2
- package/dist/reporting/tracking.cjs +1 -2
- package/dist/reporting/tracking.d.cts +0 -2
- package/dist/reporting/tracking.d.cts.map +1 -1
- package/dist/reporting/tracking.d.mts +0 -2
- package/dist/reporting/tracking.d.mts.map +1 -1
- package/dist/reporting/tracking.mjs +1 -2
- 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 +1 -2
- package/dist/store/facts.d.cts +0 -2
- package/dist/store/facts.d.cts.map +1 -1
- package/dist/store/facts.d.mts +0 -2
- package/dist/store/facts.d.mts.map +1 -1
- package/dist/store/facts.mjs +1 -2
- package/dist/store/index.cjs +1 -2
- package/dist/store/index.d.cts +0 -2
- package/dist/store/index.d.cts.map +1 -1
- package/dist/store/index.d.mts +0 -2
- package/dist/store/index.d.mts.map +1 -1
- package/dist/store/index.mjs +1 -2
- package/dist/store/postgres-reporting.cjs +1 -2
- package/dist/store/postgres-reporting.d.cts +0 -2
- package/dist/store/postgres-reporting.d.cts.map +1 -1
- package/dist/store/postgres-reporting.d.mts +0 -2
- package/dist/store/postgres-reporting.d.mts.map +1 -1
- package/dist/store/postgres-reporting.mjs +1 -2
- package/dist/store/postgres.cjs +1 -2
- package/dist/store/postgres.d.cts +0 -2
- package/dist/store/postgres.d.cts.map +1 -1
- package/dist/store/postgres.d.mts +0 -2
- package/dist/store/postgres.d.mts.map +1 -1
- package/dist/store/postgres.mjs +1 -2
- 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 +1 -2
- package/dist/store/tables.d.cts +0 -2
- package/dist/store/tables.d.cts.map +1 -1
- package/dist/store/tables.d.mts +0 -2
- package/dist/store/tables.d.mts.map +1 -1
- package/dist/store/tables.mjs +1 -2
- 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 +1 -2
- package/dist/templates.d.cts +0 -2
- package/dist/templates.d.cts.map +1 -1
- package/dist/templates.d.mts +0 -2
- package/dist/templates.d.mts.map +1 -1
- package/dist/templates.mjs +1 -2
- 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
|
@@ -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
|
@@ -13,7 +13,7 @@ const require_webpush = require("../webpush.cjs");
|
|
|
13
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
|
@@ -12,7 +12,7 @@ import { DEAD_TOKEN_REASONS as DEAD_TOKEN_REASONS$2, VapidSigner, WebPushSender
|
|
|
12
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
|
@@ -6,7 +6,7 @@ const require_engine_time_scale = require("../engine/time-scale.cjs");
|
|
|
6
6
|
const require_store_facts = require("../store/facts.cjs");
|
|
7
7
|
const require_host_fresh_read = require("./fresh-read.cjs");
|
|
8
8
|
const require_host_ingest = require("./ingest.cjs");
|
|
9
|
-
|
|
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
|
@@ -3,7 +3,6 @@ import { JourneyStore } from "../store/index.cjs";
|
|
|
3
3
|
import { Contract } from "../contract.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
|
@@ -3,7 +3,6 @@ import { JourneyStore } from "../store/index.mjs";
|
|
|
3
3
|
import { Contract } from "../contract.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
|
@@ -5,7 +5,7 @@ import { scaleDurations } from "../engine/time-scale.mjs";
|
|
|
5
5
|
import { JourneyFactSource } from "../store/facts.mjs";
|
|
6
6
|
import { readWithRetry } from "./fresh-read.mjs";
|
|
7
7
|
import { ingestEvent } from "./ingest.mjs";
|
|
8
|
-
|
|
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"}
|
|
@@ -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.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fresh-read.d.mts","names":[],"sources":["../../src/host/fresh-read.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fresh-read.d.mts","names":[],"sources":["../../src/host/fresh-read.ts"],"mappings":";;;;;;;;wBAUsB,cAAc,GAClC,UAAU,QAAQ,IAClB;EAAS;EAAc;GACvB;EAAU;EAAkB;IAC3B,QAAQ"}
|
package/dist/host/fresh-read.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isRetryable } from "../engine/retry.mjs";
|
|
2
|
-
|
|
2
|
+
// src/host/fresh-read.ts
|
|
3
3
|
/**
|
|
4
4
|
* A read that runs outside any durable step — a runner's admission at its entry, the registry
|
|
5
5
|
* check on AWS — which must see the record as it is now (an erasure since the last checkpoint)
|
|
@@ -23,7 +23,6 @@ async function readWithRetry(fn, about, budget = {
|
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
//#endregion
|
|
27
26
|
export { readWithRetry };
|
|
28
27
|
|
|
29
28
|
//# sourceMappingURL=fresh-read.mjs.map
|
package/dist/host/http.cjs
CHANGED
|
@@ -10,7 +10,7 @@ const require_reporting_tracking = require("../reporting/tracking.cjs");
|
|
|
10
10
|
const require_host_auth = require("./auth.cjs");
|
|
11
11
|
let zod_mini = require("zod/mini");
|
|
12
12
|
zod_mini = require_runtime.__toESM(zod_mini, 1);
|
|
13
|
-
|
|
13
|
+
// src/host/http.ts
|
|
14
14
|
const json = (body, status = 200) => new Response(JSON.stringify(body), {
|
|
15
15
|
status,
|
|
16
16
|
headers: { "content-type": "application/json" }
|
|
@@ -332,7 +332,6 @@ function handleRequest(request, env, store, validation = {}) {
|
|
|
332
332
|
validation
|
|
333
333
|
});
|
|
334
334
|
}
|
|
335
|
-
//#endregion
|
|
336
335
|
exports.handleRequest = handleRequest;
|
|
337
336
|
exports.serve = serve;
|
|
338
337
|
|
package/dist/host/http.d.cts
CHANGED
|
@@ -6,7 +6,6 @@ import { Authorize } from "./auth.cjs";
|
|
|
6
6
|
import { JourneyEnv } from "./platform.cjs";
|
|
7
7
|
import { SweepResult } from "./ingest.cjs";
|
|
8
8
|
import { TrackingOptions } from "../reporting/tracking.cjs";
|
|
9
|
-
//#region src/host/http.d.ts
|
|
10
9
|
/**
|
|
11
10
|
* The HTTP surface, as one route table: the bare ingest API (`handleRequest`) and the routes
|
|
12
11
|
* the full host adds (`serve` with its parts — the bundle, previews, tracking, the sweep). A
|
|
@@ -54,5 +53,4 @@ export interface ServeContext {
|
|
|
54
53
|
export declare function serve(request: Request, ctx: ServeContext): Promise<Response>;
|
|
55
54
|
/** The bare ingest API over one store: `/health`, `/events`, `/identify`, `/devices*`, `/messages/opened`, `/users/forget`, `/deploy`. */
|
|
56
55
|
export declare function handleRequest(request: Request, env: JourneyEnv, store: JourneyStore, validation?: IngestValidation): Promise<Response>;
|
|
57
|
-
//#endregion
|
|
58
56
|
//# sourceMappingURL=http.d.cts.map
|
package/dist/host/http.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.cts","names":[],"sources":["../../src/host/http.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"http.d.cts","names":[],"sources":["../../src/host/http.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;iBAwCiB;EACf,WAAW;EACX;;;iBAIe;;EAEf,gBAAgB;;EAEhB;IAAY,IAAI;IAAsB,QAAQ;;;EAE9C,WAAW;;EAEX,eAAe,QAAQ;;iBAGR;EACf,KAAK;EACL,OAAO;EACP,aAAa;;;;;;EAMb,OAAO;;EAEP,YAAY,UAAU;;;wBA8WF,MAAM,SAAS,SAAS,KAAK,eAAe,QAAQ;;wBA2C1D,cACd,SAAS,SACT,KAAK,YACL,OAAO,cACP,aAAY,mBACX,QAAQ"}
|
package/dist/host/http.d.mts
CHANGED
|
@@ -6,7 +6,6 @@ import { Authorize } from "./auth.mjs";
|
|
|
6
6
|
import { JourneyEnv } from "./platform.mjs";
|
|
7
7
|
import { SweepResult } from "./ingest.mjs";
|
|
8
8
|
import { TrackingOptions } from "../reporting/tracking.mjs";
|
|
9
|
-
//#region src/host/http.d.ts
|
|
10
9
|
/**
|
|
11
10
|
* The HTTP surface, as one route table: the bare ingest API (`handleRequest`) and the routes
|
|
12
11
|
* the full host adds (`serve` with its parts — the bundle, previews, tracking, the sweep). A
|
|
@@ -54,5 +53,4 @@ export interface ServeContext {
|
|
|
54
53
|
export declare function serve(request: Request, ctx: ServeContext): Promise<Response>;
|
|
55
54
|
/** The bare ingest API over one store: `/health`, `/events`, `/identify`, `/devices*`, `/messages/opened`, `/users/forget`, `/deploy`. */
|
|
56
55
|
export declare function handleRequest(request: Request, env: JourneyEnv, store: JourneyStore, validation?: IngestValidation): Promise<Response>;
|
|
57
|
-
//#endregion
|
|
58
56
|
//# sourceMappingURL=http.d.mts.map
|
package/dist/host/http.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.mts","names":[],"sources":["../../src/host/http.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"http.d.mts","names":[],"sources":["../../src/host/http.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;iBAwCiB;EACf,WAAW;EACX;;;iBAIe;;EAEf,gBAAgB;;EAEhB;IAAY,IAAI;IAAsB,QAAQ;;;EAE9C,WAAW;;EAEX,eAAe,QAAQ;;iBAGR;EACf,KAAK;EACL,OAAO;EACP,aAAa;;;;;;EAMb,OAAO;;EAEP,YAAY,UAAU;;;wBA8WF,MAAM,SAAS,SAAS,KAAK,eAAe,QAAQ;;wBA2C1D,cACd,SAAS,SACT,KAAK,YACL,OAAO,cACP,aAAY,mBACX,QAAQ"}
|
package/dist/host/http.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { journeyMode } from "./channels.mjs";
|
|
|
7
7
|
import { handleTracking, recordPushOpen } from "../reporting/tracking.mjs";
|
|
8
8
|
import { authorized } from "./auth.mjs";
|
|
9
9
|
import * as z from "zod/mini";
|
|
10
|
-
|
|
10
|
+
// src/host/http.ts
|
|
11
11
|
const json = (body, status = 200) => new Response(JSON.stringify(body), {
|
|
12
12
|
status,
|
|
13
13
|
headers: { "content-type": "application/json" }
|
|
@@ -329,7 +329,6 @@ function handleRequest(request, env, store, validation = {}) {
|
|
|
329
329
|
validation
|
|
330
330
|
});
|
|
331
331
|
}
|
|
332
|
-
//#endregion
|
|
333
332
|
export { handleRequest, serve };
|
|
334
333
|
|
|
335
334
|
//# sourceMappingURL=http.mjs.map
|
package/dist/host/ingest.cjs
CHANGED
|
@@ -7,7 +7,7 @@ const require_engine_condition = require("../engine/condition.cjs");
|
|
|
7
7
|
const require_store_facts = require("../store/facts.cjs");
|
|
8
8
|
const require_store_index = require("../store/index.cjs");
|
|
9
9
|
const require_host_platform = require("./platform.cjs");
|
|
10
|
-
|
|
10
|
+
// src/host/ingest.ts
|
|
11
11
|
/**
|
|
12
12
|
* Ingest: what the host does with what comes in, HTTP aside (that is `http.ts`). An incoming
|
|
13
13
|
* event does four things: it is stored, it wakes waiting instances, it is matched against event
|
|
@@ -496,7 +496,6 @@ async function deployBundle(env, bundle, store, version) {
|
|
|
496
496
|
applied
|
|
497
497
|
};
|
|
498
498
|
}
|
|
499
|
-
//#endregion
|
|
500
499
|
exports.BundleIntegrityError = BundleIntegrityError;
|
|
501
500
|
exports.SWEEP_PAGE_SIZE = SWEEP_PAGE_SIZE;
|
|
502
501
|
exports.deployBundle = deployBundle;
|
package/dist/host/ingest.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { TriggerIR } from "../ir.cjs";
|
|
2
2
|
import { BundleVersion, JourneyStore, ProfileProps } from "../store/index.cjs";
|
|
3
3
|
import { JourneyEnv } from "./platform.cjs";
|
|
4
|
-
//#region src/host/ingest.d.ts
|
|
5
4
|
export interface IngestInput {
|
|
6
5
|
userId: string;
|
|
7
6
|
event: string;
|
|
@@ -181,5 +180,4 @@ export declare class BundleIntegrityError extends Error {
|
|
|
181
180
|
* compiled into it; without one it is forced, whatever is live.
|
|
182
181
|
*/
|
|
183
182
|
export declare function deployBundle(env: JourneyEnv, bundle: unknown, store: JourneyStore, version?: BundleVersion): Promise<DeployResult>;
|
|
184
|
-
//#endregion
|
|
185
183
|
//# sourceMappingURL=ingest.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ingest.d.cts","names":[],"sources":["../../src/host/ingest.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ingest.d.cts","names":[],"sources":["../../src/host/ingest.ts"],"mappings":";;;iBA6CiB;EACf;EACA;EACA,UAAU;EACV;;;;;;;;;;;;;;;EAeA;;iBAGe;;EAEf;;EAEA;EACA;EACA;;wBAGoB,YACpB,KAAK,YACL,OAAO,aACP,OAAO,eACN,QAAQ;;;;;;wBAwCW,gBACpB,KAAK,YACL,OAAO,cACP,gBACA,4BACC;;;;;;;;;wBA0EmB,uBACpB,KAAK,YACL,OAAO,cACP,gBACA,aACC;iBA0Fc;EACf;;EAEA;;EAEA;IAAS;IAAiB;;;;qBAIf;;;;;;;wBAQS,iBAAiB,KAAK,YAAY,OAAO,eAAe;iBAkB7D;;EAEf;;EAEA;;EAEA;;EAEA;;;;;;;;wBASoB,mBACpB,KAAK,YACL,OAAO,cACP;EAAQ;EAA4B;EAA4B;IAC/D,QAAQ;;;;;;;;;wBAsCW,cACpB,KAAK,YACL,OAAO,cACP,eACC,QAAQ;iBAgFM;EACf;EACA,OAAO;EACP;EACA;;;;;;;wBAQoB,aACpB,KAAK,YACL,gBACA,OAAO,cACP,OAAO,eACN,QAAQ;iBAiBM;EACf;EACA;EACA;EACA;;;;;;;wBAQoB,eACpB,KAAK,YACL,QAAQ,oBACR,OAAO,eACN;EAAU;EAAU;;;;;;;;;;;wBA2FD,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;;;;;;;;EAQA;IAAY;IAAkB,SAAS;;;;;;EAKvC;;;qBAIW,6BAA6B;EACxC,YAAY;;;;;;;;wBA8CQ,aACpB,KAAK,YACL,iBACA,OAAO,cACP,UAAU,gBACT,QAAQ"}
|