@kensio/yulin 1.7.0 → 1.8.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/README.md +11 -0
- package/dist/cli/sim-cli.d.ts.map +1 -1
- package/dist/cli/sim-cli.js +5 -1
- package/dist/cli/sim-cli.js.map +1 -1
- package/dist/cli/watch/sim-watch-arguments.d.ts +1 -0
- package/dist/cli/watch/sim-watch-arguments.d.ts.map +1 -1
- package/dist/cli/watch/sim-watch-arguments.js +40 -12
- package/dist/cli/watch/sim-watch-arguments.js.map +1 -1
- package/dist/cli/watch/sim-watch-supervisor.d.ts.map +1 -1
- package/dist/cli/watch/sim-watch-supervisor.js +1 -0
- package/dist/cli/watch/sim-watch-supervisor.js.map +1 -1
- package/dist/cli/watch/sim-watch-watcher.d.ts +1 -1
- package/dist/cli/watch/sim-watch-watcher.d.ts.map +1 -1
- package/dist/cli/watch/sim-watch-watcher.js +5 -1
- package/dist/cli/watch/sim-watch-watcher.js.map +1 -1
- package/dist/cli/yulin.js +0 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/serve/http/live-reload/sim-live-reload-client.d.ts +15 -3
- package/dist/serve/http/live-reload/sim-live-reload-client.d.ts.map +1 -1
- package/dist/serve/http/live-reload/sim-live-reload-client.js +36 -5
- package/dist/serve/http/live-reload/sim-live-reload-client.js.map +1 -1
- package/dist/serve/http/live-reload/sim-live-reload.config.d.ts +1 -0
- package/dist/serve/http/live-reload/sim-live-reload.config.d.ts.map +1 -1
- package/dist/serve/http/live-reload/sim-live-reload.config.js +6 -0
- package/dist/serve/http/live-reload/sim-live-reload.config.js.map +1 -1
- package/dist/serve/http/live-reload/sim-live-reload.d.ts +4 -1
- package/dist/serve/http/live-reload/sim-live-reload.d.ts.map +1 -1
- package/dist/serve/http/live-reload/sim-live-reload.js +6 -4
- package/dist/serve/http/live-reload/sim-live-reload.js.map +1 -1
- package/dist/serve/http/live-reload/sim-local-live-reload.d.ts +14 -1
- package/dist/serve/http/live-reload/sim-local-live-reload.d.ts.map +1 -1
- package/dist/serve/http/live-reload/sim-local-live-reload.js +24 -4
- package/dist/serve/http/live-reload/sim-local-live-reload.js.map +1 -1
- package/dist/serve/http/local-server/sim-aws-local-server.d.ts +45 -3
- package/dist/serve/http/local-server/sim-aws-local-server.d.ts.map +1 -1
- package/dist/serve/http/local-server/sim-aws-local-server.js +55 -5
- package/dist/serve/http/local-server/sim-aws-local-server.js.map +1 -1
- package/dist/serve/index.d.ts +1 -0
- package/dist/serve/index.d.ts.map +1 -1
- package/dist/serve/index.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js +2 -2
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
- package/dist/service/aws/scope/sim-aws-scope-registry.d.ts +9 -0
- package/dist/service/aws/scope/sim-aws-scope-registry.d.ts.map +1 -1
- package/dist/service/aws/scope/sim-aws-scope-registry.js +13 -0
- package/dist/service/aws/scope/sim-aws-scope-registry.js.map +1 -1
- package/dist/service/aws/sim-aws-account-id.d.ts +27 -0
- package/dist/service/aws/sim-aws-account-id.d.ts.map +1 -0
- package/dist/service/aws/sim-aws-account-id.js +34 -0
- package/dist/service/aws/sim-aws-account-id.js.map +1 -0
- package/dist/service/aws/sim-aws-account-region-scope.d.ts +10 -0
- package/dist/service/aws/sim-aws-account-region-scope.d.ts.map +1 -1
- package/dist/service/aws/sim-aws-account-region-scope.js +18 -0
- package/dist/service/aws/sim-aws-account-region-scope.js.map +1 -1
- package/dist/service/aws/sim-aws-account.d.ts +5 -7
- package/dist/service/aws/sim-aws-account.d.ts.map +1 -1
- package/dist/service/aws/sim-aws-account.js +9 -8
- package/dist/service/aws/sim-aws-account.js.map +1 -1
- package/dist/service/aws/sim-aws-closing.d.ts +24 -0
- package/dist/service/aws/sim-aws-closing.d.ts.map +1 -0
- package/dist/service/aws/sim-aws-closing.js +7 -0
- package/dist/service/aws/sim-aws-closing.js.map +1 -0
- package/dist/service/aws/sim-aws.d.ts +34 -0
- package/dist/service/aws/sim-aws.d.ts.map +1 -1
- package/dist/service/aws/sim-aws.js +40 -0
- package/dist/service/aws/sim-aws.js.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.d.ts +18 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.d.ts.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.js +8 -7
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.js.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-transform.d.ts +18 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-transform.d.ts.map +1 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-transform.js +23 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-transform.js.map +1 -0
- package/dist/service/cloudformation/index.d.ts +3 -1
- package/dist/service/cloudformation/index.d.ts.map +1 -1
- package/dist/service/cloudformation/sim-cloudformation.d.ts +9 -0
- package/dist/service/cloudformation/sim-cloudformation.d.ts.map +1 -1
- package/dist/service/cloudformation/sim-cloudformation.js +11 -0
- package/dist/service/cloudformation/sim-cloudformation.js.map +1 -1
- package/dist/service/cloudformation/watch/sim-cfn-template-file-watch.d.ts.map +1 -1
- package/dist/service/cloudformation/watch/sim-cfn-template-file-watch.js +1 -0
- package/dist/service/cloudformation/watch/sim-cfn-template-file-watch.js.map +1 -1
- package/dist/service/cloudformation/watch/sim-cfn-template-file-watches.d.ts +5 -0
- package/dist/service/cloudformation/watch/sim-cfn-template-file-watches.d.ts.map +1 -1
- package/dist/service/cloudformation/watch/sim-cfn-template-file-watches.js +0 -0
- package/dist/service/cloudformation/watch/sim-cfn-template-file-watches.js.map +1 -1
- package/dist/service/cloudformation/watch/sim-cfn-template-watch-report.d.ts +4 -2
- package/dist/service/cloudformation/watch/sim-cfn-template-watch-report.d.ts.map +1 -1
- package/dist/service/cloudformation/watch/sim-cfn-template-watch-report.js +5 -3
- package/dist/service/cloudformation/watch/sim-cfn-template-watch-report.js.map +1 -1
- package/dist/service/cloudformation/watch/sim-cfn-template-watch-update.d.ts +5 -4
- package/dist/service/cloudformation/watch/sim-cfn-template-watch-update.d.ts.map +1 -1
- package/dist/service/cloudformation/watch/sim-cfn-template-watch-update.js +15 -6
- package/dist/service/cloudformation/watch/sim-cfn-template-watch-update.js.map +1 -1
- package/dist/service/cloudformation/watch/sim-cfn-template-watch.type.d.ts +31 -3
- package/dist/service/cloudformation/watch/sim-cfn-template-watch.type.d.ts.map +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-admin-create-user-config.d.ts +29 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-admin-create-user-config.d.ts.map +1 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-admin-create-user-config.js +47 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-admin-create-user-config.js.map +1 -0
- 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 +26 -8
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-admin-initiate-auth.d.ts +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-admin-initiate-auth.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-admin-initiate-auth.js +3 -2
- package/dist/service/cognito/command/auth/sim-cognito-admin-initiate-auth.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-admin-respond-to-challenge.d.ts +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-admin-respond-to-challenge.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-admin-respond-to-challenge.js +3 -2
- package/dist/service/cognito/command/auth/sim-cognito-admin-respond-to-challenge.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts +11 -4
- 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 +11 -8
- 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 +5 -1
- 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 +7 -3
- package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-initiate-auth.d.ts +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-initiate-auth.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-initiate-auth.js +3 -2
- package/dist/service/cognito/command/auth/sim-cognito-initiate-auth.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-new-password-response.d.ts +11 -1
- package/dist/service/cognito/command/auth/sim-cognito-new-password-response.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-new-password-response.js +30 -4
- package/dist/service/cognito/command/auth/sim-cognito-new-password-response.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.d.ts +19 -1
- package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js +40 -5
- 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 +5 -1
- 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 +15 -2
- package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-respond-to-challenge.d.ts +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-respond-to-challenge.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-respond-to-challenge.js +3 -2
- package/dist/service/cognito/command/auth/sim-cognito-respond-to-challenge.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.d.ts +5 -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 +5 -1
- package/dist/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.js.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.d.ts +6 -4
- 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 +9 -4
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.js.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-managed-login.d.ts +3 -2
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-managed-login.d.ts.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-managed-login.js +6 -6
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-managed-login.js.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-commands.d.ts +23 -3
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-commands.js +35 -8
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-commands.js.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.d.ts +2 -2
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.js +2 -2
- package/dist/service/cognito/command/client/user-pool-client.command.d.ts +37 -5
- package/dist/service/cognito/command/client/user-pool-client.command.d.ts.map +1 -1
- package/dist/service/cognito/command/sim-cognito-command.types.d.ts +3 -2
- package/dist/service/cognito/command/sim-cognito-command.types.d.ts.map +1 -1
- package/dist/service/cognito/command/sim-cognito-commands.d.ts +4 -0
- package/dist/service/cognito/command/sim-cognito-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/sim-cognito-commands.js +33 -3
- package/dist/service/cognito/command/sim-cognito-commands.js.map +1 -1
- package/dist/service/cognito/command/sim-cognito-unsimulated-input.d.ts +5 -1
- package/dist/service/cognito/command/sim-cognito-unsimulated-input.d.ts.map +1 -1
- package/dist/service/cognito/command/sim-cognito-unsimulated-input.js +4 -0
- package/dist/service/cognito/command/sim-cognito-unsimulated-input.js.map +1 -1
- package/dist/service/cognito/command/sim-cognito-validation-data.d.ts +14 -0
- package/dist/service/cognito/command/sim-cognito-validation-data.d.ts.map +1 -0
- package/dist/service/cognito/command/sim-cognito-validation-data.js +29 -0
- package/dist/service/cognito/command/sim-cognito-validation-data.js.map +1 -0
- package/dist/service/cognito/command/user/sign-up.command.d.ts +104 -0
- package/dist/service/cognito/command/user/sign-up.command.d.ts.map +1 -0
- package/dist/service/cognito/command/user/sign-up.command.js +2 -0
- package/dist/service/cognito/command/user/sign-up.command.js.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.d.ts +104 -0
- package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.d.ts.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js +186 -0
- package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-unsimulated-sign-up-options.d.ts +38 -0
- package/dist/service/cognito/command/user/sim-cognito-unsimulated-sign-up-options.d.ts.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-unsimulated-sign-up-options.js +49 -0
- package/dist/service/cognito/command/user/sim-cognito-unsimulated-sign-up-options.js.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-unsimulated-user-options.d.ts +15 -5
- package/dist/service/cognito/command/user/sim-cognito-unsimulated-user-options.d.ts.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-unsimulated-user-options.js +17 -9
- package/dist/service/cognito/command/user/sim-cognito-unsimulated-user-options.js.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-user-commands.d.ts +25 -12
- package/dist/service/cognito/command/user/sim-cognito-user-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-user-commands.js +42 -19
- package/dist/service/cognito/command/user/sim-cognito-user-commands.js.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-user-update-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-user-update-commands.js +1 -1
- package/dist/service/cognito/command/user/sim-cognito-user-update-commands.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.d.ts +16 -5
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.js +21 -24
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.d.ts +28 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.d.ts.map +1 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.js +42 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.js.map +1 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-messaging.d.ts +21 -12
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-messaging.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-messaging.js +28 -36
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-messaging.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.d.ts +8 -14
- 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 +13 -25
- 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-unsimulated-pool-updates.d.ts +21 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.d.ts.map +1 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.js +25 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.js.map +1 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.d.ts +17 -2
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.js +35 -10
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts +10 -2
- 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 +17 -5
- 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.command.d.ts +56 -23
- package/dist/service/cognito/command/user-pool/user-pool.command.d.ts.map +1 -1
- package/dist/service/cognito/error/sim-cognito-trigger.error.d.ts +39 -0
- package/dist/service/cognito/error/sim-cognito-trigger.error.d.ts.map +1 -0
- package/dist/service/cognito/error/sim-cognito-trigger.error.js +45 -0
- package/dist/service/cognito/error/sim-cognito-trigger.error.js.map +1 -0
- package/dist/service/cognito/error/sim-cognito.error.d.ts +22 -0
- package/dist/service/cognito/error/sim-cognito.error.d.ts.map +1 -1
- package/dist/service/cognito/error/sim-cognito.error.js +26 -0
- package/dist/service/cognito/error/sim-cognito.error.js.map +1 -1
- package/dist/service/cognito/index.d.ts +8 -1
- package/dist/service/cognito/index.d.ts.map +1 -1
- package/dist/service/cognito/index.js +7 -1
- package/dist/service/cognito/index.js.map +1 -1
- package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.d.ts +6 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.d.ts.map +1 -1
- package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.js +22 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.js.map +1 -1
- package/dist/service/cognito/sdk/sim-cognito-sdk-pool-routes.d.ts.map +1 -1
- package/dist/service/cognito/sdk/sim-cognito-sdk-pool-routes.js +8 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-pool-routes.js.map +1 -1
- package/dist/service/cognito/serve/sim-cognito-controller.d.ts +10 -1
- package/dist/service/cognito/serve/sim-cognito-controller.d.ts.map +1 -1
- package/dist/service/cognito/serve/sim-cognito-controller.js +48 -8
- package/dist/service/cognito/serve/sim-cognito-controller.js.map +1 -1
- package/dist/service/cognito/serve/sim-cognito-endpoint-response.d.ts +1 -1
- package/dist/service/cognito/serve/sim-cognito-endpoint-response.d.ts.map +1 -1
- package/dist/service/cognito/serve/sim-cognito-endpoint-response.js +3 -2
- package/dist/service/cognito/serve/sim-cognito-endpoint-response.js.map +1 -1
- package/dist/service/cognito/sim-cognito-identity-provider.d.ts +20 -0
- package/dist/service/cognito/sim-cognito-identity-provider.d.ts.map +1 -1
- package/dist/service/cognito/sim-cognito-identity-provider.js +17 -1
- package/dist/service/cognito/sim-cognito-identity-provider.js.map +1 -1
- package/dist/service/cognito/sim-cognito-user-directory.d.ts +16 -0
- package/dist/service/cognito/sim-cognito-user-directory.d.ts.map +1 -1
- package/dist/service/cognito/sim-cognito-user-directory.js +28 -0
- package/dist/service/cognito/sim-cognito-user-directory.js.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.d.ts +9 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.js +14 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.js.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.d.ts +2 -11
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.js +2 -14
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.js.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.d.ts +38 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.js +36 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.js.map +1 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.d.ts +40 -20
- 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 +54 -20
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.js.map +1 -1
- package/dist/service/cognito/user-pool/message/sim-cognito-message-delivery.d.ts +32 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-message-delivery.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-message-delivery.js +52 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-message-delivery.js.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-message-occasion.d.ts +13 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-message-occasion.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-message-occasion.js +2 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-message-occasion.js.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-message-placeholders.d.ts +49 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-message-placeholders.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-message-placeholders.js +58 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-message-placeholders.js.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-message-wording.d.ts +41 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-message-wording.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-message-wording.js +39 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-message-wording.js.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-occasion-wording.d.ts +13 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-occasion-wording.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-occasion-wording.js +32 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-occasion-wording.js.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.d.ts +53 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.js +62 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.js.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-sent-message-store.d.ts +19 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-sent-message-store.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-sent-message-store.js +22 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-sent-message-store.js.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-sent-message.d.ts +65 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-sent-message.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-sent-message.js +52 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-sent-message.js.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-verification-messages.d.ts +68 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-verification-messages.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-verification-messages.js +91 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-verification-messages.js.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-verification-wording.d.ts +18 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-verification-wording.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-verification-wording.js +31 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-verification-wording.js.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-admin-create-user-config.d.ts +41 -0
- package/dist/service/cognito/user-pool/sim-cognito-admin-create-user-config.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-admin-create-user-config.js +41 -0
- package/dist/service/cognito/user-pool/sim-cognito-admin-create-user-config.js.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-auto-verified-attributes.d.ts +35 -0
- package/dist/service/cognito/user-pool/sim-cognito-auto-verified-attributes.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-auto-verified-attributes.js +60 -0
- package/dist/service/cognito/user-pool/sim-cognito-auto-verified-attributes.js.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.d.ts +10 -15
- package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.js +10 -25
- package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.js.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-arn.d.ts +8 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-arn.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-arn.js +9 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-arn.js.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.d.ts +3 -7
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.js +6 -7
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.js.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-id.d.ts +24 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-id.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-id.js +32 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-id.js.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts +65 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js +52 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool.d.ts +41 -28
- 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 +55 -27
- package/dist/service/cognito/user-pool/sim-cognito-user-pool.js.map +1 -1
- package/dist/service/cognito/user-pool/token/sim-cognito-claims-override-reader.d.ts +29 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-claims-override-reader.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-claims-override-reader.js +80 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-claims-override-reader.js.map +1 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-claims-override-values.d.ts +21 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-claims-override-values.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-claims-override-values.js +45 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-claims-override-values.js.map +1 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-claims-override.d.ts +54 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-claims-override.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-claims-override.js +72 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-claims-override.js.map +1 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-group-override.d.ts +10 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-group-override.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-group-override.js +54 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-group-override.js.map +1 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-reserved-claims.d.ts +23 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-reserved-claims.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-reserved-claims.js +82 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-reserved-claims.js.map +1 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.d.ts +26 -2
- 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 +32 -7
- package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.js.map +1 -1
- package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.d.ts +55 -0
- package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.js +101 -0
- package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.js.map +1 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-custom-message.d.ts +31 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-custom-message.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-custom-message.js +73 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-custom-message.js.map +1 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-lambda-config.d.ts +58 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-lambda-config.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-lambda-config.js +77 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-lambda-config.js.map +1 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-pre-sign-up-response.d.ts +28 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-pre-sign-up-response.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-pre-sign-up-response.js +68 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-pre-sign-up-response.js.map +1 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-context.d.ts +36 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-context.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-context.js +2 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-context.js.map +1 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-event.d.ts +27 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-event.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-event.js +69 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-event.js.map +1 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-functions.d.ts +59 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-functions.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-functions.js +25 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-functions.js.map +1 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-invocation.d.ts +33 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-invocation.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-invocation.js +61 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-invocation.js.map +1 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-name.d.ts +20 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-name.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-name.js +46 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-name.js.map +1 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.d.ts +89 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.js +102 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.js.map +1 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-request.d.ts +75 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-request.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-request.js +162 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-request.js.map +1 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-response.d.ts +19 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-response.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-response.js +38 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-response.js.map +1 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.d.ts +81 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.js +90 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.js.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-confirmation-code.d.ts +29 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-confirmation-code.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-confirmation-code.js +40 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-confirmation-code.js.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.d.ts +8 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.js +12 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.js.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.d.ts +36 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.js +51 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.js.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.d.ts +31 -2
- package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.js +31 -4
- package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.js.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-status.d.ts +39 -8
- package/dist/service/cognito/user-pool/user/sim-cognito-user-status.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-status.js +50 -7
- package/dist/service/cognito/user-pool/user/sim-cognito-user-status.js.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts +55 -3
- 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 +74 -5
- package/dist/service/cognito/user-pool/user/sim-cognito-user.js.map +1 -1
- package/dist/service/lambda/function/invoke/sim-lambda-handler-runner.d.ts.map +1 -1
- package/dist/service/lambda/function/invoke/sim-lambda-handler-runner.js +22 -1
- package/dist/service/lambda/function/invoke/sim-lambda-handler-runner.js.map +1 -1
- package/dist/service/lambda/function/sim-lambda-function-arn-parts.d.ts +30 -0
- package/dist/service/lambda/function/sim-lambda-function-arn-parts.d.ts.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function-arn-parts.js +32 -0
- package/dist/service/lambda/function/sim-lambda-function-arn-parts.js.map +1 -0
- package/dist/service/route53/cfn/record-set/build/sim-cfn-r53-record-set-builder.d.ts +5 -0
- package/dist/service/route53/cfn/record-set/build/sim-cfn-r53-record-set-builder.d.ts.map +1 -1
- package/dist/service/route53/cfn/record-set/build/sim-cfn-r53-record-set-builder.js +13 -3
- package/dist/service/route53/cfn/record-set/build/sim-cfn-r53-record-set-builder.js.map +1 -1
- package/dist/service/route53/cfn/record-set/build/sim-cfn-r53-record-type-skip.d.ts +26 -0
- package/dist/service/route53/cfn/record-set/build/sim-cfn-r53-record-type-skip.d.ts.map +1 -0
- package/dist/service/route53/cfn/record-set/build/sim-cfn-r53-record-type-skip.js +36 -0
- package/dist/service/route53/cfn/record-set/build/sim-cfn-r53-record-type-skip.js.map +1 -0
- package/dist/service/route53/dns/answer/dns-answerer-test-query.d.ts +6 -3
- package/dist/service/route53/dns/answer/dns-answerer-test-query.d.ts.map +1 -1
- package/dist/service/route53/dns/answer/dns-answerer-test-query.js +5 -2
- package/dist/service/route53/dns/answer/dns-answerer-test-query.js.map +1 -1
- package/dist/service/route53/dns/answer/sim-route53-dns-record-answer.d.ts.map +1 -1
- package/dist/service/route53/dns/answer/sim-route53-dns-record-answer.js +9 -3
- package/dist/service/route53/dns/answer/sim-route53-dns-record-answer.js.map +1 -1
- package/dist/service/route53/dns/dns-record-type.d.ts +24 -7
- package/dist/service/route53/dns/dns-record-type.d.ts.map +1 -1
- package/dist/service/route53/dns/dns-record-type.js +16 -7
- package/dist/service/route53/dns/dns-record-type.js.map +1 -1
- package/dist/service/route53/dns/rdata/dns-rdata.d.ts +2 -2
- package/dist/service/route53/dns/rdata/dns-rdata.d.ts.map +1 -1
- package/dist/service/route53/dns/rdata/dns-rdata.js.map +1 -1
- package/dist/service/route53/hosted-zone/register-sim-route53-hosted-zone.d.ts +34 -0
- package/dist/service/route53/hosted-zone/register-sim-route53-hosted-zone.d.ts.map +1 -0
- package/dist/service/route53/hosted-zone/register-sim-route53-hosted-zone.js +35 -0
- package/dist/service/route53/hosted-zone/register-sim-route53-hosted-zone.js.map +1 -0
- package/dist/service/route53/hosted-zone/sim-route53-hosted-zone-records.d.ts.map +1 -1
- package/dist/service/route53/hosted-zone/sim-route53-hosted-zone-records.js +2 -4
- package/dist/service/route53/hosted-zone/sim-route53-hosted-zone-records.js.map +1 -1
- package/dist/service/route53/hosted-zone/sim-route53-hosted-zone.d.ts +7 -0
- package/dist/service/route53/hosted-zone/sim-route53-hosted-zone.d.ts.map +1 -1
- package/dist/service/route53/hosted-zone/sim-route53-hosted-zone.js +10 -1
- package/dist/service/route53/hosted-zone/sim-route53-hosted-zone.js.map +1 -1
- package/dist/service/route53/index.d.ts +1 -0
- package/dist/service/route53/index.d.ts.map +1 -1
- package/dist/service/route53/index.js +1 -0
- package/dist/service/route53/index.js.map +1 -1
- package/dist/service/route53/record/sim-route53-record-type.d.ts +1 -1
- package/dist/service/route53/record/sim-route53-record-type.d.ts.map +1 -1
- package/dist/service/route53/record/sim-route53-record-type.js +3 -2
- package/dist/service/route53/record/sim-route53-record-type.js.map +1 -1
- package/dist/service/route53/record/sim-route53-record-value.d.ts +9 -0
- package/dist/service/route53/record/sim-route53-record-value.d.ts.map +1 -0
- package/dist/service/route53/record/sim-route53-record-value.js +26 -0
- package/dist/service/route53/record/sim-route53-record-value.js.map +1 -0
- package/dist/service/route53/record/sim-route53-record.d.ts +15 -1
- package/dist/service/route53/record/sim-route53-record.d.ts.map +1 -1
- package/dist/service/route53/record/sim-route53-record.js +21 -1
- package/dist/service/route53/record/sim-route53-record.js.map +1 -1
- package/dist/service/route53/sim-route53.d.ts +14 -0
- package/dist/service/route53/sim-route53.d.ts.map +1 -1
- package/dist/service/route53/sim-route53.js +19 -0
- package/dist/service/route53/sim-route53.js.map +1 -1
- package/dist/service/s3/bucket/sim-s3-bucket-access.d.ts +16 -4
- package/dist/service/s3/bucket/sim-s3-bucket-access.d.ts.map +1 -1
- package/dist/service/s3/bucket/sim-s3-bucket-access.js +21 -6
- package/dist/service/s3/bucket/sim-s3-bucket-access.js.map +1 -1
- package/dist/service/s3/index.d.ts +1 -0
- package/dist/service/s3/index.d.ts.map +1 -1
- package/dist/service/s3/mount/sim-s3-mount-directory-events.d.ts +40 -0
- package/dist/service/s3/mount/sim-s3-mount-directory-events.d.ts.map +1 -0
- package/dist/service/s3/mount/sim-s3-mount-directory-events.js +64 -0
- package/dist/service/s3/mount/sim-s3-mount-directory-events.js.map +1 -0
- package/dist/service/s3/mount/sim-s3-mount-watch.d.ts +36 -0
- package/dist/service/s3/mount/sim-s3-mount-watch.d.ts.map +1 -0
- package/dist/service/s3/mount/sim-s3-mount-watch.js +57 -0
- package/dist/service/s3/mount/sim-s3-mount-watch.js.map +1 -0
- package/dist/service/s3/mount/sim-s3-mount-watches.d.ts +42 -0
- package/dist/service/s3/mount/sim-s3-mount-watches.d.ts.map +1 -0
- package/dist/service/s3/mount/sim-s3-mount-watches.js +69 -0
- package/dist/service/s3/mount/sim-s3-mount-watches.js.map +1 -0
- package/dist/service/s3/mount/sim-s3-mount.type.d.ts +31 -0
- package/dist/service/s3/mount/sim-s3-mount.type.d.ts.map +1 -0
- package/dist/service/s3/mount/sim-s3-mount.type.js +2 -0
- package/dist/service/s3/mount/sim-s3-mount.type.js.map +1 -0
- package/dist/service/s3/notification/destination/lambda/sim-s3-notification-function-arn.d.ts +3 -3
- package/dist/service/s3/notification/destination/lambda/sim-s3-notification-function-arn.d.ts.map +1 -1
- package/dist/service/s3/notification/destination/lambda/sim-s3-notification-function-arn.js +8 -14
- package/dist/service/s3/notification/destination/lambda/sim-s3-notification-function-arn.js.map +1 -1
- package/dist/service/s3/sim-s3.d.ts +49 -64
- package/dist/service/s3/sim-s3.d.ts.map +1 -1
- package/dist/service/s3/sim-s3.js +56 -66
- package/dist/service/s3/sim-s3.js.map +1 -1
- package/dist/util/filesystem/path.d.ts +4 -0
- package/dist/util/filesystem/path.d.ts.map +1 -1
- package/dist/util/filesystem/path.js +8 -3
- package/dist/util/filesystem/path.js.map +1 -1
- package/dist/util/memo/memo.d.ts +8 -0
- package/dist/util/memo/memo.d.ts.map +1 -1
- package/dist/util/memo/memo.js +10 -0
- package/dist/util/memo/memo.js.map +1 -1
- package/dist/util/process/close-on-signal.d.ts +16 -0
- package/dist/util/process/close-on-signal.d.ts.map +1 -0
- package/dist/util/process/close-on-signal.js +54 -0
- package/dist/util/process/close-on-signal.js.map +1 -0
- package/dist/watch/index.d.ts +3 -0
- package/dist/watch/index.d.ts.map +1 -0
- package/dist/watch/index.js +2 -0
- package/dist/watch/index.js.map +1 -0
- package/dist/watch/sim-watch-settle.d.ts +13 -0
- package/dist/watch/sim-watch-settle.d.ts.map +1 -1
- package/dist/watch/sim-watch-settle.js +24 -2
- package/dist/watch/sim-watch-settle.js.map +1 -1
- package/dist/watch/sim-watch.config.d.ts +1 -0
- package/dist/watch/sim-watch.config.d.ts.map +1 -1
- package/dist/watch/sim-watch.config.js +21 -1
- package/dist/watch/sim-watch.config.js.map +1 -1
- package/package.json +29 -24
|
@@ -1,9 +1,31 @@
|
|
|
1
1
|
import { simSdkCallerOptions, } from "../../../sdk/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* The SDK Command routes for the users and groups in a pool.
|
|
4
|
+
*
|
|
5
|
+
* The three sign-up routes read no caller from the SDK context, because real
|
|
6
|
+
* Cognito authorizes them with no IAM policy: they are what an application
|
|
7
|
+
* calls on behalf of someone signing themselves up, holding no AWS credentials
|
|
8
|
+
* at all. `AdminConfirmSignUp` is the admin side of the same thing, and does
|
|
9
|
+
* read one.
|
|
4
10
|
*/
|
|
5
11
|
export function simCognitoSdkDirectoryRoutes(simCognito) {
|
|
6
12
|
return [
|
|
13
|
+
[
|
|
14
|
+
"SignUpCommand",
|
|
15
|
+
async (command) => await simCognito.signUp(command),
|
|
16
|
+
],
|
|
17
|
+
[
|
|
18
|
+
"ConfirmSignUpCommand",
|
|
19
|
+
async (command) => await simCognito.confirmSignUp(command),
|
|
20
|
+
],
|
|
21
|
+
[
|
|
22
|
+
"ResendConfirmationCodeCommand",
|
|
23
|
+
async (command) => await simCognito.resendConfirmationCode(command),
|
|
24
|
+
],
|
|
25
|
+
[
|
|
26
|
+
"AdminConfirmSignUpCommand",
|
|
27
|
+
async (command, context) => await simCognito.adminConfirmSignUp(command, simSdkCallerOptions(context)),
|
|
28
|
+
],
|
|
7
29
|
[
|
|
8
30
|
"AdminCreateUserCommand",
|
|
9
31
|
async (command, context) => await simCognito.adminCreateUser(command, simSdkCallerOptions(context)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-sdk-directory-routes.js","sourceRoot":"","sources":["../../../../src/service/cognito/sdk/sim-cognito-sdk-directory-routes.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,GAEpB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-sdk-directory-routes.js","sourceRoot":"","sources":["../../../../src/service/cognito/sdk/sim-cognito-sdk-directory-routes.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,GAEpB,MAAM,uBAAuB,CAAC;AAgC/B;;;;;;;;GAQG;AACH,MAAM,UAAU,4BAA4B,CAC1C,UAAsC;IAEtC,OAAO;QACL;YACE,eAAe;YACf,KAAK,EAAE,OAAO,EAAoB,EAAE,CAClC,MAAM,UAAU,CAAC,MAAM,CAAC,OAA2B,CAAC;SACvD;QACD;YACE,sBAAsB;YACtB,KAAK,EAAE,OAAO,EAAoB,EAAE,CAClC,MAAM,UAAU,CAAC,aAAa,CAAC,OAAkC,CAAC;SACrE;QACD;YACE,+BAA+B;YAC/B,KAAK,EAAE,OAAO,EAAoB,EAAE,CAClC,MAAM,UAAU,CAAC,sBAAsB,CACrC,OAA2C,CAC5C;SACJ;QACD;YACE,2BAA2B;YAC3B,KAAK,EAAE,OAAO,EAAE,OAAO,EAAoB,EAAE,CAC3C,MAAM,UAAU,CAAC,kBAAkB,CACjC,OAAuC,EACvC,mBAAmB,CAAC,OAAO,CAAC,CAC7B;SACJ;QACD;YACE,w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M,UAAU,CAAC,sBAAsB,CACrC,OAA2C,EAC3C,mBAAmB,CAAC,OAAO,CAAC,CAC7B;SACJ;QACD;YACE,yBAAyB;YACzB,KAAK,EAAE,OAAO,EAAE,OAAO,EAAoB,EAAE,CAC3C,MAAM,UAAU,CAAC,gBAAgB,CAC/B,OAAqC,EACrC,mBAAmB,CAAC,OAAO,CAAC,CAC7B;SACJ;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-sdk-pool-routes.d.ts","sourceRoot":"","sources":["../../../../src/service/cognito/sdk/sim-cognito-sdk-pool-routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-sdk-pool-routes.d.ts","sourceRoot":"","sources":["../../../../src/service/cognito/sdk/sim-cognito-sdk-pool-routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,uBAAuB,CAAC;AAe/B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAEtF;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,0BAA0B,GACrC,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC,EAAE,CAmFpD"}
|
|
@@ -12,6 +12,10 @@ export function simCognitoSdkPoolRoutes(simCognito) {
|
|
|
12
12
|
"DescribeUserPoolCommand",
|
|
13
13
|
async (command, context) => await simCognito.describeUserPool(command, simSdkCallerOptions(context)),
|
|
14
14
|
],
|
|
15
|
+
[
|
|
16
|
+
"UpdateUserPoolCommand",
|
|
17
|
+
async (command, context) => await simCognito.updateUserPool(command, simSdkCallerOptions(context)),
|
|
18
|
+
],
|
|
15
19
|
[
|
|
16
20
|
"DeleteUserPoolCommand",
|
|
17
21
|
async (command, context) => await simCognito.deleteUserPool(command, simSdkCallerOptions(context)),
|
|
@@ -28,6 +32,10 @@ export function simCognitoSdkPoolRoutes(simCognito) {
|
|
|
28
32
|
"DescribeUserPoolClientCommand",
|
|
29
33
|
async (command, context) => await simCognito.describeUserPoolClient(command, simSdkCallerOptions(context)),
|
|
30
34
|
],
|
|
35
|
+
[
|
|
36
|
+
"UpdateUserPoolClientCommand",
|
|
37
|
+
async (command, context) => await simCognito.updateUserPoolClient(command, simSdkCallerOptions(context)),
|
|
38
|
+
],
|
|
31
39
|
[
|
|
32
40
|
"DeleteUserPoolClientCommand",
|
|
33
41
|
async (command, context) => await simCognito.deleteUserPoolClient(command, simSdkCallerOptions(context)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-sdk-pool-routes.js","sourceRoot":"","sources":["../../../../src/service/cognito/sdk/sim-cognito-sdk-pool-routes.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,GAEpB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-sdk-pool-routes.js","sourceRoot":"","sources":["../../../../src/service/cognito/sdk/sim-cognito-sdk-pool-routes.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,GAEpB,MAAM,uBAAuB,CAAC;AAiB/B;;GAEG;AACH,MAAM,UAAU,uBAAuB,CACrC,UAAsC;IAEtC,OAAO;QACL;YACE,uBAAuB;YACvB,KAAK,EAAE,OAAO,EAAE,OAAO,EAAoB,EAAE,CAC3C,MAAM,UAAU,CAAC,cAAc,CAC7B,OAAmC,EACnC,mBAAmB,CAAC,OAAO,CAAC,CAC7B;SACJ;QACD;YACE,yBAAyB;YACzB,KAAK,EAAE,OAAO,EAAE,OAAO,EAAoB,EAAE,CAC3C,MAAM,UAAU,CAAC,gBAAgB,CAC/B,OAAqC,EACrC,mBAAmB,CAAC,OAAO,CAAC,CAC7B;SACJ;QACD;YACE,uBAAuB;YACvB,KAAK,EAAE,OAAO,EAAE,OAAO,EAAoB,EAAE,CAC3C,MAA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
|
@@ -4,7 +4,8 @@ interface SimCognitoServiceControllerProperties {
|
|
|
4
4
|
readonly simAws?: SimAws;
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
7
|
-
* Localhost HTTP controller for the public endpoints of a simulated user pool
|
|
7
|
+
* Localhost HTTP controller for the public endpoints of a simulated user pool,
|
|
8
|
+
* and for the messages the pool would have sent.
|
|
8
9
|
*
|
|
9
10
|
* Real Cognito serves a pool's JWKS and its OpenID configuration to anyone,
|
|
10
11
|
* with no SigV4 signature, because a token verifier holding no AWS credentials
|
|
@@ -12,6 +13,10 @@ interface SimCognitoServiceControllerProperties {
|
|
|
12
13
|
* so a verifier pointed at the local URL fetches keys the way it does against
|
|
13
14
|
* real Cognito rather than being handed them.
|
|
14
15
|
*
|
|
16
|
+
* The recorded messages are listed at `/<userPoolId>/messages`, which real
|
|
17
|
+
* Cognito serves nothing at. Nothing here delivers a message, so this is where
|
|
18
|
+
* one is read during local development.
|
|
19
|
+
*
|
|
15
20
|
* The Cognito API itself is not served. An SDK client reaches the simulator
|
|
16
21
|
* through `SimSdk` rather than through an endpoint override.
|
|
17
22
|
*/
|
|
@@ -25,6 +30,10 @@ export declare class SimCognitoServiceController implements SimAwsServiceControl
|
|
|
25
30
|
*/
|
|
26
31
|
handleRequest(serviceRequest: SimAwsServiceRequest): Promise<Response>;
|
|
27
32
|
private respond;
|
|
33
|
+
/**
|
|
34
|
+
* The document a request names, or nothing served at that path.
|
|
35
|
+
*/
|
|
36
|
+
private served;
|
|
28
37
|
/**
|
|
29
38
|
* Find the pool a request names, if this endpoint serves it.
|
|
30
39
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-controller.d.ts","sourceRoot":"","sources":["../../../../src/service/cognito/serve/sim-cognito-controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EAErB,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-controller.d.ts","sourceRoot":"","sources":["../../../../src/service/cognito/serve/sim-cognito-controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EAErB,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AA8B9C,UAAU,qCAAqC;IAC7C,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAYD;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,2BAA4B,YAAW,uBAAuB;IACzE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAuC;IAC3E,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAoC;IAE7D,YAAY,UAAU,GAAE,qCAA0C,EAGjE;IAED;;OAEG;IACH,aAAa,CAAC,cAAc,EAAE,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAErE;IAED,OAAO,CAAC,OAAO;IAuCf;;OAEG;IACH,OAAO,CAAC,MAAM;IAkCd;;;;;;;;OAQG;IACH,OAAO,CAAC,UAAU;CAoBnB"}
|
|
@@ -5,12 +5,26 @@ import { SimCognitoOpenIdConfiguration } from "./sim-cognito-openid-configuratio
|
|
|
5
5
|
* The path segment both public pool endpoints sit under.
|
|
6
6
|
*/
|
|
7
7
|
const wellKnownSegment = ".well-known";
|
|
8
|
+
/**
|
|
9
|
+
* The path segment the recorded messages are listed under.
|
|
10
|
+
*
|
|
11
|
+
* Real Cognito serves nothing here. It is the serving side of
|
|
12
|
+
* `SimCognitoUserPool.sentMessages`, so that a browser or a curl can read what
|
|
13
|
+
* a pool would have sent during local development, and it is a divergence for
|
|
14
|
+
* the same reason that accessor is one: nothing here delivers a message.
|
|
15
|
+
*/
|
|
16
|
+
const messagesSegment = "messages";
|
|
17
|
+
/**
|
|
18
|
+
* The segments a request can name after the pool id.
|
|
19
|
+
*/
|
|
20
|
+
const servedSegments = new Set([wellKnownSegment, messagesSegment]);
|
|
8
21
|
/**
|
|
9
22
|
* The methods a published document is read with.
|
|
10
23
|
*/
|
|
11
24
|
const readMethods = new Set(["GET", "HEAD"]);
|
|
12
25
|
/**
|
|
13
|
-
* Localhost HTTP controller for the public endpoints of a simulated user pool
|
|
26
|
+
* Localhost HTTP controller for the public endpoints of a simulated user pool,
|
|
27
|
+
* and for the messages the pool would have sent.
|
|
14
28
|
*
|
|
15
29
|
* Real Cognito serves a pool's JWKS and its OpenID configuration to anyone,
|
|
16
30
|
* with no SigV4 signature, because a token verifier holding no AWS credentials
|
|
@@ -18,6 +32,10 @@ const readMethods = new Set(["GET", "HEAD"]);
|
|
|
18
32
|
* so a verifier pointed at the local URL fetches keys the way it does against
|
|
19
33
|
* real Cognito rather than being handed them.
|
|
20
34
|
*
|
|
35
|
+
* The recorded messages are listed at `/<userPoolId>/messages`, which real
|
|
36
|
+
* Cognito serves nothing at. Nothing here delivers a message, so this is where
|
|
37
|
+
* one is read during local development.
|
|
38
|
+
*
|
|
21
39
|
* The Cognito API itself is not served. An SDK client reaches the simulator
|
|
22
40
|
* through `SimSdk` rather than through an endpoint override.
|
|
23
41
|
*/
|
|
@@ -41,15 +59,16 @@ export class SimCognitoServiceController {
|
|
|
41
59
|
if (!readMethods.has(request.method)) {
|
|
42
60
|
return this.response.notRead(request.method);
|
|
43
61
|
}
|
|
44
|
-
// A path is exactly '<userPoolId>/.well-known/<document>'
|
|
45
|
-
// longer is a path
|
|
46
|
-
// one
|
|
47
|
-
const [userPoolId,
|
|
62
|
+
// A path is exactly '<userPoolId>/.well-known/<document>' or
|
|
63
|
+
// '<userPoolId>/messages'. Anything longer is a path nothing is served at,
|
|
64
|
+
// rather than a prefix of one that is.
|
|
65
|
+
const [userPoolId, segment, document, ...rest] = url.pathname
|
|
48
66
|
.slice(1)
|
|
49
67
|
.split("/");
|
|
50
68
|
if (userPoolId === undefined ||
|
|
51
69
|
userPoolId.length === 0 ||
|
|
52
|
-
|
|
70
|
+
segment === undefined ||
|
|
71
|
+
!servedSegments.has(segment) ||
|
|
53
72
|
rest.length > 0) {
|
|
54
73
|
return this.response.noSuchEndpoint(url.pathname);
|
|
55
74
|
}
|
|
@@ -57,11 +76,32 @@ export class SimCognitoServiceController {
|
|
|
57
76
|
if (pool === undefined) {
|
|
58
77
|
return this.response.noSuchUserPool(userPoolId);
|
|
59
78
|
}
|
|
79
|
+
return this.served(pool, {
|
|
80
|
+
segment,
|
|
81
|
+
document,
|
|
82
|
+
url,
|
|
83
|
+
method: request.method,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* The document a request names, or nothing served at that path.
|
|
88
|
+
*/
|
|
89
|
+
served(pool, request) {
|
|
90
|
+
const { segment, document, url, method } = request;
|
|
91
|
+
// The listing is the whole of what the messages segment serves, and the
|
|
92
|
+
// two published documents sit under `.well-known` and nowhere else, so a
|
|
93
|
+
// path that mixes the two reaches neither.
|
|
94
|
+
if (segment === messagesSegment && document === undefined) {
|
|
95
|
+
return this.response.document({ messages: pool.sentMessages().map((message) => message.toOutput()) }, method);
|
|
96
|
+
}
|
|
97
|
+
if (segment !== wellKnownSegment) {
|
|
98
|
+
return this.response.noSuchEndpoint(url.pathname);
|
|
99
|
+
}
|
|
60
100
|
if (document === "jwks.json") {
|
|
61
|
-
return this.response.document(pool.jwks(),
|
|
101
|
+
return this.response.document(pool.jwks(), method);
|
|
62
102
|
}
|
|
63
103
|
if (document === "openid-configuration") {
|
|
64
|
-
return this.response.document(this.openIdConfiguration.document(pool, url.origin),
|
|
104
|
+
return this.response.document(this.openIdConfiguration.document(pool, url.origin), method);
|
|
65
105
|
}
|
|
66
106
|
return this.response.noSuchEndpoint(url.pathname);
|
|
67
107
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-controller.js","sourceRoot":"","sources":["../../../../src/service/cognito/serve/sim-cognito-controller.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AAEtF;;GAEG;AACH,MAAM,gBAAgB,GAAG,aAAa,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-controller.js","sourceRoot":"","sources":["../../../../src/service/cognito/serve/sim-cognito-controller.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AAEtF;;GAEG;AACH,MAAM,gBAAgB,GAAG,aAAa,CAAC;AAEvC;;;;;;;GAOG;AACH,MAAM,eAAe,GAAG,UAAU,CAAC;AAEnC;;GAEG;AACH,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,CAAC,gBAAgB,EAAE,eAAe,CAAC,CAAC,CAAC;AAEpE;;GAEG;AACH,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;AAgB7C;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,OAAO,2BAA2B;IACrB,MAAM,CAAS;IACf,mBAAmB,GAAG,IAAI,6BAA6B,EAAE,CAAC;IAC1D,QAAQ,GAAG,IAAI,0BAA0B,EAAE,CAAC;IAE7D,YAAY,UAAU,GAA0C,EAAE;QAChE,MAAM,EAAE,MAAM,GAAG,IAAI,MAAM,EAAE,EAAE,GAAG,UAAU,CAAC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;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zB,wBAAwB,CAAC,UAAU,CAAC,CAAC;QAExC,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,MAAM,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QAE/C,IAAI,cAAc,KAAK,MAAM,CAAC,UAAU,EAAE,CAAC;YACzC,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
|
@@ -19,7 +19,7 @@ export declare class SimCognitoEndpointResponse {
|
|
|
19
19
|
/**
|
|
20
20
|
* Refuse a method that does not read a published document.
|
|
21
21
|
*
|
|
22
|
-
*
|
|
22
|
+
* Every path here publishes a document, so `GET` and `HEAD` are all they
|
|
23
23
|
* answer. The Cognito API is reached through `SimSdk` rather than by posting
|
|
24
24
|
* to this hostname, so a `POST` here is not the API either.
|
|
25
25
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-endpoint-response.d.ts","sourceRoot":"","sources":["../../../../src/service/cognito/serve/sim-cognito-endpoint-response.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,qBAAa,0BAA0B;IACrC;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,QAAQ,CAY/C;IAED;;OAEG;IACH,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,QAAQ,CAK3C;IAED;;;;;;OAMG;IACH,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,
|
|
1
|
+
{"version":3,"file":"sim-cognito-endpoint-response.d.ts","sourceRoot":"","sources":["../../../../src/service/cognito/serve/sim-cognito-endpoint-response.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,qBAAa,0BAA0B;IACrC;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,QAAQ,CAY/C;IAED;;OAEG;IACH,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,QAAQ,CAK3C;IAED;;;;;;OAMG;IACH,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,CAUhC;IAED;;OAEG;IACH,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,CAKzC;CACF"}
|
|
@@ -31,14 +31,15 @@ export class SimCognitoEndpointResponse {
|
|
|
31
31
|
/**
|
|
32
32
|
* Refuse a method that does not read a published document.
|
|
33
33
|
*
|
|
34
|
-
*
|
|
34
|
+
* Every path here publishes a document, so `GET` and `HEAD` are all they
|
|
35
35
|
* answer. The Cognito API is reached through `SimSdk` rather than by posting
|
|
36
36
|
* to this hostname, so a `POST` here is not the API either.
|
|
37
37
|
*/
|
|
38
38
|
notRead(method) {
|
|
39
39
|
return Response.json({
|
|
40
40
|
message: `Simulated Cognito answers ${method} at no user pool endpoint. ` +
|
|
41
|
-
`The JWKS
|
|
41
|
+
`The JWKS, the OpenID configuration and the recorded messages are ` +
|
|
42
|
+
`read with GET or HEAD.`,
|
|
42
43
|
}, { status: 405, headers: { allow: "GET, HEAD" } });
|
|
43
44
|
}
|
|
44
45
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-endpoint-response.js","sourceRoot":"","sources":["../../../../src/service/cognito/serve/sim-cognito-endpoint-response.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,OAAO,0BAA0B;IACrC;;;;;OAKG;IACH,QAAQ,CAAC,IAAY,EAAE,MAAc;QACnC,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAClC,MAAM,OAAO,GAAG;YACd,cAAc,EAAE,kBAAkB;YAClC,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;SAClD,CAAC;QAEF,IAAI,MAAM,KAAK,MAAM,EAAE,CAAC;YACtB,OAAO,IAAI,QAAQ,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC;QAC3D,CAAC;QAED,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC;IACtD,CAAC;IAED;;OAEG;IACH,cAAc,CAAC,UAAkB;QAC/B,OAAO,QAAQ,CAAC,IAAI,CAClB,EAAE,OAAO,EAAE,aAAa,UAAU,kBAAkB,EAAE,EACtD,EAAE,MAAM,EAAE,GAAG,EAAE,CAChB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,OAAO,CAAC,MAAc;QACpB,OAAO,QAAQ,CAAC,IAAI,CAClB;YACE,OAAO,EACL,6BAA6B,MAAM,6BAA6B;gBAChE,
|
|
1
|
+
{"version":3,"file":"sim-cognito-endpoint-response.js","sourceRoot":"","sources":["../../../../src/service/cognito/serve/sim-cognito-endpoint-response.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,OAAO,0BAA0B;IACrC;;;;;OAKG;IACH,QAAQ,CAAC,IAAY,EAAE,MAAc;QACnC,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAClC,MAAM,OAAO,GAAG;YACd,cAAc,EAAE,kBAAkB;YAClC,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;SAClD,CAAC;QAEF,IAAI,MAAM,KAAK,MAAM,EAAE,CAAC;YACtB,OAAO,IAAI,QAAQ,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC;QAC3D,CAAC;QAED,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC;IACtD,CAAC;IAED;;OAEG;IACH,cAAc,CAAC,UAAkB;QAC/B,OAAO,QAAQ,CAAC,IAAI,CAClB,EAAE,OAAO,EAAE,aAAa,UAAU,kBAAkB,EAAE,EACtD,EAAE,MAAM,EAAE,GAAG,EAAE,CAChB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,OAAO,CAAC,MAAc;QACpB,OAAO,QAAQ,CAAC,IAAI,CAClB;YACE,OAAO,EACL,6BAA6B,MAAM,6BAA6B;gBAChE,mEAAmE;gBACnE,wBAAwB;SAC3B,EACD,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,CACjD,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,cAAc,CAAC,QAAgB;QAC7B,OAAO,QAAQ,CAAC,IAAI,CAClB,EAAE,OAAO,EAAE,oCAAoC,QAAQ,EAAE,EAAE,EAC3D,EAAE,MAAM,EAAE,GAAG,EAAE,CAChB,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -7,12 +7,24 @@ import type * as simCognitoCommands from "./command/sim-cognito-command.types.js
|
|
|
7
7
|
import { SimCognitoUserPoolRegistry } from "./registry/sim-cognito-user-pool-registry.js";
|
|
8
8
|
import { type SimCognitoIdentityProviderRequestOptions, SimCognitoUserDirectory } from "./sim-cognito-user-directory.js";
|
|
9
9
|
import type { SimCognitoUserPool } from "./user-pool/sim-cognito-user-pool.js";
|
|
10
|
+
import { type SimCognitoTriggerFunctions } from "./user-pool/trigger/sim-cognito-trigger-functions.js";
|
|
10
11
|
export type { SimCognitoIdentityProviderRequestOptions } from "./sim-cognito-user-directory.js";
|
|
11
12
|
interface SimCognitoIdentityProviderProperties {
|
|
12
13
|
readonly accountRegionScope?: SimAwsAccountRegionScope;
|
|
13
14
|
readonly iam?: SimIamInterServiceAuthZ;
|
|
14
15
|
readonly background?: BackgroundScheduler;
|
|
16
|
+
/**
|
|
17
|
+
* Where every pool in the simulation is indexed by id. Pool ids are unique
|
|
18
|
+
* across a simulation, and a pool is reachable by id alone from the serving
|
|
19
|
+
* layer, whichever scope created it.
|
|
20
|
+
*/
|
|
15
21
|
readonly userPoolRegistry?: SimCognitoUserPoolRegistry;
|
|
22
|
+
/**
|
|
23
|
+
* The Lambda functions a pool's triggers can reach, which is the whole
|
|
24
|
+
* simulation rather than this scope: a `LambdaConfig` names a function by
|
|
25
|
+
* ARN, and that ARN can name any Account and Region.
|
|
26
|
+
*/
|
|
27
|
+
readonly triggerFunctions?: SimCognitoTriggerFunctions;
|
|
16
28
|
}
|
|
17
29
|
/**
|
|
18
30
|
* Simulated Cognito user pools. Handles SDK commands. Emulates AWS behaviour
|
|
@@ -66,6 +78,10 @@ export declare class SimCognitoIdentityProvider extends SimCognitoUserDirectory
|
|
|
66
78
|
* Handle a DescribeUserPool Command from the SDK.
|
|
67
79
|
*/
|
|
68
80
|
describeUserPool(command: simCognitoCommands.SimDescribeUserPoolCommand, options?: SimCognitoIdentityProviderRequestOptions): Promise<simCognitoCommands.SimDescribeUserPoolCommandOutput>;
|
|
81
|
+
/**
|
|
82
|
+
* Handle an UpdateUserPool Command from the SDK.
|
|
83
|
+
*/
|
|
84
|
+
updateUserPool(command: simCognitoCommands.SimUpdateUserPoolCommand, options?: SimCognitoIdentityProviderRequestOptions): Promise<simCognitoCommands.SimUpdateUserPoolCommandOutput>;
|
|
69
85
|
/**
|
|
70
86
|
* Handle a DeleteUserPool Command from the SDK.
|
|
71
87
|
*/
|
|
@@ -82,6 +98,10 @@ export declare class SimCognitoIdentityProvider extends SimCognitoUserDirectory
|
|
|
82
98
|
* Handle a DescribeUserPoolClient Command from the SDK.
|
|
83
99
|
*/
|
|
84
100
|
describeUserPoolClient(command: simCognitoCommands.SimDescribeUserPoolClientCommand, options?: SimCognitoIdentityProviderRequestOptions): Promise<simCognitoCommands.SimDescribeUserPoolClientCommandOutput>;
|
|
101
|
+
/**
|
|
102
|
+
* Handle an UpdateUserPoolClient Command from the SDK.
|
|
103
|
+
*/
|
|
104
|
+
updateUserPoolClient(command: simCognitoCommands.SimUpdateUserPoolClientCommand, options?: SimCognitoIdentityProviderRequestOptions): Promise<simCognitoCommands.SimUpdateUserPoolClientCommandOutput>;
|
|
85
105
|
/**
|
|
86
106
|
* Handle a DeleteUserPoolClient Command from the SDK.
|
|
87
107
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-identity-provider.d.ts","sourceRoot":"","sources":["../../../src/service/cognito/sim-cognito-identity-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAC3F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAEvF,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AACzF,OAAO,KAAK,KAAK,kBAAkB,MAAM,wCAAwC,CAAC;AAElF,OAAO,EAAE,0BAA0B,EAAE,MAAM,8CAA8C,CAAC;AAE1F,OAAO,EACL,KAAK,wCAAwC,EAC7C,uBAAuB,EACxB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-identity-provider.d.ts","sourceRoot":"","sources":["../../../src/service/cognito/sim-cognito-identity-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAC3F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAEvF,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,4BAA4B,EAAE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ACG,oBAAoB,CACxB,OAAO,EAAE,kBAAkB,CAAC,8BAA8B,EAC1D,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kBAAkB,CAAC,oCAAoC,CAAC,CAGlE;IAED;;OAEG;IACG,mBAAmB,CACvB,OAAO,EAAE,kBAAkB,CAAC,6BAA6B,EACzD,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kBAAkB,CAAC,mCAAmC,CAAC,CAGjE;IAED;;OAEG;IACH,kBAAkB,IAAI,4BAA4B,CAEjD;IAED;;OAEG;IACH,gBAAgB,IAAI,mBAAmB,CAEtC;CACF"}
|
|
@@ -8,6 +8,7 @@ import { SimCognitoSdkCommandRouter } from "./sdk/sim-cognito-sdk-command-router
|
|
|
8
8
|
import { SimCognitoUserDirectory, } from "./sim-cognito-user-directory.js";
|
|
9
9
|
import { requireSimCognitoUserPoolId, } from "./user-pool/sim-cognito-user-pool-id.js";
|
|
10
10
|
import { SimCognitoUserPoolStore } from "./user-pool/sim-cognito-user-pool-store.js";
|
|
11
|
+
import { SimCognitoNoTriggerFunctions, } from "./user-pool/trigger/sim-cognito-trigger-functions.js";
|
|
11
12
|
/**
|
|
12
13
|
* Simulated Cognito user pools. Handles SDK commands. Emulates AWS behaviour
|
|
13
14
|
* and state.
|
|
@@ -31,7 +32,7 @@ export class SimCognitoIdentityProvider extends SimCognitoUserDirectory {
|
|
|
31
32
|
cognito: this,
|
|
32
33
|
});
|
|
33
34
|
constructor(properties = {}) {
|
|
34
|
-
const { accountRegionScope = simAwsAccountRegionScopeFactory.make(), iam = new SimIamAllowAllAuth(), background = new BackgroundTasks(), userPoolRegistry = new SimCognitoUserPoolRegistry(), } = properties;
|
|
35
|
+
const { accountRegionScope = simAwsAccountRegionScopeFactory.make(), iam = new SimIamAllowAllAuth(), background = new BackgroundTasks(), userPoolRegistry = new SimCognitoUserPoolRegistry(), triggerFunctions = new SimCognitoNoTriggerFunctions(), } = properties;
|
|
35
36
|
const pools = new SimCognitoUserPoolStore({ registry: userPoolRegistry });
|
|
36
37
|
super({
|
|
37
38
|
commands: new SimCognitoCommands({
|
|
@@ -39,6 +40,7 @@ export class SimCognitoIdentityProvider extends SimCognitoUserDirectory {
|
|
|
39
40
|
iam,
|
|
40
41
|
clock: background,
|
|
41
42
|
pools,
|
|
43
|
+
triggerFunctions,
|
|
42
44
|
}),
|
|
43
45
|
background,
|
|
44
46
|
});
|
|
@@ -88,6 +90,13 @@ export class SimCognitoIdentityProvider extends SimCognitoUserDirectory {
|
|
|
88
90
|
await this.background.sequence();
|
|
89
91
|
return this.commands.userPools.describe(command, options);
|
|
90
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* Handle an UpdateUserPool Command from the SDK.
|
|
95
|
+
*/
|
|
96
|
+
async updateUserPool(command, options) {
|
|
97
|
+
await this.background.sequence();
|
|
98
|
+
return this.commands.userPools.update(command, options);
|
|
99
|
+
}
|
|
91
100
|
/**
|
|
92
101
|
* Handle a DeleteUserPool Command from the SDK.
|
|
93
102
|
*/
|
|
@@ -116,6 +125,13 @@ export class SimCognitoIdentityProvider extends SimCognitoUserDirectory {
|
|
|
116
125
|
await this.background.sequence();
|
|
117
126
|
return this.commands.clients.describe(command, options);
|
|
118
127
|
}
|
|
128
|
+
/**
|
|
129
|
+
* Handle an UpdateUserPoolClient Command from the SDK.
|
|
130
|
+
*/
|
|
131
|
+
async updateUserPoolClient(command, options) {
|
|
132
|
+
await this.background.sequence();
|
|
133
|
+
return this.commands.clients.update(command, options);
|
|
134
|
+
}
|
|
119
135
|
/**
|
|
120
136
|
* Handle a DeleteUserPoolClient Command from the SDK.
|
|
121
137
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-identity-provider.js","sourceRoot":"","sources":["../../../src/service/cognito/sim-cognito-identity-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,GAChB,MAAM,qCAAqC,CAAC;AAG7C,OAAO,EAAE,+BAA+B,EAAE,MAAM,gDAAgD,CAAC;AACjG,OAAO,EACL,kBAAkB,GAEnB,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AAEzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,0BAA0B,EAAE,MAAM,8CAA8C,CAAC;AAC1F,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAEL,uBAAuB,GACxB,MAAM,iCAAiC,CAAC;AAGzC,OAAO,EACL,2BAA2B,GAE5B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-identity-provider.js","sourceRoot":"","sources":["../../../src/service/cognito/sim-cognito-identity-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,GAChB,MAAM,qCAAqC,CAAC;AAG7C,OAAO,EAAE,+BAA+B,EAAE,MAAM,gDAAgD,CAAC;AACjG,OAAO,EACL,kBAAkB,GAEnB,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AAEzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,0BAA0B,EAAE,MAAM,8CAA8C,CAAC;AAC1F,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAEL,uBAAuB,GACxB,MAAM,iCAAiC,CAAC;AAGzC,OAAO,EACL,2BAA2B,GAE5B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EACL,4BAA4B,GAE7B,MAAM,sDAAsD,CAAC;AAwB9D;;;;;;;;;;;;;;GAcG;AACH,MAAM,OAAO,0BAA2B,SAAQ,uBAAuB;IACpD,KAAK,CAA0B;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AO,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,sBAAsB,CAC1B,OAA4D,EAC5D,OAAkD;QAElD,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,oBAAoB,CACxB,OAA0D,EAC1D,OAAkD;QAElD,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,oBAAoB,CACxB,OAA0D,EAC1D,OAAkD;QAElD,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,mBAAmB,CACvB,OAAyD,EACzD,OAAkD;QAElD,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;OAEG;IACH,kBAAkB;QAChB,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,gBAAgB;QACd,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;CACF"}
|
|
@@ -23,6 +23,22 @@ export declare abstract class SimCognitoUserDirectory extends SimCognitoAuthenti
|
|
|
23
23
|
* Handle an AdminCreateUser Command from the SDK.
|
|
24
24
|
*/
|
|
25
25
|
adminCreateUser(command: simCognitoCommands.SimAdminCreateUserCommand, options?: SimCognitoIdentityProviderRequestOptions): Promise<simCognitoCommands.SimAdminCreateUserCommandOutput>;
|
|
26
|
+
/**
|
|
27
|
+
* Handle a SignUp Command from the SDK.
|
|
28
|
+
*/
|
|
29
|
+
signUp(command: simCognitoCommands.SimSignUpCommand): Promise<simCognitoCommands.SimSignUpCommandOutput>;
|
|
30
|
+
/**
|
|
31
|
+
* Handle a ConfirmSignUp Command from the SDK.
|
|
32
|
+
*/
|
|
33
|
+
confirmSignUp(command: simCognitoCommands.SimConfirmSignUpCommand): Promise<simCognitoCommands.SimConfirmSignUpCommandOutput>;
|
|
34
|
+
/**
|
|
35
|
+
* Handle a ResendConfirmationCode Command from the SDK.
|
|
36
|
+
*/
|
|
37
|
+
resendConfirmationCode(command: simCognitoCommands.SimResendConfirmationCodeCommand): Promise<simCognitoCommands.SimResendConfirmationCodeCommandOutput>;
|
|
38
|
+
/**
|
|
39
|
+
* Handle an AdminConfirmSignUp Command from the SDK.
|
|
40
|
+
*/
|
|
41
|
+
adminConfirmSignUp(command: simCognitoCommands.SimAdminConfirmSignUpCommand, options?: SimCognitoIdentityProviderRequestOptions): Promise<simCognitoCommands.SimAdminConfirmSignUpCommandOutput>;
|
|
26
42
|
/**
|
|
27
43
|
* Handle an AdminGetUser Command from the SDK.
|
|
28
44
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-user-directory.d.ts","sourceRoot":"","sources":["../../../src/service/cognito/sim-cognito-user-directory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,KAAK,KAAK,kBAAkB,MAAM,wCAAwC,CAAC;AAClF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EACL,wBAAwB,EACxB,KAAK,wCAAwC,EAC9C,MAAM,iCAAiC,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kC,EAC9D,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kBAAkB,CAAC,wCAAwC,CAAC,CAGtE;IAED;;OAEG;IACG,sBAAsB,CAC1B,OAAO,EAAE,kBAAkB,CAAC,gCAAgC,EAC5D,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kBAAkB,CAAC,sCAAsC,CAAC,CAGpE;IAED;;OAEG;IACG,gBAAgB,CACpB,OAAO,EAAE,kBAAkB,CAAC,0BAA0B,EACtD,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kBAAkB,CAAC,gCAAgC,CAAC,CAG9D;CACF"}
|
|
1
|
+
{"version":3,"file":"sim-cognito-user-directory.d.ts","sourceRoot":"","sources":["../../../src/service/cognito/sim-cognito-user-directory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,KAAK,KAAK,kBAAkB,MAAM,wCAAwC,CAAC;AAClF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EACL,wBAAwB,EACxB,KAAK,wCAAwC,EAC9C,MAAM,iCAAiC,CAAC;AAEzC,YAAY,EAAE,wCAAwC,EAAE,MAAM,iCAAiC,CAAC;AAEhG,UAAU,iCAAiC;IACzC,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;CAC1C;AAED;;;;;;;;;GASG;AACH,8BAAsB,uBAAwB,SAAQ,wBAAwB;IAC5E,SAAS,aAAa,UAAU,EAAE,iCAAiC,EAElE;IAED;;OAEG;IACG,eAAe,CACnB,OAAO,EAAE,kBAAkB,CAAC,yBAAyB,EACrD,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kBAAkB,CAAC,+BAA+B,CAAC,CAG7D;IAED;;OAEG;IACG,MAAM,CACV,OAAO,EAAE,kBAA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,OAAO,EAAE,kBAAkB,CAAC,kCAAkC,EAC9D,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kBAAkB,CAAC,wCAAwC,CAAC,CAGtE;IAED;;OAEG;IACG,sBAAsB,CAC1B,OAAO,EAAE,kBAAkB,CAAC,gCAAgC,EAC5D,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kBAAkB,CAAC,sCAAsC,CAAC,CAGpE;IAED;;OAEG;IACG,gBAAgB,CACpB,OAAO,EAAE,kBAAkB,CAAC,0BAA0B,EACtD,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kBAAkB,CAAC,gCAAgC,CAAC,CAG9D;CACF"}
|
|
@@ -20,6 +20,34 @@ export class SimCognitoUserDirectory extends SimCognitoAuthentication {
|
|
|
20
20
|
await this.background.sequence();
|
|
21
21
|
return this.commands.users.create(command, options);
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Handle a SignUp Command from the SDK.
|
|
25
|
+
*/
|
|
26
|
+
async signUp(command) {
|
|
27
|
+
await this.background.sequence();
|
|
28
|
+
return this.commands.signUp.signUp(command);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Handle a ConfirmSignUp Command from the SDK.
|
|
32
|
+
*/
|
|
33
|
+
async confirmSignUp(command) {
|
|
34
|
+
await this.background.sequence();
|
|
35
|
+
return this.commands.signUp.confirmSignUp(command);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Handle a ResendConfirmationCode Command from the SDK.
|
|
39
|
+
*/
|
|
40
|
+
async resendConfirmationCode(command) {
|
|
41
|
+
await this.background.sequence();
|
|
42
|
+
return this.commands.signUp.resendConfirmationCode(command);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Handle an AdminConfirmSignUp Command from the SDK.
|
|
46
|
+
*/
|
|
47
|
+
async adminConfirmSignUp(command, options) {
|
|
48
|
+
await this.background.sequence();
|
|
49
|
+
return this.commands.signUp.adminConfirmSignUp(command, options);
|
|
50
|
+
}
|
|
23
51
|
/**
|
|
24
52
|
* Handle an AdminGetUser Command from the SDK.
|
|
25
53
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-user-directory.js","sourceRoot":"","sources":["../../../src/service/cognito/sim-cognito-user-directory.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,wBAAwB,GAEzB,MAAM,iCAAiC,CAAC;AASzC;;;;;;;;;GASG;AACH,MAAM,OAAgB,uBAAwB,SAAQ,wBAAwB;IAC5E,YAAsB,UAA6C;QACjE,KAAK,CAAC,UAAU,CAAC,CAAC;IACpB,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,eAAe,CACnB,OAAqD,EACrD,OAAkD;QAElD,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACtD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,YAAY,CAChB,OAAkD,EAClD,OAAkD;QAElD,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,eAAe,CACnB,OAAqD,EACrD,OAAkD;QAElD,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACtD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,oBAAoB,CACxB,OAA0D,EAC1D,OAAkD;QAElD,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC,QAAQ,CA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,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,sBAAsB,CAC1B,OAA4D,EAC5D,OAAkD;QAElD,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,iBAAiB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,gBAAgB,CACpB,OAAsD,EACtD,OAAkD;QAElD,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"sim-cognito-user-directory.js","sourceRoot":"","sources":["../../../src/service/cognito/sim-cognito-user-directory.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,wBAAwB,GAEzB,MAAM,iCAAiC,CAAC;AASzC;;;;;;;;;GASG;AACH,MAAM,OAAgB,uBAAwB,SAAQ,wBAAwB;IAC5E,YAAsB,UAA6C;QACjE,KAAK,CAAC,UAAU,CAAC,CAAC;IACpB,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,eAAe,CACnB,OAAqD,EACrD,OAAkD;QAElD,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACtD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,OAA4C;QAE5C,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED;;OAEG;IACH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C,CAAC;IAC7E,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,sBAAsB,CAC1B,OAA4D,EAC5D,OAAkD;QAElD,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,iBAAiB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,gBAAgB,CACpB,OAAsD,EACtD,OAAkD;QAElD,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF"}
|
|
@@ -18,6 +18,15 @@ export declare function requireSimCognitoSignInUser(pool: SimCognitoUserPool, cl
|
|
|
18
18
|
* on renewing its session.
|
|
19
19
|
*/
|
|
20
20
|
export declare function requireSimCognitoEnabled(user: SimCognitoUser): void;
|
|
21
|
+
/**
|
|
22
|
+
* Refuse a sign-in by a user that has not confirmed its sign-up.
|
|
23
|
+
*
|
|
24
|
+
* This is checked after the password, because that is the order real Cognito
|
|
25
|
+
* answers in: an unconfirmed user with the wrong password is refused as any
|
|
26
|
+
* other wrong password is, and one with the right password is told what is
|
|
27
|
+
* actually missing, so an application can send it to `ConfirmSignUp`.
|
|
28
|
+
*/
|
|
29
|
+
export declare function requireSimCognitoConfirmed(user: SimCognitoUser): void;
|
|
21
30
|
/**
|
|
22
31
|
* Refuse a sign-in the user cannot make.
|
|
23
32
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-sign-in.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/auth/sim-cognito-sign-in.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sim-cognito-sign-in.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/auth/sim-cognito-sign-in.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAGlE;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,kBAAkB,EACxB,MAAM,EAAE,wBAAwB,EAChC,QAAQ,EAAE,MAAM,GACf,cAAc,CAgBhB;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,CAInE;AAED;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,CAIrE;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,cAAc,EACpB,QAAQ,EAAE,MAAM,GACf,IAAI,CAQN"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SimCognitoNotAuthorizedException } from "../../error/sim-cognito.error.js";
|
|
1
|
+
import { SimCognitoNotAuthorizedException, SimCognitoUserNotConfirmedException, } from "../../error/sim-cognito.error.js";
|
|
2
2
|
import { requireSimCognitoUsername } from "../user/sim-cognito-username.js";
|
|
3
3
|
/**
|
|
4
4
|
* Resolve the user a sign-in names, as the app client reports one that is not
|
|
@@ -31,6 +31,19 @@ export function requireSimCognitoEnabled(user) {
|
|
|
31
31
|
throw new SimCognitoNotAuthorizedException("User is disabled.");
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Refuse a sign-in by a user that has not confirmed its sign-up.
|
|
36
|
+
*
|
|
37
|
+
* This is checked after the password, because that is the order real Cognito
|
|
38
|
+
* answers in: an unconfirmed user with the wrong password is refused as any
|
|
39
|
+
* other wrong password is, and one with the right password is told what is
|
|
40
|
+
* actually missing, so an application can send it to `ConfirmSignUp`.
|
|
41
|
+
*/
|
|
42
|
+
export function requireSimCognitoConfirmed(user) {
|
|
43
|
+
if (user.status.isUnconfirmed) {
|
|
44
|
+
throw new SimCognitoUserNotConfirmedException("User is not confirmed.");
|
|
45
|
+
}
|
|
46
|
+
}
|
|
34
47
|
/**
|
|
35
48
|
* Refuse a sign-in the user cannot make.
|
|
36
49
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-sign-in.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/auth/sim-cognito-sign-in.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"sim-cognito-sign-in.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/auth/sim-cognito-sign-in.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gCAAgC,EAChC,mCAAmC,GACpC,MAAM,kCAAkC,CAAC;AAI1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAE5E;;;;;;;GAOG;AACH,MAAM,UAAU,2BAA2B,CACzC,IAAwB,EACxB,MAAgC,EAChC,QAAgB;IAEhB,MAAM,KAAK,GAAG,yBAAyB,CAAC,QAAQ,CAAC,CAAC;IAElD,IAAI,CAAC,MAAM,CAAC,0BAA0B,CAAC,kBAAkB,EAAE,CAAC;QAC1D,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;IAED,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAElC,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,MAAM,IAAI,gCAAgC,CACxC,iCAAiC,CAClC,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,wBAAwB,CAAC,IAAoB;IAC3D,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;QAClB,MAAM,IAAI,gCAAgC,CAAC,mBAAmB,CAAC,CAAC;IAClE,CAAC;AACH,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,0BAA0B,CAAC,IAAoB;IAC7D,IAAI,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC;QAC9B,MAAM,IAAI,mCAAmC,CAAC,wBAAwB,CAAC,CAAC;IAC1E,CAAC;AACH,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,uBAAuB,CACrC,IAAoB,EACpB,QAAgB;IAEhB,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAE/B,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,CAAC;QAChC,MAAM,IAAI,gCAAgC,CACxC,iCAAiC,CAClC,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -1,23 +1,14 @@
|
|
|
1
1
|
import type { SimClock } from "../../../../util/clock/sim-clock.js";
|
|
2
2
|
import type { SimCognitoUserPool } from "../sim-cognito-user-pool.js";
|
|
3
|
-
import { type SimCognitoTokenValidityInput } from "./sim-cognito-token-validity.js";
|
|
4
|
-
import { type SimCognitoUnsimulatedClientSettingsType } from "./sim-cognito-unsimulated-client-settings.js";
|
|
5
3
|
import { SimCognitoUserPoolClient } from "./sim-cognito-user-pool-client.js";
|
|
4
|
+
import type { SimCognitoUserPoolClientSettings } from "./sim-cognito-user-pool-client-settings.js";
|
|
6
5
|
interface SimCognitoUserPoolClientFactoryProperties {
|
|
7
6
|
readonly clock: SimClock;
|
|
8
7
|
}
|
|
9
8
|
interface SimCognitoMakeUserPoolClientProperties {
|
|
10
9
|
readonly pool: SimCognitoUserPool;
|
|
11
|
-
readonly name: string | undefined;
|
|
12
10
|
readonly generateSecret?: boolean | undefined;
|
|
13
|
-
readonly
|
|
14
|
-
readonly preventUserExistenceErrors?: string | undefined;
|
|
15
|
-
readonly tokenValidity: SimCognitoTokenValidityInput;
|
|
16
|
-
/**
|
|
17
|
-
* The settings the request set that this simulation accepts without acting
|
|
18
|
-
* on, which a described client reports back.
|
|
19
|
-
*/
|
|
20
|
-
readonly unsimulatedSettings?: SimCognitoUnsimulatedClientSettingsType | undefined;
|
|
11
|
+
readonly settings: SimCognitoUserPoolClientSettings;
|
|
21
12
|
}
|
|
22
13
|
/**
|
|
23
14
|
* Builds simulated app clients, including their id and their secret.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-user-pool-client-factory.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-user-pool-client-factory.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAE7E,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,4CAA4C,CAAC;AAEnG,UAAU,yCAAyC;IACjD,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;CAC1B;AAED,UAAU,sCAAsC;IAC9C,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAClC,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,QAAQ,EAAE,gCAAgC,CAAC;CACrD;AAED;;GAEG;AACH,qBAAa,+BAA+B;IAC1C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAW;IAEjC,YAAY,UAAU,EAAE,yCAAyC,EAEhE;IAED;;;;;;OAMG;IACH,IAAI,CACF,UAAU,EAAE,sCAAsC,GACjD,wBAAwB,CAU1B;IAED,OAAO,CAAC,SAAS;CAOlB"}
|