@cdklabs/cdk-construct-connect-datalake 0.0.22 → 0.0.24
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/.jsii +10 -10
- package/.jsii.tabl.json +1 -1
- package/lib/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.browser.d.ts +38 -38
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +36 -36
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.native.d.ts +37 -37
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +54 -56
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +57 -57
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.native.d.ts +58 -60
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/client-cloudformation/package.json +10 -10
- package/node_modules/@aws-sdk/client-connect/README.md +91 -0
- package/node_modules/@aws-sdk/client-connect/dist-cjs/index.js +631 -56
- package/node_modules/@aws-sdk/client-connect/dist-es/Connect.js +32 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/CreateExtractionDefinitionCommand.js +4 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/CreateMetricCommand.js +4 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/DeleteExtractionDefinitionCommand.js +4 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/DeleteMetricCommand.js +4 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/DescribeExtractionDefinitionCommand.js +4 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/DescribeMetricCommand.js +4 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/ListExtractionDefinitionsCommand.js +4 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/ListMetricsCommand.js +4 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/SearchMetricsCommand.js +4 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/StartAssistantContactCommand.js +4 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/UpdateExtractionDefinitionCommand.js +4 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/UpdateMetricContentCommand.js +4 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/UpdateMetricMetadataCommand.js +4 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/index.js +13 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/index.js +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-es/models/enums.js +49 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/pagination/ListExtractionDefinitionsPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/pagination/ListMetricsPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/pagination/SearchMetricsPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/pagination/index.js +3 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/schemas/schemas_0.js +440 -55
- package/node_modules/@aws-sdk/client-connect/dist-types/Connect.d.ts +112 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ConnectClient.d.ts +15 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateEvaluationFormCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateExtractionDefinitionCommand.d.ts +111 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateMetricCommand.d.ts +137 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateRuleCommand.d.ts +9 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateTestCaseCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateTrafficDistributionGroupCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateUseCaseCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateUserCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateUserHierarchyGroupCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/DeleteExtractionDefinitionCommand.d.ts +85 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/DeleteMetricCommand.d.ts +93 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeContactEvaluationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeEvaluationFormCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeExtractionDefinitionCommand.d.ts +107 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeMetricCommand.d.ts +165 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeRuleCommand.d.ts +9 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetCurrentMetricDataCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetCurrentUserDataCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetEffectiveHoursOfOperationsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetEvaluationFormValidationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetFederationTokenCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/ListExtractionDefinitionsCommand.d.ts +98 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/ListMetricsCommand.d.ts +103 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/ListRulesCommand.d.ts +3 -3
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchAgentStatusesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchContactEvaluationsCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchContactFlowModulesCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchContactFlowsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchEvaluationFormsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchMetricsCommand.d.ts +223 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchRulesCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/StartAssistantContactCommand.d.ts +129 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/StartWebRTCContactCommand.d.ts +28 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateEvaluationFormCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateExtractionDefinitionCommand.d.ts +100 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateMetricContentCommand.d.ts +121 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateMetricMetadataCommand.d.ts +93 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateRuleCommand.d.ts +8 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateViewMetadataCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateWorkspaceMetadataCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateWorkspacePageCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateWorkspaceThemeCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateWorkspaceVisibilityCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/index.d.ts +13 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/models/enums.d.ts +129 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_0.d.ts +323 -493
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_1.d.ts +3428 -3494
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_2.d.ts +5751 -5545
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_3.d.ts +3477 -3607
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_4.d.ts +1233 -6
- package/node_modules/@aws-sdk/client-connect/dist-types/pagination/ListExtractionDefinitionsPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/pagination/ListMetricsPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/pagination/SearchMetricsPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/pagination/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/runtimeConfig.browser.d.ts +40 -40
- package/node_modules/@aws-sdk/client-connect/dist-types/runtimeConfig.d.ts +36 -36
- package/node_modules/@aws-sdk/client-connect/dist-types/runtimeConfig.native.d.ts +38 -38
- package/node_modules/@aws-sdk/client-connect/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/schemas/schemas_0.d.ts +58 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/Connect.d.ts +239 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/ConnectClient.d.ts +75 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateExtractionDefinitionCommand.d.ts +42 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateMetricCommand.d.ts +38 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateTestCaseCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateTrafficDistributionGroupCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateUseCaseCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateUserCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateUserHierarchyGroupCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/DeleteExtractionDefinitionCommand.d.ts +42 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/DeleteMetricCommand.d.ts +38 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/DescribeExtractionDefinitionCommand.d.ts +42 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/DescribeMetricCommand.d.ts +38 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/GetCurrentMetricDataCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/GetCurrentUserDataCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/GetEffectiveHoursOfOperationsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/GetEvaluationFormValidationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/ListExtractionDefinitionsCommand.d.ts +42 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/ListMetricsCommand.d.ts +38 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchAgentStatusesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchContactEvaluationsCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchContactFlowModulesCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchContactFlowsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchMetricsCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/StartAssistantContactCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/StartWebRTCContactCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateExtractionDefinitionCommand.d.ts +42 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateMetricContentCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateMetricMetadataCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateViewMetadataCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateWorkspaceMetadataCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateWorkspacePageCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateWorkspaceThemeCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateWorkspaceVisibilityCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/index.d.ts +13 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/enums.d.ts +62 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_0.d.ts +83 -106
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_1.d.ts +185 -168
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_2.d.ts +200 -191
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_3.d.ts +265 -303
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_4.d.ts +304 -25
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/pagination/ListExtractionDefinitionsPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/pagination/ListMetricsPaginator.d.ts +8 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/pagination/SearchMetricsPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/runtimeConfig.browser.d.ts +56 -58
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/runtimeConfig.d.ts +58 -58
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/runtimeConfig.native.d.ts +60 -62
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/schemas/schemas_0.d.ts +58 -0
- package/node_modules/@aws-sdk/client-connect/package.json +10 -10
- package/node_modules/@aws-sdk/client-glue/dist-cjs/index.js +18 -18
- package/node_modules/@aws-sdk/client-glue/dist-es/index.js +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-es/schemas/schemas_0.js +17 -17
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/AssociateGlossaryTermsCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/DeleteAttachmentCommand.d.ts +2 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/DisassociateGlossaryTermsCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/PutAssetTypeCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartMaterializedViewRefreshTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StopMaterializedViewRefreshTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/models/errors.d.ts +12 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/models/models_0.d.ts +20 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/models/models_1.d.ts +31 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/models/models_2.d.ts +5 -3
- package/node_modules/@aws-sdk/client-glue/dist-types/models/models_3.d.ts +3 -2
- package/node_modules/@aws-sdk/client-glue/dist-types/runtimeConfig.browser.d.ts +40 -40
- package/node_modules/@aws-sdk/client-glue/dist-types/runtimeConfig.d.ts +36 -36
- package/node_modules/@aws-sdk/client-glue/dist-types/runtimeConfig.native.d.ts +38 -38
- package/node_modules/@aws-sdk/client-glue/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_0.d.ts +4 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_1.d.ts +6 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/runtimeConfig.browser.d.ts +56 -58
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/runtimeConfig.d.ts +58 -58
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/runtimeConfig.native.d.ts +60 -62
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/client-glue/package.json +10 -10
- package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-lakeformation/dist-es/index.js +1 -1
- package/node_modules/@aws-sdk/client-lakeformation/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lakeformation/dist-types/runtimeConfig.browser.d.ts +41 -41
- package/node_modules/@aws-sdk/client-lakeformation/dist-types/runtimeConfig.d.ts +37 -37
- package/node_modules/@aws-sdk/client-lakeformation/dist-types/runtimeConfig.native.d.ts +39 -39
- package/node_modules/@aws-sdk/client-lakeformation/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-lakeformation/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lakeformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +57 -59
- package/node_modules/@aws-sdk/client-lakeformation/dist-types/ts3.4/runtimeConfig.d.ts +59 -59
- package/node_modules/@aws-sdk/client-lakeformation/dist-types/ts3.4/runtimeConfig.native.d.ts +61 -63
- package/node_modules/@aws-sdk/client-lakeformation/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/client-lakeformation/package.json +10 -10
- package/node_modules/@aws-sdk/client-ram/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-ram/dist-es/index.js +1 -1
- package/node_modules/@aws-sdk/client-ram/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ram/dist-types/runtimeConfig.browser.d.ts +40 -40
- package/node_modules/@aws-sdk/client-ram/dist-types/runtimeConfig.d.ts +36 -36
- package/node_modules/@aws-sdk/client-ram/dist-types/runtimeConfig.native.d.ts +38 -38
- package/node_modules/@aws-sdk/client-ram/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-ram/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ram/dist-types/ts3.4/runtimeConfig.browser.d.ts +56 -58
- package/node_modules/@aws-sdk/client-ram/dist-types/ts3.4/runtimeConfig.d.ts +58 -58
- package/node_modules/@aws-sdk/client-ram/dist-types/ts3.4/runtimeConfig.native.d.ts +60 -62
- package/node_modules/@aws-sdk/client-ram/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/client-ram/package.json +10 -10
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +45 -45
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +36 -36
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +44 -44
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +72 -74
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +70 -70
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +76 -78
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.shared.d.ts +5 -5
- package/node_modules/@aws-sdk/client-sts/package.json +12 -12
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-endpoints/lib/aws/partitions.d.ts +54 -54
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partitions.d.ts +54 -54
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +1 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +1 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +1 -4
- package/node_modules/@aws-sdk/core/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-env/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-http/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
- package/node_modules/@aws-sdk/credential-provider-login/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-node/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +41 -41
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +43 -43
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +43 -43
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.browser.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.native.d.ts +41 -41
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +41 -41
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +44 -44
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +35 -35
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +43 -43
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +64 -66
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +65 -65
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +68 -70
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +67 -69
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +66 -66
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +71 -73
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +64 -66
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +65 -65
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +68 -70
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +64 -66
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +65 -65
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +68 -70
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +68 -70
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +68 -68
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +72 -74
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/package.json +9 -9
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +4 -4
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +8 -4
- package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +8 -4
- package/node_modules/@aws-sdk/token-providers/package.json +7 -7
- package/node_modules/@aws-sdk/types/package.json +3 -3
- package/node_modules/@aws-sdk/xml-builder/package.json +3 -3
- package/node_modules/@smithy/core/dist-cjs/index.js +3 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +127 -41
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +14 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +3 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +3 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +33 -24
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +33 -24
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +33 -15
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +0 -10
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +7 -0
- package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +1 -2
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +29 -13
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +12 -4
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +9 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +7 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +44 -15
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +22 -4
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +5 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +6 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +11 -4
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +23 -20
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +9 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +5 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +6 -4
- package/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js +6 -4
- package/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js +8 -5
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js +0 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js +0 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js +0 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +0 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js +0 -2
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/transport/hasOwn.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/transport/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +3 -0
- package/node_modules/@smithy/core/dist-types/submodules/client/smithy-client/extensions/defaultExtensionConfiguration.d.ts +1 -7
- package/node_modules/@smithy/core/dist-types/submodules/config/config-resolver/regionConfig/checkRegion.d.ts +2 -1
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateCondition.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateConditions.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateExpression.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateRules.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/getEndpointProperties.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/getReferenceValue.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/event-streams/EventStreamSerde.d.ts +14 -2
- package/node_modules/@smithy/core/dist-types/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +7 -2
- package/node_modules/@smithy/core/dist-types/submodules/retry/util-retry/retries-2026-config.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.browser.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.native.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/parse-utils.d.ts +5 -5
- package/node_modules/@smithy/core/dist-types/submodules/transport/hasOwn.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/submodules/transport/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/extensions/defaultExtensionConfiguration.d.ts +1 -7
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/regionConfig/checkRegion.d.ts +2 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateCondition.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateConditions.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateExpression.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateRules.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/getEndpointProperties.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/getReferenceValue.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/EventStreamSerde.d.ts +14 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +7 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/util-retry/retries-2026-config.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.browser.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.native.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/parse-utils.d.ts +5 -5
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/hasOwn.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/index.d.ts +1 -0
- package/node_modules/@smithy/core/package.json +3 -11
- package/node_modules/@smithy/credential-provider-imds/package.json +4 -12
- package/node_modules/@smithy/fetch-http-handler/package.json +5 -13
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +16 -4
- package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +3 -0
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +12 -2
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/package.json +5 -13
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +28 -16
- package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +13 -10
- package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +4 -1
- package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +4 -1
- package/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +10 -3
- package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +4 -1
- package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +4 -1
- package/node_modules/@smithy/signature-v4/package.json +4 -12
- package/node_modules/@smithy/types/dist-types/schema/sentinels.d.ts +14 -14
- package/node_modules/@smithy/types/package.json +29 -39
- package/package.json +9 -9
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const { nv, NumericValue, calculateBodyLength, generateIdempotencyToken, fromBase64, _parseEpochTimestamp } = require("@smithy/core/serde");
|
|
2
|
+
const { hasOwn, getSmithyContext } = require("@smithy/core/transport");
|
|
2
3
|
const { HttpRequest, collectBody, SerdeContext, RpcProtocol } = require("@smithy/core/protocols");
|
|
3
4
|
const { NormalizedSchema, deref, TypeRegistry } = require("@smithy/core/schema");
|
|
4
|
-
const { getSmithyContext } = require("@smithy/core/transport");
|
|
5
5
|
|
|
6
6
|
const majorUint64 = 0;
|
|
7
7
|
const majorNegativeInt64 = 1;
|
|
@@ -299,23 +299,39 @@ function decodeTagValue(at, to, minor, unsignedInt, offset) {
|
|
|
299
299
|
}
|
|
300
300
|
else if (minor === 4) {
|
|
301
301
|
const decimalFraction = decode(at + offset, to);
|
|
302
|
-
const [
|
|
302
|
+
const [rawExponent, mantissa] = decimalFraction;
|
|
303
303
|
const normalizer = mantissa < 0 ? -1 : 1;
|
|
304
|
-
const
|
|
305
|
-
|
|
304
|
+
const absMantissa = BigInt(normalizer) * BigInt(mantissa);
|
|
305
|
+
const mantissaDigits = String(absMantissa);
|
|
306
306
|
const sign = mantissa < 0 ? "-" : "";
|
|
307
|
-
numericString
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
numericString =
|
|
317
|
-
|
|
318
|
-
|
|
307
|
+
let numericString;
|
|
308
|
+
const isSmallExponent = typeof rawExponent === "number" && Math.abs(rawExponent) <= 2 ** 28;
|
|
309
|
+
if (isSmallExponent) {
|
|
310
|
+
const exponent = rawExponent;
|
|
311
|
+
const mantissaStr = "0".repeat(Math.abs(exponent) + 1) + mantissaDigits;
|
|
312
|
+
numericString =
|
|
313
|
+
exponent === 0
|
|
314
|
+
? mantissaStr
|
|
315
|
+
: mantissaStr.slice(0, mantissaStr.length + exponent) + "." + mantissaStr.slice(exponent);
|
|
316
|
+
numericString = numericString.replace(/^0+/g, "");
|
|
317
|
+
if (numericString === "") {
|
|
318
|
+
numericString = "0";
|
|
319
|
+
}
|
|
320
|
+
if (numericString[0] === ".") {
|
|
321
|
+
numericString = "0" + numericString;
|
|
322
|
+
}
|
|
323
|
+
numericString = sign + numericString;
|
|
324
|
+
}
|
|
325
|
+
else {
|
|
326
|
+
const bigExponent = BigInt(rawExponent);
|
|
327
|
+
if (mantissaDigits.length === 1) {
|
|
328
|
+
numericString = sign + mantissaDigits + "e" + String(bigExponent);
|
|
329
|
+
}
|
|
330
|
+
else {
|
|
331
|
+
const adjustedExp = bigExponent + BigInt(mantissaDigits.length - 1);
|
|
332
|
+
numericString = sign + mantissaDigits[0] + "." + mantissaDigits.slice(1) + "e" + String(adjustedExp);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
319
335
|
_offset = offset + _offset;
|
|
320
336
|
return nv(numericString);
|
|
321
337
|
}
|
|
@@ -664,13 +680,21 @@ function encode(_input) {
|
|
|
664
680
|
}
|
|
665
681
|
else if (typeof input === "object") {
|
|
666
682
|
if (input instanceof NumericValue) {
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
const
|
|
683
|
+
let str = input.string;
|
|
684
|
+
let expOffset = BigInt(0);
|
|
685
|
+
const eIndex = str.search(/[eE]/);
|
|
686
|
+
if (eIndex !== -1) {
|
|
687
|
+
expOffset = BigInt(str.slice(eIndex + 1));
|
|
688
|
+
str = str.slice(0, eIndex);
|
|
689
|
+
}
|
|
690
|
+
const decimalIndex = str.indexOf(".");
|
|
691
|
+
const fractionDigits = decimalIndex === -1 ? 0 : str.length - decimalIndex - 1;
|
|
692
|
+
const exponent = expOffset - BigInt(fractionDigits);
|
|
693
|
+
const mantissa = BigInt(str.replace(".", ""));
|
|
670
694
|
data[cursor$1++] = 0b110_00100;
|
|
671
695
|
encodeInteger(majorList, 2);
|
|
672
696
|
encodeStack.push(mantissa);
|
|
673
|
-
encodeStack.push(exponent);
|
|
697
|
+
encodeStack.push(exponent >= -0x20000000000000n && exponent <= 0x1fffffffffffffn ? Number(exponent) : exponent);
|
|
674
698
|
continue;
|
|
675
699
|
}
|
|
676
700
|
if (input[tagSymbol]) {
|
|
@@ -888,6 +912,8 @@ const loadSmithyRpcV2CborErrorCode = (output, data) => {
|
|
|
888
912
|
}
|
|
889
913
|
let codeKey;
|
|
890
914
|
for (const key in data) {
|
|
915
|
+
if (!hasOwn(data, key))
|
|
916
|
+
continue;
|
|
891
917
|
if (key.toLowerCase() === "code") {
|
|
892
918
|
codeKey = key;
|
|
893
919
|
break;
|
|
@@ -920,6 +946,8 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
920
946
|
}
|
|
921
947
|
if (endpoint.headers) {
|
|
922
948
|
for (const name in endpoint.headers) {
|
|
949
|
+
if (!hasOwn(endpoint.headers, name))
|
|
950
|
+
continue;
|
|
923
951
|
contents.headers[name] = endpoint.headers[name];
|
|
924
952
|
}
|
|
925
953
|
}
|
|
@@ -1180,6 +1208,8 @@ function writeStruct(ns, value, serdeContext) {
|
|
|
1180
1208
|
}
|
|
1181
1209
|
if (typeof value.__type === "string") {
|
|
1182
1210
|
for (const k in value) {
|
|
1211
|
+
if (!hasOwn(value, k))
|
|
1212
|
+
continue;
|
|
1183
1213
|
if (!memberNames.includes(k)) {
|
|
1184
1214
|
writeString(k);
|
|
1185
1215
|
writeUntypedValue(value[k]);
|
|
@@ -1245,6 +1275,8 @@ function writeMap(ns, value, isDocument, serdeContext) {
|
|
|
1245
1275
|
const valueSchema = ns.getValueSchema();
|
|
1246
1276
|
const keys = [];
|
|
1247
1277
|
for (const k in value) {
|
|
1278
|
+
if (!hasOwn(value, k))
|
|
1279
|
+
continue;
|
|
1248
1280
|
const v = value[k];
|
|
1249
1281
|
if (isDocument ? v !== undefined : v != null || sparse) {
|
|
1250
1282
|
keys.push(k);
|
|
@@ -1506,14 +1538,27 @@ function writeTag(tagValue, innerValue) {
|
|
|
1506
1538
|
writeUntypedValue(innerValue);
|
|
1507
1539
|
}
|
|
1508
1540
|
function writeNumericValue(nv) {
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
const
|
|
1541
|
+
let str = nv.string;
|
|
1542
|
+
let expOffset = BigInt(0);
|
|
1543
|
+
const eIndex = str.search(/[eE]/);
|
|
1544
|
+
if (eIndex !== -1) {
|
|
1545
|
+
expOffset = BigInt(str.slice(eIndex + 1));
|
|
1546
|
+
str = str.slice(0, eIndex);
|
|
1547
|
+
}
|
|
1548
|
+
const decimalIndex = str.indexOf(".");
|
|
1549
|
+
const fractionDigits = decimalIndex === -1 ? 0 : str.length - decimalIndex - 1;
|
|
1550
|
+
const exponent = expOffset - BigInt(fractionDigits);
|
|
1551
|
+
const mantissa = BigInt(str.replace(".", ""));
|
|
1512
1552
|
ensure(9);
|
|
1513
1553
|
buf[cursor++] = 0b110_00100;
|
|
1514
1554
|
encodeHeader(majorList, 2);
|
|
1515
1555
|
ensure(9);
|
|
1516
|
-
|
|
1556
|
+
if (exponent >= -0x20000000000000n && exponent <= 0x1fffffffffffffn) {
|
|
1557
|
+
writeInteger(Number(exponent));
|
|
1558
|
+
}
|
|
1559
|
+
else {
|
|
1560
|
+
writeBigInt(exponent);
|
|
1561
|
+
}
|
|
1517
1562
|
writeBigInt(mantissa);
|
|
1518
1563
|
}
|
|
1519
1564
|
function writeTimestamp(date) {
|
|
@@ -1645,6 +1690,8 @@ function readStruct(ns, count, startPos) {
|
|
|
1645
1690
|
if (isUnion) {
|
|
1646
1691
|
let resultEmpty = true;
|
|
1647
1692
|
for (const _ in result) {
|
|
1693
|
+
if (!hasOwn(result, _))
|
|
1694
|
+
continue;
|
|
1648
1695
|
resultEmpty = false;
|
|
1649
1696
|
break;
|
|
1650
1697
|
}
|
|
@@ -1684,23 +1731,39 @@ function readTag(ns) {
|
|
|
1684
1731
|
if (tagNumber === 4) {
|
|
1685
1732
|
const docSchema = NormalizedSchema.of(15);
|
|
1686
1733
|
const pair = readValue(docSchema);
|
|
1687
|
-
const [
|
|
1734
|
+
const [rawExponent, mantissa] = pair;
|
|
1688
1735
|
const normalizer = mantissa < 0 ? -1 : 1;
|
|
1689
|
-
const
|
|
1690
|
-
|
|
1736
|
+
const absMantissa = BigInt(normalizer) * BigInt(mantissa);
|
|
1737
|
+
const mantissaDigits = String(absMantissa);
|
|
1691
1738
|
const sign = mantissa < 0 ? "-" : "";
|
|
1692
|
-
numericString
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
numericString =
|
|
1702
|
-
|
|
1703
|
-
|
|
1739
|
+
let numericString;
|
|
1740
|
+
const isSmallExponent = typeof rawExponent === "number" && Math.abs(rawExponent) <= 2 ** 28;
|
|
1741
|
+
if (isSmallExponent) {
|
|
1742
|
+
const exponent = rawExponent;
|
|
1743
|
+
const mantissaStr = "0".repeat(Math.abs(exponent) + 1) + mantissaDigits;
|
|
1744
|
+
numericString =
|
|
1745
|
+
exponent === 0
|
|
1746
|
+
? mantissaStr
|
|
1747
|
+
: mantissaStr.slice(0, mantissaStr.length + exponent) + "." + mantissaStr.slice(exponent);
|
|
1748
|
+
numericString = numericString.replace(/^0+/g, "");
|
|
1749
|
+
if (numericString === "") {
|
|
1750
|
+
numericString = "0";
|
|
1751
|
+
}
|
|
1752
|
+
if (numericString[0] === ".") {
|
|
1753
|
+
numericString = "0" + numericString;
|
|
1754
|
+
}
|
|
1755
|
+
numericString = sign + numericString;
|
|
1756
|
+
}
|
|
1757
|
+
else {
|
|
1758
|
+
const bigExponent = BigInt(rawExponent);
|
|
1759
|
+
if (mantissaDigits.length === 1) {
|
|
1760
|
+
numericString = sign + mantissaDigits + "e" + String(bigExponent);
|
|
1761
|
+
}
|
|
1762
|
+
else {
|
|
1763
|
+
const adjustedExp = bigExponent + BigInt(mantissaDigits.length - 1);
|
|
1764
|
+
numericString = sign + mantissaDigits[0] + "." + mantissaDigits.slice(1) + "e" + String(adjustedExp);
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1704
1767
|
return nv(numericString);
|
|
1705
1768
|
}
|
|
1706
1769
|
const docSchema = NormalizedSchema.of(15);
|
|
@@ -1797,6 +1860,8 @@ function readMapIndefinite(ns) {
|
|
|
1797
1860
|
if (isUnion) {
|
|
1798
1861
|
let resultEmpty = true;
|
|
1799
1862
|
for (const _ in result) {
|
|
1863
|
+
if (!hasOwn(result, _))
|
|
1864
|
+
continue;
|
|
1800
1865
|
resultEmpty = false;
|
|
1801
1866
|
break;
|
|
1802
1867
|
}
|
|
@@ -2101,6 +2166,8 @@ function transformObject(ns, value) {
|
|
|
2101
2166
|
if (ns.isMapSchema()) {
|
|
2102
2167
|
const targetSchema = ns.getValueSchema();
|
|
2103
2168
|
for (const key in value) {
|
|
2169
|
+
if (!hasOwn(value, key))
|
|
2170
|
+
continue;
|
|
2104
2171
|
newObject[key] = transformObject(targetSchema, value[key]);
|
|
2105
2172
|
}
|
|
2106
2173
|
}
|
|
@@ -2110,6 +2177,8 @@ function transformObject(ns, value) {
|
|
|
2110
2177
|
if (isUnion) {
|
|
2111
2178
|
keys = new Set();
|
|
2112
2179
|
for (const k in value) {
|
|
2180
|
+
if (!hasOwn(value, k))
|
|
2181
|
+
continue;
|
|
2113
2182
|
if (k !== "__type") {
|
|
2114
2183
|
keys.add(k);
|
|
2115
2184
|
}
|
|
@@ -2126,6 +2195,8 @@ function transformObject(ns, value) {
|
|
|
2126
2195
|
if (isUnion && keys?.size === 1) {
|
|
2127
2196
|
let newObjectEmpty = true;
|
|
2128
2197
|
for (const _ in newObject) {
|
|
2198
|
+
if (!hasOwn(newObject, _))
|
|
2199
|
+
continue;
|
|
2129
2200
|
newObjectEmpty = false;
|
|
2130
2201
|
break;
|
|
2131
2202
|
}
|
|
@@ -2136,6 +2207,8 @@ function transformObject(ns, value) {
|
|
|
2136
2207
|
}
|
|
2137
2208
|
else if (typeof value.__type === "string") {
|
|
2138
2209
|
for (const k in value) {
|
|
2210
|
+
if (!hasOwn(value, k))
|
|
2211
|
+
continue;
|
|
2139
2212
|
if (!(k in newObject)) {
|
|
2140
2213
|
newObject[k] = value[k];
|
|
2141
2214
|
}
|
|
@@ -2187,10 +2260,9 @@ class SmithyRpcV2CborProtocol extends RpcProtocol {
|
|
|
2187
2260
|
this.serializer.write(15, {});
|
|
2188
2261
|
request.body = this.serializer.flush();
|
|
2189
2262
|
}
|
|
2190
|
-
|
|
2263
|
+
if (request.body instanceof Uint8Array) {
|
|
2191
2264
|
request.headers["content-length"] = String(request.body.byteLength);
|
|
2192
2265
|
}
|
|
2193
|
-
catch (ignored) { }
|
|
2194
2266
|
}
|
|
2195
2267
|
const { service, operation } = getSmithyContext(context);
|
|
2196
2268
|
const path = `/service/${service}/operation/${operation}`;
|
|
@@ -2299,6 +2371,8 @@ class CborShapeSerializer extends SerdeContext {
|
|
|
2299
2371
|
if (ns.isMapSchema()) {
|
|
2300
2372
|
const sparse = !!ns.getMergedTraits().sparse;
|
|
2301
2373
|
for (const key in sourceObject) {
|
|
2374
|
+
if (!hasOwn(sourceObject, key))
|
|
2375
|
+
continue;
|
|
2302
2376
|
const value = this.serialize(ns.getValueSchema(), sourceObject[key]);
|
|
2303
2377
|
if (value != null || sparse) {
|
|
2304
2378
|
newObject[key] = value;
|
|
@@ -2319,6 +2393,8 @@ class CborShapeSerializer extends SerdeContext {
|
|
|
2319
2393
|
}
|
|
2320
2394
|
else if (typeof sourceObject.__type === "string") {
|
|
2321
2395
|
for (const k in sourceObject) {
|
|
2396
|
+
if (!hasOwn(sourceObject, k))
|
|
2397
|
+
continue;
|
|
2322
2398
|
if (!(k in newObject)) {
|
|
2323
2399
|
newObject[k] = this.serialize(15, sourceObject[k]);
|
|
2324
2400
|
}
|
|
@@ -2335,6 +2411,8 @@ class CborShapeSerializer extends SerdeContext {
|
|
|
2335
2411
|
return newArray;
|
|
2336
2412
|
}
|
|
2337
2413
|
for (const key in sourceObject) {
|
|
2414
|
+
if (!hasOwn(sourceObject, key))
|
|
2415
|
+
continue;
|
|
2338
2416
|
newObject[key] = this.serialize(ns.getValueSchema(), sourceObject[key]);
|
|
2339
2417
|
}
|
|
2340
2418
|
}
|
|
@@ -2409,6 +2487,8 @@ class CborShapeDeserializer extends SerdeContext {
|
|
|
2409
2487
|
if (ns.isMapSchema()) {
|
|
2410
2488
|
const targetSchema = ns.getValueSchema();
|
|
2411
2489
|
for (const key in value) {
|
|
2490
|
+
if (!hasOwn(value, key))
|
|
2491
|
+
continue;
|
|
2412
2492
|
const itemValue = this.readValue(targetSchema, value[key]);
|
|
2413
2493
|
newObject[key] = itemValue;
|
|
2414
2494
|
}
|
|
@@ -2419,6 +2499,8 @@ class CborShapeDeserializer extends SerdeContext {
|
|
|
2419
2499
|
if (isUnion) {
|
|
2420
2500
|
keys = new Set();
|
|
2421
2501
|
for (const k in value) {
|
|
2502
|
+
if (!hasOwn(value, k))
|
|
2503
|
+
continue;
|
|
2422
2504
|
if (k !== "__type") {
|
|
2423
2505
|
keys.add(k);
|
|
2424
2506
|
}
|
|
@@ -2435,6 +2517,8 @@ class CborShapeDeserializer extends SerdeContext {
|
|
|
2435
2517
|
if (isUnion && keys?.size === 1) {
|
|
2436
2518
|
let newObjectEmpty = true;
|
|
2437
2519
|
for (const _ in newObject) {
|
|
2520
|
+
if (!hasOwn(newObject, _))
|
|
2521
|
+
continue;
|
|
2438
2522
|
newObjectEmpty = false;
|
|
2439
2523
|
break;
|
|
2440
2524
|
}
|
|
@@ -2445,6 +2529,8 @@ class CborShapeDeserializer extends SerdeContext {
|
|
|
2445
2529
|
}
|
|
2446
2530
|
else if (typeof value.__type === "string") {
|
|
2447
2531
|
for (const k in value) {
|
|
2532
|
+
if (!hasOwn(value, k))
|
|
2533
|
+
continue;
|
|
2448
2534
|
if (!(k in newObject)) {
|
|
2449
2535
|
newObject[k] = value[k];
|
|
2450
2536
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
const { hasOwn } = require("@smithy/core/transport");
|
|
1
2
|
const { getSmithyContext, normalizeProvider } = require("@smithy/core/transport");
|
|
2
3
|
exports.getSmithyContext = getSmithyContext;
|
|
3
4
|
exports.normalizeProvider = normalizeProvider;
|
|
@@ -867,6 +868,8 @@ const knownAlgorithms = Object.values(AlgorithmId);
|
|
|
867
868
|
const getChecksumConfiguration = (runtimeConfig) => {
|
|
868
869
|
const checksumAlgorithms = [];
|
|
869
870
|
for (const id in AlgorithmId) {
|
|
871
|
+
if (!hasOwn(AlgorithmId, id))
|
|
872
|
+
continue;
|
|
870
873
|
const algorithmId = AlgorithmId[id];
|
|
871
874
|
if (runtimeConfig[algorithmId] === undefined) {
|
|
872
875
|
continue;
|
|
@@ -940,7 +943,9 @@ const getArrayIfSingleItem = (mayBeArray) => Array.isArray(mayBeArray) ? mayBeAr
|
|
|
940
943
|
const getValueFromTextNode = (obj) => {
|
|
941
944
|
const textNodeName = "#text";
|
|
942
945
|
for (const key in obj) {
|
|
943
|
-
if (
|
|
946
|
+
if (!hasOwn(obj, key))
|
|
947
|
+
continue;
|
|
948
|
+
if (obj[key][textNodeName] !== undefined) {
|
|
944
949
|
obj[key] = obj[key][textNodeName];
|
|
945
950
|
}
|
|
946
951
|
else if (typeof obj[key] === "object" && obj[key] !== null) {
|
|
@@ -981,7 +986,9 @@ function map(arg0, arg1, arg2) {
|
|
|
981
986
|
instructions = arg1;
|
|
982
987
|
}
|
|
983
988
|
}
|
|
984
|
-
for (const key
|
|
989
|
+
for (const key in instructions) {
|
|
990
|
+
if (!hasOwn(instructions, key))
|
|
991
|
+
continue;
|
|
985
992
|
if (!Array.isArray(instructions[key])) {
|
|
986
993
|
target[key] = instructions[key];
|
|
987
994
|
continue;
|
|
@@ -1000,6 +1007,8 @@ const convertMap = (target) => {
|
|
|
1000
1007
|
const take = (source, instructions) => {
|
|
1001
1008
|
const out = {};
|
|
1002
1009
|
for (const key in instructions) {
|
|
1010
|
+
if (!hasOwn(instructions, key))
|
|
1011
|
+
continue;
|
|
1003
1012
|
applyInstruction(out, source, instructions, key);
|
|
1004
1013
|
}
|
|
1005
1014
|
return out;
|
|
@@ -1079,7 +1088,9 @@ const _json = (obj) => {
|
|
|
1079
1088
|
}
|
|
1080
1089
|
if (typeof obj === "object") {
|
|
1081
1090
|
const target = {};
|
|
1082
|
-
for (const key
|
|
1091
|
+
for (const key in obj) {
|
|
1092
|
+
if (!hasOwn(obj, key))
|
|
1093
|
+
continue;
|
|
1083
1094
|
if (obj[key] == null) {
|
|
1084
1095
|
continue;
|
|
1085
1096
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const { toEndpointV1, getSmithyContext, normalizeProvider, isValidHostLabel } = require("@smithy/core/transport");
|
|
1
|
+
const { toEndpointV1, getSmithyContext, normalizeProvider, isValidHostLabel, hasOwn } = require("@smithy/core/transport");
|
|
2
2
|
exports.isValidHostLabel = isValidHostLabel;
|
|
3
3
|
exports.middlewareEndpointToEndpointV1 = toEndpointV1;
|
|
4
4
|
exports.toEndpointV1 = toEndpointV1;
|
|
@@ -782,6 +782,8 @@ const resolveEndpoint = (ruleSetObject, options) => {
|
|
|
782
782
|
const { parameters, rules } = ruleSetObject;
|
|
783
783
|
options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`);
|
|
784
784
|
for (const paramKey in parameters) {
|
|
785
|
+
if (!hasOwn(parameters, paramKey))
|
|
786
|
+
continue;
|
|
785
787
|
const parameter = parameters[paramKey];
|
|
786
788
|
const endpointParam = endpointParams[paramKey];
|
|
787
789
|
if (endpointParam == null && parameter.default != null) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const { CONFIG_PREFIX_SEPARATOR, booleanSelector, SelectorType, loadConfig } = require("@smithy/core/config");
|
|
2
|
-
const { toEndpointV1, getSmithyContext, normalizeProvider, isValidHostLabel } = require("@smithy/core/transport");
|
|
2
|
+
const { toEndpointV1, getSmithyContext, normalizeProvider, isValidHostLabel, hasOwn } = require("@smithy/core/transport");
|
|
3
3
|
exports.isValidHostLabel = isValidHostLabel;
|
|
4
4
|
exports.middlewareEndpointToEndpointV1 = toEndpointV1;
|
|
5
5
|
exports.toEndpointV1 = toEndpointV1;
|
|
@@ -830,6 +830,8 @@ const resolveEndpoint = (ruleSetObject, options) => {
|
|
|
830
830
|
const { parameters, rules } = ruleSetObject;
|
|
831
831
|
options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`);
|
|
832
832
|
for (const paramKey in parameters) {
|
|
833
|
+
if (!hasOwn(parameters, paramKey))
|
|
834
|
+
continue;
|
|
833
835
|
const parameter = parameters[paramKey];
|
|
834
836
|
const endpointParam = endpointParams[paramKey];
|
|
835
837
|
if (endpointParam == null && parameter.default != null) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const { Crc32 } = require("@smithy/core/checksum");
|
|
2
|
+
const { hasOwn } = require("@smithy/core/transport");
|
|
2
3
|
const { toHex, fromHex, toUtf8, fromUtf8 } = require("@smithy/core/serde");
|
|
3
4
|
const { TypeRegistry } = require("@smithy/core/schema");
|
|
4
5
|
|
|
@@ -55,7 +56,9 @@ class HeaderMarshaller {
|
|
|
55
56
|
}
|
|
56
57
|
format(headers) {
|
|
57
58
|
const chunks = [];
|
|
58
|
-
for (const headerName
|
|
59
|
+
for (const headerName in headers) {
|
|
60
|
+
if (!hasOwn(headers, headerName))
|
|
61
|
+
continue;
|
|
59
62
|
const bytes = this.fromUtf8(headerName);
|
|
60
63
|
chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));
|
|
61
64
|
}
|
|
@@ -70,27 +73,27 @@ class HeaderMarshaller {
|
|
|
70
73
|
formatHeaderValue(header) {
|
|
71
74
|
switch (header.type) {
|
|
72
75
|
case "boolean":
|
|
73
|
-
return Uint8Array.from([header.value ?
|
|
76
|
+
return Uint8Array.from([header.value ? 0 : 1]);
|
|
74
77
|
case "byte":
|
|
75
|
-
return Uint8Array.from([
|
|
78
|
+
return Uint8Array.from([2, header.value]);
|
|
76
79
|
case "short":
|
|
77
80
|
const shortView = new DataView(new ArrayBuffer(3));
|
|
78
|
-
shortView.setUint8(0,
|
|
81
|
+
shortView.setUint8(0, 3);
|
|
79
82
|
shortView.setInt16(1, header.value, false);
|
|
80
83
|
return new Uint8Array(shortView.buffer);
|
|
81
84
|
case "integer":
|
|
82
85
|
const intView = new DataView(new ArrayBuffer(5));
|
|
83
|
-
intView.setUint8(0,
|
|
86
|
+
intView.setUint8(0, 4);
|
|
84
87
|
intView.setInt32(1, header.value, false);
|
|
85
88
|
return new Uint8Array(intView.buffer);
|
|
86
89
|
case "long":
|
|
87
90
|
const longBytes = new Uint8Array(9);
|
|
88
|
-
longBytes[0] =
|
|
91
|
+
longBytes[0] = 5;
|
|
89
92
|
longBytes.set(header.value.bytes, 1);
|
|
90
93
|
return longBytes;
|
|
91
94
|
case "binary":
|
|
92
95
|
const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));
|
|
93
|
-
binView.setUint8(0,
|
|
96
|
+
binView.setUint8(0, 6);
|
|
94
97
|
binView.setUint16(1, header.value.byteLength, false);
|
|
95
98
|
const binBytes = new Uint8Array(binView.buffer);
|
|
96
99
|
binBytes.set(header.value, 3);
|
|
@@ -98,14 +101,14 @@ class HeaderMarshaller {
|
|
|
98
101
|
case "string":
|
|
99
102
|
const utf8Bytes = this.fromUtf8(header.value);
|
|
100
103
|
const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));
|
|
101
|
-
strView.setUint8(0,
|
|
104
|
+
strView.setUint8(0, 7);
|
|
102
105
|
strView.setUint16(1, utf8Bytes.byteLength, false);
|
|
103
106
|
const strBytes = new Uint8Array(strView.buffer);
|
|
104
107
|
strBytes.set(utf8Bytes, 3);
|
|
105
108
|
return strBytes;
|
|
106
109
|
case "timestamp":
|
|
107
110
|
const tsBytes = new Uint8Array(9);
|
|
108
|
-
tsBytes[0] =
|
|
111
|
+
tsBytes[0] = 8;
|
|
109
112
|
tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1);
|
|
110
113
|
return tsBytes;
|
|
111
114
|
case "uuid":
|
|
@@ -113,7 +116,7 @@ class HeaderMarshaller {
|
|
|
113
116
|
throw new Error(`Invalid UUID received: ${header.value}`);
|
|
114
117
|
}
|
|
115
118
|
const uuidBytes = new Uint8Array(17);
|
|
116
|
-
uuidBytes[0] =
|
|
119
|
+
uuidBytes[0] = 9;
|
|
117
120
|
uuidBytes.set(fromHex(header.value.replace(/-/g, "")), 1);
|
|
118
121
|
return uuidBytes;
|
|
119
122
|
}
|
|
@@ -126,46 +129,46 @@ class HeaderMarshaller {
|
|
|
126
129
|
const name = this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, nameLength));
|
|
127
130
|
position += nameLength;
|
|
128
131
|
switch (headers.getUint8(position++)) {
|
|
129
|
-
case
|
|
132
|
+
case 0:
|
|
130
133
|
out[name] = {
|
|
131
134
|
type: BOOLEAN_TAG,
|
|
132
135
|
value: true,
|
|
133
136
|
};
|
|
134
137
|
break;
|
|
135
|
-
case
|
|
138
|
+
case 1:
|
|
136
139
|
out[name] = {
|
|
137
140
|
type: BOOLEAN_TAG,
|
|
138
141
|
value: false,
|
|
139
142
|
};
|
|
140
143
|
break;
|
|
141
|
-
case
|
|
144
|
+
case 2:
|
|
142
145
|
out[name] = {
|
|
143
146
|
type: BYTE_TAG,
|
|
144
147
|
value: headers.getInt8(position++),
|
|
145
148
|
};
|
|
146
149
|
break;
|
|
147
|
-
case
|
|
150
|
+
case 3:
|
|
148
151
|
out[name] = {
|
|
149
152
|
type: SHORT_TAG,
|
|
150
153
|
value: headers.getInt16(position, false),
|
|
151
154
|
};
|
|
152
155
|
position += 2;
|
|
153
156
|
break;
|
|
154
|
-
case
|
|
157
|
+
case 4:
|
|
155
158
|
out[name] = {
|
|
156
159
|
type: INT_TAG,
|
|
157
160
|
value: headers.getInt32(position, false),
|
|
158
161
|
};
|
|
159
162
|
position += 4;
|
|
160
163
|
break;
|
|
161
|
-
case
|
|
164
|
+
case 5:
|
|
162
165
|
out[name] = {
|
|
163
166
|
type: LONG_TAG,
|
|
164
167
|
value: new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)),
|
|
165
168
|
};
|
|
166
169
|
position += 8;
|
|
167
170
|
break;
|
|
168
|
-
case
|
|
171
|
+
case 6:
|
|
169
172
|
const binaryLength = headers.getUint16(position, false);
|
|
170
173
|
position += 2;
|
|
171
174
|
out[name] = {
|
|
@@ -174,7 +177,7 @@ class HeaderMarshaller {
|
|
|
174
177
|
};
|
|
175
178
|
position += binaryLength;
|
|
176
179
|
break;
|
|
177
|
-
case
|
|
180
|
+
case 7:
|
|
178
181
|
const stringLength = headers.getUint16(position, false);
|
|
179
182
|
position += 2;
|
|
180
183
|
out[name] = {
|
|
@@ -183,14 +186,14 @@ class HeaderMarshaller {
|
|
|
183
186
|
};
|
|
184
187
|
position += stringLength;
|
|
185
188
|
break;
|
|
186
|
-
case
|
|
189
|
+
case 8:
|
|
187
190
|
out[name] = {
|
|
188
191
|
type: TIMESTAMP_TAG,
|
|
189
192
|
value: new Date(new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf()),
|
|
190
193
|
};
|
|
191
194
|
position += 8;
|
|
192
195
|
break;
|
|
193
|
-
case
|
|
196
|
+
case 9:
|
|
194
197
|
const uuidBytes = new Uint8Array(headers.buffer, headers.byteOffset + position, 16);
|
|
195
198
|
position += 16;
|
|
196
199
|
out[name] = {
|
|
@@ -601,7 +604,7 @@ class EventStreamSerde {
|
|
|
601
604
|
this.defaultContentType = defaultContentType;
|
|
602
605
|
this.compositeErrorRegistry = compositeErrorRegistry;
|
|
603
606
|
}
|
|
604
|
-
async serializeEventStream({ eventStream, requestSchema, initialRequest, }) {
|
|
607
|
+
async serializeEventStream({ eventStream, requestSchema, initialRequest, initialMessageType, }) {
|
|
605
608
|
const marshaller = this.marshaller;
|
|
606
609
|
const eventStreamMember = requestSchema.getEventStreamMember();
|
|
607
610
|
const unionSchema = requestSchema.getMemberSchema(eventStreamMember);
|
|
@@ -612,7 +615,7 @@ class EventStreamSerde {
|
|
|
612
615
|
async *[Symbol.asyncIterator]() {
|
|
613
616
|
if (initialRequest) {
|
|
614
617
|
const headers = {
|
|
615
|
-
":event-type": { type: "string", value: "initial-request" },
|
|
618
|
+
":event-type": { type: "string", value: initialMessageType ?? "initial-request" },
|
|
616
619
|
":message-type": { type: "string", value: "event" },
|
|
617
620
|
":content-type": { type: "string", value: defaultContentType },
|
|
618
621
|
};
|
|
@@ -638,6 +641,8 @@ class EventStreamSerde {
|
|
|
638
641
|
}
|
|
639
642
|
let unionMember = "";
|
|
640
643
|
for (const key in event) {
|
|
644
|
+
if (!hasOwn(event, key))
|
|
645
|
+
continue;
|
|
641
646
|
if (key !== "__type") {
|
|
642
647
|
unionMember = key;
|
|
643
648
|
break;
|
|
@@ -656,7 +661,7 @@ class EventStreamSerde {
|
|
|
656
661
|
};
|
|
657
662
|
});
|
|
658
663
|
}
|
|
659
|
-
async deserializeEventStream({ response, responseSchema, initialResponseContainer, }) {
|
|
664
|
+
async deserializeEventStream({ response, responseSchema, initialResponseContainer, initialMessageType, }) {
|
|
660
665
|
const marshaller = this.marshaller;
|
|
661
666
|
const eventStreamMember = responseSchema.getEventStreamMember();
|
|
662
667
|
const unionSchema = responseSchema.getMemberSchema(eventStreamMember);
|
|
@@ -665,13 +670,15 @@ class EventStreamSerde {
|
|
|
665
670
|
const asyncIterable = marshaller.deserialize(response.body, async (event) => {
|
|
666
671
|
let unionMember = "";
|
|
667
672
|
for (const key in event) {
|
|
673
|
+
if (!hasOwn(event, key))
|
|
674
|
+
continue;
|
|
668
675
|
if (key !== "__type") {
|
|
669
676
|
unionMember = key;
|
|
670
677
|
break;
|
|
671
678
|
}
|
|
672
679
|
}
|
|
673
680
|
const body = event[unionMember].body;
|
|
674
|
-
if (unionMember === "initial-response") {
|
|
681
|
+
if (unionMember === (initialMessageType ?? "initial-response")) {
|
|
675
682
|
const dataObject = await this.deserializer.read(responseSchema, body);
|
|
676
683
|
delete dataObject[eventStreamMember];
|
|
677
684
|
return {
|
|
@@ -739,6 +746,8 @@ class EventStreamSerde {
|
|
|
739
746
|
throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");
|
|
740
747
|
}
|
|
741
748
|
for (const key in firstEvent.value) {
|
|
749
|
+
if (!hasOwn(firstEvent.value, key))
|
|
750
|
+
continue;
|
|
742
751
|
initialResponseContainer[key] = firstEvent.value[key];
|
|
743
752
|
}
|
|
744
753
|
}
|