@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,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 { Readable } = require("node:stream");
|
|
4
5
|
const { TypeRegistry } = require("@smithy/core/schema");
|
|
@@ -56,7 +57,9 @@ class HeaderMarshaller {
|
|
|
56
57
|
}
|
|
57
58
|
format(headers) {
|
|
58
59
|
const chunks = [];
|
|
59
|
-
for (const headerName
|
|
60
|
+
for (const headerName in headers) {
|
|
61
|
+
if (!hasOwn(headers, headerName))
|
|
62
|
+
continue;
|
|
60
63
|
const bytes = this.fromUtf8(headerName);
|
|
61
64
|
chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));
|
|
62
65
|
}
|
|
@@ -71,27 +74,27 @@ class HeaderMarshaller {
|
|
|
71
74
|
formatHeaderValue(header) {
|
|
72
75
|
switch (header.type) {
|
|
73
76
|
case "boolean":
|
|
74
|
-
return Uint8Array.from([header.value ?
|
|
77
|
+
return Uint8Array.from([header.value ? 0 : 1]);
|
|
75
78
|
case "byte":
|
|
76
|
-
return Uint8Array.from([
|
|
79
|
+
return Uint8Array.from([2, header.value]);
|
|
77
80
|
case "short":
|
|
78
81
|
const shortView = new DataView(new ArrayBuffer(3));
|
|
79
|
-
shortView.setUint8(0,
|
|
82
|
+
shortView.setUint8(0, 3);
|
|
80
83
|
shortView.setInt16(1, header.value, false);
|
|
81
84
|
return new Uint8Array(shortView.buffer);
|
|
82
85
|
case "integer":
|
|
83
86
|
const intView = new DataView(new ArrayBuffer(5));
|
|
84
|
-
intView.setUint8(0,
|
|
87
|
+
intView.setUint8(0, 4);
|
|
85
88
|
intView.setInt32(1, header.value, false);
|
|
86
89
|
return new Uint8Array(intView.buffer);
|
|
87
90
|
case "long":
|
|
88
91
|
const longBytes = new Uint8Array(9);
|
|
89
|
-
longBytes[0] =
|
|
92
|
+
longBytes[0] = 5;
|
|
90
93
|
longBytes.set(header.value.bytes, 1);
|
|
91
94
|
return longBytes;
|
|
92
95
|
case "binary":
|
|
93
96
|
const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));
|
|
94
|
-
binView.setUint8(0,
|
|
97
|
+
binView.setUint8(0, 6);
|
|
95
98
|
binView.setUint16(1, header.value.byteLength, false);
|
|
96
99
|
const binBytes = new Uint8Array(binView.buffer);
|
|
97
100
|
binBytes.set(header.value, 3);
|
|
@@ -99,14 +102,14 @@ class HeaderMarshaller {
|
|
|
99
102
|
case "string":
|
|
100
103
|
const utf8Bytes = this.fromUtf8(header.value);
|
|
101
104
|
const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));
|
|
102
|
-
strView.setUint8(0,
|
|
105
|
+
strView.setUint8(0, 7);
|
|
103
106
|
strView.setUint16(1, utf8Bytes.byteLength, false);
|
|
104
107
|
const strBytes = new Uint8Array(strView.buffer);
|
|
105
108
|
strBytes.set(utf8Bytes, 3);
|
|
106
109
|
return strBytes;
|
|
107
110
|
case "timestamp":
|
|
108
111
|
const tsBytes = new Uint8Array(9);
|
|
109
|
-
tsBytes[0] =
|
|
112
|
+
tsBytes[0] = 8;
|
|
110
113
|
tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1);
|
|
111
114
|
return tsBytes;
|
|
112
115
|
case "uuid":
|
|
@@ -114,7 +117,7 @@ class HeaderMarshaller {
|
|
|
114
117
|
throw new Error(`Invalid UUID received: ${header.value}`);
|
|
115
118
|
}
|
|
116
119
|
const uuidBytes = new Uint8Array(17);
|
|
117
|
-
uuidBytes[0] =
|
|
120
|
+
uuidBytes[0] = 9;
|
|
118
121
|
uuidBytes.set(fromHex(header.value.replace(/-/g, "")), 1);
|
|
119
122
|
return uuidBytes;
|
|
120
123
|
}
|
|
@@ -127,46 +130,46 @@ class HeaderMarshaller {
|
|
|
127
130
|
const name = this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, nameLength));
|
|
128
131
|
position += nameLength;
|
|
129
132
|
switch (headers.getUint8(position++)) {
|
|
130
|
-
case
|
|
133
|
+
case 0:
|
|
131
134
|
out[name] = {
|
|
132
135
|
type: BOOLEAN_TAG,
|
|
133
136
|
value: true,
|
|
134
137
|
};
|
|
135
138
|
break;
|
|
136
|
-
case
|
|
139
|
+
case 1:
|
|
137
140
|
out[name] = {
|
|
138
141
|
type: BOOLEAN_TAG,
|
|
139
142
|
value: false,
|
|
140
143
|
};
|
|
141
144
|
break;
|
|
142
|
-
case
|
|
145
|
+
case 2:
|
|
143
146
|
out[name] = {
|
|
144
147
|
type: BYTE_TAG,
|
|
145
148
|
value: headers.getInt8(position++),
|
|
146
149
|
};
|
|
147
150
|
break;
|
|
148
|
-
case
|
|
151
|
+
case 3:
|
|
149
152
|
out[name] = {
|
|
150
153
|
type: SHORT_TAG,
|
|
151
154
|
value: headers.getInt16(position, false),
|
|
152
155
|
};
|
|
153
156
|
position += 2;
|
|
154
157
|
break;
|
|
155
|
-
case
|
|
158
|
+
case 4:
|
|
156
159
|
out[name] = {
|
|
157
160
|
type: INT_TAG,
|
|
158
161
|
value: headers.getInt32(position, false),
|
|
159
162
|
};
|
|
160
163
|
position += 4;
|
|
161
164
|
break;
|
|
162
|
-
case
|
|
165
|
+
case 5:
|
|
163
166
|
out[name] = {
|
|
164
167
|
type: LONG_TAG,
|
|
165
168
|
value: new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)),
|
|
166
169
|
};
|
|
167
170
|
position += 8;
|
|
168
171
|
break;
|
|
169
|
-
case
|
|
172
|
+
case 6:
|
|
170
173
|
const binaryLength = headers.getUint16(position, false);
|
|
171
174
|
position += 2;
|
|
172
175
|
out[name] = {
|
|
@@ -175,7 +178,7 @@ class HeaderMarshaller {
|
|
|
175
178
|
};
|
|
176
179
|
position += binaryLength;
|
|
177
180
|
break;
|
|
178
|
-
case
|
|
181
|
+
case 7:
|
|
179
182
|
const stringLength = headers.getUint16(position, false);
|
|
180
183
|
position += 2;
|
|
181
184
|
out[name] = {
|
|
@@ -184,14 +187,14 @@ class HeaderMarshaller {
|
|
|
184
187
|
};
|
|
185
188
|
position += stringLength;
|
|
186
189
|
break;
|
|
187
|
-
case
|
|
190
|
+
case 8:
|
|
188
191
|
out[name] = {
|
|
189
192
|
type: TIMESTAMP_TAG,
|
|
190
193
|
value: new Date(new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf()),
|
|
191
194
|
};
|
|
192
195
|
position += 8;
|
|
193
196
|
break;
|
|
194
|
-
case
|
|
197
|
+
case 9:
|
|
195
198
|
const uuidBytes = new Uint8Array(headers.buffer, headers.byteOffset + position, 16);
|
|
196
199
|
position += 16;
|
|
197
200
|
out[name] = {
|
|
@@ -626,7 +629,7 @@ class EventStreamSerde {
|
|
|
626
629
|
this.defaultContentType = defaultContentType;
|
|
627
630
|
this.compositeErrorRegistry = compositeErrorRegistry;
|
|
628
631
|
}
|
|
629
|
-
async serializeEventStream({ eventStream, requestSchema, initialRequest, }) {
|
|
632
|
+
async serializeEventStream({ eventStream, requestSchema, initialRequest, initialMessageType, }) {
|
|
630
633
|
const marshaller = this.marshaller;
|
|
631
634
|
const eventStreamMember = requestSchema.getEventStreamMember();
|
|
632
635
|
const unionSchema = requestSchema.getMemberSchema(eventStreamMember);
|
|
@@ -637,7 +640,7 @@ class EventStreamSerde {
|
|
|
637
640
|
async *[Symbol.asyncIterator]() {
|
|
638
641
|
if (initialRequest) {
|
|
639
642
|
const headers = {
|
|
640
|
-
":event-type": { type: "string", value: "initial-request" },
|
|
643
|
+
":event-type": { type: "string", value: initialMessageType ?? "initial-request" },
|
|
641
644
|
":message-type": { type: "string", value: "event" },
|
|
642
645
|
":content-type": { type: "string", value: defaultContentType },
|
|
643
646
|
};
|
|
@@ -663,6 +666,8 @@ class EventStreamSerde {
|
|
|
663
666
|
}
|
|
664
667
|
let unionMember = "";
|
|
665
668
|
for (const key in event) {
|
|
669
|
+
if (!hasOwn(event, key))
|
|
670
|
+
continue;
|
|
666
671
|
if (key !== "__type") {
|
|
667
672
|
unionMember = key;
|
|
668
673
|
break;
|
|
@@ -681,7 +686,7 @@ class EventStreamSerde {
|
|
|
681
686
|
};
|
|
682
687
|
});
|
|
683
688
|
}
|
|
684
|
-
async deserializeEventStream({ response, responseSchema, initialResponseContainer, }) {
|
|
689
|
+
async deserializeEventStream({ response, responseSchema, initialResponseContainer, initialMessageType, }) {
|
|
685
690
|
const marshaller = this.marshaller;
|
|
686
691
|
const eventStreamMember = responseSchema.getEventStreamMember();
|
|
687
692
|
const unionSchema = responseSchema.getMemberSchema(eventStreamMember);
|
|
@@ -690,13 +695,15 @@ class EventStreamSerde {
|
|
|
690
695
|
const asyncIterable = marshaller.deserialize(response.body, async (event) => {
|
|
691
696
|
let unionMember = "";
|
|
692
697
|
for (const key in event) {
|
|
698
|
+
if (!hasOwn(event, key))
|
|
699
|
+
continue;
|
|
693
700
|
if (key !== "__type") {
|
|
694
701
|
unionMember = key;
|
|
695
702
|
break;
|
|
696
703
|
}
|
|
697
704
|
}
|
|
698
705
|
const body = event[unionMember].body;
|
|
699
|
-
if (unionMember === "initial-response") {
|
|
706
|
+
if (unionMember === (initialMessageType ?? "initial-response")) {
|
|
700
707
|
const dataObject = await this.deserializer.read(responseSchema, body);
|
|
701
708
|
delete dataObject[eventStreamMember];
|
|
702
709
|
return {
|
|
@@ -764,6 +771,8 @@ class EventStreamSerde {
|
|
|
764
771
|
throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");
|
|
765
772
|
}
|
|
766
773
|
for (const key in firstEvent.value) {
|
|
774
|
+
if (!hasOwn(firstEvent.value, key))
|
|
775
|
+
continue;
|
|
767
776
|
initialResponseContainer[key] = firstEvent.value[key];
|
|
768
777
|
}
|
|
769
778
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
const { Uint8ArrayBlobAdapter, sdkStreamMixin, splitEvery, splitHeader, fromBase64, _parseEpochTimestamp, _parseRfc7231DateTime, _parseRfc3339DateTimeWithOffset, LazyJsonString, NumericValue, toUtf8, fromUtf8, generateIdempotencyToken, toBase64, dateToUtcString, quoteHeader } = require("@smithy/core/serde");
|
|
2
|
-
const {
|
|
3
|
-
const { HttpRequest, HttpResponse, isValidHostname } = require("@smithy/core/transport");
|
|
2
|
+
const { HttpRequest, HttpResponse, hasOwn, isValidHostname } = require("@smithy/core/transport");
|
|
4
3
|
const { parseQueryString, parseUrl } = require("@smithy/core/transport");
|
|
5
4
|
exports.HttpRequest = HttpRequest;
|
|
6
5
|
exports.HttpResponse = HttpResponse;
|
|
7
6
|
exports.isValidHostname = isValidHostname;
|
|
8
7
|
exports.parseQueryString = parseQueryString;
|
|
9
8
|
exports.parseUrl = parseUrl;
|
|
9
|
+
const { TypeRegistry, NormalizedSchema, translateTraits } = require("@smithy/core/schema");
|
|
10
10
|
const { FieldPosition } = require("@smithy/types");
|
|
11
11
|
|
|
12
12
|
const collectBody = async (streamBody = new Uint8Array(), context) => {
|
|
@@ -75,6 +75,8 @@ class HttpProtocol extends SerdeContext {
|
|
|
75
75
|
}
|
|
76
76
|
if (endpoint.headers) {
|
|
77
77
|
for (const name in endpoint.headers) {
|
|
78
|
+
if (!hasOwn(endpoint.headers, name))
|
|
79
|
+
continue;
|
|
78
80
|
request.headers[name] = endpoint.headers[name].join(", ");
|
|
79
81
|
}
|
|
80
82
|
}
|
|
@@ -90,6 +92,8 @@ class HttpProtocol extends SerdeContext {
|
|
|
90
92
|
};
|
|
91
93
|
if (endpoint.headers) {
|
|
92
94
|
for (const name in endpoint.headers) {
|
|
95
|
+
if (!hasOwn(endpoint.headers, name))
|
|
96
|
+
continue;
|
|
93
97
|
request.headers[name] = endpoint.headers[name];
|
|
94
98
|
}
|
|
95
99
|
}
|
|
@@ -269,6 +273,8 @@ class HttpBindingProtocol extends HttpProtocol {
|
|
|
269
273
|
}
|
|
270
274
|
else if (typeof memberTraits.httpPrefixHeaders === "string") {
|
|
271
275
|
for (const key in inputMemberValue) {
|
|
276
|
+
if (!hasOwn(inputMemberValue, key))
|
|
277
|
+
continue;
|
|
272
278
|
const val = inputMemberValue[key];
|
|
273
279
|
const amalgam = memberTraits.httpPrefixHeaders + key;
|
|
274
280
|
serializer.write([memberNs.getValueSchema(), { httpHeader: amalgam }], val);
|
|
@@ -315,6 +321,8 @@ class HttpBindingProtocol extends HttpProtocol {
|
|
|
315
321
|
const traits = ns.getMergedTraits();
|
|
316
322
|
if (traits.httpQueryParams) {
|
|
317
323
|
for (const key in data) {
|
|
324
|
+
if (!hasOwn(data, key))
|
|
325
|
+
continue;
|
|
318
326
|
if (!(key in query)) {
|
|
319
327
|
const val = data[key];
|
|
320
328
|
const valueSchema = ns.getValueSchema();
|
|
@@ -358,6 +366,8 @@ class HttpBindingProtocol extends HttpProtocol {
|
|
|
358
366
|
throw new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.");
|
|
359
367
|
}
|
|
360
368
|
for (const header in response.headers) {
|
|
369
|
+
if (!hasOwn(response.headers, header))
|
|
370
|
+
continue;
|
|
361
371
|
const value = response.headers[header];
|
|
362
372
|
delete response.headers[header];
|
|
363
373
|
response.headers[header.toLowerCase()] = value;
|
|
@@ -445,6 +455,8 @@ class HttpBindingProtocol extends HttpProtocol {
|
|
|
445
455
|
else if (memberTraits.httpPrefixHeaders !== undefined) {
|
|
446
456
|
dataObject[memberName] = {};
|
|
447
457
|
for (const header in response.headers) {
|
|
458
|
+
if (!hasOwn(response.headers, header))
|
|
459
|
+
continue;
|
|
448
460
|
if (header.startsWith(memberTraits.httpPrefixHeaders)) {
|
|
449
461
|
const value = response.headers[header];
|
|
450
462
|
const valueSchema = memberSchema.getValueSchema();
|
|
@@ -494,10 +506,9 @@ class RpcProtocol extends HttpProtocol {
|
|
|
494
506
|
if (eventStreamMember) {
|
|
495
507
|
if (input[eventStreamMember]) {
|
|
496
508
|
const initialRequest = {};
|
|
497
|
-
for (const [memberName
|
|
498
|
-
if (memberName !== eventStreamMember && input[memberName]) {
|
|
499
|
-
|
|
500
|
-
initialRequest[memberName] = serializer.flush();
|
|
509
|
+
for (const [memberName] of ns.structIterator()) {
|
|
510
|
+
if (memberName !== eventStreamMember && input[memberName] != null) {
|
|
511
|
+
initialRequest[memberName] = input[memberName];
|
|
501
512
|
}
|
|
502
513
|
}
|
|
503
514
|
payload = await this.serializeEventStream({
|
|
@@ -531,6 +542,8 @@ class RpcProtocol extends HttpProtocol {
|
|
|
531
542
|
throw new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.");
|
|
532
543
|
}
|
|
533
544
|
for (const header in response.headers) {
|
|
545
|
+
if (!hasOwn(response.headers, header))
|
|
546
|
+
continue;
|
|
534
547
|
const value = response.headers[header];
|
|
535
548
|
delete response.headers[header];
|
|
536
549
|
response.headers[header.toLowerCase()] = value;
|
|
@@ -928,24 +941,27 @@ class Fields {
|
|
|
928
941
|
}
|
|
929
942
|
|
|
930
943
|
const getHttpHandlerExtensionConfiguration = (runtimeConfig) => {
|
|
944
|
+
if (runtimeConfig.logger && runtimeConfig.logger.constructor?.name !== "NoOpLogger") {
|
|
945
|
+
runtimeConfig.requestHandler?.updateHttpClientConfig?.(Symbol.for("logger"), runtimeConfig.logger);
|
|
946
|
+
}
|
|
931
947
|
return {
|
|
932
948
|
setHttpHandler(handler) {
|
|
933
|
-
runtimeConfig.
|
|
949
|
+
runtimeConfig.requestHandler = handler;
|
|
934
950
|
},
|
|
935
951
|
httpHandler() {
|
|
936
|
-
return runtimeConfig.
|
|
952
|
+
return runtimeConfig.requestHandler;
|
|
937
953
|
},
|
|
938
954
|
updateHttpClientConfig(key, value) {
|
|
939
|
-
runtimeConfig.
|
|
955
|
+
runtimeConfig.requestHandler?.updateHttpClientConfig(key, value);
|
|
940
956
|
},
|
|
941
957
|
httpHandlerConfigs() {
|
|
942
|
-
return runtimeConfig.
|
|
958
|
+
return runtimeConfig.requestHandler.httpHandlerConfigs();
|
|
943
959
|
},
|
|
944
960
|
};
|
|
945
961
|
};
|
|
946
962
|
const resolveHttpHandlerRuntimeConfig = (httpHandlerExtensionConfiguration) => {
|
|
947
963
|
return {
|
|
948
|
-
|
|
964
|
+
requestHandler: httpHandlerExtensionConfiguration.httpHandler(),
|
|
949
965
|
};
|
|
950
966
|
};
|
|
951
967
|
|
|
@@ -961,10 +977,12 @@ function contentLengthMiddleware(bodyLengthChecker) {
|
|
|
961
977
|
.indexOf(CONTENT_LENGTH_HEADER) === -1) {
|
|
962
978
|
try {
|
|
963
979
|
const length = bodyLengthChecker(body);
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
980
|
+
if (length != null) {
|
|
981
|
+
request.headers = {
|
|
982
|
+
...request.headers,
|
|
983
|
+
[CONTENT_LENGTH_HEADER]: String(length),
|
|
984
|
+
};
|
|
985
|
+
}
|
|
968
986
|
}
|
|
969
987
|
catch (ignored) {
|
|
970
988
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const { NoOpLogger, normalizeProvider } = require("@smithy/core/client");
|
|
2
2
|
const { HttpResponse, HttpRequest } = require("@smithy/core/protocols");
|
|
3
3
|
const { parseRfc7231DateTime, v4 } = require("@smithy/core/serde");
|
|
4
|
+
const { hasOwn } = require("@smithy/core/transport");
|
|
4
5
|
|
|
5
6
|
const isStreamingPayload = (request) => request?.body instanceof ReadableStream;
|
|
6
7
|
|
|
@@ -92,7 +93,9 @@ function parseRetryAfterHeader(response, logger) {
|
|
|
92
93
|
if (!HttpResponse.isInstance(response)) {
|
|
93
94
|
return;
|
|
94
95
|
}
|
|
95
|
-
for (const header
|
|
96
|
+
for (const header in response.headers) {
|
|
97
|
+
if (!hasOwn(response.headers, header))
|
|
98
|
+
continue;
|
|
96
99
|
const h = header.toLowerCase();
|
|
97
100
|
if (h === "retry-after") {
|
|
98
101
|
const retryAfter = response.headers[header];
|
|
@@ -2,6 +2,7 @@ const { Readable } = require("node:stream");
|
|
|
2
2
|
const { NoOpLogger, normalizeProvider } = require("@smithy/core/client");
|
|
3
3
|
const { HttpResponse, HttpRequest } = require("@smithy/core/protocols");
|
|
4
4
|
const { parseRfc7231DateTime, v4 } = require("@smithy/core/serde");
|
|
5
|
+
const { hasOwn } = require("@smithy/core/transport");
|
|
5
6
|
|
|
6
7
|
const isStreamingPayload = (request) => request?.body instanceof Readable ||
|
|
7
8
|
(typeof ReadableStream !== "undefined" && request?.body instanceof ReadableStream);
|
|
@@ -94,7 +95,9 @@ function parseRetryAfterHeader(response, logger) {
|
|
|
94
95
|
if (!HttpResponse.isInstance(response)) {
|
|
95
96
|
return;
|
|
96
97
|
}
|
|
97
|
-
for (const header
|
|
98
|
+
for (const header in response.headers) {
|
|
99
|
+
if (!hasOwn(response.headers, header))
|
|
100
|
+
continue;
|
|
98
101
|
const h = header.toLowerCase();
|
|
99
102
|
if (h === "retry-after") {
|
|
100
103
|
const retryAfter = response.headers[header];
|
|
@@ -140,8 +140,6 @@ class Schema {
|
|
|
140
140
|
|
|
141
141
|
class ListSchema extends Schema {
|
|
142
142
|
static symbol = Symbol.for("@smithy/lis");
|
|
143
|
-
name;
|
|
144
|
-
traits;
|
|
145
143
|
valueSchema;
|
|
146
144
|
symbol = ListSchema.symbol;
|
|
147
145
|
}
|
|
@@ -154,8 +152,6 @@ const list = (namespace, name, traits, valueSchema) => Schema.assign(new ListSch
|
|
|
154
152
|
|
|
155
153
|
class MapSchema extends Schema {
|
|
156
154
|
static symbol = Symbol.for("@smithy/map");
|
|
157
|
-
name;
|
|
158
|
-
traits;
|
|
159
155
|
keySchema;
|
|
160
156
|
valueSchema;
|
|
161
157
|
symbol = MapSchema.symbol;
|
|
@@ -170,8 +166,6 @@ const map = (namespace, name, traits, keySchema, valueSchema) => Schema.assign(n
|
|
|
170
166
|
|
|
171
167
|
class OperationSchema extends Schema {
|
|
172
168
|
static symbol = Symbol.for("@smithy/ope");
|
|
173
|
-
name;
|
|
174
|
-
traits;
|
|
175
169
|
input;
|
|
176
170
|
output;
|
|
177
171
|
symbol = OperationSchema.symbol;
|
|
@@ -186,8 +180,6 @@ const op = (namespace, name, traits, input, output) => Schema.assign(new Operati
|
|
|
186
180
|
|
|
187
181
|
class StructureSchema extends Schema {
|
|
188
182
|
static symbol = Symbol.for("@smithy/str");
|
|
189
|
-
name;
|
|
190
|
-
traits;
|
|
191
183
|
memberNames;
|
|
192
184
|
memberList;
|
|
193
185
|
symbol = StructureSchema.symbol;
|
|
@@ -545,9 +537,7 @@ const isStaticSchema = (sc) => Array.isArray(sc) && sc.length >= 5;
|
|
|
545
537
|
|
|
546
538
|
class SimpleSchema extends Schema {
|
|
547
539
|
static symbol = Symbol.for("@smithy/sim");
|
|
548
|
-
name;
|
|
549
540
|
schemaRef;
|
|
550
|
-
traits;
|
|
551
541
|
symbol = SimpleSchema.symbol;
|
|
552
542
|
}
|
|
553
543
|
const sim = (namespace, name, schemaRef, traits) => Schema.assign(new SimpleSchema(), {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
const { HttpResponse } = require("@smithy/core/transport");
|
|
1
|
+
const { hasOwn, HttpResponse } = require("@smithy/core/transport");
|
|
2
|
+
exports.hasOwn = hasOwn;
|
|
2
3
|
const { toEndpointV1 } = require("@smithy/core/endpoints");
|
|
3
4
|
|
|
4
5
|
const chars = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`;
|
|
@@ -291,6 +292,8 @@ const expectUnion = (value) => {
|
|
|
291
292
|
const asObject = expectObject(value);
|
|
292
293
|
const setKeys = [];
|
|
293
294
|
for (const k in asObject) {
|
|
295
|
+
if (!hasOwn(asObject, k))
|
|
296
|
+
continue;
|
|
294
297
|
if (asObject[k] != null) {
|
|
295
298
|
setKeys.push(k);
|
|
296
299
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const { createHmac, createHash, getRandomValues } = require("node:crypto");
|
|
2
|
+
const { hasOwn, HttpResponse } = require("@smithy/core/transport");
|
|
3
|
+
exports.hasOwn = hasOwn;
|
|
2
4
|
const { ReadStream, lstatSync, fstatSync } = require("node:fs");
|
|
3
|
-
const { HttpResponse } = require("@smithy/core/transport");
|
|
4
5
|
const { toEndpointV1 } = require("@smithy/core/endpoints");
|
|
5
6
|
const { Readable, Writable, PassThrough } = require("node:stream");
|
|
6
7
|
|
|
@@ -259,6 +260,8 @@ const expectUnion = (value) => {
|
|
|
259
260
|
const asObject = expectObject(value);
|
|
260
261
|
const setKeys = [];
|
|
261
262
|
for (const k in asObject) {
|
|
263
|
+
if (!hasOwn(asObject, k))
|
|
264
|
+
continue;
|
|
262
265
|
if (asObject[k] != null) {
|
|
263
266
|
setKeys.push(k);
|
|
264
267
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
const { HttpResponse } = require("@smithy/core/transport");
|
|
1
|
+
const { hasOwn, HttpResponse } = require("@smithy/core/transport");
|
|
2
|
+
exports.hasOwn = hasOwn;
|
|
2
3
|
const { toEndpointV1 } = require("@smithy/core/endpoints");
|
|
3
4
|
|
|
4
5
|
const chars = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`;
|
|
@@ -291,6 +292,8 @@ const expectUnion = (value) => {
|
|
|
291
292
|
const asObject = expectObject(value);
|
|
292
293
|
const setKeys = [];
|
|
293
294
|
for (const k in asObject) {
|
|
295
|
+
if (!hasOwn(asObject, k))
|
|
296
|
+
continue;
|
|
294
297
|
if (asObject[k] != null) {
|
|
295
298
|
setKeys.push(k);
|
|
296
299
|
}
|
|
@@ -2,6 +2,10 @@ const { SMITHY_CONTEXT_KEY } = require("@smithy/types");
|
|
|
2
2
|
|
|
3
3
|
const getSmithyContext = (context) => context[SMITHY_CONTEXT_KEY] || (context[SMITHY_CONTEXT_KEY] = {});
|
|
4
4
|
|
|
5
|
+
function hasOwn(o, k) {
|
|
6
|
+
return Object.prototype.hasOwnProperty.call(o, k);
|
|
7
|
+
}
|
|
8
|
+
|
|
5
9
|
class HttpRequest {
|
|
6
10
|
method;
|
|
7
11
|
protocol;
|
|
@@ -161,6 +165,8 @@ const toEndpointV1 = (endpoint) => {
|
|
|
161
165
|
if (endpoint.headers) {
|
|
162
166
|
v1Endpoint.headers = {};
|
|
163
167
|
for (const name in endpoint.headers) {
|
|
168
|
+
if (!hasOwn(endpoint.headers, name))
|
|
169
|
+
continue;
|
|
164
170
|
v1Endpoint.headers[name.toLowerCase()] = endpoint.headers[name].join(", ");
|
|
165
171
|
}
|
|
166
172
|
}
|
|
@@ -174,6 +180,7 @@ const toEndpointV1 = (endpoint) => {
|
|
|
174
180
|
exports.HttpRequest = HttpRequest;
|
|
175
181
|
exports.HttpResponse = HttpResponse;
|
|
176
182
|
exports.getSmithyContext = getSmithyContext;
|
|
183
|
+
exports.hasOwn = hasOwn;
|
|
177
184
|
exports.isValidHostLabel = isValidHostLabel;
|
|
178
185
|
exports.isValidHostname = isValidHostname;
|
|
179
186
|
exports.normalizeProvider = normalizeProvider;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { hasOwn } from "@smithy/core/transport";
|
|
1
2
|
export class DefaultIdentityProviderConfig {
|
|
2
3
|
authSchemes = new Map();
|
|
3
4
|
constructor(config) {
|
|
4
5
|
for (const key in config) {
|
|
6
|
+
if (!hasOwn(config, key))
|
|
7
|
+
continue;
|
|
5
8
|
const value = config[key];
|
|
6
9
|
if (value !== undefined) {
|
|
7
10
|
this.authSchemes.set(key, value);
|
|
@@ -32,10 +32,9 @@ export class SmithyRpcV2CborProtocol extends RpcProtocol {
|
|
|
32
32
|
this.serializer.write(15, {});
|
|
33
33
|
request.body = this.serializer.flush();
|
|
34
34
|
}
|
|
35
|
-
|
|
35
|
+
if (request.body instanceof Uint8Array) {
|
|
36
36
|
request.headers["content-length"] = String(request.body.byteLength);
|
|
37
37
|
}
|
|
38
|
-
catch (ignored) { }
|
|
39
38
|
}
|
|
40
39
|
const { service, operation } = getSmithyContext(context);
|
|
41
40
|
const path = `/service/${service}/operation/${operation}`;
|
|
@@ -271,23 +271,39 @@ function decodeTagValue(at, to, minor, unsignedInt, offset) {
|
|
|
271
271
|
}
|
|
272
272
|
else if (minor === 4) {
|
|
273
273
|
const decimalFraction = decode(at + offset, to);
|
|
274
|
-
const [
|
|
274
|
+
const [rawExponent, mantissa] = decimalFraction;
|
|
275
275
|
const normalizer = mantissa < 0 ? -1 : 1;
|
|
276
|
-
const
|
|
277
|
-
|
|
276
|
+
const absMantissa = BigInt(normalizer) * BigInt(mantissa);
|
|
277
|
+
const mantissaDigits = String(absMantissa);
|
|
278
278
|
const sign = mantissa < 0 ? "-" : "";
|
|
279
|
-
numericString
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
279
|
+
let numericString;
|
|
280
|
+
const isSmallExponent = typeof rawExponent === "number" && Math.abs(rawExponent) <= 2 ** 28;
|
|
281
|
+
if (isSmallExponent) {
|
|
282
|
+
const exponent = rawExponent;
|
|
283
|
+
const mantissaStr = "0".repeat(Math.abs(exponent) + 1) + mantissaDigits;
|
|
284
|
+
numericString =
|
|
285
|
+
exponent === 0
|
|
286
|
+
? mantissaStr
|
|
287
|
+
: mantissaStr.slice(0, mantissaStr.length + exponent) + "." + mantissaStr.slice(exponent);
|
|
288
|
+
numericString = numericString.replace(/^0+/g, "");
|
|
289
|
+
if (numericString === "") {
|
|
290
|
+
numericString = "0";
|
|
291
|
+
}
|
|
292
|
+
if (numericString[0] === ".") {
|
|
293
|
+
numericString = "0" + numericString;
|
|
294
|
+
}
|
|
295
|
+
numericString = sign + numericString;
|
|
286
296
|
}
|
|
287
|
-
|
|
288
|
-
|
|
297
|
+
else {
|
|
298
|
+
const bigExponent = BigInt(rawExponent);
|
|
299
|
+
if (mantissaDigits.length === 1) {
|
|
300
|
+
numericString = sign + mantissaDigits + "e" + String(bigExponent);
|
|
301
|
+
}
|
|
302
|
+
else {
|
|
303
|
+
const adjustedExp = bigExponent + BigInt(mantissaDigits.length - 1);
|
|
304
|
+
numericString = sign + mantissaDigits[0] + "." + mantissaDigits.slice(1) + "e" + String(adjustedExp);
|
|
305
|
+
}
|
|
289
306
|
}
|
|
290
|
-
numericString = sign + numericString;
|
|
291
307
|
_offset = offset + _offset;
|
|
292
308
|
return nv(numericString);
|
|
293
309
|
}
|
|
@@ -155,13 +155,21 @@ export function encode(_input) {
|
|
|
155
155
|
}
|
|
156
156
|
else if (typeof input === "object") {
|
|
157
157
|
if (input instanceof NumericValue) {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
const
|
|
158
|
+
let str = input.string;
|
|
159
|
+
let expOffset = BigInt(0);
|
|
160
|
+
const eIndex = str.search(/[eE]/);
|
|
161
|
+
if (eIndex !== -1) {
|
|
162
|
+
expOffset = BigInt(str.slice(eIndex + 1));
|
|
163
|
+
str = str.slice(0, eIndex);
|
|
164
|
+
}
|
|
165
|
+
const decimalIndex = str.indexOf(".");
|
|
166
|
+
const fractionDigits = decimalIndex === -1 ? 0 : str.length - decimalIndex - 1;
|
|
167
|
+
const exponent = expOffset - BigInt(fractionDigits);
|
|
168
|
+
const mantissa = BigInt(str.replace(".", ""));
|
|
161
169
|
data[cursor++] = 0b110_00100;
|
|
162
170
|
encodeInteger(majorList, 2);
|
|
163
171
|
encodeStack.push(mantissa);
|
|
164
|
-
encodeStack.push(exponent);
|
|
172
|
+
encodeStack.push(exponent >= -0x20000000000000n && exponent <= 0x1fffffffffffffn ? Number(exponent) : exponent);
|
|
165
173
|
continue;
|
|
166
174
|
}
|
|
167
175
|
if (input[tagSymbol]) {
|