@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
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { SimCognitoCodeMismatchException } from "../../error/sim-cognito.error.js";
|
|
1
|
+
import { SimCognitoCodeMismatchException, SimCognitoExpiredCodeException, } from "../../error/sim-cognito.error.js";
|
|
2
2
|
import { SimCognitoConfirmationCode } from "./sim-cognito-confirmation-code.js";
|
|
3
3
|
/**
|
|
4
|
-
* The
|
|
4
|
+
* The code one user has outstanding.
|
|
5
5
|
*
|
|
6
|
-
* A user that signed itself up holds
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
6
|
+
* A user that signed itself up holds one until it confirms, a user that asked
|
|
7
|
+
* to reset a forgotten password holds one until it sets the new one, and a
|
|
8
|
+
* user doing neither holds none. Keeping the code and what it answers together
|
|
9
|
+
* is the same modelling choice `SimCognitoUserPassword` makes: the user asks
|
|
10
|
+
* whether a candidate is right, rather than reading the value out to compare
|
|
11
|
+
* it.
|
|
10
12
|
*
|
|
11
13
|
* The value is readable, unlike a password, because nothing here delivers the
|
|
12
14
|
* message that would carry it.
|
|
@@ -32,18 +34,27 @@ export class SimCognitoUserConfirmation {
|
|
|
32
34
|
* Follow the user to a status.
|
|
33
35
|
*
|
|
34
36
|
* A user waiting to be confirmed holds a code, and one that has left
|
|
35
|
-
* `UNCONFIRMED` has spent it: a code confirms one sign-up and no more.
|
|
37
|
+
* `UNCONFIRMED` has spent it: a code confirms one sign-up and no more. A
|
|
38
|
+
* user an administrator has sent to `RESET_REQUIRED` is issued its code
|
|
39
|
+
* after the move, because the code is what the reset is answered with.
|
|
36
40
|
*/
|
|
37
41
|
settle(status) {
|
|
38
|
-
this.#code = status.
|
|
42
|
+
this.#code = status.holdsCode
|
|
39
43
|
? SimCognitoConfirmationCode.issue()
|
|
40
44
|
: undefined;
|
|
41
45
|
}
|
|
42
46
|
/**
|
|
43
47
|
* Refuse a candidate that is not the code outstanding.
|
|
48
|
+
*
|
|
49
|
+
* A user holding no code at all is refused as having an expired one, which
|
|
50
|
+
* is what real Cognito answers a code that has already been spent with.
|
|
51
|
+
* Nothing here ages a code out, so that is the only way to reach it.
|
|
44
52
|
*/
|
|
45
53
|
require(candidate) {
|
|
46
|
-
if (this.#code
|
|
54
|
+
if (this.#code === undefined) {
|
|
55
|
+
throw new SimCognitoExpiredCodeException("Invalid code provided, please request a code again.");
|
|
56
|
+
}
|
|
57
|
+
if (!this.#code.matches(candidate)) {
|
|
47
58
|
throw new SimCognitoCodeMismatchException("Invalid verification code provided, please try again.");
|
|
48
59
|
}
|
|
49
60
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-user-confirmation.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-confirmation.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"sim-cognito-user-confirmation.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-confirmation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,+BAA+B,EAC/B,8BAA8B,GAC/B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAGhF;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,0BAA0B;IACrC,KAAK,CAAyC;IAE9C,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;IAED;;OAEG;IACH,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC;IAC3B,CAAC;IAED;;OAEG;IACH,KAAK;QACH,IAAI,CAAC,KAAK,GAAG,0BAA0B,CAAC,KAAK,EAAE,CAAC;IAClD,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,MAA4B;QACjC,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,SAAS;YAC3B,CAAC,CAAC,0BAA0B,CAAC,KAAK,EAAE;YACpC,CAAC,CAAC,SAAS,CAAC;IAChB,CAAC;IAED;;;;;;OAMG;IACH,OAAO,CAAC,SAA6B;QACnC,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;YAC7B,MAAM,IAAI,8BAA8B,CACtC,qDAAqD,CACtD,CAAC;QACJ,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC;YACnC,MAAM,IAAI,+BAA+B,CACvC,uDAAuD,CACxD,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { SimCognitoUserConfirmation } from "./sim-cognito-user-confirmation.js";
|
|
2
|
+
import { SimCognitoUserStatus } from "./sim-cognito-user-status.js";
|
|
3
|
+
interface SimCognitoUserPasswordResetProperties {
|
|
4
|
+
/** The code the user has outstanding, which a reset issues and spends. */
|
|
5
|
+
readonly confirmation: SimCognitoUserConfirmation;
|
|
6
|
+
/** Where the user is now, which decides whether it can reset at all. */
|
|
7
|
+
readonly status: () => SimCognitoUserStatus;
|
|
8
|
+
/** Move the user to a status. */
|
|
9
|
+
readonly moved: (status: SimCognitoUserStatus) => void;
|
|
10
|
+
/** Give the user a permanent password of its own. */
|
|
11
|
+
readonly chosen: (password: string) => void;
|
|
12
|
+
/** Note that the user changed without moving to another status. */
|
|
13
|
+
readonly changed: () => void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The password reset one simulated user can go through.
|
|
17
|
+
*
|
|
18
|
+
* A reset is two operations apart: the user asks for one and is sent a code,
|
|
19
|
+
* then answers with that code and a password of its own. An administrator
|
|
20
|
+
* starts a third way, by taking the password away and leaving the user in
|
|
21
|
+
* `RESET_REQUIRED` holding the same kind of code.
|
|
22
|
+
*
|
|
23
|
+
* The code is the one `SimCognitoUserConfirmation` holds, because a user has
|
|
24
|
+
* one thing outstanding at a time and a reset code and a sign-up code are the
|
|
25
|
+
* same six digits sent the same way. A test reads it back off the pool for the
|
|
26
|
+
* same reason it reads a sign-up code back: nothing here delivers a message.
|
|
27
|
+
*/
|
|
28
|
+
export declare class SimCognitoUserPasswordReset {
|
|
29
|
+
private readonly confirmation;
|
|
30
|
+
private readonly status;
|
|
31
|
+
private readonly moved;
|
|
32
|
+
private readonly chosen;
|
|
33
|
+
private readonly changed;
|
|
34
|
+
constructor(properties: SimCognitoUserPasswordResetProperties);
|
|
35
|
+
/**
|
|
36
|
+
* Start a reset, issuing the code that finishes it.
|
|
37
|
+
*
|
|
38
|
+
* The user stays where it is: real Cognito moves nobody on for asking, and
|
|
39
|
+
* the password it has goes on working until the reset is confirmed. Asking
|
|
40
|
+
* twice issues a second code and forgets the first, as a resent sign-up code
|
|
41
|
+
* does.
|
|
42
|
+
*/
|
|
43
|
+
start(): void;
|
|
44
|
+
/**
|
|
45
|
+
* Finish a reset with the code that started it.
|
|
46
|
+
*
|
|
47
|
+
* The user reaches `CONFIRMED`, which takes it out of `RESET_REQUIRED` and
|
|
48
|
+
* confirms one that never confirmed its sign-up, as real Cognito does. The
|
|
49
|
+
* old password stops working, and so does the code.
|
|
50
|
+
*/
|
|
51
|
+
confirm(code: string | undefined, password: string): void;
|
|
52
|
+
/**
|
|
53
|
+
* Take the user's password away, and issue the code it sets another with.
|
|
54
|
+
*
|
|
55
|
+
* This is `AdminResetUserPassword`. The user is refused at sign-in until it
|
|
56
|
+
* answers `ConfirmForgotPassword`, which is the whole of what
|
|
57
|
+
* `RESET_REQUIRED` is for.
|
|
58
|
+
*/
|
|
59
|
+
require(): void;
|
|
60
|
+
}
|
|
61
|
+
export {};
|
|
62
|
+
//# sourceMappingURL=sim-cognito-user-password-reset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-user-password-reset.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-password-reset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AACrF,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEpE,UAAU,qCAAqC;IAC7C,0EAA0E;IAC1E,QAAQ,CAAC,YAAY,EAAE,0BAA0B,CAAC;IAElD,wEAAwE;IACxE,QAAQ,CAAC,MAAM,EAAE,MAAM,oBAAoB,CAAC;IAE5C,iCAAiC;IACjC,QAAQ,CAAC,KAAK,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAEvD,qDAAqD;IACrD,QAAQ,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAE5C,mEAAmE;IACnE,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED;;;;;;;;;;;;GAYG;AACH,qBAAa,2BAA2B;IACtC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAA6B;IAC1D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6B;IACpD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAyC;IAC/D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6B;IACpD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAa;IAErC,YAAY,UAAU,EAAE,qCAAqC,EAM5D;IAED;;;;;;;OAOG;IACH,KAAK,IAAI,IAAI,CAIZ;IAED;;;;;;OAMG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAIxD;IAED;;;;;;OAMG;IACH,OAAO,IAAI,IAAI,CAGd;CACF"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { SimCognitoUserStatus } from "./sim-cognito-user-status.js";
|
|
2
|
+
/**
|
|
3
|
+
* The password reset one simulated user can go through.
|
|
4
|
+
*
|
|
5
|
+
* A reset is two operations apart: the user asks for one and is sent a code,
|
|
6
|
+
* then answers with that code and a password of its own. An administrator
|
|
7
|
+
* starts a third way, by taking the password away and leaving the user in
|
|
8
|
+
* `RESET_REQUIRED` holding the same kind of code.
|
|
9
|
+
*
|
|
10
|
+
* The code is the one `SimCognitoUserConfirmation` holds, because a user has
|
|
11
|
+
* one thing outstanding at a time and a reset code and a sign-up code are the
|
|
12
|
+
* same six digits sent the same way. A test reads it back off the pool for the
|
|
13
|
+
* same reason it reads a sign-up code back: nothing here delivers a message.
|
|
14
|
+
*/
|
|
15
|
+
export class SimCognitoUserPasswordReset {
|
|
16
|
+
confirmation;
|
|
17
|
+
status;
|
|
18
|
+
moved;
|
|
19
|
+
chosen;
|
|
20
|
+
changed;
|
|
21
|
+
constructor(properties) {
|
|
22
|
+
this.confirmation = properties.confirmation;
|
|
23
|
+
this.status = properties.status;
|
|
24
|
+
this.moved = properties.moved;
|
|
25
|
+
this.chosen = properties.chosen;
|
|
26
|
+
this.changed = properties.changed;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Start a reset, issuing the code that finishes it.
|
|
30
|
+
*
|
|
31
|
+
* The user stays where it is: real Cognito moves nobody on for asking, and
|
|
32
|
+
* the password it has goes on working until the reset is confirmed. Asking
|
|
33
|
+
* twice issues a second code and forgets the first, as a resent sign-up code
|
|
34
|
+
* does.
|
|
35
|
+
*/
|
|
36
|
+
start() {
|
|
37
|
+
this.status().requireSelfResettable();
|
|
38
|
+
this.confirmation.issue();
|
|
39
|
+
this.changed();
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Finish a reset with the code that started it.
|
|
43
|
+
*
|
|
44
|
+
* The user reaches `CONFIRMED`, which takes it out of `RESET_REQUIRED` and
|
|
45
|
+
* confirms one that never confirmed its sign-up, as real Cognito does. The
|
|
46
|
+
* old password stops working, and so does the code.
|
|
47
|
+
*/
|
|
48
|
+
confirm(code, password) {
|
|
49
|
+
this.status().requireSelfResettable();
|
|
50
|
+
this.confirmation.require(code);
|
|
51
|
+
this.chosen(password);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Take the user's password away, and issue the code it sets another with.
|
|
55
|
+
*
|
|
56
|
+
* This is `AdminResetUserPassword`. The user is refused at sign-in until it
|
|
57
|
+
* answers `ConfirmForgotPassword`, which is the whole of what
|
|
58
|
+
* `RESET_REQUIRED` is for.
|
|
59
|
+
*/
|
|
60
|
+
require() {
|
|
61
|
+
this.status().requireResettable();
|
|
62
|
+
this.moved(SimCognitoUserStatus.resetRequired);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=sim-cognito-user-password-reset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-user-password-reset.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-password-reset.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAmBpE;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,2BAA2B;IACrB,YAAY,CAA6B;IACzC,MAAM,CAA6B;IACnC,KAAK,CAAyC;IAC9C,MAAM,CAA6B;IACnC,OAAO,CAAa;IAErC,YAAY,UAAiD;QAC3D,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,YAAY,CAAC;QAC5C,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QAChC,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;QAC9B,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC;IACpC,CAAC;IAED;;;;;;;OAOG;IACH,KAAK;QACH,IAAI,CAAC,MAAM,EAAE,CAAC,qBAAqB,EAAE,CAAC;QACtC,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC;QAC1B,IAAI,CAAC,OAAO,EAAE,CAAC;IACjB,CAAC;IAED;;;;;;OAMG;IACH,OAAO,CAAC,IAAwB,EAAE,QAAgB;QAChD,IAAI,CAAC,MAAM,EAAE,CAAC,qBAAqB,EAAE,CAAC;QACtC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;IAED;;;;;;OAMG;IACH,OAAO;QACL,IAAI,CAAC,MAAM,EAAE,CAAC,iBAAiB,EAAE,CAAC;QAClC,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,aAAa,CAAC,CAAC;IACjD,CAAC;CACF"}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
export type SimCognitoUserStatusValue = "UNCONFIRMED" | "FORCE_CHANGE_PASSWORD" | "CONFIRMED" | "EXTERNAL_PROVIDER";
|
|
1
|
+
export type SimCognitoUserStatusValue = "UNCONFIRMED" | "FORCE_CHANGE_PASSWORD" | "CONFIRMED" | "RESET_REQUIRED" | "EXTERNAL_PROVIDER";
|
|
2
2
|
/**
|
|
3
3
|
* The status of one simulated user.
|
|
4
4
|
*
|
|
5
|
-
* Only the
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
5
|
+
* Only the statuses this simulation can reach are modelled. A user created by
|
|
6
|
+
* `AdminCreateUser` starts in `FORCE_CHANGE_PASSWORD`, which is what stops it
|
|
7
|
+
* signing in normally on real Cognito, and reaches `CONFIRMED` when an admin
|
|
8
|
+
* sets a permanent password on it. A user that signed itself up with `SignUp`
|
|
9
|
+
* starts in `UNCONFIRMED`, which is what stops that one signing in, and
|
|
10
|
+
* reaches `CONFIRMED` through `ConfirmSignUp` or `AdminConfirmSignUp`. A user
|
|
11
|
+
* an admin sent to `AdminResetUserPassword` is `RESET_REQUIRED` until it sets
|
|
12
|
+
* a password of its own again. A user the pool created for a federated sign-in
|
|
13
|
+
* is `EXTERNAL_PROVIDER` and stays there, because its password is at the
|
|
14
|
+
* provider rather than in the pool. `ARCHIVED`, `COMPROMISED` and `UNKNOWN`
|
|
15
|
+
* belong to threat protection and to accounts Cognito has retired, neither of
|
|
16
|
+
* which is simulated.
|
|
15
17
|
*/
|
|
16
18
|
export declare class SimCognitoUserStatus {
|
|
17
19
|
/**
|
|
@@ -26,6 +28,14 @@ export declare class SimCognitoUserStatus {
|
|
|
26
28
|
* The status a user with a password of its own reaches.
|
|
27
29
|
*/
|
|
28
30
|
static readonly confirmed: SimCognitoUserStatus;
|
|
31
|
+
/**
|
|
32
|
+
* The status a user whose password an administrator reset waits in.
|
|
33
|
+
*
|
|
34
|
+
* The user cannot sign in from here. It has a code to answer
|
|
35
|
+
* `ConfirmForgotPassword` with, and setting a password that way is what
|
|
36
|
+
* takes it back to `CONFIRMED`.
|
|
37
|
+
*/
|
|
38
|
+
static readonly resetRequired: SimCognitoUserStatus;
|
|
29
39
|
/**
|
|
30
40
|
* The status a user created by a federated sign-in stays in.
|
|
31
41
|
*
|
|
@@ -53,6 +63,15 @@ export declare class SimCognitoUserStatus {
|
|
|
53
63
|
* challenge rather than into tokens.
|
|
54
64
|
*/
|
|
55
65
|
get mustChangePassword(): boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Whether the user has to set a password of its own before it can sign in.
|
|
68
|
+
*
|
|
69
|
+
* This is what turns an authentication into `PasswordResetRequiredException`
|
|
70
|
+
* rather than into tokens, and it is the whole point of the status: an
|
|
71
|
+
* administrator has taken the user's password away, and only the user can
|
|
72
|
+
* choose the next one.
|
|
73
|
+
*/
|
|
74
|
+
get mustResetPassword(): boolean;
|
|
56
75
|
/**
|
|
57
76
|
* Whether the user has still to confirm the sign-up it made.
|
|
58
77
|
*
|
|
@@ -60,6 +79,15 @@ export declare class SimCognitoUserStatus {
|
|
|
60
79
|
* which real Cognito answers with even when the password was right.
|
|
61
80
|
*/
|
|
62
81
|
get isUnconfirmed(): boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Whether a user in this status is holding a code it has still to answer
|
|
84
|
+
* with.
|
|
85
|
+
*
|
|
86
|
+
* A user waiting to confirm its sign-up holds the code its pool issued, and
|
|
87
|
+
* one an administrator has reset holds the code it sets a new password with.
|
|
88
|
+
* Nothing else has anything outstanding.
|
|
89
|
+
*/
|
|
90
|
+
get holdsCode(): boolean;
|
|
63
91
|
/**
|
|
64
92
|
* Refuse to confirm a user that is not waiting to be confirmed.
|
|
65
93
|
*
|
|
@@ -68,6 +96,22 @@ export declare class SimCognitoUserStatus {
|
|
|
68
96
|
* `FORCE_CHANGE_PASSWORD` is the new password challenge.
|
|
69
97
|
*/
|
|
70
98
|
requireConfirmable(): void;
|
|
99
|
+
/**
|
|
100
|
+
* Refuse a `ForgotPassword` or `ConfirmForgotPassword` for a user that
|
|
101
|
+
* cannot reset its own password.
|
|
102
|
+
*
|
|
103
|
+
* A user still on a temporary password is refused here and not by
|
|
104
|
+
* `AdminResetUserPassword`: it has the `NEW_PASSWORD_REQUIRED` challenge to
|
|
105
|
+
* answer, so real Cognito sends it to that rather than to a reset code.
|
|
106
|
+
*/
|
|
107
|
+
requireSelfResettable(): void;
|
|
108
|
+
/**
|
|
109
|
+
* Refuse a password reset for a user that has no password in this pool.
|
|
110
|
+
*
|
|
111
|
+
* A federated user signs in at its provider, so there is nothing here to
|
|
112
|
+
* reset and nothing a code could set, whoever asked for the reset.
|
|
113
|
+
*/
|
|
114
|
+
requireResettable(): void;
|
|
71
115
|
/**
|
|
72
116
|
* Refuse to issue another confirmation code to a user that needs none.
|
|
73
117
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-user-status.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-status.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,yBAAyB,GACjC,aAAa,GACb,uBAAuB,GACvB,WAAW,GACX,mBAAmB,CAAC;AAExB
|
|
1
|
+
{"version":3,"file":"sim-cognito-user-status.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-status.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,yBAAyB,GACjC,aAAa,GACb,uBAAuB,GACvB,WAAW,GACX,gBAAgB,GAChB,mBAAmB,CAAC;AAExB;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,oBAAoB;IAC/B;;OAEG;IACH,gBAAuB,WAAW,uBAA2C;IAE7E;;OAEG;IACH,gBAAuB,mBAAmB,uBAExC;IAEF;;OAEG;IACH,gBAAuB,SAAS,uBAAyC;IAEzE;;;;;;OAMG;IACH,gBAAuB,aAAa,uBAElC;IAEF;;;;;;OAMG;IACH,gBAAuB,gBAAgB,uBAErC;IAEF,SAAgB,KAAK,EAAE,yBAAyB,CAAC;IAEjD,OAAO,eAEN;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,gBAAgB,CACrB,SAAS,EAAE,OAAO,GAAG,SAAS,GAC7B,oBAAoB,CAMtB;IAED;;;;;OAKG;IACH,IAAI,kBAAkB,IAAI,OAAO,CAEhC;IAED;;;;;;;OAOG;IACH,IAAI,iBAAiB,IAAI,OAAO,CAE/B;IAED;;;;;OAKG;IACH,IAAI,aAAa,IAAI,OAAO,CAE3B;IAED;;;;;;;OAOG;IACH,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED;;;;;;OAMG;IACH,kBAAkB,IAAI,IAAI,CAMzB;IAED;;;;;;;OAOG;IACH,qBAAqB,IAAI,IAAI,CAQ5B;IAED;;;;;OAKG;IACH,iBAAiB,IAAI,IAAI,CAMxB;IAED;;;;;;OAMG;IACH,iBAAiB,IAAI,IAAI,CAOxB;CACF"}
|
|
@@ -2,16 +2,18 @@ import { SimCognitoInvalidParameterException, SimCognitoNotAuthorizedException,
|
|
|
2
2
|
/**
|
|
3
3
|
* The status of one simulated user.
|
|
4
4
|
*
|
|
5
|
-
* Only the
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
5
|
+
* Only the statuses this simulation can reach are modelled. A user created by
|
|
6
|
+
* `AdminCreateUser` starts in `FORCE_CHANGE_PASSWORD`, which is what stops it
|
|
7
|
+
* signing in normally on real Cognito, and reaches `CONFIRMED` when an admin
|
|
8
|
+
* sets a permanent password on it. A user that signed itself up with `SignUp`
|
|
9
|
+
* starts in `UNCONFIRMED`, which is what stops that one signing in, and
|
|
10
|
+
* reaches `CONFIRMED` through `ConfirmSignUp` or `AdminConfirmSignUp`. A user
|
|
11
|
+
* an admin sent to `AdminResetUserPassword` is `RESET_REQUIRED` until it sets
|
|
12
|
+
* a password of its own again. A user the pool created for a federated sign-in
|
|
13
|
+
* is `EXTERNAL_PROVIDER` and stays there, because its password is at the
|
|
14
|
+
* provider rather than in the pool. `ARCHIVED`, `COMPROMISED` and `UNKNOWN`
|
|
15
|
+
* belong to threat protection and to accounts Cognito has retired, neither of
|
|
16
|
+
* which is simulated.
|
|
15
17
|
*/
|
|
16
18
|
export class SimCognitoUserStatus {
|
|
17
19
|
/**
|
|
@@ -26,6 +28,14 @@ export class SimCognitoUserStatus {
|
|
|
26
28
|
* The status a user with a password of its own reaches.
|
|
27
29
|
*/
|
|
28
30
|
static confirmed = new SimCognitoUserStatus("CONFIRMED");
|
|
31
|
+
/**
|
|
32
|
+
* The status a user whose password an administrator reset waits in.
|
|
33
|
+
*
|
|
34
|
+
* The user cannot sign in from here. It has a code to answer
|
|
35
|
+
* `ConfirmForgotPassword` with, and setting a password that way is what
|
|
36
|
+
* takes it back to `CONFIRMED`.
|
|
37
|
+
*/
|
|
38
|
+
static resetRequired = new SimCognitoUserStatus("RESET_REQUIRED");
|
|
29
39
|
/**
|
|
30
40
|
* The status a user created by a federated sign-in stays in.
|
|
31
41
|
*
|
|
@@ -62,6 +72,17 @@ export class SimCognitoUserStatus {
|
|
|
62
72
|
get mustChangePassword() {
|
|
63
73
|
return this.value === "FORCE_CHANGE_PASSWORD";
|
|
64
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* Whether the user has to set a password of its own before it can sign in.
|
|
77
|
+
*
|
|
78
|
+
* This is what turns an authentication into `PasswordResetRequiredException`
|
|
79
|
+
* rather than into tokens, and it is the whole point of the status: an
|
|
80
|
+
* administrator has taken the user's password away, and only the user can
|
|
81
|
+
* choose the next one.
|
|
82
|
+
*/
|
|
83
|
+
get mustResetPassword() {
|
|
84
|
+
return this.value === "RESET_REQUIRED";
|
|
85
|
+
}
|
|
65
86
|
/**
|
|
66
87
|
* Whether the user has still to confirm the sign-up it made.
|
|
67
88
|
*
|
|
@@ -71,6 +92,17 @@ export class SimCognitoUserStatus {
|
|
|
71
92
|
get isUnconfirmed() {
|
|
72
93
|
return this.value === "UNCONFIRMED";
|
|
73
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* Whether a user in this status is holding a code it has still to answer
|
|
97
|
+
* with.
|
|
98
|
+
*
|
|
99
|
+
* A user waiting to confirm its sign-up holds the code its pool issued, and
|
|
100
|
+
* one an administrator has reset holds the code it sets a new password with.
|
|
101
|
+
* Nothing else has anything outstanding.
|
|
102
|
+
*/
|
|
103
|
+
get holdsCode() {
|
|
104
|
+
return this.isUnconfirmed || this.mustResetPassword;
|
|
105
|
+
}
|
|
74
106
|
/**
|
|
75
107
|
* Refuse to confirm a user that is not waiting to be confirmed.
|
|
76
108
|
*
|
|
@@ -83,6 +115,31 @@ export class SimCognitoUserStatus {
|
|
|
83
115
|
throw new SimCognitoNotAuthorizedException(`User cannot be confirmed. Current status is ${this.value}`);
|
|
84
116
|
}
|
|
85
117
|
}
|
|
118
|
+
/**
|
|
119
|
+
* Refuse a `ForgotPassword` or `ConfirmForgotPassword` for a user that
|
|
120
|
+
* cannot reset its own password.
|
|
121
|
+
*
|
|
122
|
+
* A user still on a temporary password is refused here and not by
|
|
123
|
+
* `AdminResetUserPassword`: it has the `NEW_PASSWORD_REQUIRED` challenge to
|
|
124
|
+
* answer, so real Cognito sends it to that rather than to a reset code.
|
|
125
|
+
*/
|
|
126
|
+
requireSelfResettable() {
|
|
127
|
+
this.requireResettable();
|
|
128
|
+
if (this.mustChangePassword) {
|
|
129
|
+
throw new SimCognitoNotAuthorizedException("User password cannot be reset in the current state.");
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Refuse a password reset for a user that has no password in this pool.
|
|
134
|
+
*
|
|
135
|
+
* A federated user signs in at its provider, so there is nothing here to
|
|
136
|
+
* reset and nothing a code could set, whoever asked for the reset.
|
|
137
|
+
*/
|
|
138
|
+
requireResettable() {
|
|
139
|
+
if (this.value === "EXTERNAL_PROVIDER") {
|
|
140
|
+
throw new SimCognitoNotAuthorizedException("User password cannot be reset in the current state.");
|
|
141
|
+
}
|
|
142
|
+
}
|
|
86
143
|
/**
|
|
87
144
|
* Refuse to issue another confirmation code to a user that needs none.
|
|
88
145
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-user-status.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-status.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mCAAmC,EACnC,gCAAgC,GACjC,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-user-status.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-status.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mCAAmC,EACnC,gCAAgC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;QAChB,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;YACxB,MAAM,IAAI,gCAAgC,CACxC,+CAA+C,IAAI,CAAC,KAAK,EAAE,CAC5D,CAAC;QACJ,CAAC;IACH,CAAC;IAED;;;;;;;OAOG;IACH,qBAAqB;QACnB,IAAI,CAAC,iBAAiB,EAAE,CAAC;QAEzB,IAAI,IAAI,CAAC,kBAAkB,EAAE,CAAC;YAC5B,MAAM,IAAI,gCAAgC,CACxC,qDAAqD,CACtD,CAAC;QACJ,CAAC;IACH,CAAC;IAED;;;;;OAKG;IACH,iBAAiB;QACf,IAAI,IAAI,CAAC,KAAK,KAAK,mBAAmB,EAAE,CAAC;YACvC,MAAM,IAAI,gCAAgC,CACxC,qDAAqD,CACtD,CAAC;QACJ,CAAC;IACH,CAAC;IAED;;;;;;OAMG;IACH,iBAAiB;QACf,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;YACxB,MAAM,IAAI,mCAAmC,CAC3C,4CAA4C,IAAI,CAAC,KAAK,aAAa;gBACjE,gCAAgC,CACnC,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { SimClock } from "../../../../util/clock/sim-clock.js";
|
|
2
2
|
import type { SimCognitoFederatedIdentity } from "../idp/sim-cognito-federated-identity.js";
|
|
3
3
|
import { SimCognitoUserMfa } from "./mfa/sim-cognito-user-mfa.js";
|
|
4
|
+
import { SimCognitoUserPasswordReset } from "./sim-cognito-user-password-reset.js";
|
|
4
5
|
import type { SimCognitoAttributeType, SimCognitoUserAttributes } from "./sim-cognito-user-attributes.js";
|
|
5
6
|
import { SimCognitoUserPassword } from "./sim-cognito-user-password.js";
|
|
6
7
|
import { SimCognitoUserStatus } from "./sim-cognito-user-status.js";
|
|
@@ -43,6 +44,7 @@ export declare class SimCognitoUser {
|
|
|
43
44
|
private readonly userAttributes;
|
|
44
45
|
private readonly confirmation;
|
|
45
46
|
private readonly userMfa;
|
|
47
|
+
private readonly reset;
|
|
46
48
|
private readonly federatedIdentity;
|
|
47
49
|
private userStatus;
|
|
48
50
|
private userPassword;
|
|
@@ -89,12 +91,13 @@ export declare class SimCognitoUser {
|
|
|
89
91
|
*/
|
|
90
92
|
get attributeValues(): ReadonlyMap<string, string>;
|
|
91
93
|
/**
|
|
92
|
-
* The
|
|
94
|
+
* The code this user has outstanding, if it has one.
|
|
93
95
|
*
|
|
94
96
|
* Real Cognito sends the code to the user and never reports it back. Nothing
|
|
95
97
|
* here delivers a message, so a test reads the code from the pool instead,
|
|
96
|
-
* which is the divergence that makes a sign-up flow testable at all. A
|
|
97
|
-
*
|
|
98
|
+
* which is the divergence that makes a sign-up flow testable at all. A user
|
|
99
|
+
* with nothing outstanding has none: a code settles one sign-up or one
|
|
100
|
+
* password reset, and settling it spends it.
|
|
98
101
|
*/
|
|
99
102
|
get confirmationCode(): string | undefined;
|
|
100
103
|
/**
|
|
@@ -103,6 +106,11 @@ export declare class SimCognitoUser {
|
|
|
103
106
|
* `UserLastModifiedDate` on, as every other change to a user does.
|
|
104
107
|
*/
|
|
105
108
|
get mfa(): SimCognitoUserMfa;
|
|
109
|
+
/**
|
|
110
|
+
* The password reset this user can go through, which is what a forgotten
|
|
111
|
+
* password is replaced by and what an administrator can force.
|
|
112
|
+
*/
|
|
113
|
+
get passwordReset(): SimCognitoUserPasswordReset;
|
|
106
114
|
/**
|
|
107
115
|
* Set the password an admin gave this user.
|
|
108
116
|
*
|
|
@@ -160,18 +168,13 @@ export declare class SimCognitoUser {
|
|
|
160
168
|
*/
|
|
161
169
|
disable(): void;
|
|
162
170
|
/**
|
|
163
|
-
* Move the user to a status, and let
|
|
171
|
+
* Move the user to a status, and let the code it holds follow.
|
|
164
172
|
*
|
|
165
|
-
* A code
|
|
166
|
-
* leaves
|
|
167
|
-
*
|
|
173
|
+
* A code settles one thing and no more, so it goes as soon as the user
|
|
174
|
+
* leaves the status that issued it, and a user an administrator has sent to
|
|
175
|
+
* `RESET_REQUIRED` is issued the one it resets with on the way in.
|
|
168
176
|
*/
|
|
169
177
|
private moveTo;
|
|
170
|
-
/**
|
|
171
|
-
* The `identities` attribute a federated user reports, which a local user
|
|
172
|
-
* does not have at all.
|
|
173
|
-
*/
|
|
174
|
-
private identityAttribute;
|
|
175
178
|
private touch;
|
|
176
179
|
}
|
|
177
180
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-user.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AAC5F,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,KAAK,EACV,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,UAAU,wBAAwB;IAChC,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,UAAU,EAAE,wBAAwB,CAAC;IAC9C,QAAQ,CAAC,QAAQ,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAC;IAEvD;;;;OAIG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAEnD;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,2BAA2B,GAAG,SAAS,CAAC;IAC5D,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;CAC1B;AAED;;;;;;;;;;;GAWG;AACH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C,MAAM,EAAE,MAAM,CAAC,CAEjD;IAED;;;;;;;;OAQG;IACH,IAAI,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAEzC;IAED;;;;OAIG;IACH,IAAI,GAAG,IAAI,iBAAiB,CAE3B;IAED;;;OAGG;IACH,IAAI,aAAa,IAAI,2BAA2B,CAE/C;IAED;;;;;;OAMG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI,CAGlE;IAED;;;;;;OAMG;IACH,sBAAsB,IAAI,IAAI,CAI7B;IAED;;;;;OAKG;IACH,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAI5C;IAED;;OAEG;IACH,OAAO,IAAI,IAAI,CAGd;IAED;;;;;;OAMG;IACH,gBAAgB,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAG/C;IAED;;;;;;;OAOG;IACH,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAElD;IAED;;OAEG;IACH,gBAAgB,CACd,SAAS,EAAE,SAAS,uBAAuB,EAAE,GAAG,SAAS,GACxD,IAAI,CAGN;IAED;;OAEG;IACH,MAAM,IAAI,IAAI,CAGb;IAED;;OAEG;IACH,OAAO,IAAI,IAAI,CAGd;IAED;;;;;;OAMG;IACH,OAAO,CAAC,MAAM;IAMd,OAAO,CAAC,KAAK;CAGd"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SimCognitoUserMfa } from "./mfa/sim-cognito-user-mfa.js";
|
|
2
2
|
import { SimCognitoUserConfirmation } from "./sim-cognito-user-confirmation.js";
|
|
3
|
+
import { SimCognitoUserPasswordReset } from "./sim-cognito-user-password-reset.js";
|
|
3
4
|
import { SimCognitoUserPassword } from "./sim-cognito-user-password.js";
|
|
4
5
|
import { SimCognitoUserStatus } from "./sim-cognito-user-status.js";
|
|
5
6
|
/**
|
|
@@ -22,6 +23,7 @@ export class SimCognitoUser {
|
|
|
22
23
|
userAttributes;
|
|
23
24
|
confirmation;
|
|
24
25
|
userMfa;
|
|
26
|
+
reset;
|
|
25
27
|
federatedIdentity;
|
|
26
28
|
userStatus;
|
|
27
29
|
userPassword;
|
|
@@ -45,6 +47,19 @@ export class SimCognitoUser {
|
|
|
45
47
|
this.touch();
|
|
46
48
|
},
|
|
47
49
|
});
|
|
50
|
+
this.reset = new SimCognitoUserPasswordReset({
|
|
51
|
+
confirmation: this.confirmation,
|
|
52
|
+
status: () => this.userStatus,
|
|
53
|
+
moved: (status) => {
|
|
54
|
+
this.moveTo(status);
|
|
55
|
+
},
|
|
56
|
+
chosen: (password) => {
|
|
57
|
+
this.setPassword(password, true);
|
|
58
|
+
},
|
|
59
|
+
changed: () => {
|
|
60
|
+
this.touch();
|
|
61
|
+
},
|
|
62
|
+
});
|
|
48
63
|
}
|
|
49
64
|
/**
|
|
50
65
|
* When the user last changed.
|
|
@@ -78,7 +93,7 @@ export class SimCognitoUser {
|
|
|
78
93
|
get attributes() {
|
|
79
94
|
return [
|
|
80
95
|
{ Name: "sub", Value: this.sub },
|
|
81
|
-
...this.
|
|
96
|
+
...(this.federatedIdentity?.attributes() ?? []),
|
|
82
97
|
...this.userAttributes.entries,
|
|
83
98
|
];
|
|
84
99
|
}
|
|
@@ -102,12 +117,13 @@ export class SimCognitoUser {
|
|
|
102
117
|
return this.userAttributes.values;
|
|
103
118
|
}
|
|
104
119
|
/**
|
|
105
|
-
* The
|
|
120
|
+
* The code this user has outstanding, if it has one.
|
|
106
121
|
*
|
|
107
122
|
* Real Cognito sends the code to the user and never reports it back. Nothing
|
|
108
123
|
* here delivers a message, so a test reads the code from the pool instead,
|
|
109
|
-
* which is the divergence that makes a sign-up flow testable at all. A
|
|
110
|
-
*
|
|
124
|
+
* which is the divergence that makes a sign-up flow testable at all. A user
|
|
125
|
+
* with nothing outstanding has none: a code settles one sign-up or one
|
|
126
|
+
* password reset, and settling it spends it.
|
|
111
127
|
*/
|
|
112
128
|
get confirmationCode() {
|
|
113
129
|
return this.confirmation.code;
|
|
@@ -120,6 +136,13 @@ export class SimCognitoUser {
|
|
|
120
136
|
get mfa() {
|
|
121
137
|
return this.userMfa;
|
|
122
138
|
}
|
|
139
|
+
/**
|
|
140
|
+
* The password reset this user can go through, which is what a forgotten
|
|
141
|
+
* password is replaced by and what an administrator can force.
|
|
142
|
+
*/
|
|
143
|
+
get passwordReset() {
|
|
144
|
+
return this.reset;
|
|
145
|
+
}
|
|
123
146
|
/**
|
|
124
147
|
* Set the password an admin gave this user.
|
|
125
148
|
*
|
|
@@ -205,29 +228,17 @@ export class SimCognitoUser {
|
|
|
205
228
|
this.touch();
|
|
206
229
|
}
|
|
207
230
|
/**
|
|
208
|
-
* Move the user to a status, and let
|
|
231
|
+
* Move the user to a status, and let the code it holds follow.
|
|
209
232
|
*
|
|
210
|
-
* A code
|
|
211
|
-
* leaves
|
|
212
|
-
*
|
|
233
|
+
* A code settles one thing and no more, so it goes as soon as the user
|
|
234
|
+
* leaves the status that issued it, and a user an administrator has sent to
|
|
235
|
+
* `RESET_REQUIRED` is issued the one it resets with on the way in.
|
|
213
236
|
*/
|
|
214
237
|
moveTo(status) {
|
|
215
238
|
this.userStatus = status;
|
|
216
239
|
this.confirmation.settle(status);
|
|
217
240
|
this.touch();
|
|
218
241
|
}
|
|
219
|
-
/**
|
|
220
|
-
* The `identities` attribute a federated user reports, which a local user
|
|
221
|
-
* does not have at all.
|
|
222
|
-
*/
|
|
223
|
-
identityAttribute() {
|
|
224
|
-
if (this.federatedIdentity === undefined) {
|
|
225
|
-
return [];
|
|
226
|
-
}
|
|
227
|
-
return [
|
|
228
|
-
{ Name: "identities", Value: this.federatedIdentity.toAttributeValue() },
|
|
229
|
-
];
|
|
230
|
-
}
|
|
231
242
|
touch() {
|
|
232
243
|
this.modifiedDate = this.clock.now();
|
|
233
244
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-user.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-user.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AAKnF,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAwBpE;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,cAAc;IACT,QAAQ,CAAqB;IAC7B,GAAG,CAAS;IACZ,YAAY,CAAO;IAElB,KAAK,CAAW;IAChB,cAAc,CAA2B;IACzC,YAAY,CAA6B;IACzC,OAAO,CAAoB;IAC3B,KAAK,CAA8B;IACnC,iBAAiB,CAA0C;IACpE,UAAU,CAAuB;IACjC,YAAY,CAAqC;IACjD,SAAS,GAAG,IAAI,CAAC;IACjB,YAAY,CAAO;IAE3B,YAAY,UAAoC;QAC9C,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;QACpC,IAAI,CAAC,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC;QAC1B,IAAI,CAAC,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;QAC5C,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,QAAQ,CAAC;QACxC,IAAI,CAAC,iBAAiB,GAAG,UAAU,CAAC,QAAQ,CAAC;QAC7C,IAAI,CAAC,UAAU;YACb,UAAU,CAAC,MAAM,IAAI,oBAAoB,CAAC,mB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