@kensio/yulin 1.16.0 → 1.16.2
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 +44 -46
- package/dist/sdk/wire/sim-sdk-wire-operation.d.ts +12 -2
- package/dist/sdk/wire/sim-sdk-wire-operation.d.ts.map +1 -1
- package/dist/sdk/wire/sim-sdk-wire-operation.js.map +1 -1
- package/dist/sdk/wire/sim-sdk-wire.types.d.ts +0 -4
- package/dist/sdk/wire/sim-sdk-wire.types.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js +2 -2
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-lambda-collaborators.d.ts +8 -0
- package/dist/service/aws/factory/sim-aws-lambda-collaborators.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-lambda-collaborators.js +13 -0
- package/dist/service/aws/factory/sim-aws-lambda-collaborators.js.map +1 -1
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.d.ts +3 -2
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.d.ts.map +1 -1
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.js.map +1 -1
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-signer.d.ts +5 -2
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-signer.d.ts.map +1 -1
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-signer.js +38 -2
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-signer.js.map +1 -1
- package/dist/service/cloudfront/origin/custom/sim-cf-function-url-origin-template.factory.d.ts.map +1 -1
- package/dist/service/cloudfront/origin/custom/sim-cf-function-url-origin-template.factory.js +5 -2
- package/dist/service/cloudfront/origin/custom/sim-cf-function-url-origin-template.factory.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js +2 -1
- package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js.map +1 -1
- package/dist/service/cognito/command/hosted/hosted-auth.command.d.ts +10 -0
- package/dist/service/cognito/command/hosted/hosted-auth.command.d.ts.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.d.ts +14 -13
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.d.ts.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.js +14 -18
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.js.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-request.d.ts +15 -6
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-request.d.ts.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-request.js +26 -19
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-request.js.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.js +5 -1
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.js.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.d.ts +41 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.d.ts.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.js +72 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.js.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.d.ts +32 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.d.ts.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.js +36 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.js.map +1 -0
- package/dist/service/cognito/command/sim-cognito-command.types.d.ts +1 -0
- package/dist/service/cognito/command/sim-cognito-command.types.d.ts.map +1 -1
- package/dist/service/cognito/command/sim-cognito-commands.d.ts +2 -0
- package/dist/service/cognito/command/sim-cognito-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/sim-cognito-commands.js +8 -0
- package/dist/service/cognito/command/sim-cognito-commands.js.map +1 -1
- package/dist/service/cognito/command/user/password-reset.command.d.ts +80 -0
- package/dist/service/cognito/command/user/password-reset.command.d.ts.map +1 -0
- package/dist/service/cognito/command/user/password-reset.command.js +2 -0
- package/dist/service/cognito/command/user/password-reset.command.js.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-password-reset-commands.d.ts +74 -0
- package/dist/service/cognito/command/user/sim-cognito-password-reset-commands.d.ts.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-password-reset-commands.js +121 -0
- package/dist/service/cognito/command/user/sim-cognito-password-reset-commands.js.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-resetting-user.d.ts +34 -0
- package/dist/service/cognito/command/user/sim-cognito-resetting-user.d.ts.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-resetting-user.js +54 -0
- package/dist/service/cognito/command/user/sim-cognito-resetting-user.js.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js +3 -3
- package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-unsimulated-password-reset-options.d.ts +29 -0
- package/dist/service/cognito/command/user/sim-cognito-unsimulated-password-reset-options.d.ts.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-unsimulated-password-reset-options.js +36 -0
- package/dist/service/cognito/command/user/sim-cognito-unsimulated-password-reset-options.js.map +1 -0
- package/dist/service/cognito/error/sim-cognito-managed-login.error.d.ts +22 -0
- package/dist/service/cognito/error/sim-cognito-managed-login.error.d.ts.map +1 -0
- package/dist/service/cognito/error/sim-cognito-managed-login.error.js +32 -0
- package/dist/service/cognito/error/sim-cognito-managed-login.error.js.map +1 -0
- package/dist/service/cognito/error/sim-cognito.error.d.ts +23 -0
- package/dist/service/cognito/error/sim-cognito.error.d.ts.map +1 -1
- package/dist/service/cognito/error/sim-cognito.error.js +27 -0
- package/dist/service/cognito/error/sim-cognito.error.js.map +1 -1
- package/dist/service/cognito/index.d.ts +2 -1
- package/dist/service/cognito/index.d.ts.map +1 -1
- package/dist/service/cognito/index.js +2 -1
- package/dist/service/cognito/index.js.map +1 -1
- package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.d.ts +6 -5
- package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.d.ts.map +1 -1
- package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.js +18 -5
- package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.js.map +1 -1
- package/dist/service/cognito/serve/page/sim-cognito-confirm-page.d.ts +29 -0
- package/dist/service/cognito/serve/page/sim-cognito-confirm-page.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-confirm-page.js +90 -0
- package/dist/service/cognito/serve/page/sim-cognito-confirm-page.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-forgot-password-page.d.ts +26 -0
- package/dist/service/cognito/serve/page/sim-cognito-forgot-password-page.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-forgot-password-page.js +57 -0
- package/dist/service/cognito/serve/page/sim-cognito-forgot-password-page.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-managed-login.d.ts +41 -0
- package/dist/service/cognito/serve/page/sim-cognito-managed-login.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-managed-login.js +77 -0
- package/dist/service/cognito/serve/page/sim-cognito-managed-login.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-form.d.ts +47 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-form.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-form.js +76 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-form.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-markup.d.ts +69 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-markup.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-markup.js +111 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-markup.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-paths.d.ts +57 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-paths.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-paths.js +82 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-paths.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-request.d.ts +22 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-request.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-request.js +30 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-request.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-provider-links.d.ts +12 -0
- package/dist/service/cognito/serve/page/sim-cognito-provider-links.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-provider-links.js +18 -0
- package/dist/service/cognito/serve/page/sim-cognito-provider-links.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-reset-password-page.d.ts +27 -0
- package/dist/service/cognito/serve/page/sim-cognito-reset-password-page.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-reset-password-page.js +65 -0
- package/dist/service/cognito/serve/page/sim-cognito-reset-password-page.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.d.ts +20 -0
- package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.js +40 -0
- package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-sign-up-page.d.ts +35 -0
- package/dist/service/cognito/serve/page/sim-cognito-sign-up-page.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-sign-up-page.js +85 -0
- package/dist/service/cognito/serve/page/sim-cognito-sign-up-page.js.map +1 -0
- package/dist/service/cognito/serve/sim-cognito-domain-endpoints.d.ts +20 -23
- package/dist/service/cognito/serve/sim-cognito-domain-endpoints.d.ts.map +1 -1
- package/dist/service/cognito/serve/sim-cognito-domain-endpoints.js +40 -19
- package/dist/service/cognito/serve/sim-cognito-domain-endpoints.js.map +1 -1
- package/dist/service/cognito/serve/sim-cognito-domain-request.d.ts +14 -0
- package/dist/service/cognito/serve/sim-cognito-domain-request.d.ts.map +1 -0
- package/dist/service/cognito/serve/sim-cognito-domain-request.js +2 -0
- package/dist/service/cognito/serve/sim-cognito-domain-request.js.map +1 -0
- package/dist/service/cognito/sim-cognito-user-directory.d.ts +16 -0
- package/dist/service/cognito/sim-cognito-user-directory.d.ts.map +1 -1
- package/dist/service/cognito/sim-cognito-user-directory.js +25 -0
- package/dist/service/cognito/sim-cognito-user-directory.js.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.d.ts +9 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.js +14 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.js.map +1 -1
- package/dist/service/cognito/user-pool/idp/sim-cognito-federated-identity.d.ts +10 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-federated-identity.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/idp/sim-cognito-federated-identity.js +11 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-federated-identity.js.map +1 -1
- package/dist/service/cognito/user-pool/message/sim-cognito-code-delivery.d.ts +44 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-code-delivery.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-code-delivery.js +78 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-code-delivery.js.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-message-occasion.d.ts +10 -6
- package/dist/service/cognito/user-pool/message/sim-cognito-message-occasion.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.d.ts +5 -2
- package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.js +5 -2
- package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.js.map +1 -1
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.d.ts +15 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.js +18 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.js.map +1 -1
- package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.d.ts +4 -1
- package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.js +5 -2
- package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.js.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.d.ts +14 -6
- package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.js +20 -9
- package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.js.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-password-reset.d.ts +62 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-password-reset.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-password-reset.js +65 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-password-reset.js.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-status.d.ts +55 -11
- package/dist/service/cognito/user-pool/user/sim-cognito-user-status.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-status.js +67 -10
- package/dist/service/cognito/user-pool/user/sim-cognito-user-status.js.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts +15 -12
- package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user.js +31 -20
- package/dist/service/cognito/user-pool/user/sim-cognito-user.js.map +1 -1
- package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-payload-hash.d.ts +8 -0
- package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-payload-hash.d.ts.map +1 -1
- package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-payload-hash.js +14 -6
- package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-payload-hash.js.map +1 -1
- package/dist/service/lambda/command/create-function/create-function.handler.d.ts +3 -0
- package/dist/service/lambda/command/create-function/create-function.handler.d.ts.map +1 -1
- package/dist/service/lambda/command/create-function/create-function.handler.js +5 -1
- package/dist/service/lambda/command/create-function/create-function.handler.js.map +1 -1
- package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts +2 -0
- package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts.map +1 -1
- package/dist/service/lambda/command/function/sim-lambda-function-commands.js.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-code-resolver.d.ts +7 -0
- package/dist/service/lambda/function/code/sim-lambda-code-resolver.d.ts.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-code-resolver.js +1 -0
- package/dist/service/lambda/function/code/sim-lambda-code-resolver.js.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.d.ts +3 -0
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.d.ts.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.js +3 -0
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.js.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.d.ts +6 -9
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.d.ts.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.js +3 -3
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.js.map +1 -1
- package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.d.ts +11 -3
- package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.d.ts.map +1 -1
- package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.js +13 -8
- package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.js.map +1 -1
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-context.d.ts +21 -2
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-context.d.ts.map +1 -1
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-context.js +18 -2
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-context.js.map +1 -1
- package/dist/service/lambda/function/invoke/sim-lambda-host-scope.d.ts +26 -0
- package/dist/service/lambda/function/invoke/sim-lambda-host-scope.d.ts.map +1 -0
- package/dist/service/lambda/function/invoke/sim-lambda-host-scope.js +17 -0
- package/dist/service/lambda/function/invoke/sim-lambda-host-scope.js.map +1 -0
- package/dist/service/lambda/function/invoke/sim-lambda-outbound-clients.d.ts +17 -0
- package/dist/service/lambda/function/invoke/sim-lambda-outbound-clients.d.ts.map +1 -0
- package/dist/service/lambda/function/invoke/sim-lambda-outbound-clients.js +43 -0
- package/dist/service/lambda/function/invoke/sim-lambda-outbound-clients.js.map +1 -0
- package/dist/service/lambda/function/invoke/sim-lambda-process-outbound.d.ts +44 -0
- package/dist/service/lambda/function/invoke/sim-lambda-process-outbound.d.ts.map +1 -0
- package/dist/service/lambda/function/invoke/sim-lambda-process-outbound.js +83 -0
- package/dist/service/lambda/function/invoke/sim-lambda-process-outbound.js.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-aws-api-outbound.d.ts +50 -0
- package/dist/service/lambda/function/outbound/sim-lambda-aws-api-outbound.d.ts.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-aws-api-outbound.js +83 -0
- package/dist/service/lambda/function/outbound/sim-lambda-aws-api-outbound.js.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-http-module.d.ts +42 -0
- package/dist/service/lambda/function/outbound/sim-lambda-http-module.d.ts.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-http-module.js +88 -0
- package/dist/service/lambda/function/outbound/sim-lambda-http-module.js.map +1 -0
- package/dist/service/lambda/function/{code/vm/http/sim-lambda-vm-wire-request.d.ts → outbound/sim-lambda-http-request.d.ts} +20 -7
- package/dist/service/lambda/function/outbound/sim-lambda-http-request.d.ts.map +1 -0
- package/dist/service/lambda/function/{code/vm/http/sim-lambda-vm-wire-request.js → outbound/sim-lambda-http-request.js} +27 -29
- package/dist/service/lambda/function/outbound/sim-lambda-http-request.js.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-http-response.d.ts +18 -0
- package/dist/service/lambda/function/outbound/sim-lambda-http-response.d.ts.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-http-response.js +23 -0
- package/dist/service/lambda/function/outbound/sim-lambda-http-response.js.map +1 -0
- package/dist/service/lambda/function/{code/vm/http/sim-lambda-vm-http-target.d.ts → outbound/sim-lambda-http-target.d.ts} +9 -7
- package/dist/service/lambda/function/outbound/sim-lambda-http-target.d.ts.map +1 -0
- package/dist/service/lambda/function/{code/vm/http/sim-lambda-vm-http-target.js → outbound/sim-lambda-http-target.js} +4 -38
- package/dist/service/lambda/function/outbound/sim-lambda-http-target.js.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-fetch.d.ts +15 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-fetch.d.ts.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-fetch.js +38 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-fetch.js.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.d.ts +27 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.d.ts.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.factory.d.ts +13 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.factory.d.ts.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.factory.js +107 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.factory.js.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.js +2 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.js.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-wire.d.ts +16 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-wire.d.ts.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-wire.js +29 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-wire.js.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function.d.ts +12 -6
- package/dist/service/lambda/function/sim-lambda-function.d.ts.map +1 -1
- package/dist/service/lambda/function/sim-lambda-function.js +9 -10
- package/dist/service/lambda/function/sim-lambda-function.js.map +1 -1
- package/dist/service/lambda/serve/auth/sim-lambda-url-payload-hash.d.ts +28 -0
- package/dist/service/lambda/serve/auth/sim-lambda-url-payload-hash.d.ts.map +1 -0
- package/dist/service/lambda/serve/auth/sim-lambda-url-payload-hash.js +56 -0
- package/dist/service/lambda/serve/auth/sim-lambda-url-payload-hash.js.map +1 -0
- package/dist/service/lambda/serve/response/sim-lambda-url-error-response.d.ts +16 -0
- package/dist/service/lambda/serve/response/sim-lambda-url-error-response.d.ts.map +1 -1
- package/dist/service/lambda/serve/response/sim-lambda-url-error-response.js +24 -0
- package/dist/service/lambda/serve/response/sim-lambda-url-error-response.js.map +1 -1
- package/dist/service/lambda/serve/sim-lambda-controller.d.ts +6 -0
- package/dist/service/lambda/serve/sim-lambda-controller.d.ts.map +1 -1
- package/dist/service/lambda/serve/sim-lambda-controller.js +11 -0
- package/dist/service/lambda/serve/sim-lambda-controller.js.map +1 -1
- package/dist/service/lambda/sim-lambda-commands.d.ts +8 -0
- package/dist/service/lambda/sim-lambda-commands.d.ts.map +1 -1
- package/dist/service/lambda/sim-lambda-commands.js +2 -1
- package/dist/service/lambda/sim-lambda-commands.js.map +1 -1
- package/dist/service/rekognition/face/sim-rekognition-face-detail-builder.d.ts.map +1 -1
- package/dist/service/rekognition/face/sim-rekognition-face-detail-builder.js.map +1 -1
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-properties.d.ts +4 -3
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-properties.d.ts.map +1 -1
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-properties.js +4 -3
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-properties.js.map +1 -1
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-property-names.d.ts +2 -2
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-property-names.js +2 -2
- package/dist/service/sns/command/publish/sim-sns-publish-commands.d.ts +3 -0
- package/dist/service/sns/command/publish/sim-sns-publish-commands.d.ts.map +1 -1
- package/dist/service/sns/command/publish/sim-sns-publish-commands.js +4 -2
- package/dist/service/sns/command/publish/sim-sns-publish-commands.js.map +1 -1
- package/dist/service/sns/command/publish/sim-sns-publish-dispatch.d.ts +39 -0
- package/dist/service/sns/command/publish/sim-sns-publish-dispatch.d.ts.map +1 -0
- package/dist/service/sns/command/publish/sim-sns-publish-dispatch.js +42 -0
- package/dist/service/sns/command/publish/sim-sns-publish-dispatch.js.map +1 -0
- package/dist/service/sns/command/publish/sim-sns-publish-input.d.ts +3 -3
- package/dist/service/sns/command/publish/sim-sns-publish-input.d.ts.map +1 -1
- package/dist/service/sns/command/publish/sim-sns-publish-input.js +8 -8
- package/dist/service/sns/command/publish/sim-sns-publish-input.js.map +1 -1
- package/dist/service/sns/command/publish/sim-sns-publish-sms.d.ts +38 -0
- package/dist/service/sns/command/publish/sim-sns-publish-sms.d.ts.map +1 -0
- package/dist/service/sns/command/publish/sim-sns-publish-sms.js +53 -0
- package/dist/service/sns/command/publish/sim-sns-publish-sms.js.map +1 -0
- package/dist/service/sns/command/sim-sns-command.types.d.ts +1 -0
- package/dist/service/sns/command/sim-sns-command.types.d.ts.map +1 -1
- package/dist/service/sns/command/sim-sns-commands.d.ts +12 -4
- package/dist/service/sns/command/sim-sns-commands.d.ts.map +1 -1
- package/dist/service/sns/command/sim-sns-commands.js +39 -4
- package/dist/service/sns/command/sim-sns-commands.js.map +1 -1
- package/dist/service/sns/command/sms/sim-sns-opt-out-commands.d.ts +41 -0
- package/dist/service/sns/command/sms/sim-sns-opt-out-commands.d.ts.map +1 -0
- package/dist/service/sns/command/sms/sim-sns-opt-out-commands.js +56 -0
- package/dist/service/sns/command/sms/sim-sns-opt-out-commands.js.map +1 -0
- package/dist/service/sns/command/sms/sms.command.d.ts +50 -0
- package/dist/service/sns/command/sms/sms.command.d.ts.map +1 -0
- package/dist/service/sns/command/sms/sms.command.js +2 -0
- package/dist/service/sns/command/sms/sms.command.js.map +1 -0
- package/dist/service/sns/delivery/sim-aws-sns-delivery-endpoints.d.ts +5 -6
- package/dist/service/sns/delivery/sim-aws-sns-delivery-endpoints.d.ts.map +1 -1
- package/dist/service/sns/delivery/sim-aws-sns-delivery-endpoints.js +8 -12
- package/dist/service/sns/delivery/sim-aws-sns-delivery-endpoints.js.map +1 -1
- package/dist/service/sns/delivery/sim-sns-no-delivery-endpoints.d.ts +6 -13
- package/dist/service/sns/delivery/sim-sns-no-delivery-endpoints.d.ts.map +1 -1
- package/dist/service/sns/delivery/sim-sns-no-delivery-endpoints.js +13 -2
- package/dist/service/sns/delivery/sim-sns-no-delivery-endpoints.js.map +1 -1
- package/dist/service/sns/delivery/sim-sns-protocol-delivery-endpoints.d.ts +10 -1
- package/dist/service/sns/delivery/sim-sns-protocol-delivery-endpoints.d.ts.map +1 -1
- package/dist/service/sns/delivery/sim-sns-protocol-delivery-endpoints.js.map +1 -1
- package/dist/service/sns/delivery/sms/sim-sns-delivery-sms.d.ts +34 -0
- package/dist/service/sns/delivery/sms/sim-sns-delivery-sms.d.ts.map +1 -0
- package/dist/service/sns/delivery/sms/sim-sns-delivery-sms.js +46 -0
- package/dist/service/sns/delivery/sms/sim-sns-delivery-sms.js.map +1 -0
- package/dist/service/sns/index.d.ts +5 -1
- package/dist/service/sns/index.d.ts.map +1 -1
- package/dist/service/sns/index.js +4 -1
- package/dist/service/sns/index.js.map +1 -1
- package/dist/service/sns/message/sim-sns-message-attribute-rules.d.ts.map +1 -1
- package/dist/service/sns/message/sim-sns-message-attribute-rules.js +9 -1
- package/dist/service/sns/message/sim-sns-message-attribute-rules.js.map +1 -1
- package/dist/service/sns/message/sim-sns-message-attributes.d.ts +8 -0
- package/dist/service/sns/message/sim-sns-message-attributes.d.ts.map +1 -1
- package/dist/service/sns/message/sim-sns-message-attributes.js +10 -0
- package/dist/service/sns/message/sim-sns-message-attributes.js.map +1 -1
- package/dist/service/sns/message/sim-sns-sms-attributes.d.ts +25 -0
- package/dist/service/sns/message/sim-sns-sms-attributes.d.ts.map +1 -0
- package/dist/service/sns/message/sim-sns-sms-attributes.js +46 -0
- package/dist/service/sns/message/sim-sns-sms-attributes.js.map +1 -0
- package/dist/service/sns/sdk/sim-sns-sdk-command-router.d.ts.map +1 -1
- package/dist/service/sns/sdk/sim-sns-sdk-command-router.js +12 -0
- package/dist/service/sns/sdk/sim-sns-sdk-command-router.js.map +1 -1
- package/dist/service/sns/sim-sns-sms.d.ts +63 -0
- package/dist/service/sns/sim-sns-sms.d.ts.map +1 -0
- package/dist/service/sns/sim-sns-sms.js +76 -0
- package/dist/service/sns/sim-sns-sms.js.map +1 -0
- package/dist/service/sns/sim-sns.d.ts +7 -15
- package/dist/service/sns/sim-sns.d.ts.map +1 -1
- package/dist/service/sns/sim-sns.js +23 -30
- package/dist/service/sns/sim-sns.js.map +1 -1
- package/dist/service/sns/sms/sim-sns-opt-out-list.d.ts +40 -0
- package/dist/service/sns/sms/sim-sns-opt-out-list.d.ts.map +1 -0
- package/dist/service/sns/sms/sim-sns-opt-out-list.js +47 -0
- package/dist/service/sns/sms/sim-sns-opt-out-list.js.map +1 -0
- package/dist/service/sns/sms/sim-sns-phone-number.d.ts +21 -0
- package/dist/service/sns/sms/sim-sns-phone-number.d.ts.map +1 -0
- package/dist/service/sns/sms/sim-sns-phone-number.js +41 -0
- package/dist/service/sns/sms/sim-sns-phone-number.js.map +1 -0
- package/dist/service/sns/sms/sim-sns-sent-sms-message.d.ts +69 -0
- package/dist/service/sns/sms/sim-sns-sent-sms-message.d.ts.map +1 -0
- package/dist/service/sns/sms/sim-sns-sent-sms-message.js +71 -0
- package/dist/service/sns/sms/sim-sns-sent-sms-message.js.map +1 -0
- package/dist/service/sns/sms/sim-sns-sent-sms-store.d.ts +25 -0
- package/dist/service/sns/sms/sim-sns-sent-sms-store.d.ts.map +1 -0
- package/dist/service/sns/sms/sim-sns-sent-sms-store.js +28 -0
- package/dist/service/sns/sms/sim-sns-sent-sms-store.js.map +1 -0
- package/dist/service/sns/subscription/sim-sns-subscription-endpoint.d.ts +9 -7
- package/dist/service/sns/subscription/sim-sns-subscription-endpoint.d.ts.map +1 -1
- package/dist/service/sns/subscription/sim-sns-subscription-endpoint.js +7 -2
- package/dist/service/sns/subscription/sim-sns-subscription-endpoint.js.map +1 -1
- package/dist/service/sns/subscription/sim-sns-subscription-protocol.d.ts +19 -1
- package/dist/service/sns/subscription/sim-sns-subscription-protocol.d.ts.map +1 -1
- package/dist/service/sns/subscription/sim-sns-subscription-protocol.js +26 -5
- package/dist/service/sns/subscription/sim-sns-subscription-protocol.js.map +1 -1
- package/package.json +2 -2
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.d.ts +0 -27
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.d.ts.map +0 -1
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.js +0 -78
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.js.map +0 -1
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.d.ts.map +0 -1
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.js.map +0 -1
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.d.ts.map +0 -1
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.js.map +0 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { refuseUnsimulatedPublishTarget } from "./sim-sns-publish-input.js";
|
|
2
|
+
/**
|
|
3
|
+
* Which of the two publishes a `Publish` request is.
|
|
4
|
+
*
|
|
5
|
+
* One SDK command name covers two operations that share a message and nothing
|
|
6
|
+
* else. A publish to a topic goes to the topic's subscriptions. A publish to a
|
|
7
|
+
* phone number reaches no topic, no subscription and no delivery endpoint, and
|
|
8
|
+
* is recorded as an SMS. Each has its own handler, and this is what reads the
|
|
9
|
+
* request to decide.
|
|
10
|
+
*
|
|
11
|
+
* The target refusals belong here, ahead of the decision, so that a request
|
|
12
|
+
* naming an unsimulated target is refused whichever way it would otherwise
|
|
13
|
+
* have gone.
|
|
14
|
+
*
|
|
15
|
+
* `PublishBatch` is only ever a topic publish, since the SNS API gives a batch
|
|
16
|
+
* entry no phone number field.
|
|
17
|
+
*/
|
|
18
|
+
export class SimSnsPublishDispatch {
|
|
19
|
+
topic;
|
|
20
|
+
sms;
|
|
21
|
+
constructor(properties) {
|
|
22
|
+
this.topic = properties.topic;
|
|
23
|
+
this.sms = properties.sms;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Publish one message to a topic or to a phone number.
|
|
27
|
+
*/
|
|
28
|
+
publish(command, options) {
|
|
29
|
+
refuseUnsimulatedPublishTarget(command.input);
|
|
30
|
+
if (command.input.PhoneNumber === undefined) {
|
|
31
|
+
return this.topic.publish(command, options);
|
|
32
|
+
}
|
|
33
|
+
return this.sms.publish(command.input, options);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Publish up to ten messages to a topic at once.
|
|
37
|
+
*/
|
|
38
|
+
publishBatch(command, options) {
|
|
39
|
+
return this.topic.publishBatch(command, options);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=sim-sns-publish-dispatch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-sns-publish-dispatch.js","sourceRoot":"","sources":["../../../../../src/service/sns/command/publish/sim-sns-publish-dispatch.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,8BAA8B,EAAE,MAAM,4BAA4B,CAAC;AAc5E;;;;;;;;;;;;;;;GAeG;AACH,MAAM,OAAO,qBAAqB;IACf,KAAK,CAAwB;IAC7B,GAAG,CAAmB;IAEvC,YAAY,UAA2C;QACrD,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;QAC9B,IAAI,CAAC,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC;IAC5B,CAAC;IAED;;OAEG;IACH,OAAO,CACL,OAA0B,EAC1B,OAA8B;QAE9B,8BAA8B,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAE9C,IAAI,OAAO,CAAC,KAAK,CAAC,WAAW,KAAK,SAAS,EAAE,CAAC;YAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC9C,CAAC;QAED,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;OAEG;IACH,YAAY,CACV,OAA+B,EAC/B,OAA8B;QAE9B,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;CACF"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { SimSnsPublishedMessageInput } from "../../message/sim-sns-published-message.js";
|
|
2
2
|
import type { SimPublishCommandInput, SimSnsPublishedFields } from "./publish.command.js";
|
|
3
3
|
/**
|
|
4
|
-
* Refuse a publish to somewhere other than a topic.
|
|
4
|
+
* Refuse a publish to somewhere other than a topic or a phone number.
|
|
5
5
|
*
|
|
6
|
-
* Real SNS publishes to a topic, to a
|
|
7
|
-
*
|
|
6
|
+
* Real SNS publishes to a topic, to a phone number, or to a mobile application
|
|
7
|
+
* endpoint. The endpoint is the one that is not simulated, so it is refused
|
|
8
8
|
* rather than answered with a message id for a message that reached nothing.
|
|
9
9
|
*/
|
|
10
10
|
export declare function refuseUnsimulatedPublishTarget(input: SimPublishCommandInput): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-sns-publish-input.d.ts","sourceRoot":"","sources":["../../../../../src/service/sns/command/publish/sim-sns-publish-input.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sim-sns-publish-input.d.ts","sourceRoot":"","sources":["../../../../../src/service/sns/command/publish/sim-sns-publish-input.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,4CAA4C,CAAC;AAC9F,OAAO,KAAK,EACV,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,sBAAsB,CAAC;AAE9B;;;;;;GAMG;AACH,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,sBAAsB,GAC5B,IAAI,CAcN;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,CACzC,SAAS,EAAE,qBAAqB,GAC/B,2BAA2B,CAuB7B"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { SimSnsUnsimulatedInputException } from "../../error/sim-sns.error.js";
|
|
1
|
+
import { SimSnsInvalidParameterException, SimSnsUnsimulatedInputException, } from "../../error/sim-sns.error.js";
|
|
2
2
|
import { SimSnsMessageAttributes } from "../../message/sim-sns-message-attributes.js";
|
|
3
3
|
/**
|
|
4
|
-
* Refuse a publish to somewhere other than a topic.
|
|
4
|
+
* Refuse a publish to somewhere other than a topic or a phone number.
|
|
5
5
|
*
|
|
6
|
-
* Real SNS publishes to a topic, to a
|
|
7
|
-
*
|
|
6
|
+
* Real SNS publishes to a topic, to a phone number, or to a mobile application
|
|
7
|
+
* endpoint. The endpoint is the one that is not simulated, so it is refused
|
|
8
8
|
* rather than answered with a message id for a message that reached nothing.
|
|
9
9
|
*/
|
|
10
10
|
export function refuseUnsimulatedPublishTarget(input) {
|
|
11
11
|
if (input.TargetArn !== undefined) {
|
|
12
12
|
throw new SimSnsUnsimulatedInputException("TargetArn publishes to a mobile application endpoint, which simulated " +
|
|
13
|
-
"SNS does not support. Publish to a TopicArn instead.");
|
|
13
|
+
"SNS does not support. Publish to a TopicArn or a PhoneNumber instead.");
|
|
14
14
|
}
|
|
15
|
-
if (input.PhoneNumber !== undefined) {
|
|
16
|
-
throw new
|
|
17
|
-
"
|
|
15
|
+
if (input.TopicArn !== undefined && input.PhoneNumber !== undefined) {
|
|
16
|
+
throw new SimSnsInvalidParameterException("Invalid parameter: A publish names a TopicArn or a PhoneNumber, and " +
|
|
17
|
+
"this one names both");
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-sns-publish-input.js","sourceRoot":"","sources":["../../../../../src/service/sns/command/publish/sim-sns-publish-input.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"sim-sns-publish-input.js","sourceRoot":"","sources":["../../../../../src/service/sns/command/publish/sim-sns-publish-input.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,+BAA+B,EAC/B,+BAA+B,GAChC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAOtF;;;;;;GAMG;AACH,MAAM,UAAU,8BAA8B,CAC5C,KAA6B;IAE7B,IAAI,KAAK,CAAC,SAAS,KAAK,SAAS,EAAE,CAAC;QAClC,MAAM,IAAI,+BAA+B,CACvC,wEAAwE;YACtE,uEAAuE,CAC1E,CAAC;IACJ,CAAC;IAED,IAAI,KAAK,CAAC,QAAQ,KAAK,SAAS,IAAI,KAAK,CAAC,WAAW,KAAK,SAAS,EAAE,CAAC;QACpE,MAAM,IAAI,+BAA+B,CACvC,sEAAsE;YACpE,qBAAqB,CACxB,CAAC;IACJ,CAAC;AACH,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,2BAA2B,CACzC,SAAgC;IAEhC,IACE,SAAS,CAAC,sBAAsB,KAAK,SAAS;QAC9C,SAAS,CAAC,cAAc,KAAK,SAAS,EACtC,CAAC;QACD,MAAM,IAAI,+BAA+B,CACvC,wEAAwE;YACtE,gCAAgC,CACnC,CAAC;IACJ,CAAC;IAED,IAAI,SAAS,CAAC,gBAAgB,KAAK,SAAS,EAAE,CAAC;QAC7C,MAAM,IAAI,+BAA+B,CACvC,wEAAwE;YACtE,8BAA8B,CACjC,CAAC;IACJ,CAAC;IAED,OAAO;QACL,OAAO,EAAE,SAAS,CAAC,OAAO;QAC1B,OAAO,EAAE,SAAS,CAAC,OAAO;QAC1B,UAAU,EAAE,uBAAuB,CAAC,EAAE,CAAC,SAAS,CAAC,iBAAiB,CAAC;KACpE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { BackgroundScheduler } from "../../../../util/background/background.js";
|
|
2
|
+
import type { SimSnsOptOutList } from "../../sms/sim-sns-opt-out-list.js";
|
|
3
|
+
import type { SimSnsSentSmsStore } from "../../sms/sim-sns-sent-sms-store.js";
|
|
4
|
+
import type { SimSnsRequestOptions } from "../sim-sns-request-options.js";
|
|
5
|
+
import type { SimSnsTopicAccess } from "../topic/sim-sns-topic-access.js";
|
|
6
|
+
import type { SimPublishCommandInput, SimPublishCommandOutput } from "./publish.command.js";
|
|
7
|
+
interface SimSnsPublishSmsProperties {
|
|
8
|
+
readonly access: SimSnsTopicAccess;
|
|
9
|
+
readonly clock: BackgroundScheduler;
|
|
10
|
+
readonly optOutList: SimSnsOptOutList;
|
|
11
|
+
readonly sent: SimSnsSentSmsStore;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Publishing straight to a phone number.
|
|
15
|
+
*
|
|
16
|
+
* This is the half of `Publish` that reaches no topic. Real SNS hands the
|
|
17
|
+
* message to a carrier and tells the publisher a message id, and the publisher
|
|
18
|
+
* hears nothing more about it. There is no carrier here to hand it to. The
|
|
19
|
+
* message is recorded, and the publisher gets the same message id it would
|
|
20
|
+
* have got on AWS.
|
|
21
|
+
*/
|
|
22
|
+
export declare class SimSnsPublishSms {
|
|
23
|
+
private readonly access;
|
|
24
|
+
private readonly clock;
|
|
25
|
+
private readonly optOutList;
|
|
26
|
+
private readonly sent;
|
|
27
|
+
constructor(properties: SimSnsPublishSmsProperties);
|
|
28
|
+
/**
|
|
29
|
+
* Publish one SMS to a phone number.
|
|
30
|
+
*
|
|
31
|
+
* A number on the opt-out list still gets a message id, because that is what
|
|
32
|
+
* real SNS answers a publish it accepts and then delivers nowhere. The
|
|
33
|
+
* record says the opt-out list stopped it.
|
|
34
|
+
*/
|
|
35
|
+
publish(input: SimPublishCommandInput, options?: SimSnsRequestOptions): SimPublishCommandOutput;
|
|
36
|
+
}
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=sim-sns-publish-sms.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-sns-publish-sms.d.ts","sourceRoot":"","sources":["../../../../../src/service/sns/command/publish/sim-sns-publish-sms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAKrF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAG1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAE1E,OAAO,KAAK,EACV,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,sBAAsB,CAAC;AAQ9B,UAAU,0BAA0B;IAClC,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAC;IACnC,QAAQ,CAAC,KAAK,EAAE,mBAAmB,CAAC;IACpC,QAAQ,CAAC,UAAU,EAAE,gBAAgB,CAAC;IACtC,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;CACnC;AAED;;;;;;;;GAQG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoB;IAC3C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAsB;IAC5C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAmB;IAC9C,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAqB;IAE1C,YAAY,UAAU,EAAE,0BAA0B,EAKjD;IAED;;;;;;OAMG;IACH,OAAO,CACL,KAAK,EAAE,sBAAsB,EAC7B,OAAO,CAAC,EAAE,oBAAoB,GAC7B,uBAAuB,CAuBzB;CACF"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { assertSimSnsMessageWithinLimit, SimSnsPublishedMessage, } from "../../message/sim-sns-published-message.js";
|
|
2
|
+
import { SimSnsPhoneNumber } from "../../sms/sim-sns-phone-number.js";
|
|
3
|
+
import { SimSnsSentSmsMessage } from "../../sms/sim-sns-sent-sms-message.js";
|
|
4
|
+
import { simSnsPublishedMessageInput } from "./sim-sns-publish-input.js";
|
|
5
|
+
/**
|
|
6
|
+
* Real SNS authorizes an SMS publish as `sns:Publish` against `*`, since there
|
|
7
|
+
* is no topic in the request for a policy to name.
|
|
8
|
+
*/
|
|
9
|
+
const publishAction = "sns:Publish";
|
|
10
|
+
/**
|
|
11
|
+
* Publishing straight to a phone number.
|
|
12
|
+
*
|
|
13
|
+
* This is the half of `Publish` that reaches no topic. Real SNS hands the
|
|
14
|
+
* message to a carrier and tells the publisher a message id, and the publisher
|
|
15
|
+
* hears nothing more about it. There is no carrier here to hand it to. The
|
|
16
|
+
* message is recorded, and the publisher gets the same message id it would
|
|
17
|
+
* have got on AWS.
|
|
18
|
+
*/
|
|
19
|
+
export class SimSnsPublishSms {
|
|
20
|
+
access;
|
|
21
|
+
clock;
|
|
22
|
+
optOutList;
|
|
23
|
+
sent;
|
|
24
|
+
constructor(properties) {
|
|
25
|
+
this.access = properties.access;
|
|
26
|
+
this.clock = properties.clock;
|
|
27
|
+
this.optOutList = properties.optOutList;
|
|
28
|
+
this.sent = properties.sent;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Publish one SMS to a phone number.
|
|
32
|
+
*
|
|
33
|
+
* A number on the opt-out list still gets a message id, because that is what
|
|
34
|
+
* real SNS answers a publish it accepts and then delivers nowhere. The
|
|
35
|
+
* record says the opt-out list stopped it.
|
|
36
|
+
*/
|
|
37
|
+
publish(input, options) {
|
|
38
|
+
this.access.authorizeAnyTopic(publishAction, options);
|
|
39
|
+
const phoneNumber = SimSnsPhoneNumber.of(input.PhoneNumber);
|
|
40
|
+
const message = SimSnsPublishedMessage.of(simSnsPublishedMessageInput(input), this.clock.now());
|
|
41
|
+
assertSimSnsMessageWithinLimit(message.byteSize);
|
|
42
|
+
this.sent.add(new SimSnsSentSmsMessage({
|
|
43
|
+
messageId: message.messageId,
|
|
44
|
+
phoneNumber: phoneNumber.value,
|
|
45
|
+
message: message.body.value,
|
|
46
|
+
attributes: message.attributes,
|
|
47
|
+
suppressed: this.optOutList.isOptedOut(phoneNumber),
|
|
48
|
+
sentDate: message.publishedAt,
|
|
49
|
+
}));
|
|
50
|
+
return { $metadata: {}, MessageId: message.messageId };
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=sim-sns-publish-sms.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-sns-publish-sms.js","sourceRoot":"","sources":["../../../../../src/service/sns/command/publish/sim-sns-publish-sms.ts"],"names":[],"mappings":"AACA,OAAO,EACL,8BAA8B,EAC9B,sBAAsB,GACvB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAI7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAMzE;;;GAGG;AACH,MAAM,aAAa,GAAG,aAAa,CAAC;AASpC;;;;;;;;GAQG;AACH,MAAM,OAAO,gBAAgB;IACV,MAAM,CAAoB;IAC1B,KAAK,CAAsB;IAC3B,UAAU,CAAmB;IAC7B,IAAI,CAAqB;IAE1C,YAAY,UAAsC;QAChD,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QAChC,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;QAC9B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;QACxC,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;IAC9B,CAAC;IAED;;;;;;OAMG;IACH,OAAO,CACL,KAA6B,EAC7B,OAA8B;QAE9B,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;QAEtD,MAAM,WAAW,GAAG,iBAAiB,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAC5D,MAAM,OAAO,GAAG,sBAAsB,CAAC,EAAE,CACvC,2BAA2B,CAAC,KAAK,CAAC,EAClC,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CACjB,CAAC;QAEF,8BAA8B,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAEjD,IAAI,CAAC,IAAI,CAAC,GAAG,CACX,IAAI,oBAAoB,CAAC;YACvB,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,WAAW,EAAE,WAAW,CAAC,KAAK;YAC9B,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;YAC3B,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,WAAW,CAAC;YACnD,QAAQ,EAAE,OAAO,CAAC,WAAW;SAC9B,CAAC,CACH,CAAC;QAEF,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC;IACzD,CAAC;CACF"}
|
|
@@ -3,5 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export type { SimCreateTopicCommand, SimCreateTopicCommandInput, SimCreateTopicCommandOutput, SimDeleteTopicCommand, SimDeleteTopicCommandInput, SimDeleteTopicCommandOutput, SimGetTopicAttributesCommand, SimGetTopicAttributesCommandInput, SimGetTopicAttributesCommandOutput, SimListTopicsCommand, SimListTopicsCommandInput, SimListTopicsCommandOutput, SimSetTopicAttributesCommand, SimSetTopicAttributesCommandInput, SimSetTopicAttributesCommandOutput, SimSnsListedTopic, SimSnsTag, } from "./topic/topic.command.js";
|
|
5
5
|
export type { SimGetSubscriptionAttributesCommand, SimGetSubscriptionAttributesCommandInput, SimGetSubscriptionAttributesCommandOutput, SimListSubscriptionsByTopicCommand, SimListSubscriptionsByTopicCommandInput, SimListSubscriptionsByTopicCommandOutput, SimListSubscriptionsCommand, SimListSubscriptionsCommandInput, SimListSubscriptionsCommandOutput, SimSetSubscriptionAttributesCommand, SimSetSubscriptionAttributesCommandInput, SimSetSubscriptionAttributesCommandOutput, SimSnsListedSubscription, SimSubscribeCommand, SimSubscribeCommandInput, SimSubscribeCommandOutput, SimUnsubscribeCommand, SimUnsubscribeCommandInput, SimUnsubscribeCommandOutput, } from "./subscription/subscription.command.js";
|
|
6
|
+
export type { SimCheckIfPhoneNumberIsOptedOutCommand, SimCheckIfPhoneNumberIsOptedOutCommandInput, SimCheckIfPhoneNumberIsOptedOutCommandOutput, SimListPhoneNumbersOptedOutCommand, SimListPhoneNumbersOptedOutCommandInput, SimListPhoneNumbersOptedOutCommandOutput, SimOptInPhoneNumberCommand, SimOptInPhoneNumberCommandInput, SimOptInPhoneNumberCommandOutput, } from "./sms/sms.command.js";
|
|
6
7
|
export type { SimPublishBatchCommand, SimPublishBatchCommandInput, SimPublishBatchCommandOutput, SimPublishCommand, SimPublishCommandInput, SimPublishCommandOutput, SimSnsBatchResultErrorEntry, SimSnsPublishBatchRequestEntry, SimSnsPublishBatchResultEntry, SimSnsPublishedFields, } from "./publish/publish.command.js";
|
|
7
8
|
//# sourceMappingURL=sim-sns-command.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-sns-command.types.d.ts","sourceRoot":"","sources":["../../../../src/service/sns/command/sim-sns-command.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,YAAY,EACV,qBAAqB,EACrB,0BAA0B,EAC1B,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,2BAA2B,EAC3B,4BAA4B,EAC5B,iCAAiC,EACjC,kCAAkC,EAClC,oBAAoB,EACpB,yBAAyB,EACzB,0BAA0B,EAC1B,4BAA4B,EAC5B,iCAAiC,EACjC,kCAAkC,EAClC,iBAAiB,EACjB,SAAS,GACV,MAAM,0BAA0B,CAAC;AAClC,YAAY,EACV,mCAAmC,EACnC,wCAAwC,EACxC,yCAAyC,EACzC,kCAAkC,EAClC,uCAAuC,EACvC,wCAAwC,EACxC,2BAA2B,EAC3B,gCAAgC,EAChC,iCAAiC,EACjC,mCAAmC,EACnC,wCAAwC,EACxC,yCAAyC,EACzC,wBAAwB,EACxB,mBAAmB,EACnB,wBAAwB,EACxB,yBAAyB,EACzB,qBAAqB,EACrB,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,wCAAwC,CAAC;AAChD,YAAY,EACV,sBAAsB,EACtB,2BAA2B,EAC3B,4BAA4B,EAC5B,iBAAiB,EACjB,sBAAsB,EACtB,uBAAuB,EACvB,2BAA2B,EAC3B,8BAA8B,EAC9B,6BAA6B,EAC7B,qBAAqB,GACtB,MAAM,8BAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"sim-sns-command.types.d.ts","sourceRoot":"","sources":["../../../../src/service/sns/command/sim-sns-command.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,YAAY,EACV,qBAAqB,EACrB,0BAA0B,EAC1B,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,2BAA2B,EAC3B,4BAA4B,EAC5B,iCAAiC,EACjC,kCAAkC,EAClC,oBAAoB,EACpB,yBAAyB,EACzB,0BAA0B,EAC1B,4BAA4B,EAC5B,iCAAiC,EACjC,kCAAkC,EAClC,iBAAiB,EACjB,SAAS,GACV,MAAM,0BAA0B,CAAC;AAClC,YAAY,EACV,mCAAmC,EACnC,wCAAwC,EACxC,yCAAyC,EACzC,kCAAkC,EAClC,uCAAuC,EACvC,wCAAwC,EACxC,2BAA2B,EAC3B,gCAAgC,EAChC,iCAAiC,EACjC,mCAAmC,EACnC,wCAAwC,EACxC,yCAAyC,EACzC,wBAAwB,EACxB,mBAAmB,EACnB,wBAAwB,EACxB,yBAAyB,EACzB,qBAAqB,EACrB,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,wCAAwC,CAAC;AAChD,YAAY,EACV,sCAAsC,EACtC,2CAA2C,EAC3C,4CAA4C,EAC5C,kCAAkC,EAClC,uCAAuC,EACvC,wCAAwC,EACxC,0BAA0B,EAC1B,+BAA+B,EAC/B,gCAAgC,GACjC,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,sBAAsB,EACtB,2BAA2B,EAC3B,4BAA4B,EAC5B,iBAAiB,EACjB,sBAAsB,EACtB,uBAAuB,EACvB,2BAA2B,EAC3B,8BAA8B,EAC9B,6BAA6B,EAC7B,qBAAqB,GACtB,MAAM,8BAA8B,CAAC"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import type { BackgroundScheduler } from "../../../util/background/background.js";
|
|
2
2
|
import type { SimAwsAccountRegionScope } from "../../aws/sim-aws-account-region-scope.js";
|
|
3
3
|
import type { SimIamInterServiceAuthZ } from "../../iam/authorize/sim-iam-inter-service-auth-z.js";
|
|
4
|
-
import type { SimSnsDeliveryEndpoints } from "../delivery/sim-sns-delivery.js";
|
|
5
4
|
import { SimSnsFanOut } from "../delivery/sim-sns-fan-out.js";
|
|
5
|
+
import { type SimSnsOutwardDeliveryEndpoints } from "../delivery/sim-sns-protocol-delivery-endpoints.js";
|
|
6
6
|
import { SimSnsMessageSigner } from "../signature/sim-sns-message-signer.js";
|
|
7
7
|
import type { SimSnsSubscriptionStore } from "../subscription/sim-sns-subscription-store.js";
|
|
8
8
|
import type { SimSnsTopicStore } from "../topic/sim-sns-topic-store.js";
|
|
9
|
-
import {
|
|
9
|
+
import { SimSnsOptOutList } from "../sms/sim-sns-opt-out-list.js";
|
|
10
|
+
import { SimSnsSentSmsStore } from "../sms/sim-sns-sent-sms-store.js";
|
|
11
|
+
import { SimSnsPublishDispatch } from "./publish/sim-sns-publish-dispatch.js";
|
|
12
|
+
import { SimSnsOptOutCommands } from "./sms/sim-sns-opt-out-commands.js";
|
|
10
13
|
import { SimSnsSubscriptionAttributeCommands } from "./subscription/sim-sns-subscription-attribute-commands.js";
|
|
11
14
|
import { SimSnsSubscriptionCommands } from "./subscription/sim-sns-subscription-commands.js";
|
|
12
15
|
import { SimSnsSubscriptionListings } from "./subscription/sim-sns-subscription-listings.js";
|
|
@@ -18,7 +21,7 @@ interface SimSnsCommandsProperties {
|
|
|
18
21
|
readonly subscriptions: SimSnsSubscriptionStore;
|
|
19
22
|
readonly iam: SimIamInterServiceAuthZ;
|
|
20
23
|
readonly background: BackgroundScheduler;
|
|
21
|
-
readonly deliveryEndpoints:
|
|
24
|
+
readonly deliveryEndpoints: SimSnsOutwardDeliveryEndpoints;
|
|
22
25
|
readonly accountRegionScope: SimAwsAccountRegionScope;
|
|
23
26
|
}
|
|
24
27
|
/**
|
|
@@ -36,9 +39,14 @@ export declare class SimSnsCommands {
|
|
|
36
39
|
readonly subscriptions: SimSnsSubscriptionCommands;
|
|
37
40
|
readonly subscriptionListings: SimSnsSubscriptionListings;
|
|
38
41
|
readonly subscriptionAttributes: SimSnsSubscriptionAttributeCommands;
|
|
39
|
-
readonly publish:
|
|
42
|
+
readonly publish: SimSnsPublishDispatch;
|
|
43
|
+
readonly optOut: SimSnsOptOutCommands;
|
|
40
44
|
readonly fanOut: SimSnsFanOut;
|
|
41
45
|
readonly signer: SimSnsMessageSigner;
|
|
46
|
+
/** Every SMS this scope would have sent, delivered or suppressed. */
|
|
47
|
+
readonly sentSms: SimSnsSentSmsStore;
|
|
48
|
+
/** The numbers this scope will send no SMS to. */
|
|
49
|
+
readonly optOutList: SimSnsOptOutList;
|
|
42
50
|
constructor(properties: SimSnsCommandsProperties);
|
|
43
51
|
}
|
|
44
52
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-sns-commands.d.ts","sourceRoot":"","sources":["../../../../src/service/sns/command/sim-sns-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qDAAqD,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-sns-commands.d.ts","sourceRoot":"","sources":["../../../../src/service/sns/command/sim-sns-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qDAAqD,CAAC;AAEnG,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,KAAK,8BAA8B,EAEpC,MAAM,oDAAoD,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAGtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAE9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAEzE,OAAO,EAAE,mCAAmC,EAAE,MAAM,2DAA2D,CAAC;AAChH,OAAO,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAC;AAC7F,OAAO,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAEpE,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE,UAAU,wBAAwB;IAChC,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAClC,QAAQ,CAAC,aAAa,EAAE,uBAAuB,CAAC;IAChD,QAAQ,CAAC,GAAG,EAAE,uBAAuB,CAAC;IACtC,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;IACzC,QAAQ,CAAC,iBAAiB,EAAE,8BAA8B,CAAC;IAC3D,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,CAAC;CACvD;AAED;;;;;;;GAOG;AACH,qBAAa,cAAc;IACzB,SAAgB,aAAa,EAAE,iBAAiB,CAAC;IACjD,SAAgB,MAAM,EAAE,mBAAmB,CAAC;IAC5C,SAAgB,eAAe,EAAE,4BAA4B,CAAC;IAC9D,SAAgB,aAAa,EAAE,0BAA0B,CAAC;IAC1D,SAAgB,oBAAoB,EAAE,0BAA0B,CAAC;IACjE,SAAgB,sBAAsB,EAAE,mCAAmC,CAAC;IAC5E,SAAgB,OAAO,EAAE,qBAAqB,CAAC;IAC/C,SAAgB,MAAM,EAAE,oBAAoB,CAAC;IAC7C,SAAgB,MAAM,EAAE,YAAY,CAAC;IACrC,SAAgB,MAAM,EAAE,mBAAmB,CAAC;IAE5C,qEAAqE;IACrE,SAAgB,OAAO,qBAA4B;IAEnD,kDAAkD;IAClD,SAAgB,UAAU,mBAA0B;IAEpD,YAAY,UAAU,EAAE,wBAAwB,EA0E/C;CACF"}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { SimSnsDeliveryRequests } from "../delivery/sim-sns-delivery-request.js";
|
|
2
2
|
import { SimSnsFanOut } from "../delivery/sim-sns-fan-out.js";
|
|
3
|
+
import { SimSnsProtocolDeliveryEndpoints, } from "../delivery/sim-sns-protocol-delivery-endpoints.js";
|
|
4
|
+
import { SimSnsDeliverySms } from "../delivery/sms/sim-sns-delivery-sms.js";
|
|
3
5
|
import { SimSnsMessageSigner } from "../signature/sim-sns-message-signer.js";
|
|
6
|
+
import { SimSnsOptOutList } from "../sms/sim-sns-opt-out-list.js";
|
|
7
|
+
import { SimSnsSentSmsStore } from "../sms/sim-sns-sent-sms-store.js";
|
|
4
8
|
import { SimSnsAuthorizer } from "./authorize/sim-sns-authorizer.js";
|
|
5
9
|
import { SimSnsPublishCommands } from "./publish/sim-sns-publish-commands.js";
|
|
10
|
+
import { SimSnsPublishDispatch } from "./publish/sim-sns-publish-dispatch.js";
|
|
11
|
+
import { SimSnsPublishSms } from "./publish/sim-sns-publish-sms.js";
|
|
12
|
+
import { SimSnsOptOutCommands } from "./sms/sim-sns-opt-out-commands.js";
|
|
6
13
|
import { SimSnsSubscriptionAccess } from "./subscription/sim-sns-subscription-access.js";
|
|
7
14
|
import { SimSnsSubscriptionAttributeCommands } from "./subscription/sim-sns-subscription-attribute-commands.js";
|
|
8
15
|
import { SimSnsSubscriptionCommands } from "./subscription/sim-sns-subscription-commands.js";
|
|
@@ -27,8 +34,13 @@ export class SimSnsCommands {
|
|
|
27
34
|
subscriptionListings;
|
|
28
35
|
subscriptionAttributes;
|
|
29
36
|
publish;
|
|
37
|
+
optOut;
|
|
30
38
|
fanOut;
|
|
31
39
|
signer;
|
|
40
|
+
/** Every SMS this scope would have sent, delivered or suppressed. */
|
|
41
|
+
sentSms = new SimSnsSentSmsStore();
|
|
42
|
+
/** The numbers this scope will send no SMS to. */
|
|
43
|
+
optOutList = new SimSnsOptOutList();
|
|
32
44
|
constructor(properties) {
|
|
33
45
|
const { topics, subscriptions, accountRegionScope, background } = properties;
|
|
34
46
|
const access = new SimSnsTopicAccess({
|
|
@@ -44,7 +56,18 @@ export class SimSnsCommands {
|
|
|
44
56
|
this.signer = new SimSnsMessageSigner({ accountRegionScope });
|
|
45
57
|
this.fanOut = new SimSnsFanOut({
|
|
46
58
|
subscriptions,
|
|
47
|
-
|
|
59
|
+
// The protocols reaching another service are supplied from outside, and
|
|
60
|
+
// the one that reaches nothing is filled in here, where the store it
|
|
61
|
+
// records on lives.
|
|
62
|
+
endpoints: new SimSnsProtocolDeliveryEndpoints({
|
|
63
|
+
byProtocol: {
|
|
64
|
+
...properties.deliveryEndpoints,
|
|
65
|
+
sms: new SimSnsDeliverySms({
|
|
66
|
+
optOutList: this.optOutList,
|
|
67
|
+
sent: this.sentSms,
|
|
68
|
+
}),
|
|
69
|
+
},
|
|
70
|
+
}),
|
|
48
71
|
requests: new SimSnsDeliveryRequests({
|
|
49
72
|
signer: this.signer,
|
|
50
73
|
accountRegionScope,
|
|
@@ -73,10 +96,22 @@ export class SimSnsCommands {
|
|
|
73
96
|
this.subscriptionAttributes = new SimSnsSubscriptionAttributeCommands({
|
|
74
97
|
access: subscriptionAccess,
|
|
75
98
|
});
|
|
76
|
-
this.publish = new
|
|
99
|
+
this.publish = new SimSnsPublishDispatch({
|
|
100
|
+
topic: new SimSnsPublishCommands({
|
|
101
|
+
access,
|
|
102
|
+
clock: background,
|
|
103
|
+
fanOut: this.fanOut,
|
|
104
|
+
}),
|
|
105
|
+
sms: new SimSnsPublishSms({
|
|
106
|
+
access,
|
|
107
|
+
clock: background,
|
|
108
|
+
optOutList: this.optOutList,
|
|
109
|
+
sent: this.sentSms,
|
|
110
|
+
}),
|
|
111
|
+
});
|
|
112
|
+
this.optOut = new SimSnsOptOutCommands({
|
|
77
113
|
access,
|
|
78
|
-
|
|
79
|
-
fanOut: this.fanOut,
|
|
114
|
+
optOutList: this.optOutList,
|
|
80
115
|
});
|
|
81
116
|
}
|
|
82
117
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-sns-commands.js","sourceRoot":"","sources":["../../../../src/service/sns/command/sim-sns-commands.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sim-sns-commands.js","sourceRoot":"","sources":["../../../../src/service/sns/command/sim-sns-commands.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAEL,+BAA+B,GAChC,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAG7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+CAA+C,CAAC;AACzF,OAAO,EAAE,mCAAmC,EAAE,MAAM,2DAA2D,CAAC;AAChH,OAAO,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAC;AAC7F,OAAO,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAWxE;;;;;;;GAOG;AACH,MAAM,OAAO,cAAc;IACT,aAAa,CAAoB;IACjC,MAAM,CAAsB;IAC5B,eAAe,CAA+B;IAC9C,aAAa,CAA6B;IAC1C,oBAAoB,CAA6B;IACjD,sBAAsB,CAAsC;IAC5D,OAAO,CAAwB;IAC/B,MAAM,CAAuB;IAC7B,MAAM,CAAe;IACrB,MAAM,CAAsB;IAE5C,qEAAqE;IACrD,OAAO,GAAG,IAAI,kBAAkB,EAAE,CAAC;IAEnD,kDAAkD;IAClC,UAAU,GAAG,IAAI,gBAAgB,EAAE,CAAC;IAEpD,YAAY,UAAoC;QAC9C,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,kBAAkB,EAAE,UAAU,EAAE,GAC7D,UAAU,CAAC;QACb,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC;YACnC,MAAM;YACN,UAAU,EAAE,IAAI,gBAAgB,CAAC,EAAE,GAAG,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC;YACzD,kBAAkB;SACnB,CAAC,CAAC;QACH,MAAM,kBAAkB,GAAG,IAAI,wBAAwB,CAAC;YACtD,aAAa;YACb,WAAW,EAAE,MAAM;YACnB,kBAAkB;SACnB,CAAC,CAAC;QAEH,IAAI,CAAC,MAAM,GAAG,IAAI,mBAAmB,CAAC,EAAE,kBAAkB,EAAE,CAAC,CAAC;QAC9D,IAAI,CAAC,MAAM,GAAG,IAAI,YAAY,CAAC;YAC7B,aAAa;YACb,wEAAwE;YACxE,qEAAqE;YACrE,oBAAoB;YACpB,SAAS,EAAE,IAAI,+BAA+B,CAAC;gBAC7C,UAAU,EAAE;oBACV,GAAG,UAAU,CAAC,iBAAiB;oBAC/B,GAAG,EAAE,IAAI,iBAAiB,CAAC;wBACzB,UAAU,EAAE,IAAI,CAAC,UAAU;wBAC3B,IAAI,EAAE,IAAI,CAAC,OAAO;qBACnB,CAAC;iBACH;aACF,CAAC;YACF,QAAQ,EAAE,IAAI,sBAAsB,CAAC;gBACnC,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,kBAAkB;aACnB,CAAC;YACF,UAAU;SACX,CAAC,CAAC;QACH,IAAI,CAAC,aAAa,GAAG,IAAI,iBAAiB,CAAC;YACzC,MAAM;YACN,MAAM;YACN,kBAAkB;SACnB,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,GAAG,IAAI,mBAAmB,CAAC,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,CAAC,CAAC;QACzE,IAAI,CAAC,eAAe,GAAG,IAAI,4BAA4B,CAAC;YACtD,MAAM;YACN,aAAa;SACd,CAAC,CAAC;QACH,IAAI,CAAC,aAAa,GAAG,IAAI,0BAA0B,CAAC;YAClD,aAAa;YACb,WAAW,EAAE,MAAM;YACnB,kBAAkB;SACnB,CAAC,CAAC;QACH,IAAI,CAAC,oBAAoB,GAAG,IAAI,0BAA0B,CAAC;YACzD,aAAa;YACb,WAAW,EAAE,MAAM;SACpB,CAAC,CAAC;QACH,IAAI,CAAC,sBAAsB,GAAG,IAAI,mCAAmC,CAAC;YACpE,MAAM,EAAE,kBAAkB;SAC3B,CAAC,CAAC;QACH,IAAI,CAAC,OAAO,GAAG,IAAI,qBAAqB,CAAC;YACvC,KAAK,EAAE,IAAI,qBAAqB,CAAC;gBAC/B,MAAM;gBACN,KAAK,EAAE,UAAU;gBACjB,MAAM,EAAE,IAAI,CAAC,MAAM;aACpB,CAAC;YACF,GAAG,EAAE,IAAI,gBAAgB,CAAC;gBACxB,MAAM;gBACN,KAAK,EAAE,UAAU;gBACjB,UAAU,EAAE,IAAI,CAAC,UAAU;gBAC3B,IAAI,EAAE,IAAI,CAAC,OAAO;aACnB,CAAC;SACH,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,GAAG,IAAI,oBAAoB,CAAC;YACrC,MAAM;YACN,UAAU,EAAE,IAAI,CAAC,UAAU;SAC5B,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { SimSnsOptOutList } from "../../sms/sim-sns-opt-out-list.js";
|
|
2
|
+
import type { SimSnsRequestOptions } from "../sim-sns-request-options.js";
|
|
3
|
+
import type { SimSnsTopicAccess } from "../topic/sim-sns-topic-access.js";
|
|
4
|
+
import type { SimCheckIfPhoneNumberIsOptedOutCommand, SimCheckIfPhoneNumberIsOptedOutCommandOutput, SimListPhoneNumbersOptedOutCommand, SimListPhoneNumbersOptedOutCommandOutput, SimOptInPhoneNumberCommand, SimOptInPhoneNumberCommandOutput } from "./sms.command.js";
|
|
5
|
+
interface SimSnsOptOutCommandsProperties {
|
|
6
|
+
readonly access: SimSnsTopicAccess;
|
|
7
|
+
readonly optOutList: SimSnsOptOutList;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The commands that read and unwind the phone number opt-out list.
|
|
11
|
+
*
|
|
12
|
+
* None of them names a topic, so each authorizes against `*` the way
|
|
13
|
+
* `ListTopics` does. A policy naming a topic ARN allows none of them, here as
|
|
14
|
+
* on AWS.
|
|
15
|
+
*
|
|
16
|
+
* There is no command for opting a number out. Real SNS puts a number on the
|
|
17
|
+
* list when the recipient replies STOP, and `SimSns.optOutPhoneNumber` stands
|
|
18
|
+
* in for the handset.
|
|
19
|
+
*/
|
|
20
|
+
export declare class SimSnsOptOutCommands {
|
|
21
|
+
private readonly access;
|
|
22
|
+
private readonly optOutList;
|
|
23
|
+
constructor(properties: SimSnsOptOutCommandsProperties);
|
|
24
|
+
/**
|
|
25
|
+
* Say whether a number is opted out of receiving SMS.
|
|
26
|
+
*/
|
|
27
|
+
checkIfPhoneNumberIsOptedOut(command: SimCheckIfPhoneNumberIsOptedOutCommand, options?: SimSnsRequestOptions): SimCheckIfPhoneNumberIsOptedOutCommandOutput;
|
|
28
|
+
/**
|
|
29
|
+
* List the opted-out numbers, in the order they were opted out.
|
|
30
|
+
*/
|
|
31
|
+
listPhoneNumbersOptedOut(command: SimListPhoneNumbersOptedOutCommand, options?: SimSnsRequestOptions): SimListPhoneNumbersOptedOutCommandOutput;
|
|
32
|
+
/**
|
|
33
|
+
* Take a number back off the opt-out list.
|
|
34
|
+
*
|
|
35
|
+
* A number that was never on it succeeds and changes nothing, as it does on
|
|
36
|
+
* real SNS.
|
|
37
|
+
*/
|
|
38
|
+
optInPhoneNumber(command: SimOptInPhoneNumberCommand, options?: SimSnsRequestOptions): SimOptInPhoneNumberCommandOutput;
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
41
|
+
//# sourceMappingURL=sim-sns-opt-out-commands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-sns-opt-out-commands.d.ts","sourceRoot":"","sources":["../../../../../src/service/sns/command/sms/sim-sns-opt-out-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAG1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,KAAK,EACV,sCAAsC,EACtC,4CAA4C,EAC5C,kCAAkC,EAClC,wCAAwC,EACxC,0BAA0B,EAC1B,gCAAgC,EACjC,MAAM,kBAAkB,CAAC;AAE1B,UAAU,8BAA8B;IACtC,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAC;IACnC,QAAQ,CAAC,UAAU,EAAE,gBAAgB,CAAC;CACvC;AAED;;;;;;;;;;GAUG;AACH,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoB;IAC3C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAmB;IAE9C,YAAY,UAAU,EAAE,8BAA8B,EAGrD;IAED;;OAEG;IACH,4BAA4B,CAC1B,OAAO,EAAE,sCAAsC,EAC/C,OAAO,CAAC,EAAE,oBAAoB,GAC7B,4CAA4C,CAS9C;IAED;;OAEG;IACH,wBAAwB,CACtB,OAAO,EAAE,kCAAkC,EAC3C,OAAO,CAAC,EAAE,oBAAoB,GAC7B,wCAAwC,CAU1C;IAED;;;;;OAKG;IACH,gBAAgB,CACd,OAAO,EAAE,0BAA0B,EACnC,OAAO,CAAC,EAAE,oBAAoB,GAC7B,gCAAgC,CAMlC;CACF"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { SimSnsPhoneNumber } from "../../sms/sim-sns-phone-number.js";
|
|
2
|
+
import { SimSnsPage } from "../sim-sns-page.js";
|
|
3
|
+
/**
|
|
4
|
+
* The commands that read and unwind the phone number opt-out list.
|
|
5
|
+
*
|
|
6
|
+
* None of them names a topic, so each authorizes against `*` the way
|
|
7
|
+
* `ListTopics` does. A policy naming a topic ARN allows none of them, here as
|
|
8
|
+
* on AWS.
|
|
9
|
+
*
|
|
10
|
+
* There is no command for opting a number out. Real SNS puts a number on the
|
|
11
|
+
* list when the recipient replies STOP, and `SimSns.optOutPhoneNumber` stands
|
|
12
|
+
* in for the handset.
|
|
13
|
+
*/
|
|
14
|
+
export class SimSnsOptOutCommands {
|
|
15
|
+
access;
|
|
16
|
+
optOutList;
|
|
17
|
+
constructor(properties) {
|
|
18
|
+
this.access = properties.access;
|
|
19
|
+
this.optOutList = properties.optOutList;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Say whether a number is opted out of receiving SMS.
|
|
23
|
+
*/
|
|
24
|
+
checkIfPhoneNumberIsOptedOut(command, options) {
|
|
25
|
+
this.access.authorizeAnyTopic("sns:CheckIfPhoneNumberIsOptedOut", options);
|
|
26
|
+
const phoneNumber = SimSnsPhoneNumber.of(command.input.phoneNumber);
|
|
27
|
+
return {
|
|
28
|
+
$metadata: {},
|
|
29
|
+
isOptedOut: this.optOutList.isOptedOut(phoneNumber),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* List the opted-out numbers, in the order they were opted out.
|
|
34
|
+
*/
|
|
35
|
+
listPhoneNumbersOptedOut(command, options) {
|
|
36
|
+
this.access.authorizeAnyTopic("sns:ListPhoneNumbersOptedOut", options);
|
|
37
|
+
const page = new SimSnsPage(this.optOutList.all, command.input.nextToken);
|
|
38
|
+
return {
|
|
39
|
+
$metadata: {},
|
|
40
|
+
phoneNumbers: page.items,
|
|
41
|
+
...(page.nextToken !== undefined && { nextToken: page.nextToken }),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Take a number back off the opt-out list.
|
|
46
|
+
*
|
|
47
|
+
* A number that was never on it succeeds and changes nothing, as it does on
|
|
48
|
+
* real SNS.
|
|
49
|
+
*/
|
|
50
|
+
optInPhoneNumber(command, options) {
|
|
51
|
+
this.access.authorizeAnyTopic("sns:OptInPhoneNumber", options);
|
|
52
|
+
this.optOutList.optIn(SimSnsPhoneNumber.of(command.input.phoneNumber));
|
|
53
|
+
return { $metadata: {} };
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=sim-sns-opt-out-commands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-sns-opt-out-commands.js","sourceRoot":"","sources":["../../../../../src/service/sns/command/sms/sim-sns-opt-out-commands.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAiBhD;;;;;;;;;;GAUG;AACH,MAAM,OAAO,oBAAoB;IACd,MAAM,CAAoB;IAC1B,UAAU,CAAmB;IAE9C,YAAY,UAA0C;QACpD,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QAChC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;IAC1C,CAAC;IAED;;OAEG;IACH,4BAA4B,CAC1B,OAA+C,EAC/C,OAA8B;QAE9B,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;QAE3E,MAAM,WAAW,GAAG,iBAAiB,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAEpE,OAAO;YACL,SAAS,EAAE,EAAE;YACb,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,WAAW,CAAC;SACpD,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,wBAAwB,CACtB,OAA2C,EAC3C,OAA8B;QAE9B,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,8BAA8B,EAAE,OAAO,CAAC,CAAC;QAEvE,MAAM,IAAI,GAAG,IAAI,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAE1E,OAAO;YACL,SAAS,EAAE,EAAE;YACb,YAAY,EAAE,IAAI,CAAC,KAAK;YACxB,GAAG,CAAC,IAAI,CAAC,SAAS,KAAK,SAAS,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC;SACnE,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,gBAAgB,CACd,OAAmC,EACnC,OAA8B;QAE9B,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;QAE/D,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;QAEvE,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;IAC3B,CAAC;CACF"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { SimResponseMetadata } from "../../../aws/metadata/response-metadata.type.js";
|
|
2
|
+
/**
|
|
3
|
+
* Minimal structural sim SNS CheckIfPhoneNumberIsOptedOut command.
|
|
4
|
+
*
|
|
5
|
+
* The SMS operations name their fields in camel case, unlike every other SNS
|
|
6
|
+
* operation. That is how the SNS API has them, and the SDK carries it through.
|
|
7
|
+
*
|
|
8
|
+
* https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sns/command/CheckIfPhoneNumberIsOptedOutCommand/
|
|
9
|
+
*/
|
|
10
|
+
export interface SimCheckIfPhoneNumberIsOptedOutCommand {
|
|
11
|
+
readonly input: SimCheckIfPhoneNumberIsOptedOutCommandInput;
|
|
12
|
+
}
|
|
13
|
+
export interface SimCheckIfPhoneNumberIsOptedOutCommandInput {
|
|
14
|
+
readonly phoneNumber?: string | undefined;
|
|
15
|
+
}
|
|
16
|
+
export interface SimCheckIfPhoneNumberIsOptedOutCommandOutput {
|
|
17
|
+
readonly isOptedOut?: boolean | undefined;
|
|
18
|
+
readonly $metadata: SimResponseMetadata;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Minimal structural sim SNS ListPhoneNumbersOptedOut command.
|
|
22
|
+
*
|
|
23
|
+
* https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sns/command/ListPhoneNumbersOptedOutCommand/
|
|
24
|
+
*/
|
|
25
|
+
export interface SimListPhoneNumbersOptedOutCommand {
|
|
26
|
+
readonly input: SimListPhoneNumbersOptedOutCommandInput;
|
|
27
|
+
}
|
|
28
|
+
export interface SimListPhoneNumbersOptedOutCommandInput {
|
|
29
|
+
readonly nextToken?: string | undefined;
|
|
30
|
+
}
|
|
31
|
+
export interface SimListPhoneNumbersOptedOutCommandOutput {
|
|
32
|
+
readonly phoneNumbers?: readonly string[] | undefined;
|
|
33
|
+
readonly nextToken?: string | undefined;
|
|
34
|
+
readonly $metadata: SimResponseMetadata;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Minimal structural sim SNS OptInPhoneNumber command.
|
|
38
|
+
*
|
|
39
|
+
* https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sns/command/OptInPhoneNumberCommand/
|
|
40
|
+
*/
|
|
41
|
+
export interface SimOptInPhoneNumberCommand {
|
|
42
|
+
readonly input: SimOptInPhoneNumberCommandInput;
|
|
43
|
+
}
|
|
44
|
+
export interface SimOptInPhoneNumberCommandInput {
|
|
45
|
+
readonly phoneNumber?: string | undefined;
|
|
46
|
+
}
|
|
47
|
+
export interface SimOptInPhoneNumberCommandOutput {
|
|
48
|
+
readonly $metadata: SimResponseMetadata;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=sms.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sms.command.d.ts","sourceRoot":"","sources":["../../../../../src/service/sns/command/sms/sms.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAE3F;;;;;;;GAOG;AACH,MAAM,WAAW,sCAAsC;IACrD,QAAQ,CAAC,KAAK,EAAE,2CAA2C,CAAC;CAC7D;AAED,MAAM,WAAW,2CAA2C;IAC1D,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3C;AAED,MAAM,WAAW,4CAA4C;IAC3D,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC1C,QAAQ,CAAC,SAAS,EAAE,mBAAmB,CAAC;CACzC;AAED;;;;GAIG;AACH,MAAM,WAAW,kCAAkC;IACjD,QAAQ,CAAC,KAAK,EAAE,uCAAuC,CAAC;CACzD;AAED,MAAM,WAAW,uCAAuC;IACtD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACzC;AAED,MAAM,WAAW,wCAAwC;IACvD,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IACtD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,QAAQ,CAAC,SAAS,EAAE,mBAAmB,CAAC;CACzC;AAED;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,KAAK,EAAE,+BAA+B,CAAC;CACjD;AAED,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3C;AAED,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,SAAS,EAAE,mBAAmB,CAAC;CACzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sms.command.js","sourceRoot":"","sources":["../../../../../src/service/sns/command/sms/sms.command.ts"],"names":[],"mappings":""}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import type { SimAws } from "../../aws/sim-aws.js";
|
|
2
|
-
import {
|
|
2
|
+
import type { SimSnsOutwardDeliveryEndpoints } from "./sim-sns-protocol-delivery-endpoints.js";
|
|
3
3
|
interface SimAwsSnsDeliveryEndpointsProperties {
|
|
4
4
|
readonly simAws: SimAws;
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
7
|
-
* Everywhere the topics of one simulated AWS instance
|
|
7
|
+
* Everywhere outside itself the topics of one simulated AWS instance deliver.
|
|
8
8
|
*
|
|
9
9
|
* Which protocols are simulated is a fact about simulated SNS rather than about
|
|
10
10
|
* the service builder that hands it its endpoints, so the set is assembled
|
|
11
|
-
* here.
|
|
11
|
+
* here. The `sms` protocol is not one of them: an SMS never leaves simulated
|
|
12
|
+
* SNS, which fills that one in itself.
|
|
12
13
|
*/
|
|
13
|
-
export declare
|
|
14
|
-
constructor(properties: SimAwsSnsDeliveryEndpointsProperties);
|
|
15
|
-
}
|
|
14
|
+
export declare function simAwsSnsDeliveryEndpoints(properties: SimAwsSnsDeliveryEndpointsProperties): SimSnsOutwardDeliveryEndpoints;
|
|
16
15
|
export {};
|
|
17
16
|
//# sourceMappingURL=sim-aws-sns-delivery-endpoints.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-aws-sns-delivery-endpoints.d.ts","sourceRoot":"","sources":["../../../../src/service/sns/delivery/sim-aws-sns-delivery-endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAE
|
|
1
|
+
{"version":3,"file":"sim-aws-sns-delivery-endpoints.d.ts","sourceRoot":"","sources":["../../../../src/service/sns/delivery/sim-aws-sns-delivery-endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,0CAA0C,CAAC;AAG/F,UAAU,oCAAoC;IAC5C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,oCAAoC,GAC/C,8BAA8B,CAKhC"}
|
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
import { SimAwsSnsDeliveryFunctions } from "./lambda/sim-aws-sns-delivery-functions.js";
|
|
2
|
-
import { SimSnsProtocolDeliveryEndpoints } from "./sim-sns-protocol-delivery-endpoints.js";
|
|
3
2
|
import { SimAwsSnsDeliveryQueues } from "./sqs/sim-aws-sns-delivery-queues.js";
|
|
4
3
|
/**
|
|
5
|
-
* Everywhere the topics of one simulated AWS instance
|
|
4
|
+
* Everywhere outside itself the topics of one simulated AWS instance deliver.
|
|
6
5
|
*
|
|
7
6
|
* Which protocols are simulated is a fact about simulated SNS rather than about
|
|
8
7
|
* the service builder that hands it its endpoints, so the set is assembled
|
|
9
|
-
* here.
|
|
8
|
+
* here. The `sms` protocol is not one of them: an SMS never leaves simulated
|
|
9
|
+
* SNS, which fills that one in itself.
|
|
10
10
|
*/
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
lambda: new SimAwsSnsDeliveryFunctions(properties),
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
}
|
|
11
|
+
export function simAwsSnsDeliveryEndpoints(properties) {
|
|
12
|
+
return {
|
|
13
|
+
sqs: new SimAwsSnsDeliveryQueues(properties),
|
|
14
|
+
lambda: new SimAwsSnsDeliveryFunctions(properties),
|
|
15
|
+
};
|
|
20
16
|
}
|
|
21
17
|
//# sourceMappingURL=sim-aws-sns-delivery-endpoints.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-aws-sns-delivery-endpoints.js","sourceRoot":"","sources":["../../../../src/service/sns/delivery/sim-aws-sns-delivery-endpoints.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-aws-sns-delivery-endpoints.js","sourceRoot":"","sources":["../../../../src/service/sns/delivery/sim-aws-sns-delivery-endpoints.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAExF,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAM/E;;;;;;;GAOG;AACH,MAAM,UAAU,0BAA0B,CACxC,UAAgD;IAEhD,OAAO;QACL,GAAG,EAAE,IAAI,uBAAuB,CAAC,UAAU,CAAC;QAC5C,MAAM,EAAE,IAAI,0BAA0B,CAAC,UAAU,CAAC;KACnD,CAAC;AACJ,CAAC"}
|