@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
package/dist/transports/ses.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_email = require("../email.cjs");
|
|
4
4
|
const require_transports_sigv4 = require("./sigv4.cjs");
|
|
5
|
-
|
|
5
|
+
// src/transports/ses.ts
|
|
6
6
|
/**
|
|
7
7
|
* Error codes that mean "later", whatever the status line says. SES v2 answers its sending-rate
|
|
8
8
|
* limit with 429 `TooManyRequestsException`
|
|
@@ -132,7 +132,6 @@ function sesEmailTransport(options) {
|
|
|
132
132
|
return typeof messageId === "string" ? { providerMessageId: messageId } : {};
|
|
133
133
|
} };
|
|
134
134
|
}
|
|
135
|
-
//#endregion
|
|
136
135
|
exports.SesSendError = SesSendError;
|
|
137
136
|
exports.sesEmailTransport = sesEmailTransport;
|
|
138
137
|
exports.sesErrorType = sesErrorType;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { EmailTransport } from "../email-sender.cjs";
|
|
2
|
-
//#region src/transports/ses.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* `@shware/workflow/transports/ses` — email through Amazon SES (the v2 `SendEmail` API) over
|
|
5
4
|
* plain `fetch` with a SigV4 signature, so the same transport runs in a Lambda and in a Worker.
|
|
@@ -45,5 +44,4 @@ export declare class SesSendError extends Error {
|
|
|
45
44
|
*/
|
|
46
45
|
export declare function sesErrorType(headers: Headers, body: unknown): string | undefined;
|
|
47
46
|
export declare function sesEmailTransport(options: SesEmailTransportOptions): EmailTransport;
|
|
48
|
-
//#endregion
|
|
49
47
|
//# sourceMappingURL=ses.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ses.d.cts","names":[],"sources":["../../src/transports/ses.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ses.d.cts","names":[],"sources":["../../src/transports/ses.ts"],"mappings":";;;;;;iBAWiB;EACf;EACA;;EAEA;;;YAIU,8BAA8B,iBAAiB,QAAQ;iBAElD;EACf;;;;;;EAMA,cAAc,iBAAiB;;EAE/B;;EAEA;EACA,eAAe;;;qBA6BJ,qBAAqB;WAQrB;WACA;WARO;;;;;WAKT;EACT,YACW,gBACA,0BACT;;;;;;wBAWY,aAAa,SAAS,SAAS;wBAyB/B,kBAAkB,SAAS,2BAA2B"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { EmailTransport } from "../email-sender.mjs";
|
|
2
|
-
//#region src/transports/ses.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* `@shware/workflow/transports/ses` — email through Amazon SES (the v2 `SendEmail` API) over
|
|
5
4
|
* plain `fetch` with a SigV4 signature, so the same transport runs in a Lambda and in a Worker.
|
|
@@ -45,5 +44,4 @@ export declare class SesSendError extends Error {
|
|
|
45
44
|
*/
|
|
46
45
|
export declare function sesErrorType(headers: Headers, body: unknown): string | undefined;
|
|
47
46
|
export declare function sesEmailTransport(options: SesEmailTransportOptions): EmailTransport;
|
|
48
|
-
//#endregion
|
|
49
47
|
//# sourceMappingURL=ses.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ses.d.mts","names":[],"sources":["../../src/transports/ses.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ses.d.mts","names":[],"sources":["../../src/transports/ses.ts"],"mappings":";;;;;;iBAWiB;EACf;EACA;;EAEA;;;YAIU,8BAA8B,iBAAiB,QAAQ;iBAElD;EACf;;;;;;EAMA,cAAc,iBAAiB;;EAE/B;;EAEA;EACA,eAAe;;;qBA6BJ,qBAAqB;WAQrB;WACA;WARO;;;;;WAKT;EACT,YACW,gBACA,0BACT;;;;;;wBAWY,aAAa,SAAS,SAAS;wBAyB/B,kBAAkB,SAAS,2BAA2B"}
|
package/dist/transports/ses.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isRetryableStatus } from "../engine/retry.mjs";
|
|
2
2
|
import { mimeAddress } from "../email.mjs";
|
|
3
3
|
import { signRequest } from "./sigv4.mjs";
|
|
4
|
-
|
|
4
|
+
// src/transports/ses.ts
|
|
5
5
|
/**
|
|
6
6
|
* Error codes that mean "later", whatever the status line says. SES v2 answers its sending-rate
|
|
7
7
|
* limit with 429 `TooManyRequestsException`
|
|
@@ -131,7 +131,6 @@ function sesEmailTransport(options) {
|
|
|
131
131
|
return typeof messageId === "string" ? { providerMessageId: messageId } : {};
|
|
132
132
|
} };
|
|
133
133
|
}
|
|
134
|
-
//#endregion
|
|
135
134
|
export { SesSendError, sesEmailTransport, sesErrorType };
|
|
136
135
|
|
|
137
136
|
//# sourceMappingURL=ses.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
let node_buffer = require("node:buffer");
|
|
3
|
-
|
|
3
|
+
// src/transports/sigv4.ts
|
|
4
4
|
const utf8 = new TextEncoder();
|
|
5
5
|
const hex = (bytes) => node_buffer.Buffer.from(bytes).toString("hex");
|
|
6
6
|
async function sha256(data) {
|
|
@@ -81,7 +81,6 @@ async function signRequest(request) {
|
|
|
81
81
|
authorization: `AWS4-HMAC-SHA256 Credential=${accessKeyId}/${scope}, SignedHeaders=${signedHeaders}, Signature=${signature}`
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
|
-
//#endregion
|
|
85
84
|
exports.signRequest = signRequest;
|
|
86
85
|
|
|
87
86
|
//# sourceMappingURL=sigv4.cjs.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/transports/sigv4.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* AWS Signature Version 4 over WebCrypto, which a Worker and Node both have: enough to sign
|
|
4
3
|
* the JSON API calls the transports make. Headers are signed as given (plus `host` and
|
|
@@ -23,5 +22,4 @@ export interface SigV4Request {
|
|
|
23
22
|
}
|
|
24
23
|
/** The request's headers with `authorization` (and `x-amz-date`, the session token) added. */
|
|
25
24
|
export declare function signRequest(request: SigV4Request): Promise<Record<string, string>>;
|
|
26
|
-
//#endregion
|
|
27
25
|
//# sourceMappingURL=sigv4.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sigv4.d.cts","names":[],"sources":["../../src/transports/sigv4.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"sigv4.d.cts","names":[],"sources":["../../src/transports/sigv4.ts"],"mappings":";;;;;;iBAQiB;EACf;EACA;EACA;;iBAGe;EACf;EACA;EACA,UAAU;EACV;EACA,aAAa;EACb;EACA;;EAEA;;;wBAoEoB,YAAY,SAAS,eAAe,QAAQ"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/transports/sigv4.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* AWS Signature Version 4 over WebCrypto, which a Worker and Node both have: enough to sign
|
|
4
3
|
* the JSON API calls the transports make. Headers are signed as given (plus `host` and
|
|
@@ -23,5 +22,4 @@ export interface SigV4Request {
|
|
|
23
22
|
}
|
|
24
23
|
/** The request's headers with `authorization` (and `x-amz-date`, the session token) added. */
|
|
25
24
|
export declare function signRequest(request: SigV4Request): Promise<Record<string, string>>;
|
|
26
|
-
//#endregion
|
|
27
25
|
//# sourceMappingURL=sigv4.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sigv4.d.mts","names":[],"sources":["../../src/transports/sigv4.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"sigv4.d.mts","names":[],"sources":["../../src/transports/sigv4.ts"],"mappings":";;;;;;iBAQiB;EACf;EACA;EACA;;iBAGe;EACf;EACA;EACA,UAAU;EACV;EACA,aAAa;EACb;EACA;;EAEA;;;wBAoEoB,YAAY,SAAS,eAAe,QAAQ"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Buffer } from "node:buffer";
|
|
2
|
-
|
|
2
|
+
// src/transports/sigv4.ts
|
|
3
3
|
const utf8 = new TextEncoder();
|
|
4
4
|
const hex = (bytes) => Buffer.from(bytes).toString("hex");
|
|
5
5
|
async function sha256(data) {
|
|
@@ -80,7 +80,6 @@ async function signRequest(request) {
|
|
|
80
80
|
authorization: `AWS4-HMAC-SHA256 Credential=${accessKeyId}/${scope}, SignedHeaders=${signedHeaders}, Signature=${signature}`
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
//#endregion
|
|
84
83
|
export { signRequest };
|
|
85
84
|
|
|
86
85
|
//# sourceMappingURL=sigv4.mjs.map
|
package/dist/webhooks.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/webhooks.ts
|
|
3
3
|
/**
|
|
4
4
|
* `@shware/workflow/webhooks` — messages posted to a team channel through an incoming webhook:
|
|
5
5
|
* Discord (`discord-api-types` bodies) and Slack (Block Kit). Plain fetch, no SDKs. A template
|
|
@@ -89,7 +89,6 @@ var SlackWebhookSender = class {
|
|
|
89
89
|
throw new Error(`[slack] ${status}: ${reason}`);
|
|
90
90
|
}
|
|
91
91
|
};
|
|
92
|
-
//#endregion
|
|
93
92
|
exports.DiscordWebhookSender = DiscordWebhookSender;
|
|
94
93
|
exports.SlackWebhookSender = SlackWebhookSender;
|
|
95
94
|
|
package/dist/webhooks.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 { DiscordContent, SlackContent } from "./templates.cjs";
|
|
4
|
-
//#region src/webhooks.d.ts
|
|
5
4
|
export interface WebhookMessage<C> {
|
|
6
5
|
url: string;
|
|
7
6
|
content: C;
|
|
@@ -21,5 +20,4 @@ export declare class SlackWebhookSender implements MessageSender {
|
|
|
21
20
|
constructor(options: WebhookSenderOptions<SlackContent>);
|
|
22
21
|
send(message: OutboundMessage): Promise<void | SendResult>;
|
|
23
22
|
}
|
|
24
|
-
//#endregion
|
|
25
23
|
//# sourceMappingURL=webhooks.d.cts.map
|
package/dist/webhooks.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.d.cts","names":[],"sources":["../src/webhooks.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"webhooks.d.cts","names":[],"sources":["../src/webhooks.ts"],"mappings":";;;iBAmBiB,eAAe;EAC9B;EACA,SAAS;;iBAGM,qBAAqB;EACpC,SACE,kBACA,OAAO,6BACJ,QAAQ,eAAe,MAAM,eAAe;;EAEjD,eAAe;;qBAsBJ,gCAAgC;mBACd;EAA7B,YAA6B,SAAS,qBAAqB;EAErD,KAAK,SAAS,kBAAkB,eAAe;;qBA0B1C,8BAA8B;mBACZ;EAA7B,YAA6B,SAAS,qBAAqB;EAErD,KAAK,SAAS,kBAAkB,eAAe"}
|
package/dist/webhooks.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 { DiscordContent, SlackContent } from "./templates.mjs";
|
|
4
|
-
//#region src/webhooks.d.ts
|
|
5
4
|
export interface WebhookMessage<C> {
|
|
6
5
|
url: string;
|
|
7
6
|
content: C;
|
|
@@ -21,5 +20,4 @@ export declare class SlackWebhookSender implements MessageSender {
|
|
|
21
20
|
constructor(options: WebhookSenderOptions<SlackContent>);
|
|
22
21
|
send(message: OutboundMessage): Promise<void | SendResult>;
|
|
23
22
|
}
|
|
24
|
-
//#endregion
|
|
25
23
|
//# sourceMappingURL=webhooks.d.mts.map
|
package/dist/webhooks.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.d.mts","names":[],"sources":["../src/webhooks.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"webhooks.d.mts","names":[],"sources":["../src/webhooks.ts"],"mappings":";;;iBAmBiB,eAAe;EAC9B;EACA,SAAS;;iBAGM,qBAAqB;EACpC,SACE,kBACA,OAAO,6BACJ,QAAQ,eAAe,MAAM,eAAe;;EAEjD,eAAe;;qBAsBJ,gCAAgC;mBACd;EAA7B,YAA6B,SAAS,qBAAqB;EAErD,KAAK,SAAS,kBAAkB,eAAe;;qBA0B1C,8BAA8B;mBACZ;EAA7B,YAA6B,SAAS,qBAAqB;EAErD,KAAK,SAAS,kBAAkB,eAAe"}
|
package/dist/webhooks.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/webhooks.ts
|
|
2
2
|
/**
|
|
3
3
|
* `@shware/workflow/webhooks` — messages posted to a team channel through an incoming webhook:
|
|
4
4
|
* Discord (`discord-api-types` bodies) and Slack (Block Kit). Plain fetch, no SDKs. A template
|
|
@@ -88,7 +88,6 @@ var SlackWebhookSender = class {
|
|
|
88
88
|
throw new Error(`[slack] ${status}: ${reason}`);
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
|
-
//#endregion
|
|
92
91
|
export { DiscordWebhookSender, SlackWebhookSender };
|
|
93
92
|
|
|
94
93
|
//# sourceMappingURL=webhooks.mjs.map
|
package/dist/webpush.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/webpush.ts
|
|
6
6
|
/**
|
|
7
7
|
* How a push service's answer is classified (RFC 8030 §7 and §8.1, with the browsers' services
|
|
8
8
|
* answering as documented there):
|
|
@@ -244,7 +244,6 @@ async function webPushTopic(idempotencyKey) {
|
|
|
244
244
|
const digest = await crypto.subtle.digest("SHA-256", utf8(idempotencyKey));
|
|
245
245
|
return require_jwt.base64url(new Uint8Array(digest)).slice(0, 32);
|
|
246
246
|
}
|
|
247
|
-
//#endregion
|
|
248
247
|
exports.DEAD_TOKEN_REASONS = DEAD_TOKEN_REASONS;
|
|
249
248
|
exports.MAX_PLAINTEXT_BYTES = MAX_PLAINTEXT_BYTES;
|
|
250
249
|
exports.VapidSigner = VapidSigner;
|
package/dist/webpush.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/webpush.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* `@shware/workflow/webpush` — browser push through the standard Web Push protocol: VAPID
|
|
7
6
|
* (RFC 8292) identifies the sender, the payload is encrypted for the subscription (RFC 8291,
|
|
@@ -90,6 +89,5 @@ export declare class WebPushSender implements MessageSender {
|
|
|
90
89
|
* base64 alphabet, so the idempotency key goes through SHA-256 and is cut to size.
|
|
91
90
|
*/
|
|
92
91
|
export declare function webPushTopic(idempotencyKey: string): Promise<string>;
|
|
93
|
-
//#endregion
|
|
94
92
|
export {};
|
|
95
93
|
//# sourceMappingURL=webpush.d.cts.map
|
package/dist/webpush.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webpush.d.cts","names":[],"sources":["../src/webpush.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"webpush.d.cts","names":[],"sources":["../src/webpush.ts"],"mappings":";;;;;;;;;;;;;;;iBAmBiB;EACf;EACA;;iBAGe,2BAA2B;;EAE1C;;iBAGe;;EAEf,aAAa;EACb,QAAQ;;EAER;;EAEA,eAAe;;;;;;;;;;;;;;qBAeJ,oBAAoB;;wBAYX,qBAAqB,QAAQ;;;;;;;qBAkBtC;;KAER,QAAQ,WAAW;wBAIR,cAAc,eAAe;;;;;;wBAmBvB,eACpB,SAAS,OACT,QAAQ,OACR,YAAY,OACZ,OAAM,QACL,QAAQ;;;;;;;;qBAmDE;mBAKkB;UAJrB;mBACS;mBACA;EAEjB,YAA6B,SAAS;;EAGhC,cAAc,kBAAkB,eAAmB;UAmBjD;UA0BM;;qBAuCH,yBAAyB;mBACP;EAA7B,YAA6B,SAAS;EAEhC,KAAK,SAAS,kBAAkB,eAAe;;;;;;wBA4DjC,aAAa,yBAAyB"}
|
package/dist/webpush.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/webpush.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* `@shware/workflow/webpush` — browser push through the standard Web Push protocol: VAPID
|
|
7
6
|
* (RFC 8292) identifies the sender, the payload is encrypted for the subscription (RFC 8291,
|
|
@@ -90,6 +89,5 @@ export declare class WebPushSender implements MessageSender {
|
|
|
90
89
|
* base64 alphabet, so the idempotency key goes through SHA-256 and is cut to size.
|
|
91
90
|
*/
|
|
92
91
|
export declare function webPushTopic(idempotencyKey: string): Promise<string>;
|
|
93
|
-
//#endregion
|
|
94
92
|
export {};
|
|
95
93
|
//# sourceMappingURL=webpush.d.mts.map
|
package/dist/webpush.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webpush.d.mts","names":[],"sources":["../src/webpush.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"webpush.d.mts","names":[],"sources":["../src/webpush.ts"],"mappings":";;;;;;;;;;;;;;;iBAmBiB;EACf;EACA;;iBAGe,2BAA2B;;EAE1C;;iBAGe;;EAEf,aAAa;EACb,QAAQ;;EAER;;EAEA,eAAe;;;;;;;;;;;;;;qBAeJ,oBAAoB;;wBAYX,qBAAqB,QAAQ;;;;;;;qBAkBtC;;KAER,QAAQ,WAAW;wBAIR,cAAc,eAAe;;;;;;wBAmBvB,eACpB,SAAS,OACT,QAAQ,OACR,YAAY,OACZ,OAAM,QACL,QAAQ;;;;;;;;qBAmDE;mBAKkB;UAJrB;mBACS;mBACA;EAEjB,YAA6B,SAAS;;EAGhC,cAAc,kBAAkB,eAAmB;UAmBjD;UA0BM;;qBAuCH,yBAAyB;mBACP;EAA7B,YAA6B,SAAS;EAEhC,KAAK,SAAS,kBAAkB,eAAe;;;;;;wBA4DjC,aAAa,yBAAyB"}
|
package/dist/webpush.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PermanentError, isRetryableStatus } from "./engine/retry.mjs";
|
|
2
2
|
import { base64url } from "./jwt.mjs";
|
|
3
3
|
import { Buffer } from "node:buffer";
|
|
4
|
-
|
|
4
|
+
// src/webpush.ts
|
|
5
5
|
/**
|
|
6
6
|
* How a push service's answer is classified (RFC 8030 §7 and §8.1, with the browsers' services
|
|
7
7
|
* answering as documented there):
|
|
@@ -243,7 +243,6 @@ async function webPushTopic(idempotencyKey) {
|
|
|
243
243
|
const digest = await crypto.subtle.digest("SHA-256", utf8(idempotencyKey));
|
|
244
244
|
return base64url(new Uint8Array(digest)).slice(0, 32);
|
|
245
245
|
}
|
|
246
|
-
//#endregion
|
|
247
246
|
export { DEAD_TOKEN_REASONS, MAX_PLAINTEXT_BYTES, VapidSigner, WebPushSender, encryptPayload, fromBase64url, generateVapidKeys, webPushTopic };
|
|
248
247
|
|
|
249
248
|
//# sourceMappingURL=webpush.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shware/workflow",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/ShwareHQ/shware-sdk.git"
|
|
@@ -197,14 +197,14 @@
|
|
|
197
197
|
},
|
|
198
198
|
"dependencies": {
|
|
199
199
|
"@slack/types": "^3.2.0",
|
|
200
|
-
"discord-api-types": "^0.38.
|
|
200
|
+
"discord-api-types": "^0.38.57",
|
|
201
201
|
"ms": "^2.1.3"
|
|
202
202
|
},
|
|
203
203
|
"devDependencies": {
|
|
204
|
-
"@aws-sdk/client-lambda": "^3.
|
|
205
|
-
"@aws/durable-execution-sdk-js": "^2.7.
|
|
204
|
+
"@aws-sdk/client-lambda": "^3.1156.0",
|
|
205
|
+
"@aws/durable-execution-sdk-js": "^2.7.1",
|
|
206
206
|
"@aws/durable-execution-sdk-js-testing": "^1.3.1",
|
|
207
|
-
"@electric-sql/pglite": "^0.5.
|
|
207
|
+
"@electric-sql/pglite": "^0.5.11",
|
|
208
208
|
"@repo/typescript-config": "0.0.0",
|
|
209
209
|
"@types/aws-lambda": "^8.10.164",
|
|
210
210
|
"@types/ms": "^2.1.0",
|