@kensio/yulin 1.12.0 → 1.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/serve/controller/host/sim-aws-service-hosts.d.ts +27 -0
- package/dist/serve/controller/host/sim-aws-service-hosts.d.ts.map +1 -0
- package/dist/serve/controller/host/sim-aws-service-hosts.js +13 -0
- package/dist/serve/controller/host/sim-aws-service-hosts.js.map +1 -0
- 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.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js +1 -0
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-service-cache.d.ts +3 -0
- 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 +3 -0
- package/dist/service/aws/factory/sim-aws-account-service-cache.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-scoped-service-registries.d.ts +8 -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 +8 -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.map +1 -1
- package/dist/service/aws/factory/sim-aws-service-factory.js +3 -0
- package/dist/service/aws/factory/sim-aws-service-factory.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-cfn-value-adapter.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-cfn-value-adapter.js +14 -0
- package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-cfn-value-adapter.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-idp-cfn.d.ts +26 -0
- package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-idp-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-idp-cfn.js +25 -0
- package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-idp-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-user-pool-domain-cfn.d.ts +31 -0
- package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-user-pool-domain-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-user-pool-domain-cfn.js +33 -0
- package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-user-pool-domain-cfn.js.map +1 -0
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.d.ts +1 -0
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.d.ts.map +1 -1
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js +20 -9
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js.map +1 -1
- package/dist/service/cognito/cfn/domain/sim-cfn-cognito-domain-creator.d.ts +26 -0
- package/dist/service/cognito/cfn/domain/sim-cfn-cognito-domain-creator.d.ts.map +1 -0
- package/dist/service/cognito/cfn/domain/sim-cfn-cognito-domain-creator.js +34 -0
- package/dist/service/cognito/cfn/domain/sim-cfn-cognito-domain-creator.js.map +1 -0
- package/dist/service/cognito/cfn/domain/sim-cfn-cognito-domain-properties.d.ts +37 -0
- package/dist/service/cognito/cfn/domain/sim-cfn-cognito-domain-properties.d.ts.map +1 -0
- package/dist/service/cognito/cfn/domain/sim-cfn-cognito-domain-properties.js +67 -0
- package/dist/service/cognito/cfn/domain/sim-cfn-cognito-domain-properties.js.map +1 -0
- package/dist/service/cognito/cfn/idp/sim-cfn-cognito-idp-creator.d.ts +26 -0
- package/dist/service/cognito/cfn/idp/sim-cfn-cognito-idp-creator.d.ts.map +1 -0
- package/dist/service/cognito/cfn/idp/sim-cfn-cognito-idp-creator.js +37 -0
- package/dist/service/cognito/cfn/idp/sim-cfn-cognito-idp-creator.js.map +1 -0
- package/dist/service/cognito/cfn/idp/sim-cfn-cognito-idp-properties.d.ts +40 -0
- package/dist/service/cognito/cfn/idp/sim-cfn-cognito-idp-properties.d.ts.map +1 -0
- package/dist/service/cognito/cfn/idp/sim-cfn-cognito-idp-properties.js +74 -0
- package/dist/service/cognito/cfn/idp/sim-cfn-cognito-idp-properties.js.map +1 -0
- package/dist/service/cognito/cfn/sim-cfn-cognito-resource-deleter.d.ts +29 -3
- package/dist/service/cognito/cfn/sim-cfn-cognito-resource-deleter.d.ts.map +1 -1
- package/dist/service/cognito/cfn/sim-cfn-cognito-resource-deleter.js +88 -26
- package/dist/service/cognito/cfn/sim-cfn-cognito-resource-deleter.js.map +1 -1
- package/dist/service/cognito/cfn/sim-cfn-cognito-resource-factory.d.ts +5 -3
- package/dist/service/cognito/cfn/sim-cfn-cognito-resource-factory.d.ts.map +1 -1
- package/dist/service/cognito/cfn/sim-cfn-cognito-resource-factory.js +15 -3
- package/dist/service/cognito/cfn/sim-cfn-cognito-resource-factory.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts +6 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js +1 -3
- package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.d.ts +0 -1
- 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 -4
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.js.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.d.ts +2 -3
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.d.ts.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.js +3 -4
- 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 +5 -6
- package/dist/service/cognito/command/client/user-pool-client.command.d.ts.map +1 -1
- package/dist/service/cognito/command/domain/sim-cognito-domain-commands.d.ts +62 -0
- package/dist/service/cognito/command/domain/sim-cognito-domain-commands.d.ts.map +1 -0
- package/dist/service/cognito/command/domain/sim-cognito-domain-commands.js +87 -0
- package/dist/service/cognito/command/domain/sim-cognito-domain-commands.js.map +1 -0
- package/dist/service/cognito/command/domain/sim-cognito-domain-view.d.ts +19 -0
- package/dist/service/cognito/command/domain/sim-cognito-domain-view.d.ts.map +1 -0
- package/dist/service/cognito/command/domain/sim-cognito-domain-view.js +38 -0
- package/dist/service/cognito/command/domain/sim-cognito-domain-view.js.map +1 -0
- package/dist/service/cognito/command/domain/user-pool-domain.command.d.ts +72 -0
- package/dist/service/cognito/command/domain/user-pool-domain.command.d.ts.map +1 -0
- package/dist/service/cognito/command/domain/user-pool-domain.command.js +2 -0
- package/dist/service/cognito/command/domain/user-pool-domain.command.js.map +1 -0
- package/dist/service/cognito/command/hosted/hosted-auth.command.d.ts +69 -0
- package/dist/service/cognito/command/hosted/hosted-auth.command.d.ts.map +1 -0
- package/dist/service/cognito/command/hosted/hosted-auth.command.js +2 -0
- package/dist/service/cognito/command/hosted/hosted-auth.command.js.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.d.ts +38 -0
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.d.ts.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.js +72 -0
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.js.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-request.d.ts +37 -0
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-request.d.ts.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-request.js +123 -0
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-request.js.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-granted-scopes.d.ts +16 -0
- package/dist/service/cognito/command/hosted/sim-cognito-granted-scopes.d.ts.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-granted-scopes.js +34 -0
- package/dist/service/cognito/command/hosted/sim-cognito-granted-scopes.js.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-granted-tokens.d.ts +16 -0
- package/dist/service/cognito/command/hosted/sim-cognito-granted-tokens.d.ts.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-granted-tokens.js +32 -0
- package/dist/service/cognito/command/hosted/sim-cognito-granted-tokens.js.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-client.d.ts +49 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-client.d.ts.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-client.js +98 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-client.js.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.d.ts +28 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.d.ts.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.js +27 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.js.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-logout-endpoint.d.ts +22 -0
- package/dist/service/cognito/command/hosted/sim-cognito-logout-endpoint.d.ts.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-logout-endpoint.js +43 -0
- package/dist/service/cognito/command/hosted/sim-cognito-logout-endpoint.js.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-presented-grant.d.ts +47 -0
- package/dist/service/cognito/command/hosted/sim-cognito-presented-grant.d.ts.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-presented-grant.js +92 -0
- package/dist/service/cognito/command/hosted/sim-cognito-presented-grant.js.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-token-endpoint.d.ts +33 -0
- package/dist/service/cognito/command/hosted/sim-cognito-token-endpoint.d.ts.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-token-endpoint.js +58 -0
- package/dist/service/cognito/command/hosted/sim-cognito-token-endpoint.js.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-token-grants.d.ts +42 -0
- package/dist/service/cognito/command/hosted/sim-cognito-token-grants.d.ts.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-token-grants.js +70 -0
- package/dist/service/cognito/command/hosted/sim-cognito-token-grants.js.map +1 -0
- package/dist/service/cognito/command/idp/identity-provider.command.d.ts +118 -0
- package/dist/service/cognito/command/idp/identity-provider.command.d.ts.map +1 -0
- package/dist/service/cognito/command/idp/identity-provider.command.js +2 -0
- package/dist/service/cognito/command/idp/identity-provider.command.js.map +1 -0
- package/dist/service/cognito/command/idp/sim-cognito-identity-provider-commands.d.ts +54 -0
- package/dist/service/cognito/command/idp/sim-cognito-identity-provider-commands.d.ts.map +1 -0
- package/dist/service/cognito/command/idp/sim-cognito-identity-provider-commands.js +94 -0
- package/dist/service/cognito/command/idp/sim-cognito-identity-provider-commands.js.map +1 -0
- package/dist/service/cognito/command/idp/sim-cognito-identity-provider-view.d.ts +22 -0
- package/dist/service/cognito/command/idp/sim-cognito-identity-provider-view.d.ts.map +1 -0
- package/dist/service/cognito/command/idp/sim-cognito-identity-provider-view.js +38 -0
- package/dist/service/cognito/command/idp/sim-cognito-identity-provider-view.js.map +1 -0
- package/dist/service/cognito/command/sim-cognito-command.types.d.ts +3 -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 +8 -0
- package/dist/service/cognito/command/sim-cognito-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/sim-cognito-commands.js +30 -1
- package/dist/service/cognito/command/sim-cognito-commands.js.map +1 -1
- package/dist/service/cognito/error/sim-cognito-oauth.error.d.ts +42 -0
- package/dist/service/cognito/error/sim-cognito-oauth.error.d.ts.map +1 -0
- package/dist/service/cognito/error/sim-cognito-oauth.error.js +29 -0
- package/dist/service/cognito/error/sim-cognito-oauth.error.js.map +1 -0
- package/dist/service/cognito/error/sim-cognito.error.d.ts +10 -0
- package/dist/service/cognito/error/sim-cognito.error.d.ts.map +1 -1
- package/dist/service/cognito/error/sim-cognito.error.js +12 -0
- package/dist/service/cognito/error/sim-cognito.error.js.map +1 -1
- package/dist/service/cognito/index.d.ts +15 -1
- package/dist/service/cognito/index.d.ts.map +1 -1
- package/dist/service/cognito/index.js +15 -1
- package/dist/service/cognito/index.js.map +1 -1
- package/dist/service/cognito/registry/sim-cognito-domain-registry.d.ts +49 -0
- package/dist/service/cognito/registry/sim-cognito-domain-registry.d.ts.map +1 -0
- package/dist/service/cognito/registry/sim-cognito-domain-registry.js +83 -0
- package/dist/service/cognito/registry/sim-cognito-domain-registry.js.map +1 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.d.ts +3 -2
- package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.d.ts.map +1 -1
- package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.js +5 -2
- package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.js.map +1 -1
- package/dist/service/cognito/sdk/sim-cognito-sdk-federation-routes.d.ts +7 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-federation-routes.d.ts.map +1 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-federation-routes.js +41 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-federation-routes.js.map +1 -0
- package/dist/service/cognito/serve/sim-cognito-controller.d.ts +5 -0
- package/dist/service/cognito/serve/sim-cognito-controller.d.ts.map +1 -1
- package/dist/service/cognito/serve/sim-cognito-controller.js +12 -2
- package/dist/service/cognito/serve/sim-cognito-controller.js.map +1 -1
- package/dist/service/cognito/serve/sim-cognito-domain-controller.d.ts +48 -0
- package/dist/service/cognito/serve/sim-cognito-domain-controller.d.ts.map +1 -0
- package/dist/service/cognito/serve/sim-cognito-domain-controller.js +79 -0
- package/dist/service/cognito/serve/sim-cognito-domain-controller.js.map +1 -0
- package/dist/service/cognito/serve/sim-cognito-domain-endpoints.d.ts +49 -0
- package/dist/service/cognito/serve/sim-cognito-domain-endpoints.d.ts.map +1 -0
- package/dist/service/cognito/serve/sim-cognito-domain-endpoints.js +91 -0
- package/dist/service/cognito/serve/sim-cognito-domain-endpoints.js.map +1 -0
- package/dist/service/cognito/serve/sim-cognito-oauth-response.d.ts +57 -0
- package/dist/service/cognito/serve/sim-cognito-oauth-response.d.ts.map +1 -0
- package/dist/service/cognito/serve/sim-cognito-oauth-response.js +113 -0
- package/dist/service/cognito/serve/sim-cognito-oauth-response.js.map +1 -0
- package/dist/service/cognito/serve/sim-cognito-openid-configuration.d.ts +15 -4
- package/dist/service/cognito/serve/sim-cognito-openid-configuration.d.ts.map +1 -1
- package/dist/service/cognito/serve/sim-cognito-openid-configuration.js +28 -4
- package/dist/service/cognito/serve/sim-cognito-openid-configuration.js.map +1 -1
- package/dist/service/cognito/serve/sim-cognito-token-request.d.ts +30 -0
- package/dist/service/cognito/serve/sim-cognito-token-request.d.ts.map +1 -0
- package/dist/service/cognito/serve/sim-cognito-token-request.js +66 -0
- package/dist/service/cognito/serve/sim-cognito-token-request.js.map +1 -0
- package/dist/service/cognito/sim-cognito-federation.d.ts +74 -0
- package/dist/service/cognito/sim-cognito-federation.d.ts.map +1 -0
- package/dist/service/cognito/sim-cognito-federation.js +99 -0
- package/dist/service/cognito/sim-cognito-federation.js.map +1 -0
- package/dist/service/cognito/sim-cognito-identity-provider.d.ts +21 -2
- package/dist/service/cognito/sim-cognito-identity-provider.d.ts.map +1 -1
- package/dist/service/cognito/sim-cognito-identity-provider.js +21 -4
- package/dist/service/cognito/sim-cognito-identity-provider.js.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-authorization-code-store.d.ts +28 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-authorization-code-store.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-authorization-code-store.js +52 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-authorization-code-store.js.map +1 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-authorization-code.d.ts +57 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-authorization-code.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-authorization-code.js +75 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-authorization-code.js.map +1 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.d.ts +8 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.js +13 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.js.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.d.ts +10 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.js +6 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.js.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.d.ts +47 -4
- package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.js +58 -4
- package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.js.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-oauth-grants.d.ts +18 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-oauth-grants.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-oauth-grants.js +61 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-oauth-grants.js.map +1 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-oauth-settings.d.ts +60 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-oauth-settings.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-oauth-settings.js +83 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-oauth-settings.js.map +1 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-redirect-urls.d.ts +22 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-redirect-urls.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-redirect-urls.js +47 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-redirect-urls.js.map +1 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-requested-oauth.d.ts +29 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-requested-oauth.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-requested-oauth.js +64 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-requested-oauth.js.map +1 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.d.ts +4 -5
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.js +4 -5
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.js.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.d.ts +4 -4
- 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 +4 -4
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.js.map +1 -1
- package/dist/service/cognito/user-pool/domain/sim-cognito-custom-domain-config.d.ts +30 -0
- package/dist/service/cognito/user-pool/domain/sim-cognito-custom-domain-config.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/domain/sim-cognito-custom-domain-config.js +37 -0
- package/dist/service/cognito/user-pool/domain/sim-cognito-custom-domain-config.js.map +1 -0
- package/dist/service/cognito/user-pool/domain/sim-cognito-domain-name.d.ts +58 -0
- package/dist/service/cognito/user-pool/domain/sim-cognito-domain-name.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/domain/sim-cognito-domain-name.js +123 -0
- package/dist/service/cognito/user-pool/domain/sim-cognito-domain-name.js.map +1 -0
- package/dist/service/cognito/user-pool/domain/sim-cognito-pool-domains.d.ts +33 -0
- package/dist/service/cognito/user-pool/domain/sim-cognito-pool-domains.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/domain/sim-cognito-pool-domains.js +66 -0
- package/dist/service/cognito/user-pool/domain/sim-cognito-pool-domains.js.map +1 -0
- package/dist/service/cognito/user-pool/domain/sim-cognito-user-pool-domain.d.ts +58 -0
- package/dist/service/cognito/user-pool/domain/sim-cognito-user-pool-domain.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/domain/sim-cognito-user-pool-domain.js +70 -0
- package/dist/service/cognito/user-pool/domain/sim-cognito-user-pool-domain.js.map +1 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-attribute-mapping.d.ts +40 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-attribute-mapping.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-attribute-mapping.js +56 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-attribute-mapping.js.map +1 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-external-user.d.ts +37 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-external-user.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-external-user.js +28 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-external-user.js.map +1 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-federated-identity.d.ts +64 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-federated-identity.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-federated-identity.js +50 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-federated-identity.js.map +1 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-federated-sign-in.d.ts +47 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-federated-sign-in.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-federated-sign-in.js +72 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-federated-sign-in.js.map +1 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-identity-provider-settings.d.ts +37 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-identity-provider-settings.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-identity-provider-settings.js +55 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-identity-provider-settings.js.map +1 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-identity-provider-store.d.ts +39 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-identity-provider-store.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-identity-provider-store.js +58 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-identity-provider-store.js.map +1 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-provider-details.d.ts +29 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-provider-details.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-provider-details.js +52 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-provider-details.js.map +1 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-provider-type.d.ts +24 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-provider-type.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-provider-type.js +67 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-provider-type.js.map +1 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-user-pool-identity-provider.d.ts +82 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-user-pool-identity-provider.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-user-pool-identity-provider.js +108 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-user-pool-identity-provider.js.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-store.d.ts +11 -1
- 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 +11 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-store.js.map +1 -1
- package/dist/service/cognito/user-pool/token/sim-cognito-access-token.d.ts +5 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-access-token.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/token/sim-cognito-access-token.js +16 -5
- package/dist/service/cognito/user-pool/token/sim-cognito-access-token.js.map +1 -1
- package/dist/service/cognito/user-pool/token/sim-cognito-id-token.d.ts +7 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-id-token.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/token/sim-cognito-id-token.js +14 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-id-token.js.map +1 -1
- package/dist/service/cognito/user-pool/token/sim-cognito-token-claims.d.ts +10 -1
- package/dist/service/cognito/user-pool/token/sim-cognito-token-claims.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/token/sim-cognito-token-claims.js.map +1 -1
- package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.d.ts +5 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.js +3 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.js.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-standard-attributes.d.ts +9 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-standard-attributes.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-standard-attributes.js +39 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-standard-attributes.js.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.js +2 -29
- package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.js.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.d.ts +15 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.js +17 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.js.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-status.d.ts +14 -4
- package/dist/service/cognito/user-pool/user/sim-cognito-user-status.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-status.js +13 -3
- package/dist/service/cognito/user-pool/user/sim-cognito-user-status.js.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts +20 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user.js +29 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user.js.map +1 -1
- package/dist/service/route53/resolve/sim-r53-service-target-resolver.d.ts +1 -0
- 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 +1 -0
- package/dist/service/route53/resolve/sim-r53-service-target-resolver.js.map +1 -1
- package/dist/service/route53/resolve/sim-route53-resolver.d.ts +7 -0
- package/dist/service/route53/resolve/sim-route53-resolver.d.ts.map +1 -1
- package/dist/service/route53/resolve/sim-route53-resolver.js +12 -4
- package/dist/service/route53/resolve/sim-route53-resolver.js.map +1 -1
- package/dist/service/route53/sim-route53.d.ts +8 -0
- package/dist/service/route53/sim-route53.d.ts.map +1 -1
- package/dist/service/route53/sim-route53.js +1 -0
- package/dist/service/route53/sim-route53.js.map +1 -1
- package/package.json +1 -1
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-managed-login.d.ts +0 -24
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-managed-login.d.ts.map +0 -1
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-managed-login.js +0 -51
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-managed-login.js.map +0 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-unsimulated-client-settings.d.ts +0 -42
- package/dist/service/cognito/user-pool/client/sim-cognito-unsimulated-client-settings.d.ts.map +0 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-unsimulated-client-settings.js +0 -44
- package/dist/service/cognito/user-pool/client/sim-cognito-unsimulated-client-settings.js.map +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { SimCognitoUserPool } from "../sim-cognito-user-pool.js";
|
|
2
2
|
import type { SimCognitoUserPoolClient } from "../client/sim-cognito-user-pool-client.js";
|
|
3
|
+
import type { SimCognitoIdentityClaim } from "../idp/sim-cognito-federated-identity.js";
|
|
3
4
|
import type { SimCognitoUser } from "../user/sim-cognito-user.js";
|
|
4
|
-
export type SimCognitoClaimValue = string | number | readonly string[];
|
|
5
|
+
export type SimCognitoClaimValue = string | number | readonly string[] | readonly SimCognitoIdentityClaim[];
|
|
5
6
|
/**
|
|
6
7
|
* The claims of one token, in the shape they are signed in.
|
|
7
8
|
*/
|
|
@@ -16,6 +17,14 @@ export interface SimCognitoTokenClaimsProperties {
|
|
|
16
17
|
* A fresh id for this token, which becomes its `jti` claim.
|
|
17
18
|
*/
|
|
18
19
|
readonly tokenId: string;
|
|
20
|
+
/**
|
|
21
|
+
* The scopes the sign-in was granted, which an access token carries.
|
|
22
|
+
*
|
|
23
|
+
* A sign-in through the API is granted the one scope that authorizes the
|
|
24
|
+
* pool's own self-service operations, and one through the hosted endpoints
|
|
25
|
+
* is granted what the authorize request asked its app client for.
|
|
26
|
+
*/
|
|
27
|
+
readonly scopes?: readonly string[] | undefined;
|
|
19
28
|
}
|
|
20
29
|
/**
|
|
21
30
|
* The claims a simulated id token and access token share.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-token-claims.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/token/sim-cognito-token-claims.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAElE,MAAM,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"sim-cognito-token-claims.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/token/sim-cognito-token-claims.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACxF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAElE,MAAM,MAAM,oBAAoB,GAC5B,MAAM,GACN,MAAM,GACN,SAAS,MAAM,EAAE,GACjB,SAAS,uBAAuB,EAAE,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAC1C,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CACrC,CAAC;AAEF,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,wBAAwB,CAAC;IAC1C,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;IACxB,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB;;;;;;OAMG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;CACjD;AAMD;;;;;;;GAOG;AACH,qBAAa,2BAA2B;IACtC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAkC;IAE7D,YAAY,UAAU,EAAE,+BAA+B,EAEtD;IAED;;OAEG;IACH,KAAK,IAAI,qBAAqB,CAY7B;IAED,OAAO,CAAC,UAAU;CAUnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-token-claims.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/token/sim-cognito-token-claims.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sim-cognito-token-claims.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/token/sim-cognito-token-claims.ts"],"names":[],"mappings":"AAuCA,SAAS,YAAY,CAAC,OAAa;IACjC,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC;AAC9C,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,OAAO,2BAA2B;IACrB,UAAU,CAAkC;IAE7D,YAAY,UAA2C;QACrD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED;;OAEG;IACH,KAAK;QACH,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC;QAErE,OAAO;YACL,GAAG,EAAE,IAAI,CAAC,GAAG;YACb,GAAG,EAAE,IAAI,CAAC,SAAS;YACnB,SAAS,EAAE,YAAY,CAAC,QAAQ,CAAC;YACjC,GAAG,EAAE,YAAY,CAAC,QAAQ,CAAC;YAC3B,GAAG,EAAE,YAAY,CAAC,SAAS,CAAC;YAC5B,GAAG,EAAE,OAAO;YACZ,GAAG,IAAI,CAAC,UAAU,EAAE;SACrB,CAAC;IACJ,CAAC;IAEO,UAAU;QAChB,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC;QACvC,MAAM,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAEvE,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACxB,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,CAAC;IACtC,CAAC;CACF"}
|
|
@@ -35,6 +35,11 @@ interface SimCognitoIssueTokensProperties {
|
|
|
35
35
|
* from a challenge response and from nowhere else, as on real Cognito.
|
|
36
36
|
*/
|
|
37
37
|
readonly clientMetadata?: Readonly<Record<string, string>> | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* The scopes a hosted sign-in was granted, which reach the access token's
|
|
40
|
+
* `scope` claim. A sign-in through the API grants none of its own.
|
|
41
|
+
*/
|
|
42
|
+
readonly scopes?: readonly string[] | undefined;
|
|
38
43
|
}
|
|
39
44
|
/**
|
|
40
45
|
* Issues the tokens a successful authentication answers with.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-token-issuer.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/token/sim-cognito-token-issuer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AAC5F,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8CAA8C,CAAC;AAC/F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAclE;;;;;;GAMG;AACH,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client.id,
|
|
60
60
|
issuedAt,
|
|
61
61
|
expiresAt: SimCognitoTokenIssuer.expiryOf(issuedAt, client.tokenValidity.refreshToken.seconds),
|
|
62
|
+
// A hosted sign-in was granted scopes, and the tokens a refresh hands
|
|
63
|
+
// out later carry the same ones.
|
|
64
|
+
scopes: properties.scopes,
|
|
62
65
|
}));
|
|
63
66
|
return { ...signed, refreshToken };
|
|
64
67
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-token-issuer.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/token/sim-cognito-token-issuer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAM5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D;;;;;;GAMG;AACH,MAAM,iBAAiB,GAAG,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-token-issuer.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/token/sim-cognito-token-issuer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAM5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D;;;;;;GAMG;AACH,MAAM,iBAAiB,GAAG,EAAE,CAAC;AA6C7B;;;;;;;;;;;;;;;GAeG;AACH,MAAM,OAAO,qBAAqB;IACf,KAAK,CAAW;IAChB,QAAQ,CAA6B;IAEtD,YAAY,UAA2C;QACrD,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,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CAAC;YACvE,WAAW,EAAE,iBAAiB;YAC9B,SAAS,EAAE,kBAAkB;SAC9B,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,cAAc,CAC1B,UAA2C;QAE3C,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,EAAE,GAAG,UAAU,CAAC;QAEpE,OAAO,MAAM,IAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAC,QAAQ,EAAE;YACtD,IAAI;YACJ,MAAM;YACN,IAAI;YACJ,cAAc;SACf,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether an attribute name is one every pool's schema holds.
|
|
3
|
+
*
|
|
4
|
+
* An identity provider's attribute mapping is checked with this when the
|
|
5
|
+
* provider is created, so a mapping onto an attribute no pool here has is
|
|
6
|
+
* refused where it was written rather than during a sign-in much later.
|
|
7
|
+
*/
|
|
8
|
+
export declare function isSimCognitoStandardAttribute(name: string): boolean;
|
|
9
|
+
//# sourceMappingURL=sim-cognito-standard-attributes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-standard-attributes.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-standard-attributes.ts"],"names":[],"mappings":"AA6BA;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEnE"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The standard attributes every Cognito pool's schema holds.
|
|
3
|
+
*
|
|
4
|
+
* These are the OpenID Connect claims, plus the two verification flags. A pool
|
|
5
|
+
* here has no custom attributes, because `CreateUserPool` refuses a `Schema`
|
|
6
|
+
* of its own.
|
|
7
|
+
*/
|
|
8
|
+
const standardAttributeNames = new Set([
|
|
9
|
+
"address",
|
|
10
|
+
"birthdate",
|
|
11
|
+
"email",
|
|
12
|
+
"email_verified",
|
|
13
|
+
"family_name",
|
|
14
|
+
"gender",
|
|
15
|
+
"given_name",
|
|
16
|
+
"locale",
|
|
17
|
+
"middle_name",
|
|
18
|
+
"name",
|
|
19
|
+
"nickname",
|
|
20
|
+
"phone_number",
|
|
21
|
+
"phone_number_verified",
|
|
22
|
+
"picture",
|
|
23
|
+
"preferred_username",
|
|
24
|
+
"profile",
|
|
25
|
+
"updated_at",
|
|
26
|
+
"website",
|
|
27
|
+
"zoneinfo",
|
|
28
|
+
]);
|
|
29
|
+
/**
|
|
30
|
+
* Whether an attribute name is one every pool's schema holds.
|
|
31
|
+
*
|
|
32
|
+
* An identity provider's attribute mapping is checked with this when the
|
|
33
|
+
* provider is created, so a mapping onto an attribute no pool here has is
|
|
34
|
+
* refused where it was written rather than during a sign-in much later.
|
|
35
|
+
*/
|
|
36
|
+
export function isSimCognitoStandardAttribute(name) {
|
|
37
|
+
return standardAttributeNames.has(name);
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=sim-cognito-standard-attributes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-standard-attributes.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-standard-attributes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,sBAAsB,GAAwB,IAAI,GAAG,CAAC;IAC1D,SAAS;IACT,WAAW;IACX,OAAO;IACP,gBAAgB;IAChB,aAAa;IACb,QAAQ;IACR,YAAY;IACZ,QAAQ;IACR,aAAa;IACb,MAAM;IACN,UAAU;IACV,cAAc;IACd,uBAAuB;IACvB,SAAS;IACT,oBAAoB;IACpB,SAAS;IACT,YAAY;IACZ,SAAS;IACT,UAAU;CACX,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,UAAU,6BAA6B,CAAC,IAAY;IACxD,OAAO,sBAAsB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAC1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-user-attributes.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-attributes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sim-cognito-user-attributes.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-attributes.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC;AAID;;;;;;;;;;;GAWG;AACH,qBAAa,wBAAwB;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6B;IAEpD,YAAY,SAAS,CAAC,EAAE,SAAS,uBAAuB,EAAE,EAEzD;IAED,OAAO,CAAC,MAAM,CAAC,WAAW;IAyB1B,OAAO,CAAC,MAAM,CAAC,YAAY;IAiB3B;;OAEG;IACH,IAAI,MAAM,IAAI,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAExC;IAED;;OAEG;IACH,IAAI,OAAO,IAAI,SAAS,uBAAuB,EAAE,CAKhD;IAED;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAMrC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,SAAS,CAAC,EAAE,SAAS,uBAAuB,EAAE,GAAG,IAAI,CAa3D;CACF"}
|
|
@@ -1,32 +1,5 @@
|
|
|
1
1
|
import { SimCognitoInvalidParameterException } from "../../error/sim-cognito.error.js";
|
|
2
|
-
|
|
3
|
-
* The standard attributes every Cognito pool's schema holds.
|
|
4
|
-
*
|
|
5
|
-
* These are the OpenID Connect claims, plus the two verification flags. A pool
|
|
6
|
-
* here has no custom attributes, because `CreateUserPool` refuses a `Schema`
|
|
7
|
-
* of its own.
|
|
8
|
-
*/
|
|
9
|
-
const standardAttributeNames = new Set([
|
|
10
|
-
"address",
|
|
11
|
-
"birthdate",
|
|
12
|
-
"email",
|
|
13
|
-
"email_verified",
|
|
14
|
-
"family_name",
|
|
15
|
-
"gender",
|
|
16
|
-
"given_name",
|
|
17
|
-
"locale",
|
|
18
|
-
"middle_name",
|
|
19
|
-
"name",
|
|
20
|
-
"nickname",
|
|
21
|
-
"phone_number",
|
|
22
|
-
"phone_number_verified",
|
|
23
|
-
"picture",
|
|
24
|
-
"preferred_username",
|
|
25
|
-
"profile",
|
|
26
|
-
"updated_at",
|
|
27
|
-
"website",
|
|
28
|
-
"zoneinfo",
|
|
29
|
-
]);
|
|
2
|
+
import { isSimCognitoStandardAttribute } from "./sim-cognito-standard-attributes.js";
|
|
30
3
|
const maxAttributeValueLength = 2048;
|
|
31
4
|
/**
|
|
32
5
|
* The attributes held on one simulated user.
|
|
@@ -53,7 +26,7 @@ export class SimCognitoUserAttributes {
|
|
|
53
26
|
throw new SimCognitoInvalidParameterException("User attribute 'sub' is read-only: Cognito allocates a user's sub " +
|
|
54
27
|
"when the user is created, and a request cannot set it");
|
|
55
28
|
}
|
|
56
|
-
if (!
|
|
29
|
+
if (!isSimCognitoStandardAttribute(name)) {
|
|
57
30
|
throw new SimCognitoInvalidParameterException(`User attribute '${name}' is not in the pool's schema: a pool here ` +
|
|
58
31
|
`holds the standard attributes only, because CreateUserPool ` +
|
|
59
32
|
`refuses a Schema of its own, so custom attributes cannot exist`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-user-attributes.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-attributes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-user-attributes.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-attributes.ts"],"names":[],"m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AI,MAAM;QACR,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED;;OAEG;IACH,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,MAAM;aACf,OAAO,EAAE;aACT,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;aACtD,OAAO,EAAE,CAAC;IACf,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,KAAwB;QAC7B,IAAI,CAAC,MAAM,CACT,KAAK;aACF,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;aACvC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,IAAI,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,CAChE,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,SAA8C;QACnD,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;YAC5B,OAAO;QACT,CAAC;QAED,KAAK,MAAM,SAAS,IAAI,SAAS,EAAE,CAAC;YAClC,MAAM,IAAI,GAAG,wBAAwB,CAAC,WAAW,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YAElE,IAAI,CAAC,MAAM,CAAC,GAAG,CACb,IAAI,EACJ,wBAAwB,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,CAC7D,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SimClock } from "../../../../util/clock/sim-clock.js";
|
|
2
|
+
import type { SimCognitoFederatedIdentity } from "../idp/sim-cognito-federated-identity.js";
|
|
2
3
|
import type { SimCognitoPasswordPolicy } from "../sim-cognito-password-policy.js";
|
|
3
4
|
import { type SimCognitoAttributeType } from "./sim-cognito-user-attributes.js";
|
|
4
5
|
import { SimCognitoUser } from "./sim-cognito-user.js";
|
|
@@ -17,6 +18,12 @@ interface SimCognitoMakeUserProperties {
|
|
|
17
18
|
/** The policy the pool holds its users' passwords to. */
|
|
18
19
|
readonly passwordPolicy: SimCognitoPasswordPolicy;
|
|
19
20
|
}
|
|
21
|
+
interface SimCognitoFederatedUserProperties {
|
|
22
|
+
readonly username: SimCognitoUsername;
|
|
23
|
+
readonly attributes?: readonly SimCognitoAttributeType[] | undefined;
|
|
24
|
+
/** Which provider signed the user in, and which subject it signed in as. */
|
|
25
|
+
readonly identity: SimCognitoFederatedIdentity;
|
|
26
|
+
}
|
|
20
27
|
interface SimCognitoSignUpUserProperties {
|
|
21
28
|
readonly username: SimCognitoUsername;
|
|
22
29
|
readonly attributes?: readonly SimCognitoAttributeType[] | undefined;
|
|
@@ -51,6 +58,14 @@ export declare class SimCognitoUserFactory {
|
|
|
51
58
|
* therefore fails here rather than in a deployment.
|
|
52
59
|
*/
|
|
53
60
|
make(properties: SimCognitoMakeUserProperties): SimCognitoUser;
|
|
61
|
+
/**
|
|
62
|
+
* Make a user for an external subject an identity provider signed in.
|
|
63
|
+
*
|
|
64
|
+
* The user has no password at all, because its password is at the provider:
|
|
65
|
+
* real Cognito leaves a federated user in `EXTERNAL_PROVIDER`, where the
|
|
66
|
+
* pool's own sign-in flows refuse it.
|
|
67
|
+
*/
|
|
68
|
+
federated(properties: SimCognitoFederatedUserProperties): SimCognitoUser;
|
|
54
69
|
/**
|
|
55
70
|
* Make a user that signed itself up, waiting to be confirmed.
|
|
56
71
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-user-factory.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-factory.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version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AEtC,yDAAyD;IACzD,QAAQ,CAAC,cAAc,EAAE,wBAAwB,CAAC;CACnD;AAED;;GAEG;AACH,qBAAa,qBAAqB;IAChC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAW;IAEjC,YAAY,UAAU,EAAE,+BAA+B,EAEtD;IAED;;;;;;OAMG;IACH,OAAO,CAAC,MAAM,CAAC,WAAW;IAc1B;;;;;;OAMG;IACH,IAAI,CAAC,UAAU,EAAE,4BAA4B,GAAG,cAAc,CAY7D;IAED;;;;;;OAMG;IACH,SAAS,CAAC,UAAU,EAAE,iCAAiC,GAAG,cAAc,CASvE;IAED;;;;;OAKG;IACH,MAAM,CAAC,UAAU,EAAE,8BAA8B,GAAG,cAAc,CAgBjE;CACF"}
|
|
@@ -41,6 +41,23 @@ export class SimCognitoUserFactory {
|
|
|
41
41
|
clock: this.clock,
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* Make a user for an external subject an identity provider signed in.
|
|
46
|
+
*
|
|
47
|
+
* The user has no password at all, because its password is at the provider:
|
|
48
|
+
* real Cognito leaves a federated user in `EXTERNAL_PROVIDER`, where the
|
|
49
|
+
* pool's own sign-in flows refuse it.
|
|
50
|
+
*/
|
|
51
|
+
federated(properties) {
|
|
52
|
+
return new SimCognitoUser({
|
|
53
|
+
username: properties.username,
|
|
54
|
+
sub: randomUUID(),
|
|
55
|
+
attributes: new SimCognitoUserAttributes(properties.attributes),
|
|
56
|
+
status: SimCognitoUserStatus.externalProvider,
|
|
57
|
+
identity: properties.identity,
|
|
58
|
+
clock: this.clock,
|
|
59
|
+
});
|
|
60
|
+
}
|
|
44
61
|
/**
|
|
45
62
|
* Make a user that signed itself up, waiting to be confirmed.
|
|
46
63
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-user-factory.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-user-factory.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,OAAO,EAEL,wBAAwB,GACzB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AA4CpE;;GAEG;AACH,MAAM,OAAO,qBAAqB;IACf,KAAK,CAAW;IAEjC,YAAY,UAA2C;QACrD,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;IAChC,CAAC;IAED;;;;;;OAMG;IACK,MAAM,CAAC,WAAW,CACxB,KAAa,EACb,KAAyB,EACzB,MAAgC;QAEhC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,IAAI,sBAAsB,CAC/B,IAAI,uBAAuB,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAC1D,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CAAC,UAAwC;QAC3C,OAAO,IAAI,cAAc,CAAC;YACxB,QAAQ,EAAE,UAAU,CAAC,QAAQ;YAC7B,GAAG,EAAE,UAAU,EAAE;YACjB,UAAU,EAAE,IAAI,wBAAwB,CAAC,UAAU,CAAC,UAAU,CAAC;YAC/D,QAAQ,EAAE,qBAAqB,CAAC,WAAW,CACzC,mBAAmB,EACnB,UAAU,CAAC,iBAAiB,EAC5B,UAAU,CAAC,cAAc,CAC1B;YACD,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,SAAS,CAAC,UAA6C;QACrD,OAAO,IAAI,cAAc,CAAC;YACxB,QAAQ,EAAE,UAAU,CAAC,QAAQ;YAC7B,GAAG,EAAE,UAAU,EAAE;YACjB,UAAU,EAAE,IAAI,wBAAwB,CAAC,UAAU,CAAC,UAAU,CAAC;YAC/D,MAAM,EAAE,oBAAoB,CAAC,gBAAgB;YAC7C,QAAQ,EAAE,UAAU,CAAC,QAAQ;YAC7B,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,UAA0C;QAC/C,OAAO,IAAI,cAAc,CAAC;YACxB,QAAQ,EAAE,UAAU,CAAC,QAAQ;YAC7B,GAAG,EAAE,UAAU,EAAE;YACjB,UAAU,EAAE,IAAI,wBAAwB,CAAC,UAAU,CAAC,UAAU,CAAC;YAC/D,oEAAoE;YACpE,8BAA8B;YAC9B,QAAQ,EAAE,IAAI,sBAAsB,CAClC,IAAI,uBAAuB,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,OAAO,CAC5D,UAAU,EACV,UAAU,CAAC,QAAQ,CACpB,CACF;YACD,MAAM,EAAE,oBAAoB,CAAC,WAAW;YACxC,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type SimCognitoUserStatusValue = "UNCONFIRMED" | "FORCE_CHANGE_PASSWORD" | "CONFIRMED";
|
|
1
|
+
export type SimCognitoUserStatusValue = "UNCONFIRMED" | "FORCE_CHANGE_PASSWORD" | "CONFIRMED" | "EXTERNAL_PROVIDER";
|
|
2
2
|
/**
|
|
3
3
|
* The status of one simulated user.
|
|
4
4
|
*
|
|
@@ -7,9 +7,11 @@ export type SimCognitoUserStatusValue = "UNCONFIRMED" | "FORCE_CHANGE_PASSWORD"
|
|
|
7
7
|
* stops it signing in normally on real Cognito, and reaches `CONFIRMED` when an
|
|
8
8
|
* admin sets a permanent password on it. A user that signed itself up with
|
|
9
9
|
* `SignUp` starts in `UNCONFIRMED`, which is what stops that one signing in,
|
|
10
|
-
* and reaches `CONFIRMED` through `ConfirmSignUp` or `AdminConfirmSignUp`.
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* and reaches `CONFIRMED` through `ConfirmSignUp` or `AdminConfirmSignUp`. A
|
|
11
|
+
* user the pool created for a federated sign-in is `EXTERNAL_PROVIDER` and
|
|
12
|
+
* stays there, because its password is at the provider rather than in the
|
|
13
|
+
* pool. `RESET_REQUIRED` and the rest belong to password resets, which are not
|
|
14
|
+
* simulated.
|
|
13
15
|
*/
|
|
14
16
|
export declare class SimCognitoUserStatus {
|
|
15
17
|
/**
|
|
@@ -24,6 +26,14 @@ export declare class SimCognitoUserStatus {
|
|
|
24
26
|
* The status a user with a password of its own reaches.
|
|
25
27
|
*/
|
|
26
28
|
static readonly confirmed: SimCognitoUserStatus;
|
|
29
|
+
/**
|
|
30
|
+
* The status a user created by a federated sign-in stays in.
|
|
31
|
+
*
|
|
32
|
+
* Such a user has no password in the pool, so nothing moves it on: it signs
|
|
33
|
+
* in at its provider each time, and the pool's own sign-in flows refuse it,
|
|
34
|
+
* as they do on real Cognito.
|
|
35
|
+
*/
|
|
36
|
+
static readonly externalProvider: SimCognitoUserStatus;
|
|
27
37
|
readonly value: SimCognitoUserStatusValue;
|
|
28
38
|
private constructor();
|
|
29
39
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-user-status.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-status.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,yBAAyB,GACjC,aAAa,GACb,uBAAuB,GACvB,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-user-status.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-status.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,yBAAyB,GACjC,aAAa,GACb,uBAAuB,GACvB,WAAW,GACX,mBAAmB,CAAC;AAExB;;;;;;;;;;;;;GAaG;AACH,qBAAa,oBAAoB;IAC/B;;OAEG;IACH,gBAAuB,WAAW,uBAA2C;IAE7E;;OAEG;IACH,gBAAuB,mBAAmB,uBAExC;IAEF;;OAEG;IACH,gBAAuB,SAAS,uBAAyC;IAEzE;;;;;;OAMG;IACH,gBAAuB,gBAAgB,uBAErC;IAEF,SAAgB,KAAK,EAAE,yBAAyB,CAAC;IAEjD,OAAO,eAEN;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,gBAAgB,CACrB,SAAS,EAAE,OAAO,GAAG,SAAS,GAC7B,oBAAoB,CAMtB;IAED;;;;;OAKG;IACH,IAAI,kBAAkB,IAAI,OAAO,CAEhC;IAED;;;;;OAKG;IACH,IAAI,aAAa,IAAI,OAAO,CAE3B;IAED;;;;;;OAMG;IACH,kBAAkB,IAAI,IAAI,CAMzB;IAED;;;;;;OAMG;IACH,iBAAiB,IAAI,IAAI,CAOxB;CACF"}
|
|
@@ -7,9 +7,11 @@ import { SimCognitoInvalidParameterException, SimCognitoNotAuthorizedException,
|
|
|
7
7
|
* stops it signing in normally on real Cognito, and reaches `CONFIRMED` when an
|
|
8
8
|
* admin sets a permanent password on it. A user that signed itself up with
|
|
9
9
|
* `SignUp` starts in `UNCONFIRMED`, which is what stops that one signing in,
|
|
10
|
-
* and reaches `CONFIRMED` through `ConfirmSignUp` or `AdminConfirmSignUp`.
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* and reaches `CONFIRMED` through `ConfirmSignUp` or `AdminConfirmSignUp`. A
|
|
11
|
+
* user the pool created for a federated sign-in is `EXTERNAL_PROVIDER` and
|
|
12
|
+
* stays there, because its password is at the provider rather than in the
|
|
13
|
+
* pool. `RESET_REQUIRED` and the rest belong to password resets, which are not
|
|
14
|
+
* simulated.
|
|
13
15
|
*/
|
|
14
16
|
export class SimCognitoUserStatus {
|
|
15
17
|
/**
|
|
@@ -24,6 +26,14 @@ export class SimCognitoUserStatus {
|
|
|
24
26
|
* The status a user with a password of its own reaches.
|
|
25
27
|
*/
|
|
26
28
|
static confirmed = new SimCognitoUserStatus("CONFIRMED");
|
|
29
|
+
/**
|
|
30
|
+
* The status a user created by a federated sign-in stays in.
|
|
31
|
+
*
|
|
32
|
+
* Such a user has no password in the pool, so nothing moves it on: it signs
|
|
33
|
+
* in at its provider each time, and the pool's own sign-in flows refuse it,
|
|
34
|
+
* as they do on real Cognito.
|
|
35
|
+
*/
|
|
36
|
+
static externalProvider = new SimCognitoUserStatus("EXTERNAL_PROVIDER");
|
|
27
37
|
value;
|
|
28
38
|
constructor(value) {
|
|
29
39
|
this.value = value;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-user-status.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-status.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mCAAmC,EACnC,gCAAgC,GACjC,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-user-status.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-status.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mCAAmC,EACnC,gCAAgC,GACjC,MAAM,kCAAkC,CAAC;AAQ1C;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,oBAAoB;IAC/B;;OAEG;IACI,MAAM,CAAU,WAAW,GAAG,IAAI,oBAAoB,CAAC,aAAa,CAAC,CAAC;IAE7E;;OAEG;IACI,MAAM,CAAU,mBAAmB,GAAG,IAAI,oBAAoB,CACnE,uBAAuB,CACxB,CAAC;IAEF;;OAEG;IACI,MAAM,CAAU,SAAS,GAAG,IAAI,oBAAoB,CAAC,WAAW,CAAC,CAAC;IAEzE;;;;;;OAMG;IACI,MAAM,CAAU,gBAAgB,GAAG,IAAI,oBAAoB,CAChE,mBAAmB,CACpB,CAAC;IAEc,KAAK,CAA4B;IAEjD,YAAoB,KAAgC;QAClD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,gBAAgB,CACrB,SAA8B;QAE9B,IAAI,SAAS,KAAK,IAAI,EAAE,CAAC;YACvB,OAAO,IAAI,CAAC,SAAS,CAAC;QACxB,CAAC;QAED,OAAO,IAAI,CAAC,mBAAmB,CAAC;IAClC,CAAC;IAED;;;;;OAKG;IACH,IAAI,kBAAkB;QACpB,OAAO,IAAI,CAAC,KAAK,KAAK,uBAAuB,CAAC;IAChD,CAAC;IAED;;;;;OAKG;IACH,IAAI,aAAa;QACf,OAAO,IAAI,CAAC,KAAK,KAAK,aAAa,CAAC;IACtC,CAAC;IAED;;;;;;OAMG;IACH,kBAAkB;QAChB,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;YACxB,MAAM,IAAI,gCAAgC,CACxC,+CAA+C,IAAI,CAAC,KAAK,EAAE,CAC5D,CAAC;QACJ,CAAC;IACH,CAAC;IAED;;;;;;OAMG;IACH,iBAAiB;QACf,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;YACxB,MAAM,IAAI,mCAAmC,CAC3C,4CAA4C,IAAI,CAAC,KAAK,aAAa;gBACjE,gCAAgC,CACnC,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SimClock } from "../../../../util/clock/sim-clock.js";
|
|
2
|
+
import type { SimCognitoFederatedIdentity } from "../idp/sim-cognito-federated-identity.js";
|
|
2
3
|
import type { SimCognitoAttributeType, SimCognitoUserAttributes } from "./sim-cognito-user-attributes.js";
|
|
3
4
|
import { SimCognitoUserPassword } from "./sim-cognito-user-password.js";
|
|
4
5
|
import { SimCognitoUserStatus } from "./sim-cognito-user-status.js";
|
|
@@ -14,6 +15,11 @@ interface SimCognitoUserProperties {
|
|
|
14
15
|
* `UNCONFIRMED`.
|
|
15
16
|
*/
|
|
16
17
|
readonly status?: SimCognitoUserStatus | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Where the user came from, for one the pool is creating because an external
|
|
20
|
+
* provider signed it in.
|
|
21
|
+
*/
|
|
22
|
+
readonly identity?: SimCognitoFederatedIdentity | undefined;
|
|
17
23
|
readonly clock: SimClock;
|
|
18
24
|
}
|
|
19
25
|
/**
|
|
@@ -35,6 +41,7 @@ export declare class SimCognitoUser {
|
|
|
35
41
|
private readonly clock;
|
|
36
42
|
private readonly userAttributes;
|
|
37
43
|
private readonly confirmation;
|
|
44
|
+
private readonly federatedIdentity;
|
|
38
45
|
private userStatus;
|
|
39
46
|
private userPassword;
|
|
40
47
|
private isEnabled;
|
|
@@ -64,6 +71,14 @@ export declare class SimCognitoUser {
|
|
|
64
71
|
* is where most code reads a user's identifier from.
|
|
65
72
|
*/
|
|
66
73
|
get attributes(): readonly SimCognitoAttributeType[];
|
|
74
|
+
/**
|
|
75
|
+
* Where this user came from, for one the pool created for a federated
|
|
76
|
+
* sign-in.
|
|
77
|
+
*
|
|
78
|
+
* Cognito allocates this in the same way it allocates `sub`, and a request
|
|
79
|
+
* cannot set it, so it lives on the user rather than among its attributes.
|
|
80
|
+
*/
|
|
81
|
+
get identity(): SimCognitoFederatedIdentity | undefined;
|
|
67
82
|
/**
|
|
68
83
|
* The user's attributes by name, without the `sub` Cognito allocated.
|
|
69
84
|
*
|
|
@@ -144,6 +159,11 @@ export declare class SimCognitoUser {
|
|
|
144
159
|
* permanent password that took it there.
|
|
145
160
|
*/
|
|
146
161
|
private moveTo;
|
|
162
|
+
/**
|
|
163
|
+
* The `identities` attribute a federated user reports, which a local user
|
|
164
|
+
* does not have at all.
|
|
165
|
+
*/
|
|
166
|
+
private identityAttribute;
|
|
147
167
|
private touch;
|
|
148
168
|
}
|
|
149
169
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-user.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-user.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AAE5F,OAAO,KAAK,EACV,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,UAAU,wBAAwB;IAChC,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,UAAU,EAAE,wBAAwB,CAAC;IAC9C,QAAQ,CAAC,QAAQ,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAC;IAEvD;;;;OAIG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAEnD;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,2BAA2B,GAAG,SAAS,CAAC;IAC5D,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;CAC1B;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,cAAc;IACzB,SAAgB,QAAQ,EAAE,kBAAkB,CAAC;IAC7C,SAAgB,GAAG,EAAE,MAAM,CAAC;IAC5B,SAAgB,YAAY,EAAE,IAAI,CAAC;I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ElD;IAED;;OAEG;IACH,gBAAgB,CACd,SAAS,EAAE,SAAS,uBAAuB,EAAE,GAAG,SAAS,GACxD,IAAI,CAGN;IAED;;OAEG;IACH,MAAM,IAAI,IAAI,CAGb;IAED;;OAEG;IACH,OAAO,IAAI,IAAI,CAGd;IAED;;;;;;OAMG;IACH,OAAO,CAAC,MAAM;IAMd;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAUzB,OAAO,CAAC,KAAK;CAGd"}
|
|
@@ -20,6 +20,7 @@ export class SimCognitoUser {
|
|
|
20
20
|
clock;
|
|
21
21
|
userAttributes;
|
|
22
22
|
confirmation;
|
|
23
|
+
federatedIdentity;
|
|
23
24
|
userStatus;
|
|
24
25
|
userPassword;
|
|
25
26
|
isEnabled = true;
|
|
@@ -29,6 +30,7 @@ export class SimCognitoUser {
|
|
|
29
30
|
this.sub = properties.sub;
|
|
30
31
|
this.userAttributes = properties.attributes;
|
|
31
32
|
this.userPassword = properties.password;
|
|
33
|
+
this.federatedIdentity = properties.identity;
|
|
32
34
|
this.userStatus =
|
|
33
35
|
properties.status ?? SimCognitoUserStatus.forceChangePassword;
|
|
34
36
|
this.confirmation = new SimCognitoUserConfirmation(this.userStatus);
|
|
@@ -66,7 +68,21 @@ export class SimCognitoUser {
|
|
|
66
68
|
* is where most code reads a user's identifier from.
|
|
67
69
|
*/
|
|
68
70
|
get attributes() {
|
|
69
|
-
return [
|
|
71
|
+
return [
|
|
72
|
+
{ Name: "sub", Value: this.sub },
|
|
73
|
+
...this.identityAttribute(),
|
|
74
|
+
...this.userAttributes.entries,
|
|
75
|
+
];
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Where this user came from, for one the pool created for a federated
|
|
79
|
+
* sign-in.
|
|
80
|
+
*
|
|
81
|
+
* Cognito allocates this in the same way it allocates `sub`, and a request
|
|
82
|
+
* cannot set it, so it lives on the user rather than among its attributes.
|
|
83
|
+
*/
|
|
84
|
+
get identity() {
|
|
85
|
+
return this.federatedIdentity;
|
|
70
86
|
}
|
|
71
87
|
/**
|
|
72
88
|
* The user's attributes by name, without the `sub` Cognito allocated.
|
|
@@ -184,6 +200,18 @@ export class SimCognitoUser {
|
|
|
184
200
|
this.confirmation.settle(status);
|
|
185
201
|
this.touch();
|
|
186
202
|
}
|
|
203
|
+
/**
|
|
204
|
+
* The `identities` attribute a federated user reports, which a local user
|
|
205
|
+
* does not have at all.
|
|
206
|
+
*/
|
|
207
|
+
identityAttribute() {
|
|
208
|
+
if (this.federatedIdentity === undefined) {
|
|
209
|
+
return [];
|
|
210
|
+
}
|
|
211
|
+
return [
|
|
212
|
+
{ Name: "identities", Value: this.federatedIdentity.toAttributeValue() },
|
|
213
|
+
];
|
|
214
|
+
}
|
|
187
215
|
touch() {
|
|
188
216
|
this.modifiedDate = this.clock.now();
|
|
189
217
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-user.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sim-cognito-user.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAKhF,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAwBpE;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,cAAc;IACT,QAAQ,CAAqB;IAC7B,GAAG,CAAS;IACZ,YAAY,CAAO;IAElB,KAAK,CAAW;IAChB,cAAc,CAA2B;IACzC,YAAY,CAA6B;IACzC,iBAAiB,CAA0C;IACpE,UAAU,CAAuB;IACjC,YAAY,CAAqC;IACjD,SAAS,GAAG,IAAI,CAAC;IACjB,YAAY,CAAO;IAE3B,YAAY,UAAoC;QAC9C,IAAI,CAAC,QAAQ,GAAG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,MAAM,CAAC,SAAS,CAAC,CAAC;QACtC,IAAI,CAAC,KAAK,EAAE,CAAC;IACf,CAAC;IAED;;OAEG;IACH,MAAM;QACJ,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,KAAK,EAAE,CAAC;IACf,CAAC;IAED;;OAEG;IACH,OAAO;QACL,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QACvB,IAAI,CAAC,KAAK,EAAE,CAAC;IACf,CAAC;IAED;;;;;;OAMG;IACK,MAAM,CAAC,MAA4B;QACzC,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC;QACzB,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACjC,IAAI,CAAC,KAAK,EAAE,CAAC;IACf,CAAC;IAED;;;OAGG;IACK,iBAAiB;QACvB,IAAI,IAAI,CAAC,iBAAiB,KAAK,SAAS,EAAE,CAAC;YACzC,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,OAAO;YACL,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,EAAE,EAAE;SACzE,CAAC;IACJ,CAAC;IAEO,KAAK;QACX,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;IACvC,CAAC;CACF"}
|
|
@@ -11,6 +11,7 @@ import type { SimAwsServiceTarget } from "../../../serve/controller/sim-service-
|
|
|
11
11
|
* the Route53 resolver easier to read because the resolver only has to follow
|
|
12
12
|
* records and ask this mapper whether the current name is a terminal service
|
|
13
13
|
* target.
|
|
14
|
+
|
|
14
15
|
*/
|
|
15
16
|
export declare class SimRoute53ServiceTargetResolver {
|
|
16
17
|
private readonly s3Targets;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-r53-service-target-resolver.d.ts","sourceRoot":"","sources":["../../../../src/service/route53/resolve/sim-r53-service-target-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAW/F
|
|
1
|
+
{"version":3,"file":"sim-r53-service-target-resolver.d.ts","sourceRoot":"","sources":["../../../../src/service/route53/resolve/sim-r53-service-target-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAW/F;;;;;;;;;;;;;GAaG;AACH,qBAAa,+BAA+B;IAC1C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAoC;IAE9D;;;;;;OAMG;IACH,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CAezD;IAED;;;;;;OAMG;IACH,OAAO,CAAC,uBAAuB;IAa/B;;;;;;;;;OASG;IACH,OAAO,CAAC,uBAAuB;IA0B/B;;;;;;;;;;OAUG;IACH,OAAO,CAAC,8BAA8B;IA2BtC;;;;;;;;;;OAUG;IACH,OAAO,CAAC,oBAAoB;IA2B5B;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,uBAAuB;CA0BhC"}
|
|
@@ -17,6 +17,7 @@ const cognitoIdpServiceLabel = "cognito-idp";
|
|
|
17
17
|
* the Route53 resolver easier to read because the resolver only has to follow
|
|
18
18
|
* records and ask this mapper whether the current name is a terminal service
|
|
19
19
|
* target.
|
|
20
|
+
|
|
20
21
|
*/
|
|
21
22
|
export class SimRoute53ServiceTargetResolver {
|
|
22
23
|
s3Targets = new SimRoute53S3ServiceTargets();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-r53-service-target-resolver.js","sourceRoot":"","sources":["../../../../src/service/route53/resolve/sim-r53-service-target-resolver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAElF,OAAO,EAAE,0BAA0B,EAAE,MAAM,2DAA2D,CAAC;AACvG,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAE5E,MAAM,sBAAsB,GAAG,YAAY,CAAC;AAC5C,MAAM,sBAAsB,GAAG,aAAa,CAAC;AAE7C
|
|
1
|
+
{"version":3,"file":"sim-r53-service-target-resolver.js","sourceRoot":"","sources":["../../../../src/service/route53/resolve/sim-r53-service-target-resolver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAElF,OAAO,EAAE,0BAA0B,EAAE,MAAM,2DAA2D,CAAC;AACvG,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAE5E,MAAM,sBAAsB,GAAG,YAAY,CAAC;AAC5C,MAAM,sBAAsB,GAAG,aAAa,CAAC;AAE7C;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,+BAA+B;IACzB,SAAS,GAAG,IAAI,0BAA0B,EAAE,CAAC;IAE9D;;;;;;OAMG;IACH,OAAO,CAAC,QAAgB;QACtB,MAAM,WAAW,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC;QACpD,qCAAqC;QACrC,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,CACL,IAAI,CAAC,uBAAuB,CAAC,WAAW,CAAC;YACzC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,WAAW,CAAC;YACnC,IAAI,CAAC,uBAAuB,CAAC,WAAW,CAAC;YACzC,IAAI,CAAC,8BAA8B,CAAC,WAAW,CAAC;YAChD,IAAI,CAAC,oBAAoB,CAAC,WAAW,CAAC;YACtC,IAAI,CAAC,uBAAuB,CAAC,WAAW,CAAC,CAC1C,CAAC;IACJ,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C,MAAM,KAAK,CAAC,EAAE,CAAC;YAC5B,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO;YACL,OAAO,EAAE,yBAAyB;YAClC,YAAY,EAAE,EAAE;YAChB,UAAU,EAAE,UAA2B;SACxC,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import { type SimAwsServiceHosts } from "../../../serve/controller/host/sim-aws-service-hosts.js";
|
|
1
2
|
import type { SimAwsServiceTarget } from "../../../serve/controller/sim-service-controller.js";
|
|
2
3
|
import type { SimRoute53HostedZone } from "../hosted-zone/sim-route53-hosted-zone.js";
|
|
3
4
|
interface SimRoute53ResolverProperties {
|
|
4
5
|
readonly hostedZones: ReadonlyMap<string, SimRoute53HostedZone>;
|
|
6
|
+
/**
|
|
7
|
+
* Where a hostname a simulated resource claimed for itself is looked up,
|
|
8
|
+
* such as a Cognito user pool custom domain.
|
|
9
|
+
*/
|
|
10
|
+
readonly serviceHosts?: SimAwsServiceHosts | undefined;
|
|
5
11
|
}
|
|
6
12
|
/**
|
|
7
13
|
* Resolves Yulin-local hostnames through simulated Route53 hosted-zone records.
|
|
@@ -9,6 +15,7 @@ interface SimRoute53ResolverProperties {
|
|
|
9
15
|
export declare class SimRoute53Resolver {
|
|
10
16
|
private readonly recordFinder;
|
|
11
17
|
private readonly serviceTargetResolver;
|
|
18
|
+
private readonly serviceHosts;
|
|
12
19
|
constructor(properties: SimRoute53ResolverProperties);
|
|
13
20
|
/**
|
|
14
21
|
* Resolve an HTTP hostname to a simulated AWS service target.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-route53-resolver.d.ts","sourceRoot":"","sources":["../../../../src/service/route53/resolve/sim-route53-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAM/F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAOtF,UAAU,4BAA4B;IACpC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-route53-resolver.d.ts","sourceRoot":"","sources":["../../../../src/service/route53/resolve/sim-route53-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,yDAAyD,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAM/F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAOtF,UAAU,4BAA4B;IACpC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;IAEhE;;;OAGG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;CACxD;AAED;;GAEG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAmC;IAChE,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CACE;IACxC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAqB;IAElD,YAAY,UAAU,EAAE,4BAA4B,EAKnD;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CA+CjE;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,wBAAwB;CAoBjC"}
|