@kensio/yulin 1.15.1 → 1.16.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/README.md +46 -46
- package/dist/sdk/error/sim-sdk.error.d.ts +10 -0
- package/dist/sdk/error/sim-sdk.error.d.ts.map +1 -1
- package/dist/sdk/error/sim-sdk.error.js +10 -0
- package/dist/sdk/error/sim-sdk.error.js.map +1 -1
- package/dist/sdk/index.d.ts +1 -1
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/router/resolve-sim-sdk-command-router.d.ts.map +1 -1
- package/dist/sdk/router/resolve-sim-sdk-command-router.js +5 -0
- package/dist/sdk/router/resolve-sim-sdk-command-router.js.map +1 -1
- package/dist/sdk/wire/sim-sdk-wire-command.d.ts +20 -0
- package/dist/sdk/wire/sim-sdk-wire-command.d.ts.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-command.js +31 -0
- package/dist/sdk/wire/sim-sdk-wire-command.js.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-dispatcher.d.ts +42 -0
- package/dist/sdk/wire/sim-sdk-wire-dispatcher.d.ts.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-dispatcher.js +63 -0
- package/dist/sdk/wire/sim-sdk-wire-dispatcher.js.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-json.d.ts +26 -0
- package/dist/sdk/wire/sim-sdk-wire-json.d.ts.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-json.js +59 -0
- package/dist/sdk/wire/sim-sdk-wire-json.js.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-operation.d.ts +37 -0
- package/dist/sdk/wire/sim-sdk-wire-operation.d.ts.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-operation.js +79 -0
- package/dist/sdk/wire/sim-sdk-wire-operation.js.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-response.d.ts +17 -0
- package/dist/sdk/wire/sim-sdk-wire-response.d.ts.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-response.js +67 -0
- package/dist/sdk/wire/sim-sdk-wire-response.js.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-unbridged.d.ts +17 -0
- package/dist/sdk/wire/sim-sdk-wire-unbridged.d.ts.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-unbridged.js +25 -0
- package/dist/sdk/wire/sim-sdk-wire-unbridged.js.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire.types.d.ts +32 -0
- package/dist/sdk/wire/sim-sdk-wire.types.d.ts.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire.types.js +2 -0
- package/dist/sdk/wire/sim-sdk-wire.types.js.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-endpoint-style.d.ts +33 -0
- package/dist/serve/payload-2/sim-payload-2-endpoint-style.d.ts.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-endpoint-style.js +2 -0
- package/dist/serve/payload-2/sim-payload-2-endpoint-style.js.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-event-builder.d.ts.map +1 -1
- package/dist/serve/payload-2/sim-payload-2-event-builder.js +2 -2
- package/dist/serve/payload-2/sim-payload-2-event-builder.js.map +1 -1
- package/dist/serve/payload-2/sim-payload-2-event-query.d.ts +12 -0
- package/dist/serve/payload-2/sim-payload-2-event-query.d.ts.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-event-query.js +15 -0
- package/dist/serve/payload-2/sim-payload-2-event-query.js.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-event-request.d.ts +32 -0
- package/dist/serve/payload-2/sim-payload-2-event-request.d.ts.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-event-request.js +42 -0
- package/dist/serve/payload-2/sim-payload-2-event-request.js.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-event.factory.d.ts +15 -0
- package/dist/serve/payload-2/sim-payload-2-event.factory.d.ts.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-event.factory.js +71 -0
- package/dist/serve/payload-2/sim-payload-2-event.factory.js.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-request-parts.d.ts +23 -12
- package/dist/serve/payload-2/sim-payload-2-request-parts.d.ts.map +1 -1
- package/dist/serve/payload-2/sim-payload-2-request-parts.js +38 -26
- package/dist/serve/payload-2/sim-payload-2-request-parts.js.map +1 -1
- package/dist/service/apigatewayv2/factory/http-api-proxy-event.factory.d.ts +35 -0
- package/dist/service/apigatewayv2/factory/http-api-proxy-event.factory.d.ts.map +1 -0
- package/dist/service/apigatewayv2/factory/http-api-proxy-event.factory.js +65 -0
- package/dist/service/apigatewayv2/factory/http-api-proxy-event.factory.js.map +1 -0
- package/dist/service/apigatewayv2/index.d.ts +1 -0
- package/dist/service/apigatewayv2/index.d.ts.map +1 -1
- package/dist/service/apigatewayv2/index.js +1 -0
- package/dist/service/apigatewayv2/index.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts +10 -36
- 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 +18 -65
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-cloudwatch-collaborators.d.ts +22 -0
- package/dist/service/aws/factory/sim-aws-cloudwatch-collaborators.d.ts.map +1 -0
- package/dist/service/aws/factory/sim-aws-cloudwatch-collaborators.js +20 -0
- package/dist/service/aws/factory/sim-aws-cloudwatch-collaborators.js.map +1 -0
- package/dist/service/aws/factory/sim-aws-registered-service-builder.d.ts +71 -0
- package/dist/service/aws/factory/sim-aws-registered-service-builder.d.ts.map +1 -0
- package/dist/service/aws/factory/sim-aws-registered-service-builder.js +96 -0
- package/dist/service/aws/factory/sim-aws-registered-service-builder.js.map +1 -0
- package/dist/service/aws/factory/sim-aws-self-contained-service-builder.d.ts +9 -0
- package/dist/service/aws/factory/sim-aws-self-contained-service-builder.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-self-contained-service-builder.js +11 -0
- package/dist/service/aws/factory/sim-aws-self-contained-service-builder.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-service-factory.d.ts +7 -0
- package/dist/service/aws/factory/sim-aws-service-factory.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-service-factory.js +19 -5
- package/dist/service/aws/factory/sim-aws-service-factory.js.map +1 -1
- package/dist/service/aws/sim-aws-account-region-scope.d.ts +6 -0
- package/dist/service/aws/sim-aws-account-region-scope.d.ts.map +1 -1
- package/dist/service/aws/sim-aws-account-region-scope.js +8 -0
- package/dist/service/aws/sim-aws-account-region-scope.js.map +1 -1
- package/dist/service/aws/sim-aws-service-accessors.d.ts +6 -0
- package/dist/service/aws/sim-aws-service-accessors.d.ts.map +1 -1
- package/dist/service/aws/sim-aws-service-accessors.js +8 -0
- package/dist/service/aws/sim-aws-service-accessors.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-alarm-cfn.d.ts +26 -0
- package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-alarm-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-alarm-cfn.js +28 -0
- package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-alarm-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-cfn-value-adapter.d.ts +6 -0
- package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-cfn-value-adapter.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-cfn-value-adapter.js +13 -0
- package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-cfn-value-adapter.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-cfn-value-adapter.d.ts +6 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-cfn-value-adapter.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-cfn-value-adapter.js +19 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-cfn-value-adapter.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-dkim-tokens.d.ts +27 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-dkim-tokens.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-dkim-tokens.js +46 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-dkim-tokens.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-identity-cfn.d.ts +33 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-identity-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-identity-cfn.js +48 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-identity-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-template-cfn.d.ts +27 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-template-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-template-cfn.js +29 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-template-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js +4 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js.map +1 -1
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js +8 -0
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js.map +1 -1
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.d.ts +3 -2
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.d.ts.map +1 -1
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.js.map +1 -1
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-signer.d.ts +5 -2
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-signer.d.ts.map +1 -1
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-signer.js +38 -2
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-signer.js.map +1 -1
- package/dist/service/cloudfront/origin/custom/sim-cf-function-url-origin-template.factory.d.ts.map +1 -1
- package/dist/service/cloudfront/origin/custom/sim-cf-function-url-origin-template.factory.js +5 -2
- package/dist/service/cloudfront/origin/custom/sim-cf-function-url-origin-template.factory.js.map +1 -1
- package/dist/service/cloudwatch/alarm/action/sim-aws-cloudwatch-alarm-topics.d.ts +34 -0
- package/dist/service/cloudwatch/alarm/action/sim-aws-cloudwatch-alarm-topics.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/action/sim-aws-cloudwatch-alarm-topics.js +51 -0
- package/dist/service/cloudwatch/alarm/action/sim-aws-cloudwatch-alarm-topics.js.map +1 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-action-failures.d.ts +54 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-action-failures.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-action-failures.js +70 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-action-failures.js.map +1 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-actions.d.ts +30 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-actions.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-actions.js +58 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-actions.js.map +1 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-notification.d.ts +26 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-notification.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-notification.js +56 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-notification.js.map +1 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-targets.d.ts +37 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-targets.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-targets.js +19 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-targets.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-arn.d.ts +10 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-arn.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-arn.js +11 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-arn.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-definition.d.ts +33 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-definition.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-definition.js +2 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-definition.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-evaluation.d.ts +32 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-evaluation.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-evaluation.js +75 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-evaluation.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-history.d.ts +26 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-history.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-history.js +16 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-history.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-periods.d.ts +23 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-periods.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-periods.js +37 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-periods.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-schedule.d.ts +55 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-schedule.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-schedule.js +84 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-schedule.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-state.d.ts +18 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-state.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-state.js +29 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-state.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-store.d.ts +24 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-store.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-store.js +33 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-store.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm.d.ts +57 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm.js +84 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-comparison.d.ts +19 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-comparison.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-comparison.js +48 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-comparison.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-missing-data.d.ts +16 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-missing-data.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-missing-data.js +31 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-missing-data.js.map +1 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-creator.d.ts +33 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-creator.d.ts.map +1 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-creator.js +41 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-creator.js.map +1 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-properties.d.ts +39 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-properties.d.ts.map +1 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-properties.js +80 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-properties.js.map +1 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-property-rules.d.ts +20 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-property-rules.d.ts.map +1 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-property-rules.js +80 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-property-rules.js.map +1 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-values.d.ts +56 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-values.d.ts.map +1 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-values.js +107 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-values.js.map +1 -0
- package/dist/service/cloudwatch/cfn/sim-cloudwatch-cfn-resource-factory.d.ts +29 -0
- package/dist/service/cloudwatch/cfn/sim-cloudwatch-cfn-resource-factory.d.ts.map +1 -0
- package/dist/service/cloudwatch/cfn/sim-cloudwatch-cfn-resource-factory.js +43 -0
- package/dist/service/cloudwatch/cfn/sim-cloudwatch-cfn-resource-factory.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/alarm.command.d.ts +155 -0
- package/dist/service/cloudwatch/command/alarm/alarm.command.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/alarm.command.js +2 -0
- package/dist/service/cloudwatch/command/alarm/alarm.command.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-action-input.d.ts +19 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-action-input.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-action-input.js +56 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-action-input.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-context.d.ts +22 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-context.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-context.js +2 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-context.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-detail.d.ts +15 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-detail.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-detail.js +61 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-detail.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-input.d.ts +7 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-input.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-input.js +39 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-input.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-numbers.d.ts +20 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-numbers.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-numbers.js +52 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-numbers.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-reads.d.ts +25 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-reads.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-reads.js +60 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-reads.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-selection.d.ts +12 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-selection.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-selection.js +59 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-selection.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-writes.d.ts +23 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-writes.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-writes.js +63 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-writes.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-set-alarm-state.d.ts +19 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-set-alarm-state.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-set-alarm-state.js +47 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-set-alarm-state.js.map +1 -0
- package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-authorizer.d.ts +41 -0
- package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-authorizer.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-authorizer.js +65 -0
- package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-authorizer.js.map +1 -0
- package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-decide.d.ts +23 -0
- package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-decide.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-decide.js +30 -0
- package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-decide.js.map +1 -0
- package/dist/service/cloudwatch/command/data/data.command.d.ts +42 -0
- package/dist/service/cloudwatch/command/data/data.command.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/data/data.command.js +2 -0
- package/dist/service/cloudwatch/command/data/data.command.js.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-datum.d.ts +11 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-datum.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-datum.js +66 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-datum.js.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-value.d.ts +14 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-value.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-value.js +58 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-value.js.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-observation.d.ts +15 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-observation.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-observation.js +34 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-observation.js.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-put-metric-data.d.ts +28 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-put-metric-data.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-put-metric-data.js +66 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-put-metric-data.js.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-weighted-values.d.ts +9 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-weighted-values.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-weighted-values.js +22 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-weighted-values.js.map +1 -0
- package/dist/service/cloudwatch/command/query/query.command.d.ts +133 -0
- package/dist/service/cloudwatch/command/query/query.command.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/query.command.js +2 -0
- package/dist/service/cloudwatch/command/query/query.command.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-data.d.ts +25 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-data.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-data.js +46 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-data.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-statistics.d.ts +25 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-statistics.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-statistics.js +55 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-statistics.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-list-metrics.d.ts +23 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-list-metrics.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-list-metrics.js +46 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-list-metrics.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-query.d.ts +25 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-query.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-query.js +63 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-query.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-request.d.ts +26 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-request.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-request.js +61 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-request.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-result.d.ts +20 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-result.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-result.js +36 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-result.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-filter.d.ts +12 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-filter.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-filter.js +27 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-filter.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-listing.d.ts +20 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-listing.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-listing.js +52 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-listing.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-requested-statistics.d.ts +10 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-requested-statistics.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-requested-statistics.js +20 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-requested-statistics.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-statistic-datapoints.d.ts +17 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-statistic-datapoints.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-statistic-datapoints.js +45 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-statistic-datapoints.js.map +1 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-command.types.d.ts +7 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-command.types.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-command.types.js +2 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-command.types.js.map +1 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-page.d.ts +24 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-page.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-page.js +36 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-page.js.map +1 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-request-options.d.ts +21 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-request-options.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-request-options.js +10 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-request-options.js.map +1 -0
- package/dist/service/cloudwatch/error/sim-cloudwatch.error.d.ts +48 -0
- package/dist/service/cloudwatch/error/sim-cloudwatch.error.d.ts.map +1 -0
- package/dist/service/cloudwatch/error/sim-cloudwatch.error.js +51 -0
- package/dist/service/cloudwatch/error/sim-cloudwatch.error.js.map +1 -0
- package/dist/service/cloudwatch/index.d.ts +26 -0
- package/dist/service/cloudwatch/index.d.ts.map +1 -0
- package/dist/service/cloudwatch/index.js +25 -0
- package/dist/service/cloudwatch/index.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-datapoint.d.ts +54 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-datapoint.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-datapoint.js +29 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-datapoint.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-dimension.d.ts +37 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-dimension.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-dimension.js +42 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-dimension.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-metric-store.d.ts +46 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-metric-store.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-metric-store.js +61 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-metric-store.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-metric.d.ts +53 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-metric.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-metric.js +45 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-metric.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-name.d.ts +22 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-name.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-name.js +54 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-name.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-namespace.d.ts +22 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-namespace.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-namespace.js +34 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-namespace.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-period.d.ts +32 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-period.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-period.js +70 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-period.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-statistic.d.ts +20 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-statistic.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-statistic.js +51 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-statistic.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-time-range.d.ts +16 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-time-range.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-time-range.js +25 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-time-range.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-unit.d.ts +18 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-unit.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-unit.js +56 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-unit.js.map +1 -0
- package/dist/service/cloudwatch/sdk/sim-cloudwatch-sdk-command-router.d.ts +18 -0
- package/dist/service/cloudwatch/sdk/sim-cloudwatch-sdk-command-router.d.ts.map +1 -0
- package/dist/service/cloudwatch/sdk/sim-cloudwatch-sdk-command-router.js +60 -0
- package/dist/service/cloudwatch/sdk/sim-cloudwatch-sdk-command-router.js.map +1 -0
- package/dist/service/cloudwatch/sim-cloudwatch-commands.d.ts +47 -0
- package/dist/service/cloudwatch/sim-cloudwatch-commands.d.ts.map +1 -0
- package/dist/service/cloudwatch/sim-cloudwatch-commands.js +86 -0
- package/dist/service/cloudwatch/sim-cloudwatch-commands.js.map +1 -0
- package/dist/service/cloudwatch/sim-cloudwatch.d.ts +98 -0
- package/dist/service/cloudwatch/sim-cloudwatch.d.ts.map +1 -0
- package/dist/service/cloudwatch/sim-cloudwatch.js +138 -0
- package/dist/service/cloudwatch/sim-cloudwatch.js.map +1 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.d.ts.map +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js +7 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js.map +1 -1
- package/dist/service/cognito/command/hosted/hosted-auth.command.d.ts +10 -0
- package/dist/service/cognito/command/hosted/hosted-auth.command.d.ts.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.d.ts +14 -13
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.d.ts.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.js +14 -18
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.js.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-request.d.ts +15 -6
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-request.d.ts.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-request.js +26 -19
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-request.js.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.js +5 -1
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.js.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.d.ts +41 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.d.ts.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.js +71 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.js.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.d.ts +32 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.d.ts.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.js +36 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.js.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-sign-in-value-check.d.ts +30 -0
- package/dist/service/cognito/command/user/sim-cognito-sign-in-value-check.d.ts.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-sign-in-value-check.js +47 -0
- package/dist/service/cognito/command/user/sim-cognito-sign-in-value-check.js.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js +8 -4
- package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-user-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-user-commands.js +7 -3
- package/dist/service/cognito/command/user/sim-cognito-user-commands.js.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-user-update-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-user-update-commands.js +3 -1
- package/dist/service/cognito/command/user/sim-cognito-user-update-commands.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.d.ts +9 -16
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.js +9 -26
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.d.ts +12 -3
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.js +19 -3
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.js +5 -4
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts +3 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js +4 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js.map +1 -1
- package/dist/service/cognito/command/user-pool/user-pool.command.d.ts +7 -6
- package/dist/service/cognito/command/user-pool/user-pool.command.d.ts.map +1 -1
- package/dist/service/cognito/error/sim-cognito-managed-login.error.d.ts +22 -0
- package/dist/service/cognito/error/sim-cognito-managed-login.error.d.ts.map +1 -0
- package/dist/service/cognito/error/sim-cognito-managed-login.error.js +32 -0
- package/dist/service/cognito/error/sim-cognito-managed-login.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 +1 -1
- package/dist/service/cognito/index.d.ts.map +1 -1
- package/dist/service/cognito/index.js +1 -1
- package/dist/service/cognito/index.js.map +1 -1
- package/dist/service/cognito/serve/page/sim-cognito-confirm-page.d.ts +29 -0
- package/dist/service/cognito/serve/page/sim-cognito-confirm-page.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-confirm-page.js +90 -0
- package/dist/service/cognito/serve/page/sim-cognito-confirm-page.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-managed-login.d.ts +38 -0
- package/dist/service/cognito/serve/page/sim-cognito-managed-login.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-managed-login.js +62 -0
- package/dist/service/cognito/serve/page/sim-cognito-managed-login.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-form.d.ts +47 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-form.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-form.js +76 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-form.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-markup.d.ts +69 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-markup.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-markup.js +111 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-markup.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-paths.d.ts +39 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-paths.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-paths.js +59 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-paths.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-request.d.ts +22 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-request.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-request.js +30 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-request.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.d.ts +28 -0
- package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.js +45 -0
- package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-sign-up-page.d.ts +35 -0
- package/dist/service/cognito/serve/page/sim-cognito-sign-up-page.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-sign-up-page.js +85 -0
- package/dist/service/cognito/serve/page/sim-cognito-sign-up-page.js.map +1 -0
- package/dist/service/cognito/serve/sim-cognito-domain-endpoints.d.ts +20 -23
- package/dist/service/cognito/serve/sim-cognito-domain-endpoints.d.ts.map +1 -1
- package/dist/service/cognito/serve/sim-cognito-domain-endpoints.js +40 -19
- package/dist/service/cognito/serve/sim-cognito-domain-endpoints.js.map +1 -1
- package/dist/service/cognito/serve/sim-cognito-domain-request.d.ts +14 -0
- package/dist/service/cognito/serve/sim-cognito-domain-request.d.ts.map +1 -0
- package/dist/service/cognito/serve/sim-cognito-domain-request.js +2 -0
- package/dist/service/cognito/serve/sim-cognito-domain-request.js.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-sign-in-attribute.d.ts +22 -0
- package/dist/service/cognito/user-pool/sim-cognito-sign-in-attribute.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-sign-in-attribute.js +52 -0
- package/dist/service/cognito/user-pool/sim-cognito-sign-in-attribute.js.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts +26 -9
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js +23 -9
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool.js +2 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool.js.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-username-attributes.d.ts +87 -0
- package/dist/service/cognito/user-pool/sim-cognito-username-attributes.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-username-attributes.js +137 -0
- package/dist/service/cognito/user-pool/sim-cognito-username-attributes.js.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-store.d.ts +25 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-store.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-store.js +39 -2
- package/dist/service/cognito/user-pool/user/sim-cognito-user-store.js.map +1 -1
- package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-payload-hash.d.ts +8 -0
- package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-payload-hash.d.ts.map +1 -1
- package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-payload-hash.js +14 -6
- package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-payload-hash.js.map +1 -1
- package/dist/service/lambda/factory/lambda-dynamodb-stream-event.factory.d.ts +47 -0
- package/dist/service/lambda/factory/lambda-dynamodb-stream-event.factory.d.ts.map +1 -0
- package/dist/service/lambda/factory/lambda-dynamodb-stream-event.factory.js +96 -0
- package/dist/service/lambda/factory/lambda-dynamodb-stream-event.factory.js.map +1 -0
- package/dist/service/lambda/factory/lambda-dynamodb-stream-record-change.d.ts +36 -0
- package/dist/service/lambda/factory/lambda-dynamodb-stream-record-change.d.ts.map +1 -0
- package/dist/service/lambda/factory/lambda-dynamodb-stream-record-change.js +64 -0
- package/dist/service/lambda/factory/lambda-dynamodb-stream-record-change.js.map +1 -0
- package/dist/service/lambda/factory/lambda-function-url-event.factory.d.ts +37 -0
- package/dist/service/lambda/factory/lambda-function-url-event.factory.d.ts.map +1 -0
- package/dist/service/lambda/factory/lambda-function-url-event.factory.js +55 -0
- package/dist/service/lambda/factory/lambda-function-url-event.factory.js.map +1 -0
- package/dist/service/lambda/factory/lambda-sqs-event.factory.d.ts +37 -0
- package/dist/service/lambda/factory/lambda-sqs-event.factory.d.ts.map +1 -0
- package/dist/service/lambda/factory/lambda-sqs-event.factory.js +78 -0
- package/dist/service/lambda/factory/lambda-sqs-event.factory.js.map +1 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.d.ts +27 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.d.ts.map +1 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.js +78 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.js.map +1 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.d.ts +23 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.d.ts.map +1 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.js +111 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.js.map +1 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.d.ts +37 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.d.ts.map +1 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.js +78 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.js.map +1 -0
- package/dist/service/lambda/function/code/vm/sdk/sim-lambda-vm-sdk-module-provider.d.ts +5 -3
- package/dist/service/lambda/function/code/vm/sdk/sim-lambda-vm-sdk-module-provider.d.ts.map +1 -1
- package/dist/service/lambda/function/code/vm/sdk/sim-lambda-vm-sdk-module-provider.js.map +1 -1
- package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.d.ts +10 -2
- package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.d.ts.map +1 -1
- package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.js +21 -6
- package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.js.map +1 -1
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-module.types.d.ts +12 -0
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-module.types.d.ts.map +1 -0
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-module.types.js +2 -0
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-module.types.js.map +1 -0
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-modules.d.ts.map +1 -1
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-modules.js +5 -1
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-modules.js.map +1 -1
- package/dist/service/lambda/function/environment/sim-lambda-environment.d.ts.map +1 -1
- package/dist/service/lambda/function/environment/sim-lambda-environment.js +2 -0
- package/dist/service/lambda/function/environment/sim-lambda-environment.js.map +1 -1
- package/dist/service/lambda/function/environment/sim-lambda-execution-credentials.d.ts +19 -0
- package/dist/service/lambda/function/environment/sim-lambda-execution-credentials.d.ts.map +1 -0
- package/dist/service/lambda/function/environment/sim-lambda-execution-credentials.js +20 -0
- package/dist/service/lambda/function/environment/sim-lambda-execution-credentials.js.map +1 -0
- package/dist/service/lambda/index.d.ts +3 -0
- package/dist/service/lambda/index.d.ts.map +1 -1
- package/dist/service/lambda/index.js +3 -0
- package/dist/service/lambda/index.js.map +1 -1
- package/dist/service/lambda/serve/auth/sim-lambda-url-payload-hash.d.ts +28 -0
- package/dist/service/lambda/serve/auth/sim-lambda-url-payload-hash.d.ts.map +1 -0
- package/dist/service/lambda/serve/auth/sim-lambda-url-payload-hash.js +56 -0
- package/dist/service/lambda/serve/auth/sim-lambda-url-payload-hash.js.map +1 -0
- package/dist/service/lambda/serve/response/sim-lambda-url-error-response.d.ts +16 -0
- package/dist/service/lambda/serve/response/sim-lambda-url-error-response.d.ts.map +1 -1
- package/dist/service/lambda/serve/response/sim-lambda-url-error-response.js +24 -0
- package/dist/service/lambda/serve/response/sim-lambda-url-error-response.js.map +1 -1
- package/dist/service/lambda/serve/sim-lambda-controller.d.ts +6 -0
- package/dist/service/lambda/serve/sim-lambda-controller.d.ts.map +1 -1
- package/dist/service/lambda/serve/sim-lambda-controller.js +11 -0
- package/dist/service/lambda/serve/sim-lambda-controller.js.map +1 -1
- package/dist/service/s3/factory/s3-notification-event-object.d.ts +10 -0
- package/dist/service/s3/factory/s3-notification-event-object.d.ts.map +1 -0
- package/dist/service/s3/factory/s3-notification-event-object.js +12 -0
- package/dist/service/s3/factory/s3-notification-event-object.js.map +1 -0
- package/dist/service/s3/factory/s3-notification-event.factory.d.ts +45 -0
- package/dist/service/s3/factory/s3-notification-event.factory.d.ts.map +1 -0
- package/dist/service/s3/factory/s3-notification-event.factory.js +102 -0
- package/dist/service/s3/factory/s3-notification-event.factory.js.map +1 -0
- package/dist/service/s3/index.d.ts +2 -0
- package/dist/service/s3/index.d.ts.map +1 -1
- package/dist/service/s3/index.js +1 -0
- package/dist/service/s3/index.js.map +1 -1
- package/dist/service/s3/notification/event/sim-s3-event-records.d.ts +32 -1
- package/dist/service/s3/notification/event/sim-s3-event-records.d.ts.map +1 -1
- package/dist/service/s3/notification/event/sim-s3-event-records.js +5 -5
- package/dist/service/s3/notification/event/sim-s3-event-records.js.map +1 -1
- package/dist/service/s3/notification/event/sim-s3-event.type.d.ts +83 -0
- package/dist/service/s3/notification/event/sim-s3-event.type.d.ts.map +1 -0
- package/dist/service/s3/notification/event/sim-s3-event.type.js +2 -0
- package/dist/service/s3/notification/event/sim-s3-event.type.js.map +1 -0
- package/dist/service/ses/account/sim-ses-account.d.ts +59 -0
- package/dist/service/ses/account/sim-ses-account.d.ts.map +1 -0
- package/dist/service/ses/account/sim-ses-account.js +66 -0
- package/dist/service/ses/account/sim-ses-account.js.map +1 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-creator.d.ts +35 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-creator.d.ts.map +1 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-creator.js +52 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-creator.js.map +1 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-properties.d.ts +37 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-properties.d.ts.map +1 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-properties.js +61 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-properties.js.map +1 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-unsimulated-properties.d.ts +17 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-unsimulated-properties.d.ts.map +1 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-unsimulated-properties.js +48 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-unsimulated-properties.js.map +1 -0
- package/dist/service/ses/cfn/sim-cfn-ses-resource-error.d.ts +24 -0
- package/dist/service/ses/cfn/sim-cfn-ses-resource-error.d.ts.map +1 -0
- package/dist/service/ses/cfn/sim-cfn-ses-resource-error.js +39 -0
- package/dist/service/ses/cfn/sim-cfn-ses-resource-error.js.map +1 -0
- package/dist/service/ses/cfn/sim-cfn-ses-resource-types.d.ts +13 -0
- package/dist/service/ses/cfn/sim-cfn-ses-resource-types.d.ts.map +1 -0
- package/dist/service/ses/cfn/sim-cfn-ses-resource-types.js +13 -0
- package/dist/service/ses/cfn/sim-cfn-ses-resource-types.js.map +1 -0
- package/dist/service/ses/cfn/sim-ses-cfn-resource-factory.d.ts +28 -0
- package/dist/service/ses/cfn/sim-ses-cfn-resource-factory.d.ts.map +1 -0
- package/dist/service/ses/cfn/sim-ses-cfn-resource-factory.js +69 -0
- package/dist/service/ses/cfn/sim-ses-cfn-resource-factory.js.map +1 -0
- package/dist/service/ses/cfn/template/sim-cfn-ses-template-creator.d.ts +30 -0
- package/dist/service/ses/cfn/template/sim-cfn-ses-template-creator.d.ts.map +1 -0
- package/dist/service/ses/cfn/template/sim-cfn-ses-template-creator.js +48 -0
- package/dist/service/ses/cfn/template/sim-cfn-ses-template-creator.js.map +1 -0
- package/dist/service/ses/cfn/template/sim-cfn-ses-template-properties.d.ts +58 -0
- package/dist/service/ses/cfn/template/sim-cfn-ses-template-properties.d.ts.map +1 -0
- package/dist/service/ses/cfn/template/sim-cfn-ses-template-properties.js +121 -0
- package/dist/service/ses/cfn/template/sim-cfn-ses-template-properties.js.map +1 -0
- package/dist/service/ses/command/account/account.command.d.ts +59 -0
- package/dist/service/ses/command/account/account.command.d.ts.map +1 -0
- package/dist/service/ses/command/account/account.command.js +2 -0
- package/dist/service/ses/command/account/account.command.js.map +1 -0
- package/dist/service/ses/command/account/sim-ses-account-commands.d.ts +34 -0
- package/dist/service/ses/command/account/sim-ses-account-commands.d.ts.map +1 -0
- package/dist/service/ses/command/account/sim-ses-account-commands.js +41 -0
- package/dist/service/ses/command/account/sim-ses-account-commands.js.map +1 -0
- package/dist/service/ses/command/account/sim-ses-account-details-input.d.ts +11 -0
- package/dist/service/ses/command/account/sim-ses-account-details-input.d.ts.map +1 -0
- package/dist/service/ses/command/account/sim-ses-account-details-input.js +50 -0
- package/dist/service/ses/command/account/sim-ses-account-details-input.js.map +1 -0
- package/dist/service/ses/command/account/sim-ses-account-report.d.ts +21 -0
- package/dist/service/ses/command/account/sim-ses-account-report.d.ts.map +1 -0
- package/dist/service/ses/command/account/sim-ses-account-report.js +45 -0
- package/dist/service/ses/command/account/sim-ses-account-report.js.map +1 -0
- package/dist/service/ses/command/authorize/sim-ses-authorizer.d.ts +55 -0
- package/dist/service/ses/command/authorize/sim-ses-authorizer.d.ts.map +1 -0
- package/dist/service/ses/command/authorize/sim-ses-authorizer.js +78 -0
- package/dist/service/ses/command/authorize/sim-ses-authorizer.js.map +1 -0
- package/dist/service/ses/command/identity/identity.command.d.ts +84 -0
- package/dist/service/ses/command/identity/identity.command.d.ts.map +1 -0
- package/dist/service/ses/command/identity/identity.command.js +2 -0
- package/dist/service/ses/command/identity/identity.command.js.map +1 -0
- package/dist/service/ses/command/identity/sim-ses-identity-commands.d.ts +44 -0
- package/dist/service/ses/command/identity/sim-ses-identity-commands.d.ts.map +1 -0
- package/dist/service/ses/command/identity/sim-ses-identity-commands.js +92 -0
- package/dist/service/ses/command/identity/sim-ses-identity-commands.js.map +1 -0
- package/dist/service/ses/command/identity/sim-ses-unsimulated-identity-input.d.ts +12 -0
- package/dist/service/ses/command/identity/sim-ses-unsimulated-identity-input.d.ts.map +1 -0
- package/dist/service/ses/command/identity/sim-ses-unsimulated-identity-input.js +26 -0
- package/dist/service/ses/command/identity/sim-ses-unsimulated-identity-input.js.map +1 -0
- package/dist/service/ses/command/send/send.command.d.ts +71 -0
- package/dist/service/ses/command/send/send.command.d.ts.map +1 -0
- package/dist/service/ses/command/send/send.command.js +2 -0
- package/dist/service/ses/command/send/send.command.js.map +1 -0
- package/dist/service/ses/command/send/sim-ses-content.d.ts +24 -0
- package/dist/service/ses/command/send/sim-ses-content.d.ts.map +1 -0
- package/dist/service/ses/command/send/sim-ses-content.js +40 -0
- package/dist/service/ses/command/send/sim-ses-content.js.map +1 -0
- package/dist/service/ses/command/send/sim-ses-read-content.d.ts +19 -0
- package/dist/service/ses/command/send/sim-ses-read-content.d.ts.map +1 -0
- package/dist/service/ses/command/send/sim-ses-read-content.js +2 -0
- package/dist/service/ses/command/send/sim-ses-read-content.js.map +1 -0
- package/dist/service/ses/command/send/sim-ses-send-email.d.ts +36 -0
- package/dist/service/ses/command/send/sim-ses-send-email.d.ts.map +1 -0
- package/dist/service/ses/command/send/sim-ses-send-email.js +80 -0
- package/dist/service/ses/command/send/sim-ses-send-email.js.map +1 -0
- package/dist/service/ses/command/send/sim-ses-simple-content.d.ts +12 -0
- package/dist/service/ses/command/send/sim-ses-simple-content.d.ts.map +1 -0
- package/dist/service/ses/command/send/sim-ses-simple-content.js +33 -0
- package/dist/service/ses/command/send/sim-ses-simple-content.js.map +1 -0
- package/dist/service/ses/command/send/sim-ses-template-send.d.ts +34 -0
- package/dist/service/ses/command/send/sim-ses-template-send.d.ts.map +1 -0
- package/dist/service/ses/command/send/sim-ses-template-send.js +101 -0
- package/dist/service/ses/command/send/sim-ses-template-send.js.map +1 -0
- package/dist/service/ses/command/send/sim-ses-unsimulated-send-input.d.ts +12 -0
- package/dist/service/ses/command/send/sim-ses-unsimulated-send-input.d.ts.map +1 -0
- package/dist/service/ses/command/send/sim-ses-unsimulated-send-input.js +26 -0
- package/dist/service/ses/command/send/sim-ses-unsimulated-send-input.js.map +1 -0
- package/dist/service/ses/command/send/sim-ses-verified-identities.d.ts +36 -0
- package/dist/service/ses/command/send/sim-ses-verified-identities.d.ts.map +1 -0
- package/dist/service/ses/command/send/sim-ses-verified-identities.js +50 -0
- package/dist/service/ses/command/send/sim-ses-verified-identities.js.map +1 -0
- package/dist/service/ses/command/sim-ses-command.types.d.ts +8 -0
- package/dist/service/ses/command/sim-ses-command.types.d.ts.map +1 -0
- package/dist/service/ses/command/sim-ses-command.types.js +2 -0
- package/dist/service/ses/command/sim-ses-command.types.js.map +1 -0
- package/dist/service/ses/command/sim-ses-page.d.ts +20 -0
- package/dist/service/ses/command/sim-ses-page.d.ts.map +1 -0
- package/dist/service/ses/command/sim-ses-page.js +49 -0
- package/dist/service/ses/command/sim-ses-page.js.map +1 -0
- package/dist/service/ses/command/sim-ses-request-options.d.ts +12 -0
- package/dist/service/ses/command/sim-ses-request-options.d.ts.map +1 -0
- package/dist/service/ses/command/sim-ses-request-options.js +2 -0
- package/dist/service/ses/command/sim-ses-request-options.js.map +1 -0
- package/dist/service/ses/command/template/sim-ses-template-commands.d.ts +56 -0
- package/dist/service/ses/command/template/sim-ses-template-commands.d.ts.map +1 -0
- package/dist/service/ses/command/template/sim-ses-template-commands.js +96 -0
- package/dist/service/ses/command/template/sim-ses-template-commands.js.map +1 -0
- package/dist/service/ses/command/template/sim-ses-template-reporting.d.ts +14 -0
- package/dist/service/ses/command/template/sim-ses-template-reporting.d.ts.map +1 -0
- package/dist/service/ses/command/template/sim-ses-template-reporting.js +23 -0
- package/dist/service/ses/command/template/sim-ses-template-reporting.js.map +1 -0
- package/dist/service/ses/command/template/template.command.d.ts +98 -0
- package/dist/service/ses/command/template/template.command.d.ts.map +1 -0
- package/dist/service/ses/command/template/template.command.js +2 -0
- package/dist/service/ses/command/template/template.command.js.map +1 -0
- package/dist/service/ses/email/sim-ses-address.d.ts +15 -0
- package/dist/service/ses/email/sim-ses-address.d.ts.map +1 -0
- package/dist/service/ses/email/sim-ses-address.js +29 -0
- package/dist/service/ses/email/sim-ses-address.js.map +1 -0
- package/dist/service/ses/email/sim-ses-sent-email-store.d.ts +33 -0
- package/dist/service/ses/email/sim-ses-sent-email-store.d.ts.map +1 -0
- package/dist/service/ses/email/sim-ses-sent-email-store.js +42 -0
- package/dist/service/ses/email/sim-ses-sent-email-store.js.map +1 -0
- package/dist/service/ses/email/sim-ses-sent-email.d.ts +78 -0
- package/dist/service/ses/email/sim-ses-sent-email.d.ts.map +1 -0
- package/dist/service/ses/email/sim-ses-sent-email.js +61 -0
- package/dist/service/ses/email/sim-ses-sent-email.js.map +1 -0
- package/dist/service/ses/error/sim-ses.error.d.ts +70 -0
- package/dist/service/ses/error/sim-ses.error.d.ts.map +1 -0
- package/dist/service/ses/error/sim-ses.error.js +77 -0
- package/dist/service/ses/error/sim-ses.error.js.map +1 -0
- package/dist/service/ses/identity/sim-ses-identity-name.d.ts +34 -0
- package/dist/service/ses/identity/sim-ses-identity-name.d.ts.map +1 -0
- package/dist/service/ses/identity/sim-ses-identity-name.js +90 -0
- package/dist/service/ses/identity/sim-ses-identity-name.js.map +1 -0
- package/dist/service/ses/identity/sim-ses-identity-store.d.ts +62 -0
- package/dist/service/ses/identity/sim-ses-identity-store.d.ts.map +1 -0
- package/dist/service/ses/identity/sim-ses-identity-store.js +93 -0
- package/dist/service/ses/identity/sim-ses-identity-store.js.map +1 -0
- package/dist/service/ses/identity/sim-ses-identity.d.ts +63 -0
- package/dist/service/ses/identity/sim-ses-identity.d.ts.map +1 -0
- package/dist/service/ses/identity/sim-ses-identity.js +62 -0
- package/dist/service/ses/identity/sim-ses-identity.js.map +1 -0
- package/dist/service/ses/index.d.ts +13 -0
- package/dist/service/ses/index.d.ts.map +1 -0
- package/dist/service/ses/index.js +11 -0
- package/dist/service/ses/index.js.map +1 -0
- package/dist/service/ses/sdk/sim-ses-sdk-command-router.d.ts +18 -0
- package/dist/service/ses/sdk/sim-ses-sdk-command-router.d.ts.map +1 -0
- package/dist/service/ses/sdk/sim-ses-sdk-command-router.js +72 -0
- package/dist/service/ses/sdk/sim-ses-sdk-command-router.js.map +1 -0
- package/dist/service/ses/sim-ses-arn.d.ts +20 -0
- package/dist/service/ses/sim-ses-arn.d.ts.map +1 -0
- package/dist/service/ses/sim-ses-arn.js +25 -0
- package/dist/service/ses/sim-ses-arn.js.map +1 -0
- package/dist/service/ses/sim-ses-commands.d.ts +37 -0
- package/dist/service/ses/sim-ses-commands.d.ts.map +1 -0
- package/dist/service/ses/sim-ses-commands.js +75 -0
- package/dist/service/ses/sim-ses-commands.js.map +1 -0
- package/dist/service/ses/sim-ses-v2.d.ts +139 -0
- package/dist/service/ses/sim-ses-v2.d.ts.map +1 -0
- package/dist/service/ses/sim-ses-v2.js +195 -0
- package/dist/service/ses/sim-ses-v2.js.map +1 -0
- package/dist/service/ses/template/sim-ses-render.d.ts +16 -0
- package/dist/service/ses/template/sim-ses-render.d.ts.map +1 -0
- package/dist/service/ses/template/sim-ses-render.js +88 -0
- package/dist/service/ses/template/sim-ses-render.js.map +1 -0
- package/dist/service/ses/template/sim-ses-template-content.d.ts +28 -0
- package/dist/service/ses/template/sim-ses-template-content.d.ts.map +1 -0
- package/dist/service/ses/template/sim-ses-template-content.js +67 -0
- package/dist/service/ses/template/sim-ses-template-content.js.map +1 -0
- package/dist/service/ses/template/sim-ses-template-store.d.ts +47 -0
- package/dist/service/ses/template/sim-ses-template-store.d.ts.map +1 -0
- package/dist/service/ses/template/sim-ses-template-store.js +81 -0
- package/dist/service/ses/template/sim-ses-template-store.js.map +1 -0
- package/dist/service/ses/template/sim-ses-template.d.ts +38 -0
- package/dist/service/ses/template/sim-ses-template.d.ts.map +1 -0
- package/dist/service/ses/template/sim-ses-template.js +39 -0
- package/dist/service/ses/template/sim-ses-template.js.map +1 -0
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-properties.d.ts +4 -3
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-properties.d.ts.map +1 -1
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-properties.js +4 -3
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-properties.js.map +1 -1
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-property-names.d.ts +2 -2
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-property-names.js +2 -2
- package/dist/service/sns/command/publish/sim-sns-publish-commands.d.ts +3 -0
- package/dist/service/sns/command/publish/sim-sns-publish-commands.d.ts.map +1 -1
- package/dist/service/sns/command/publish/sim-sns-publish-commands.js +4 -2
- package/dist/service/sns/command/publish/sim-sns-publish-commands.js.map +1 -1
- package/dist/service/sns/command/publish/sim-sns-publish-dispatch.d.ts +39 -0
- package/dist/service/sns/command/publish/sim-sns-publish-dispatch.d.ts.map +1 -0
- package/dist/service/sns/command/publish/sim-sns-publish-dispatch.js +42 -0
- package/dist/service/sns/command/publish/sim-sns-publish-dispatch.js.map +1 -0
- package/dist/service/sns/command/publish/sim-sns-publish-input.d.ts +3 -3
- package/dist/service/sns/command/publish/sim-sns-publish-input.d.ts.map +1 -1
- package/dist/service/sns/command/publish/sim-sns-publish-input.js +8 -8
- package/dist/service/sns/command/publish/sim-sns-publish-input.js.map +1 -1
- package/dist/service/sns/command/publish/sim-sns-publish-sms.d.ts +38 -0
- package/dist/service/sns/command/publish/sim-sns-publish-sms.d.ts.map +1 -0
- package/dist/service/sns/command/publish/sim-sns-publish-sms.js +53 -0
- package/dist/service/sns/command/publish/sim-sns-publish-sms.js.map +1 -0
- package/dist/service/sns/command/sim-sns-command.types.d.ts +1 -0
- package/dist/service/sns/command/sim-sns-command.types.d.ts.map +1 -1
- package/dist/service/sns/command/sim-sns-commands.d.ts +12 -4
- package/dist/service/sns/command/sim-sns-commands.d.ts.map +1 -1
- package/dist/service/sns/command/sim-sns-commands.js +39 -4
- package/dist/service/sns/command/sim-sns-commands.js.map +1 -1
- package/dist/service/sns/command/sms/sim-sns-opt-out-commands.d.ts +41 -0
- package/dist/service/sns/command/sms/sim-sns-opt-out-commands.d.ts.map +1 -0
- package/dist/service/sns/command/sms/sim-sns-opt-out-commands.js +56 -0
- package/dist/service/sns/command/sms/sim-sns-opt-out-commands.js.map +1 -0
- package/dist/service/sns/command/sms/sms.command.d.ts +50 -0
- package/dist/service/sns/command/sms/sms.command.d.ts.map +1 -0
- package/dist/service/sns/command/sms/sms.command.js +2 -0
- package/dist/service/sns/command/sms/sms.command.js.map +1 -0
- package/dist/service/sns/delivery/sim-aws-sns-delivery-endpoints.d.ts +5 -6
- package/dist/service/sns/delivery/sim-aws-sns-delivery-endpoints.d.ts.map +1 -1
- package/dist/service/sns/delivery/sim-aws-sns-delivery-endpoints.js +8 -12
- package/dist/service/sns/delivery/sim-aws-sns-delivery-endpoints.js.map +1 -1
- package/dist/service/sns/delivery/sim-sns-no-delivery-endpoints.d.ts +6 -13
- package/dist/service/sns/delivery/sim-sns-no-delivery-endpoints.d.ts.map +1 -1
- package/dist/service/sns/delivery/sim-sns-no-delivery-endpoints.js +13 -2
- package/dist/service/sns/delivery/sim-sns-no-delivery-endpoints.js.map +1 -1
- package/dist/service/sns/delivery/sim-sns-protocol-delivery-endpoints.d.ts +10 -1
- package/dist/service/sns/delivery/sim-sns-protocol-delivery-endpoints.d.ts.map +1 -1
- package/dist/service/sns/delivery/sim-sns-protocol-delivery-endpoints.js.map +1 -1
- package/dist/service/sns/delivery/sms/sim-sns-delivery-sms.d.ts +34 -0
- package/dist/service/sns/delivery/sms/sim-sns-delivery-sms.d.ts.map +1 -0
- package/dist/service/sns/delivery/sms/sim-sns-delivery-sms.js +46 -0
- package/dist/service/sns/delivery/sms/sim-sns-delivery-sms.js.map +1 -0
- package/dist/service/sns/index.d.ts +5 -1
- package/dist/service/sns/index.d.ts.map +1 -1
- package/dist/service/sns/index.js +4 -1
- package/dist/service/sns/index.js.map +1 -1
- package/dist/service/sns/message/sim-sns-message-attribute-rules.d.ts.map +1 -1
- package/dist/service/sns/message/sim-sns-message-attribute-rules.js +9 -1
- package/dist/service/sns/message/sim-sns-message-attribute-rules.js.map +1 -1
- package/dist/service/sns/message/sim-sns-message-attributes.d.ts +8 -0
- package/dist/service/sns/message/sim-sns-message-attributes.d.ts.map +1 -1
- package/dist/service/sns/message/sim-sns-message-attributes.js +10 -0
- package/dist/service/sns/message/sim-sns-message-attributes.js.map +1 -1
- package/dist/service/sns/message/sim-sns-sms-attributes.d.ts +25 -0
- package/dist/service/sns/message/sim-sns-sms-attributes.d.ts.map +1 -0
- package/dist/service/sns/message/sim-sns-sms-attributes.js +46 -0
- package/dist/service/sns/message/sim-sns-sms-attributes.js.map +1 -0
- package/dist/service/sns/sdk/sim-sns-sdk-command-router.d.ts.map +1 -1
- package/dist/service/sns/sdk/sim-sns-sdk-command-router.js +12 -0
- package/dist/service/sns/sdk/sim-sns-sdk-command-router.js.map +1 -1
- package/dist/service/sns/sim-sns-sms.d.ts +63 -0
- package/dist/service/sns/sim-sns-sms.d.ts.map +1 -0
- package/dist/service/sns/sim-sns-sms.js +76 -0
- package/dist/service/sns/sim-sns-sms.js.map +1 -0
- package/dist/service/sns/sim-sns.d.ts +7 -15
- package/dist/service/sns/sim-sns.d.ts.map +1 -1
- package/dist/service/sns/sim-sns.js +23 -30
- package/dist/service/sns/sim-sns.js.map +1 -1
- package/dist/service/sns/sms/sim-sns-opt-out-list.d.ts +40 -0
- package/dist/service/sns/sms/sim-sns-opt-out-list.d.ts.map +1 -0
- package/dist/service/sns/sms/sim-sns-opt-out-list.js +47 -0
- package/dist/service/sns/sms/sim-sns-opt-out-list.js.map +1 -0
- package/dist/service/sns/sms/sim-sns-phone-number.d.ts +21 -0
- package/dist/service/sns/sms/sim-sns-phone-number.d.ts.map +1 -0
- package/dist/service/sns/sms/sim-sns-phone-number.js +41 -0
- package/dist/service/sns/sms/sim-sns-phone-number.js.map +1 -0
- package/dist/service/sns/sms/sim-sns-sent-sms-message.d.ts +69 -0
- package/dist/service/sns/sms/sim-sns-sent-sms-message.d.ts.map +1 -0
- package/dist/service/sns/sms/sim-sns-sent-sms-message.js +71 -0
- package/dist/service/sns/sms/sim-sns-sent-sms-message.js.map +1 -0
- package/dist/service/sns/sms/sim-sns-sent-sms-store.d.ts +25 -0
- package/dist/service/sns/sms/sim-sns-sent-sms-store.d.ts.map +1 -0
- package/dist/service/sns/sms/sim-sns-sent-sms-store.js +28 -0
- package/dist/service/sns/sms/sim-sns-sent-sms-store.js.map +1 -0
- package/dist/service/sns/subscription/sim-sns-subscription-endpoint.d.ts +9 -7
- package/dist/service/sns/subscription/sim-sns-subscription-endpoint.d.ts.map +1 -1
- package/dist/service/sns/subscription/sim-sns-subscription-endpoint.js +7 -2
- package/dist/service/sns/subscription/sim-sns-subscription-endpoint.js.map +1 -1
- package/dist/service/sns/subscription/sim-sns-subscription-protocol.d.ts +19 -1
- package/dist/service/sns/subscription/sim-sns-subscription-protocol.d.ts.map +1 -1
- package/dist/service/sns/subscription/sim-sns-subscription-protocol.js +26 -5
- package/dist/service/sns/subscription/sim-sns-subscription-protocol.js.map +1 -1
- package/dist/service/sqs/message/sim-sqs-message-body.d.ts +10 -5
- package/dist/service/sqs/message/sim-sqs-message-body.d.ts.map +1 -1
- package/dist/service/sqs/message/sim-sqs-message-body.js +13 -6
- package/dist/service/sqs/message/sim-sqs-message-body.js.map +1 -1
- package/dist/util/factory/sim-records-event.factory.d.ts +60 -0
- package/dist/util/factory/sim-records-event.factory.d.ts.map +1 -0
- package/dist/util/factory/sim-records-event.factory.js +47 -0
- package/dist/util/factory/sim-records-event.factory.js.map +1 -0
- package/package.json +12 -2
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One attribute a pool signs its users in by.
|
|
3
|
+
*
|
|
4
|
+
* Real Cognito holds the value a `UsernameAttributes` pool is signed in with
|
|
5
|
+
* to the form of the attribute it fills, and refuses a `SignUp` carrying
|
|
6
|
+
* anything else, so the form is checked here rather than left to reach the
|
|
7
|
+
* pool as a username that could never sign in.
|
|
8
|
+
*/
|
|
9
|
+
export declare class SimCognitoSignInAttribute {
|
|
10
|
+
readonly name: string;
|
|
11
|
+
private readonly form;
|
|
12
|
+
constructor(name: string);
|
|
13
|
+
/**
|
|
14
|
+
* How a refusal names the values of this attribute.
|
|
15
|
+
*/
|
|
16
|
+
get description(): string;
|
|
17
|
+
/**
|
|
18
|
+
* Whether a value is written the way this attribute's values are.
|
|
19
|
+
*/
|
|
20
|
+
holds(value: string): boolean;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=sim-cognito-sign-in-attribute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-sign-in-attribute.d.ts","sourceRoot":"","sources":["../../../../src/service/cognito/user-pool/sim-cognito-sign-in-attribute.ts"],"names":[],"mappings":"AA4BA;;;;;;;GAOG;AACH,qBAAa,yBAAyB;IACpC,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAgC;IAErD,YAAY,IAAI,EAAE,MAAM,EAYvB;IAED;;OAEG;IACH,IAAI,WAAW,IAAI,MAAM,CAExB;IAED;;OAEG;IACH,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAE5B;CACF"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { SimCognitoInvalidParameterException } from "../error/sim-cognito.error.js";
|
|
2
|
+
/**
|
|
3
|
+
* How each attribute a pool can sign users in by is written, and how a
|
|
4
|
+
* refusal describes it.
|
|
5
|
+
*
|
|
6
|
+
* These are the two Cognito allows in `UsernameAttributes`, and they are the
|
|
7
|
+
* same two it can send a confirmation code to.
|
|
8
|
+
*/
|
|
9
|
+
const signInAttributeForms = new Map([
|
|
10
|
+
[
|
|
11
|
+
"email",
|
|
12
|
+
{ description: "an email", pattern: /^[^\s@]+@[^\s@]+\.[^\s@]+$/u },
|
|
13
|
+
],
|
|
14
|
+
[
|
|
15
|
+
"phone_number",
|
|
16
|
+
{ description: "a phone number", pattern: /^\+[1-9]\d{1,14}$/u },
|
|
17
|
+
],
|
|
18
|
+
]);
|
|
19
|
+
/**
|
|
20
|
+
* One attribute a pool signs its users in by.
|
|
21
|
+
*
|
|
22
|
+
* Real Cognito holds the value a `UsernameAttributes` pool is signed in with
|
|
23
|
+
* to the form of the attribute it fills, and refuses a `SignUp` carrying
|
|
24
|
+
* anything else, so the form is checked here rather than left to reach the
|
|
25
|
+
* pool as a username that could never sign in.
|
|
26
|
+
*/
|
|
27
|
+
export class SimCognitoSignInAttribute {
|
|
28
|
+
name;
|
|
29
|
+
form;
|
|
30
|
+
constructor(name) {
|
|
31
|
+
const form = signInAttributeForms.get(name);
|
|
32
|
+
if (form === undefined) {
|
|
33
|
+
throw new SimCognitoInvalidParameterException(`UsernameAttributes '${name}' is not an attribute Cognito can sign ` +
|
|
34
|
+
`users in by. Only ${signInAttributeForms.keys().toArray().join(" and ")} can be`);
|
|
35
|
+
}
|
|
36
|
+
this.name = name;
|
|
37
|
+
this.form = form;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* How a refusal names the values of this attribute.
|
|
41
|
+
*/
|
|
42
|
+
get description() {
|
|
43
|
+
return this.form.description;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Whether a value is written the way this attribute's values are.
|
|
47
|
+
*/
|
|
48
|
+
holds(value) {
|
|
49
|
+
return this.form.pattern.test(value);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=sim-cognito-sign-in-attribute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-sign-in-attribute.js","sourceRoot":"","sources":["../../../../src/service/cognito/user-pool/sim-cognito-sign-in-attribute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,+BAA+B,CAAC;AAEpF;;;;;;GAMG;AACH,MAAM,oBAAoB,GAAG,IAAI,GAAG,CAAwC;IAC1E;QACE,OAAO;QACP,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,6BAA6B,EAAE;KACpE;IACD;QACE,cAAc;QACd,EAAE,WAAW,EAAE,gBAAgB,EAAE,OAAO,EAAE,oBAAoB,EAAE;KACjE;CACF,CAAC,CAAC;AAUH;;;;;;;GAOG;AACH,MAAM,OAAO,yBAAyB;IACpB,IAAI,CAAS;IACZ,IAAI,CAAgC;IAErD,YAAY,IAAY;QACtB,MAAM,IAAI,GAAG,oBAAoB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAE5C,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,MAAM,IAAI,mCAAmC,CAC3C,uBAAuB,IAAI,yCAAyC;gBAClE,qBAAqB,oBAAoB,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CACpF,CAAC;QACJ,CAAC;QAED,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED;;OAEG;IACH,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC;IAC/B,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,KAAa;QACjB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACvC,CAAC;CACF"}
|
|
@@ -7,6 +7,7 @@ import { SimCognitoPasswordPolicy, type SimCognitoUserPoolPoliciesType } from ".
|
|
|
7
7
|
import { SimCognitoVerificationMessages, type SimCognitoVerificationMessagesType } from "./message/sim-cognito-verification-messages.js";
|
|
8
8
|
import type { SimCognitoSchemaAttributeType } from "./schema/sim-cognito-schema-attribute.js";
|
|
9
9
|
import { SimCognitoUserPoolSchema } from "./schema/sim-cognito-user-pool-schema.js";
|
|
10
|
+
import { SimCognitoUsernameAttributes } from "./sim-cognito-username-attributes.js";
|
|
10
11
|
import { SimCognitoLambdaConfig } from "./trigger/sim-cognito-lambda-config.js";
|
|
11
12
|
/**
|
|
12
13
|
* The pool settings a request can set, in the shape the SDK sends them.
|
|
@@ -31,6 +32,14 @@ export interface SimCognitoUserPoolSettingsInput extends SimCognitoVerificationM
|
|
|
31
32
|
* users written against it.
|
|
32
33
|
*/
|
|
33
34
|
readonly Schema?: readonly SimCognitoSchemaAttributeType[] | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* The attributes the pool signs its users in by, rather than by username.
|
|
37
|
+
*
|
|
38
|
+
* Only `CreateUserPool` carries it, for the same reason `Schema` is here:
|
|
39
|
+
* it is the pool's settings that hold it, and `UpdateUserPool` refuses one
|
|
40
|
+
* rather than changing how a pool with users already in it identifies them.
|
|
41
|
+
*/
|
|
42
|
+
readonly UsernameAttributes?: readonly string[] | undefined;
|
|
34
43
|
}
|
|
35
44
|
interface SimCognitoUserPoolSettingsProperties {
|
|
36
45
|
readonly input: SimCognitoUserPoolSettingsInput;
|
|
@@ -56,9 +65,10 @@ interface SimCognitoUserPoolSettingsProperties {
|
|
|
56
65
|
* request, and the pool swaps to it, so a setting the update is silent about
|
|
57
66
|
* goes back to its default rather than staying as it was.
|
|
58
67
|
*
|
|
59
|
-
* The schema
|
|
60
|
-
*
|
|
61
|
-
* the pool back to the
|
|
68
|
+
* The schema and the attributes the pool signs users in by are the
|
|
69
|
+
* exceptions. Only `CreateUserPool` declares either, so an update takes both
|
|
70
|
+
* on from the settings it replaces rather than dropping the pool back to the
|
|
71
|
+
* standard attributes and to signing in by username.
|
|
62
72
|
*/
|
|
63
73
|
export declare class SimCognitoUserPoolSettings {
|
|
64
74
|
#private;
|
|
@@ -97,14 +107,21 @@ export declare class SimCognitoUserPoolSettings {
|
|
|
97
107
|
*/
|
|
98
108
|
get schema(): SimCognitoUserPoolSchema;
|
|
99
109
|
/**
|
|
100
|
-
*
|
|
110
|
+
* The attributes the pool signs its users in by, from its
|
|
111
|
+
* `UsernameAttributes`. A pool created without any signs users in by
|
|
112
|
+
* username.
|
|
113
|
+
*/
|
|
114
|
+
get usernameAttributes(): SimCognitoUsernameAttributes;
|
|
115
|
+
/**
|
|
116
|
+
* Take on the settings only a creation declares from the ones this set
|
|
117
|
+
* replaces: the pool's schema, and what it signs its users in by.
|
|
101
118
|
*
|
|
102
|
-
* `UpdateUserPool` has
|
|
103
|
-
*
|
|
104
|
-
* across is what keeps that true here, where an update
|
|
105
|
-
* every setting with the default of the one it left out.
|
|
119
|
+
* Real `UpdateUserPool` has neither input, so an update changes nothing
|
|
120
|
+
* about the attributes a pool holds or how it identifies its users.
|
|
121
|
+
* Carrying them across is what keeps that true here, where an update
|
|
122
|
+
* otherwise replaces every setting with the default of the one it left out.
|
|
106
123
|
*/
|
|
107
|
-
|
|
124
|
+
keepCreationSettingsOf(replaced: SimCognitoUserPoolSettings): void;
|
|
108
125
|
}
|
|
109
126
|
export {};
|
|
110
127
|
//# sourceMappingURL=sim-cognito-user-pool-settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-user-pool-settings.d.ts","sourceRoot":"","sources":["../../../../src/service/cognito/user-pool/sim-cognito-user-pool-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,KAAK,oCAAoC,EAC1C,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,+BAA+B,EAC/B,KAAK,mCAAmC,EACzC,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAC7F,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AAEpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EACL,wBAAwB,EACxB,KAAK,8BAA8B,EACpC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,8BAA8B,EAC9B,KAAK,kCAAkC,EACxC,MAAM,gDAAgD,CAAC;AACxD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAC;AAC9F,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAEhF;;;;;GAKG;AACH,MAAM,WAAW,+BAAgC,SAAQ,kCAAkC;IACzF,QAAQ,CAAC,sBAAsB,CAAC,EAC5B,oCAAoC,GACpC,SAAS,CAAC;IACd,QAAQ,CAAC,QAAQ,CAAC,EAAE,8BAA8B,GAAG,SAAS,CAAC;IAC/D,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/C,QAAQ,CAAC,qBAAqB,CAAC,EAC3B,mCAAmC,GACnC,SAAS,CAAC;IACd,QAAQ,CAAC,sBAAsB,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IAChE,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE3C;;;;;;;OAOG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,6BAA6B,EAAE,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-user-pool-settings.d.ts","sourceRoot":"","sources":["../../../../src/service/cognito/user-pool/sim-cognito-user-pool-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,KAAK,oCAAoC,EAC1C,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,+BAA+B,EAC/B,KAAK,mCAAmC,EACzC,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAC7F,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AAEpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EACL,wBAAwB,EACxB,KAAK,8BAA8B,EACpC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,8BAA8B,EAC9B,KAAK,kCAAkC,EACxC,MAAM,gDAAgD,CAAC;AACxD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAC;AAC9F,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,w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,EAAE,8BAA8B,CAAC;IAErE;;;OAGG;IACH,SAAgB,eAAe,EAAE,yBAAyB,CAAC;IAK3D,YAAY,UAAU,EAAE,oCAAoC,EA+B3D;IAED;;;OAGG;IACH,IAAI,MAAM,IAAI,wBAAwB,CAErC;IAED;;;;OAIG;IACH,IAAI,kBAAkB,IAAI,4BAA4B,CAErD;IAED;;;;;;;;OAQG;IACH,sBAAsB,CAAC,QAAQ,EAAE,0BAA0B,GAAG,IAAI,CAGjE;CACF"}
|
|
@@ -7,6 +7,7 @@ import { SimCognitoUserPoolMfa } from "./mfa/sim-cognito-user-pool-mfa.js";
|
|
|
7
7
|
import { SimCognitoPasswordPolicy, } from "./sim-cognito-password-policy.js";
|
|
8
8
|
import { SimCognitoVerificationMessages, } from "./message/sim-cognito-verification-messages.js";
|
|
9
9
|
import { SimCognitoUserPoolSchema } from "./schema/sim-cognito-user-pool-schema.js";
|
|
10
|
+
import { SimCognitoUsernameAttributes } from "./sim-cognito-username-attributes.js";
|
|
10
11
|
import { SimCognitoLambdaConfig } from "./trigger/sim-cognito-lambda-config.js";
|
|
11
12
|
/**
|
|
12
13
|
* The settings of one simulated user pool that a request can change: the
|
|
@@ -24,9 +25,10 @@ import { SimCognitoLambdaConfig } from "./trigger/sim-cognito-lambda-config.js";
|
|
|
24
25
|
* request, and the pool swaps to it, so a setting the update is silent about
|
|
25
26
|
* goes back to its default rather than staying as it was.
|
|
26
27
|
*
|
|
27
|
-
* The schema
|
|
28
|
-
*
|
|
29
|
-
* the pool back to the
|
|
28
|
+
* The schema and the attributes the pool signs users in by are the
|
|
29
|
+
* exceptions. Only `CreateUserPool` declares either, so an update takes both
|
|
30
|
+
* on from the settings it replaces rather than dropping the pool back to the
|
|
31
|
+
* standard attributes and to signing in by username.
|
|
30
32
|
*/
|
|
31
33
|
export class SimCognitoUserPoolSettings {
|
|
32
34
|
passwordPolicy;
|
|
@@ -58,6 +60,7 @@ export class SimCognitoUserPoolSettings {
|
|
|
58
60
|
*/
|
|
59
61
|
accountRecovery;
|
|
60
62
|
#schema;
|
|
63
|
+
#usernameAttributes;
|
|
61
64
|
constructor(properties) {
|
|
62
65
|
const { input, operation } = properties;
|
|
63
66
|
this.passwordPolicy = new SimCognitoPasswordPolicy(input.Policies?.PasswordPolicy);
|
|
@@ -69,6 +72,7 @@ export class SimCognitoUserPoolSettings {
|
|
|
69
72
|
this.verificationMessages = new SimCognitoVerificationMessages(input);
|
|
70
73
|
this.accountRecovery = new SimCognitoAccountRecovery(input.AccountRecoverySetting, operation);
|
|
71
74
|
this.#schema = new SimCognitoUserPoolSchema(input.Schema);
|
|
75
|
+
this.#usernameAttributes = new SimCognitoUsernameAttributes(input.UsernameAttributes);
|
|
72
76
|
}
|
|
73
77
|
/**
|
|
74
78
|
* The attributes the pool holds on its users: the standard ones, and the
|
|
@@ -78,15 +82,25 @@ export class SimCognitoUserPoolSettings {
|
|
|
78
82
|
return this.#schema;
|
|
79
83
|
}
|
|
80
84
|
/**
|
|
81
|
-
*
|
|
85
|
+
* The attributes the pool signs its users in by, from its
|
|
86
|
+
* `UsernameAttributes`. A pool created without any signs users in by
|
|
87
|
+
* username.
|
|
88
|
+
*/
|
|
89
|
+
get usernameAttributes() {
|
|
90
|
+
return this.#usernameAttributes;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Take on the settings only a creation declares from the ones this set
|
|
94
|
+
* replaces: the pool's schema, and what it signs its users in by.
|
|
82
95
|
*
|
|
83
|
-
* `UpdateUserPool` has
|
|
84
|
-
*
|
|
85
|
-
* across is what keeps that true here, where an update
|
|
86
|
-
* every setting with the default of the one it left out.
|
|
96
|
+
* Real `UpdateUserPool` has neither input, so an update changes nothing
|
|
97
|
+
* about the attributes a pool holds or how it identifies its users.
|
|
98
|
+
* Carrying them across is what keeps that true here, where an update
|
|
99
|
+
* otherwise replaces every setting with the default of the one it left out.
|
|
87
100
|
*/
|
|
88
|
-
|
|
101
|
+
keepCreationSettingsOf(replaced) {
|
|
89
102
|
this.#schema = replaced.schema;
|
|
103
|
+
this.#usernameAttributes = replaced.usernameAttributes;
|
|
90
104
|
}
|
|
91
105
|
}
|
|
92
106
|
//# sourceMappingURL=sim-cognito-user-pool-settings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-user-pool-settings.js","sourceRoot":"","sources":["../../../../src/service/cognito/user-pool/sim-cognito-user-pool-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,GAE1B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,+BAA+B,GAEhC,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAC7F,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EACL,wBAAwB,GAEzB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,8BAA8B,GAE/B,MAAM,gDAAgD,CAAC;AAExD,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-user-pool-settings.js","sourceRoot":"","sources":["../../../../src/service/cognito/user-pool/sim-cognito-user-pool-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,GAE1B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,+BAA+B,GAEhC,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAC7F,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,oC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,CAAC;QACF,IAAI,CAAC,oBAAoB,GAAG,IAAI,8BAA8B,CAAC,KAAK,CAAC,CAAC;QACtE,IAAI,CAAC,eAAe,GAAG,IAAI,yBAAyB,CAClD,KAAK,CAAC,sBAAsB,EAC5B,SAAS,CACV,CAAC;QACF,IAAI,CAAC,OAAO,GAAG,IAAI,wBAAwB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC1D,IAAI,CAAC,mBAAmB,GAAG,IAAI,4BAA4B,CACzD,KAAK,CAAC,kBAAkB,CACzB,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAED;;;;OAIG;IACH,IAAI,kBAAkB;QACpB,OAAO,IAAI,CAAC,mBAAmB,CAAC;IAClC,CAAC;IAED;;;;;;;;OAQG;IACH,sBAAsB,CAAC,QAAoC;QACzD,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAC;QAC/B,IAAI,CAAC,mBAAmB,GAAG,QAAQ,CAAC,kBAAkB,CAAC;IACzD,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-user-pool.d.ts","sourceRoot":"","sources":["../../../../src/service/cognito/user-pool/sim-cognito-user-pool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACzF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAE9F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAE7E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC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ACX,QAAQ,EAAE,0BAA0B,GACnC,wBAAwB,CAE1B;IAED;;OAEG;IACH,IAAI,KAAK,IAAI,SAAS,cAAc,EAAE,CAErC;IAED;;OAEG;IACH,IAAI,SAAS,IAAI,MAAM,CAEtB;IAED;;OAEG;IACH,OAAO,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,CAElC;IAED;;;;;;;OAOG;IACH,UAAU,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,CAIrC;IAED;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS,CAErD;IAED;;OAEG;IACH,WAAW,CAAC,QAAQ,EAAE,kBAAkB,GAAG,cAAc,CAExD;IAED;;;;;;OAMG;IACH,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAGrD;IAED;;;;OAIG;IACH,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAItD;IAED,6DAA6D;IAC7D,YAAY,IAAI,SAAS,qBAAqB,EAAE,CAE/C;IAED;;OAEG;IACH,IAAI,MAAM,IAAI,SAAS,eAAe,EAAE,CAEvC;IAED;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,CAErC;IAED;;OAEG;IACH,WAAW,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,CAExC;IAED;;OAEG;IACH,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS,CAExD;IAED;;OAEG;IACH,YAAY,CAAC,SAAS,EAAE,mBAAmB,GAAG,eAAe,CAE5D;IAED;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,eAAe,EAAE,CAErD;CACF"}
|
|
@@ -30,7 +30,7 @@ export class SimCognitoUserPool {
|
|
|
30
30
|
messages = new SimCognitoSentMessageStore();
|
|
31
31
|
clock;
|
|
32
32
|
clientStore = new SimCognitoUserPoolClientStore();
|
|
33
|
-
userStore
|
|
33
|
+
userStore;
|
|
34
34
|
groupStore = new SimCognitoGroupStore();
|
|
35
35
|
keys = new SimCognitoPoolKeys();
|
|
36
36
|
#settings;
|
|
@@ -40,6 +40,7 @@ export class SimCognitoUserPool {
|
|
|
40
40
|
this.arn = properties.arn;
|
|
41
41
|
this.name = properties.name.value;
|
|
42
42
|
this.#settings = properties.settings;
|
|
43
|
+
this.userStore = new SimCognitoUserStore(properties.settings.usernameAttributes);
|
|
43
44
|
this.clock = properties.clock;
|
|
44
45
|
this.creationDate = this.clock.now();
|
|
45
46
|
this.#modifiedDate = this.creationDate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-user-pool.js","sourceRoot":"","sources":["../../../../src/service/cognito/user-pool/sim-cognito-user-pool.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAGrE,OAAO,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AAG/F,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAE1E,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAGzF,OAAO,EACL,2BAA2B,EAC3B,8BAA8B,GAE/B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAMtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EACL,yBAAyB,GAE1B,MAAM,gCAAgC,CAAC;AAUxC;;;;;;GAMG;AACH,MAAM,OAAO,kBAAkB;IACb,EAAE,CAAuB;IACzB,GAAG,CAAwB;IAC3B,IAAI,CAAS;IACb,YAAY,CAAO;IAEnC;;OAEG;IACa,IAAI,GAAG,IAAI,kBAAkB,EAAE,CAAC;IAEhD;;;;OAIG;IACa,QAAQ,GAAG,IAAI,0BAA0B,EAAE,CAAC;IAE3C,KAAK,CAAW;IAChB,WAAW,GAAG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} from "./user/sim-cognito-username.js";
|
|
3
|
+
/**
|
|
4
|
+
* What a new user of a pool is stored as: the username it is keyed by, and
|
|
5
|
+
* the attributes it starts with.
|
|
6
|
+
*/
|
|
7
|
+
export interface SimCognitoNewUserIdentity {
|
|
8
|
+
readonly username: SimCognitoUsername;
|
|
9
|
+
readonly attributes: readonly SimCognitoAttributeType[] | undefined;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The attributes a pool signs its users in by, from its `UsernameAttributes`.
|
|
13
|
+
*
|
|
14
|
+
* A pool created without any is signed in by username, and a request naming a
|
|
15
|
+
* user names the username it was created with. A pool created with them works
|
|
16
|
+
* the other way round: the caller signs in by email or by phone number, and
|
|
17
|
+
* the username is a UUID Cognito generates that no caller ever chose. That is
|
|
18
|
+
* what an application built against such a pool sees in `cognito:username` and
|
|
19
|
+
* in `AdminGetUser`, so it is what this simulation stores.
|
|
20
|
+
*
|
|
21
|
+
* The address itself stays reachable. It goes into the attribute the pool
|
|
22
|
+
* signs in by, and a request naming a user by that address resolves the same
|
|
23
|
+
* user, which is the alias resolution real Cognito does for its admin
|
|
24
|
+
* operations and its sign-ins.
|
|
25
|
+
*/
|
|
26
|
+
export declare class SimCognitoUsernameAttributes {
|
|
27
|
+
private readonly attributes;
|
|
28
|
+
constructor(requested?: readonly string[]);
|
|
29
|
+
/**
|
|
30
|
+
* The attribute a new user's own value goes into, alongside the attributes
|
|
31
|
+
* the request asked for.
|
|
32
|
+
*
|
|
33
|
+
* A request that set the attribute itself keeps its own value, as long as
|
|
34
|
+
* it is the one the username says. The two naming different accounts is
|
|
35
|
+
* refused rather than resolved in favour of either, because real Cognito
|
|
36
|
+
* signs the user in by only one of them and code written against the other
|
|
37
|
+
* would look up a user that is not there.
|
|
38
|
+
*/
|
|
39
|
+
private static withSignInValue;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the pool signs users in by username, which is the default.
|
|
42
|
+
*/
|
|
43
|
+
get isEmpty(): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* The attribute names, as the request gave them.
|
|
46
|
+
*/
|
|
47
|
+
get names(): readonly string[];
|
|
48
|
+
/**
|
|
49
|
+
* These attributes as a described pool reports them, or nothing where the
|
|
50
|
+
* pool signs users in by username.
|
|
51
|
+
*/
|
|
52
|
+
toOutput(): readonly string[] | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* The username and attributes a user being created is stored with.
|
|
55
|
+
*
|
|
56
|
+
* A pool signing users in by username stores what the request asked for. A
|
|
57
|
+
* pool signing them in by an attribute stores a generated UUID instead, and
|
|
58
|
+
* puts the value the request called the username into the attribute it
|
|
59
|
+
* signs in by, which is what real Cognito does with it.
|
|
60
|
+
*/
|
|
61
|
+
identify(requested: SimCognitoUsername, attributes: readonly SimCognitoAttributeType[] | undefined): SimCognitoNewUserIdentity;
|
|
62
|
+
/**
|
|
63
|
+
* The values a user can be signed in by, by the attribute each is held in.
|
|
64
|
+
*
|
|
65
|
+
* A user missing the attribute has no value for it, which is how a
|
|
66
|
+
* federated user reaches a pool that signs its own users in by email: the
|
|
67
|
+
* provider's mapping may not carry one.
|
|
68
|
+
*/
|
|
69
|
+
signInValues(attributes: ReadonlyMap<string, string>): ReadonlyMap<string, string>;
|
|
70
|
+
/**
|
|
71
|
+
* Whether a user holding these attributes is the one a value names.
|
|
72
|
+
*/
|
|
73
|
+
matches(attributes: ReadonlyMap<string, string>, value: string): boolean;
|
|
74
|
+
/**
|
|
75
|
+
* The attribute a username fills, or a refusal saying what the pool signs
|
|
76
|
+
* users in by.
|
|
77
|
+
*
|
|
78
|
+
* Real Cognito refuses a username of the wrong form here rather than
|
|
79
|
+
* creating a user nobody could sign in as.
|
|
80
|
+
*/
|
|
81
|
+
private requireSignInAttribute;
|
|
82
|
+
/**
|
|
83
|
+
* How a refusal describes what this pool's usernames have to look like.
|
|
84
|
+
*/
|
|
85
|
+
private describeForms;
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=sim-cognito-username-attributes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-username-attributes.d.ts","sourceRoot":"","sources":["../../../../src/service/cognito/user-pool/sim-cognito-username-attributes.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AACrF,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,gCAAgC,CAAC;AAExC;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,UAAU,EAAE,SAAS,uBAAuB,EAAE,GAAG,SAAS,CAAC;CACrE;AAED;;;;;;;;;;;;;;GAcG;AACH,qBAAa,4BAA4B;IACvC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAuC;IAElE,YAAY,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,EAIxC;IAED;;;;;;;;;OASG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe;IAwB9B;;OAEG;IACH,IAAI,OAAO,IAAI,OAAO,CAErB;IAED;;OAEG;IACH,IAAI,KAAK,IAAI,SAAS,MAAM,EAAE,CAE7B;IAED;;;OAGG;IACH,QAAQ,IAAI,SAAS,MAAM,EAAE,GAAG,SAAS,CAMxC;IAED;;;;;;;OAOG;IACH,QAAQ,CACN,SAAS,EAAE,kBAAkB,EAC7B,UAAU,EAAE,SAAS,uBAAuB,EAAE,GAAG,SAAS,GACzD,yBAAyB,CAe3B;IAED;;;;;;OAMG;IACH,YAAY,CACV,UAAU,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GACtC,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAY7B;IAED;;OAEG;IACH,OAAO,CAAC,UAAU,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAIvE;IAED;;;;;;OAMG;IACH,OAAO,CAAC,sBAAsB;IAc9B;;OAEG;IACH,OAAO,CAAC,aAAa;CAWtB"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { randomUUID } from "node:crypto";
|
|
2
|
+
import { SimCognitoInvalidParameterException } from "../error/sim-cognito.error.js";
|
|
3
|
+
import { SimCognitoSignInAttribute } from "./sim-cognito-sign-in-attribute.js";
|
|
4
|
+
import { requireSimCognitoUsername, } from "./user/sim-cognito-username.js";
|
|
5
|
+
/**
|
|
6
|
+
* The attributes a pool signs its users in by, from its `UsernameAttributes`.
|
|
7
|
+
*
|
|
8
|
+
* A pool created without any is signed in by username, and a request naming a
|
|
9
|
+
* user names the username it was created with. A pool created with them works
|
|
10
|
+
* the other way round: the caller signs in by email or by phone number, and
|
|
11
|
+
* the username is a UUID Cognito generates that no caller ever chose. That is
|
|
12
|
+
* what an application built against such a pool sees in `cognito:username` and
|
|
13
|
+
* in `AdminGetUser`, so it is what this simulation stores.
|
|
14
|
+
*
|
|
15
|
+
* The address itself stays reachable. It goes into the attribute the pool
|
|
16
|
+
* signs in by, and a request naming a user by that address resolves the same
|
|
17
|
+
* user, which is the alias resolution real Cognito does for its admin
|
|
18
|
+
* operations and its sign-ins.
|
|
19
|
+
*/
|
|
20
|
+
export class SimCognitoUsernameAttributes {
|
|
21
|
+
attributes;
|
|
22
|
+
constructor(requested) {
|
|
23
|
+
this.attributes = (requested ?? []).map((name) => new SimCognitoSignInAttribute(name));
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The attribute a new user's own value goes into, alongside the attributes
|
|
27
|
+
* the request asked for.
|
|
28
|
+
*
|
|
29
|
+
* A request that set the attribute itself keeps its own value, as long as
|
|
30
|
+
* it is the one the username says. The two naming different accounts is
|
|
31
|
+
* refused rather than resolved in favour of either, because real Cognito
|
|
32
|
+
* signs the user in by only one of them and code written against the other
|
|
33
|
+
* would look up a user that is not there.
|
|
34
|
+
*/
|
|
35
|
+
static withSignInValue(attribute, value, attributes) {
|
|
36
|
+
const requested = attributes ?? [];
|
|
37
|
+
const given = requested.find((entry) => entry.Name === attribute.name);
|
|
38
|
+
if (given === undefined) {
|
|
39
|
+
return [...requested, { Name: attribute.name, Value: value }];
|
|
40
|
+
}
|
|
41
|
+
if (given.Value !== value) {
|
|
42
|
+
throw new SimCognitoInvalidParameterException(`Username '${value}' and the ${attribute.name} attribute ` +
|
|
43
|
+
`'${String(given.Value)}' name different accounts: a pool that ` +
|
|
44
|
+
`signs users in by ${attribute.name} takes the username as that ` +
|
|
45
|
+
`attribute's value`);
|
|
46
|
+
}
|
|
47
|
+
return requested;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Whether the pool signs users in by username, which is the default.
|
|
51
|
+
*/
|
|
52
|
+
get isEmpty() {
|
|
53
|
+
return this.attributes.length === 0;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* The attribute names, as the request gave them.
|
|
57
|
+
*/
|
|
58
|
+
get names() {
|
|
59
|
+
return this.attributes.map((attribute) => attribute.name);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* These attributes as a described pool reports them, or nothing where the
|
|
63
|
+
* pool signs users in by username.
|
|
64
|
+
*/
|
|
65
|
+
toOutput() {
|
|
66
|
+
if (this.isEmpty) {
|
|
67
|
+
return undefined;
|
|
68
|
+
}
|
|
69
|
+
return this.names;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* The username and attributes a user being created is stored with.
|
|
73
|
+
*
|
|
74
|
+
* A pool signing users in by username stores what the request asked for. A
|
|
75
|
+
* pool signing them in by an attribute stores a generated UUID instead, and
|
|
76
|
+
* puts the value the request called the username into the attribute it
|
|
77
|
+
* signs in by, which is what real Cognito does with it.
|
|
78
|
+
*/
|
|
79
|
+
identify(requested, attributes) {
|
|
80
|
+
if (this.isEmpty) {
|
|
81
|
+
return { username: requested, attributes };
|
|
82
|
+
}
|
|
83
|
+
const attribute = this.requireSignInAttribute(requested);
|
|
84
|
+
return {
|
|
85
|
+
username: requireSimCognitoUsername(randomUUID()),
|
|
86
|
+
attributes: SimCognitoUsernameAttributes.withSignInValue(attribute, requested, attributes),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* The values a user can be signed in by, by the attribute each is held in.
|
|
91
|
+
*
|
|
92
|
+
* A user missing the attribute has no value for it, which is how a
|
|
93
|
+
* federated user reaches a pool that signs its own users in by email: the
|
|
94
|
+
* provider's mapping may not carry one.
|
|
95
|
+
*/
|
|
96
|
+
signInValues(attributes) {
|
|
97
|
+
const values = new Map();
|
|
98
|
+
for (const attribute of this.attributes) {
|
|
99
|
+
const value = attributes.get(attribute.name);
|
|
100
|
+
if (value !== undefined) {
|
|
101
|
+
values.set(attribute.name, value);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
return values;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Whether a user holding these attributes is the one a value names.
|
|
108
|
+
*/
|
|
109
|
+
matches(attributes, value) {
|
|
110
|
+
return this.attributes.some((attribute) => attributes.get(attribute.name) === value);
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* The attribute a username fills, or a refusal saying what the pool signs
|
|
114
|
+
* users in by.
|
|
115
|
+
*
|
|
116
|
+
* Real Cognito refuses a username of the wrong form here rather than
|
|
117
|
+
* creating a user nobody could sign in as.
|
|
118
|
+
*/
|
|
119
|
+
requireSignInAttribute(username) {
|
|
120
|
+
const attribute = this.attributes.find((candidate) => candidate.holds(username));
|
|
121
|
+
if (attribute === undefined) {
|
|
122
|
+
throw new SimCognitoInvalidParameterException(`Username should be ${this.describeForms()}.`);
|
|
123
|
+
}
|
|
124
|
+
return attribute;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* How a refusal describes what this pool's usernames have to look like.
|
|
128
|
+
*/
|
|
129
|
+
describeForms() {
|
|
130
|
+
const descriptions = this.attributes.map((attribute) => attribute.description);
|
|
131
|
+
if (descriptions.length > 1) {
|
|
132
|
+
return `either ${descriptions.join(" or ")}`;
|
|
133
|
+
}
|
|
134
|
+
return descriptions.join(" or ");
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
//# sourceMappingURL=sim-cognito-username-attributes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-username-attributes.js","sourceRoot":"","sources":["../../../../src/service/cognito/user-pool/sim-cognito-username-attributes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,mCAAmC,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAE/E,OAAO,EACL,yBAAyB,GAE1B,MAAM,gCAAgC,CAAC;AAWxC;;;;;;;;;;;;;;GAcG;AACH,MAAM,OAAO,4BAA4B;IACtB,UAAU,CAAuC;IAElE,YAAY,SAA6B;QACvC,IAAI,CAAC,UAAU,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,GAAG,CACrC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,yBAAyB,CAAC,IAAI,CAAC,CAC9C,CAAC;IACJ,CAAC;IAED;;;;;;;;;OASG;IACK,MAAM,CAAC,eAAe,CAC5B,SAAoC,EACpC,KAAa,EACb,UAA0D;QAE1D,MAAM,SAAS,GAAG,UAAU,IAAI,EAAE,CAAC;QACnC,MAAM,KAAK,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,CAAC;QAEvE,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,OAAO,CAAC,GAAG,SAAS,EAAE,EAAE,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;QAChE,CAAC;QAED,IAAI,KAAK,CAAC,KAAK,KAAK,KAAK,EAAE,CAAC;YAC1B,MAAM,IAAI,mCAAm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ser } from "./sim-cognito-user.js";
|
|
2
3
|
import type { SimCognitoUsername } from "./sim-cognito-username.js";
|
|
3
4
|
/**
|
|
@@ -6,9 +7,18 @@ import type { SimCognitoUsername } from "./sim-cognito-username.js";
|
|
|
6
7
|
* Users are keyed by username, which is what every admin operation names one
|
|
7
8
|
* by. Usernames are case sensitive here, as they are on a pool created without
|
|
8
9
|
* a `UsernameConfiguration`, which this simulation refuses.
|
|
10
|
+
*
|
|
11
|
+
* A pool that signs its users in by an attribute keys them by the UUID
|
|
12
|
+
* username Cognito generated, and reaches them by that attribute's value as
|
|
13
|
+
* well: real Cognito resolves the alias for its admin operations and its
|
|
14
|
+
* sign-ins, so a request naming a user by its email finds the same user a
|
|
15
|
+
* request naming the UUID finds. What a pool signs users in by is fixed when
|
|
16
|
+
* the pool is created, which is why this is settled once here.
|
|
9
17
|
*/
|
|
10
18
|
export declare class SimCognitoUserStore {
|
|
11
19
|
private readonly users;
|
|
20
|
+
private readonly signInBy;
|
|
21
|
+
constructor(signInBy: SimCognitoUsernameAttributes);
|
|
12
22
|
/**
|
|
13
23
|
* Every user in this pool, in creation order.
|
|
14
24
|
*/
|
|
@@ -19,6 +29,11 @@ export declare class SimCognitoUserStore {
|
|
|
19
29
|
get count(): number;
|
|
20
30
|
/**
|
|
21
31
|
* Store a newly created user, refusing a username the pool already holds.
|
|
32
|
+
*
|
|
33
|
+
* A pool signing users in by an attribute refuses a second user holding a
|
|
34
|
+
* value another user signs in by too. That value identifies the account
|
|
35
|
+
* there, so allowing two would leave a sign-in naming an account this pool
|
|
36
|
+
* has two of.
|
|
22
37
|
*/
|
|
23
38
|
add(user: SimCognitoUser): void;
|
|
24
39
|
/**
|
|
@@ -26,13 +41,22 @@ export declare class SimCognitoUserStore {
|
|
|
26
41
|
*/
|
|
27
42
|
remove(user: SimCognitoUser): void;
|
|
28
43
|
/**
|
|
29
|
-
* Find a user by username.
|
|
44
|
+
* Find a user by username, or by a value the pool signs users in by.
|
|
30
45
|
*/
|
|
31
46
|
find(username: string): SimCognitoUser | undefined;
|
|
32
47
|
/**
|
|
33
48
|
* Resolve a user by username, or refuse.
|
|
34
49
|
*/
|
|
35
50
|
require(username: SimCognitoUsername): SimCognitoUser;
|
|
51
|
+
/**
|
|
52
|
+
* Find the user signing in by a value, where the pool signs users in by an
|
|
53
|
+
* attribute at all.
|
|
54
|
+
*/
|
|
55
|
+
private findBySignInValue;
|
|
56
|
+
/**
|
|
57
|
+
* Refuse a user signing in by a value another user already signs in by.
|
|
58
|
+
*/
|
|
59
|
+
private requireSignInValuesFree;
|
|
36
60
|
/**
|
|
37
61
|
* Say why a username reached no user.
|
|
38
62
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-user-store.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-store.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE
|
|
1
|
+
{"version":3,"file":"sim-cognito-user-store.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-store.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAC1F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE;;;;;;;;;;;;;GAaG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAqC;IAC3D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA+B;IAExD,YAAY,QAAQ,EAAE,4BAA4B,EAEjD;IAED;;OAEG;IACH,IAAI,GAAG,IAAI,SAAS,cAAc,EAAE,CAEnC;IAED;;OAEG;IACH,IAAI,KAAK,IAAI,MAAM,CAElB;IAED;;;;;;;OAOG;IACH,GAAG,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,CAS9B;IAED;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,CAEjC;IAED;;OAEG;IACH,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS,CAEjD;IAED;;OAEG;IACH,OAAO,CAAC,QAAQ,EAAE,kBAAkB,GAAG,cAAc,CAQpD;IAED;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAUzB;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAY/B;;;;;;;OAOG;IACH,OAAO,CAAC,cAAc;CAcvB"}
|