@kensio/yulin 1.18.2 → 1.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sdk/wire/sim-sdk-wire-operation.d.ts +15 -0
- package/dist/sdk/wire/sim-sdk-wire-operation.d.ts.map +1 -1
- package/dist/sdk/wire/sim-sdk-wire-operation.js +54 -2
- package/dist/sdk/wire/sim-sdk-wire-operation.js.map +1 -1
- package/dist/serve/http/api/sim-aws-api-endpoint.d.ts +3 -0
- package/dist/serve/http/api/sim-aws-api-endpoint.d.ts.map +1 -1
- package/dist/serve/http/api/sim-aws-api-endpoint.js +10 -2
- package/dist/serve/http/api/sim-aws-api-endpoint.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-lambda-collaborators.d.ts +6 -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 +6 -0
- package/dist/service/aws/factory/sim-aws-lambda-collaborators.js.map +1 -1
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.d.ts.map +1 -1
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js +5 -0
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js.map +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.d.ts +5 -4
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.d.ts.map +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.js +5 -4
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.js.map +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-mfa.d.ts +13 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-mfa.d.ts.map +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-mfa.js +30 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-mfa.js.map +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.d.ts.map +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js +9 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js.map +1 -1
- package/dist/service/cognito/command/auth/auth.command.d.ts +5 -0
- package/dist/service/cognito/command/auth/auth.command.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-answering-user.d.ts +22 -0
- package/dist/service/cognito/command/auth/sim-cognito-answering-user.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-answering-user.js +25 -0
- package/dist/service/cognito/command/auth/sim-cognito-answering-user.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-challenge.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-challenge.js +9 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-challenge.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts +6 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js +23 -5
- package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.d.ts +7 -3
- package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.js +9 -3
- package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-flow.d.ts +6 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-flow.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-flow.js +6 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-flow.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-flows.d.ts +8 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-flows.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-flows.js +16 -2
- package/dist/service/cognito/command/auth/sim-cognito-auth-flows.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-parameters.d.ts +7 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-parameters.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-parameters.js +16 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-parameters.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-available-challenges.d.ts +35 -0
- package/dist/service/cognito/command/auth/sim-cognito-available-challenges.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-available-challenges.js +83 -0
- package/dist/service/cognito/command/auth/sim-cognito-available-challenges.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-challenge-responses.d.ts +3 -0
- package/dist/service/cognito/command/auth/sim-cognito-challenge-responses.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-challenge-responses.js +18 -0
- package/dist/service/cognito/command/auth/sim-cognito-challenge-responses.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-first-factor-challenge.d.ts +54 -0
- package/dist/service/cognito/command/auth/sim-cognito-first-factor-challenge.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-first-factor-challenge.js +87 -0
- package/dist/service/cognito/command/auth/sim-cognito-first-factor-challenge.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-first-factor-response.d.ts +55 -0
- package/dist/service/cognito/command/auth/sim-cognito-first-factor-response.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-first-factor-response.js +64 -0
- package/dist/service/cognito/command/auth/sim-cognito-first-factor-response.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-mfa-challenge.js +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-mfa-challenge.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.d.ts +2 -1
- package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.js +2 -2
- package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-password-response.d.ts +31 -0
- package/dist/service/cognito/command/auth/sim-cognito-password-response.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-password-response.js +39 -0
- package/dist/service/cognito/command/auth/sim-cognito-password-response.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.js +7 -2
- package/dist/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-user-auth-sign-in.d.ts +44 -0
- package/dist/service/cognito/command/auth/sim-cognito-user-auth-sign-in.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-user-auth-sign-in.js +62 -0
- package/dist/service/cognito/command/auth/sim-cognito-user-auth-sign-in.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-web-authn-response.d.ts +30 -0
- package/dist/service/cognito/command/auth/sim-cognito-web-authn-response.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-web-authn-response.js +36 -0
- package/dist/service/cognito/command/auth/sim-cognito-web-authn-response.js.map +1 -0
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.d.ts.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.js +0 -1
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.js.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.d.ts.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.js +1 -0
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.js.map +1 -1
- package/dist/service/cognito/command/client/user-pool-client.command.d.ts +1 -0
- package/dist/service/cognito/command/client/user-pool-client.command.d.ts.map +1 -1
- package/dist/service/cognito/command/hosted/hosted-auth.command.d.ts +22 -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 +4 -4
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.js +4 -4
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.d.ts +6 -0
- 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 +2 -1
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.js.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-passkey-sign-in.d.ts +71 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-passkey-sign-in.d.ts.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-passkey-sign-in.js +76 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-passkey-sign-in.js.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.d.ts +16 -7
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.d.ts.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.js +26 -7
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.js.map +1 -1
- 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 +9 -0
- package/dist/service/cognito/command/sim-cognito-commands.js.map +1 -1
- package/dist/service/cognito/command/sim-cognito-page.d.ts +10 -0
- package/dist/service/cognito/command/sim-cognito-page.d.ts.map +1 -1
- package/dist/service/cognito/command/sim-cognito-page.js +11 -7
- package/dist/service/cognito/command/sim-cognito-page.js.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-web-authn-commands.d.ts +49 -0
- package/dist/service/cognito/command/user/sim-cognito-web-authn-commands.d.ts.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-web-authn-commands.js +88 -0
- package/dist/service/cognito/command/user/sim-cognito-web-authn-commands.js.map +1 -0
- package/dist/service/cognito/command/user/web-authn.command.d.ts +87 -0
- package/dist/service/cognito/command/user/web-authn.command.d.ts.map +1 -0
- package/dist/service/cognito/command/user/web-authn.command.js +2 -0
- package/dist/service/cognito/command/user/web-authn.command.js.map +1 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.d.ts +4 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.js +4 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.d.ts +5 -3
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.js +5 -4
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts +4 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js +9 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js.map +1 -1
- package/dist/service/cognito/command/user-pool/user-pool-mfa.command.d.ts +2 -3
- package/dist/service/cognito/command/user-pool/user-pool-mfa.command.d.ts.map +1 -1
- package/dist/service/cognito/error/sim-cognito-managed-login.error.d.ts +24 -0
- package/dist/service/cognito/error/sim-cognito-managed-login.error.d.ts.map +1 -1
- package/dist/service/cognito/error/sim-cognito-managed-login.error.js +37 -0
- package/dist/service/cognito/error/sim-cognito-managed-login.error.js.map +1 -1
- package/dist/service/cognito/error/sim-cognito-web-authn.error.d.ts +56 -0
- package/dist/service/cognito/error/sim-cognito-web-authn.error.d.ts.map +1 -0
- package/dist/service/cognito/error/sim-cognito-web-authn.error.js +66 -0
- package/dist/service/cognito/error/sim-cognito-web-authn.error.js.map +1 -0
- package/dist/service/cognito/index.d.ts +9 -1
- package/dist/service/cognito/index.d.ts.map +1 -1
- package/dist/service/cognito/index.js +7 -0
- package/dist/service/cognito/index.js.map +1 -1
- package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.d.ts +2 -2
- package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.d.ts.map +1 -1
- package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.js +4 -2
- package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.js.map +1 -1
- package/dist/service/cognito/sdk/sim-cognito-sdk-web-authn-routes.d.ts +11 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-web-authn-routes.d.ts.map +1 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-web-authn-routes.js +28 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-web-authn-routes.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-managed-login.d.ts +4 -2
- package/dist/service/cognito/serve/page/sim-cognito-managed-login.d.ts.map +1 -1
- package/dist/service/cognito/serve/page/sim-cognito-managed-login.js +9 -3
- package/dist/service/cognito/serve/page/sim-cognito-managed-login.js.map +1 -1
- package/dist/service/cognito/serve/page/sim-cognito-passkey-page.d.ts +23 -0
- package/dist/service/cognito/serve/page/sim-cognito-passkey-page.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-passkey-page.js +36 -0
- package/dist/service/cognito/serve/page/sim-cognito-passkey-page.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.d.ts +13 -1
- package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.d.ts.map +1 -1
- package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.js +24 -2
- package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.js.map +1 -1
- package/dist/service/cognito/sim-cognito-user-factors.d.ts +25 -0
- package/dist/service/cognito/sim-cognito-user-factors.d.ts.map +1 -1
- package/dist/service/cognito/sim-cognito-user-factors.js +37 -0
- package/dist/service/cognito/sim-cognito-user-factors.js.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.d.ts +33 -2
- package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.js +27 -12
- package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.js.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.d.ts +5 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.js +12 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.js.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.d.ts +10 -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 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.js.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-auth-session-validity.d.ts +27 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-auth-session-validity.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-auth-session-validity.js +55 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-auth-session-validity.js.map +1 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.d.ts +6 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.js +6 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.js.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.d.ts +6 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.js +7 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.js.map +1 -1
- package/dist/service/cognito/user-pool/mfa/sim-cognito-relying-party.d.ts +16 -0
- package/dist/service/cognito/user-pool/mfa/sim-cognito-relying-party.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/mfa/sim-cognito-relying-party.js +32 -0
- package/dist/service/cognito/user-pool/mfa/sim-cognito-relying-party.js.map +1 -0
- package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.d.ts +16 -0
- package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.js +29 -0
- package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.js.map +1 -1
- package/dist/service/cognito/user-pool/mfa/sim-cognito-web-authn-configuration.d.ts +46 -0
- package/dist/service/cognito/user-pool/mfa/sim-cognito-web-authn-configuration.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/mfa/sim-cognito-web-authn-configuration.js +73 -0
- package/dist/service/cognito/user-pool/mfa/sim-cognito-web-authn-configuration.js.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-password-policy.d.ts +1 -9
- package/dist/service/cognito/user-pool/sim-cognito-password-policy.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-password-policy.js.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-sign-in-policy.d.ts +60 -0
- package/dist/service/cognito/user-pool/sim-cognito-sign-in-policy.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-sign-in-policy.js +100 -0
- package/dist/service/cognito/user-pool/sim-cognito-sign-in-policy.js.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts +11 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js +12 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool.d.ts +48 -69
- package/dist/service/cognito/user-pool/sim-cognito-user-pool.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool.js +58 -73
- package/dist/service/cognito/user-pool/sim-cognito-user-pool.js.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts +13 -18
- 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 +23 -24
- package/dist/service/cognito/user-pool/user/sim-cognito-user.js.map +1 -1
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-user-web-authn.d.ts +73 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-user-web-authn.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-user-web-authn.js +113 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-user-web-authn.js.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-assertion.d.ts +22 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-assertion.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-assertion.js +53 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-assertion.js.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-attested-key.d.ts +15 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-attested-key.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-attested-key.js +68 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-attested-key.js.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-ceremony.d.ts +33 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-ceremony.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-ceremony.js +67 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-ceremony.js.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-client-data.d.ts +24 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-client-data.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-client-data.js +45 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-client-data.js.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-creation-options.d.ts +28 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-creation-options.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-creation-options.js +41 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-creation-options.js.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-credential.d.ts +69 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-credential.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-credential.js +69 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-credential.js.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-device.d.ts +39 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-device.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-device.js +90 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-device.js.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-document.d.ts +111 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-document.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-document.js +2 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-document.js.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-keys.d.ts +37 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-keys.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-keys.js +39 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-keys.js.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-public-key.d.ts +21 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-public-key.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-public-key.js +45 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-public-key.js.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-signing.d.ts +52 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-signing.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-signing.js +98 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-signing.js.map +1 -0
- package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-path.d.ts +5 -4
- package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-path.d.ts.map +1 -1
- package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-path.js +17 -4
- package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-path.js.map +1 -1
- package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-request.d.ts +8 -1
- package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-request.d.ts.map +1 -1
- package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-request.js +10 -3
- package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-request.js.map +1 -1
- package/dist/service/iam/sigv4/sim-iam-sigv4-signature-check.js +1 -1
- package/dist/service/iam/sigv4/sim-iam-sigv4-signature-check.js.map +1 -1
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-creator.d.ts +26 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-creator.d.ts.map +1 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-creator.js +32 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-creator.js.map +1 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-properties.d.ts +40 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-properties.d.ts.map +1 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-properties.js +42 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-properties.js.map +1 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-property-rules.d.ts +12 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-property-rules.d.ts.map +1 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-property-rules.js +26 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-property-rules.js.map +1 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-remover.d.ts +13 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-remover.d.ts.map +1 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-remover.js +20 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-remover.js.map +1 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-destinations.d.ts +26 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-destinations.d.ts.map +1 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-destinations.js +47 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-destinations.js.map +1 -0
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-dead-letter-parser.d.ts +20 -0
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-dead-letter-parser.d.ts.map +1 -0
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-dead-letter-parser.js +29 -0
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-dead-letter-parser.js.map +1 -0
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-function-properties-parser.d.ts +3 -0
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-function-properties-parser.d.ts.map +1 -1
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-function-properties-parser.js +4 -0
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-function-properties-parser.js.map +1 -1
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.d.ts.map +1 -1
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.js +5 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.js.map +1 -1
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.d.ts +1 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.d.ts.map +1 -1
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.js +8 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.js.map +1 -1
- package/dist/service/lambda/cfn/sim-cfn-lambda-target-arn.d.ts +35 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-target-arn.d.ts.map +1 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-target-arn.js +73 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-target-arn.js.map +1 -0
- package/dist/service/lambda/command/create-function/create-function-input.d.ts +1 -0
- package/dist/service/lambda/command/create-function/create-function-input.d.ts.map +1 -1
- package/dist/service/lambda/command/create-function/create-function-input.js +2 -0
- package/dist/service/lambda/command/create-function/create-function-input.js.map +1 -1
- package/dist/service/lambda/command/create-function/create-function.command.d.ts +2 -0
- package/dist/service/lambda/command/create-function/create-function.command.d.ts.map +1 -1
- package/dist/service/lambda/command/delete-function/delete-function.handler.d.ts +5 -1
- package/dist/service/lambda/command/delete-function/delete-function.handler.d.ts.map +1 -1
- package/dist/service/lambda/command/delete-function/delete-function.handler.js +5 -1
- package/dist/service/lambda/command/delete-function/delete-function.handler.js.map +1 -1
- package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.command.d.ts +24 -0
- package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.command.d.ts.map +1 -0
- package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.command.js +5 -0
- package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.command.js.map +1 -0
- package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.handler.d.ts +24 -0
- package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.handler.js +27 -0
- package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.handler.js.map +1 -0
- package/dist/service/lambda/command/event-invoke-config/event-invoke-config-authorizer.d.ts +29 -0
- package/dist/service/lambda/command/event-invoke-config/event-invoke-config-authorizer.d.ts.map +1 -0
- package/dist/service/lambda/command/event-invoke-config/event-invoke-config-authorizer.js +39 -0
- package/dist/service/lambda/command/event-invoke-config/event-invoke-config-authorizer.js.map +1 -0
- package/dist/service/lambda/command/event-invoke-config/event-invoke-config-input.d.ts +32 -0
- package/dist/service/lambda/command/event-invoke-config/event-invoke-config-input.d.ts.map +1 -0
- package/dist/service/lambda/command/event-invoke-config/event-invoke-config-input.js +62 -0
- package/dist/service/lambda/command/event-invoke-config/event-invoke-config-input.js.map +1 -0
- package/dist/service/lambda/command/event-invoke-config/event-invoke-config-request.d.ts +49 -0
- package/dist/service/lambda/command/event-invoke-config/event-invoke-config-request.d.ts.map +1 -0
- package/dist/service/lambda/command/event-invoke-config/event-invoke-config-request.js +44 -0
- package/dist/service/lambda/command/event-invoke-config/event-invoke-config-request.js.map +1 -0
- package/dist/service/lambda/command/event-invoke-config/sim-lambda-event-invoke-config-commands.d.ts +49 -0
- package/dist/service/lambda/command/event-invoke-config/sim-lambda-event-invoke-config-commands.d.ts.map +1 -0
- package/dist/service/lambda/command/event-invoke-config/sim-lambda-event-invoke-config-commands.js +49 -0
- package/dist/service/lambda/command/event-invoke-config/sim-lambda-event-invoke-config-commands.js.map +1 -0
- package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts +4 -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/command/get-function-event-invoke-config/get-function-event-invoke-config.command.d.ts +25 -0
- package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.command.d.ts.map +1 -0
- package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.command.js +5 -0
- package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.command.js.map +1 -0
- package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.handler.d.ts +23 -0
- package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.handler.js +27 -0
- package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.handler.js.map +1 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation-settings.d.ts +31 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation-settings.d.ts.map +1 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation-settings.js +24 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation-settings.js.map +1 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation.d.ts +43 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation.d.ts.map +1 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation.js +64 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation.js.map +1 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocations.d.ts +26 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocations.d.ts.map +1 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocations.js +33 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocations.js.map +1 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-outcome.d.ts +63 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-outcome.d.ts.map +1 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-outcome.js +88 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-outcome.js.map +1 -0
- package/dist/service/lambda/command/invoke/invoke-dispatcher.d.ts +10 -3
- package/dist/service/lambda/command/invoke/invoke-dispatcher.d.ts.map +1 -1
- package/dist/service/lambda/command/invoke/invoke-dispatcher.js +16 -17
- package/dist/service/lambda/command/invoke/invoke-dispatcher.js.map +1 -1
- package/dist/service/lambda/command/invoke/invoke-payload.d.ts +16 -0
- package/dist/service/lambda/command/invoke/invoke-payload.d.ts.map +1 -1
- package/dist/service/lambda/command/invoke/invoke-payload.js +14 -4
- package/dist/service/lambda/command/invoke/invoke-payload.js.map +1 -1
- package/dist/service/lambda/command/invoke/invoke.handler.d.ts +4 -0
- package/dist/service/lambda/command/invoke/invoke.handler.d.ts.map +1 -1
- package/dist/service/lambda/command/invoke/invoke.handler.js +6 -2
- package/dist/service/lambda/command/invoke/invoke.handler.js.map +1 -1
- package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.command.d.ts +28 -0
- package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.command.d.ts.map +1 -0
- package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.command.js +5 -0
- package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.command.js.map +1 -0
- package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.handler.d.ts +23 -0
- package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.handler.js +31 -0
- package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.handler.js.map +1 -0
- package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.command.d.ts +31 -0
- package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.command.d.ts.map +1 -0
- package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.command.js +5 -0
- package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.command.js.map +1 -0
- package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.handler.d.ts +24 -0
- package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.handler.js +32 -0
- package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.handler.js.map +1 -0
- package/dist/service/lambda/command/sim-lambda-command.types.d.ts +5 -0
- package/dist/service/lambda/command/sim-lambda-command.types.d.ts.map +1 -1
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.d.ts.map +1 -1
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.js +2 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.js.map +1 -1
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration.command.d.ts +6 -4
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration.command.d.ts.map +1 -1
- package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.command.d.ts +30 -0
- package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.command.d.ts.map +1 -0
- package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.command.js +5 -0
- package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.command.js.map +1 -0
- package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.handler.d.ts +25 -0
- package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.handler.js +33 -0
- package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.handler.js.map +1 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-bus.d.ts +16 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-bus.d.ts.map +1 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-bus.js +31 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-bus.js.map +1 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-function.d.ts +13 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-function.d.ts.map +1 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-function.js +25 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-function.js.map +1 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-queue.d.ts +15 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-queue.d.ts.map +1 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-queue.js +25 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-queue.js.map +1 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-send.d.ts +15 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-send.d.ts.map +1 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-send.js +2 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-send.js.map +1 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-topic.d.ts +15 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-topic.d.ts.map +1 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-topic.js +23 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-topic.js.map +1 -0
- package/dist/service/lambda/destination/sim-aws-lambda-destinations.d.ts +38 -0
- package/dist/service/lambda/destination/sim-aws-lambda-destinations.d.ts.map +1 -0
- package/dist/service/lambda/destination/sim-aws-lambda-destinations.js +78 -0
- package/dist/service/lambda/destination/sim-aws-lambda-destinations.js.map +1 -0
- package/dist/service/lambda/destination/sim-lambda-destination-arn.d.ts +53 -0
- package/dist/service/lambda/destination/sim-lambda-destination-arn.d.ts.map +1 -0
- package/dist/service/lambda/destination/sim-lambda-destination-arn.js +122 -0
- package/dist/service/lambda/destination/sim-lambda-destination-arn.js.map +1 -0
- package/dist/service/lambda/destination/sim-lambda-destination-record.d.ts +53 -0
- package/dist/service/lambda/destination/sim-lambda-destination-record.d.ts.map +1 -0
- package/dist/service/lambda/destination/sim-lambda-destination-record.js +26 -0
- package/dist/service/lambda/destination/sim-lambda-destination-record.js.map +1 -0
- package/dist/service/lambda/destination/sim-lambda-destination-targets.d.ts +49 -0
- package/dist/service/lambda/destination/sim-lambda-destination-targets.d.ts.map +1 -0
- package/dist/service/lambda/destination/sim-lambda-destination-targets.js +25 -0
- package/dist/service/lambda/destination/sim-lambda-destination-targets.js.map +1 -0
- package/dist/service/lambda/function/event-invoke/lambda-dead-letter-target.d.ts +17 -0
- package/dist/service/lambda/function/event-invoke/lambda-dead-letter-target.d.ts.map +1 -0
- package/dist/service/lambda/function/event-invoke/lambda-dead-letter-target.js +26 -0
- package/dist/service/lambda/function/event-invoke/lambda-dead-letter-target.js.map +1 -0
- package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config-store.d.ts +58 -0
- package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config-store.d.ts.map +1 -0
- package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config-store.js +86 -0
- package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config-store.js.map +1 -0
- package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config.d.ts +117 -0
- package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config.d.ts.map +1 -0
- package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config.js +37 -0
- package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config.js.map +1 -0
- package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-settings.d.ts +35 -0
- package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-settings.d.ts.map +1 -0
- package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-settings.js +70 -0
- package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-settings.js.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function-configuration.d.ts +3 -0
- package/dist/service/lambda/function/sim-lambda-function-configuration.d.ts.map +1 -1
- package/dist/service/lambda/function/sim-lambda-function-configuration.factory.d.ts +11 -0
- package/dist/service/lambda/function/sim-lambda-function-configuration.factory.d.ts.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function-configuration.factory.js +27 -0
- package/dist/service/lambda/function/sim-lambda-function-configuration.factory.js.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function-reconfiguration.d.ts +5 -0
- package/dist/service/lambda/function/sim-lambda-function-reconfiguration.d.ts.map +1 -1
- package/dist/service/lambda/function/sim-lambda-function-reconfiguration.js +12 -0
- package/dist/service/lambda/function/sim-lambda-function-reconfiguration.js.map +1 -1
- package/dist/service/lambda/function/sim-lambda-function.d.ts +2 -0
- package/dist/service/lambda/function/sim-lambda-function.d.ts.map +1 -1
- package/dist/service/lambda/function/sim-lambda-function.js +7 -14
- package/dist/service/lambda/function/sim-lambda-function.js.map +1 -1
- package/dist/service/lambda/function/sim-lambda-function.type.d.ts +5 -0
- package/dist/service/lambda/function/sim-lambda-function.type.d.ts.map +1 -1
- package/dist/service/lambda/index.d.ts +2 -0
- package/dist/service/lambda/index.d.ts.map +1 -1
- package/dist/service/lambda/sdk/sim-lambda-event-invoke-config-routes.d.ts +10 -0
- package/dist/service/lambda/sdk/sim-lambda-event-invoke-config-routes.d.ts.map +1 -0
- package/dist/service/lambda/sdk/sim-lambda-event-invoke-config-routes.js +32 -0
- package/dist/service/lambda/sdk/sim-lambda-event-invoke-config-routes.js.map +1 -0
- package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.d.ts.map +1 -1
- package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.js +2 -0
- package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.js.map +1 -1
- package/dist/service/lambda/sim-lambda-commands.d.ts +11 -0
- package/dist/service/lambda/sim-lambda-commands.d.ts.map +1 -1
- package/dist/service/lambda/sim-lambda-commands.js +17 -1
- package/dist/service/lambda/sim-lambda-commands.js.map +1 -1
- package/dist/service/lambda/sim-lambda-event-invoke-operations.d.ts +23 -0
- package/dist/service/lambda/sim-lambda-event-invoke-operations.d.ts.map +1 -0
- package/dist/service/lambda/sim-lambda-event-invoke-operations.js +31 -0
- package/dist/service/lambda/sim-lambda-event-invoke-operations.js.map +1 -0
- package/dist/service/lambda/sim-lambda-inspection.d.ts +9 -0
- package/dist/service/lambda/sim-lambda-inspection.d.ts.map +1 -1
- package/dist/service/lambda/sim-lambda-inspection.js +13 -0
- package/dist/service/lambda/sim-lambda-inspection.js.map +1 -1
- package/dist/service/lambda/sim-lambda-request-options.d.ts +8 -0
- package/dist/service/lambda/sim-lambda-request-options.d.ts.map +1 -0
- package/dist/service/lambda/sim-lambda-request-options.js +2 -0
- package/dist/service/lambda/sim-lambda-request-options.js.map +1 -0
- package/dist/service/lambda/sim-lambda.d.ts +6 -7
- package/dist/service/lambda/sim-lambda.d.ts.map +1 -1
- package/dist/service/lambda/sim-lambda.js +4 -3
- package/dist/service/lambda/sim-lambda.js.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-input.d.ts +14 -0
- package/dist/service/s3/serve/api/sim-s3-api-object-input.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-input.js +20 -0
- package/dist/service/s3/serve/api/sim-s3-api-object-input.js.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-output.d.ts +14 -0
- package/dist/service/s3/serve/api/sim-s3-api-object-output.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-output.js +12 -0
- package/dist/service/s3/serve/api/sim-s3-api-object-output.js.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-routes.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-routes.js +23 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-routes.js.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-output.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-output.js +7 -1
- package/dist/service/s3/serve/api/sim-s3-api-output.js.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-route.type.d.ts +14 -3
- package/dist/service/s3/serve/api/sim-s3-api-route.type.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-routes.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-routes.js +2 -1
- package/dist/service/s3/serve/api/sim-s3-api-routes.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-auth-challenge.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-auth-challenge.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sim-cognito-auth-challenge.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-auth-challenge.ts"],"names":[],"mappings":"AAWA;;GAEG;AACH,eAAO,MAAM,4BAA4B,0BAA0B,CAAC;AAuBpE;;;;;;GAMG;AACH,wBAAgB,8BAA8B,CAC5C,aAAa,EAAE,MAAM,GAAG,SAAS,GAChC,MAAM,CAaR"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { SimCognitoInvalidParameterException } from "../../error/sim-cognito.error.js";
|
|
2
2
|
import { simCognitoSmsMfa, simCognitoSoftwareTokenMfa, } from "../../user-pool/user/mfa/sim-cognito-mfa-factors.js";
|
|
3
|
+
import { simCognitoPasswordChallenge, simCognitoWebAuthnChallenge, } from "./sim-cognito-available-challenges.js";
|
|
4
|
+
import { simCognitoSelectChallenge } from "./sim-cognito-first-factor-challenge.js";
|
|
3
5
|
/**
|
|
4
6
|
* The challenge a user with a temporary password is answered with.
|
|
5
7
|
*/
|
|
@@ -11,11 +13,18 @@ export const newPasswordRequiredChallenge = "NEW_PASSWORD_REQUIRED";
|
|
|
11
13
|
* how Cognito names them: a user registered for a software token is
|
|
12
14
|
* challenged with `SOFTWARE_TOKEN_MFA` and answers with a
|
|
13
15
|
* `SOFTWARE_TOKEN_MFA_CODE`.
|
|
16
|
+
*
|
|
17
|
+
* The last three are the first factors of a `USER_AUTH` sign-in.
|
|
18
|
+
* `SELECT_CHALLENGE` is answered with the factor the user picked, and the
|
|
19
|
+
* other two with the factor itself.
|
|
14
20
|
*/
|
|
15
21
|
const answerableChallenges = [
|
|
16
22
|
newPasswordRequiredChallenge,
|
|
17
23
|
simCognitoSmsMfa,
|
|
18
24
|
simCognitoSoftwareTokenMfa,
|
|
25
|
+
simCognitoSelectChallenge,
|
|
26
|
+
simCognitoPasswordChallenge,
|
|
27
|
+
simCognitoWebAuthnChallenge,
|
|
19
28
|
];
|
|
20
29
|
/**
|
|
21
30
|
* Refuse a challenge this simulation cannot answer.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-auth-challenge.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-auth-challenge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,gBAAgB,EAChB,0BAA0B,GAC3B,MAAM,qDAAqD,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-auth-challenge.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-auth-challenge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,gBAAgB,EAChB,0BAA0B,GAC3B,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,GAC5B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAEpF;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,uBAAuB,CAAC;AAEpE;;;;;;;;;;;GAWG;AACH,MAAM,oBAAoB,GAAsB;IAC9C,4BAA4B;IAC5B,gBAAgB;IAChB,0BAA0B;IAC1B,yBAAyB;IACzB,2BAA2B;IAC3B,2BAA2B;CAC5B,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,UAAU,8BAA8B,CAC5C,aAAiC;IAEjC,IACE,aAAa,KAAK,SAAS;QAC3B,oBAAoB,CAAC,QAAQ,CAAC,aAAa,CAAC,EAC5C,CAAC;QACD,OAAO,aAAa,CAAC;IACvB,CAAC;IAED,MAAM,IAAI,mCAAmC,CAC3C,kBAAkB,MAAM,CAAC,aAAa,CAAC,sBAAsB;QAC3D,GAAG,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,2BAA2B;QAC7D,oBAAoB,CACvB,CAAC;AACJ,CAAC"}
|
|
@@ -8,6 +8,7 @@ import { SimCognitoAdminInitiateAuth } from "./sim-cognito-admin-initiate-auth.j
|
|
|
8
8
|
import { SimCognitoAdminRespondToChallenge } from "./sim-cognito-admin-respond-to-challenge.js";
|
|
9
9
|
import { SimCognitoGetTokensFromRefreshToken } from "./sim-cognito-get-tokens-from-refresh-token.js";
|
|
10
10
|
import type { SimCognitoAuthResolver } from "./sim-cognito-auth-resolver.js";
|
|
11
|
+
import type { SimCognitoFirstFactorChallenge } from "./sim-cognito-first-factor-challenge.js";
|
|
11
12
|
import { SimCognitoInitiateAuth } from "./sim-cognito-initiate-auth.js";
|
|
12
13
|
import { SimCognitoRespondToChallenge } from "./sim-cognito-respond-to-challenge.js";
|
|
13
14
|
import { SimCognitoSignOutCommands } from "./sim-cognito-sign-out.js";
|
|
@@ -28,6 +29,11 @@ interface SimCognitoAuthCommandsProperties {
|
|
|
28
29
|
* recorded the same way.
|
|
29
30
|
*/
|
|
30
31
|
readonly messenger: SimCognitoPoolMessenger;
|
|
32
|
+
/**
|
|
33
|
+
* What asks a user for its first factor, shared with the hosted endpoints so
|
|
34
|
+
* a passkey presented at either answers the same kind of challenge.
|
|
35
|
+
*/
|
|
36
|
+
readonly firstFactor: SimCognitoFirstFactorChallenge;
|
|
31
37
|
}
|
|
32
38
|
/**
|
|
33
39
|
* The authentication command handlers of one simulated Cognito scope.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-auth-commands.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-auth-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uDAAuD,CAAC;AACrG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAC;AAC9F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mDAAmD,CAAC;AAC/F,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,2DAA2D,CAAC;AAC5G,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AACpF,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,iCAAiC,EAAE,MAAM,6CAA6C,CAAC;AAEhG,OAAO,EAAE,mCAAmC,EAAE,MAAM,gDAAgD,CAAC;AACrG,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAE7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAQxE,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-auth-commands.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-auth-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uDAAuD,CAAC;AACrG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAC;AAC9F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mDAAmD,CAAC;AAC/F,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,2DAA2D,CAAC;AAC5G,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AACpF,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,iCAAiC,EAAE,MAAM,6CAA6C,CAAC;AAEhG,OAAO,EAAE,mCAAmC,EAAE,MAAM,gDAAgD,CAAC;AACrG,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAE7E,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AAI9F,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAQxE,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAGrF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,UAAU,gCAAgC;IACxC,QAAQ,CAAC,QAAQ,EAAE,yBAAyB,CAAC;IAC7C,QAAQ,CAAC,YAAY,EAAE,sBAAsB,CAAC;IAC9C,QAAQ,CAAC,KAAK,EAAE,uBAAuB,CAAC;IACxC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,0BAA0B,CAAC;IAE9C;;;OAGG;IACH,QAAQ,CAAC,WAAW,EAAE,qBAAqB,CAAC;IAE5C;;;;OAIG;IACH,QAAQ,CAAC,SAAS,EAAE,uBAAuB,CAAC;IAE5C;;;OAGG;IACH,QAAQ,CAAC,WAAW,EAAE,8BAA8B,CAAC;CACtD;AAED;;;;;;;;;;GAUG;AACH,qBAAa,sBAAsB;IACjC,SAAgB,iBAAiB,EAAE,2BAA2B,CAAC;IAC/D,SAAgB,uBAAuB,EAAE,iCAAiC,CAAC;IAC3E,SAAgB,YAAY,EAAE,sBAAsB,CAAC;IACrD,SAAgB,kBAAkB,EAAE,4BAA4B,CAAC;IACjE,SAAgB,yBAAyB,EAAE,mCAAmC,CAAC;IAC/E,SAAgB,OAAO,EAAE,yBAAyB,CAAC;IAEnD,YAAY,UAAU,EAAE,gCAAgC,EA6EvD;CACF"}
|
|
@@ -3,6 +3,9 @@ import { SimCognitoAdminRespondToChallenge } from "./sim-cognito-admin-respond-t
|
|
|
3
3
|
import { SimCognitoAuthFlowRunner } from "./sim-cognito-auth-flow-runner.js";
|
|
4
4
|
import { SimCognitoGetTokensFromRefreshToken } from "./sim-cognito-get-tokens-from-refresh-token.js";
|
|
5
5
|
import { SimCognitoChallengeResponses } from "./sim-cognito-challenge-responses.js";
|
|
6
|
+
import { SimCognitoFirstFactorResponse } from "./sim-cognito-first-factor-response.js";
|
|
7
|
+
import { SimCognitoPasswordResponse } from "./sim-cognito-password-response.js";
|
|
8
|
+
import { SimCognitoWebAuthnResponse } from "./sim-cognito-web-authn-response.js";
|
|
6
9
|
import { SimCognitoInitiateAuth } from "./sim-cognito-initiate-auth.js";
|
|
7
10
|
import { SimCognitoMfaChallenge } from "./sim-cognito-mfa-challenge.js";
|
|
8
11
|
import { SimCognitoMfaResponse } from "./sim-cognito-mfa-response.js";
|
|
@@ -13,6 +16,7 @@ import { SimCognitoRefreshSignIn } from "./sim-cognito-refresh-sign-in.js";
|
|
|
13
16
|
import { SimCognitoRefreshedTokens } from "./sim-cognito-refreshed-tokens.js";
|
|
14
17
|
import { SimCognitoRespondToChallenge } from "./sim-cognito-respond-to-challenge.js";
|
|
15
18
|
import { SimCognitoSignInCompletion } from "./sim-cognito-sign-in-completion.js";
|
|
19
|
+
import { SimCognitoUserAuthSignIn } from "./sim-cognito-user-auth-sign-in.js";
|
|
16
20
|
import { SimCognitoSignOutCommands } from "./sim-cognito-sign-out.js";
|
|
17
21
|
/**
|
|
18
22
|
* The authentication command handlers of one simulated Cognito scope.
|
|
@@ -33,7 +37,7 @@ export class SimCognitoAuthCommands {
|
|
|
33
37
|
getTokensFromRefreshToken;
|
|
34
38
|
signOut;
|
|
35
39
|
constructor(properties) {
|
|
36
|
-
const { resolver, authResolver, pools, clock, triggers, tokenIssuer, messenger, } = properties;
|
|
40
|
+
const { resolver, authResolver, pools, clock, triggers, tokenIssuer, messenger, firstFactor, } = properties;
|
|
37
41
|
// Every sign-in ends the same way, wherever it finished: with the second
|
|
38
42
|
// factor where the user owes one, and with the tokens and the
|
|
39
43
|
// PostAuthentication trigger where it does not.
|
|
@@ -46,14 +50,21 @@ export class SimCognitoAuthCommands {
|
|
|
46
50
|
// and which app client the refresh went through is what decides whether a
|
|
47
51
|
// new refresh token comes back.
|
|
48
52
|
const refreshedTokens = new SimCognitoRefreshedTokens({ tokenIssuer });
|
|
53
|
+
const passwordSignIn = new SimCognitoPasswordSignIn({
|
|
54
|
+
authResolver,
|
|
55
|
+
completion,
|
|
56
|
+
challenge: new SimCognitoNewPasswordChallenge({ clock }),
|
|
57
|
+
triggers,
|
|
58
|
+
});
|
|
49
59
|
const flowRunner = new SimCognitoAuthFlowRunner({
|
|
50
|
-
passwordSignIn
|
|
60
|
+
passwordSignIn,
|
|
61
|
+
refreshSignIn: new SimCognitoRefreshSignIn({ refreshedTokens, clock }),
|
|
62
|
+
userAuthSignIn: new SimCognitoUserAuthSignIn({
|
|
51
63
|
authResolver,
|
|
52
|
-
|
|
53
|
-
|
|
64
|
+
challenge: firstFactor,
|
|
65
|
+
passwordSignIn,
|
|
54
66
|
triggers,
|
|
55
67
|
}),
|
|
56
|
-
refreshSignIn: new SimCognitoRefreshSignIn({ refreshedTokens, clock }),
|
|
57
68
|
});
|
|
58
69
|
const responses = new SimCognitoChallengeResponses({
|
|
59
70
|
newPassword: new SimCognitoNewPasswordResponse({
|
|
@@ -62,6 +73,13 @@ export class SimCognitoAuthCommands {
|
|
|
62
73
|
clock,
|
|
63
74
|
}),
|
|
64
75
|
mfa: new SimCognitoMfaResponse({ authResolver, completion, clock }),
|
|
76
|
+
firstFactor: new SimCognitoFirstFactorResponse({
|
|
77
|
+
authResolver,
|
|
78
|
+
challenge: firstFactor,
|
|
79
|
+
password: new SimCognitoPasswordResponse({ completion }),
|
|
80
|
+
webAuthn: new SimCognitoWebAuthnResponse({ completion }),
|
|
81
|
+
clock,
|
|
82
|
+
}),
|
|
65
83
|
});
|
|
66
84
|
this.adminInitiateAuth = new SimCognitoAdminInitiateAuth({
|
|
67
85
|
authResolver,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-auth-commands.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-auth-commands.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,iCAAiC,EAAE,MAAM,6CAA6C,CAAC;AAChG,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,mCAAmC,EAAE,MAAM,gDAAgD,CAAC;AAErG,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-auth-commands.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-auth-commands.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,iCAAiC,EAAE,MAAM,6CAA6C,CAAC;AAChG,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,mCAAmC,EAAE,MAAM,gDAAgD,CAAC;AAErG,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AAEpF,OAAO,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AACvF,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AACzF,OAAO,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AACvF,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AA6BtE;;;;;;;;;;GAUG;AACH,MAAM,OAAO,sBAAsB;IACjB,iBAAiB,CAA8B;IAC/C,uBAAuB,CAAoC;IAC3D,YAAY,CAAyB;IACrC,kBAAkB,CAA+B;IACjD,yBAAyB,CAAsC;IAC/D,OAAO,CAA4B;IAEnD,YAAY,UAA4C;QACtD,MAAM,EACJ,QAAQ,EACR,YAAY,EACZ,KAAK,EACL,KAAK,EACL,QAAQ,EACR,WAAW,EACX,SAAS,EACT,WAAW,GACZ,GAAG,UAAU,CAAC;QACf,yEAAyE;QACzE,8DAA8D;QAC9D,gDAAgD;QAChD,MAAM,UAAU,GAAG,IAAI,0BAA0B,CAAC;YAChD,WAAW;YACX,QAAQ;YACR,YAAY,EAAE,IAAI,sBAAsB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;SAC/D,CAAC,CAAC;QACH,0EAA0E;QAC1E,0EAA0E;QAC1E,gCAAgC;QAChC,MAAM,eAAe,GAAG,IAAI,yBAAyB,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC;QACvE,MAAM,cAAc,GAAG,IAAI,wBAAwB,CAAC;YAClD,YAAY;YACZ,UAAU;YACV,SAAS,EAAE,IAAI,8BAA8B,CAAC,EAAE,KAAK,EAAE,CAAC;YACxD,QAAQ;SACT,CAAC,CAAC;QACH,MAAM,UAAU,GAAG,IAAI,wBAAwB,CAAC;YAC9C,cAAc;YACd,aAAa,EAAE,IAAI,uBAAuB,CAAC,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC;YACtE,cAAc,EAAE,IAAI,wBAAwB,CAAC;gBAC3C,YAAY;gBACZ,SAAS,EAAE,WAAW;gBACtB,cAAc;gBACd,QAAQ;aACT,CAAC;SACH,CAAC,CAAC;QACH,MAAM,SAAS,GAAG,IAAI,4BAA4B,CAAC;YACjD,WAAW,EAAE,IAAI,6BAA6B,CAAC;gBAC7C,YAAY;gBACZ,UAAU;gBACV,KAAK;aACN,CAAC;YACF,GAAG,EAAE,IAAI,qBAAqB,CAAC,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;YACnE,WAAW,EAAE,IAAI,6BAA6B,CAAC;gBAC7C,YAAY;gBACZ,SAAS,EAAE,WAAW;gBACtB,QAAQ,EAAE,IAAI,0BAA0B,CAAC,EAAE,UAAU,EAAE,CAAC;gBACxD,QAAQ,EAAE,IAAI,0BAA0B,CAAC,EAAE,UAAU,EAAE,CAAC;gBACxD,KAAK;aACN,CAAC;SACH,CAAC,CAAC;QAEH,IAAI,CAAC,iBAAiB,GAAG,IAAI,2BAA2B,CAAC;YACvD,YAAY;YACZ,UAAU;SACX,CAAC,CAAC;QACH,IAAI,CAAC,uBAAuB,GAAG,IAAI,iCAAiC,CAAC;YACnE,YAAY;YACZ,SAAS;SACV,CAAC,CAAC;QACH,IAAI,CAAC,YAAY,GAAG,IAAI,sBAAsB,CAAC;YAC7C,YAAY;YACZ,UAAU;SACX,CAAC,CAAC;QACH,IAAI,CAAC,kBAAkB,GAAG,IAAI,4BAA4B,CAAC;YACzD,YAAY;YACZ,SAAS;SACV,CAAC,CAAC;QACH,IAAI,CAAC,yBAAyB,GAAG,IAAI,mCAAmC,CAAC;YACvE,YAAY;YACZ,eAAe;YACf,KAAK;SACN,CAAC,CAAC;QACH,IAAI,CAAC,OAAO,GAAG,IAAI,yBAAyB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;IAC3E,CAAC;CACF"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { SimCognitoAuthFlow } from "./sim-cognito-auth-flow.js";
|
|
2
2
|
import type { SimCognitoPasswordSignIn, SimCognitoAuthRequest } from "./sim-cognito-password-sign-in.js";
|
|
3
3
|
import type { SimCognitoRefreshSignIn } from "./sim-cognito-refresh-sign-in.js";
|
|
4
|
+
import type { SimCognitoUserAuthSignIn } from "./sim-cognito-user-auth-sign-in.js";
|
|
4
5
|
import type { SimCognitoAuthenticationOutput } from "./auth.command.js";
|
|
5
6
|
interface SimCognitoAuthFlowRunnerProperties {
|
|
6
7
|
readonly passwordSignIn: SimCognitoPasswordSignIn;
|
|
7
8
|
readonly refreshSignIn: SimCognitoRefreshSignIn;
|
|
9
|
+
readonly userAuthSignIn: SimCognitoUserAuthSignIn;
|
|
8
10
|
}
|
|
9
11
|
/**
|
|
10
12
|
* Runs whichever flow a request resolved to.
|
|
@@ -13,13 +15,15 @@ interface SimCognitoAuthFlowRunnerProperties {
|
|
|
13
15
|
* the pool differently, and once a flow is resolved they run the same bodies,
|
|
14
16
|
* so the running of one lives here rather than in either command.
|
|
15
17
|
*
|
|
16
|
-
* Running a flow is asynchronous because
|
|
17
|
-
* pool's Lambda triggers. A password sign-in
|
|
18
|
-
* and
|
|
18
|
+
* Running a flow is asynchronous because any of them may have to wait on the
|
|
19
|
+
* pool's Lambda triggers. A password sign-in and a choice-based one run the
|
|
20
|
+
* authentication triggers, and every flow runs `PreTokenGeneration` where it
|
|
21
|
+
* issues tokens.
|
|
19
22
|
*/
|
|
20
23
|
export declare class SimCognitoAuthFlowRunner {
|
|
21
24
|
private readonly passwordSignIn;
|
|
22
25
|
private readonly refreshSignIn;
|
|
26
|
+
private readonly userAuthSignIn;
|
|
23
27
|
constructor(properties: SimCognitoAuthFlowRunnerProperties);
|
|
24
28
|
/**
|
|
25
29
|
* Run a flow the app client is configured for.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-auth-flow-runner.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-auth-flow-runner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACtB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAExE,UAAU,kCAAkC;IAC1C,QAAQ,CAAC,cAAc,EAAE,wBAAwB,CAAC;IAClD,QAAQ,CAAC,aAAa,EAAE,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-auth-flow-runner.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-auth-flow-runner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACtB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAExE,UAAU,kCAAkC;IAC1C,QAAQ,CAAC,cAAc,EAAE,wBAAwB,CAAC;IAClD,QAAQ,CAAC,aAAa,EAAE,uBAAuB,CAAC;IAChD,QAAQ,CAAC,cAAc,EAAE,wBAAwB,CAAC;CACnD;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,wBAAwB;IACnC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA2B;IAC1D,OAAO,CAAC,QAAQ,CAAC,aAAa,CAA0B;IACxD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA2B;IAE1D,YAAY,UAAU,EAAE,kCAAkC,EAIzD;IAED;;OAEG;IACG,GAAG,CACP,IAAI,EAAE,kBAAkB,EACxB,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,8BAA8B,CAAC,CAUzC;CACF"}
|
|
@@ -5,16 +5,19 @@
|
|
|
5
5
|
* the pool differently, and once a flow is resolved they run the same bodies,
|
|
6
6
|
* so the running of one lives here rather than in either command.
|
|
7
7
|
*
|
|
8
|
-
* Running a flow is asynchronous because
|
|
9
|
-
* pool's Lambda triggers. A password sign-in
|
|
10
|
-
* and
|
|
8
|
+
* Running a flow is asynchronous because any of them may have to wait on the
|
|
9
|
+
* pool's Lambda triggers. A password sign-in and a choice-based one run the
|
|
10
|
+
* authentication triggers, and every flow runs `PreTokenGeneration` where it
|
|
11
|
+
* issues tokens.
|
|
11
12
|
*/
|
|
12
13
|
export class SimCognitoAuthFlowRunner {
|
|
13
14
|
passwordSignIn;
|
|
14
15
|
refreshSignIn;
|
|
16
|
+
userAuthSignIn;
|
|
15
17
|
constructor(properties) {
|
|
16
18
|
this.passwordSignIn = properties.passwordSignIn;
|
|
17
19
|
this.refreshSignIn = properties.refreshSignIn;
|
|
20
|
+
this.userAuthSignIn = properties.userAuthSignIn;
|
|
18
21
|
}
|
|
19
22
|
/**
|
|
20
23
|
* Run a flow the app client is configured for.
|
|
@@ -23,6 +26,9 @@ export class SimCognitoAuthFlowRunner {
|
|
|
23
26
|
if (flow.exchangesRefreshToken) {
|
|
24
27
|
return await this.refreshSignIn.handle(request);
|
|
25
28
|
}
|
|
29
|
+
if (flow.offersChoice) {
|
|
30
|
+
return await this.userAuthSignIn.handle(request);
|
|
31
|
+
}
|
|
26
32
|
return await this.passwordSignIn.handle(request);
|
|
27
33
|
}
|
|
28
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-auth-flow-runner.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-auth-flow-runner.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sim-cognito-auth-flow-runner.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-auth-flow-runner.ts"],"names":[],"mappings":"AAeA;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,wBAAwB;IAClB,cAAc,CAA2B;IACzC,aAAa,CAA0B;IACvC,cAAc,CAA2B;IAE1D,YAAY,UAA8C;QACxD,IAAI,CAAC,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;QAChD,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC,aAAa,CAAC;QAC9C,IAAI,CAAC,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;IAClD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,GAAG,CACP,IAAwB,EACxB,OAA8B;QAE9B,IAAI,IAAI,CAAC,qBAAqB,EAAE,CAAC;YAC/B,OAAO,MAAM,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAClD,CAAC;QAED,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;YACtB,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACnD,CAAC;QAED,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACnD,CAAC;CACF"}
|
|
@@ -5,6 +5,7 @@ interface SimCognitoAuthFlowProperties {
|
|
|
5
5
|
readonly legacySettings?: readonly string[];
|
|
6
6
|
readonly aliases?: readonly string[];
|
|
7
7
|
readonly exchangesRefreshToken?: boolean;
|
|
8
|
+
readonly offersChoice?: boolean;
|
|
8
9
|
}
|
|
9
10
|
/**
|
|
10
11
|
* One authentication flow this simulation runs.
|
|
@@ -22,6 +23,11 @@ export declare class SimCognitoAuthFlow {
|
|
|
22
23
|
* a user in with a password.
|
|
23
24
|
*/
|
|
24
25
|
readonly exchangesRefreshToken: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the flow offers the user a choice of first factors rather than
|
|
28
|
+
* taking the one its name settles.
|
|
29
|
+
*/
|
|
30
|
+
readonly offersChoice: boolean;
|
|
25
31
|
private readonly aliases;
|
|
26
32
|
private readonly settings;
|
|
27
33
|
constructor(properties: SimCognitoAuthFlowProperties);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-auth-flow.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-auth-flow.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wDAAwD,CAAC;AAEvG,UAAU,4BAA4B;IACpC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5C,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,QAAQ,CAAC,qBAAqB,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-auth-flow.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-auth-flow.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wDAAwD,CAAC;AAEvG,UAAU,4BAA4B;IACpC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5C,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,QAAQ,CAAC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IACzC,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;CACjC;AAED;;;;;;;GAOG;AACH,qBAAa,kBAAkB;IAC7B,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,aAAa,EAAE,MAAM,CAAC;IAEtC;;;OAGG;IACH,SAAgB,qBAAqB,EAAE,OAAO,CAAC;IAE/C;;;OAGG;IACH,SAAgB,YAAY,EAAE,OAAO,CAAC;IAEtC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoB;IAC5C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAoB;IAE7C,YAAY,UAAU,EAAE,4BAA4B,EAUnD;IAED;;OAEG;IACH,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEjC;IAED;;;;;;OAMG;IACH,iBAAiB,CAAC,MAAM,EAAE,wBAAwB,GAAG,IAAI,CAaxD;CACF"}
|
|
@@ -15,12 +15,18 @@ export class SimCognitoAuthFlow {
|
|
|
15
15
|
* a user in with a password.
|
|
16
16
|
*/
|
|
17
17
|
exchangesRefreshToken;
|
|
18
|
+
/**
|
|
19
|
+
* Whether the flow offers the user a choice of first factors rather than
|
|
20
|
+
* taking the one its name settles.
|
|
21
|
+
*/
|
|
22
|
+
offersChoice;
|
|
18
23
|
aliases;
|
|
19
24
|
settings;
|
|
20
25
|
constructor(properties) {
|
|
21
26
|
this.name = properties.name;
|
|
22
27
|
this.clientSetting = properties.clientSetting;
|
|
23
28
|
this.exchangesRefreshToken = properties.exchangesRefreshToken ?? false;
|
|
29
|
+
this.offersChoice = properties.offersChoice ?? false;
|
|
24
30
|
this.aliases = properties.aliases ?? [];
|
|
25
31
|
this.settings = [
|
|
26
32
|
properties.clientSetting,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-auth-flow.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-auth-flow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-auth-flow.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-auth-flow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAC;AAYvF;;;;;;;GAOG;AACH,MAAM,OAAO,kBAAkB;IACb,IAAI,CAAS;IACb,aAAa,CAAS;IAEtC;;;OAGG;IACa,qBAAqB,CAAU;IAE/C;;;OAGG;IACa,YAAY,CAAU;IAErB,OAAO,CAAoB;IAC3B,QAAQ,CAAoB;IAE7C,YAAY,UAAwC;QAClD,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;QAC5B,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC,aAAa,CAAC;QAC9C,IAAI,CAAC,qBAAqB,GAAG,UAAU,CAAC,qBAAqB,IAAI,KAAK,CAAC;QACvE,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,YAAY,IAAI,KAAK,CAAC;QACrD,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,IAAI,EAAE,CAAC;QACxC,IAAI,CAAC,QAAQ,GAAG;YACd,UAAU,CAAC,aAAa;YACxB,GAAG,CAAC,UAAU,CAAC,cAAc,IAAI,EAAE,CAAC;SACrC,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,QAAgB;QACtB,OAAO,QAAQ,KAAK,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACnE,CAAC;IAED;;;;;;OAMG;IACH,iBAAiB,CAAC,MAAgC;QAChD,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAC7C,MAAM,CAAC,iBAAiB,CAAC,MAAM,CAAC,OAAO,CAAC,CACzC,CAAC;QAEF,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO;QACT,CAAC;QAED,MAAM,IAAI,mCAAmC,CAC3C,GAAG,IAAI,CAAC,IAAI,kCAAkC,MAAM,CAAC,EAAE,eAAe;YACpE,mBAAmB,IAAI,CAAC,aAAa,8BAA8B,CACtE,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -17,6 +17,14 @@ export declare const userPasswordFlow: SimCognitoAuthFlow;
|
|
|
17
17
|
* accepts either.
|
|
18
18
|
*/
|
|
19
19
|
export declare const refreshTokenFlow: SimCognitoAuthFlow;
|
|
20
|
+
/**
|
|
21
|
+
* Choice-based sign-in, where the pool offers the factors it allows first and
|
|
22
|
+
* the user presents one of them.
|
|
23
|
+
*
|
|
24
|
+
* This is the flow a passkey is presented through. It runs on both entry
|
|
25
|
+
* points, as it does on real Cognito.
|
|
26
|
+
*/
|
|
27
|
+
export declare const userAuthFlow: SimCognitoAuthFlow;
|
|
20
28
|
/**
|
|
21
29
|
* The flows one entry point into authentication runs.
|
|
22
30
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-auth-flows.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-auth-flows.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,qBAAqB,oBAIhC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,oBAI3B,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,oBAK3B,CAAC;AAEH;;;;;;GAMG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgC;IAEtD,YAAY,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,kBAAkB,EAAE,EAGlE;IAED;;;;;;OAMG;IACH,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,kBAAkB,CAcxD;CACF;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"sim-cognito-auth-flows.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-auth-flows.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,qBAAqB,oBAIhC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,oBAI3B,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,oBAK3B,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,oBAIvB,CAAC;AAEH;;;;;;GAMG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgC;IAEtD,YAAY,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,kBAAkB,EAAE,EAGlE;IAED;;;;;;OAMG;IACH,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,kBAAkB,CAcxD;CACF;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,qBAIzB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,eAAe,qBAI1B,CAAC"}
|
|
@@ -31,6 +31,18 @@ export const refreshTokenFlow = new SimCognitoAuthFlow({
|
|
|
31
31
|
aliases: ["REFRESH_TOKEN"],
|
|
32
32
|
exchangesRefreshToken: true,
|
|
33
33
|
});
|
|
34
|
+
/**
|
|
35
|
+
* Choice-based sign-in, where the pool offers the factors it allows first and
|
|
36
|
+
* the user presents one of them.
|
|
37
|
+
*
|
|
38
|
+
* This is the flow a passkey is presented through. It runs on both entry
|
|
39
|
+
* points, as it does on real Cognito.
|
|
40
|
+
*/
|
|
41
|
+
export const userAuthFlow = new SimCognitoAuthFlow({
|
|
42
|
+
name: "USER_AUTH",
|
|
43
|
+
clientSetting: "ALLOW_USER_AUTH",
|
|
44
|
+
offersChoice: true,
|
|
45
|
+
});
|
|
34
46
|
/**
|
|
35
47
|
* The flows one entry point into authentication runs.
|
|
36
48
|
*
|
|
@@ -58,8 +70,8 @@ export class SimCognitoAuthFlows {
|
|
|
58
70
|
return flow;
|
|
59
71
|
}
|
|
60
72
|
throw new SimCognitoInvalidParameterException(`AuthFlow '${String(authFlow)}' is not simulated: ${this.operation} ` +
|
|
61
|
-
`here runs ${this.flows.map((each) => each.name).join(" and ")}. SRP
|
|
62
|
-
`custom authentication
|
|
73
|
+
`here runs ${this.flows.map((each) => each.name).join(" and ")}. SRP ` +
|
|
74
|
+
`and custom authentication are not implemented.`);
|
|
63
75
|
}
|
|
64
76
|
}
|
|
65
77
|
/**
|
|
@@ -68,6 +80,7 @@ export class SimCognitoAuthFlows {
|
|
|
68
80
|
export const adminAuthFlows = new SimCognitoAuthFlows("AdminInitiateAuth", [
|
|
69
81
|
adminUserPasswordFlow,
|
|
70
82
|
refreshTokenFlow,
|
|
83
|
+
userAuthFlow,
|
|
71
84
|
]);
|
|
72
85
|
/**
|
|
73
86
|
* The flows `InitiateAuth` runs.
|
|
@@ -75,5 +88,6 @@ export const adminAuthFlows = new SimCognitoAuthFlows("AdminInitiateAuth", [
|
|
|
75
88
|
export const clientAuthFlows = new SimCognitoAuthFlows("InitiateAuth", [
|
|
76
89
|
userPasswordFlow,
|
|
77
90
|
refreshTokenFlow,
|
|
91
|
+
userAuthFlow,
|
|
78
92
|
]);
|
|
79
93
|
//# sourceMappingURL=sim-cognito-auth-flows.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-auth-flows.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-auth-flows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,kBAAkB,CAAC;IAC1D,IAAI,EAAE,0BAA0B;IAChC,aAAa,EAAE,gCAAgC;IAC/C,cAAc,EAAE,CAAC,mBAAmB,CAAC;CACtC,CAAC,CAAC;AAEH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,kBAAkB,CAAC;IACrD,IAAI,EAAE,oBAAoB;IAC1B,aAAa,EAAE,0BAA0B;IACzC,cAAc,EAAE,CAAC,oBAAoB,CAAC;CACvC,CAAC,CAAC;AAEH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,kBAAkB,CAAC;IACrD,IAAI,EAAE,oBAAoB;IAC1B,aAAa,EAAE,0BAA0B;IACzC,OAAO,EAAE,CAAC,eAAe,CAAC;IAC1B,qBAAqB,EAAE,IAAI;CAC5B,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,OAAO,mBAAmB;IACb,SAAS,CAAS;IAClB,KAAK,CAAgC;IAEtD,YAAY,SAAiB,EAAE,KAAoC;QACjE,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED;;;;;;OAMG;IACH,OAAO,CAAC,QAA4B;QAClC,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CACzC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CACpC,CAAC;QAEF,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,IAAI,mCAAmC,CAC3C,aAAa,MAAM,CAAC,QAAQ,CAAC,uBAAuB,IAAI,CAAC,SAAS,GAAG;YACnE,aAAa,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"sim-cognito-auth-flows.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-auth-flows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,kBAAkB,CAAC;IAC1D,IAAI,EAAE,0BAA0B;IAChC,aAAa,EAAE,gCAAgC;IAC/C,cAAc,EAAE,CAAC,mBAAmB,CAAC;CACtC,CAAC,CAAC;AAEH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,kBAAkB,CAAC;IACrD,IAAI,EAAE,oBAAoB;IAC1B,aAAa,EAAE,0BAA0B;IACzC,cAAc,EAAE,CAAC,oBAAoB,CAAC;CACvC,CAAC,CAAC;AAEH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,kBAAkB,CAAC;IACrD,IAAI,EAAE,oBAAoB;IAC1B,aAAa,EAAE,0BAA0B;IACzC,OAAO,EAAE,CAAC,eAAe,CAAC;IAC1B,qBAAqB,EAAE,IAAI;CAC5B,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,kBAAkB,CAAC;IACjD,IAAI,EAAE,WAAW;IACjB,aAAa,EAAE,iBAAiB;IAChC,YAAY,EAAE,IAAI;CACnB,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,OAAO,mBAAmB;IACb,SAAS,CAAS;IAClB,KAAK,CAAgC;IAEtD,YAAY,SAAiB,EAAE,KAAoC;QACjE,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED;;;;;;OAMG;IACH,OAAO,CAAC,QAA4B;QAClC,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CACzC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CACpC,CAAC;QAEF,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,IAAI,mCAAmC,CAC3C,aAAa,MAAM,CAAC,QAAQ,CAAC,uBAAuB,IAAI,CAAC,SAAS,GAAG;YACnE,aAAa,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ;YACtE,gDAAgD,CACnD,CAAC;IACJ,CAAC;CACF;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,mBAAmB,CAAC,mBAAmB,EAAE;IACzE,qBAAqB;IACrB,gBAAgB;IAChB,YAAY;CACb,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,mBAAmB,CAAC,cAAc,EAAE;IACrE,gBAAgB;IAChB,gBAAgB;IAChB,YAAY;CACb,CAAC,CAAC"}
|
|
@@ -13,6 +13,13 @@ export declare class SimCognitoAuthParameters {
|
|
|
13
13
|
* Read a value the flow needs, or refuse.
|
|
14
14
|
*/
|
|
15
15
|
require(name: string): string;
|
|
16
|
+
/**
|
|
17
|
+
* Read a value the flow needs as the JSON document it carries.
|
|
18
|
+
*
|
|
19
|
+
* A challenge response carries strings, so a credential travels as the JSON
|
|
20
|
+
* a browser serialized it to, which is how real Cognito takes one.
|
|
21
|
+
*/
|
|
22
|
+
requireDocument(name: string): unknown;
|
|
16
23
|
/**
|
|
17
24
|
* Read a value that may or may not be there.
|
|
18
25
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-auth-parameters.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-auth-parameters.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,qBAAa,wBAAwB;IACnC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA8B;IAErD,YACE,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,SAAS,EAIrD;IAED;;OAEG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAU5B;IAED;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAErC;CACF"}
|
|
1
|
+
{"version":3,"file":"sim-cognito-auth-parameters.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-auth-parameters.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,qBAAa,wBAAwB;IACnC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA8B;IAErD,YACE,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,SAAS,EAIrD;IAED;;OAEG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAU5B;IAED;;;;;OAKG;IACH,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAWrC;IAED;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAErC;CACF"}
|
|
@@ -23,6 +23,22 @@ export class SimCognitoAuthParameters {
|
|
|
23
23
|
}
|
|
24
24
|
return value;
|
|
25
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Read a value the flow needs as the JSON document it carries.
|
|
28
|
+
*
|
|
29
|
+
* A challenge response carries strings, so a credential travels as the JSON
|
|
30
|
+
* a browser serialized it to, which is how real Cognito takes one.
|
|
31
|
+
*/
|
|
32
|
+
requireDocument(name) {
|
|
33
|
+
const value = this.require(name);
|
|
34
|
+
try {
|
|
35
|
+
return JSON.parse(value);
|
|
36
|
+
}
|
|
37
|
+
catch {
|
|
38
|
+
throw new SimCognitoInvalidParameterException(`${name} in ${this.field} must be JSON: a credential travels as the ` +
|
|
39
|
+
`JSON a browser serializes a PublicKeyCredential to`);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
26
42
|
/**
|
|
27
43
|
* Read a value that may or may not be there.
|
|
28
44
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-auth-parameters.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-auth-parameters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAC;AAEvF;;;;;;GAMG;AACH,MAAM,OAAO,wBAAwB;IAClB,KAAK,CAAS;IACd,MAAM,CAA8B;IAErD,YACE,KAAa,EACb,MAAoD;QAEpD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,CAAC;IACtD,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,IAAY;QAClB,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE9B,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,EAAE,EAAE,CAAC;YACxC,MAAM,IAAI,mCAAmC,CAC3C,8BAA8B,IAAI,OAAO,IAAI,CAAC,KAAK,EAAE,CACtD,CAAC;QACJ,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,IAAY;QACf,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"sim-cognito-auth-parameters.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-auth-parameters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAC;AAEvF;;;;;;GAMG;AACH,MAAM,OAAO,wBAAwB;IAClB,KAAK,CAAS;IACd,MAAM,CAA8B;IAErD,YACE,KAAa,EACb,MAAoD;QAEpD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,CAAC;IACtD,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,IAAY;QAClB,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE9B,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,EAAE,EAAE,CAAC;YACxC,MAAM,IAAI,mCAAmC,CAC3C,8BAA8B,IAAI,OAAO,IAAI,CAAC,KAAK,EAAE,CACtD,CAAC;QACJ,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;;;;OAKG;IACH,eAAe,CAAC,IAAY;QAC1B,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAEjC,IAAI,CAAC;YACH,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC3B,CAAC;QAAC,MAAM,CAAC;YACP,MAAM,IAAI,mCAAmC,CAC3C,GAAG,IAAI,OAAO,IAAI,CAAC,KAAK,6CAA6C;gBACnE,oDAAoD,CACvD,CAAC;QACJ,CAAC;IACH,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,IAAY;QACf,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;CACF"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { SimCognitoUserPool } from "../../user-pool/sim-cognito-user-pool.js";
|
|
2
|
+
import type { SimCognitoUser } from "../../user-pool/user/sim-cognito-user.js";
|
|
3
|
+
/**
|
|
4
|
+
* The challenge a user answers with a password.
|
|
5
|
+
*/
|
|
6
|
+
export declare const simCognitoPasswordChallenge = "PASSWORD";
|
|
7
|
+
/**
|
|
8
|
+
* The challenge a user answers by presenting a passkey.
|
|
9
|
+
*/
|
|
10
|
+
export declare const simCognitoWebAuthnChallenge = "WEB_AUTHN";
|
|
11
|
+
/**
|
|
12
|
+
* The challenges a `USER_AUTH` sign-in offers this user, in the order the
|
|
13
|
+
* pool's sign-in policy named them.
|
|
14
|
+
*
|
|
15
|
+
* A pool created with no `SignInPolicy` allows a password and nothing else,
|
|
16
|
+
* which is what real Cognito falls back to.
|
|
17
|
+
*/
|
|
18
|
+
export declare function simCognitoAvailableChallenges(pool: SimCognitoUserPool, user: SimCognitoUser): readonly string[];
|
|
19
|
+
/**
|
|
20
|
+
* Refuse a challenge this sign-in cannot offer, naming the ones it can.
|
|
21
|
+
*
|
|
22
|
+
* A factor the pool does not allow, one this user has nothing to answer with,
|
|
23
|
+
* and one this simulation does not present all fail here, because each of them
|
|
24
|
+
* ends the sign-in either way and the caller is owed the reason.
|
|
25
|
+
*/
|
|
26
|
+
export declare function requireSimCognitoAvailableChallenge(challengeName: string, available: readonly string[], field: string): void;
|
|
27
|
+
/**
|
|
28
|
+
* Refuse a password at a pool that allows none at the first prompt.
|
|
29
|
+
*
|
|
30
|
+
* A `USER_AUTH` request carrying a `PASSWORD` outright never reaches the
|
|
31
|
+
* choice, so the policy is read here instead. A pool that allows no password
|
|
32
|
+
* first refuses one, as it refuses one picked out of the choice.
|
|
33
|
+
*/
|
|
34
|
+
export declare function requireSimCognitoAllowedPassword(pool: SimCognitoUserPool): void;
|
|
35
|
+
//# sourceMappingURL=sim-cognito-available-challenges.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-available-challenges.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-available-challenges.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE/E;;GAEG;AACH,eAAO,MAAM,2BAA2B,aAAa,CAAC;AAEtD;;GAEG;AACH,eAAO,MAAM,2BAA2B,cAAc,CAAC;AAwCvD;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAC3C,IAAI,EAAE,kBAAkB,EACxB,IAAI,EAAE,cAAc,GACnB,SAAS,MAAM,EAAE,CAInB;AAED;;;;;;GAMG;AACH,wBAAgB,mCAAmC,CACjD,aAAa,EAAE,MAAM,EACrB,SAAS,EAAE,SAAS,MAAM,EAAE,EAC5B,KAAK,EAAE,MAAM,GACZ,IAAI,CAgBN;AAED;;;;;;GAMG;AACH,wBAAgB,gCAAgC,CAC9C,IAAI,EAAE,kBAAkB,GACvB,IAAI,CASN"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { SimCognitoInvalidParameterException } from "../../error/sim-cognito.error.js";
|
|
2
|
+
/**
|
|
3
|
+
* The challenge a user answers with a password.
|
|
4
|
+
*/
|
|
5
|
+
export const simCognitoPasswordChallenge = "PASSWORD";
|
|
6
|
+
/**
|
|
7
|
+
* The challenge a user answers by presenting a passkey.
|
|
8
|
+
*/
|
|
9
|
+
export const simCognitoWebAuthnChallenge = "WEB_AUTHN";
|
|
10
|
+
/**
|
|
11
|
+
* The two first factors this simulation presents.
|
|
12
|
+
*
|
|
13
|
+
* A code sent by email or by text is a `USER_AUTH` challenge too, and neither
|
|
14
|
+
* is issued here. Nothing delivers a message, and the pool's own
|
|
15
|
+
* `EmailConfiguration` and `SmsConfiguration` are refused for the same reason.
|
|
16
|
+
*/
|
|
17
|
+
const presentedChallenges = [
|
|
18
|
+
simCognitoPasswordChallenge,
|
|
19
|
+
simCognitoWebAuthnChallenge,
|
|
20
|
+
];
|
|
21
|
+
/**
|
|
22
|
+
* Whether this user could present a factor the pool allows.
|
|
23
|
+
*
|
|
24
|
+
* A passkey has to have been registered, and a code has to have somewhere to
|
|
25
|
+
* be sent. Real Cognito answers a user with the challenges it could actually
|
|
26
|
+
* complete, and this is the same filter.
|
|
27
|
+
*/
|
|
28
|
+
function canPresent(factor, user) {
|
|
29
|
+
if (factor === simCognitoWebAuthnChallenge) {
|
|
30
|
+
return user.webAuthn.credentials.length > 0;
|
|
31
|
+
}
|
|
32
|
+
if (factor === "EMAIL_OTP") {
|
|
33
|
+
return user.attributeValues.has("email");
|
|
34
|
+
}
|
|
35
|
+
if (factor === "SMS_OTP") {
|
|
36
|
+
return user.attributeValues.has("phone_number");
|
|
37
|
+
}
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The challenges a `USER_AUTH` sign-in offers this user, in the order the
|
|
42
|
+
* pool's sign-in policy named them.
|
|
43
|
+
*
|
|
44
|
+
* A pool created with no `SignInPolicy` allows a password and nothing else,
|
|
45
|
+
* which is what real Cognito falls back to.
|
|
46
|
+
*/
|
|
47
|
+
export function simCognitoAvailableChallenges(pool, user) {
|
|
48
|
+
return pool.settings.signInPolicy.factors.filter((factor) => canPresent(factor, user));
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Refuse a challenge this sign-in cannot offer, naming the ones it can.
|
|
52
|
+
*
|
|
53
|
+
* A factor the pool does not allow, one this user has nothing to answer with,
|
|
54
|
+
* and one this simulation does not present all fail here, because each of them
|
|
55
|
+
* ends the sign-in either way and the caller is owed the reason.
|
|
56
|
+
*/
|
|
57
|
+
export function requireSimCognitoAvailableChallenge(challengeName, available, field) {
|
|
58
|
+
if (!available.includes(challengeName)) {
|
|
59
|
+
throw new SimCognitoInvalidParameterException(`${field} '${challengeName}' is not available to this user: the ` +
|
|
60
|
+
`sign-in offers ${available.join(", ")}`);
|
|
61
|
+
}
|
|
62
|
+
if (!presentedChallenges.includes(challengeName)) {
|
|
63
|
+
throw new SimCognitoInvalidParameterException(`${field} '${challengeName}' is not simulated: a code sent by email or ` +
|
|
64
|
+
`by text needs the pool's EmailConfiguration or SmsConfiguration, ` +
|
|
65
|
+
`and this simulation delivers no message. Sign in with ` +
|
|
66
|
+
`${presentedChallenges.join(" or ")} instead.`);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Refuse a password at a pool that allows none at the first prompt.
|
|
71
|
+
*
|
|
72
|
+
* A `USER_AUTH` request carrying a `PASSWORD` outright never reaches the
|
|
73
|
+
* choice, so the policy is read here instead. A pool that allows no password
|
|
74
|
+
* first refuses one, as it refuses one picked out of the choice.
|
|
75
|
+
*/
|
|
76
|
+
export function requireSimCognitoAllowedPassword(pool) {
|
|
77
|
+
const { factors } = pool.settings.signInPolicy;
|
|
78
|
+
if (!factors.includes(simCognitoPasswordChallenge)) {
|
|
79
|
+
throw new SimCognitoInvalidParameterException(`AuthParameters PASSWORD is not a first factor this user pool allows: ` +
|
|
80
|
+
`its SignInPolicy AllowedFirstAuthFactors names ${factors.join(", ")}`);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=sim-cognito-available-challenges.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-available-challenges.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-available-challenges.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAC;AAKvF;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,UAAU,CAAC;AAEtD;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,WAAW,CAAC;AAEvD;;;;;;GAMG;AACH,MAAM,mBAAmB,GAAsB;IAC7C,2BAA2B;IAC3B,2BAA2B;CAC5B,CAAC;AAEF;;;;;;GAMG;AACH,SAAS,UAAU,CACjB,MAAiC,EACjC,IAAoB;IAEpB,IAAI,MAAM,KAAK,2BAA2B,EAAE,CAAC;QAC3C,OAAO,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC;IAC9C,CAAC;IAED,IAAI,MAAM,KAAK,WAAW,EAAE,CAAC;QAC3B,OAAO,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAClD,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,6BAA6B,CAC3C,IAAwB,EACxB,IAAoB;IAEpB,OAAO,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAC1D,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,CACzB,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,mCAAmC,CACjD,aAAqB,EACrB,SAA4B,EAC5B,KAAa;IAEb,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;QACvC,MAAM,IAAI,mCAAmC,CAC3C,GAAG,KAAK,KAAK,aAAa,uCAAuC;YAC/D,kBAAkB,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC3C,CAAC;IACJ,CAAC;IAED,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;QACjD,MAAM,IAAI,mCAAmC,CAC3C,GAAG,KAAK,KAAK,aAAa,8CAA8C;YACtE,mEAAmE;YACnE,wDAAwD;YACxD,GAAG,mBAAmB,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CACjD,CAAC;IACJ,CAAC;AACH,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,gCAAgC,CAC9C,IAAwB;IAExB,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC;IAE/C,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAC,EAAE,CAAC;QACnD,MAAM,IAAI,mCAAmC,CAC3C,uEAAuE;YACrE,kDAAkD,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CACzE,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import type { SimCognitoFirstFactorResponse } from "./sim-cognito-first-factor-response.js";
|
|
1
2
|
import type { SimCognitoMfaResponse } from "./sim-cognito-mfa-response.js";
|
|
2
3
|
import type { SimCognitoChallengeResponseRequest, SimCognitoNewPasswordResponse } from "./sim-cognito-new-password-response.js";
|
|
3
4
|
import type { SimCognitoAuthenticationOutput } from "./auth.command.js";
|
|
4
5
|
interface SimCognitoChallengeResponsesProperties {
|
|
5
6
|
readonly newPassword: SimCognitoNewPasswordResponse;
|
|
6
7
|
readonly mfa: SimCognitoMfaResponse;
|
|
8
|
+
readonly firstFactor: SimCognitoFirstFactorResponse;
|
|
7
9
|
}
|
|
8
10
|
/**
|
|
9
11
|
* Sends a challenge response to whichever challenge it is answering.
|
|
@@ -15,6 +17,7 @@ interface SimCognitoChallengeResponsesProperties {
|
|
|
15
17
|
export declare class SimCognitoChallengeResponses {
|
|
16
18
|
private readonly newPassword;
|
|
17
19
|
private readonly mfa;
|
|
20
|
+
private readonly firstFactor;
|
|
18
21
|
constructor(properties: SimCognitoChallengeResponsesProperties);
|
|
19
22
|
/**
|
|
20
23
|
* Answer the challenge the request names, or refuse a challenge this
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-challenge-responses.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-challenge-responses.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sim-cognito-challenge-responses.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-challenge-responses.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AAC5F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,KAAK,EACV,kCAAkC,EAClC,6BAA6B,EAC9B,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAExE,UAAU,sCAAsC;IAC9C,QAAQ,CAAC,WAAW,EAAE,6BAA6B,CAAC;IACpD,QAAQ,CAAC,GAAG,EAAE,qBAAqB,CAAC;IACpC,QAAQ,CAAC,WAAW,EAAE,6BAA6B,CAAC;CACrD;AAWD;;;;;;GAMG;AACH,qBAAa,4BAA4B;IACvC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAgC;IAC5D,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAwB;IAC5C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAgC;IAE5D,YAAY,UAAU,EAAE,sCAAsC,EAI7D;IAED;;;OAGG;IACG,MAAM,CACV,aAAa,EAAE,MAAM,GAAG,SAAS,EACjC,OAAO,EAAE,kCAAkC,GAC1C,OAAO,CAAC,8BAA8B,CAAC,CAezC;CACF"}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import { newPasswordRequiredChallenge, requireSimCognitoChallengeName, } from "./sim-cognito-auth-challenge.js";
|
|
2
|
+
import { simCognitoPasswordChallenge, simCognitoWebAuthnChallenge, } from "./sim-cognito-available-challenges.js";
|
|
3
|
+
import { simCognitoSelectChallenge } from "./sim-cognito-first-factor-challenge.js";
|
|
4
|
+
/**
|
|
5
|
+
* The challenges a `USER_AUTH` sign-in issues, which one responder answers.
|
|
6
|
+
*/
|
|
7
|
+
const firstFactorChallenges = new Set([
|
|
8
|
+
simCognitoSelectChallenge,
|
|
9
|
+
simCognitoPasswordChallenge,
|
|
10
|
+
simCognitoWebAuthnChallenge,
|
|
11
|
+
]);
|
|
2
12
|
/**
|
|
3
13
|
* Sends a challenge response to whichever challenge it is answering.
|
|
4
14
|
*
|
|
@@ -9,9 +19,11 @@ import { newPasswordRequiredChallenge, requireSimCognitoChallengeName, } from ".
|
|
|
9
19
|
export class SimCognitoChallengeResponses {
|
|
10
20
|
newPassword;
|
|
11
21
|
mfa;
|
|
22
|
+
firstFactor;
|
|
12
23
|
constructor(properties) {
|
|
13
24
|
this.newPassword = properties.newPassword;
|
|
14
25
|
this.mfa = properties.mfa;
|
|
26
|
+
this.firstFactor = properties.firstFactor;
|
|
15
27
|
}
|
|
16
28
|
/**
|
|
17
29
|
* Answer the challenge the request names, or refuse a challenge this
|
|
@@ -22,6 +34,12 @@ export class SimCognitoChallengeResponses {
|
|
|
22
34
|
if (challenge === newPasswordRequiredChallenge) {
|
|
23
35
|
return await this.newPassword.handle(request);
|
|
24
36
|
}
|
|
37
|
+
if (firstFactorChallenges.has(challenge)) {
|
|
38
|
+
return await this.firstFactor.handle({
|
|
39
|
+
...request,
|
|
40
|
+
challengeName: challenge,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
25
43
|
return await this.mfa.handle({ ...request, challengeName: challenge });
|
|
26
44
|
}
|
|
27
45
|
}
|