@kensio/yulin 0.42.0 → 0.44.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 +1 -0
- package/dist/sdk/router/resolve-sim-sdk-command-router.d.ts.map +1 -1
- package/dist/sdk/router/resolve-sim-sdk-command-router.js +3 -0
- package/dist/sdk/router/resolve-sim-sdk-command-router.js.map +1 -1
- package/dist/serve/controller/factory/sim-aws-service-controller-factory.d.ts.map +1 -1
- package/dist/serve/controller/factory/sim-aws-service-controller-factory.js +4 -0
- package/dist/serve/controller/factory/sim-aws-service-controller-factory.js.map +1 -1
- package/dist/serve/controller/sim-aws-service-signing-name.d.ts.map +1 -1
- package/dist/serve/controller/sim-aws-service-signing-name.js +3 -0
- package/dist/serve/controller/sim-aws-service-signing-name.js.map +1 -1
- package/dist/serve/controller/sim-service-controller.d.ts +1 -1
- package/dist/serve/controller/sim-service-controller.d.ts.map +1 -1
- package/dist/serve/controller/sim-service-controller.js.map +1 -1
- package/dist/serve/http/url/sim-aws-local-url.d.ts.map +1 -1
- package/dist/serve/http/url/sim-aws-local-url.js +1 -0
- package/dist/serve/http/url/sim-aws-local-url.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts +112 -0
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts.map +1 -0
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js +196 -0
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -0
- package/dist/service/aws/factory/sim-aws-account-service-cache.d.ts +2 -1
- package/dist/service/aws/factory/sim-aws-account-service-cache.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-service-cache.js +2 -1
- package/dist/service/aws/factory/sim-aws-account-service-cache.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-request-auth-wiring.d.ts +45 -0
- package/dist/service/aws/factory/sim-aws-request-auth-wiring.d.ts.map +1 -0
- package/dist/service/aws/factory/sim-aws-request-auth-wiring.js +51 -0
- package/dist/service/aws/factory/sim-aws-request-auth-wiring.js.map +1 -0
- package/dist/service/aws/factory/sim-aws-scoped-service-registries.d.ts +7 -0
- package/dist/service/aws/factory/sim-aws-scoped-service-registries.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-scoped-service-registries.js +7 -0
- package/dist/service/aws/factory/sim-aws-scoped-service-registries.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-service-factory.d.ts +32 -74
- package/dist/service/aws/factory/sim-aws-service-factory.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-service-factory.js +46 -162
- package/dist/service/aws/factory/sim-aws-service-factory.js.map +1 -1
- package/dist/service/aws/sim-aws-account-region-scope.d.ts +5 -0
- package/dist/service/aws/sim-aws-account-region-scope.d.ts.map +1 -1
- package/dist/service/aws/sim-aws-account-region-scope.factory.d.ts +1 -1
- package/dist/service/aws/sim-aws-account-region-scope.factory.d.ts.map +1 -1
- package/dist/service/aws/sim-aws-account-region-scope.js +6 -0
- package/dist/service/aws/sim-aws-account-region-scope.js.map +1 -1
- package/dist/service/aws/sim-aws-request-authentication.d.ts +3 -3
- package/dist/service/aws/sim-aws-request-authentication.d.ts.map +1 -1
- package/dist/service/aws/sim-aws-request-authentication.js +4 -4
- package/dist/service/aws/sim-aws-request-authentication.js.map +1 -1
- package/dist/service/aws/sim-aws.d.ts +3 -0
- package/dist/service/aws/sim-aws.d.ts.map +1 -1
- package/dist/service/aws/sim-aws.js +5 -1
- package/dist/service/aws/sim-aws.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cff-cfn.factory.d.ts +1 -1
- package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cff-cfn.factory.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-cfn-value-adapter.d.ts +6 -0
- package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-cfn-value-adapter.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-cfn-value-adapter.js +25 -0
- package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-cfn-value-adapter.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-user-pool-cfn.d.ts +30 -0
- package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-user-pool-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-user-pool-cfn.js +45 -0
- package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-user-pool-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-user-pool-client-cfn.d.ts +30 -0
- package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-user-pool-client-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-user-pool-client-cfn.js +32 -0
- package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-user-pool-client-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-user-pool-group-cfn.d.ts +25 -0
- package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-user-pool-group-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-user-pool-group-cfn.js +24 -0
- package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-user-pool-group-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-cfn-value-adapter.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-cfn-value-adapter.js +8 -0
- package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-cfn-value-adapter.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-event-source-mapping-cfn.d.ts +28 -0
- package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-event-source-mapping-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-event-source-mapping-cfn.js +33 -0
- package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-event-source-mapping-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-resource-value-adapter.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/cfn/sim-cfn-resource-value-adapter.js +4 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-resource-value-adapter.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/sqs/sim-sqs-cfn-value-adapter.d.ts +6 -0
- package/dist/service/cloudformation/resource/cfn/sqs/sim-sqs-cfn-value-adapter.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/sqs/sim-sqs-cfn-value-adapter.js +13 -0
- package/dist/service/cloudformation/resource/cfn/sqs/sim-sqs-cfn-value-adapter.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/sqs/sim-sqs-queue-cfn.d.ts +28 -0
- package/dist/service/cloudformation/resource/cfn/sqs/sim-sqs-queue-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/sqs/sim-sqs-queue-cfn.js +40 -0
- package/dist/service/cloudformation/resource/cfn/sqs/sim-sqs-queue-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-resolver.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-resolver.js +6 -0
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-resolver.js.map +1 -1
- package/dist/service/cloudformation/resource/sim-cfn-resource.d.ts +3 -0
- package/dist/service/cloudformation/resource/sim-cfn-resource.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/sim-cfn-resource.factory.d.ts +1 -1
- package/dist/service/cloudformation/resource/sim-cfn-resource.factory.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/sim-cfn-resource.js +4 -1
- package/dist/service/cloudformation/resource/sim-cfn-resource.js.map +1 -1
- package/dist/service/cloudformation/stack/resource-map/sim-cfn-stack-resource-map.d.ts.map +1 -1
- package/dist/service/cloudformation/stack/resource-map/sim-cfn-stack-resource-map.js +1 -0
- package/dist/service/cloudformation/stack/resource-map/sim-cfn-stack-resource-map.js.map +1 -1
- package/dist/service/cloudfront/distribution/sim-cf-distro-config.factory.d.ts +1 -1
- package/dist/service/cloudfront/distribution/sim-cf-distro-config.factory.d.ts.map +1 -1
- package/dist/service/cloudfront/factory/cloudfront-functions.factory.d.ts +4 -4
- package/dist/service/cloudfront/factory/cloudfront-functions.factory.d.ts.map +1 -1
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-creator.d.ts +25 -0
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-creator.d.ts.map +1 -0
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-creator.js +36 -0
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-creator.js.map +1 -0
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.d.ts +35 -0
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.d.ts.map +1 -0
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js +88 -0
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js.map +1 -0
- package/dist/service/cognito/cfn/group/sim-cfn-cognito-group-creator.d.ts +24 -0
- package/dist/service/cognito/cfn/group/sim-cfn-cognito-group-creator.d.ts.map +1 -0
- package/dist/service/cognito/cfn/group/sim-cfn-cognito-group-creator.js +34 -0
- package/dist/service/cognito/cfn/group/sim-cfn-cognito-group-creator.js.map +1 -0
- package/dist/service/cognito/cfn/group/sim-cfn-cognito-group-properties.d.ts +32 -0
- package/dist/service/cognito/cfn/group/sim-cfn-cognito-group-properties.d.ts.map +1 -0
- package/dist/service/cognito/cfn/group/sim-cfn-cognito-group-properties.js +55 -0
- package/dist/service/cognito/cfn/group/sim-cfn-cognito-group-properties.js.map +1 -0
- package/dist/service/cognito/cfn/sim-cfn-cognito-property-parser.d.ts +52 -0
- package/dist/service/cognito/cfn/sim-cfn-cognito-property-parser.d.ts.map +1 -0
- package/dist/service/cognito/cfn/sim-cfn-cognito-property-parser.js +77 -0
- package/dist/service/cognito/cfn/sim-cfn-cognito-property-parser.js.map +1 -0
- package/dist/service/cognito/cfn/sim-cfn-cognito-resource-factory.d.ts +25 -0
- package/dist/service/cognito/cfn/sim-cfn-cognito-resource-factory.d.ts.map +1 -0
- package/dist/service/cognito/cfn/sim-cfn-cognito-resource-factory.js +42 -0
- package/dist/service/cognito/cfn/sim-cfn-cognito-resource-factory.js.map +1 -0
- package/dist/service/cognito/cfn/sim-cfn-cognito-value-parser.d.ts +51 -0
- package/dist/service/cognito/cfn/sim-cfn-cognito-value-parser.d.ts.map +1 -0
- package/dist/service/cognito/cfn/sim-cfn-cognito-value-parser.js +87 -0
- package/dist/service/cognito/cfn/sim-cfn-cognito-value-parser.js.map +1 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-password-policy.d.ts +28 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-password-policy.d.ts.map +1 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-password-policy.js +53 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-password-policy.js.map +1 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-policies.d.ts +27 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-policies.d.ts.map +1 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-policies.js +41 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-policies.js.map +1 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.d.ts +25 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.d.ts.map +1 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.js +32 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.js.map +1 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-creator.d.ts +26 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-creator.d.ts.map +1 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-creator.js +33 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-creator.js.map +1 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.d.ts +31 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.d.ts.map +1 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js +60 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js.map +1 -0
- package/dist/service/cognito/command/auth/auth.command.d.ts +162 -0
- package/dist/service/cognito/command/auth/auth.command.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/auth.command.js +2 -0
- package/dist/service/cognito/command/auth/auth.command.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-admin-initiate-auth.d.ts +32 -0
- package/dist/service/cognito/command/auth/sim-cognito-admin-initiate-auth.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-admin-initiate-auth.js +37 -0
- package/dist/service/cognito/command/auth/sim-cognito-admin-initiate-auth.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-admin-respond-to-challenge.d.ts +29 -0
- package/dist/service/cognito/command/auth/sim-cognito-admin-respond-to-challenge.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-admin-respond-to-challenge.js +34 -0
- package/dist/service/cognito/command/auth/sim-cognito-admin-respond-to-challenge.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-challenge.d.ts +12 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-challenge.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-challenge.js +20 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-challenge.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts +31 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js +63 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.d.ts +26 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.js +25 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-flow.d.ts +42 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-flow.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-flow.js +52 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-flow.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-flows.d.ts +48 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-flows.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-flows.js +79 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-flows.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-parameters.d.ts +21 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-parameters.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-parameters.js +33 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-parameters.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-resolver.d.ts +61 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-resolver.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-resolver.js +56 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-resolver.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-authentication-result.d.ts +17 -0
- package/dist/service/cognito/command/auth/sim-cognito-authentication-result.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-authentication-result.js +26 -0
- package/dist/service/cognito/command/auth/sim-cognito-authentication-result.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-initiate-auth.d.ts +27 -0
- package/dist/service/cognito/command/auth/sim-cognito-initiate-auth.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-initiate-auth.js +36 -0
- package/dist/service/cognito/command/auth/sim-cognito-initiate-auth.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.d.ts +28 -0
- package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.js +39 -0
- package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-new-password-response.d.ts +39 -0
- package/dist/service/cognito/command/auth/sim-cognito-new-password-response.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-new-password-response.js +47 -0
- package/dist/service/cognito/command/auth/sim-cognito-new-password-response.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.d.ts +42 -0
- package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js +39 -0
- package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.d.ts +28 -0
- package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.js +42 -0
- package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-respond-to-challenge.d.ts +26 -0
- package/dist/service/cognito/command/auth/sim-cognito-respond-to-challenge.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-respond-to-challenge.js +35 -0
- package/dist/service/cognito/command/auth/sim-cognito-respond-to-challenge.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-sign-out.d.ts +39 -0
- package/dist/service/cognito/command/auth/sim-cognito-sign-out.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-sign-out.js +42 -0
- package/dist/service/cognito/command/auth/sim-cognito-sign-out.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.d.ts +37 -0
- package/dist/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.js +54 -0
- package/dist/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.js.map +1 -0
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.d.ts.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.js +0 -1
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.js.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-commands.js +1 -0
- 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 -1
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.d.ts.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.js +3 -1
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.js.map +1 -1
- package/dist/service/cognito/command/client/user-pool-client.command.d.ts +1 -0
- package/dist/service/cognito/command/client/user-pool-client.command.d.ts.map +1 -1
- package/dist/service/cognito/command/group/group-membership.command.d.ts +70 -0
- package/dist/service/cognito/command/group/group-membership.command.d.ts.map +1 -0
- package/dist/service/cognito/command/group/group-membership.command.js +2 -0
- package/dist/service/cognito/command/group/group-membership.command.js.map +1 -0
- package/dist/service/cognito/command/group/group.command.d.ts +102 -0
- package/dist/service/cognito/command/group/group.command.d.ts.map +1 -0
- package/dist/service/cognito/command/group/group.command.js +2 -0
- package/dist/service/cognito/command/group/group.command.js.map +1 -0
- package/dist/service/cognito/command/group/sim-cognito-group-commands.d.ts +51 -0
- package/dist/service/cognito/command/group/sim-cognito-group-commands.d.ts.map +1 -0
- package/dist/service/cognito/command/group/sim-cognito-group-commands.js +67 -0
- package/dist/service/cognito/command/group/sim-cognito-group-commands.js.map +1 -0
- package/dist/service/cognito/command/group/sim-cognito-group-membership-commands.d.ts +46 -0
- package/dist/service/cognito/command/group/sim-cognito-group-membership-commands.d.ts.map +1 -0
- package/dist/service/cognito/command/group/sim-cognito-group-membership-commands.js +80 -0
- package/dist/service/cognito/command/group/sim-cognito-group-membership-commands.js.map +1 -0
- package/dist/service/cognito/command/group/sim-cognito-group-view.d.ts +18 -0
- package/dist/service/cognito/command/group/sim-cognito-group-view.d.ts.map +1 -0
- package/dist/service/cognito/command/group/sim-cognito-group-view.js +26 -0
- package/dist/service/cognito/command/group/sim-cognito-group-view.js.map +1 -0
- package/dist/service/cognito/command/group/sim-cognito-list-groups.d.ts +27 -0
- package/dist/service/cognito/command/group/sim-cognito-list-groups.d.ts.map +1 -0
- package/dist/service/cognito/command/group/sim-cognito-list-groups.js +38 -0
- package/dist/service/cognito/command/group/sim-cognito-list-groups.js.map +1 -0
- package/dist/service/cognito/command/sim-cognito-command.types.d.ts +5 -0
- package/dist/service/cognito/command/sim-cognito-command.types.d.ts.map +1 -1
- package/dist/service/cognito/command/sim-cognito-commands.d.ts +44 -0
- package/dist/service/cognito/command/sim-cognito-commands.d.ts.map +1 -0
- package/dist/service/cognito/command/sim-cognito-commands.js +72 -0
- package/dist/service/cognito/command/sim-cognito-commands.js.map +1 -0
- package/dist/service/cognito/command/sim-cognito-page.d.ts +12 -2
- package/dist/service/cognito/command/sim-cognito-page.d.ts.map +1 -1
- package/dist/service/cognito/command/sim-cognito-page.js +8 -8
- package/dist/service/cognito/command/sim-cognito-page.js.map +1 -1
- package/dist/service/cognito/command/sim-cognito-request-resolver.d.ts +86 -0
- package/dist/service/cognito/command/sim-cognito-request-resolver.d.ts.map +1 -0
- package/dist/service/cognito/command/sim-cognito-request-resolver.js +74 -0
- package/dist/service/cognito/command/sim-cognito-request-resolver.js.map +1 -0
- package/dist/service/cognito/command/user/list-users.command.d.ts +30 -0
- package/dist/service/cognito/command/user/list-users.command.d.ts.map +1 -0
- package/dist/service/cognito/command/user/list-users.command.js +2 -0
- package/dist/service/cognito/command/user/list-users.command.js.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-list-users.d.ts +30 -0
- package/dist/service/cognito/command/user/sim-cognito-list-users.d.ts.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-list-users.js +46 -0
- package/dist/service/cognito/command/user/sim-cognito-list-users.js.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-unsimulated-user-options.d.ts +35 -0
- package/dist/service/cognito/command/user/sim-cognito-unsimulated-user-options.d.ts.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-unsimulated-user-options.js +45 -0
- package/dist/service/cognito/command/user/sim-cognito-unsimulated-user-options.js.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-user-commands.d.ts +53 -0
- package/dist/service/cognito/command/user/sim-cognito-user-commands.d.ts.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-user-commands.js +72 -0
- package/dist/service/cognito/command/user/sim-cognito-user-commands.js.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-user-update-commands.d.ts +47 -0
- package/dist/service/cognito/command/user/sim-cognito-user-update-commands.d.ts.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-user-update-commands.js +63 -0
- package/dist/service/cognito/command/user/sim-cognito-user-update-commands.js.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-user-view.d.ts +21 -0
- package/dist/service/cognito/command/user/sim-cognito-user-view.d.ts.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-user-view.js +37 -0
- package/dist/service/cognito/command/user/sim-cognito-user-view.js.map +1 -0
- package/dist/service/cognito/command/user/user.command.d.ts +135 -0
- package/dist/service/cognito/command/user/user.command.d.ts.map +1 -0
- package/dist/service/cognito/command/user/user.command.js +2 -0
- package/dist/service/cognito/command/user/user.command.js.map +1 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts +4 -3
- 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 +5 -4
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js.map +1 -1
- package/dist/service/cognito/error/sim-cognito.error.d.ts +51 -0
- package/dist/service/cognito/error/sim-cognito.error.d.ts.map +1 -1
- package/dist/service/cognito/error/sim-cognito.error.js +61 -0
- package/dist/service/cognito/error/sim-cognito.error.js.map +1 -1
- package/dist/service/cognito/index.d.ts +16 -1
- package/dist/service/cognito/index.d.ts.map +1 -1
- package/dist/service/cognito/index.js +14 -1
- package/dist/service/cognito/index.js.map +1 -1
- package/dist/service/cognito/registry/sim-cognito-user-pool-registry.d.ts +31 -0
- package/dist/service/cognito/registry/sim-cognito-user-pool-registry.d.ts.map +1 -0
- package/dist/service/cognito/registry/sim-cognito-user-pool-registry.js +38 -0
- package/dist/service/cognito/registry/sim-cognito-user-pool-registry.js.map +1 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-auth-routes.d.ts +11 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-auth-routes.d.ts.map +1 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-auth-routes.js +37 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-auth-routes.js.map +1 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.d.ts +5 -1
- 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 +10 -33
- package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.js.map +1 -1
- package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.d.ts +7 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.d.ts.map +1 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.js +77 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.js.map +1 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-pool-routes.d.ts +7 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-pool-routes.d.ts.map +1 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-pool-routes.js +41 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-pool-routes.js.map +1 -0
- package/dist/service/cognito/serve/sim-cognito-controller.d.ts +40 -0
- package/dist/service/cognito/serve/sim-cognito-controller.d.ts.map +1 -0
- package/dist/service/cognito/serve/sim-cognito-controller.js +91 -0
- package/dist/service/cognito/serve/sim-cognito-controller.js.map +1 -0
- package/dist/service/cognito/serve/sim-cognito-endpoint-response.d.ts +32 -0
- package/dist/service/cognito/serve/sim-cognito-endpoint-response.d.ts.map +1 -0
- package/dist/service/cognito/serve/sim-cognito-endpoint-response.js +51 -0
- package/dist/service/cognito/serve/sim-cognito-endpoint-response.js.map +1 -0
- package/dist/service/cognito/serve/sim-cognito-openid-configuration.d.ts +36 -0
- package/dist/service/cognito/serve/sim-cognito-openid-configuration.d.ts.map +1 -0
- package/dist/service/cognito/serve/sim-cognito-openid-configuration.js +36 -0
- package/dist/service/cognito/serve/sim-cognito-openid-configuration.js.map +1 -0
- package/dist/service/cognito/sim-cognito-authentication.d.ts +59 -0
- package/dist/service/cognito/sim-cognito-authentication.d.ts.map +1 -0
- package/dist/service/cognito/sim-cognito-authentication.js +68 -0
- package/dist/service/cognito/sim-cognito-authentication.js.map +1 -0
- package/dist/service/cognito/sim-cognito-identity-provider.d.ts +32 -11
- package/dist/service/cognito/sim-cognito-identity-provider.d.ts.map +1 -1
- package/dist/service/cognito/sim-cognito-identity-provider.js +57 -43
- package/dist/service/cognito/sim-cognito-identity-provider.js.map +1 -1
- package/dist/service/cognito/sim-cognito-user-directory.d.ts +91 -0
- package/dist/service/cognito/sim-cognito-user-directory.d.ts.map +1 -0
- package/dist/service/cognito/sim-cognito-user-directory.js +136 -0
- package/dist/service/cognito/sim-cognito-user-directory.js.map +1 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session-store.d.ts +45 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session-store.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session-store.js +60 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session-store.js.map +1 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.d.ts +31 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.js +45 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.js.map +1 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.d.ts +59 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.js +81 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.js.map +1 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.d.ts +37 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.js +39 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.js.map +1 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.d.ts +49 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.js +63 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.js.map +1 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-secret-hash.d.ts +17 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-secret-hash.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-secret-hash.js +34 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-secret-hash.js.map +1 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.d.ts +31 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.js +49 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.js.map +1 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-prevent-user-existence-errors.d.ts +24 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-prevent-user-existence-errors.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-prevent-user-existence-errors.js +46 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-prevent-user-existence-errors.js.map +1 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.d.ts +1 -0
- 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 -0
- 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.d.ts +3 -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 +2 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.js.map +1 -1
- package/dist/service/cognito/user-pool/group/sim-cognito-group-factory.d.ts +26 -0
- package/dist/service/cognito/user-pool/group/sim-cognito-group-factory.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/group/sim-cognito-group-factory.js +22 -0
- package/dist/service/cognito/user-pool/group/sim-cognito-group-factory.js.map +1 -0
- package/dist/service/cognito/user-pool/group/sim-cognito-group-name.d.ts +10 -0
- package/dist/service/cognito/user-pool/group/sim-cognito-group-name.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/group/sim-cognito-group-name.js +15 -0
- package/dist/service/cognito/user-pool/group/sim-cognito-group-name.js.map +1 -0
- package/dist/service/cognito/user-pool/group/sim-cognito-group-settings.d.ts +33 -0
- package/dist/service/cognito/user-pool/group/sim-cognito-group-settings.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/group/sim-cognito-group-settings.js +68 -0
- package/dist/service/cognito/user-pool/group/sim-cognito-group-settings.js.map +1 -0
- package/dist/service/cognito/user-pool/group/sim-cognito-group-store.d.ts +45 -0
- package/dist/service/cognito/user-pool/group/sim-cognito-group-store.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/group/sim-cognito-group-store.js +77 -0
- package/dist/service/cognito/user-pool/group/sim-cognito-group-store.js.map +1 -0
- package/dist/service/cognito/user-pool/group/sim-cognito-group.d.ts +77 -0
- package/dist/service/cognito/user-pool/group/sim-cognito-group.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/group/sim-cognito-group.js +90 -0
- package/dist/service/cognito/user-pool/group/sim-cognito-group.js.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-identifier.d.ts +26 -0
- package/dist/service/cognito/user-pool/sim-cognito-identifier.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-identifier.js +34 -0
- package/dist/service/cognito/user-pool/sim-cognito-identifier.js.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-password-check.d.ts +24 -0
- package/dist/service/cognito/user-pool/sim-cognito-password-check.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-password-check.js +73 -0
- package/dist/service/cognito/user-pool/sim-cognito-password-check.js.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-store.d.ts +50 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-store.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-store.js +56 -2
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-store.js.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool.d.ts +98 -0
- 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 +132 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool.js.map +1 -1
- package/dist/service/cognito/user-pool/token/sim-cognito-access-token.d.ts +18 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-access-token.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-access-token.js +40 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-access-token.js.map +1 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-id-token.d.ts +26 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-id-token.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-id-token.js +42 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-id-token.js.map +1 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-signing-key.d.ts +64 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-signing-key.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-signing-key.js +91 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-signing-key.js.map +1 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-token-claims.d.ts +37 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-token-claims.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-token-claims.js +41 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-token-claims.js.map +1 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.d.ts +62 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.js +95 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.js.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.d.ts +44 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.js +105 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.js.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.d.ts +34 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.js +36 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.js.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-password.d.ts +17 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-password.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-password.js +21 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-password.js.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-status.d.ts +39 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-status.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-status.js +47 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-status.js.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-store.d.ts +46 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-store.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-store.js +73 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-store.js.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts +98 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user.js +122 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user.js.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-username.d.ts +10 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-username.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-username.js +12 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-username.js.map +1 -0
- package/dist/service/iam/policy/sim-iam-policy-document.factory.d.ts +43 -0
- package/dist/service/iam/policy/sim-iam-policy-document.factory.d.ts.map +1 -0
- package/dist/service/iam/policy/sim-iam-policy-document.factory.js +46 -0
- package/dist/service/iam/policy/sim-iam-policy-document.factory.js.map +1 -0
- package/dist/service/iam/policy/sim-iam-policy.factory.d.ts +1 -1
- package/dist/service/iam/policy/sim-iam-policy.factory.d.ts.map +1 -1
- package/dist/service/iam/role/sim-iam-role.factory.d.ts +1 -1
- package/dist/service/iam/role/sim-iam-role.factory.d.ts.map +1 -1
- package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-creator.d.ts +26 -0
- package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-creator.d.ts.map +1 -0
- package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-creator.js +33 -0
- package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-creator.js.map +1 -0
- package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-properties.d.ts +28 -0
- package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-properties.d.ts.map +1 -0
- package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-properties.js +38 -0
- package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-properties.js.map +1 -0
- package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-property-rules.d.ts +17 -0
- package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-property-rules.d.ts.map +1 -0
- package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-property-rules.js +71 -0
- package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-property-rules.js.map +1 -0
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-property-parser.d.ts +4 -0
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-property-parser.d.ts.map +1 -1
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-property-parser.js +12 -0
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-property-parser.js.map +1 -1
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-target-function.d.ts +5 -6
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-target-function.d.ts.map +1 -1
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-target-function.js +7 -13
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-target-function.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/command/event-source-mapping/create-event-source-mapping-input.d.ts +25 -0
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.d.ts.map +1 -0
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.js +55 -0
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.js.map +1 -0
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-refusals.d.ts +6 -0
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-refusals.d.ts.map +1 -0
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-refusals.js +64 -0
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-refusals.js.map +1 -0
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-values.d.ts +17 -0
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-values.d.ts.map +1 -0
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-values.js +47 -0
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-values.js.map +1 -0
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping.handler.d.ts +53 -0
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping.handler.js +77 -0
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping.handler.js.map +1 -0
- package/dist/service/lambda/command/event-source-mapping/event-source-mapping-access.d.ts +41 -0
- package/dist/service/lambda/command/event-source-mapping/event-source-mapping-access.d.ts.map +1 -0
- package/dist/service/lambda/command/event-source-mapping/event-source-mapping-access.js +51 -0
- package/dist/service/lambda/command/event-source-mapping/event-source-mapping-access.js.map +1 -0
- package/dist/service/lambda/command/event-source-mapping/event-source-mapping.command.d.ts +91 -0
- package/dist/service/lambda/command/event-source-mapping/event-source-mapping.command.d.ts.map +1 -0
- package/dist/service/lambda/command/event-source-mapping/event-source-mapping.command.js +8 -0
- package/dist/service/lambda/command/event-source-mapping/event-source-mapping.command.js.map +1 -0
- package/dist/service/lambda/command/event-source-mapping/sim-lambda-event-source-mapping-commands.d.ts +60 -0
- package/dist/service/lambda/command/event-source-mapping/sim-lambda-event-source-mapping-commands.d.ts.map +1 -0
- package/dist/service/lambda/command/event-source-mapping/sim-lambda-event-source-mapping-commands.js +89 -0
- package/dist/service/lambda/command/event-source-mapping/sim-lambda-event-source-mapping-commands.js.map +1 -0
- package/dist/service/lambda/command/sim-lambda-command.types.d.ts +1 -0
- package/dist/service/lambda/command/sim-lambda-command.types.d.ts.map +1 -1
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-delivery.d.ts +27 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-delivery.d.ts.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-delivery.js +32 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-delivery.js.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poll-schedule.d.ts +40 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poll-schedule.d.ts.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poll-schedule.js +55 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poll-schedule.js.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poller.d.ts +85 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poller.d.ts.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poller.js +136 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poller.js.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-batch-response.d.ts +49 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-batch-response.d.ts.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-batch-response.js +97 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-batch-response.js.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-event.d.ts +56 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-event.d.ts.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-event.js +55 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-event.js.map +1 -0
- package/dist/service/lambda/event-source/queue/sim-lambda-event-source-queue-service.d.ts +49 -0
- package/dist/service/lambda/event-source/queue/sim-lambda-event-source-queue-service.d.ts.map +1 -0
- package/dist/service/lambda/event-source/queue/sim-lambda-event-source-queue-service.js +2 -0
- package/dist/service/lambda/event-source/queue/sim-lambda-event-source-queue-service.js.map +1 -0
- package/dist/service/lambda/event-source/queue/sim-lambda-event-source-queues.d.ts +118 -0
- package/dist/service/lambda/event-source/queue/sim-lambda-event-source-queues.d.ts.map +1 -0
- package/dist/service/lambda/event-source/queue/sim-lambda-event-source-queues.js +49 -0
- package/dist/service/lambda/event-source/queue/sim-lambda-event-source-queues.js.map +1 -0
- package/dist/service/lambda/event-source/queue/sim-lambda-sqs-event-source-arn.d.ts +32 -0
- package/dist/service/lambda/event-source/queue/sim-lambda-sqs-event-source-arn.d.ts.map +1 -0
- package/dist/service/lambda/event-source/queue/sim-lambda-sqs-event-source-arn.js +52 -0
- package/dist/service/lambda/event-source/queue/sim-lambda-sqs-event-source-arn.js.map +1 -0
- package/dist/service/lambda/event-source/queue/sim-sqs-event-source-queue-attributes.d.ts +29 -0
- package/dist/service/lambda/event-source/queue/sim-sqs-event-source-queue-attributes.d.ts.map +1 -0
- package/dist/service/lambda/event-source/queue/sim-sqs-event-source-queue-attributes.js +49 -0
- package/dist/service/lambda/event-source/queue/sim-sqs-event-source-queue-attributes.js.map +1 -0
- package/dist/service/lambda/event-source/queue/sim-sqs-event-source-queues.d.ts +57 -0
- package/dist/service/lambda/event-source/queue/sim-sqs-event-source-queues.d.ts.map +1 -0
- package/dist/service/lambda/event-source/queue/sim-sqs-event-source-queues.js +89 -0
- package/dist/service/lambda/event-source/queue/sim-sqs-event-source-queues.js.map +1 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-mapping-store.d.ts +46 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-mapping-store.d.ts.map +1 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-mapping-store.js +57 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-mapping-store.js.map +1 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.d.ts +101 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.d.ts.map +1 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.js +93 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.js.map +1 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-pollers.d.ts +37 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-pollers.d.ts.map +1 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-pollers.js +44 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-pollers.js.map +1 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-role-permissions.d.ts +23 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-role-permissions.d.ts.map +1 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-role-permissions.js +46 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-role-permissions.js.map +1 -0
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-function.factory.d.ts +31 -0
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-function.factory.d.ts.map +1 -0
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-function.factory.js +45 -0
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-function.factory.js.map +1 -0
- package/dist/service/lambda/function/environment/sim-lambda-environment.factory.d.ts +20 -0
- package/dist/service/lambda/function/environment/sim-lambda-environment.factory.d.ts.map +1 -0
- package/dist/service/lambda/function/environment/sim-lambda-environment.factory.js +17 -0
- package/dist/service/lambda/function/environment/sim-lambda-environment.factory.js.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function-name.d.ts +10 -0
- package/dist/service/lambda/function/sim-lambda-function-name.d.ts.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function-name.js +18 -0
- package/dist/service/lambda/function/sim-lambda-function-name.js.map +1 -0
- package/dist/service/lambda/function/url/sim-lambda-function-lookup.d.ts +4 -0
- package/dist/service/lambda/function/url/sim-lambda-function-lookup.d.ts.map +1 -1
- package/dist/service/lambda/function/url/sim-lambda-function-lookup.js +6 -0
- package/dist/service/lambda/function/url/sim-lambda-function-lookup.js.map +1 -1
- package/dist/service/lambda/function/url/sim-lambda-function-url.factory.d.ts +20 -0
- package/dist/service/lambda/function/url/sim-lambda-function-url.factory.d.ts.map +1 -0
- package/dist/service/lambda/function/url/sim-lambda-function-url.factory.js +23 -0
- package/dist/service/lambda/function/url/sim-lambda-function-url.factory.js.map +1 -0
- package/dist/service/lambda/index.d.ts +1 -0
- package/dist/service/lambda/index.d.ts.map +1 -1
- 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 +16 -0
- package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.js.map +1 -1
- package/dist/service/lambda/sim-lambda-commands.d.ts +51 -0
- package/dist/service/lambda/sim-lambda-commands.d.ts.map +1 -0
- package/dist/service/lambda/sim-lambda-commands.js +84 -0
- package/dist/service/lambda/sim-lambda-commands.js.map +1 -0
- package/dist/service/lambda/sim-lambda.d.ts +35 -39
- package/dist/service/lambda/sim-lambda.d.ts.map +1 -1
- package/dist/service/lambda/sim-lambda.js +47 -65
- package/dist/service/lambda/sim-lambda.js.map +1 -1
- package/dist/service/route53/resolve/sim-r53-s3-service-target.d.ts +40 -0
- package/dist/service/route53/resolve/sim-r53-s3-service-target.d.ts.map +1 -0
- package/dist/service/route53/resolve/sim-r53-s3-service-target.js +85 -0
- package/dist/service/route53/resolve/sim-r53-s3-service-target.js.map +1 -0
- package/dist/service/route53/resolve/sim-r53-service-target-resolver.d.ts +14 -25
- package/dist/service/route53/resolve/sim-r53-service-target-resolver.d.ts.map +1 -1
- package/dist/service/route53/resolve/sim-r53-service-target-resolver.js +37 -72
- package/dist/service/route53/resolve/sim-r53-service-target-resolver.js.map +1 -1
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-creator.d.ts +25 -0
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-creator.d.ts.map +1 -0
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-creator.js +33 -0
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-creator.js.map +1 -0
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-name.d.ts +45 -0
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-name.d.ts.map +1 -0
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-name.js +67 -0
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-name.js.map +1 -0
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-properties.d.ts +44 -0
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-properties.d.ts.map +1 -0
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-properties.js +72 -0
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-properties.js.map +1 -0
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-rules.d.ts +47 -0
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-rules.d.ts.map +1 -0
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-rules.js +122 -0
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-rules.js.map +1 -0
- package/dist/service/sqs/cfn/sim-sqs-cfn-resource-factory.d.ts +24 -0
- package/dist/service/sqs/cfn/sim-sqs-cfn-resource-factory.d.ts.map +1 -0
- package/dist/service/sqs/cfn/sim-sqs-cfn-resource-factory.js +29 -0
- package/dist/service/sqs/cfn/sim-sqs-cfn-resource-factory.js.map +1 -0
- package/dist/service/sqs/command/authorize/sim-sqs-authorizer.d.ts +41 -0
- package/dist/service/sqs/command/authorize/sim-sqs-authorizer.d.ts.map +1 -0
- package/dist/service/sqs/command/authorize/sim-sqs-authorizer.js +51 -0
- package/dist/service/sqs/command/authorize/sim-sqs-authorizer.js.map +1 -0
- package/dist/service/sqs/command/message/consume.command.d.ts +61 -0
- package/dist/service/sqs/command/message/consume.command.d.ts.map +1 -0
- package/dist/service/sqs/command/message/consume.command.js +2 -0
- package/dist/service/sqs/command/message/consume.command.js.map +1 -0
- package/dist/service/sqs/command/message/receive.command.d.ts +40 -0
- package/dist/service/sqs/command/message/receive.command.d.ts.map +1 -0
- package/dist/service/sqs/command/message/receive.command.js +2 -0
- package/dist/service/sqs/command/message/receive.command.js.map +1 -0
- package/dist/service/sqs/command/message/send.command.d.ts +80 -0
- package/dist/service/sqs/command/message/send.command.d.ts.map +1 -0
- package/dist/service/sqs/command/message/send.command.js +2 -0
- package/dist/service/sqs/command/message/send.command.js.map +1 -0
- package/dist/service/sqs/command/message/sim-sqs-batch-entries.d.ts +39 -0
- package/dist/service/sqs/command/message/sim-sqs-batch-entries.d.ts.map +1 -0
- package/dist/service/sqs/command/message/sim-sqs-batch-entries.js +67 -0
- package/dist/service/sqs/command/message/sim-sqs-batch-entries.js.map +1 -0
- package/dist/service/sqs/command/message/sim-sqs-change-message-visibility.d.ts +31 -0
- package/dist/service/sqs/command/message/sim-sqs-change-message-visibility.d.ts.map +1 -0
- package/dist/service/sqs/command/message/sim-sqs-change-message-visibility.js +51 -0
- package/dist/service/sqs/command/message/sim-sqs-change-message-visibility.js.map +1 -0
- package/dist/service/sqs/command/message/sim-sqs-delete-message-commands.d.ts +38 -0
- package/dist/service/sqs/command/message/sim-sqs-delete-message-commands.d.ts.map +1 -0
- package/dist/service/sqs/command/message/sim-sqs-delete-message-commands.js +58 -0
- package/dist/service/sqs/command/message/sim-sqs-delete-message-commands.js.map +1 -0
- package/dist/service/sqs/command/message/sim-sqs-message-handles.d.ts +28 -0
- package/dist/service/sqs/command/message/sim-sqs-message-handles.d.ts.map +1 -0
- package/dist/service/sqs/command/message/sim-sqs-message-handles.js +36 -0
- package/dist/service/sqs/command/message/sim-sqs-message-handles.js.map +1 -0
- package/dist/service/sqs/command/message/sim-sqs-receive-limits.d.ts +27 -0
- package/dist/service/sqs/command/message/sim-sqs-receive-limits.d.ts.map +1 -0
- package/dist/service/sqs/command/message/sim-sqs-receive-limits.js +70 -0
- package/dist/service/sqs/command/message/sim-sqs-receive-limits.js.map +1 -0
- package/dist/service/sqs/command/message/sim-sqs-receive-message.d.ts +32 -0
- package/dist/service/sqs/command/message/sim-sqs-receive-message.d.ts.map +1 -0
- package/dist/service/sqs/command/message/sim-sqs-receive-message.js +33 -0
- package/dist/service/sqs/command/message/sim-sqs-receive-message.js.map +1 -0
- package/dist/service/sqs/command/message/sim-sqs-receive-request.d.ts +33 -0
- package/dist/service/sqs/command/message/sim-sqs-receive-request.d.ts.map +1 -0
- package/dist/service/sqs/command/message/sim-sqs-receive-request.js +55 -0
- package/dist/service/sqs/command/message/sim-sqs-receive-request.js.map +1 -0
- package/dist/service/sqs/command/message/sim-sqs-received-message-view.d.ts +25 -0
- package/dist/service/sqs/command/message/sim-sqs-received-message-view.d.ts.map +1 -0
- package/dist/service/sqs/command/message/sim-sqs-received-message-view.js +38 -0
- package/dist/service/sqs/command/message/sim-sqs-received-message-view.js.map +1 -0
- package/dist/service/sqs/command/message/sim-sqs-send-message-commands.d.ts +32 -0
- package/dist/service/sqs/command/message/sim-sqs-send-message-commands.d.ts.map +1 -0
- package/dist/service/sqs/command/message/sim-sqs-send-message-commands.js +56 -0
- package/dist/service/sqs/command/message/sim-sqs-send-message-commands.js.map +1 -0
- package/dist/service/sqs/command/message/sim-sqs-sent-message.d.ts +18 -0
- package/dist/service/sqs/command/message/sim-sqs-sent-message.d.ts.map +1 -0
- package/dist/service/sqs/command/message/sim-sqs-sent-message.js +37 -0
- package/dist/service/sqs/command/message/sim-sqs-sent-message.js.map +1 -0
- package/dist/service/sqs/command/queue/queue.command.d.ts +114 -0
- package/dist/service/sqs/command/queue/queue.command.d.ts.map +1 -0
- package/dist/service/sqs/command/queue/queue.command.js +2 -0
- package/dist/service/sqs/command/queue/queue.command.js.map +1 -0
- package/dist/service/sqs/command/queue/sim-sqs-create-queue.d.ts +51 -0
- package/dist/service/sqs/command/queue/sim-sqs-create-queue.d.ts.map +1 -0
- package/dist/service/sqs/command/queue/sim-sqs-create-queue.js +70 -0
- package/dist/service/sqs/command/queue/sim-sqs-create-queue.js.map +1 -0
- package/dist/service/sqs/command/queue/sim-sqs-queue-access.d.ts +63 -0
- package/dist/service/sqs/command/queue/sim-sqs-queue-access.d.ts.map +1 -0
- package/dist/service/sqs/command/queue/sim-sqs-queue-access.js +98 -0
- package/dist/service/sqs/command/queue/sim-sqs-queue-access.js.map +1 -0
- package/dist/service/sqs/command/queue/sim-sqs-queue-attribute-commands.d.ts +45 -0
- package/dist/service/sqs/command/queue/sim-sqs-queue-attribute-commands.d.ts.map +1 -0
- package/dist/service/sqs/command/queue/sim-sqs-queue-attribute-commands.js +74 -0
- package/dist/service/sqs/command/queue/sim-sqs-queue-attribute-commands.js.map +1 -0
- package/dist/service/sqs/command/queue/sim-sqs-queue-commands.d.ts +47 -0
- package/dist/service/sqs/command/queue/sim-sqs-queue-commands.d.ts.map +1 -0
- package/dist/service/sqs/command/queue/sim-sqs-queue-commands.js +55 -0
- package/dist/service/sqs/command/queue/sim-sqs-queue-commands.js.map +1 -0
- package/dist/service/sqs/command/queue/sim-sqs-queue-page.d.ts +27 -0
- package/dist/service/sqs/command/queue/sim-sqs-queue-page.d.ts.map +1 -0
- package/dist/service/sqs/command/queue/sim-sqs-queue-page.js +54 -0
- package/dist/service/sqs/command/queue/sim-sqs-queue-page.js.map +1 -0
- package/dist/service/sqs/command/queue/sim-sqs-unsimulated-queue-input.d.ts +18 -0
- package/dist/service/sqs/command/queue/sim-sqs-unsimulated-queue-input.d.ts.map +1 -0
- package/dist/service/sqs/command/queue/sim-sqs-unsimulated-queue-input.js +27 -0
- package/dist/service/sqs/command/queue/sim-sqs-unsimulated-queue-input.js.map +1 -0
- package/dist/service/sqs/command/sim-sqs-command.types.d.ts +8 -0
- package/dist/service/sqs/command/sim-sqs-command.types.d.ts.map +1 -0
- package/dist/service/sqs/command/sim-sqs-command.types.js +2 -0
- package/dist/service/sqs/command/sim-sqs-command.types.js.map +1 -0
- package/dist/service/sqs/error/sim-sqs.error.d.ts +162 -0
- package/dist/service/sqs/error/sim-sqs.error.d.ts.map +1 -0
- package/dist/service/sqs/error/sim-sqs.error.js +191 -0
- package/dist/service/sqs/error/sim-sqs.error.js.map +1 -0
- package/dist/service/sqs/index.d.ts +14 -0
- package/dist/service/sqs/index.d.ts.map +1 -0
- package/dist/service/sqs/index.js +13 -0
- package/dist/service/sqs/index.js.map +1 -0
- package/dist/service/sqs/message/sim-sqs-message-attribute-payload.d.ts +56 -0
- package/dist/service/sqs/message/sim-sqs-message-attribute-payload.d.ts.map +1 -0
- package/dist/service/sqs/message/sim-sqs-message-attribute-payload.js +42 -0
- package/dist/service/sqs/message/sim-sqs-message-attribute-payload.js.map +1 -0
- package/dist/service/sqs/message/sim-sqs-message-attribute-rules.d.ts +23 -0
- package/dist/service/sqs/message/sim-sqs-message-attribute-rules.d.ts.map +1 -0
- package/dist/service/sqs/message/sim-sqs-message-attribute-rules.js +68 -0
- package/dist/service/sqs/message/sim-sqs-message-attribute-rules.js.map +1 -0
- package/dist/service/sqs/message/sim-sqs-message-attribute-value.d.ts +17 -0
- package/dist/service/sqs/message/sim-sqs-message-attribute-value.d.ts.map +1 -0
- package/dist/service/sqs/message/sim-sqs-message-attribute-value.js +2 -0
- package/dist/service/sqs/message/sim-sqs-message-attribute-value.js.map +1 -0
- package/dist/service/sqs/message/sim-sqs-message-attribute.d.ts +29 -0
- package/dist/service/sqs/message/sim-sqs-message-attribute.d.ts.map +1 -0
- package/dist/service/sqs/message/sim-sqs-message-attribute.js +56 -0
- package/dist/service/sqs/message/sim-sqs-message-attribute.js.map +1 -0
- package/dist/service/sqs/message/sim-sqs-message-attributes.d.ts +44 -0
- package/dist/service/sqs/message/sim-sqs-message-attributes.d.ts.map +1 -0
- package/dist/service/sqs/message/sim-sqs-message-attributes.js +93 -0
- package/dist/service/sqs/message/sim-sqs-message-attributes.js.map +1 -0
- package/dist/service/sqs/message/sim-sqs-message-body.d.ts +18 -0
- package/dist/service/sqs/message/sim-sqs-message-body.d.ts.map +1 -0
- package/dist/service/sqs/message/sim-sqs-message-body.js +66 -0
- package/dist/service/sqs/message/sim-sqs-message-body.js.map +1 -0
- package/dist/service/sqs/message/sim-sqs-message-store.d.ts +74 -0
- package/dist/service/sqs/message/sim-sqs-message-store.d.ts.map +1 -0
- package/dist/service/sqs/message/sim-sqs-message-store.js +99 -0
- package/dist/service/sqs/message/sim-sqs-message-store.js.map +1 -0
- package/dist/service/sqs/message/sim-sqs-message-system-attributes.d.ts +28 -0
- package/dist/service/sqs/message/sim-sqs-message-system-attributes.d.ts.map +1 -0
- package/dist/service/sqs/message/sim-sqs-message-system-attributes.js +75 -0
- package/dist/service/sqs/message/sim-sqs-message-system-attributes.js.map +1 -0
- package/dist/service/sqs/message/sim-sqs-message-visibility.d.ts +56 -0
- package/dist/service/sqs/message/sim-sqs-message-visibility.d.ts.map +1 -0
- package/dist/service/sqs/message/sim-sqs-message-visibility.js +79 -0
- package/dist/service/sqs/message/sim-sqs-message-visibility.js.map +1 -0
- package/dist/service/sqs/message/sim-sqs-message-writer.d.ts +41 -0
- package/dist/service/sqs/message/sim-sqs-message-writer.d.ts.map +1 -0
- package/dist/service/sqs/message/sim-sqs-message-writer.js +56 -0
- package/dist/service/sqs/message/sim-sqs-message-writer.js.map +1 -0
- package/dist/service/sqs/message/sim-sqs-message.d.ts +96 -0
- package/dist/service/sqs/message/sim-sqs-message.d.ts.map +1 -0
- package/dist/service/sqs/message/sim-sqs-message.js +136 -0
- package/dist/service/sqs/message/sim-sqs-message.js.map +1 -0
- package/dist/service/sqs/message/sim-sqs-receipt-handle.d.ts +10 -0
- package/dist/service/sqs/message/sim-sqs-receipt-handle.d.ts.map +1 -0
- package/dist/service/sqs/message/sim-sqs-receipt-handle.js +14 -0
- package/dist/service/sqs/message/sim-sqs-receipt-handle.js.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-dead-letter-targets.d.ts +51 -0
- package/dist/service/sqs/queue/sim-sqs-dead-letter-targets.d.ts.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-dead-letter-targets.js +62 -0
- package/dist/service/sqs/queue/sim-sqs-dead-letter-targets.js.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-deleted-queue-names.d.ts +20 -0
- package/dist/service/sqs/queue/sim-sqs-deleted-queue-names.d.ts.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-deleted-queue-names.js +42 -0
- package/dist/service/sqs/queue/sim-sqs-deleted-queue-names.js.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-queue-activity.d.ts +65 -0
- package/dist/service/sqs/queue/sim-sqs-queue-activity.d.ts.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-queue-activity.js +57 -0
- package/dist/service/sqs/queue/sim-sqs-queue-activity.js.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-queue-arn.d.ts +41 -0
- package/dist/service/sqs/queue/sim-sqs-queue-arn.d.ts.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-queue-arn.js +47 -0
- package/dist/service/sqs/queue/sim-sqs-queue-arn.js.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-queue-attribute-names.d.ts +27 -0
- package/dist/service/sqs/queue/sim-sqs-queue-attribute-names.d.ts.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-queue-attribute-names.js +83 -0
- package/dist/service/sqs/queue/sim-sqs-queue-attribute-names.js.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-queue-attribute-numbers.d.ts +34 -0
- package/dist/service/sqs/queue/sim-sqs-queue-attribute-numbers.d.ts.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-queue-attribute-numbers.js +93 -0
- package/dist/service/sqs/queue/sim-sqs-queue-attribute-numbers.js.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-queue-attribute-specs.d.ts +20 -0
- package/dist/service/sqs/queue/sim-sqs-queue-attribute-specs.d.ts.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-queue-attribute-specs.js +37 -0
- package/dist/service/sqs/queue/sim-sqs-queue-attribute-specs.js.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-queue-attributes.d.ts +60 -0
- package/dist/service/sqs/queue/sim-sqs-queue-attributes.d.ts.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-queue-attributes.js +96 -0
- package/dist/service/sqs/queue/sim-sqs-queue-attributes.js.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-queue-name.d.ts +21 -0
- package/dist/service/sqs/queue/sim-sqs-queue-name.d.ts.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-queue-name.js +47 -0
- package/dist/service/sqs/queue/sim-sqs-queue-name.js.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-queue-report.d.ts +22 -0
- package/dist/service/sqs/queue/sim-sqs-queue-report.d.ts.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-queue-report.js +29 -0
- package/dist/service/sqs/queue/sim-sqs-queue-report.js.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-queue-store.d.ts +60 -0
- package/dist/service/sqs/queue/sim-sqs-queue-store.d.ts.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-queue-store.js +87 -0
- package/dist/service/sqs/queue/sim-sqs-queue-store.js.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-queue-url.d.ts +24 -0
- package/dist/service/sqs/queue/sim-sqs-queue-url.d.ts.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-queue-url.js +36 -0
- package/dist/service/sqs/queue/sim-sqs-queue-url.js.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-queue.d.ts +130 -0
- package/dist/service/sqs/queue/sim-sqs-queue.d.ts.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-queue.js +188 -0
- package/dist/service/sqs/queue/sim-sqs-queue.js.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-redrive-policy.d.ts +30 -0
- package/dist/service/sqs/queue/sim-sqs-redrive-policy.d.ts.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-redrive-policy.js +118 -0
- package/dist/service/sqs/queue/sim-sqs-redrive-policy.js.map +1 -0
- package/dist/service/sqs/sdk/sim-sqs-sdk-command-router.d.ts +18 -0
- package/dist/service/sqs/sdk/sim-sqs-sdk-command-router.d.ts.map +1 -0
- package/dist/service/sqs/sdk/sim-sqs-sdk-command-router.js +76 -0
- package/dist/service/sqs/sdk/sim-sqs-sdk-command-router.js.map +1 -0
- package/dist/service/sqs/sim-sqs.d.ts +119 -0
- package/dist/service/sqs/sim-sqs.d.ts.map +1 -0
- package/dist/service/sqs/sim-sqs.js +213 -0
- package/dist/service/sqs/sim-sqs.js.map +1 -0
- package/package.json +8 -2
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { SimCognitoNotAuthorizedException } from "../../error/sim-cognito.error.js";
|
|
2
|
+
/**
|
|
3
|
+
* The unfinished authentications of one simulated user pool.
|
|
4
|
+
*
|
|
5
|
+
* A session is forgotten as soon as it is used, so a replayed one fails the
|
|
6
|
+
* way it does on real Cognito.
|
|
7
|
+
*/
|
|
8
|
+
export class SimCognitoAuthSessionStore {
|
|
9
|
+
sessions = new Map();
|
|
10
|
+
/**
|
|
11
|
+
* Remember a session a challenge was issued with.
|
|
12
|
+
*
|
|
13
|
+
* A session nobody answered is dropped here once it has run out, so a
|
|
14
|
+
* simulation left running does not hold every abandoned sign-in. The new
|
|
15
|
+
* session's own issue time is the simulation's now, so no clock is needed.
|
|
16
|
+
*/
|
|
17
|
+
add(session) {
|
|
18
|
+
this.forgetExpired(session.issuedAt);
|
|
19
|
+
this.sessions.set(session.id, session);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Find a session by the opaque string it was issued as.
|
|
23
|
+
*/
|
|
24
|
+
find(sessionId) {
|
|
25
|
+
if (sessionId === undefined) {
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
28
|
+
return this.sessions.get(sessionId);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Resolve the session a challenge response carries, or refuse.
|
|
32
|
+
*
|
|
33
|
+
* A session this pool never issued, one already used, one for another user
|
|
34
|
+
* or app client, and one that has run out all fail the same way, as they do
|
|
35
|
+
* on real Cognito.
|
|
36
|
+
*/
|
|
37
|
+
require(request) {
|
|
38
|
+
const session = this.find(request.sessionId);
|
|
39
|
+
if (session === undefined ||
|
|
40
|
+
!session.belongsTo(request.username, request.clientId) ||
|
|
41
|
+
session.isExpiredAt(request.now)) {
|
|
42
|
+
throw new SimCognitoNotAuthorizedException("Invalid session for the user.");
|
|
43
|
+
}
|
|
44
|
+
return session;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Forget a session that has been used.
|
|
48
|
+
*/
|
|
49
|
+
remove(session) {
|
|
50
|
+
this.sessions.delete(session.id);
|
|
51
|
+
}
|
|
52
|
+
forgetExpired(now) {
|
|
53
|
+
for (const session of this.sessions.values()) {
|
|
54
|
+
if (session.isExpiredAt(now)) {
|
|
55
|
+
this.remove(session);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=sim-cognito-auth-session-store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-auth-session-store.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/auth/sim-cognito-auth-session-store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,kCAAkC,CAAC;AAapF;;;;;GAKG;AACH,MAAM,OAAO,0BAA0B;IACpB,QAAQ,GAAG,IAAI,GAAG,EAAiC,CAAC;IAErE;;;;;;OAMG;IACH,GAAG,CAAC,OAA8B;QAChC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QACrC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IACzC,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,SAA6B;QAChC,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;YAC5B,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACtC,CAAC;IAED;;;;;;OAMG;IACH,OAAO,CAAC,OAAqC;QAC3C,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAE7C,IACE,OAAO,KAAK,SAAS;YACrB,CAAC,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC;YACtD,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,EAChC,CAAC;YACD,MAAM,IAAI,gCAAgC,CACxC,+BAA+B,CAChC,CAAC;QACJ,CAAC;QAED,OAAO,OAAO,CAAC;IACjB,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAA8B;QACnC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACnC,CAAC;IAEO,aAAa,CAAC,GAAS;QAC7B,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC;YAC7C,IAAI,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC7B,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;QACH,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
interface SimCognitoAuthSessionProperties {
|
|
2
|
+
readonly username: string;
|
|
3
|
+
readonly clientId: string;
|
|
4
|
+
readonly challengeName: string;
|
|
5
|
+
readonly issuedAt: Date;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* One challenge session, which is what an unfinished authentication carries
|
|
9
|
+
* between the request that started it and the response that completes it.
|
|
10
|
+
*
|
|
11
|
+
* The session is opaque, single use, and tied to the user and app client that
|
|
12
|
+
* got it: a session from one sign-in cannot complete another.
|
|
13
|
+
*/
|
|
14
|
+
export declare class SimCognitoAuthSession {
|
|
15
|
+
readonly id: string;
|
|
16
|
+
readonly username: string;
|
|
17
|
+
readonly clientId: string;
|
|
18
|
+
readonly challengeName: string;
|
|
19
|
+
readonly issuedAt: Date;
|
|
20
|
+
constructor(properties: SimCognitoAuthSessionProperties);
|
|
21
|
+
/**
|
|
22
|
+
* Whether this session has run out by a given moment.
|
|
23
|
+
*/
|
|
24
|
+
isExpiredAt(now: Date): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Whether this session belongs to a user and app client.
|
|
27
|
+
*/
|
|
28
|
+
belongsTo(username: string, clientId: string): boolean;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=sim-cognito-auth-session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-auth-session.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/auth/sim-cognito-auth-session.ts"],"names":[],"mappings":"AAaA,UAAU,+BAA+B;IACvC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;CACzB;AAED;;;;;;GAMG;AACH,qBAAa,qBAAqB;IAChC,SAAgB,EAAE,EAAE,MAAM,CAAC;IAC3B,SAAgB,QAAQ,EAAE,MAAM,CAAC;IACjC,SAAgB,QAAQ,EAAE,MAAM,CAAC;IACjC,SAAgB,aAAa,EAAE,MAAM,CAAC;IACtC,SAAgB,QAAQ,EAAE,IAAI,CAAC;IAE/B,YAAY,UAAU,EAAE,+BAA+B,EAMtD;IAED;;OAEG;IACH,WAAW,CAAC,GAAG,EAAE,IAAI,GAAG,OAAO,CAM9B;IAED;;OAEG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAErD;CACF"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { randomBytes } from "node:crypto";
|
|
2
|
+
/**
|
|
3
|
+
* How long a challenge session lasts.
|
|
4
|
+
*
|
|
5
|
+
* Real Cognito gives an app client an `AuthSessionValidity` of three minutes
|
|
6
|
+
* unless the client says otherwise, and `CreateUserPoolClient` refuses that
|
|
7
|
+
* input here, so three minutes is what every session gets.
|
|
8
|
+
*/
|
|
9
|
+
const sessionMinutes = 3;
|
|
10
|
+
const sessionBytes = 48;
|
|
11
|
+
/**
|
|
12
|
+
* One challenge session, which is what an unfinished authentication carries
|
|
13
|
+
* between the request that started it and the response that completes it.
|
|
14
|
+
*
|
|
15
|
+
* The session is opaque, single use, and tied to the user and app client that
|
|
16
|
+
* got it: a session from one sign-in cannot complete another.
|
|
17
|
+
*/
|
|
18
|
+
export class SimCognitoAuthSession {
|
|
19
|
+
id;
|
|
20
|
+
username;
|
|
21
|
+
clientId;
|
|
22
|
+
challengeName;
|
|
23
|
+
issuedAt;
|
|
24
|
+
constructor(properties) {
|
|
25
|
+
this.id = randomBytes(sessionBytes).toString("base64url");
|
|
26
|
+
this.username = properties.username;
|
|
27
|
+
this.clientId = properties.clientId;
|
|
28
|
+
this.challengeName = properties.challengeName;
|
|
29
|
+
this.issuedAt = properties.issuedAt;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Whether this session has run out by a given moment.
|
|
33
|
+
*/
|
|
34
|
+
isExpiredAt(now) {
|
|
35
|
+
const expiresAt = new Date(this.issuedAt.getTime() + sessionMinutes * 60 * 1000);
|
|
36
|
+
return now.getTime() >= expiresAt.getTime();
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Whether this session belongs to a user and app client.
|
|
40
|
+
*/
|
|
41
|
+
belongsTo(username, clientId) {
|
|
42
|
+
return this.username === username && this.clientId === clientId;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=sim-cognito-auth-session.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-auth-session.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/auth/sim-cognito-auth-session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C;;;;;;GAMG;AACH,MAAM,cAAc,GAAG,CAAC,CAAC;AAEzB,MAAM,YAAY,GAAG,EAAE,CAAC;AASxB;;;;;;GAMG;AACH,MAAM,OAAO,qBAAqB;IAChB,EAAE,CAAS;IACX,QAAQ,CAAS;IACjB,QAAQ,CAAS;IACjB,aAAa,CAAS;IACtB,QAAQ,CAAO;IAE/B,YAAY,UAA2C;QACrD,IAAI,CAAC,EAAE,GAAG,WAAW,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;QAC1D,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;QACpC,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;QACpC,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC,aAAa,CAAC;QAC9C,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;IACtC,CAAC;IAED;;OAEG;IACH,WAAW,CAAC,GAAS;QACnB,MAAM,SAAS,GAAG,IAAI,IAAI,CACxB,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,GAAG,cAAc,GAAG,EAAE,GAAG,IAAI,CACrD,CAAC;QAEF,OAAO,GAAG,CAAC,OAAO,EAAE,IAAI,SAAS,CAAC,OAAO,EAAE,CAAC;IAC9C,CAAC;IAED;;OAEG;IACH,SAAS,CAAC,QAAgB,EAAE,QAAgB;QAC1C,OAAO,IAAI,CAAC,QAAQ,KAAK,QAAQ,IAAI,IAAI,CAAC,QAAQ,KAAK,QAAQ,CAAC;IAClE,CAAC;CACF"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { SimCognitoIssuedToken } from "./sim-cognito-issued-token.js";
|
|
2
|
+
/**
|
|
3
|
+
* What a refresh request has to match for its token to be accepted.
|
|
4
|
+
*/
|
|
5
|
+
export interface SimCognitoRefreshTokenRequest {
|
|
6
|
+
readonly value: string;
|
|
7
|
+
readonly clientId: string;
|
|
8
|
+
readonly now: Date;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The tokens one simulated user pool has issued and still honours.
|
|
12
|
+
*
|
|
13
|
+
* Signing a user out forgets theirs, which is what makes a later refresh fail:
|
|
14
|
+
* real Cognito revokes a signed-out user's tokens rather than waiting for them
|
|
15
|
+
* to expire. A token that has run out is forgotten too, so a long-running
|
|
16
|
+
* simulation does not hold every token it ever signed.
|
|
17
|
+
*/
|
|
18
|
+
export declare class SimCognitoIssuedTokenStore {
|
|
19
|
+
private readonly refreshTokens;
|
|
20
|
+
private readonly accessTokens;
|
|
21
|
+
/**
|
|
22
|
+
* Forget the tokens a rule marks as spent, taking their values out first so
|
|
23
|
+
* nothing is deleted while it is still being read.
|
|
24
|
+
*/
|
|
25
|
+
private static forgetSpent;
|
|
26
|
+
/**
|
|
27
|
+
* Remember a refresh token, so it can be exchanged later.
|
|
28
|
+
*/
|
|
29
|
+
addRefreshToken(token: SimCognitoIssuedToken): void;
|
|
30
|
+
/**
|
|
31
|
+
* Remember an access token, so a sign-out can be authorized with it.
|
|
32
|
+
*/
|
|
33
|
+
addAccessToken(token: SimCognitoIssuedToken): void;
|
|
34
|
+
/**
|
|
35
|
+
* Resolve the refresh token a request carries, or refuse.
|
|
36
|
+
*
|
|
37
|
+
* A token this pool never issued, one belonging to another app client, one
|
|
38
|
+
* that has run out, and one the user has been signed out of all fail the
|
|
39
|
+
* same way, as they do on real Cognito.
|
|
40
|
+
*/
|
|
41
|
+
requireRefreshToken(request: SimCognitoRefreshTokenRequest): SimCognitoIssuedToken;
|
|
42
|
+
/**
|
|
43
|
+
* Find an access token this pool issued and still honours.
|
|
44
|
+
*
|
|
45
|
+
* A token from a signed-out session has been forgotten by then, so nothing
|
|
46
|
+
* comes back for it, which is the `Access Token has been revoked` real
|
|
47
|
+
* Cognito answers a request carrying one with.
|
|
48
|
+
*/
|
|
49
|
+
findAccessToken(value: string): SimCognitoIssuedToken | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Forget every token issued to a user, whichever app client got it.
|
|
52
|
+
*
|
|
53
|
+
* This is what a global sign-out does, and what deleting a user does: a
|
|
54
|
+
* token outliving the user it names would sign in someone the pool cannot
|
|
55
|
+
* describe.
|
|
56
|
+
*/
|
|
57
|
+
forgetUser(username: string): void;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=sim-cognito-issued-token-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-issued-token-store.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/auth/sim-cognito-issued-token-store.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,qBAAa,0BAA0B;IACrC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAA4C;IAC1E,OAAO,CAAC,QAAQ,CAAC,YAAY,CAA4C;IAEzE;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,WAAW;IAe1B;;OAEG;IACH,eAAe,CAAC,KAAK,EAAE,qBAAqB,GAAG,IAAI,CAKlD;IAED;;OAEG;IACH,cAAc,CAAC,KAAK,EAAE,qBAAqB,GAAG,IAAI,CAKjD;IAED;;;;;;OAMG;IACH,mBAAmB,CACjB,OAAO,EAAE,6BAA6B,GACrC,qBAAqB,CAYvB;IAED;;;;;;OAMG;IACH,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,qBAAqB,GAAG,SAAS,CAEhE;IAED;;;;;;OAMG;IACH,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAMjC;CACF"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { SimCognitoNotAuthorizedException } from "../../error/sim-cognito.error.js";
|
|
2
|
+
/**
|
|
3
|
+
* The tokens one simulated user pool has issued and still honours.
|
|
4
|
+
*
|
|
5
|
+
* Signing a user out forgets theirs, which is what makes a later refresh fail:
|
|
6
|
+
* real Cognito revokes a signed-out user's tokens rather than waiting for them
|
|
7
|
+
* to expire. A token that has run out is forgotten too, so a long-running
|
|
8
|
+
* simulation does not hold every token it ever signed.
|
|
9
|
+
*/
|
|
10
|
+
export class SimCognitoIssuedTokenStore {
|
|
11
|
+
refreshTokens = new Map();
|
|
12
|
+
accessTokens = new Map();
|
|
13
|
+
/**
|
|
14
|
+
* Forget the tokens a rule marks as spent, taking their values out first so
|
|
15
|
+
* nothing is deleted while it is still being read.
|
|
16
|
+
*/
|
|
17
|
+
static forgetSpent(tokens, spent) {
|
|
18
|
+
const values = tokens
|
|
19
|
+
.values()
|
|
20
|
+
.filter(spent)
|
|
21
|
+
.map((issued) => issued.value)
|
|
22
|
+
.toArray();
|
|
23
|
+
for (const value of values) {
|
|
24
|
+
tokens.delete(value);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Remember a refresh token, so it can be exchanged later.
|
|
29
|
+
*/
|
|
30
|
+
addRefreshToken(token) {
|
|
31
|
+
SimCognitoIssuedTokenStore.forgetSpent(this.refreshTokens, (issued) => issued.isExpiredAt(token.issuedAt));
|
|
32
|
+
this.refreshTokens.set(token.value, token);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Remember an access token, so a sign-out can be authorized with it.
|
|
36
|
+
*/
|
|
37
|
+
addAccessToken(token) {
|
|
38
|
+
SimCognitoIssuedTokenStore.forgetSpent(this.accessTokens, (issued) => issued.isExpiredAt(token.issuedAt));
|
|
39
|
+
this.accessTokens.set(token.value, token);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Resolve the refresh token a request carries, or refuse.
|
|
43
|
+
*
|
|
44
|
+
* A token this pool never issued, one belonging to another app client, one
|
|
45
|
+
* that has run out, and one the user has been signed out of all fail the
|
|
46
|
+
* same way, as they do on real Cognito.
|
|
47
|
+
*/
|
|
48
|
+
requireRefreshToken(request) {
|
|
49
|
+
const issued = this.refreshTokens.get(request.value);
|
|
50
|
+
if (issued?.isFor(request.clientId) !== true) {
|
|
51
|
+
throw new SimCognitoNotAuthorizedException("Invalid Refresh Token.");
|
|
52
|
+
}
|
|
53
|
+
if (issued.isExpiredAt(request.now)) {
|
|
54
|
+
throw new SimCognitoNotAuthorizedException("Refresh Token has expired.");
|
|
55
|
+
}
|
|
56
|
+
return issued;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Find an access token this pool issued and still honours.
|
|
60
|
+
*
|
|
61
|
+
* A token from a signed-out session has been forgotten by then, so nothing
|
|
62
|
+
* comes back for it, which is the `Access Token has been revoked` real
|
|
63
|
+
* Cognito answers a request carrying one with.
|
|
64
|
+
*/
|
|
65
|
+
findAccessToken(value) {
|
|
66
|
+
return this.accessTokens.get(value);
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Forget every token issued to a user, whichever app client got it.
|
|
70
|
+
*
|
|
71
|
+
* This is what a global sign-out does, and what deleting a user does: a
|
|
72
|
+
* token outliving the user it names would sign in someone the pool cannot
|
|
73
|
+
* describe.
|
|
74
|
+
*/
|
|
75
|
+
forgetUser(username) {
|
|
76
|
+
const theirs = (issued) => issued.username === username;
|
|
77
|
+
SimCognitoIssuedTokenStore.forgetSpent(this.refreshTokens, theirs);
|
|
78
|
+
SimCognitoIssuedTokenStore.forgetSpent(this.accessTokens, theirs);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=sim-cognito-issued-token-store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-issued-token-store.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/auth/sim-cognito-issued-token-store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,kCAAkC,CAAC;AAYpF;;;;;;;GAOG;AACH,MAAM,OAAO,0BAA0B;IACpB,aAAa,GAAG,IAAI,GAAG,EAAiC,CAAC;IACzD,YAAY,GAAG,IAAI,GAAG,EAAiC,CAAC;IAEzE;;;OAGG;IACK,MAAM,CAAC,WAAW,CACxB,MAA0C,EAC1C,KAAiD;QAEjD,MAAM,MAAM,GAAG,MAAM;aAClB,MAAM,EAAE;aACR,MAAM,CAAC,KAAK,CAAC;aACb,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC;aAC7B,OAAO,EAAE,CAAC;QAEb,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;YAC3B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACvB,CAAC;IACH,CAAC;IAED;;OAEG;IACH,eAAe,CAAC,KAA4B;QAC1C,0BAA0B,CAAC,WAAW,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,MAAM,EAAE,EAAE,CACpE,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,QAAQ,CAAC,CACnC,CAAC;QACF,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC7C,CAAC;IAED;;OAEG;IACH,cAAc,CAAC,KAA4B;QACzC,0BAA0B,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CACnE,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,QAAQ,CAAC,CACnC,CAAC;QACF,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC5C,CAAC;IAED;;;;;;OAMG;IACH,mBAAmB,CACjB,OAAsC;QAEtC,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAErD,IAAI,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,IAAI,EAAE,CAAC;YAC7C,MAAM,IAAI,gCAAgC,CAAC,wBAAwB,CAAC,CAAC;QACvE,CAAC;QAED,IAAI,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;YACpC,MAAM,IAAI,gCAAgC,CAAC,4BAA4B,CAAC,CAAC;QAC3E,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;IAED;;;;;;OAMG;IACH,eAAe,CAAC,KAAa;QAC3B,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACtC,CAAC;IAED;;;;;;OAMG;IACH,UAAU,CAAC,QAAgB;QACzB,MAAM,MAAM,GAAG,CAAC,MAA6B,EAAW,EAAE,CACxD,MAAM,CAAC,QAAQ,KAAK,QAAQ,CAAC;QAE/B,0BAA0B,CAAC,WAAW,CAAC,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;QACnE,0BAA0B,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IACpE,CAAC;CACF"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
interface SimCognitoIssuedTokenProperties {
|
|
2
|
+
readonly value: string;
|
|
3
|
+
readonly username: string;
|
|
4
|
+
readonly clientId: string;
|
|
5
|
+
readonly issuedAt: Date;
|
|
6
|
+
readonly expiresAt: Date;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* One token a pool has issued, as the pool remembers it.
|
|
10
|
+
*
|
|
11
|
+
* A refresh token is remembered because the pool is what exchanges it later,
|
|
12
|
+
* and an access token because the pool is what a sign-out presents one to. The
|
|
13
|
+
* token this describes is the string the caller holds: an access token is a
|
|
14
|
+
* signed JWT and a refresh token is opaque, and neither says anything to this
|
|
15
|
+
* pool that this record does not.
|
|
16
|
+
*/
|
|
17
|
+
export declare class SimCognitoIssuedToken {
|
|
18
|
+
readonly value: string;
|
|
19
|
+
readonly username: string;
|
|
20
|
+
readonly clientId: string;
|
|
21
|
+
readonly issuedAt: Date;
|
|
22
|
+
readonly expiresAt: Date;
|
|
23
|
+
constructor(properties: SimCognitoIssuedTokenProperties);
|
|
24
|
+
/**
|
|
25
|
+
* Whether this token has run out by a given moment.
|
|
26
|
+
*/
|
|
27
|
+
isExpiredAt(now: Date): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Whether this token was issued to an app client.
|
|
30
|
+
*
|
|
31
|
+
* A refresh token belongs to the client that got it, so presenting one to
|
|
32
|
+
* another client fails, as it does on real Cognito.
|
|
33
|
+
*/
|
|
34
|
+
isFor(clientId: string): boolean;
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=sim-cognito-issued-token.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-issued-token.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/auth/sim-cognito-issued-token.ts"],"names":[],"mappings":"AAAA,UAAU,+BAA+B;IACvC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;IACxB,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC;CAC1B;AAED;;;;;;;;GAQG;AACH,qBAAa,qBAAqB;IAChC,SAAgB,KAAK,EAAE,MAAM,CAAC;IAC9B,SAAgB,QAAQ,EAAE,MAAM,CAAC;IACjC,SAAgB,QAAQ,EAAE,MAAM,CAAC;IACjC,SAAgB,QAAQ,EAAE,IAAI,CAAC;IAC/B,SAAgB,SAAS,EAAE,IAAI,CAAC;IAEhC,YAAY,UAAU,EAAE,+BAA+B,EAMtD;IAED;;OAEG;IACH,WAAW,CAAC,GAAG,EAAE,IAAI,GAAG,OAAO,CAE9B;IAED;;;;;OAKG;IACH,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAE/B;CACF"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One token a pool has issued, as the pool remembers it.
|
|
3
|
+
*
|
|
4
|
+
* A refresh token is remembered because the pool is what exchanges it later,
|
|
5
|
+
* and an access token because the pool is what a sign-out presents one to. The
|
|
6
|
+
* token this describes is the string the caller holds: an access token is a
|
|
7
|
+
* signed JWT and a refresh token is opaque, and neither says anything to this
|
|
8
|
+
* pool that this record does not.
|
|
9
|
+
*/
|
|
10
|
+
export class SimCognitoIssuedToken {
|
|
11
|
+
value;
|
|
12
|
+
username;
|
|
13
|
+
clientId;
|
|
14
|
+
issuedAt;
|
|
15
|
+
expiresAt;
|
|
16
|
+
constructor(properties) {
|
|
17
|
+
this.value = properties.value;
|
|
18
|
+
this.username = properties.username;
|
|
19
|
+
this.clientId = properties.clientId;
|
|
20
|
+
this.issuedAt = properties.issuedAt;
|
|
21
|
+
this.expiresAt = properties.expiresAt;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Whether this token has run out by a given moment.
|
|
25
|
+
*/
|
|
26
|
+
isExpiredAt(now) {
|
|
27
|
+
return now.getTime() >= this.expiresAt.getTime();
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Whether this token was issued to an app client.
|
|
31
|
+
*
|
|
32
|
+
* A refresh token belongs to the client that got it, so presenting one to
|
|
33
|
+
* another client fails, as it does on real Cognito.
|
|
34
|
+
*/
|
|
35
|
+
isFor(clientId) {
|
|
36
|
+
return this.clientId === clientId;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=sim-cognito-issued-token.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-issued-token.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/auth/sim-cognito-issued-token.ts"],"names":[],"mappings":"AAQA;;;;;;;;GAQG;AACH,MAAM,OAAO,qBAAqB;IAChB,KAAK,CAAS;IACd,QAAQ,CAAS;IACjB,QAAQ,CAAS;IACjB,QAAQ,CAAO;IACf,SAAS,CAAO;IAEhC,YAAY,UAA2C;QACrD,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;QAC9B,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;QACpC,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;QACpC,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;QACpC,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;IACxC,CAAC;IAED;;OAEG;IACH,WAAW,CAAC,GAAS;QACnB,OAAO,GAAG,CAAC,OAAO,EAAE,IAAI,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC;IACnD,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,QAAgB;QACpB,OAAO,IAAI,CAAC,QAAQ,KAAK,QAAQ,CAAC;IACpC,CAAC;CACF"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { SimCognitoAuthSession } from "./sim-cognito-auth-session.js";
|
|
2
|
+
import { type SimCognitoAuthSessionRequest } from "./sim-cognito-auth-session-store.js";
|
|
3
|
+
import type { SimCognitoIssuedToken } from "./sim-cognito-issued-token.js";
|
|
4
|
+
import { type SimCognitoRefreshTokenRequest } from "./sim-cognito-issued-token-store.js";
|
|
5
|
+
/**
|
|
6
|
+
* The authentication state of one simulated user pool: the sign-ins that are
|
|
7
|
+
* part way through, and the tokens the finished ones handed out.
|
|
8
|
+
*
|
|
9
|
+
* The two live together because signing a user out reaches both kinds of
|
|
10
|
+
* state, and because keeping them here leaves `SimCognitoUserPool` as what it
|
|
11
|
+
* is elsewhere, a resource holding its contents.
|
|
12
|
+
*/
|
|
13
|
+
export declare class SimCognitoPoolAuth {
|
|
14
|
+
private readonly sessions;
|
|
15
|
+
private readonly tokens;
|
|
16
|
+
/**
|
|
17
|
+
* Remember a challenge session an authentication was left waiting on.
|
|
18
|
+
*/
|
|
19
|
+
addSession(session: SimCognitoAuthSession): void;
|
|
20
|
+
/**
|
|
21
|
+
* Resolve the challenge session a response carries, or refuse.
|
|
22
|
+
*/
|
|
23
|
+
requireSession(request: SimCognitoAuthSessionRequest): SimCognitoAuthSession;
|
|
24
|
+
/**
|
|
25
|
+
* Forget a challenge session that has been used.
|
|
26
|
+
*/
|
|
27
|
+
removeSession(session: SimCognitoAuthSession): void;
|
|
28
|
+
/**
|
|
29
|
+
* Remember a refresh token this pool has issued.
|
|
30
|
+
*/
|
|
31
|
+
addRefreshToken(token: SimCognitoIssuedToken): void;
|
|
32
|
+
/**
|
|
33
|
+
* Remember an access token this pool has issued.
|
|
34
|
+
*/
|
|
35
|
+
addAccessToken(token: SimCognitoIssuedToken): void;
|
|
36
|
+
/**
|
|
37
|
+
* Resolve the refresh token a refresh request carries, or refuse.
|
|
38
|
+
*/
|
|
39
|
+
requireRefreshToken(request: SimCognitoRefreshTokenRequest): SimCognitoIssuedToken;
|
|
40
|
+
/**
|
|
41
|
+
* Find an access token this pool issued and still honours.
|
|
42
|
+
*/
|
|
43
|
+
findAccessToken(value: string): SimCognitoIssuedToken | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Sign a user out of every app client, forgetting the tokens it holds.
|
|
46
|
+
*/
|
|
47
|
+
signOut(username: string): void;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=sim-cognito-pool-auth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-pool-auth.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/auth/sim-cognito-pool-auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAEL,KAAK,4BAA4B,EAClC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,qCAAqC,CAAC;AAE7C;;;;;;;GAOG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAoC;IAC7D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;OAEG;IACH,UAAU,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI,CAE/C;IAED;;OAEG;IACH,cAAc,CAAC,OAAO,EAAE,4BAA4B,GAAG,qBAAqB,CAE3E;IAED;;OAEG;IACH,aAAa,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI,CAElD;IAED;;OAEG;IACH,eAAe,CAAC,KAAK,EAAE,qBAAqB,GAAG,IAAI,CAElD;IAED;;OAEG;IACH,cAAc,CAAC,KAAK,EAAE,qBAAqB,GAAG,IAAI,CAEjD;IAED;;OAEG;IACH,mBAAmB,CACjB,OAAO,EAAE,6BAA6B,GACrC,qBAAqB,CAEvB;IAED;;OAEG;IACH,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,qBAAqB,GAAG,SAAS,CAEhE;IAED;;OAEG;IACH,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAE9B;CACF"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { SimCognitoAuthSessionStore, } from "./sim-cognito-auth-session-store.js";
|
|
2
|
+
import { SimCognitoIssuedTokenStore, } from "./sim-cognito-issued-token-store.js";
|
|
3
|
+
/**
|
|
4
|
+
* The authentication state of one simulated user pool: the sign-ins that are
|
|
5
|
+
* part way through, and the tokens the finished ones handed out.
|
|
6
|
+
*
|
|
7
|
+
* The two live together because signing a user out reaches both kinds of
|
|
8
|
+
* state, and because keeping them here leaves `SimCognitoUserPool` as what it
|
|
9
|
+
* is elsewhere, a resource holding its contents.
|
|
10
|
+
*/
|
|
11
|
+
export class SimCognitoPoolAuth {
|
|
12
|
+
sessions = new SimCognitoAuthSessionStore();
|
|
13
|
+
tokens = new SimCognitoIssuedTokenStore();
|
|
14
|
+
/**
|
|
15
|
+
* Remember a challenge session an authentication was left waiting on.
|
|
16
|
+
*/
|
|
17
|
+
addSession(session) {
|
|
18
|
+
this.sessions.add(session);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Resolve the challenge session a response carries, or refuse.
|
|
22
|
+
*/
|
|
23
|
+
requireSession(request) {
|
|
24
|
+
return this.sessions.require(request);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Forget a challenge session that has been used.
|
|
28
|
+
*/
|
|
29
|
+
removeSession(session) {
|
|
30
|
+
this.sessions.remove(session);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Remember a refresh token this pool has issued.
|
|
34
|
+
*/
|
|
35
|
+
addRefreshToken(token) {
|
|
36
|
+
this.tokens.addRefreshToken(token);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Remember an access token this pool has issued.
|
|
40
|
+
*/
|
|
41
|
+
addAccessToken(token) {
|
|
42
|
+
this.tokens.addAccessToken(token);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Resolve the refresh token a refresh request carries, or refuse.
|
|
46
|
+
*/
|
|
47
|
+
requireRefreshToken(request) {
|
|
48
|
+
return this.tokens.requireRefreshToken(request);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Find an access token this pool issued and still honours.
|
|
52
|
+
*/
|
|
53
|
+
findAccessToken(value) {
|
|
54
|
+
return this.tokens.findAccessToken(value);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Sign a user out of every app client, forgetting the tokens it holds.
|
|
58
|
+
*/
|
|
59
|
+
signOut(username) {
|
|
60
|
+
this.tokens.forgetUser(username);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=sim-cognito-pool-auth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-pool-auth.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/auth/sim-cognito-pool-auth.ts"],"names":[],"mappings":"AACA,OAAO,EACL,0BAA0B,GAE3B,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACL,0BAA0B,GAE3B,MAAM,qCAAqC,CAAC;AAE7C;;;;;;;GAOG;AACH,MAAM,OAAO,kBAAkB;IACZ,QAAQ,GAAG,IAAI,0BAA0B,EAAE,CAAC;IAC5C,MAAM,GAAG,IAAI,0BAA0B,EAAE,CAAC;IAE3D;;OAEG;IACH,UAAU,CAAC,OAA8B;QACvC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC7B,CAAC;IAED;;OAEG;IACH,cAAc,CAAC,OAAqC;QAClD,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC;IAED;;OAEG;IACH,aAAa,CAAC,OAA8B;QAC1C,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,eAAe,CAAC,KAA4B;QAC1C,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;IAED;;OAEG;IACH,cAAc,CAAC,KAA4B;QACzC,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC;IAED;;OAEG;IACH,mBAAmB,CACjB,OAAsC;QAEtC,OAAO,IAAI,CAAC,MAAM,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;OAEG;IACH,eAAe,CAAC,KAAa;QAC3B,OAAO,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;IAC5C,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,QAAgB;QACtB,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;IACnC,CAAC;CACF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { SimCognitoUserPoolClient } from "../client/sim-cognito-user-pool-client.js";
|
|
2
|
+
/**
|
|
3
|
+
* Compute the `SECRET_HASH` a request from an app client should carry.
|
|
4
|
+
*
|
|
5
|
+
* It is the HMAC-SHA256 of the username and the client id, keyed by the client
|
|
6
|
+
* secret, which is what the AWS SDKs compute.
|
|
7
|
+
*/
|
|
8
|
+
export declare function simCognitoSecretHash(username: string, clientId: string, clientSecret: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* Refuse a request whose `SECRET_HASH` is missing or wrong.
|
|
11
|
+
*
|
|
12
|
+
* Checking it is what makes a test notice a client secret it forgot to use,
|
|
13
|
+
* rather than finding out on a real pool. A client without a secret needs
|
|
14
|
+
* none, and one sent anyway is ignored, as real Cognito ignores it.
|
|
15
|
+
*/
|
|
16
|
+
export declare function requireSimCognitoSecretHash(username: string, client: SimCognitoUserPoolClient, secretHash: string | undefined): void;
|
|
17
|
+
//# sourceMappingURL=sim-cognito-secret-hash.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-secret-hash.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/auth/sim-cognito-secret-hash.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAE1F;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,GACnB,MAAM,CAIR;AAED;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,wBAAwB,EAChC,UAAU,EAAE,MAAM,GAAG,SAAS,GAC7B,IAAI,CAYN"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* eslint-disable security/detect-possible-timing-attacks -- this is a
|
|
2
|
+
simulator in one process, where the secret hash is checked so a test notices
|
|
3
|
+
a client secret it forgot to use, rather than as a defence against anyone
|
|
4
|
+
measuring how long the check took. */
|
|
5
|
+
import { createHmac } from "node:crypto";
|
|
6
|
+
import { SimCognitoNotAuthorizedException } from "../../error/sim-cognito.error.js";
|
|
7
|
+
/**
|
|
8
|
+
* Compute the `SECRET_HASH` a request from an app client should carry.
|
|
9
|
+
*
|
|
10
|
+
* It is the HMAC-SHA256 of the username and the client id, keyed by the client
|
|
11
|
+
* secret, which is what the AWS SDKs compute.
|
|
12
|
+
*/
|
|
13
|
+
export function simCognitoSecretHash(username, clientId, clientSecret) {
|
|
14
|
+
return createHmac("sha256", clientSecret)
|
|
15
|
+
.update(`${username}${clientId}`)
|
|
16
|
+
.digest("base64");
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Refuse a request whose `SECRET_HASH` is missing or wrong.
|
|
20
|
+
*
|
|
21
|
+
* Checking it is what makes a test notice a client secret it forgot to use,
|
|
22
|
+
* rather than finding out on a real pool. A client without a secret needs
|
|
23
|
+
* none, and one sent anyway is ignored, as real Cognito ignores it.
|
|
24
|
+
*/
|
|
25
|
+
export function requireSimCognitoSecretHash(username, client, secretHash) {
|
|
26
|
+
const { secret } = client;
|
|
27
|
+
if (secret === undefined) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
if (secretHash !== simCognitoSecretHash(username, client.id, secret)) {
|
|
31
|
+
throw new SimCognitoNotAuthorizedException(`Unable to verify secret hash for client ${client.id}.`);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=sim-cognito-secret-hash.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-secret-hash.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/auth/sim-cognito-secret-hash.ts"],"names":[],"mappings":"AAAA;;;wCAGwC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,gCAAgC,EAAE,MAAM,kCAAkC,CAAC;AAGpF;;;;;GAKG;AACH,MAAM,UAAU,oBAAoB,CAClC,QAAgB,EAChB,QAAgB,EAChB,YAAoB;IAEpB,OAAO,UAAU,CAAC,QAAQ,EAAE,YAAY,CAAC;SACtC,MAAM,CAAC,GAAG,QAAQ,GAAG,QAAQ,EAAE,CAAC;SAChC,MAAM,CAAC,QAAQ,CAAC,CAAC;AACtB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,2BAA2B,CACzC,QAAgB,EAChB,MAAgC,EAChC,UAA8B;IAE9B,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAE1B,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO;IACT,CAAC;IAED,IAAI,UAAU,KAAK,oBAAoB,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,EAAE,CAAC;QACrE,MAAM,IAAI,gCAAgC,CACxC,2CAA2C,MAAM,CAAC,EAAE,GAAG,CACxD,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { SimCognitoUserPoolClient } from "../client/sim-cognito-user-pool-client.js";
|
|
2
|
+
import type { SimCognitoUserPool } from "../sim-cognito-user-pool.js";
|
|
3
|
+
import type { SimCognitoUser } from "../user/sim-cognito-user.js";
|
|
4
|
+
/**
|
|
5
|
+
* Resolve the user a sign-in names, as the app client reports one that is not
|
|
6
|
+
* there.
|
|
7
|
+
*
|
|
8
|
+
* A client with `PreventUserExistenceErrors` of `ENABLED` answers with the
|
|
9
|
+
* same refusal a wrong password gets, and one left on the `LEGACY` default
|
|
10
|
+
* says the user does not exist.
|
|
11
|
+
*/
|
|
12
|
+
export declare function requireSimCognitoSignInUser(pool: SimCognitoUserPool, client: SimCognitoUserPoolClient, username: string): SimCognitoUser;
|
|
13
|
+
/**
|
|
14
|
+
* Refuse a user that has been disabled.
|
|
15
|
+
*
|
|
16
|
+
* Disabling a user stops it authenticating at all, so it is checked by a token
|
|
17
|
+
* refresh as well as by a sign-in: a user disabled after signing in cannot go
|
|
18
|
+
* on renewing its session.
|
|
19
|
+
*/
|
|
20
|
+
export declare function requireSimCognitoEnabled(user: SimCognitoUser): void;
|
|
21
|
+
/**
|
|
22
|
+
* Refuse a sign-in the user cannot make.
|
|
23
|
+
*
|
|
24
|
+
* A disabled user and a wrong password both fail as `NotAuthorizedException`,
|
|
25
|
+
* saying no more than real Cognito says. A user created without a
|
|
26
|
+
* `TemporaryPassword` has no password at all, so nothing matches: real Cognito
|
|
27
|
+
* generates one and sends it to the user, and nothing here delivers a message
|
|
28
|
+
* for the user to read it from.
|
|
29
|
+
*/
|
|
30
|
+
export declare function requireSimCognitoSignIn(user: SimCognitoUser, password: string): void;
|
|
31
|
+
//# sourceMappingURL=sim-cognito-sign-in.d.ts.map
|
|
@@ -0,0 +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":"AACA,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;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,cAAc,EACpB,QAAQ,EAAE,MAAM,GACf,IAAI,CAQN"}
|