@kensio/yulin 1.18.1 → 1.19.0
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 +15 -0
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js.map +1 -1
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-refresh-token-rotation.d.ts +27 -0
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-refresh-token-rotation.d.ts.map +1 -0
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-refresh-token-rotation.js +35 -0
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-refresh-token-rotation.js.map +1 -0
- 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 +36 -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 +8 -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 +35 -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-get-tokens-from-refresh-token.d.ts +35 -0
- package/dist/service/cognito/command/auth/sim-cognito-get-tokens-from-refresh-token.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-get-tokens-from-refresh-token.js +51 -0
- package/dist/service/cognito/command/auth/sim-cognito-get-tokens-from-refresh-token.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-refresh-sign-in.d.ts +3 -8
- package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.js +24 -17
- package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-refreshed-tokens.d.ts +56 -0
- package/dist/service/cognito/command/auth/sim-cognito-refreshed-tokens.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-refreshed-tokens.js +50 -0
- package/dist/service/cognito/command/auth/sim-cognito-refreshed-tokens.js.map +1 -0
- 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 -2
- 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 +4 -3
- 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 +6 -3
- 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 +4 -1
- 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 +65 -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 +71 -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/hosted/sim-cognito-presented-grant.js +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-presented-grant.js.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-token-grants.d.ts +3 -3
- package/dist/service/cognito/command/hosted/sim-cognito-token-grants.d.ts.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-token-grants.js +5 -4
- package/dist/service/cognito/command/hosted/sim-cognito-token-grants.js.map +1 -1
- package/dist/service/cognito/command/sim-cognito-command.types.d.ts +2 -1
- 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 +10 -1
- package/dist/service/cognito/index.d.ts.map +1 -1
- package/dist/service/cognito/index.js +8 -0
- package/dist/service/cognito/index.js.map +1 -1
- package/dist/service/cognito/sdk/sim-cognito-sdk-auth-routes.d.ts.map +1 -1
- package/dist/service/cognito/sdk/sim-cognito-sdk-auth-routes.js +4 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-auth-routes.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-authentication.d.ts +8 -0
- package/dist/service/cognito/sim-cognito-authentication.d.ts.map +1 -1
- package/dist/service/cognito/sim-cognito-authentication.js +11 -0
- package/dist/service/cognito/sim-cognito-authentication.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-issued-token-store.d.ts +11 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.js +17 -2
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.js.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.d.ts +41 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.js +62 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.js.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.d.ts +10 -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 +19 -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-refresh-token-input.d.ts +11 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-refresh-token-input.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-refresh-token-input.js +17 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-refresh-token-input.js.map +1 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-refreshable-session.factory.d.ts +61 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-refreshable-session.factory.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-refreshable-session.factory.js +80 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-refreshable-session.factory.js.map +1 -0
- 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-client-secret.d.ts +10 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-client-secret.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-client-secret.js +22 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-client-secret.js.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-refresh-token-rotation.d.ts +48 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-refresh-token-rotation.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-refresh-token-rotation.js +79 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-refresh-token-rotation.js.map +1 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.d.ts +13 -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 +13 -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 +12 -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 +14 -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/token/sim-cognito-token-issuer.d.ts +34 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.js +40 -1
- package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.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 +3 -1
- 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 +21 -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 +43 -0
- 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/list-functions/list-functions-authorizer.d.ts +31 -0
- package/dist/service/lambda/command/list-functions/list-functions-authorizer.d.ts.map +1 -0
- package/dist/service/lambda/command/list-functions/list-functions-authorizer.js +41 -0
- package/dist/service/lambda/command/list-functions/list-functions-authorizer.js.map +1 -0
- package/dist/service/lambda/command/list-functions/list-functions.command.d.ts +34 -0
- package/dist/service/lambda/command/list-functions/list-functions.command.d.ts.map +1 -0
- package/dist/service/lambda/command/list-functions/list-functions.command.js +5 -0
- package/dist/service/lambda/command/list-functions/list-functions.command.js.map +1 -0
- package/dist/service/lambda/command/list-functions/list-functions.handler.d.ts +35 -0
- package/dist/service/lambda/command/list-functions/list-functions.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/list-functions/list-functions.handler.js +46 -0
- package/dist/service/lambda/command/list-functions/list-functions.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 +8 -0
- package/dist/service/lambda/command/sim-lambda-command.types.d.ts.map +1 -1
- package/dist/service/lambda/command/update-function-code/update-function-code-authorizer.d.ts +27 -0
- package/dist/service/lambda/command/update-function-code/update-function-code-authorizer.d.ts.map +1 -0
- package/dist/service/lambda/command/update-function-code/update-function-code-authorizer.js +37 -0
- package/dist/service/lambda/command/update-function-code/update-function-code-authorizer.js.map +1 -0
- package/dist/service/lambda/command/update-function-code/update-function-code-input.d.ts +16 -0
- package/dist/service/lambda/command/update-function-code/update-function-code-input.d.ts.map +1 -0
- package/dist/service/lambda/command/update-function-code/update-function-code-input.js +30 -0
- package/dist/service/lambda/command/update-function-code/update-function-code-input.js.map +1 -0
- package/dist/service/lambda/command/update-function-code/update-function-code.command.d.ts +41 -0
- package/dist/service/lambda/command/update-function-code/update-function-code.command.d.ts.map +1 -0
- package/dist/service/lambda/command/update-function-code/update-function-code.command.js +5 -0
- package/dist/service/lambda/command/update-function-code/update-function-code.command.js.map +1 -0
- package/dist/service/lambda/command/update-function-code/update-function-code.handler.d.ts +52 -0
- package/dist/service/lambda/command/update-function-code/update-function-code.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/update-function-code/update-function-code.handler.js +72 -0
- package/dist/service/lambda/command/update-function-code/update-function-code.handler.js.map +1 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-authorizer.d.ts +28 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-authorizer.d.ts.map +1 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-authorizer.js +38 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-authorizer.js.map +1 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.d.ts +23 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.d.ts.map +1 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.js +31 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.js.map +1 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration.command.d.ts +44 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration.command.d.ts.map +1 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration.command.js +5 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration.command.js.map +1 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration.handler.d.ts +50 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration.handler.js +61 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration.handler.js.map +1 -0
- 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/code/lambda-code-source.d.ts +15 -2
- package/dist/service/lambda/function/code/lambda-code-source.d.ts.map +1 -1
- package/dist/service/lambda/function/code/lambda-code-source.js +19 -14
- package/dist/service/lambda/function/code/lambda-code-source.js.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-code-resolver.d.ts +6 -0
- package/dist/service/lambda/function/code/sim-lambda-code-resolver.d.ts.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-code-resolver.js.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-executable-code.d.ts +28 -0
- package/dist/service/lambda/function/code/sim-lambda-executable-code.d.ts.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-executable-code.js +10 -0
- package/dist/service/lambda/function/code/sim-lambda-executable-code.js.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.d.ts.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.js +2 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.js.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.d.ts +11 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.d.ts.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.js +16 -0
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.js.map +1 -1
- package/dist/service/lambda/{command/create-function/create-function-environment-names.d.ts → function/environment/lambda-environment-variable-names.d.ts} +1 -1
- package/dist/service/lambda/function/environment/lambda-environment-variable-names.d.ts.map +1 -0
- package/dist/service/lambda/{command/create-function/create-function-environment-names.js → function/environment/lambda-environment-variable-names.js} +1 -1
- package/dist/service/lambda/function/environment/lambda-environment-variable-names.js.map +1 -0
- package/dist/service/lambda/{command/create-function/create-function-environment.d.ts → function/environment/lambda-environment-variables.d.ts} +2 -2
- package/dist/service/lambda/function/environment/lambda-environment-variables.d.ts.map +1 -0
- package/dist/service/lambda/{command/create-function/create-function-environment.js → function/environment/lambda-environment-variables.js} +2 -2
- package/dist/service/lambda/function/environment/lambda-environment-variables.js.map +1 -0
- package/dist/service/lambda/function/environment/lambda-reserved-variable-names.d.ts.map +1 -0
- package/dist/service/lambda/function/environment/lambda-reserved-variable-names.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 +40 -0
- package/dist/service/lambda/function/sim-lambda-function-reconfiguration.d.ts.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function-reconfiguration.js +66 -0
- package/dist/service/lambda/function/sim-lambda-function-reconfiguration.js.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function.d.ts +36 -56
- package/dist/service/lambda/function/sim-lambda-function.d.ts.map +1 -1
- package/dist/service/lambda/function/sim-lambda-function.js +50 -23
- package/dist/service/lambda/function/sim-lambda-function.js.map +1 -1
- package/dist/service/lambda/function/sim-lambda-function.type.d.ts +58 -0
- package/dist/service/lambda/function/sim-lambda-function.type.d.ts.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function.type.js +2 -0
- package/dist/service/lambda/function/sim-lambda-function.type.js.map +1 -0
- 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 +14 -0
- package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.js.map +1 -1
- package/dist/service/lambda/serve/api/sim-lambda-api-function-input.d.ts +27 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-function-input.d.ts.map +1 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-function-input.js +76 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-function-input.js.map +1 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-function-routes.d.ts.map +1 -1
- package/dist/service/lambda/serve/api/sim-lambda-api-function-routes.js +19 -58
- package/dist/service/lambda/serve/api/sim-lambda-api-function-routes.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 +18 -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 +12 -7
- package/dist/service/lambda/sim-lambda.d.ts.map +1 -1
- package/dist/service/lambda/sim-lambda.js +16 -3
- package/dist/service/lambda/sim-lambda.js.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-notification-event.d.ts +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-notification-event.d.ts.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-notification-event.js +7 -1
- package/dist/service/s3/bucket/notification/sim-s3-notification-event.js.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-events.d.ts.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-events.js +0 -1
- package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-events.js.map +1 -1
- package/dist/service/s3/command/copy-object/copy-object-builder.d.ts +34 -0
- package/dist/service/s3/command/copy-object/copy-object-builder.d.ts.map +1 -0
- package/dist/service/s3/command/copy-object/copy-object-builder.js +40 -0
- package/dist/service/s3/command/copy-object/copy-object-builder.js.map +1 -0
- package/dist/service/s3/command/copy-object/copy-object-source.d.ts +37 -0
- package/dist/service/s3/command/copy-object/copy-object-source.d.ts.map +1 -0
- package/dist/service/s3/command/copy-object/copy-object-source.js +80 -0
- package/dist/service/s3/command/copy-object/copy-object-source.js.map +1 -0
- package/dist/service/s3/command/copy-object/copy-object.command.d.ts +41 -0
- package/dist/service/s3/command/copy-object/copy-object.command.d.ts.map +1 -0
- package/dist/service/s3/command/copy-object/copy-object.command.js +2 -0
- package/dist/service/s3/command/copy-object/copy-object.command.js.map +1 -0
- package/dist/service/s3/command/copy-object/copy-object.handler.d.ts +43 -0
- package/dist/service/s3/command/copy-object/copy-object.handler.d.ts.map +1 -0
- package/dist/service/s3/command/copy-object/copy-object.handler.js +76 -0
- package/dist/service/s3/command/copy-object/copy-object.handler.js.map +1 -0
- package/dist/service/s3/command/object/sim-s3-object-commands.d.ts +4 -0
- package/dist/service/s3/command/object/sim-s3-object-commands.d.ts.map +1 -1
- package/dist/service/s3/command/object/sim-s3-object-commands.js +7 -0
- package/dist/service/s3/command/object/sim-s3-object-commands.js.map +1 -1
- package/dist/service/s3/command/sim-s3-command.types.d.ts +1 -0
- package/dist/service/s3/command/sim-s3-command.types.d.ts.map +1 -1
- package/dist/service/s3/error/sim-s3.error.d.ts +11 -0
- package/dist/service/s3/error/sim-s3.error.d.ts.map +1 -1
- package/dist/service/s3/error/sim-s3.error.js +13 -0
- package/dist/service/s3/error/sim-s3.error.js.map +1 -1
- package/dist/service/s3/sdk/sim-s3-sdk-command-router.d.ts.map +1 -1
- package/dist/service/s3/sdk/sim-s3-sdk-command-router.js +4 -0
- package/dist/service/s3/sdk/sim-s3-sdk-command-router.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/dist/service/s3/sim-s3-operations.d.ts +2 -0
- package/dist/service/s3/sim-s3-operations.d.ts.map +1 -1
- package/dist/service/s3/sim-s3-operations.js +4 -0
- package/dist/service/s3/sim-s3-operations.js.map +1 -1
- package/dist/service/wafv2/command/web-acl/sim-wafv2-web-acl-commands.d.ts +2 -0
- package/dist/service/wafv2/command/web-acl/sim-wafv2-web-acl-commands.d.ts.map +1 -1
- package/dist/service/wafv2/command/web-acl/sim-wafv2-web-acl-commands.js +3 -0
- package/dist/service/wafv2/command/web-acl/sim-wafv2-web-acl-commands.js.map +1 -1
- package/dist/service/wafv2/index.d.ts +1 -0
- package/dist/service/wafv2/index.d.ts.map +1 -1
- package/dist/service/wafv2/index.js.map +1 -1
- package/dist/service/wafv2/managed/sim-waf-managed-group-statement.d.ts.map +1 -1
- package/dist/service/wafv2/managed/sim-waf-managed-group-statement.js +1 -0
- package/dist/service/wafv2/managed/sim-waf-managed-group-statement.js.map +1 -1
- package/dist/service/wafv2/sim-wafv2-commands.d.ts.map +1 -1
- package/dist/service/wafv2/sim-wafv2-commands.js +3 -0
- package/dist/service/wafv2/sim-wafv2-commands.js.map +1 -1
- package/dist/service/wafv2/sim-wafv2.d.ts.map +1 -1
- package/dist/service/wafv2/sim-wafv2.js +1 -0
- package/dist/service/wafv2/sim-wafv2.js.map +1 -1
- package/dist/service/wafv2/statement/sim-waf-rate-based-input.d.ts +49 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based-input.d.ts.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based-input.js +94 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based-input.js.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based.d.ts +22 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based.d.ts.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based.js +41 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based.js.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based.type.d.ts +18 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based.type.d.ts.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based.type.js +2 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based.type.js.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-rate-counter.d.ts +29 -0
- package/dist/service/wafv2/statement/sim-waf-rate-counter.d.ts.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-rate-counter.js +35 -0
- package/dist/service/wafv2/statement/sim-waf-rate-counter.js.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-statement.d.ts +6 -0
- package/dist/service/wafv2/statement/sim-waf-statement.d.ts.map +1 -1
- package/dist/service/wafv2/statement/sim-waf-statement.js +4 -0
- package/dist/service/wafv2/statement/sim-waf-statement.js.map +1 -1
- package/dist/service/wafv2/statement/sim-waf-statement.type.d.ts +2 -1
- package/dist/service/wafv2/statement/sim-waf-statement.type.d.ts.map +1 -1
- package/dist/service/wafv2/statement/sim-waf-unsimulated-rate-based.d.ts +10 -0
- package/dist/service/wafv2/statement/sim-waf-unsimulated-rate-based.d.ts.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-unsimulated-rate-based.js +40 -0
- package/dist/service/wafv2/statement/sim-waf-unsimulated-rate-based.js.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-unsimulated-statement.d.ts.map +1 -1
- package/dist/service/wafv2/statement/sim-waf-unsimulated-statement.js +0 -5
- package/dist/service/wafv2/statement/sim-waf-unsimulated-statement.js.map +1 -1
- package/dist/service/wafv2/web-acl/sim-waf-rule-evaluator.d.ts.map +1 -1
- package/dist/service/wafv2/web-acl/sim-waf-rule-evaluator.js +25 -2
- package/dist/service/wafv2/web-acl/sim-waf-rule-evaluator.js.map +1 -1
- package/dist/service/wafv2/web-acl/sim-waf-rule.type.d.ts +6 -0
- package/dist/service/wafv2/web-acl/sim-waf-rule.type.d.ts.map +1 -1
- package/dist/service/wafv2/web-acl/sim-waf-web-acl-capacity.d.ts.map +1 -1
- package/dist/service/wafv2/web-acl/sim-waf-web-acl-capacity.js +16 -1
- package/dist/service/wafv2/web-acl/sim-waf-web-acl-capacity.js.map +1 -1
- package/dist/util/clock/sim-clock-control.d.ts +8 -0
- package/dist/util/clock/sim-clock-control.d.ts.map +1 -1
- package/dist/util/clock/sim-clock-control.js +10 -1
- package/dist/util/clock/sim-clock-control.js.map +1 -1
- package/package.json +1 -1
- package/dist/service/lambda/command/create-function/create-function-environment-names.d.ts.map +0 -1
- package/dist/service/lambda/command/create-function/create-function-environment-names.js.map +0 -1
- package/dist/service/lambda/command/create-function/create-function-environment.d.ts.map +0 -1
- package/dist/service/lambda/command/create-function/create-function-environment.js.map +0 -1
- package/dist/service/lambda/command/create-function/lambda-reserved-variable-names.d.ts.map +0 -1
- package/dist/service/lambda/command/create-function/lambda-reserved-variable-names.js.map +0 -1
- /package/dist/service/lambda/{command/create-function → function/environment}/lambda-reserved-variable-names.d.ts +0 -0
- /package/dist/service/lambda/{command/create-function → function/environment}/lambda-reserved-variable-names.js +0 -0
|
@@ -15,10 +15,10 @@ export class SimCognitoNewPasswordChallenge {
|
|
|
15
15
|
* Answer with `NEW_PASSWORD_REQUIRED` and a session.
|
|
16
16
|
*/
|
|
17
17
|
issue(properties) {
|
|
18
|
-
const { pool,
|
|
18
|
+
const { pool, client, user } = properties;
|
|
19
19
|
const session = new SimCognitoAuthSession({
|
|
20
20
|
username: user.username,
|
|
21
|
-
|
|
21
|
+
client,
|
|
22
22
|
challengeName: newPasswordRequiredChallenge,
|
|
23
23
|
issuedAt: this.clock.now(),
|
|
24
24
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-new-password-challenge.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-new-password-challenge.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-new-password-challenge.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-new-password-challenge.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AAIzF,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAa/E;;;;;GAKG;AACH,MAAM,OAAO,8BAA8B;IACxB,KAAK,CAAW;IAEjC,YAAY,UAAoD;QAC9D,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,KAAK,CACH,UAAyC;QAEzC,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC;QAC1C,MAAM,OAAO,GAAG,IAAI,qBAAqB,CAAC;YACxC,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,MAAM;YACN,aAAa,EAAE,4BAA4B;YAC3C,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE;SAC3B,CAAC,CAAC;QAEH,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QAE9B,OAAO;YACL,SAAS,EAAE,EAAE;YACb,aAAa,EAAE,4BAA4B;YAC3C,OAAO,EAAE,OAAO,CAAC,EAAE;YACnB,mBAAmB,EAAE;gBACnB,eAAe,EAAE,IAAI,CAAC,QAAQ;gBAC9B,kBAAkB,EAAE,IAAI;gBACxB,cAAc,EAAE,IAAI;aACrB;SACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { SimCognitoAuthSession } from "../../user-pool/auth/sim-cognito-auth-session.js";
|
|
2
|
+
import type { SimCognitoUser } from "../../user-pool/user/sim-cognito-user.js";
|
|
3
|
+
import type { SimCognitoFirstFactorResponseRequest } from "./sim-cognito-first-factor-response.js";
|
|
4
|
+
import type { SimCognitoSignInCompletion } from "./sim-cognito-sign-in-completion.js";
|
|
5
|
+
import type { SimCognitoAuthenticationOutput } from "./auth.command.js";
|
|
6
|
+
interface SimCognitoPasswordResponseProperties {
|
|
7
|
+
readonly completion: SimCognitoSignInCompletion;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Signing in with the password a `USER_AUTH` challenge asked for.
|
|
11
|
+
*
|
|
12
|
+
* This is the same password check `USER_PASSWORD_AUTH` makes, reached the
|
|
13
|
+
* other way. A `PASSWORD` challenge is answered with it, and so is a
|
|
14
|
+
* `SELECT_CHALLENGE` whose `ANSWER` picked `PASSWORD`, which is the shape the
|
|
15
|
+
* Cognito documentation gives for choosing a password.
|
|
16
|
+
*
|
|
17
|
+
* A user that has registered a second factor is challenged for it afterwards,
|
|
18
|
+
* as it is on every other password sign-in. A wrong password leaves the
|
|
19
|
+
* challenge session standing, so the person can type it again.
|
|
20
|
+
*/
|
|
21
|
+
export declare class SimCognitoPasswordResponse {
|
|
22
|
+
private readonly completion;
|
|
23
|
+
constructor(properties: SimCognitoPasswordResponseProperties);
|
|
24
|
+
/**
|
|
25
|
+
* Check the password and finish, or answer with the second factor the user
|
|
26
|
+
* still owes.
|
|
27
|
+
*/
|
|
28
|
+
complete(request: SimCognitoFirstFactorResponseRequest, session: SimCognitoAuthSession, user: SimCognitoUser): Promise<SimCognitoAuthenticationOutput>;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=sim-cognito-password-response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-password-response.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-password-response.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AAE9F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,wCAAwC,CAAC;AACnG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACtF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAExE,UAAU,oCAAoC;IAC5C,QAAQ,CAAC,UAAU,EAAE,0BAA0B,CAAC;CACjD;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,0BAA0B;IACrC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA6B;IAExD,YAAY,UAAU,EAAE,oCAAoC,EAE3D;IAED;;;OAGG;IACG,QAAQ,CACZ,OAAO,EAAE,oCAAoC,EAC7C,OAAO,EAAE,qBAAqB,EAC9B,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,8BAA8B,CAAC,CAezC;CACF"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { requireSimCognitoConfirmed, requireSimCognitoPasswordSet, requireSimCognitoSignIn, } from "../../user-pool/auth/sim-cognito-sign-in.js";
|
|
2
|
+
import { SimCognitoTriggerOccasion } from "../../user-pool/trigger/sim-cognito-trigger-occasion.js";
|
|
3
|
+
/**
|
|
4
|
+
* Signing in with the password a `USER_AUTH` challenge asked for.
|
|
5
|
+
*
|
|
6
|
+
* This is the same password check `USER_PASSWORD_AUTH` makes, reached the
|
|
7
|
+
* other way. A `PASSWORD` challenge is answered with it, and so is a
|
|
8
|
+
* `SELECT_CHALLENGE` whose `ANSWER` picked `PASSWORD`, which is the shape the
|
|
9
|
+
* Cognito documentation gives for choosing a password.
|
|
10
|
+
*
|
|
11
|
+
* A user that has registered a second factor is challenged for it afterwards,
|
|
12
|
+
* as it is on every other password sign-in. A wrong password leaves the
|
|
13
|
+
* challenge session standing, so the person can type it again.
|
|
14
|
+
*/
|
|
15
|
+
export class SimCognitoPasswordResponse {
|
|
16
|
+
completion;
|
|
17
|
+
constructor(properties) {
|
|
18
|
+
this.completion = properties.completion;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Check the password and finish, or answer with the second factor the user
|
|
22
|
+
* still owes.
|
|
23
|
+
*/
|
|
24
|
+
async complete(request, session, user) {
|
|
25
|
+
requireSimCognitoSignIn(user, request.parameters.require("PASSWORD"));
|
|
26
|
+
requireSimCognitoConfirmed(user);
|
|
27
|
+
requireSimCognitoPasswordSet(user);
|
|
28
|
+
request.pool.auth.removeSession(session);
|
|
29
|
+
return await this.completion.challengeOrComplete({
|
|
30
|
+
pool: request.pool,
|
|
31
|
+
client: request.client,
|
|
32
|
+
user,
|
|
33
|
+
occasion: SimCognitoTriggerOccasion.tokenGeneration,
|
|
34
|
+
tokenClientMetadata: request.clientMetadata,
|
|
35
|
+
clientMetadata: request.clientMetadata,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=sim-cognito-password-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-password-response.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-password-response.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,4BAA4B,EAC5B,uBAAuB,GACxB,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AAUpG;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,0BAA0B;IACpB,UAAU,CAA6B;IAExD,YAAY,UAAgD;QAC1D,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;IAC1C,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,QAAQ,CACZ,OAA6C,EAC7C,OAA8B,EAC9B,IAAoB;QAEpB,uBAAuB,CAAC,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;QACtE,0BAA0B,CAAC,IAAI,CAAC,CAAC;QACjC,4BAA4B,CAAC,IAAI,CAAC,CAAC;QAEnC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAEzC,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;YAC/C,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,IAAI;YACJ,QAAQ,EAAE,yBAAyB,CAAC,eAAe;YACnD,mBAAmB,EAAE,OAAO,CAAC,cAAc;YAC3C,cAAc,EAAE,OAAO,CAAC,cAAc;SACvC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -47,7 +47,7 @@ export class SimCognitoPasswordSignIn {
|
|
|
47
47
|
requireSimCognitoConfirmed(user);
|
|
48
48
|
requireSimCognitoPasswordSet(user);
|
|
49
49
|
if (user.status.mustChangePassword) {
|
|
50
|
-
return this.challenge.issue({ pool,
|
|
50
|
+
return this.challenge.issue({ pool, client, user });
|
|
51
51
|
}
|
|
52
52
|
// A user that has registered a second factor is challenged for it here
|
|
53
53
|
// rather than answered with tokens, which is what the pool's
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-password-sign-in.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-password-sign-in.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,4BAA4B,EAC5B,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,6CAA6C,CAAC;AAGrD,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AA8BpG;;;;;;;;GAQG;AACH,MAAM,OAAO,wBAAwB;IAClB,YAAY,CAAyB;IACrC,UAAU,CAA6B;IACvC,SAAS,CAAiC;IAC1C,QAAQ,CAA6B;IAEtD,YAAY,UAA8C;QACxD,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,YAAY,CAAC;QAC5C,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;QACxC,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;QACtC,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;IACtC,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,MAAM,CACV,OAA8B;QAE9B,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC;QAC7D,MAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;QAChE,MAAM,IAAI,GAAG,2BAA2B,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;QAEjE,MAAM,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC;YACpC,IAAI;YACJ,MAAM;YACN,IAAI;YACJ,cAAc;SACf,CAAC,CAAC;QAEH,uBAAuB,CAAC,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;QAC9D,0BAA0B,CAAC,IAAI,CAAC,CAAC;QACjC,4BAA4B,CAAC,IAAI,CAAC,CAAC;QAEnC,IAAI,IAAI,CAAC,MAAM,CAAC,kBAAkB,EAAE,CAAC;YACnC,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"sim-cognito-password-sign-in.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-password-sign-in.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,4BAA4B,EAC5B,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,6CAA6C,CAAC;AAGrD,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AA8BpG;;;;;;;;GAQG;AACH,MAAM,OAAO,wBAAwB;IAClB,YAAY,CAAyB;IACrC,UAAU,CAA6B;IACvC,SAAS,CAAiC;IAC1C,QAAQ,CAA6B;IAEtD,YAAY,UAA8C;QACxD,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,YAAY,CAAC;QAC5C,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;QACxC,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;QACtC,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;IACtC,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,MAAM,CACV,OAA8B;QAE9B,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC;QAC7D,MAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;QAChE,MAAM,IAAI,GAAG,2BAA2B,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;QAEjE,MAAM,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC;YACpC,IAAI;YACJ,MAAM;YACN,IAAI;YACJ,cAAc;SACf,CAAC,CAAC;QAEH,uBAAuB,CAAC,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;QAC9D,0BAA0B,CAAC,IAAI,CAAC,CAAC;QACjC,4BAA4B,CAAC,IAAI,CAAC,CAAC;QAEnC,IAAI,IAAI,CAAC,MAAM,CAAC,kBAAkB,EAAE,CAAC;YACnC,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;QACtD,CAAC;QAED,uEAAuE;QACvE,6DAA6D;QAC7D,4BAA4B;QAC5B,EAAE;QACF,yEAAyE;QACzE,uEAAuE;QACvE,8CAA8C;QAC9C,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;YAC/C,IAAI;YACJ,MAAM;YACN,IAAI;YACJ,QAAQ,EAAE,yBAAyB,CAAC,eAAe;YACnD,cAAc;SACf,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { SimClock } from "../../../../util/clock/sim-clock.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { SimCognitoRefreshedTokens } from "./sim-cognito-refreshed-tokens.js";
|
|
3
3
|
import type { SimCognitoAuthRequest } from "./sim-cognito-password-sign-in.js";
|
|
4
4
|
import type { SimCognitoAuthenticationOutput } from "./auth.command.js";
|
|
5
5
|
interface SimCognitoRefreshSignInProperties {
|
|
6
|
-
readonly
|
|
6
|
+
readonly refreshedTokens: SimCognitoRefreshedTokens;
|
|
7
7
|
readonly clock: SimClock;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
@@ -13,15 +13,10 @@ interface SimCognitoRefreshSignInProperties {
|
|
|
13
13
|
* it is, which is why one presented to another app client is refused. Nothing
|
|
14
14
|
* new comes back with the tokens, because real Cognito issues no new refresh
|
|
15
15
|
* token here, so a client keeps the one it has until that expires.
|
|
16
|
-
*
|
|
17
|
-
* The pool's `PreTokenGeneration` trigger runs for the reissued tokens, as it
|
|
18
|
-
* does on real Cognito, so a claim it changed since the sign-in is on the token
|
|
19
|
-
* a refresh answers with rather than being stale for the life of the session.
|
|
20
16
|
*/
|
|
21
17
|
export declare class SimCognitoRefreshSignIn {
|
|
22
|
-
private readonly
|
|
18
|
+
private readonly refreshedTokens;
|
|
23
19
|
private readonly clock;
|
|
24
|
-
private readonly result;
|
|
25
20
|
constructor(properties: SimCognitoRefreshSignInProperties);
|
|
26
21
|
/**
|
|
27
22
|
* Refresh a session, or refuse the token it was asked for with.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-refresh-sign-in.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-refresh-sign-in.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-refresh-sign-in.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-refresh-sign-in.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAIpE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAExE,UAAU,iCAAiC;IACzC,QAAQ,CAAC,eAAe,EAAE,yBAAyB,CAAC;IACpD,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;CAC1B;AAuBD;;;;;;;GAOG;AACH,qBAAa,uBAAuB;IAClC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA4B;IAC5D,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAW;IAEjC,YAAY,UAAU,EAAE,iCAAiC,EAGxD;IAED;;OAEG;IACG,MAAM,CACV,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,8BAA8B,CAAC,CA8BzC;CACF"}
|
|
@@ -1,8 +1,22 @@
|
|
|
1
|
+
import { SimCognitoInvalidParameterException } from "../../error/sim-cognito.error.js";
|
|
1
2
|
import { requireSimCognitoSecretHash } from "../../user-pool/auth/sim-cognito-secret-hash.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Refuse a refresh through an app client that rotates its refresh tokens.
|
|
5
|
+
*
|
|
6
|
+
* Rotation and `REFRESH_TOKEN_AUTH` do not go together on real Cognito, which
|
|
7
|
+
* is why `aws-cdk-lib` drops `ALLOW_REFRESH_TOKEN_AUTH` from a client the
|
|
8
|
+
* moment it is given a rotation grace period. A client that kept the flow
|
|
9
|
+
* anyway is told where the operation went rather than handed tokens the real
|
|
10
|
+
* pool would not have handed it.
|
|
11
|
+
*/
|
|
12
|
+
function requireSimCognitoNoRotation(client) {
|
|
13
|
+
if (!client.refreshTokenRotation.enabled) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
throw new SimCognitoInvalidParameterException(`REFRESH_TOKEN_AUTH is not available on the client ${client.id}: it ` +
|
|
17
|
+
`rotates its refresh tokens, so renew the session with ` +
|
|
18
|
+
`GetTokensFromRefreshToken instead`);
|
|
19
|
+
}
|
|
6
20
|
/**
|
|
7
21
|
* Trading a refresh token for a new access and id token.
|
|
8
22
|
*
|
|
@@ -10,17 +24,12 @@ import { SimCognitoAuthenticationResult } from "./sim-cognito-authentication-res
|
|
|
10
24
|
* it is, which is why one presented to another app client is refused. Nothing
|
|
11
25
|
* new comes back with the tokens, because real Cognito issues no new refresh
|
|
12
26
|
* token here, so a client keeps the one it has until that expires.
|
|
13
|
-
*
|
|
14
|
-
* The pool's `PreTokenGeneration` trigger runs for the reissued tokens, as it
|
|
15
|
-
* does on real Cognito, so a claim it changed since the sign-in is on the token
|
|
16
|
-
* a refresh answers with rather than being stale for the life of the session.
|
|
17
27
|
*/
|
|
18
28
|
export class SimCognitoRefreshSignIn {
|
|
19
|
-
|
|
29
|
+
refreshedTokens;
|
|
20
30
|
clock;
|
|
21
|
-
result = new SimCognitoAuthenticationResult();
|
|
22
31
|
constructor(properties) {
|
|
23
|
-
this.
|
|
32
|
+
this.refreshedTokens = properties.refreshedTokens;
|
|
24
33
|
this.clock = properties.clock;
|
|
25
34
|
}
|
|
26
35
|
/**
|
|
@@ -28,6 +37,7 @@ export class SimCognitoRefreshSignIn {
|
|
|
28
37
|
*/
|
|
29
38
|
async handle(request) {
|
|
30
39
|
const { pool, client, parameters } = request;
|
|
40
|
+
requireSimCognitoNoRotation(client);
|
|
31
41
|
const refreshToken = pool.auth.requireRefreshToken({
|
|
32
42
|
value: parameters.require("REFRESH_TOKEN"),
|
|
33
43
|
clientId: client.id,
|
|
@@ -36,19 +46,16 @@ export class SimCognitoRefreshSignIn {
|
|
|
36
46
|
// The hash covers the username, and the request carries none, so the one
|
|
37
47
|
// the token was issued to is what it has to have been computed with.
|
|
38
48
|
requireSimCognitoSecretHash(refreshToken.username, client, parameters.find("SECRET_HASH"));
|
|
39
|
-
const user = pool.requireUser(requireSimCognitoUsername(refreshToken.username));
|
|
40
|
-
requireSimCognitoEnabled(user);
|
|
41
49
|
// A refresh runs through `InitiateAuth`, whose `ClientMetadata` real
|
|
42
50
|
// Cognito does not pass to the token trigger, so none travels with these
|
|
43
51
|
// tokens.
|
|
44
52
|
return {
|
|
45
53
|
$metadata: {},
|
|
46
|
-
AuthenticationResult:
|
|
54
|
+
AuthenticationResult: await this.refreshedTokens.issue({
|
|
47
55
|
pool,
|
|
48
56
|
client,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
})),
|
|
57
|
+
refreshToken,
|
|
58
|
+
}),
|
|
52
59
|
};
|
|
53
60
|
}
|
|
54
61
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-refresh-sign-in.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-refresh-sign-in.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"sim-cognito-refresh-sign-in.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-refresh-sign-in.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,2BAA2B,EAAE,MAAM,iDAAiD,CAAC;AAW9F;;;;;;;;GAQG;AACH,SAAS,2BAA2B,CAAC,MAAgC;IACnE,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,OAAO,EAAE,CAAC;QACzC,OAAO;IACT,CAAC;IAED,MAAM,IAAI,mCAAmC,CAC3C,qDAAqD,MAAM,CAAC,EAAE,OAAO;QACnE,wDAAwD;QACxD,mCAAmC,CACtC,CAAC;AACJ,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,OAAO,uBAAuB;IACjB,eAAe,CAA4B;IAC3C,KAAK,CAAW;IAEjC,YAAY,UAA6C;QACvD,IAAI,CAAC,eAAe,GAAG,UAAU,CAAC,eAAe,CAAC;QAClD,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,OAA8B;QAE9B,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;QAE7C,2BAA2B,CAAC,MAAM,CAAC,CAAC;QAEpC,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC;YACjD,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,eAAe,CAAC;YAC1C,QAAQ,EAAE,MAAM,CAAC,EAAE;YACnB,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE;SACtB,CAAC,CAAC;QAEH,yEAAyE;QACzE,qEAAqE;QACrE,2BAA2B,CACzB,YAAY,CAAC,QAAQ,EACrB,MAAM,EACN,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAC/B,CAAC;QAEF,qEAAqE;QACrE,yEAAyE;QACzE,UAAU;QACV,OAAO;YACL,SAAS,EAAE,EAAE;YACb,oBAAoB,EAAE,MAAM,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC;gBACrD,IAAI;gBACJ,MAAM;gBACN,YAAY;aACb,CAAC;SACH,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { SimCognitoIssuedToken } from "../../user-pool/auth/sim-cognito-issued-token.js";
|
|
2
|
+
import type { SimCognitoUserPoolClient } from "../../user-pool/client/sim-cognito-user-pool-client.js";
|
|
3
|
+
import type { SimCognitoUserPool } from "../../user-pool/sim-cognito-user-pool.js";
|
|
4
|
+
import type { SimCognitoTokenIssuer } from "../../user-pool/token/sim-cognito-token-issuer.js";
|
|
5
|
+
import type { SimCognitoAuthenticationResultType } from "./auth.command.js";
|
|
6
|
+
interface SimCognitoRefreshedTokensProperties {
|
|
7
|
+
readonly tokenIssuer: SimCognitoTokenIssuer;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* What a refresh has to name for tokens to come back: the pool, the app client
|
|
11
|
+
* it goes through, and the refresh token the pool has already accepted.
|
|
12
|
+
*/
|
|
13
|
+
interface SimCognitoRefreshedTokensRequest {
|
|
14
|
+
readonly pool: SimCognitoUserPool;
|
|
15
|
+
readonly client: SimCognitoUserPoolClient;
|
|
16
|
+
readonly refreshToken: SimCognitoIssuedToken;
|
|
17
|
+
/**
|
|
18
|
+
* The `ClientMetadata` the request carried, which reaches the pool's token
|
|
19
|
+
* trigger. A `REFRESH_TOKEN_AUTH` refresh passes none, as real Cognito
|
|
20
|
+
* passes none from `InitiateAuth`.
|
|
21
|
+
*/
|
|
22
|
+
readonly clientMetadata?: Readonly<Record<string, string>> | undefined;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The tokens a refresh answers with, whichever operation asked for them.
|
|
26
|
+
*
|
|
27
|
+
* `REFRESH_TOKEN_AUTH` and `GetTokensFromRefreshToken` prove the caller
|
|
28
|
+
* differently and reach the pool differently, and once the refresh token is
|
|
29
|
+
* accepted they answer the same way, so what they share is here.
|
|
30
|
+
*
|
|
31
|
+
* Which app client the refresh went through decides whether a new refresh
|
|
32
|
+
* token comes back. A rotating client hands one out and spends the token that
|
|
33
|
+
* bought it, and a client with rotation off answers with the access and id
|
|
34
|
+
* token alone, leaving the caller the token it already has.
|
|
35
|
+
*
|
|
36
|
+
* The pool's `PreTokenGeneration` trigger runs for the reissued tokens either
|
|
37
|
+
* way, as it does on real Cognito, so a claim it changed since the sign-in is
|
|
38
|
+
* on the token a refresh answers with rather than being stale for the life of
|
|
39
|
+
* the session.
|
|
40
|
+
*/
|
|
41
|
+
export declare class SimCognitoRefreshedTokens {
|
|
42
|
+
private readonly tokenIssuer;
|
|
43
|
+
private readonly result;
|
|
44
|
+
constructor(properties: SimCognitoRefreshedTokensProperties);
|
|
45
|
+
/**
|
|
46
|
+
* Reissue a session's tokens, rotating its refresh token where the app
|
|
47
|
+
* client rotates.
|
|
48
|
+
*
|
|
49
|
+
* The refresh token names no user: the pool that issued it is what knows
|
|
50
|
+
* whose it is, which is why the user is looked up from the token rather than
|
|
51
|
+
* from the request.
|
|
52
|
+
*/
|
|
53
|
+
issue(request: SimCognitoRefreshedTokensRequest): Promise<SimCognitoAuthenticationResultType>;
|
|
54
|
+
}
|
|
55
|
+
export {};
|
|
56
|
+
//# sourceMappingURL=sim-cognito-refreshed-tokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-refreshed-tokens.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-refreshed-tokens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AAE9F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wDAAwD,CAAC;AACvG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mDAAmD,CAAC;AAI/F,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,mBAAmB,CAAC;AAE5E,UAAU,mCAAmC;IAC3C,QAAQ,CAAC,WAAW,EAAE,qBAAqB,CAAC;CAC7C;AAED;;;GAGG;AACH,UAAU,gCAAgC;IACxC,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,wBAAwB,CAAC;IAC1C,QAAQ,CAAC,YAAY,EAAE,qBAAqB,CAAC;IAE7C;;;;OAIG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,SAAS,CAAC;CACxE;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,yBAAyB;IACpC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAwB;IACpD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAwC;IAE/D,YAAY,UAAU,EAAE,mCAAmC,EAE1D;IAED;;;;;;;OAOG;IACG,KAAK,CACT,OAAO,EAAE,gCAAgC,GACxC,OAAO,CAAC,kCAAkC,CAAC,CAkB7C;CACF"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { requireSimCognitoEnabled } from "../../user-pool/auth/sim-cognito-sign-in.js";
|
|
2
|
+
import { SimCognitoTriggerOccasion } from "../../user-pool/trigger/sim-cognito-trigger-occasion.js";
|
|
3
|
+
import { requireSimCognitoUsername } from "../../user-pool/user/sim-cognito-username.js";
|
|
4
|
+
import { SimCognitoAuthenticationResult } from "./sim-cognito-authentication-result.js";
|
|
5
|
+
/**
|
|
6
|
+
* The tokens a refresh answers with, whichever operation asked for them.
|
|
7
|
+
*
|
|
8
|
+
* `REFRESH_TOKEN_AUTH` and `GetTokensFromRefreshToken` prove the caller
|
|
9
|
+
* differently and reach the pool differently, and once the refresh token is
|
|
10
|
+
* accepted they answer the same way, so what they share is here.
|
|
11
|
+
*
|
|
12
|
+
* Which app client the refresh went through decides whether a new refresh
|
|
13
|
+
* token comes back. A rotating client hands one out and spends the token that
|
|
14
|
+
* bought it, and a client with rotation off answers with the access and id
|
|
15
|
+
* token alone, leaving the caller the token it already has.
|
|
16
|
+
*
|
|
17
|
+
* The pool's `PreTokenGeneration` trigger runs for the reissued tokens either
|
|
18
|
+
* way, as it does on real Cognito, so a claim it changed since the sign-in is
|
|
19
|
+
* on the token a refresh answers with rather than being stale for the life of
|
|
20
|
+
* the session.
|
|
21
|
+
*/
|
|
22
|
+
export class SimCognitoRefreshedTokens {
|
|
23
|
+
tokenIssuer;
|
|
24
|
+
result = new SimCognitoAuthenticationResult();
|
|
25
|
+
constructor(properties) {
|
|
26
|
+
this.tokenIssuer = properties.tokenIssuer;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Reissue a session's tokens, rotating its refresh token where the app
|
|
30
|
+
* client rotates.
|
|
31
|
+
*
|
|
32
|
+
* The refresh token names no user: the pool that issued it is what knows
|
|
33
|
+
* whose it is, which is why the user is looked up from the token rather than
|
|
34
|
+
* from the request.
|
|
35
|
+
*/
|
|
36
|
+
async issue(request) {
|
|
37
|
+
const { pool, client, refreshToken, clientMetadata } = request;
|
|
38
|
+
const user = pool.requireUser(requireSimCognitoUsername(refreshToken.username));
|
|
39
|
+
requireSimCognitoEnabled(user);
|
|
40
|
+
return this.result.of(await this.tokenIssuer.refresh({
|
|
41
|
+
pool,
|
|
42
|
+
client,
|
|
43
|
+
user,
|
|
44
|
+
clientMetadata,
|
|
45
|
+
spent: refreshToken,
|
|
46
|
+
occasion: SimCognitoTriggerOccasion.refreshTokenGeneration,
|
|
47
|
+
}));
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=sim-cognito-refreshed-tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-refreshed-tokens.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-refreshed-tokens.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,6CAA6C,CAAC;AAIvF,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AACpG,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AACzF,OAAO,EAAE,8BAA8B,EAAE,MAAM,wCAAwC,CAAC;AAwBxF;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,OAAO,yBAAyB;IACnB,WAAW,CAAwB;IACnC,MAAM,GAAG,IAAI,8BAA8B,EAAE,CAAC;IAE/D,YAAY,UAA+C;QACzD,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC;IAC5C,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,KAAK,CACT,OAAyC;QAEzC,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC;QAC/D,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,CAC3B,yBAAyB,CAAC,YAAY,CAAC,QAAQ,CAAC,CACjD,CAAC;QAEF,wBAAwB,CAAC,IAAI,CAAC,CAAC;QAE/B,OAAO,IAAI,CAAC,MAAM,CAAC,EAAE,CACnB,MAAM,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC7B,IAAI;YACJ,MAAM;YACN,IAAI;YACJ,cAAc;YACd,KAAK,EAAE,YAAY;YACnB,QAAQ,EAAE,yBAAyB,CAAC,sBAAsB;SAC3D,CAAC,CACH,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-unsimulated-auth-options.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,gCAAgC,EAChC,0CAA0C,EAC1C,2BAA2B,EAC3B,qCAAqC,EACtC,MAAM,mBAAmB,CAAC;AAU3B;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,gCAAgC;IAC3C,OAAO,CAAC,QAAQ,CAAC,eAAe,CAE9B;IACF,OAAO,CAAC,QAAQ,CAAC,aAAa,CAE5B;IACF,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAkD;IAC7E,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAEvB;IAEF,OAAO,CAAC,MAAM,CAAC,YAAY;IAW3B;;OAEG;IACH,qBAAqB,CAAC,KAAK,EAAE,gCAAgC,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"sim-cognito-unsimulated-auth-options.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,gCAAgC,EAChC,0CAA0C,EAC1C,2BAA2B,EAC3B,qCAAqC,EACtC,MAAM,mBAAmB,CAAC;AAU3B;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,gCAAgC;IAC3C,OAAO,CAAC,QAAQ,CAAC,eAAe,CAE9B;IACF,OAAO,CAAC,QAAQ,CAAC,aAAa,CAE5B;IACF,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAkD;IAC7E,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAEvB;IAEF,OAAO,CAAC,MAAM,CAAC,YAAY;IAW3B;;OAEG;IACH,qBAAqB,CAAC,KAAK,EAAE,gCAAgC,GAAG,IAAI,CAcnE;IAED;;;OAGG;IACH,qBAAqB,CACnB,KAAK,EAAE,0CAA0C,GAChD,IAAI,CAON;IAED;;OAEG;IACH,gBAAgB,CAAC,KAAK,EAAE,2BAA2B,GAAG,IAAI,CAezD;IAED;;OAEG;IACH,gBAAgB,CAAC,KAAK,EAAE,qCAAqC,GAAG,IAAI,CAOnE;CACF"}
|
|
@@ -29,7 +29,9 @@ export class SimCognitoUnsimulatedAuthOptions {
|
|
|
29
29
|
refuseInAdminInitiate(input) {
|
|
30
30
|
SimCognitoUnsimulatedAuthOptions.refuseShared(this.adminInitiation, input);
|
|
31
31
|
this.adminInitiation.refuse("ContextData", input.ContextData, "threat protection, which reads the caller's device and address");
|
|
32
|
-
this.adminInitiation.refuse("Session", input.Session, "
|
|
32
|
+
this.adminInitiation.refuse("Session", input.Session, "carrying a sign-in already part way through into a fresh " +
|
|
33
|
+
"AdminInitiateAuth, where a challenge this simulation issued is " +
|
|
34
|
+
"answered through AdminRespondToAuthChallenge");
|
|
33
35
|
}
|
|
34
36
|
/**
|
|
35
37
|
* Refuse an `AdminRespondToAuthChallenge` request this simulation cannot
|
|
@@ -45,7 +47,10 @@ export class SimCognitoUnsimulatedAuthOptions {
|
|
|
45
47
|
refuseInInitiate(input) {
|
|
46
48
|
SimCognitoUnsimulatedAuthOptions.refuseShared(this.initiation, input);
|
|
47
49
|
this.initiation.refuse("UserContextData", input.UserContextData, "threat protection, which reads the caller's device and address");
|
|
48
|
-
this.initiation.refuse("Session", input.Session, "signing in directly from ConfirmSignUp"
|
|
50
|
+
this.initiation.refuse("Session", input.Session, "signing in directly from ConfirmSignUp, and carrying a sign-in " +
|
|
51
|
+
"already part way through into a fresh InitiateAuth, where a " +
|
|
52
|
+
"challenge this simulation issued is answered through " +
|
|
53
|
+
"RespondToAuthChallenge");
|
|
49
54
|
}
|
|
50
55
|
/**
|
|
51
56
|
* Refuse a `RespondToAuthChallenge` request this simulation cannot honour.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-unsimulated-auth-options.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAgBjF;;;;;;;;;;;;;;;GAeG;AACH,MAAM,OAAO,gCAAgC;IAC1B,eAAe,GAAG,IAAI,0BAA0B,CAC/D,mBAAmB,CACpB,CAAC;IACe,aAAa,GAAG,IAAI,0BAA0B,CAC7D,6BAA6B,CAC9B,CAAC;IACe,UAAU,GAAG,IAAI,0BAA0B,CAAC,cAAc,CAAC,CAAC;IAC5D,QAAQ,GAAG,IAAI,0BAA0B,CACxD,wBAAwB,CACzB,CAAC;IAEM,MAAM,CAAC,YAAY,CACzB,WAAuC,EACvC,KAAqC;QAErC,WAAW,CAAC,MAAM,CAChB,mBAAmB,EACnB,KAAK,CAAC,iBAAiB,EACvB,oBAAoB,CACrB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,qBAAqB,CAAC,KAAuC;QAC3D,gCAAgC,CAAC,YAAY,CAAC,IAAI,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;QAC3E,IAAI,CAAC,eAAe,CAAC,MAAM,CACzB,aAAa,EACb,KAAK,CAAC,WAAW,EACjB,gEAAgE,CACjE,CAAC;QACF,IAAI,CAAC,eAAe,CAAC,MAAM,CACzB,SAAS,EACT,KAAK,CAAC,OAAO,EACb,
|
|
1
|
+
{"version":3,"file":"sim-cognito-unsimulated-auth-options.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAgBjF;;;;;;;;;;;;;;;GAeG;AACH,MAAM,OAAO,gCAAgC;IAC1B,eAAe,GAAG,IAAI,0BAA0B,CAC/D,mBAAmB,CACpB,CAAC;IACe,aAAa,GAAG,IAAI,0BAA0B,CAC7D,6BAA6B,CAC9B,CAAC;IACe,UAAU,GAAG,IAAI,0BAA0B,CAAC,cAAc,CAAC,CAAC;IAC5D,QAAQ,GAAG,IAAI,0BAA0B,CACxD,wBAAwB,CACzB,CAAC;IAEM,MAAM,CAAC,YAAY,CACzB,WAAuC,EACvC,KAAqC;QAErC,WAAW,CAAC,MAAM,CAChB,mBAAmB,EACnB,KAAK,CAAC,iBAAiB,EACvB,oBAAoB,CACrB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,qBAAqB,CAAC,KAAuC;QAC3D,gCAAgC,CAAC,YAAY,CAAC,IAAI,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;QAC3E,IAAI,CAAC,eAAe,CAAC,MAAM,CACzB,aAAa,EACb,KAAK,CAAC,WAAW,EACjB,gEAAgE,CACjE,CAAC;QACF,IAAI,CAAC,eAAe,CAAC,MAAM,CACzB,SAAS,EACT,KAAK,CAAC,OAAO,EACb,2DAA2D;YACzD,iEAAiE;YACjE,8CAA8C,CACjD,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,qBAAqB,CACnB,KAAiD;QAEjD,gCAAgC,CAAC,YAAY,CAAC,IAAI,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;QACzE,IAAI,CAAC,aAAa,CAAC,MAAM,CACvB,aAAa,EACb,KAAK,CAAC,WAAW,EACjB,gEAAgE,CACjE,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,gBAAgB,CAAC,KAAkC;QACjD,gCAAgC,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;QACtE,IAAI,CAAC,UAAU,CAAC,MAAM,CACpB,iBAAiB,EACjB,KAAK,CAAC,eAAe,EACrB,gEAAgE,CACjE,CAAC;QACF,IAAI,CAAC,UAAU,CAAC,MAAM,CACpB,SAAS,EACT,KAAK,CAAC,OAAO,EACb,iEAAiE;YAC/D,8DAA8D;YAC9D,uDAAuD;YACvD,wBAAwB,CAC3B,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,gBAAgB,CAAC,KAA4C;QAC3D,gCAAgC,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QACpE,IAAI,CAAC,QAAQ,CAAC,MAAM,CAClB,iBAAiB,EACjB,KAAK,CAAC,eAAe,EACrB,gEAAgE,CACjE,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { SimCognitoUserPoolTriggers } from "../../user-pool/trigger/sim-cognito-user-pool-triggers.js";
|
|
2
|
+
import type { SimCognitoAuthResolver } from "./sim-cognito-auth-resolver.js";
|
|
3
|
+
import type { SimCognitoFirstFactorChallenge } from "./sim-cognito-first-factor-challenge.js";
|
|
4
|
+
import type { SimCognitoPasswordSignIn, SimCognitoAuthRequest } from "./sim-cognito-password-sign-in.js";
|
|
5
|
+
import type { SimCognitoAuthenticationOutput } from "./auth.command.js";
|
|
6
|
+
interface SimCognitoUserAuthSignInProperties {
|
|
7
|
+
readonly authResolver: SimCognitoAuthResolver;
|
|
8
|
+
readonly challenge: SimCognitoFirstFactorChallenge;
|
|
9
|
+
readonly passwordSignIn: SimCognitoPasswordSignIn;
|
|
10
|
+
readonly triggers: SimCognitoUserPoolTriggers;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Choice-based sign-in, which is the `USER_AUTH` flow.
|
|
14
|
+
*
|
|
15
|
+
* The user says who it is and the pool answers with the factors it could sign
|
|
16
|
+
* in with, drawn from the pool's `AllowedFirstAuthFactors` and narrowed to the
|
|
17
|
+
* ones this user has. A request naming a `PREFERRED_CHALLENGE` is answered
|
|
18
|
+
* with that factor's challenge instead, and one carrying a `PASSWORD` outright
|
|
19
|
+
* is signed in there and then, which is what real Cognito does with all three.
|
|
20
|
+
* The pool's policy is what settles all three: a pool that allows no password
|
|
21
|
+
* first refuses one however the request sent it.
|
|
22
|
+
*
|
|
23
|
+
* This is the flow a passkey is presented through. It is also another way in
|
|
24
|
+
* for a password, and `USER_PASSWORD_AUTH` goes on being the direct one.
|
|
25
|
+
*/
|
|
26
|
+
export declare class SimCognitoUserAuthSignIn {
|
|
27
|
+
private readonly authResolver;
|
|
28
|
+
private readonly challenge;
|
|
29
|
+
private readonly passwordSignIn;
|
|
30
|
+
private readonly triggers;
|
|
31
|
+
constructor(properties: SimCognitoUserAuthSignInProperties);
|
|
32
|
+
/**
|
|
33
|
+
* Offer this user its factors, ask for the one it preferred, or sign it in
|
|
34
|
+
* with the password it already sent.
|
|
35
|
+
*
|
|
36
|
+
* `PreAuthentication` runs once the user is known, as it does for a password
|
|
37
|
+
* sign-in. A request carrying a password reaches it through the password
|
|
38
|
+
* sign-in body, which runs the trigger itself, so this one runs the trigger
|
|
39
|
+
* only where it is answering with a challenge.
|
|
40
|
+
*/
|
|
41
|
+
handle(request: SimCognitoAuthRequest): Promise<SimCognitoAuthenticationOutput>;
|
|
42
|
+
}
|
|
43
|
+
export {};
|
|
44
|
+
//# sourceMappingURL=sim-cognito-user-auth-sign-in.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-user-auth-sign-in.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-user-auth-sign-in.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,2DAA2D,CAAC;AAE5G,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AAC9F,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACtB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAExE,UAAU,kCAAkC;IAC1C,QAAQ,CAAC,YAAY,EAAE,sBAAsB,CAAC;IAC9C,QAAQ,CAAC,SAAS,EAAE,8BAA8B,CAAC;IACnD,QAAQ,CAAC,cAAc,EAAE,wBAAwB,CAAC;IAClD,QAAQ,CAAC,QAAQ,EAAE,0BAA0B,CAAC;CAC/C;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,wBAAwB;IACnC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAyB;IACtD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAiC;IAC3D,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA2B;IAC1D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA6B;IAEtD,YAAY,UAAU,EAAE,kCAAkC,EAKzD;IAED;;;;;;;;OAQG;IACG,MAAM,CACV,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,8BAA8B,CAAC,CA8BzC;CACF"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { requireSimCognitoReadyToSignIn, requireSimCognitoSignInUser, } from "../../user-pool/auth/sim-cognito-sign-in.js";
|
|
2
|
+
import { requireSimCognitoAllowedPassword } from "./sim-cognito-available-challenges.js";
|
|
3
|
+
/**
|
|
4
|
+
* Choice-based sign-in, which is the `USER_AUTH` flow.
|
|
5
|
+
*
|
|
6
|
+
* The user says who it is and the pool answers with the factors it could sign
|
|
7
|
+
* in with, drawn from the pool's `AllowedFirstAuthFactors` and narrowed to the
|
|
8
|
+
* ones this user has. A request naming a `PREFERRED_CHALLENGE` is answered
|
|
9
|
+
* with that factor's challenge instead, and one carrying a `PASSWORD` outright
|
|
10
|
+
* is signed in there and then, which is what real Cognito does with all three.
|
|
11
|
+
* The pool's policy is what settles all three: a pool that allows no password
|
|
12
|
+
* first refuses one however the request sent it.
|
|
13
|
+
*
|
|
14
|
+
* This is the flow a passkey is presented through. It is also another way in
|
|
15
|
+
* for a password, and `USER_PASSWORD_AUTH` goes on being the direct one.
|
|
16
|
+
*/
|
|
17
|
+
export class SimCognitoUserAuthSignIn {
|
|
18
|
+
authResolver;
|
|
19
|
+
challenge;
|
|
20
|
+
passwordSignIn;
|
|
21
|
+
triggers;
|
|
22
|
+
constructor(properties) {
|
|
23
|
+
this.authResolver = properties.authResolver;
|
|
24
|
+
this.challenge = properties.challenge;
|
|
25
|
+
this.passwordSignIn = properties.passwordSignIn;
|
|
26
|
+
this.triggers = properties.triggers;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Offer this user its factors, ask for the one it preferred, or sign it in
|
|
30
|
+
* with the password it already sent.
|
|
31
|
+
*
|
|
32
|
+
* `PreAuthentication` runs once the user is known, as it does for a password
|
|
33
|
+
* sign-in. A request carrying a password reaches it through the password
|
|
34
|
+
* sign-in body, which runs the trigger itself, so this one runs the trigger
|
|
35
|
+
* only where it is answering with a challenge.
|
|
36
|
+
*/
|
|
37
|
+
async handle(request) {
|
|
38
|
+
const { pool, client, parameters, clientMetadata } = request;
|
|
39
|
+
if (parameters.find("PASSWORD") !== undefined) {
|
|
40
|
+
// A password sent outright skips the choice, so the pool's policy is
|
|
41
|
+
// read here rather than out of the factors the choice would have
|
|
42
|
+
// offered.
|
|
43
|
+
requireSimCognitoAllowedPassword(pool);
|
|
44
|
+
return await this.passwordSignIn.handle(request);
|
|
45
|
+
}
|
|
46
|
+
const username = this.authResolver.username(client, parameters);
|
|
47
|
+
const user = requireSimCognitoSignInUser(pool, client, username);
|
|
48
|
+
await this.triggers.preAuthentication({
|
|
49
|
+
pool,
|
|
50
|
+
client,
|
|
51
|
+
user,
|
|
52
|
+
clientMetadata,
|
|
53
|
+
});
|
|
54
|
+
requireSimCognitoReadyToSignIn(user);
|
|
55
|
+
const preferred = parameters.find("PREFERRED_CHALLENGE");
|
|
56
|
+
const offer = { pool, client, user };
|
|
57
|
+
return preferred === undefined
|
|
58
|
+
? this.challenge.offer(offer)
|
|
59
|
+
: this.challenge.issue(offer, preferred, "PREFERRED_CHALLENGE");
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=sim-cognito-user-auth-sign-in.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-user-auth-sign-in.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-user-auth-sign-in.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,2BAA2B,GAC5B,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAgBzF;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,wBAAwB;IAClB,YAAY,CAAyB;IACrC,SAAS,CAAiC;IAC1C,cAAc,CAA2B;IACzC,QAAQ,CAA6B;IAEtD,YAAY,UAA8C;QACxD,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,YAAY,CAAC;QAC5C,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;QACtC,IAAI,CAAC,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;QAChD,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;IACtC,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,MAAM,CACV,OAA8B;QAE9B,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC;QAE7D,IAAI,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,SAAS,EAAE,CAAC;YAC9C,qEAAqE;YACrE,iEAAiE;YACjE,WAAW;YACX,gCAAgC,CAAC,IAAI,CAAC,CAAC;YAEvC,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACnD,CAAC;QAED,MAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;QAChE,MAAM,IAAI,GAAG,2BAA2B,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;QAEjE,MAAM,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC;YACpC,IAAI;YACJ,MAAM;YACN,IAAI;YACJ,cAAc;SACf,CAAC,CAAC;QAEH,8BAA8B,CAAC,IAAI,CAAC,CAAC;QAErC,MAAM,SAAS,GAAG,UAAU,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;QACzD,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QAErC,OAAO,SAAS,KAAK,SAAS;YAC5B,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,EAAE,SAAS,EAAE,qBAAqB,CAAC,CAAC;IACpE,CAAC;CACF"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { SimCognitoAuthSession } from "../../user-pool/auth/sim-cognito-auth-session.js";
|
|
2
|
+
import type { SimCognitoUser } from "../../user-pool/user/sim-cognito-user.js";
|
|
3
|
+
import type { SimCognitoFirstFactorResponseRequest } from "./sim-cognito-first-factor-response.js";
|
|
4
|
+
import type { SimCognitoSignInCompletion } from "./sim-cognito-sign-in-completion.js";
|
|
5
|
+
import type { SimCognitoAuthenticationOutput } from "./auth.command.js";
|
|
6
|
+
interface SimCognitoWebAuthnResponseProperties {
|
|
7
|
+
readonly completion: SimCognitoSignInCompletion;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Answering a `WEB_AUTHN` challenge with a passkey.
|
|
11
|
+
*
|
|
12
|
+
* The credential travels as the JSON a browser serializes a
|
|
13
|
+
* `PublicKeyCredential` to, and it is read against the options the challenge
|
|
14
|
+
* issued. The signature is what settles it, checked against the public key the
|
|
15
|
+
* registration stored.
|
|
16
|
+
*
|
|
17
|
+
* A passkey finishes the sign-in on its own. Real Cognito counts one as having
|
|
18
|
+
* met the pool's MFA requirement, so a user that has registered a second
|
|
19
|
+
* factor is not challenged for it here, where a password sign-in would be.
|
|
20
|
+
*/
|
|
21
|
+
export declare class SimCognitoWebAuthnResponse {
|
|
22
|
+
private readonly completion;
|
|
23
|
+
constructor(properties: SimCognitoWebAuthnResponseProperties);
|
|
24
|
+
/**
|
|
25
|
+
* Present the passkey, and sign the user in.
|
|
26
|
+
*/
|
|
27
|
+
complete(request: SimCognitoFirstFactorResponseRequest, session: SimCognitoAuthSession, user: SimCognitoUser): Promise<SimCognitoAuthenticationOutput>;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=sim-cognito-web-authn-response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-web-authn-response.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-web-authn-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AAE9F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE/E,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,wCAAwC,CAAC;AACnG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACtF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAExE,UAAU,oCAAoC;IAC5C,QAAQ,CAAC,UAAU,EAAE,0BAA0B,CAAC;CACjD;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,0BAA0B;IACrC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA6B;IAExD,YAAY,UAAU,EAAE,oCAAoC,EAE3D;IAED;;OAEG;IACG,QAAQ,CACZ,OAAO,EAAE,oCAAoC,EAC7C,OAAO,EAAE,qBAAqB,EAC9B,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,8BAA8B,CAAC,CAiBzC;CACF"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { SimCognitoTriggerOccasion } from "../../user-pool/trigger/sim-cognito-trigger-occasion.js";
|
|
2
|
+
import { requireSimCognitoWebAuthnAssertion } from "../../user-pool/user/web-authn/sim-cognito-web-authn-assertion.js";
|
|
3
|
+
/**
|
|
4
|
+
* Answering a `WEB_AUTHN` challenge with a passkey.
|
|
5
|
+
*
|
|
6
|
+
* The credential travels as the JSON a browser serializes a
|
|
7
|
+
* `PublicKeyCredential` to, and it is read against the options the challenge
|
|
8
|
+
* issued. The signature is what settles it, checked against the public key the
|
|
9
|
+
* registration stored.
|
|
10
|
+
*
|
|
11
|
+
* A passkey finishes the sign-in on its own. Real Cognito counts one as having
|
|
12
|
+
* met the pool's MFA requirement, so a user that has registered a second
|
|
13
|
+
* factor is not challenged for it here, where a password sign-in would be.
|
|
14
|
+
*/
|
|
15
|
+
export class SimCognitoWebAuthnResponse {
|
|
16
|
+
completion;
|
|
17
|
+
constructor(properties) {
|
|
18
|
+
this.completion = properties.completion;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Present the passkey, and sign the user in.
|
|
22
|
+
*/
|
|
23
|
+
async complete(request, session, user) {
|
|
24
|
+
requireSimCognitoWebAuthnAssertion(user.webAuthn.credentials, request.parameters.requireDocument("CREDENTIAL"), session.requireWebAuthnOptions());
|
|
25
|
+
request.pool.auth.removeSession(session);
|
|
26
|
+
return await this.completion.complete({
|
|
27
|
+
pool: request.pool,
|
|
28
|
+
client: request.client,
|
|
29
|
+
user,
|
|
30
|
+
occasion: SimCognitoTriggerOccasion.tokenGeneration,
|
|
31
|
+
tokenClientMetadata: request.clientMetadata,
|
|
32
|
+
clientMetadata: request.clientMetadata,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=sim-cognito-web-authn-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-web-authn-response.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-web-authn-response.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AAEpG,OAAO,EAAE,kCAAkC,EAAE,MAAM,mEAAmE,CAAC;AASvH;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,0BAA0B;IACpB,UAAU,CAA6B;IAExD,YAAY,UAAgD;QAC1D,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;IAC1C,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,QAAQ,CACZ,OAA6C,EAC7C,OAA8B,EAC9B,IAAoB;QAEpB,kCAAkC,CAChC,IAAI,CAAC,QAAQ,CAAC,WAAW,EACzB,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC,YAAY,CAAC,EAChD,OAAO,CAAC,sBAAsB,EAAE,CACjC,CAAC;QAEF,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAEzC,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;YACpC,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,IAAI;YACJ,QAAQ,EAAE,yBAAyB,CAAC,eAAe;YACnD,mBAAmB,EAAE,OAAO,CAAC,cAAc;YAC3C,cAAc,EAAE,OAAO,CAAC,cAAc;SACvC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-unsimulated-client-options.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/client/sim-cognito-unsimulated-client-options.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,+BAA+B,CAAC;AAE3F;;;;;;GAMG;AACH,qBAAa,0CAA0C;IACrD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA6B;IAEzD,YAAY,SAAS,EAAE,MAAM,EAE5B;IAED;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,qCAAqC,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"sim-cognito-unsimulated-client-options.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/client/sim-cognito-unsimulated-client-options.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,+BAA+B,CAAC;AAE3F;;;;;;GAMG;AACH,qBAAa,0CAA0C;IACrD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA6B;IAEzD,YAAY,SAAS,EAAE,MAAM,EAE5B;IAED;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,qCAAqC,GAAG,IAAI,CAgC3D;CACF"}
|