@shware/workflow 4.1.1 → 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/README.md +16 -38
- 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 +3 -5
- package/dist/aws/index.cjs.map +1 -1
- package/dist/aws/index.d.cts +1 -3
- package/dist/aws/index.d.cts.map +1 -1
- package/dist/aws/index.d.mts +1 -3
- package/dist/aws/index.d.mts.map +1 -1
- package/dist/aws/index.mjs +3 -5
- package/dist/aws/index.mjs.map +1 -1
- package/dist/aws/instances.cjs +2 -3
- package/dist/aws/instances.cjs.map +1 -1
- package/dist/aws/instances.d.cts +1 -3
- package/dist/aws/instances.d.cts.map +1 -1
- package/dist/aws/instances.d.mts +1 -3
- package/dist/aws/instances.d.mts.map +1 -1
- package/dist/aws/instances.mjs +2 -3
- package/dist/aws/instances.mjs.map +1 -1
- 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.cjs.map +1 -1
- package/dist/cloudflare/bindings.d.cts +0 -21
- package/dist/cloudflare/bindings.d.cts.map +1 -1
- package/dist/cloudflare/bindings.d.mts +0 -21
- package/dist/cloudflare/bindings.d.mts.map +1 -1
- package/dist/cloudflare/bindings.mjs +1 -2
- package/dist/cloudflare/bindings.mjs.map +1 -1
- package/dist/cloudflare/index.cjs +0 -5
- package/dist/cloudflare/index.d.cts +4 -6
- package/dist/cloudflare/index.d.mts +4 -6
- package/dist/cloudflare/index.mjs +2 -4
- package/dist/cloudflare/runner.cjs +4 -6
- package/dist/cloudflare/runner.cjs.map +1 -1
- package/dist/cloudflare/runner.d.cts +3 -5
- package/dist/cloudflare/runner.d.cts.map +1 -1
- package/dist/cloudflare/runner.d.mts +3 -5
- package/dist/cloudflare/runner.d.mts.map +1 -1
- package/dist/cloudflare/runner.mjs +4 -6
- package/dist/cloudflare/runner.mjs.map +1 -1
- 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.cjs.map +1 -1
- package/dist/config.d.cts +1 -3
- package/dist/config.d.cts.map +1 -1
- package/dist/config.d.mts +1 -3
- package/dist/config.d.mts.map +1 -1
- package/dist/config.mjs +1 -2
- package/dist/config.mjs.map +1 -1
- 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 +3 -4
- package/dist/engine/condition.cjs.map +1 -1
- package/dist/engine/condition.d.cts +1 -3
- package/dist/engine/condition.d.cts.map +1 -1
- package/dist/engine/condition.d.mts +1 -3
- package/dist/engine/condition.d.mts.map +1 -1
- package/dist/engine/condition.mjs +3 -4
- 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/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 +1 -3
- package/dist/engine/ports.d.cts.map +1 -1
- package/dist/engine/ports.d.mts +1 -3
- 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 +1 -3
- package/dist/host/channels.d.cts.map +1 -1
- package/dist/host/channels.d.mts +1 -3
- 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 +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 +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 +4 -6
- 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 +4 -6
- package/dist/host/http.mjs.map +1 -1
- package/dist/host/ingest.cjs +12 -24
- package/dist/host/ingest.cjs.map +1 -1
- package/dist/host/ingest.d.cts +8 -15
- package/dist/host/ingest.d.cts.map +1 -1
- package/dist/host/ingest.d.mts +8 -15
- package/dist/host/ingest.d.mts.map +1 -1
- package/dist/host/ingest.mjs +13 -24
- package/dist/host/ingest.mjs.map +1 -1
- package/dist/host/journey-host.cjs +3 -6
- package/dist/host/journey-host.cjs.map +1 -1
- package/dist/host/journey-host.d.cts +6 -8
- package/dist/host/journey-host.d.cts.map +1 -1
- package/dist/host/journey-host.d.mts +6 -8
- package/dist/host/journey-host.d.mts.map +1 -1
- package/dist/host/journey-host.mjs +3 -6
- package/dist/host/journey-host.mjs.map +1 -1
- package/dist/host/platform.cjs +1 -2
- package/dist/host/platform.cjs.map +1 -1
- package/dist/host/platform.d.cts +1 -9
- package/dist/host/platform.d.cts.map +1 -1
- package/dist/host/platform.d.mts +1 -9
- package/dist/host/platform.d.mts.map +1 -1
- package/dist/host/platform.mjs +1 -2
- package/dist/host/platform.mjs.map +1 -1
- 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 +2 -3
- package/dist/store/facts.cjs.map +1 -1
- 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 +2 -3
- package/dist/store/facts.mjs.map +1 -1
- package/dist/store/index.cjs +1 -4
- package/dist/store/index.cjs.map +1 -1
- package/dist/store/index.d.cts +21 -28
- package/dist/store/index.d.cts.map +1 -1
- package/dist/store/index.d.mts +21 -28
- package/dist/store/index.d.mts.map +1 -1
- package/dist/store/index.mjs +2 -4
- package/dist/store/index.mjs.map +1 -1
- 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 +3 -5
- package/dist/store/postgres.cjs.map +1 -1
- package/dist/store/postgres.d.cts +2 -5
- package/dist/store/postgres.d.cts.map +1 -1
- package/dist/store/postgres.d.mts +2 -5
- package/dist/store/postgres.d.mts.map +1 -1
- package/dist/store/postgres.mjs +3 -5
- 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 +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 +1 -3
- package/dist/transports/cloudflare-email.d.cts.map +1 -1
- package/dist/transports/cloudflare-email.d.mts +1 -3
- 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 -7
- package/dist/cloudflare/d1-env.cjs +0 -17
- package/dist/cloudflare/d1-env.cjs.map +0 -1
- package/dist/cloudflare/d1-env.d.cts +0 -12
- package/dist/cloudflare/d1-env.d.cts.map +0 -1
- package/dist/cloudflare/d1-env.d.mts +0 -12
- package/dist/cloudflare/d1-env.d.mts.map +0 -1
- package/dist/cloudflare/d1-env.mjs +0 -16
- package/dist/cloudflare/d1-env.mjs.map +0 -1
- package/dist/cloudflare/schema.sql +0 -148
- package/dist/store/d1.cjs +0 -245
- package/dist/store/d1.cjs.map +0 -1
- package/dist/store/d1.d.cts +0 -73
- package/dist/store/d1.d.cts.map +0 -1
- package/dist/store/d1.d.mts +0 -73
- package/dist/store/d1.d.mts.map +0 -1
- package/dist/store/d1.mjs +0 -244
- package/dist/store/d1.mjs.map +0 -1
- package/src/cloudflare/schema.sql +0 -148
package/dist/plan.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { fullHash, stripMeta, stripProvenance } from "./hash.mjs";
|
|
2
|
-
|
|
2
|
+
// src/plan.ts
|
|
3
3
|
/** Whether a status warrants human attention (metadata-only edits do not). */
|
|
4
4
|
function isSemanticChange(status) {
|
|
5
5
|
return status === "added" || status === "removed" || status === "changed";
|
|
@@ -209,7 +209,6 @@ function plan(local, deployed) {
|
|
|
209
209
|
].some((change) => isSemanticChange(change.status))
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
|
-
//#endregion
|
|
213
212
|
export { isSemanticChange, plan };
|
|
214
213
|
|
|
215
214
|
//# sourceMappingURL=plan.mjs.map
|
package/dist/postgres-js.cjs
CHANGED
|
@@ -3,7 +3,7 @@ const require_runtime = require("./_virtual/_rolldown/runtime.cjs");
|
|
|
3
3
|
const require_store_postgres = require("./store/postgres.cjs");
|
|
4
4
|
let postgres = require("postgres");
|
|
5
5
|
postgres = require_runtime.__toESM(postgres, 1);
|
|
6
|
-
|
|
6
|
+
// src/postgres-js.ts
|
|
7
7
|
/**
|
|
8
8
|
* `@shware/workflow/postgres-js` — the Postgres store over postgres.js
|
|
9
9
|
* (`postgres` is an optional peer dependency; import this subpath only when
|
|
@@ -35,7 +35,6 @@ function postgresJsStore(connectionString, options = {}) {
|
|
|
35
35
|
close: () => sql.end({ timeout: 5 })
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
//#endregion
|
|
39
38
|
exports.postgresJsClient = postgresJsClient;
|
|
40
39
|
exports.postgresJsStore = postgresJsStore;
|
|
41
40
|
|
package/dist/postgres-js.d.cts
CHANGED
|
@@ -2,7 +2,6 @@ import { SqlClientLike } from "./store/sql.cjs";
|
|
|
2
2
|
import { PostgresJourneyStoreOptions } from "./store/postgres.cjs";
|
|
3
3
|
import { StoreLease } from "./store/index.cjs";
|
|
4
4
|
import postgres from "postgres";
|
|
5
|
-
//#region src/postgres-js.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* `@shware/workflow/postgres-js` — the Postgres store over postgres.js
|
|
8
7
|
* (`postgres` is an optional peer dependency; import this subpath only when
|
|
@@ -24,5 +23,4 @@ export interface PostgresJsStoreOptions extends PostgresJourneyStoreOptions {
|
|
|
24
23
|
* and Hyperdrive keeps the real pool next to the database.
|
|
25
24
|
*/
|
|
26
25
|
export declare function postgresJsStore(connectionString: string, options?: PostgresJsStoreOptions): Required<StoreLease>;
|
|
27
|
-
//#endregion
|
|
28
26
|
//# sourceMappingURL=postgres-js.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postgres-js.d.cts","names":[],"sources":["../src/postgres-js.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"postgres-js.d.cts","names":[],"sources":["../src/postgres-js.ts"],"mappings":";;;;;;;;;;wBAegB,iBACd,KAAK,SAAS,MAAM,SAAS,gBAC7B,0BACC;iBAWc,+BAA+B;;;;;;EAM9C,aAAa,SAAS,QAAQ;;;;;;;wBAQhB,gBACd,0BACA,UAAS,yBACR,SAAS"}
|
package/dist/postgres-js.d.mts
CHANGED
|
@@ -2,7 +2,6 @@ import { SqlClientLike } from "./store/sql.mjs";
|
|
|
2
2
|
import { PostgresJourneyStoreOptions } from "./store/postgres.mjs";
|
|
3
3
|
import { StoreLease } from "./store/index.mjs";
|
|
4
4
|
import postgres from "postgres";
|
|
5
|
-
//#region src/postgres-js.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* `@shware/workflow/postgres-js` — the Postgres store over postgres.js
|
|
8
7
|
* (`postgres` is an optional peer dependency; import this subpath only when
|
|
@@ -24,5 +23,4 @@ export interface PostgresJsStoreOptions extends PostgresJourneyStoreOptions {
|
|
|
24
23
|
* and Hyperdrive keeps the real pool next to the database.
|
|
25
24
|
*/
|
|
26
25
|
export declare function postgresJsStore(connectionString: string, options?: PostgresJsStoreOptions): Required<StoreLease>;
|
|
27
|
-
//#endregion
|
|
28
26
|
//# sourceMappingURL=postgres-js.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postgres-js.d.mts","names":[],"sources":["../src/postgres-js.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"postgres-js.d.mts","names":[],"sources":["../src/postgres-js.ts"],"mappings":";;;;;;;;;;wBAegB,iBACd,KAAK,SAAS,MAAM,SAAS,gBAC7B,0BACC;iBAWc,+BAA+B;;;;;;EAM9C,aAAa,SAAS,QAAQ;;;;;;;wBAQhB,gBACd,0BACA,UAAS,yBACR,SAAS"}
|
package/dist/postgres-js.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PostgresJourneyStore } from "./store/postgres.mjs";
|
|
2
2
|
import postgres from "postgres";
|
|
3
|
-
|
|
3
|
+
// src/postgres-js.ts
|
|
4
4
|
/**
|
|
5
5
|
* `@shware/workflow/postgres-js` — the Postgres store over postgres.js
|
|
6
6
|
* (`postgres` is an optional peer dependency; import this subpath only when
|
|
@@ -32,7 +32,6 @@ function postgresJsStore(connectionString, options = {}) {
|
|
|
32
32
|
close: () => sql.end({ timeout: 5 })
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
//#endregion
|
|
36
35
|
export { postgresJsClient, postgresJsStore };
|
|
37
36
|
|
|
38
37
|
//# sourceMappingURL=postgres-js.mjs.map
|
package/dist/provenance.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/provenance.ts
|
|
3
3
|
/**
|
|
4
4
|
* V8-style frame: `at fn (file:line:col)` / `at file:line:col`, where file may
|
|
5
5
|
* be an absolute path, a file:// URL (Node ESM) or an http(s) URL (Vite dev).
|
|
@@ -60,7 +60,6 @@ function toPosix(path) {
|
|
|
60
60
|
const slashed = path.replaceAll("\\", "/");
|
|
61
61
|
return /^[a-z]:/.test(slashed) ? slashed[0].toUpperCase() + slashed.slice(1) : slashed;
|
|
62
62
|
}
|
|
63
|
-
//#endregion
|
|
64
63
|
exports.captureLoc = captureLoc;
|
|
65
64
|
exports.normalizeFile = normalizeFile;
|
|
66
65
|
|
package/dist/provenance.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SourceLocIR } from "./ir.cjs";
|
|
2
|
-
//#region src/provenance.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Provenance — where in source code a definition came from.
|
|
5
4
|
*
|
|
@@ -37,6 +36,5 @@ export declare function captureLoc(boundary: AnyFunction): SourceLocIR | undefin
|
|
|
37
36
|
* line, and the platform it gets wrong is not the one the suite runs on.
|
|
38
37
|
*/
|
|
39
38
|
export declare function normalizeFile(rawFile: string, cwd: string | undefined): string;
|
|
40
|
-
//#endregion
|
|
41
39
|
export {};
|
|
42
40
|
//# sourceMappingURL=provenance.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provenance.d.cts","names":[],"sources":["../src/provenance.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"provenance.d.cts","names":[],"sources":["../src/provenance.ts"],"mappings":";;;;;;;;;;;;;;;;;KAmBK,kBAAkB;;;;;wBAYP,WAAW,UAAU,cAAc;;;;;;;;;;;;;;;wBAyCnC,cAAc,iBAAiB"}
|
package/dist/provenance.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SourceLocIR } from "./ir.mjs";
|
|
2
|
-
//#region src/provenance.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Provenance — where in source code a definition came from.
|
|
5
4
|
*
|
|
@@ -37,6 +36,5 @@ export declare function captureLoc(boundary: AnyFunction): SourceLocIR | undefin
|
|
|
37
36
|
* line, and the platform it gets wrong is not the one the suite runs on.
|
|
38
37
|
*/
|
|
39
38
|
export declare function normalizeFile(rawFile: string, cwd: string | undefined): string;
|
|
40
|
-
//#endregion
|
|
41
39
|
export {};
|
|
42
40
|
//# sourceMappingURL=provenance.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provenance.d.mts","names":[],"sources":["../src/provenance.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"provenance.d.mts","names":[],"sources":["../src/provenance.ts"],"mappings":";;;;;;;;;;;;;;;;;KAmBK,kBAAkB;;;;;wBAYP,WAAW,UAAU,cAAc;;;;;;;;;;;;;;;wBAyCnC,cAAc,iBAAiB"}
|
package/dist/provenance.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/provenance.ts
|
|
2
2
|
/**
|
|
3
3
|
* V8-style frame: `at fn (file:line:col)` / `at file:line:col`, where file may
|
|
4
4
|
* be an absolute path, a file:// URL (Node ESM) or an http(s) URL (Vite dev).
|
|
@@ -59,7 +59,6 @@ function toPosix(path) {
|
|
|
59
59
|
const slashed = path.replaceAll("\\", "/");
|
|
60
60
|
return /^[a-z]:/.test(slashed) ? slashed[0].toUpperCase() + slashed.slice(1) : slashed;
|
|
61
61
|
}
|
|
62
|
-
//#endregion
|
|
63
62
|
export { captureLoc, normalizeFile };
|
|
64
63
|
|
|
65
64
|
//# sourceMappingURL=provenance.mjs.map
|
package/dist/push.cjs
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_templates = require("./templates.cjs");
|
|
3
|
-
|
|
3
|
+
// src/push.ts
|
|
4
4
|
/** A renderer over the registry, by template id; a TemplateValidationError means nothing may be sent. */
|
|
5
5
|
function registryPushRenderer(pushes) {
|
|
6
6
|
const index = require_templates.indexTemplates("push", pushes);
|
|
7
7
|
return async (id, props) => require_templates.renderPushContent(require_templates.lookupTemplate(index, "push", id), props);
|
|
8
8
|
}
|
|
9
|
-
//#endregion
|
|
10
9
|
exports.registryPushRenderer = registryPushRenderer;
|
|
11
10
|
|
|
12
11
|
//# sourceMappingURL=push.cjs.map
|
package/dist/push.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ScalarIR } from "./ir.cjs";
|
|
2
2
|
import { PushContent, PushTemplate } from "./templates.cjs";
|
|
3
|
-
//#region src/push.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* `@shware/workflow/push` — push-notification content. A push is data, not a
|
|
6
5
|
* component: a title and a body the OS renders in its own chrome, built by a
|
|
@@ -12,5 +11,4 @@ export type RenderedPush = PushContent;
|
|
|
12
11
|
export type PushRenderer = (template: string, props: Record<string, ScalarIR | undefined>) => Promise<RenderedPush>;
|
|
13
12
|
/** A renderer over the registry, by template id; a TemplateValidationError means nothing may be sent. */
|
|
14
13
|
export declare function registryPushRenderer(pushes: Readonly<Record<string, PushTemplate>>): PushRenderer;
|
|
15
|
-
//#endregion
|
|
16
14
|
//# sourceMappingURL=push.d.cts.map
|
package/dist/push.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"push.d.cts","names":[],"sources":["../src/push.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"push.d.cts","names":[],"sources":["../src/push.ts"],"mappings":";;;;;;;;;YAiBY,eAAe;YAEf,gBACV,kBACA,OAAO,eAAe,0BACnB,QAAQ;;wBAGG,qBAAqB,QAAQ,SAAS,eAAe,iBAAiB"}
|
package/dist/push.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ScalarIR } from "./ir.mjs";
|
|
2
2
|
import { PushContent, PushTemplate } from "./templates.mjs";
|
|
3
|
-
//#region src/push.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* `@shware/workflow/push` — push-notification content. A push is data, not a
|
|
6
5
|
* component: a title and a body the OS renders in its own chrome, built by a
|
|
@@ -12,5 +11,4 @@ export type RenderedPush = PushContent;
|
|
|
12
11
|
export type PushRenderer = (template: string, props: Record<string, ScalarIR | undefined>) => Promise<RenderedPush>;
|
|
13
12
|
/** A renderer over the registry, by template id; a TemplateValidationError means nothing may be sent. */
|
|
14
13
|
export declare function registryPushRenderer(pushes: Readonly<Record<string, PushTemplate>>): PushRenderer;
|
|
15
|
-
//#endregion
|
|
16
14
|
//# sourceMappingURL=push.d.mts.map
|
package/dist/push.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"push.d.mts","names":[],"sources":["../src/push.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"push.d.mts","names":[],"sources":["../src/push.ts"],"mappings":";;;;;;;;;YAiBY,eAAe;YAEf,gBACV,kBACA,OAAO,eAAe,0BACnB,QAAQ;;wBAGG,qBAAqB,QAAQ,SAAS,eAAe,iBAAiB"}
|
package/dist/push.mjs
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { indexTemplates, lookupTemplate, renderPushContent } from "./templates.mjs";
|
|
2
|
-
|
|
2
|
+
// src/push.ts
|
|
3
3
|
/** A renderer over the registry, by template id; a TemplateValidationError means nothing may be sent. */
|
|
4
4
|
function registryPushRenderer(pushes) {
|
|
5
5
|
const index = indexTemplates("push", pushes);
|
|
6
6
|
return async (id, props) => renderPushContent(lookupTemplate(index, "push", id), props);
|
|
7
7
|
}
|
|
8
|
-
//#endregion
|
|
9
8
|
export { registryPushRenderer };
|
|
10
9
|
|
|
11
10
|
//# sourceMappingURL=push.mjs.map
|
package/dist/react-email.cjs
CHANGED
|
@@ -4,7 +4,7 @@ const require_templates = require("./templates.cjs");
|
|
|
4
4
|
const require_email_context = require("./email-context.cjs");
|
|
5
5
|
let react = require("react");
|
|
6
6
|
let react_dom_server = require("react-dom/server");
|
|
7
|
-
|
|
7
|
+
// src/react-email.ts
|
|
8
8
|
/**
|
|
9
9
|
* `@shware/workflow/react-email` — an EmailRenderer over the project's email
|
|
10
10
|
* registry (`react-dom` is an optional peer dependency; import this subpath
|
|
@@ -50,7 +50,6 @@ async function renderToHtml(element) {
|
|
|
50
50
|
if (failure !== void 0) throw failure instanceof Error ? failure : new Error("email render failed", { cause: failure });
|
|
51
51
|
return html.replace(/^<!DOCTYPE html>/i, "").replace(/<link rel="preload" as="image"[^>]*\/>/g, "");
|
|
52
52
|
}
|
|
53
|
-
//#endregion
|
|
54
53
|
exports.registryRenderer = registryRenderer;
|
|
55
54
|
|
|
56
55
|
//# sourceMappingURL=react-email.cjs.map
|
package/dist/react-email.d.cts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { EmailConfig } from "./email.cjs";
|
|
2
2
|
import { EmailTemplate } from "./templates.cjs";
|
|
3
3
|
import { EmailRenderer } from "./email-sender.cjs";
|
|
4
|
-
//#region src/react-email.d.ts
|
|
5
4
|
export declare function registryRenderer(emails: Readonly<Record<string, EmailTemplate>>, config?: EmailConfig): EmailRenderer;
|
|
6
|
-
//#endregion
|
|
7
5
|
//# sourceMappingURL=react-email.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-email.d.cts","names":[],"sources":["../src/react-email.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"react-email.d.cts","names":[],"sources":["../src/react-email.ts"],"mappings":";;;wBAmCgB,iBACd,QAAQ,SAAS,eAAe,iBAChC,SAAS,cACR"}
|
package/dist/react-email.d.mts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { EmailConfig } from "./email.mjs";
|
|
2
2
|
import { EmailTemplate } from "./templates.mjs";
|
|
3
3
|
import { EmailRenderer } from "./email-sender.mjs";
|
|
4
|
-
//#region src/react-email.d.ts
|
|
5
4
|
export declare function registryRenderer(emails: Readonly<Record<string, EmailTemplate>>, config?: EmailConfig): EmailRenderer;
|
|
6
|
-
//#endregion
|
|
7
5
|
//# sourceMappingURL=react-email.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-email.d.mts","names":[],"sources":["../src/react-email.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"react-email.d.mts","names":[],"sources":["../src/react-email.ts"],"mappings":";;;wBAmCgB,iBACd,QAAQ,SAAS,eAAe,iBAChC,SAAS,cACR"}
|
package/dist/react-email.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { indexTemplates, lookupTemplate, parseTemplateProps } from "./templates.
|
|
|
3
3
|
import { EmailProvider } from "./email-context.mjs";
|
|
4
4
|
import { createElement } from "react";
|
|
5
5
|
import { renderToReadableStream } from "react-dom/server";
|
|
6
|
-
|
|
6
|
+
// src/react-email.ts
|
|
7
7
|
/**
|
|
8
8
|
* `@shware/workflow/react-email` — an EmailRenderer over the project's email
|
|
9
9
|
* registry (`react-dom` is an optional peer dependency; import this subpath
|
|
@@ -49,7 +49,6 @@ async function renderToHtml(element) {
|
|
|
49
49
|
if (failure !== void 0) throw failure instanceof Error ? failure : new Error("email render failed", { cause: failure });
|
|
50
50
|
return html.replace(/^<!DOCTYPE html>/i, "").replace(/<link rel="preload" as="image"[^>]*\/>/g, "");
|
|
51
51
|
}
|
|
52
|
-
//#endregion
|
|
53
52
|
export { registryRenderer };
|
|
54
53
|
|
|
55
54
|
//# sourceMappingURL=react-email.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/reporting/classify.ts
|
|
3
3
|
/** How close together clicks on different links of one message must be to count as one walk. */
|
|
4
4
|
const BURST_WINDOW_MS = 5e3;
|
|
5
5
|
const DEFAULT_QUICK_MS = 1e3;
|
|
@@ -33,7 +33,6 @@ function classifyClick(facts, options = {}) {
|
|
|
33
33
|
if (quick && pair) return machine("quick+link_pair");
|
|
34
34
|
return human;
|
|
35
35
|
}
|
|
36
|
-
//#endregion
|
|
37
36
|
exports.BURST_WINDOW_MS = BURST_WINDOW_MS;
|
|
38
37
|
exports.DEFAULT_QUICK_MS = DEFAULT_QUICK_MS;
|
|
39
38
|
exports.classifyClick = classifyClick;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/reporting/classify.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Who opened or clicked: a person, or a machine acting on the message without one — the split
|
|
4
3
|
* between human and machine engagement that open and click rates are read through. No single
|
|
@@ -56,5 +55,4 @@ export declare const BURST_WINDOW_MS = 5000;
|
|
|
56
55
|
export declare const DEFAULT_QUICK_MS = 1000;
|
|
57
56
|
export declare function classifyOpen(facts: RequestFacts, options?: ClassifyOptions): Verdict;
|
|
58
57
|
export declare function classifyClick(facts: ClickFacts, options?: ClassifyOptions): Verdict;
|
|
59
|
-
//#endregion
|
|
60
58
|
//# sourceMappingURL=classify.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classify.d.cts","names":[],"sources":["../../src/reporting/classify.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"classify.d.cts","names":[],"sources":["../../src/reporting/classify.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA+BiB;EACf;EACA;;iBAGe;EACf;EACA;;EAEA;;EAEA;;iBAGe;;EAEf;;iBAGe,mBAAmB;;EAElC;;EAEA;;;qBAIW;qBACA;wBAcG,aAAa,OAAO,cAAc,UAAS,kBAAuB;wBAYlE,cAAc,OAAO,YAAY,UAAS,kBAAuB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/reporting/classify.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Who opened or clicked: a person, or a machine acting on the message without one — the split
|
|
4
3
|
* between human and machine engagement that open and click rates are read through. No single
|
|
@@ -56,5 +55,4 @@ export declare const BURST_WINDOW_MS = 5000;
|
|
|
56
55
|
export declare const DEFAULT_QUICK_MS = 1000;
|
|
57
56
|
export declare function classifyOpen(facts: RequestFacts, options?: ClassifyOptions): Verdict;
|
|
58
57
|
export declare function classifyClick(facts: ClickFacts, options?: ClassifyOptions): Verdict;
|
|
59
|
-
//#endregion
|
|
60
58
|
//# sourceMappingURL=classify.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classify.d.mts","names":[],"sources":["../../src/reporting/classify.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"classify.d.mts","names":[],"sources":["../../src/reporting/classify.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA+BiB;EACf;EACA;;iBAGe;EACf;EACA;;EAEA;;EAEA;;iBAGe;;EAEf;;iBAGe,mBAAmB;;EAElC;;EAEA;;;qBAIW;qBACA;wBAcG,aAAa,OAAO,cAAc,UAAS,kBAAuB;wBAYlE,cAAc,OAAO,YAAY,UAAS,kBAAuB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/reporting/classify.ts
|
|
2
2
|
/** How close together clicks on different links of one message must be to count as one walk. */
|
|
3
3
|
const BURST_WINDOW_MS = 5e3;
|
|
4
4
|
const DEFAULT_QUICK_MS = 1e3;
|
|
@@ -32,7 +32,6 @@ function classifyClick(facts, options = {}) {
|
|
|
32
32
|
if (quick && pair) return machine("quick+link_pair");
|
|
33
33
|
return human;
|
|
34
34
|
}
|
|
35
|
-
//#endregion
|
|
36
35
|
export { BURST_WINDOW_MS, DEFAULT_QUICK_MS, classifyClick, classifyOpen };
|
|
37
36
|
|
|
38
37
|
//# sourceMappingURL=classify.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/reporting/observer.ts
|
|
3
3
|
/**
|
|
4
4
|
* The observer journeyWorker installs when the store keeps reporting: every node arrival, copy
|
|
5
5
|
* and outcome recorded through `store.reporting`.
|
|
@@ -59,7 +59,6 @@ function channelOf(message) {
|
|
|
59
59
|
if (message.channel !== "push") return message.channel;
|
|
60
60
|
return `push_${message.device?.platform ?? "unknown"}`;
|
|
61
61
|
}
|
|
62
|
-
//#endregion
|
|
63
62
|
exports.reportingObserver = reportingObserver;
|
|
64
63
|
|
|
65
64
|
//# sourceMappingURL=observer.cjs.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { JourneyObserver } from "../engine/ports.cjs";
|
|
2
2
|
import "../engine/index.cjs";
|
|
3
3
|
import { JourneyReporting } from "../store/index.cjs";
|
|
4
|
-
//#region src/reporting/observer.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* The observer journeyWorker installs when the store keeps reporting: every node arrival, copy
|
|
7
6
|
* and outcome recorded through `store.reporting`.
|
|
@@ -15,5 +14,4 @@ import { JourneyReporting } from "../store/index.cjs";
|
|
|
15
14
|
* The links are recorded when the sender commits the rewritten email, before it goes out.
|
|
16
15
|
*/
|
|
17
16
|
export declare function reportingObserver(reporting: JourneyReporting, origin: string | undefined): JourneyObserver;
|
|
18
|
-
//#endregion
|
|
19
17
|
//# sourceMappingURL=observer.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observer.d.cts","names":[],"sources":["../../src/reporting/observer.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"observer.d.cts","names":[],"sources":["../../src/reporting/observer.ts"],"mappings":";;;;;;;;;;;;;;;wBAegB,kBACd,WAAW,kBACX,6BACC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { JourneyObserver } from "../engine/ports.mjs";
|
|
2
2
|
import "../engine/index.mjs";
|
|
3
3
|
import { JourneyReporting } from "../store/index.mjs";
|
|
4
|
-
//#region src/reporting/observer.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* The observer journeyWorker installs when the store keeps reporting: every node arrival, copy
|
|
7
6
|
* and outcome recorded through `store.reporting`.
|
|
@@ -15,5 +14,4 @@ import { JourneyReporting } from "../store/index.mjs";
|
|
|
15
14
|
* The links are recorded when the sender commits the rewritten email, before it goes out.
|
|
16
15
|
*/
|
|
17
16
|
export declare function reportingObserver(reporting: JourneyReporting, origin: string | undefined): JourneyObserver;
|
|
18
|
-
//#endregion
|
|
19
17
|
//# sourceMappingURL=observer.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observer.d.mts","names":[],"sources":["../../src/reporting/observer.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"observer.d.mts","names":[],"sources":["../../src/reporting/observer.ts"],"mappings":";;;;;;;;;;;;;;;wBAegB,kBACd,WAAW,kBACX,6BACC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/reporting/observer.ts
|
|
2
2
|
/**
|
|
3
3
|
* The observer journeyWorker installs when the store keeps reporting: every node arrival, copy
|
|
4
4
|
* and outcome recorded through `store.reporting`.
|
|
@@ -58,7 +58,6 @@ function channelOf(message) {
|
|
|
58
58
|
if (message.channel !== "push") return message.channel;
|
|
59
59
|
return `push_${message.device?.platform ?? "unknown"}`;
|
|
60
60
|
}
|
|
61
|
-
//#endregion
|
|
62
61
|
export { reportingObserver };
|
|
63
62
|
|
|
64
63
|
//# sourceMappingURL=observer.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_reporting_classify = require("./classify.cjs");
|
|
3
|
-
|
|
3
|
+
// src/reporting/tracking.ts
|
|
4
4
|
const GIF = Uint8Array.from(atob("R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"), (char) => char.charCodeAt(0));
|
|
5
5
|
const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
6
6
|
function requester(request) {
|
|
@@ -156,7 +156,6 @@ function page(options, message, status = 200, extra = "") {
|
|
|
156
156
|
headers: { "content-type": "text/html; charset=utf-8" }
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
|
-
//#endregion
|
|
160
159
|
exports.handleTracking = handleTracking;
|
|
161
160
|
exports.recordPushOpen = recordPushOpen;
|
|
162
161
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { JourneyReporting } from "../store/index.cjs";
|
|
2
|
-
//#region src/reporting/tracking.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* The endpoints a journey email's tracking points at (see ./observer.ts), served by journeyWorker
|
|
5
4
|
* without a bearer — recipients open them:
|
|
@@ -52,5 +51,4 @@ export declare function handleTracking(request: Request, reporting: JourneyRepor
|
|
|
52
51
|
* notification. False when the message is unknown or not the user's.
|
|
53
52
|
*/
|
|
54
53
|
export declare function recordPushOpen(reporting: JourneyReporting, userId: string, messageId: string, at?: number): Promise<boolean>;
|
|
55
|
-
//#endregion
|
|
56
54
|
//# sourceMappingURL=tracking.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracking.d.cts","names":[],"sources":["../../src/reporting/tracking.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tracking.d.cts","names":[],"sources":["../../src/reporting/tracking.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBA0BiB;;EAEf;;EAEA;;EAEA,eACM;IAAQ;IAAmB;IAAgB;QAAiB;;;;;;EAOlE,mBACM;IAAe;IAAmB;IAAgB;QAAiB;;;wBAgCrD,eACpB,SAAS,SACT,WAAW,kBACX,UAAS,kBACR,QAAQ;;;;;;wBAoFW,eACpB,WAAW,kBACX,gBACA,mBACA,cACC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { JourneyReporting } from "../store/index.mjs";
|
|
2
|
-
//#region src/reporting/tracking.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* The endpoints a journey email's tracking points at (see ./observer.ts), served by journeyWorker
|
|
5
4
|
* without a bearer — recipients open them:
|
|
@@ -52,5 +51,4 @@ export declare function handleTracking(request: Request, reporting: JourneyRepor
|
|
|
52
51
|
* notification. False when the message is unknown or not the user's.
|
|
53
52
|
*/
|
|
54
53
|
export declare function recordPushOpen(reporting: JourneyReporting, userId: string, messageId: string, at?: number): Promise<boolean>;
|
|
55
|
-
//#endregion
|
|
56
54
|
//# sourceMappingURL=tracking.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracking.d.mts","names":[],"sources":["../../src/reporting/tracking.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tracking.d.mts","names":[],"sources":["../../src/reporting/tracking.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBA0BiB;;EAEf;;EAEA;;EAEA,eACM;IAAQ;IAAmB;IAAgB;QAAiB;;;;;;EAOlE,mBACM;IAAe;IAAmB;IAAgB;QAAiB;;;wBAgCrD,eACpB,SAAS,SACT,WAAW,kBACX,UAAS,kBACR,QAAQ;;;;;;wBAoFW,eACpB,WAAW,kBACX,gBACA,mBACA,cACC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BURST_WINDOW_MS, classifyClick, classifyOpen } from "./classify.mjs";
|
|
2
|
-
|
|
2
|
+
// src/reporting/tracking.ts
|
|
3
3
|
const GIF = Uint8Array.from(atob("R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"), (char) => char.charCodeAt(0));
|
|
4
4
|
const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
5
5
|
function requester(request) {
|
|
@@ -155,7 +155,6 @@ function page(options, message, status = 200, extra = "") {
|
|
|
155
155
|
headers: { "content-type": "text/html; charset=utf-8" }
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
-
//#endregion
|
|
159
158
|
export { handleTracking, recordPushOpen };
|
|
160
159
|
|
|
161
160
|
//# sourceMappingURL=tracking.mjs.map
|
package/dist/runtime.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/runtime.ts
|
|
3
3
|
const DEFAULTS = {
|
|
4
4
|
timeScale: 1,
|
|
5
5
|
logMessages: false
|
|
@@ -13,7 +13,6 @@ function resolveRuntime(config, mode) {
|
|
|
13
13
|
logMessages: entry.logMessages ?? DEFAULTS.logMessages
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
-
//#endregion
|
|
17
16
|
exports.resolveRuntime = resolveRuntime;
|
|
18
17
|
|
|
19
18
|
//# sourceMappingURL=runtime.cjs.map
|
package/dist/runtime.d.cts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/runtime.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Runtime options — how the engine should behave in a given environment, as
|
|
4
3
|
* typed configuration rather than loose environment variables. A project keeps
|
|
@@ -26,5 +25,4 @@ export type JourneyMode = 'development' | 'production' | (string & {});
|
|
|
26
25
|
export type JourneyRuntimeConfig = Partial<Record<JourneyMode, JourneyRuntimeOptions>>;
|
|
27
26
|
/** The options for `mode`, defaults filled in; `config` may be absent altogether. */
|
|
28
27
|
export declare function resolveRuntime(config: JourneyRuntimeConfig | undefined, mode: JourneyMode): Required<JourneyRuntimeOptions>;
|
|
29
|
-
//#endregion
|
|
30
28
|
//# sourceMappingURL=runtime.d.cts.map
|
package/dist/runtime.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.cts","names":[],"sources":["../src/runtime.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"runtime.d.cts","names":[],"sources":["../src/runtime.ts"],"mappings":";;;;;;;;;;iBAWiB;;;;;;;EAOf;;EAEA;;;YAIU;;YAGA,uBAAuB,QAAQ,OAAO,aAAa;;wBAK/C,eACd,QAAQ,kCACR,MAAM,cACL,SAAS"}
|
package/dist/runtime.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/runtime.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Runtime options — how the engine should behave in a given environment, as
|
|
4
3
|
* typed configuration rather than loose environment variables. A project keeps
|
|
@@ -26,5 +25,4 @@ export type JourneyMode = 'development' | 'production' | (string & {});
|
|
|
26
25
|
export type JourneyRuntimeConfig = Partial<Record<JourneyMode, JourneyRuntimeOptions>>;
|
|
27
26
|
/** The options for `mode`, defaults filled in; `config` may be absent altogether. */
|
|
28
27
|
export declare function resolveRuntime(config: JourneyRuntimeConfig | undefined, mode: JourneyMode): Required<JourneyRuntimeOptions>;
|
|
29
|
-
//#endregion
|
|
30
28
|
//# sourceMappingURL=runtime.d.mts.map
|
package/dist/runtime.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.mts","names":[],"sources":["../src/runtime.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"runtime.d.mts","names":[],"sources":["../src/runtime.ts"],"mappings":";;;;;;;;;;iBAWiB;;;;;;;EAOf;;EAEA;;;YAIU;;YAGA,uBAAuB,QAAQ,OAAO,aAAa;;wBAK/C,eACd,QAAQ,kCACR,MAAM,cACL,SAAS"}
|
package/dist/runtime.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/runtime.ts
|
|
2
2
|
const DEFAULTS = {
|
|
3
3
|
timeScale: 1,
|
|
4
4
|
logMessages: false
|
|
@@ -12,7 +12,6 @@ function resolveRuntime(config, mode) {
|
|
|
12
12
|
logMessages: entry.logMessages ?? DEFAULTS.logMessages
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
//#endregion
|
|
16
15
|
export { resolveRuntime };
|
|
17
16
|
|
|
18
17
|
//# sourceMappingURL=runtime.mjs.map
|
package/dist/store/erasure.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/store/erasure.ts
|
|
3
3
|
/**
|
|
4
4
|
* The user has an erasure tombstone — requested and under way, or carried out — so nothing may
|
|
5
5
|
* be written about them: a write that got through would come back after the erase, or bring an
|
|
@@ -16,7 +16,6 @@ var UserErasedError = class extends Error {
|
|
|
16
16
|
this.userId = userId;
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
|
-
//#endregion
|
|
20
19
|
exports.UserErasedError = UserErasedError;
|
|
21
20
|
|
|
22
21
|
//# sourceMappingURL=erasure.cjs.map
|
package/dist/store/erasure.d.cts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/store/erasure.d.ts
|
|
2
1
|
/** Where a user stands with erasure: see `JourneyStore.erasureState`. */
|
|
3
2
|
export type ErasureState = 'none' | 'erasing' | 'erased';
|
|
4
3
|
/**
|
|
@@ -14,5 +13,4 @@ export declare class UserErasedError extends Error {
|
|
|
14
13
|
readonly retryable = false;
|
|
15
14
|
constructor(userId: string);
|
|
16
15
|
}
|
|
17
|
-
//#endregion
|
|
18
16
|
//# sourceMappingURL=erasure.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"erasure.d.cts","names":[],"sources":["../../src/store/erasure.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"erasure.d.cts","names":[],"sources":["../../src/store/erasure.ts"],"mappings":";YACY;;;;;;;qBAQC,wBAAwB;WAId;WAHH;;WAET;EACT,YAAqB"}
|
package/dist/store/erasure.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/store/erasure.d.ts
|
|
2
1
|
/** Where a user stands with erasure: see `JourneyStore.erasureState`. */
|
|
3
2
|
export type ErasureState = 'none' | 'erasing' | 'erased';
|
|
4
3
|
/**
|
|
@@ -14,5 +13,4 @@ export declare class UserErasedError extends Error {
|
|
|
14
13
|
readonly retryable = false;
|
|
15
14
|
constructor(userId: string);
|
|
16
15
|
}
|
|
17
|
-
//#endregion
|
|
18
16
|
//# sourceMappingURL=erasure.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"erasure.d.mts","names":[],"sources":["../../src/store/erasure.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"erasure.d.mts","names":[],"sources":["../../src/store/erasure.ts"],"mappings":";YACY;;;;;;;qBAQC,wBAAwB;WAId;WAHH;;WAET;EACT,YAAqB"}
|
package/dist/store/erasure.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/store/erasure.ts
|
|
2
2
|
/**
|
|
3
3
|
* The user has an erasure tombstone — requested and under way, or carried out — so nothing may
|
|
4
4
|
* be written about them: a write that got through would come back after the erase, or bring an
|
|
@@ -15,7 +15,6 @@ var UserErasedError = class extends Error {
|
|
|
15
15
|
this.userId = userId;
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
-
//#endregion
|
|
19
18
|
export { UserErasedError };
|
|
20
19
|
|
|
21
20
|
//# sourceMappingURL=erasure.mjs.map
|