@cdklabs/cdk-construct-connect-datalake 0.0.13 → 0.0.15
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 +9 -9
- package/lib/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +449 -469
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/models/CloudFormationServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/models/errors.js +59 -91
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.browser.js +22 -26
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.js +30 -34
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.shared.js +20 -24
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/schemas/schemas_0.js +814 -533
- package/node_modules/@aws-sdk/client-cloudformation/package.json +9 -9
- package/node_modules/@aws-sdk/client-connect/README.md +14 -0
- package/node_modules/@aws-sdk/client-connect/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/node_modules/@aws-sdk/client-connect/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-connect/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-connect/dist-cjs/index.js +1289 -1256
- package/node_modules/@aws-sdk/client-connect/dist-cjs/models/ConnectServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-connect/dist-cjs/models/errors.js +57 -88
- package/node_modules/@aws-sdk/client-connect/dist-cjs/runtimeConfig.browser.js +22 -26
- package/node_modules/@aws-sdk/client-connect/dist-cjs/runtimeConfig.js +30 -34
- package/node_modules/@aws-sdk/client-connect/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-connect/dist-cjs/runtimeConfig.shared.js +20 -24
- package/node_modules/@aws-sdk/client-connect/dist-cjs/schemas/schemas_0.js +3630 -2290
- package/node_modules/@aws-sdk/client-connect/dist-es/Connect.js +4 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/GetEvaluationFormValidationCommand.js +16 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/StartEvaluationFormValidationCommand.js +16 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/index.js +2 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/models/enums.js +20 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/models/models_4.js +1 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/schemas/schemas_0.js +183 -48
- package/node_modules/@aws-sdk/client-connect/dist-types/Connect.d.ts +14 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ConnectClient.d.ts +4 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateEvaluationFormCommand.d.ts +65 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateViewCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateViewVersionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateVocabularyCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeContactCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeContactEvaluationCommand.d.ts +72 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeEvaluationFormCommand.d.ts +68 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetEvaluationFormValidationCommand.d.ts +112 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetMetricDataV2Command.d.ts +1 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/ListContactEvaluationsCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchContactEvaluationsCommand.d.ts +37 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchContactsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchEvaluationFormsCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchHoursOfOperationOverridesCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchHoursOfOperationsCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchNotificationsCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchPredefinedAttributesCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/StartEvaluationFormValidationCommand.d.ts +102 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateContactRoutingDataCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateEvaluationFormCommand.d.ts +67 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/index.d.ts +2 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/models/enums.d.ts +60 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_0.d.ts +127 -103
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_1.d.ts +217 -1947
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_2.d.ts +2078 -384
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_3.d.ts +1479 -1769
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_4.d.ts +707 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/schemas/schemas_0.d.ts +16 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/Connect.d.ts +34 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/ConnectClient.d.ts +12 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateViewCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateViewVersionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateVocabularyCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/DescribeContactCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/DescribeContactEvaluationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/DescribeEvaluationFormCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/GetEvaluationFormValidationCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/GetMetricDataV2Command.d.ts +4 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchContactsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchEvaluationFormsCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchHoursOfOperationOverridesCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchHoursOfOperationsCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchNotificationsCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchPredefinedAttributesCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/StartEvaluationFormValidationCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateContactRoutingDataCommand.d.ts +2 -4
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateEvaluationFormCommand.d.ts +2 -4
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/enums.d.ts +30 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_0.d.ts +30 -23
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_1.d.ts +50 -45
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_2.d.ts +75 -81
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_3.d.ts +96 -175
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_4.d.ts +197 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/schemas/schemas_0.d.ts +16 -0
- package/node_modules/@aws-sdk/client-connect/package.json +9 -9
- package/node_modules/@aws-sdk/client-glue/README.md +196 -0
- package/node_modules/@aws-sdk/client-glue/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/node_modules/@aws-sdk/client-glue/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-glue/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-glue/dist-cjs/index.js +1323 -911
- package/node_modules/@aws-sdk/client-glue/dist-cjs/models/GlueServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-glue/dist-cjs/models/errors.js +131 -183
- package/node_modules/@aws-sdk/client-glue/dist-cjs/runtimeConfig.browser.js +22 -26
- package/node_modules/@aws-sdk/client-glue/dist-cjs/runtimeConfig.js +30 -34
- package/node_modules/@aws-sdk/client-glue/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-glue/dist-cjs/runtimeConfig.shared.js +20 -24
- package/node_modules/@aws-sdk/client-glue/dist-cjs/schemas/schemas_0.js +3563 -1835
- package/node_modules/@aws-sdk/client-glue/dist-es/Glue.js +68 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/AssociateGlossaryTermsCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/BatchGetIterableFormsCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/CreateGlossaryCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/CreateGlossaryTermCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/DeleteAssetCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/DeleteAssetTypeCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/DeleteAttachmentCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/DeleteFormTypeCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/DeleteGlossaryCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/DeleteGlossaryTermCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/DisassociateGlossaryTermsCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/GetAssetCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/GetAssetTypeCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/GetFormTypeCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/GetGlossaryCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/GetGlossaryTermCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/ListAssetTypesCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/ListFormTypesCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/ListGlossariesCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/ListGlossaryTermsCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/ListIterableFormsCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/PutAssetCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/PutAssetTypeCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/PutAttachmentCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/PutFormTypeCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/SearchAssetsCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/UpdateGlossaryCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/UpdateGlossaryTermCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/index.js +28 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/models/enums.js +18 -4
- package/node_modules/@aws-sdk/client-glue/dist-es/models/errors.js +38 -38
- package/node_modules/@aws-sdk/client-glue/dist-es/pagination/ListAssetTypesPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/pagination/ListFormTypesPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/pagination/ListGlossariesPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/pagination/ListGlossaryTermsPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/pagination/ListIterableFormsPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/pagination/SearchAssetsPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/pagination/index.js +6 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/schemas/schemas_0.js +714 -46
- package/node_modules/@aws-sdk/client-glue/dist-types/Glue.d.ts +242 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/GlueClient.d.ts +30 -2
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/AssociateGlossaryTermsCommand.d.ts +101 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/BatchGetIterableFormsCommand.d.ts +122 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateCrawlerCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateCustomEntityTypeCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateDatabaseCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateGlossaryCommand.d.ts +98 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateGlossaryTermCommand.d.ts +105 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/DeleteAssetCommand.d.ts +89 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/DeleteAssetTypeCommand.d.ts +89 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/DeleteAttachmentCommand.d.ts +97 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/DeleteFormTypeCommand.d.ts +92 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/DeleteGlossaryCommand.d.ts +92 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/DeleteGlossaryTermCommand.d.ts +89 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/DisassociateGlossaryTermsCommand.d.ts +101 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetAssetCommand.d.ts +116 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetAssetTypeCommand.d.ts +97 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityRulesetEvaluationRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDevEndpointCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDevEndpointsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetEntityRecordsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetFormTypeCommand.d.ts +93 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetGlossaryCommand.d.ts +90 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetGlossaryTermCommand.d.ts +92 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetGlueIdentityCenterConfigurationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetIntegrationResourcePropertyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetIntegrationTablePropertiesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetJobBookmarkCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetJobCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetJobRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetJobRunsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetJobsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetMappingCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetMaterializedViewRefreshTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetTableCommand.d.ts +121 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetTableVersionCommand.d.ts +118 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetTableVersionsCommand.d.ts +118 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetTablesCommand.d.ts +119 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetUnfilteredTableMetadataCommand.d.ts +118 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/ListAssetTypesCommand.d.ts +95 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/ListFormTypesCommand.d.ts +95 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/ListGlossariesCommand.d.ts +96 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/ListGlossaryTermsCommand.d.ts +97 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/ListIterableFormsCommand.d.ts +104 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/PutAssetCommand.d.ts +113 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/PutAssetTypeCommand.d.ts +103 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/PutAttachmentCommand.d.ts +104 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/PutFormTypeCommand.d.ts +95 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/SearchAssetsCommand.d.ts +149 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/SearchTablesCommand.d.ts +118 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartCrawlerScheduleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartDataQualityRuleRecommendationRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartDataQualityRulesetEvaluationRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartExportLabelsTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartImportLabelsTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartJobRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartMLEvaluationTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartMLLabelingSetGenerationTaskRunCommand.d.ts +1 -1
- 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/StartTriggerCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartWorkflowRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StopColumnStatisticsTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StopColumnStatisticsTaskRunScheduleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StopCrawlerCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StopCrawlerScheduleCommand.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/commands/StopSessionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StopTriggerCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StopWorkflowRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/TestConnectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateBlueprintCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateCatalogCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateClassifierCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateColumnStatisticsForPartitionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateColumnStatisticsForTableCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateColumnStatisticsTaskSettingsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateConnectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateCrawlerCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateCrawlerScheduleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateGlossaryCommand.d.ts +102 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateGlossaryTermCommand.d.ts +105 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/index.d.ts +28 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/models/enums.d.ts +42 -12
- package/node_modules/@aws-sdk/client-glue/dist-types/models/errors.d.ts +48 -48
- package/node_modules/@aws-sdk/client-glue/dist-types/models/models_0.d.ts +165 -174
- package/node_modules/@aws-sdk/client-glue/dist-types/models/models_1.d.ts +565 -755
- package/node_modules/@aws-sdk/client-glue/dist-types/models/models_2.d.ts +2418 -2074
- package/node_modules/@aws-sdk/client-glue/dist-types/models/models_3.d.ts +1423 -4
- package/node_modules/@aws-sdk/client-glue/dist-types/pagination/ListAssetTypesPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/pagination/ListFormTypesPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/pagination/ListGlossariesPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/pagination/ListGlossaryTermsPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/pagination/ListIterableFormsPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/pagination/SearchAssetsPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/pagination/index.d.ts +6 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/schemas/schemas_0.d.ts +102 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/Glue.d.ts +522 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/GlueClient.d.ts +168 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/AssociateGlossaryTermsCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/BatchGetIterableFormsCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateCrawlerCommand.d.ts +2 -4
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateCustomEntityTypeCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateDatabaseCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateGlossaryCommand.d.ts +52 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateGlossaryTermCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/DeleteAssetCommand.d.ts +49 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/DeleteAssetTypeCommand.d.ts +52 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/DeleteAttachmentCommand.d.ts +52 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/DeleteFormTypeCommand.d.ts +52 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/DeleteGlossaryCommand.d.ts +52 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/DeleteGlossaryTermCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/DisassociateGlossaryTermsCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetAssetCommand.d.ts +45 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetAssetTypeCommand.d.ts +49 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataQualityRulesetEvaluationRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDevEndpointCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDevEndpointsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetEntityRecordsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetFormTypeCommand.d.ts +49 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetGlossaryCommand.d.ts +49 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetGlossaryTermCommand.d.ts +52 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetGlueIdentityCenterConfigurationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetIntegrationResourcePropertyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetIntegrationTablePropertiesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetJobBookmarkCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetJobCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetJobRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetJobRunsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetJobsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetMappingCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetMaterializedViewRefreshTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/ListAssetTypesCommand.d.ts +52 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/ListFormTypesCommand.d.ts +52 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/ListGlossariesCommand.d.ts +52 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/ListGlossaryTermsCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/ListIterableFormsCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/PutAssetCommand.d.ts +45 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/PutAssetTypeCommand.d.ts +49 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/PutAttachmentCommand.d.ts +52 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/PutFormTypeCommand.d.ts +49 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/SearchAssetsCommand.d.ts +50 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartCrawlerScheduleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartDataQualityRuleRecommendationRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartDataQualityRulesetEvaluationRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartExportLabelsTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartImportLabelsTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartJobRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartMLEvaluationTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartMLLabelingSetGenerationTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartMaterializedViewRefreshTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartTriggerCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartWorkflowRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StopColumnStatisticsTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StopColumnStatisticsTaskRunScheduleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StopCrawlerCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StopCrawlerScheduleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StopMaterializedViewRefreshTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StopSessionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StopTriggerCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StopWorkflowRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/TestConnectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateBlueprintCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateCatalogCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateClassifierCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateColumnStatisticsForPartitionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateColumnStatisticsForTableCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateColumnStatisticsTaskSettingsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateConnectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateCrawlerCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateCrawlerScheduleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateGlossaryCommand.d.ts +52 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateGlossaryTermCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/index.d.ts +28 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/enums.d.ts +24 -6
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/errors.d.ts +26 -26
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_0.d.ts +41 -40
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_1.d.ts +130 -181
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_2.d.ts +414 -294
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_3.d.ts +376 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/pagination/ListAssetTypesPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/pagination/ListFormTypesPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/pagination/ListGlossariesPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/pagination/ListGlossaryTermsPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/pagination/ListIterableFormsPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/pagination/SearchAssetsPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/schemas/schemas_0.d.ts +102 -0
- package/node_modules/@aws-sdk/client-glue/package.json +9 -9
- package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/index.js +236 -256
- package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/models/LakeFormationServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/models/errors.js +39 -61
- package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/runtimeConfig.browser.js +22 -26
- package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/runtimeConfig.js +30 -34
- package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/runtimeConfig.shared.js +21 -25
- package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/schemas/schemas_0.js +544 -356
- package/node_modules/@aws-sdk/client-lakeformation/package.json +9 -9
- package/node_modules/@aws-sdk/client-ram/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/node_modules/@aws-sdk/client-ram/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-ram/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-ram/dist-cjs/index.js +159 -179
- package/node_modules/@aws-sdk/client-ram/dist-cjs/models/RAMServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-ram/dist-cjs/models/errors.js +57 -88
- package/node_modules/@aws-sdk/client-ram/dist-cjs/runtimeConfig.browser.js +22 -26
- package/node_modules/@aws-sdk/client-ram/dist-cjs/runtimeConfig.js +30 -34
- package/node_modules/@aws-sdk/client-ram/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-ram/dist-cjs/runtimeConfig.shared.js +20 -24
- package/node_modules/@aws-sdk/client-ram/dist-cjs/schemas/schemas_0.js +318 -210
- package/node_modules/@aws-sdk/client-ram/package.json +9 -9
- package/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthSchemeProvider.js +15 -19
- package/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +77 -97
- package/node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-sts/dist-cjs/models/errors.js +25 -40
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.browser.js +22 -26
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +36 -40
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js +25 -29
- package/node_modules/@aws-sdk/client-sts/dist-cjs/schemas/schemas_0.js +122 -85
- package/node_modules/@aws-sdk/client-sts/package.json +16 -16
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +19 -2274
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +2 -4
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.browser.js +297 -23
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +327 -52
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.native.js +297 -23
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +19 -21
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +107 -109
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +2 -4
- package/node_modules/@aws-sdk/core/dist-es/index.js +3 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/partitions.js +276 -1
- package/node_modules/@aws-sdk/core/dist-types/index.d.ts +5 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +5 -5
- package/node_modules/@aws-sdk/core/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +4 -6
- package/node_modules/@aws-sdk/credential-provider-env/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js +3 -7
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.browser.js +12 -16
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +16 -21
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +14 -18
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js +1 -5
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.browser.js +2 -5
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +2 -7
- package/node_modules/@aws-sdk/credential-provider-http/package.json +9 -8
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +47 -41
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js +8 -4
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js +14 -10
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +14 -14
- package/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js +31 -33
- package/node_modules/@aws-sdk/credential-provider-login/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +16 -18
- package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +11 -13
- package/node_modules/@aws-sdk/credential-provider-process/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +26 -25
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BGYXHf8s.js +3 -0
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +4 -1
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +12 -10
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +10 -14
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +2 -6
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +3 -27
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +8 -8
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/index.js +0 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +82 -84
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +158 -119
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +80 -82
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +80 -82
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +99 -101
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js +4 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +70 -35
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js +3 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/EndpointParameters.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/enums.d.ts +12 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/EndpointParameters.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/enums.d.ts +3 -0
- package/node_modules/@aws-sdk/nested-clients/package.json +11 -10
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +4 -6
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +9 -8
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +26 -28
- package/node_modules/@aws-sdk/token-providers/package.json +8 -8
- package/node_modules/@aws-sdk/types/dist-cjs/index.js +7 -8
- package/node_modules/@aws-sdk/types/package.json +5 -5
- package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +0 -2
- package/node_modules/@aws-sdk/util-locate-window/package.json +5 -5
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +2 -4
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-external/nodable_entities.js +4 -7
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.browser.js +2 -5
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +7 -10
- package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/CHANGELOG.md +8 -0
- package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/README.md +9 -0
- package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/package.json +7 -3
- package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/strnum.js +9 -1
- package/node_modules/@aws-sdk/xml-builder/package.json +5 -5
- package/node_modules/@nodable/entities/package.json +4 -1
- package/node_modules/@nodable/entities/src/EntityDecoder.js +104 -3
- package/node_modules/@nodable/entities/src/index.d.ts +77 -0
- package/node_modules/@nodable/entities/src/index.js +1 -1
- package/node_modules/@smithy/core/dist-cjs/index.js +13 -15
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +543 -398
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.browser.js +2 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js +7 -9
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.native.js +3 -5
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +23 -24
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +10 -11
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +38 -39
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +10 -11
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +14 -17
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +20 -23
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +9 -11
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +11 -13
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +68 -61
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +26 -27
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +28 -29
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +5 -7
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -6
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +23 -25
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -6
- package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +2 -4
- package/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-signing/httpSigningMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +326 -269
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +192 -103
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/endpointMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +10 -2
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRateLimiter.js +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-decode.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-encode.d.ts +8 -4
- package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
- package/node_modules/@smithy/core/package.json +18 -17
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +23 -24
- package/node_modules/@smithy/credential-provider-imds/package.json +7 -7
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +6 -8
- package/node_modules/@smithy/fetch-http-handler/package.json +10 -10
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +11 -13
- package/node_modules/@smithy/node-http-handler/package.json +8 -8
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +27 -29
- package/node_modules/@smithy/signature-v4/package.json +7 -7
- package/node_modules/@smithy/types/dist-cjs/index.js +23 -18
- package/node_modules/@smithy/types/package.json +10 -10
- package/node_modules/anynum/LICENSE +21 -0
- package/node_modules/anynum/README.md +142 -0
- package/node_modules/anynum/anynum.js +135 -0
- package/node_modules/anynum/digitTable.js +116 -0
- package/node_modules/anynum/package.json +42 -0
- package/node_modules/path-expression-matcher/README.md +82 -7
- package/node_modules/path-expression-matcher/lib/pem.cjs +1 -1
- package/node_modules/path-expression-matcher/lib/pem.d.cts +83 -2
- package/node_modules/path-expression-matcher/lib/pem.min.js +1 -1
- package/node_modules/path-expression-matcher/lib/pem.min.js.map +1 -1
- package/node_modules/path-expression-matcher/package.json +3 -2
- package/node_modules/path-expression-matcher/src/ExpressionSet.js +18 -2
- package/node_modules/path-expression-matcher/src/Matcher.js +93 -3
- package/node_modules/path-expression-matcher/src/index.d.ts +67 -1
- package/node_modules/watchpack/README.md +9 -0
- package/node_modules/watchpack/lib/DirectoryWatcher.js +182 -25
- package/node_modules/watchpack/lib/index.js +55 -15
- package/node_modules/watchpack/lib/reducePlan.js +56 -35
- package/node_modules/watchpack/lib/util/globToRegExp.js +142 -0
- package/node_modules/watchpack/lib/watchEventSource.js +18 -10
- package/node_modules/watchpack/package.json +17 -23
- package/node_modules/watchpack/types/DirectoryWatcher.d.ts +2 -0
- package/node_modules/watchpack/types/index.d.ts +121 -113
- package/node_modules/watchpack/types/util/globToRegExp.d.ts +2 -0
- package/node_modules/watchpack/types/watchpack.d.ts +1 -1
- package/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BKDNrsal.js +0 -8
- package/node_modules/glob-to-regexp/.travis.yml +0 -4
- package/node_modules/glob-to-regexp/README.md +0 -75
- package/node_modules/glob-to-regexp/index.js +0 -130
- package/node_modules/glob-to-regexp/package.json +0 -23
- package/node_modules/glob-to-regexp/test.js +0 -235
- /package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/LICENSE +0 -0
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var client = require('@smithy/core/client');
|
|
6
|
-
var schema = require('@smithy/core/schema');
|
|
1
|
+
const { nv, NumericValue, calculateBodyLength, _parseEpochTimestamp, fromBase64, generateIdempotencyToken } = require("@smithy/core/serde");
|
|
2
|
+
const { HttpRequest, collectBody, SerdeContext, RpcProtocol } = require("@smithy/core/protocols");
|
|
3
|
+
const { NormalizedSchema, deref, TypeRegistry } = require("@smithy/core/schema");
|
|
4
|
+
const { getSmithyContext } = require("@smithy/core/transport");
|
|
7
5
|
|
|
8
6
|
const majorUint64 = 0;
|
|
9
7
|
const majorNegativeInt64 = 1;
|
|
@@ -31,14 +29,15 @@ function tag(data) {
|
|
|
31
29
|
return data;
|
|
32
30
|
}
|
|
33
31
|
|
|
34
|
-
const USE_TEXT_DECODER = typeof TextDecoder !== "undefined";
|
|
35
32
|
const USE_BUFFER$1 = typeof Buffer !== "undefined";
|
|
33
|
+
const textDecoder = new TextDecoder();
|
|
36
34
|
let payload = alloc(0);
|
|
35
|
+
let isBuffer = false;
|
|
37
36
|
let dataView$1 = new DataView(payload.buffer, payload.byteOffset, payload.byteLength);
|
|
38
|
-
const textDecoder = USE_TEXT_DECODER ? new TextDecoder() : null;
|
|
39
37
|
let _offset = 0;
|
|
40
38
|
function setPayload(bytes) {
|
|
41
39
|
payload = bytes;
|
|
40
|
+
isBuffer = USE_BUFFER$1 && payload instanceof Buffer;
|
|
42
41
|
dataView$1 = new DataView(payload.buffer, payload.byteOffset, payload.byteLength);
|
|
43
42
|
}
|
|
44
43
|
function decode(at, to) {
|
|
@@ -47,10 +46,13 @@ function decode(at, to) {
|
|
|
47
46
|
}
|
|
48
47
|
const major = (payload[at] & 0b1110_0000) >> 5;
|
|
49
48
|
const minor = payload[at] & 0b0001_1111;
|
|
49
|
+
if (minor === minorIndefinite && 2 <= major && major <= 5) {
|
|
50
|
+
return decodeIndefinite(at, to);
|
|
51
|
+
}
|
|
50
52
|
switch (major) {
|
|
51
53
|
case majorUint64:
|
|
52
54
|
case majorNegativeInt64:
|
|
53
|
-
case majorTag:
|
|
55
|
+
case majorTag: {
|
|
54
56
|
let unsignedInt;
|
|
55
57
|
let offset;
|
|
56
58
|
if (minor < 24) {
|
|
@@ -60,31 +62,43 @@ function decode(at, to) {
|
|
|
60
62
|
else {
|
|
61
63
|
switch (minor) {
|
|
62
64
|
case extendedOneByte:
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
case extendedFloat64:
|
|
66
|
-
const countLength = minorValueToArgumentLength[minor];
|
|
67
|
-
const countOffset = (countLength + 1);
|
|
68
|
-
offset = countOffset;
|
|
69
|
-
if (to - at < countOffset) {
|
|
70
|
-
throw new Error(`countLength ${countLength} greater than remaining buf len.`);
|
|
65
|
+
if (to - at < 2) {
|
|
66
|
+
overflow(1);
|
|
71
67
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
68
|
+
unsignedInt = payload[at + 1];
|
|
69
|
+
offset = 2;
|
|
70
|
+
break;
|
|
71
|
+
case extendedFloat16:
|
|
72
|
+
if (to - at < 3) {
|
|
73
|
+
overflow(2);
|
|
75
74
|
}
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
unsignedInt = dataView$1.getUint16(at + 1);
|
|
76
|
+
offset = 3;
|
|
77
|
+
break;
|
|
78
|
+
case extendedFloat32:
|
|
79
|
+
if (to - at < 5) {
|
|
80
|
+
overflow(4);
|
|
78
81
|
}
|
|
79
|
-
|
|
80
|
-
|
|
82
|
+
unsignedInt = dataView$1.getUint32(at + 1);
|
|
83
|
+
offset = 5;
|
|
84
|
+
break;
|
|
85
|
+
case extendedFloat64:
|
|
86
|
+
if (to - at < 9) {
|
|
87
|
+
overflow(8);
|
|
81
88
|
}
|
|
82
|
-
|
|
83
|
-
|
|
89
|
+
{
|
|
90
|
+
const hi = dataView$1.getUint32(at + 1);
|
|
91
|
+
if (hi < 0x00200000) {
|
|
92
|
+
unsignedInt = hi * 4294967296 + dataView$1.getUint32(at + 5);
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
unsignedInt = dataView$1.getBigUint64(at + 1);
|
|
96
|
+
}
|
|
84
97
|
}
|
|
98
|
+
offset = 9;
|
|
85
99
|
break;
|
|
86
100
|
default:
|
|
87
|
-
|
|
101
|
+
unexpectedMinor(minor);
|
|
88
102
|
}
|
|
89
103
|
}
|
|
90
104
|
if (major === majorUint64) {
|
|
@@ -103,234 +117,97 @@ function decode(at, to) {
|
|
|
103
117
|
return castBigInt(negativeInt);
|
|
104
118
|
}
|
|
105
119
|
else {
|
|
106
|
-
|
|
107
|
-
const length = decodeCount(at + offset, to);
|
|
108
|
-
let b = BigInt(0);
|
|
109
|
-
const start = at + offset + _offset;
|
|
110
|
-
for (let i = start; i < start + length; ++i) {
|
|
111
|
-
b = (b << BigInt(8)) | BigInt(payload[i]);
|
|
112
|
-
}
|
|
113
|
-
_offset = offset + _offset + length;
|
|
114
|
-
return minor === 3 ? -b - BigInt(1) : b;
|
|
115
|
-
}
|
|
116
|
-
else if (minor === 4) {
|
|
117
|
-
const decimalFraction = decode(at + offset, to);
|
|
118
|
-
const [exponent, mantissa] = decimalFraction;
|
|
119
|
-
const normalizer = mantissa < 0 ? -1 : 1;
|
|
120
|
-
const mantissaStr = "0".repeat(Math.abs(exponent) + 1) + String(BigInt(normalizer) * BigInt(mantissa));
|
|
121
|
-
let numericString;
|
|
122
|
-
const sign = mantissa < 0 ? "-" : "";
|
|
123
|
-
numericString =
|
|
124
|
-
exponent === 0
|
|
125
|
-
? mantissaStr
|
|
126
|
-
: mantissaStr.slice(0, mantissaStr.length + exponent) + "." + mantissaStr.slice(exponent);
|
|
127
|
-
numericString = numericString.replace(/^0+/g, "");
|
|
128
|
-
if (numericString === "") {
|
|
129
|
-
numericString = "0";
|
|
130
|
-
}
|
|
131
|
-
if (numericString[0] === ".") {
|
|
132
|
-
numericString = "0" + numericString;
|
|
133
|
-
}
|
|
134
|
-
numericString = sign + numericString;
|
|
135
|
-
_offset = offset + _offset;
|
|
136
|
-
return serde.nv(numericString);
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
const value = decode(at + offset, to);
|
|
140
|
-
const valueOffset = _offset;
|
|
141
|
-
_offset = offset + valueOffset;
|
|
142
|
-
return tag({ tag: castBigInt(unsignedInt), value });
|
|
143
|
-
}
|
|
120
|
+
return decodeTagValue(at, to, minor, unsignedInt, offset);
|
|
144
121
|
}
|
|
122
|
+
}
|
|
145
123
|
case majorUtf8String:
|
|
124
|
+
return decodeUtf8String(at, to);
|
|
146
125
|
case majorMap:
|
|
126
|
+
return decodeMap(at, to);
|
|
147
127
|
case majorList:
|
|
128
|
+
return decodeList(at, to);
|
|
148
129
|
case majorUnstructuredByteString:
|
|
149
|
-
|
|
150
|
-
switch (major) {
|
|
151
|
-
case majorUtf8String:
|
|
152
|
-
return decodeUtf8StringIndefinite(at, to);
|
|
153
|
-
case majorMap:
|
|
154
|
-
return decodeMapIndefinite(at, to);
|
|
155
|
-
case majorList:
|
|
156
|
-
return decodeListIndefinite(at, to);
|
|
157
|
-
case majorUnstructuredByteString:
|
|
158
|
-
return decodeUnstructuredByteStringIndefinite(at, to);
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
else {
|
|
162
|
-
switch (major) {
|
|
163
|
-
case majorUtf8String:
|
|
164
|
-
return decodeUtf8String(at, to);
|
|
165
|
-
case majorMap:
|
|
166
|
-
return decodeMap(at, to);
|
|
167
|
-
case majorList:
|
|
168
|
-
return decodeList(at, to);
|
|
169
|
-
case majorUnstructuredByteString:
|
|
170
|
-
return decodeUnstructuredByteString(at, to);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
130
|
+
return decodeUnstructuredByteString(at, to);
|
|
173
131
|
default:
|
|
174
132
|
return decodeSpecial(at, to);
|
|
175
133
|
}
|
|
176
134
|
}
|
|
177
|
-
function
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
135
|
+
function decodeIndefinite(at, to) {
|
|
136
|
+
const major = (payload[at] & 0b1110_0000) >> 5;
|
|
137
|
+
const minor = payload[at] & 0b0001_1111;
|
|
138
|
+
if (minor === minorIndefinite) {
|
|
139
|
+
switch (major) {
|
|
140
|
+
case majorUtf8String:
|
|
141
|
+
return decodeUtf8StringIndefinite(at, to);
|
|
142
|
+
case majorMap:
|
|
143
|
+
return decodeMapIndefinite(at, to);
|
|
144
|
+
case majorList:
|
|
145
|
+
return decodeListIndefinite(at, to);
|
|
146
|
+
case majorUnstructuredByteString:
|
|
147
|
+
return decodeUnstructuredByteStringIndefinite(at, to);
|
|
148
|
+
}
|
|
190
149
|
}
|
|
191
|
-
return num;
|
|
192
150
|
}
|
|
193
|
-
const minorValueToArgumentLength = {
|
|
194
|
-
[extendedOneByte]: 1,
|
|
195
|
-
[extendedFloat16]: 2,
|
|
196
|
-
[extendedFloat32]: 4,
|
|
197
|
-
[extendedFloat64]: 8,
|
|
198
|
-
};
|
|
199
151
|
function bytesToFloat16(a, b) {
|
|
200
152
|
const sign = a >> 7;
|
|
201
153
|
const exponent = (a & 0b0111_1100) >> 2;
|
|
202
154
|
const fraction = ((a & 0b0000_0011) << 8) | b;
|
|
203
155
|
const scalar = sign === 0 ? 1 : -1;
|
|
204
|
-
let exponentComponent;
|
|
205
|
-
let summation;
|
|
206
156
|
if (exponent === 0b00000) {
|
|
207
|
-
if (fraction ===
|
|
157
|
+
if (fraction === 0) {
|
|
208
158
|
return 0;
|
|
209
159
|
}
|
|
210
|
-
|
|
211
|
-
exponentComponent = Math.pow(2, 1 - 15);
|
|
212
|
-
summation = 0;
|
|
213
|
-
}
|
|
160
|
+
return scalar * (Math.pow(2, 1 - 15) * (fraction / 1024));
|
|
214
161
|
}
|
|
215
162
|
else if (exponent === 0b11111) {
|
|
216
|
-
if (fraction ===
|
|
163
|
+
if (fraction === 0) {
|
|
217
164
|
return scalar * Infinity;
|
|
218
165
|
}
|
|
219
|
-
|
|
220
|
-
return NaN;
|
|
221
|
-
}
|
|
166
|
+
return NaN;
|
|
222
167
|
}
|
|
223
|
-
|
|
224
|
-
exponentComponent = Math.pow(2, exponent - 15);
|
|
225
|
-
summation = 1;
|
|
226
|
-
}
|
|
227
|
-
summation += fraction / 1024;
|
|
228
|
-
return scalar * (exponentComponent * summation);
|
|
168
|
+
return scalar * (Math.pow(2, exponent - 15) * (1 + fraction / 1024));
|
|
229
169
|
}
|
|
230
|
-
function
|
|
231
|
-
const
|
|
232
|
-
if (
|
|
233
|
-
|
|
234
|
-
return minor;
|
|
235
|
-
}
|
|
236
|
-
if (minor === extendedOneByte ||
|
|
237
|
-
minor === extendedFloat16 ||
|
|
238
|
-
minor === extendedFloat32 ||
|
|
239
|
-
minor === extendedFloat64) {
|
|
240
|
-
const countLength = minorValueToArgumentLength[minor];
|
|
241
|
-
_offset = (countLength + 1);
|
|
242
|
-
if (to - at < _offset) {
|
|
243
|
-
throw new Error(`countLength ${countLength} greater than remaining buf len.`);
|
|
244
|
-
}
|
|
245
|
-
const countIndex = at + 1;
|
|
246
|
-
if (countLength === 1) {
|
|
247
|
-
return payload[countIndex];
|
|
248
|
-
}
|
|
249
|
-
else if (countLength === 2) {
|
|
250
|
-
return dataView$1.getUint16(countIndex);
|
|
251
|
-
}
|
|
252
|
-
else if (countLength === 4) {
|
|
253
|
-
return dataView$1.getUint32(countIndex);
|
|
254
|
-
}
|
|
255
|
-
return demote(dataView$1.getBigUint64(countIndex));
|
|
170
|
+
function decodeMap(at, to) {
|
|
171
|
+
const mapDataLength = decodeCount(at, to);
|
|
172
|
+
if (mapDataLength < 15) {
|
|
173
|
+
return decodeMapSmall(at, to, mapDataLength);
|
|
256
174
|
}
|
|
257
|
-
|
|
175
|
+
return decodeMapLarge(at, to, mapDataLength);
|
|
258
176
|
}
|
|
259
|
-
function
|
|
260
|
-
const length = decodeCount(at, to);
|
|
177
|
+
function decodeMapLarge(at, to, mapDataLength) {
|
|
261
178
|
const offset = _offset;
|
|
262
179
|
at += offset;
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
at += 1;
|
|
272
|
-
const vector = [];
|
|
273
|
-
for (const base = at; at < to;) {
|
|
274
|
-
if (payload[at] === 0b1111_1111) {
|
|
275
|
-
const data = alloc(vector.length);
|
|
276
|
-
data.set(vector, 0);
|
|
277
|
-
_offset = at - base + 2;
|
|
278
|
-
return bytesToUtf8(data, 0, data.length);
|
|
279
|
-
}
|
|
280
|
-
const major = (payload[at] & 0b1110_0000) >> 5;
|
|
281
|
-
const minor = payload[at] & 0b0001_1111;
|
|
282
|
-
if (major !== majorUtf8String) {
|
|
283
|
-
throw new Error(`unexpected major type ${major} in indefinite string.`);
|
|
284
|
-
}
|
|
285
|
-
if (minor === minorIndefinite) {
|
|
286
|
-
throw new Error("nested indefinite string.");
|
|
180
|
+
const base = at;
|
|
181
|
+
const map = Object.create(null);
|
|
182
|
+
for (let i = 0; i < mapDataLength; ++i) {
|
|
183
|
+
const key = decodeUtf8String(at, to);
|
|
184
|
+
at += _offset;
|
|
185
|
+
const valMajor = (payload[at] & 0b1110_0000) >> 5;
|
|
186
|
+
if (valMajor === majorUtf8String) {
|
|
187
|
+
map[key] = decodeUtf8String(at, to);
|
|
287
188
|
}
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
at += length;
|
|
291
|
-
for (let i = 0; i < bytes.length; ++i) {
|
|
292
|
-
vector.push(bytes[i]);
|
|
189
|
+
else {
|
|
190
|
+
map[key] = decode(at, to);
|
|
293
191
|
}
|
|
192
|
+
at += _offset;
|
|
294
193
|
}
|
|
295
|
-
|
|
194
|
+
_offset = offset + (at - base);
|
|
195
|
+
Object.setPrototypeOf(map, Object.prototype);
|
|
196
|
+
return map;
|
|
296
197
|
}
|
|
297
|
-
function
|
|
298
|
-
const length = decodeCount(at, to);
|
|
198
|
+
function decodeMapSmall(at, to, mapDataLength) {
|
|
299
199
|
const offset = _offset;
|
|
300
200
|
at += offset;
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
function decodeUnstructuredByteStringIndefinite(at, to) {
|
|
309
|
-
at += 1;
|
|
310
|
-
const vector = [];
|
|
311
|
-
for (const base = at; at < to;) {
|
|
312
|
-
if (payload[at] === 0b1111_1111) {
|
|
313
|
-
const data = alloc(vector.length);
|
|
314
|
-
data.set(vector, 0);
|
|
315
|
-
_offset = at - base + 2;
|
|
316
|
-
return data;
|
|
317
|
-
}
|
|
318
|
-
const major = (payload[at] & 0b1110_0000) >> 5;
|
|
319
|
-
const minor = payload[at] & 0b0001_1111;
|
|
320
|
-
if (major !== majorUnstructuredByteString) {
|
|
321
|
-
throw new Error(`unexpected major type ${major} in indefinite string.`);
|
|
322
|
-
}
|
|
323
|
-
if (minor === minorIndefinite) {
|
|
324
|
-
throw new Error("nested indefinite string.");
|
|
325
|
-
}
|
|
326
|
-
const bytes = decodeUnstructuredByteString(at, to);
|
|
327
|
-
const length = _offset;
|
|
328
|
-
at += length;
|
|
329
|
-
for (let i = 0; i < bytes.length; ++i) {
|
|
330
|
-
vector.push(bytes[i]);
|
|
331
|
-
}
|
|
201
|
+
const base = at;
|
|
202
|
+
const map = {};
|
|
203
|
+
for (let i = 0; i < mapDataLength; ++i) {
|
|
204
|
+
const key = decodeUtf8String(at, to);
|
|
205
|
+
at += _offset;
|
|
206
|
+
map[key] = decode(at, to);
|
|
207
|
+
at += _offset;
|
|
332
208
|
}
|
|
333
|
-
|
|
209
|
+
_offset = offset + (at - base);
|
|
210
|
+
return map;
|
|
334
211
|
}
|
|
335
212
|
function decodeList(at, to) {
|
|
336
213
|
const listDataLength = decodeCount(at, to);
|
|
@@ -339,75 +216,115 @@ function decodeList(at, to) {
|
|
|
339
216
|
const base = at;
|
|
340
217
|
const list = Array(listDataLength);
|
|
341
218
|
for (let i = 0; i < listDataLength; ++i) {
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
list[i] = item;
|
|
345
|
-
at += itemOffset;
|
|
219
|
+
list[i] = decode(at, to);
|
|
220
|
+
at += _offset;
|
|
346
221
|
}
|
|
347
222
|
_offset = offset + (at - base);
|
|
348
223
|
return list;
|
|
349
224
|
}
|
|
350
|
-
function
|
|
351
|
-
at
|
|
352
|
-
const
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
225
|
+
function decodeUtf8String(at, to) {
|
|
226
|
+
const length = decodeCount(at, to);
|
|
227
|
+
const offset = _offset;
|
|
228
|
+
at += offset;
|
|
229
|
+
if (to - at < length) {
|
|
230
|
+
overflow(length);
|
|
231
|
+
}
|
|
232
|
+
_offset = offset + length;
|
|
233
|
+
if (length < 24) {
|
|
234
|
+
return decodeUtf8StringCached(at, length);
|
|
235
|
+
}
|
|
236
|
+
if (isBuffer) {
|
|
237
|
+
return payload.toString("utf-8", at, at + length);
|
|
238
|
+
}
|
|
239
|
+
return textDecoder.decode(payload.subarray(at, at + length));
|
|
240
|
+
}
|
|
241
|
+
const stringCache = new Array(2048);
|
|
242
|
+
const stringCacheEpochs = new Uint16Array(2048);
|
|
243
|
+
let cacheEpoch = 0;
|
|
244
|
+
function advanceDecodingEpoch() {
|
|
245
|
+
cacheEpoch = (cacheEpoch + 1) & 0b1111_1111_1111_1111;
|
|
246
|
+
}
|
|
247
|
+
function decodeUtf8StringCached(at, length) {
|
|
248
|
+
let h = length;
|
|
249
|
+
for (let i = 0; i < length; ++i) {
|
|
250
|
+
h = (h * 31 + payload[at + i]) | 0;
|
|
251
|
+
}
|
|
252
|
+
const slot = (h >>> 0) & 2047;
|
|
253
|
+
const cached = stringCache[slot];
|
|
254
|
+
if (cached !== undefined) {
|
|
255
|
+
if (cached.length === length) {
|
|
256
|
+
let match = true;
|
|
257
|
+
for (let i = 0; i < length; ++i) {
|
|
258
|
+
if (cached.charCodeAt(i) !== payload[at + i]) {
|
|
259
|
+
match = false;
|
|
260
|
+
break;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
if (match) {
|
|
264
|
+
stringCacheEpochs[slot] = cacheEpoch;
|
|
265
|
+
return cached;
|
|
266
|
+
}
|
|
357
267
|
}
|
|
358
|
-
const item = decode(at, to);
|
|
359
|
-
const n = _offset;
|
|
360
|
-
at += n;
|
|
361
|
-
list.push(item);
|
|
362
268
|
}
|
|
363
|
-
|
|
269
|
+
const result = isBuffer
|
|
270
|
+
? payload.toString("utf-8", at, at + length)
|
|
271
|
+
: textDecoder.decode(payload.subarray(at, at + length));
|
|
272
|
+
if (stringCacheEpochs[slot] !== cacheEpoch) {
|
|
273
|
+
stringCache[slot] = result;
|
|
274
|
+
stringCacheEpochs[slot] = cacheEpoch;
|
|
275
|
+
}
|
|
276
|
+
return result;
|
|
364
277
|
}
|
|
365
|
-
function
|
|
366
|
-
const
|
|
278
|
+
function decodeUnstructuredByteString(at, to) {
|
|
279
|
+
const length = decodeCount(at, to);
|
|
367
280
|
const offset = _offset;
|
|
368
281
|
at += offset;
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
for (let i = 0; i < mapDataLength; ++i) {
|
|
372
|
-
if (at >= to) {
|
|
373
|
-
throw new Error("unexpected end of map payload.");
|
|
374
|
-
}
|
|
375
|
-
const major = (payload[at] & 0b1110_0000) >> 5;
|
|
376
|
-
if (major !== majorUtf8String) {
|
|
377
|
-
throw new Error(`unexpected major type ${major} for map key at index ${at}.`);
|
|
378
|
-
}
|
|
379
|
-
const key = decode(at, to);
|
|
380
|
-
at += _offset;
|
|
381
|
-
const value = decode(at, to);
|
|
382
|
-
at += _offset;
|
|
383
|
-
map[key] = value;
|
|
282
|
+
if (to - at < length) {
|
|
283
|
+
overflow(length);
|
|
384
284
|
}
|
|
385
|
-
|
|
386
|
-
|
|
285
|
+
const value = payload.subarray(at, at + length);
|
|
286
|
+
_offset = offset + length;
|
|
287
|
+
return value;
|
|
387
288
|
}
|
|
388
|
-
function
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
289
|
+
function decodeTagValue(at, to, minor, unsignedInt, offset) {
|
|
290
|
+
if (minor === 2 || minor === 3) {
|
|
291
|
+
const length = decodeCount(at + offset, to);
|
|
292
|
+
let b = BigInt(0);
|
|
293
|
+
const start = at + offset + _offset;
|
|
294
|
+
for (let i = start; i < start + length; ++i) {
|
|
295
|
+
b = (b << BigInt(8)) | BigInt(payload[i]);
|
|
395
296
|
}
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
297
|
+
_offset = offset + _offset + length;
|
|
298
|
+
return minor === 3 ? -b - BigInt(1) : b;
|
|
299
|
+
}
|
|
300
|
+
else if (minor === 4) {
|
|
301
|
+
const decimalFraction = decode(at + offset, to);
|
|
302
|
+
const [exponent, mantissa] = decimalFraction;
|
|
303
|
+
const normalizer = mantissa < 0 ? -1 : 1;
|
|
304
|
+
const mantissaStr = "0".repeat(Math.abs(exponent) + 1) + String(BigInt(normalizer) * BigInt(mantissa));
|
|
305
|
+
let numericString;
|
|
306
|
+
const sign = mantissa < 0 ? "-" : "";
|
|
307
|
+
numericString =
|
|
308
|
+
exponent === 0
|
|
309
|
+
? mantissaStr
|
|
310
|
+
: mantissaStr.slice(0, mantissaStr.length + exponent) + "." + mantissaStr.slice(exponent);
|
|
311
|
+
numericString = numericString.replace(/^0+/g, "");
|
|
312
|
+
if (numericString === "") {
|
|
313
|
+
numericString = "0";
|
|
399
314
|
}
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
throw new Error(`unexpected major type ${major} for map key.`);
|
|
315
|
+
if (numericString[0] === ".") {
|
|
316
|
+
numericString = "0" + numericString;
|
|
403
317
|
}
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
318
|
+
numericString = sign + numericString;
|
|
319
|
+
_offset = offset + _offset;
|
|
320
|
+
return nv(numericString);
|
|
321
|
+
}
|
|
322
|
+
else {
|
|
323
|
+
const value = decode(at + offset, to);
|
|
324
|
+
const valueOffset = _offset;
|
|
325
|
+
_offset = offset + valueOffset;
|
|
326
|
+
return tag({ tag: castBigInt(unsignedInt), value });
|
|
409
327
|
}
|
|
410
|
-
throw new Error("expected break marker.");
|
|
411
328
|
}
|
|
412
329
|
function decodeSpecial(at, to) {
|
|
413
330
|
const minor = payload[at] & 0b0001_1111;
|
|
@@ -441,98 +358,216 @@ function decodeSpecial(at, to) {
|
|
|
441
358
|
_offset = 9;
|
|
442
359
|
return dataView$1.getFloat64(at + 1);
|
|
443
360
|
default:
|
|
444
|
-
|
|
361
|
+
unexpectedMinor(minor);
|
|
445
362
|
}
|
|
446
363
|
}
|
|
447
|
-
function
|
|
448
|
-
|
|
449
|
-
|
|
364
|
+
function decodeCount(at, to) {
|
|
365
|
+
const minor = payload[at] & 0b0001_1111;
|
|
366
|
+
if (minor < 24) {
|
|
367
|
+
_offset = 1;
|
|
368
|
+
return minor;
|
|
450
369
|
}
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
370
|
+
switch (minor) {
|
|
371
|
+
case extendedOneByte:
|
|
372
|
+
if (to - at < 2) {
|
|
373
|
+
overflow(1);
|
|
374
|
+
}
|
|
375
|
+
_offset = 2;
|
|
376
|
+
return payload[at + 1];
|
|
377
|
+
case extendedFloat16:
|
|
378
|
+
if (to - at < 3) {
|
|
379
|
+
overflow(2);
|
|
380
|
+
}
|
|
381
|
+
_offset = 3;
|
|
382
|
+
return dataView$1.getUint16(at + 1);
|
|
383
|
+
case extendedFloat32:
|
|
384
|
+
if (to - at < 5) {
|
|
385
|
+
overflow(4);
|
|
386
|
+
}
|
|
387
|
+
_offset = 5;
|
|
388
|
+
return dataView$1.getUint32(at + 1);
|
|
389
|
+
case extendedFloat64:
|
|
390
|
+
if (to - at < 9) {
|
|
391
|
+
overflow(8);
|
|
392
|
+
}
|
|
393
|
+
_offset = 9;
|
|
394
|
+
return demote(dataView$1.getBigUint64(at + 1));
|
|
395
|
+
default:
|
|
396
|
+
unexpectedMinor(minor);
|
|
454
397
|
}
|
|
455
|
-
return bigInt;
|
|
456
398
|
}
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
const
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
if (remaining < bytes) {
|
|
466
|
-
if (cursor < 16_000_000) {
|
|
467
|
-
resize(Math.max(data.byteLength * 4, data.byteLength + bytes));
|
|
468
|
-
}
|
|
469
|
-
else {
|
|
470
|
-
resize(data.byteLength + bytes + 16_000_000);
|
|
399
|
+
function decodeMapIndefinite(at, to) {
|
|
400
|
+
at += 1;
|
|
401
|
+
const base = at;
|
|
402
|
+
const map = {};
|
|
403
|
+
for (; at < to;) {
|
|
404
|
+
if (payload[at] === 0b1111_1111) {
|
|
405
|
+
_offset = at - base + 2;
|
|
406
|
+
return map;
|
|
471
407
|
}
|
|
408
|
+
const key = decodeUtf8String(at, to);
|
|
409
|
+
at += _offset;
|
|
410
|
+
map[key] = decode(at, to);
|
|
411
|
+
at += _offset;
|
|
472
412
|
}
|
|
413
|
+
throw new Error("expected break marker.");
|
|
473
414
|
}
|
|
474
|
-
function
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
415
|
+
function decodeListIndefinite(at, to) {
|
|
416
|
+
at += 1;
|
|
417
|
+
const list = [];
|
|
418
|
+
for (const base = at; at < to;) {
|
|
419
|
+
if (payload[at] === 0b1111_1111) {
|
|
420
|
+
_offset = at - base + 2;
|
|
421
|
+
return list;
|
|
422
|
+
}
|
|
423
|
+
list.push(decode(at, to));
|
|
424
|
+
at += _offset;
|
|
425
|
+
}
|
|
426
|
+
throw new Error("expected break marker.");
|
|
479
427
|
}
|
|
480
|
-
function
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
if (
|
|
485
|
-
|
|
428
|
+
function decodeUtf8StringIndefinite(at, to) {
|
|
429
|
+
at += 1;
|
|
430
|
+
const vector = [];
|
|
431
|
+
for (const base = at; at < to;) {
|
|
432
|
+
if (payload[at] === 0b1111_1111) {
|
|
433
|
+
const data = alloc(vector.length);
|
|
434
|
+
data.set(vector, 0);
|
|
435
|
+
_offset = at - base + 2;
|
|
436
|
+
if (USE_BUFFER$1) {
|
|
437
|
+
return data.toString("utf-8", 0, data.length);
|
|
438
|
+
}
|
|
439
|
+
return textDecoder.decode(data);
|
|
486
440
|
}
|
|
487
|
-
|
|
488
|
-
|
|
441
|
+
const major = (payload[at] & 0b1110_0000) >> 5;
|
|
442
|
+
const minor = payload[at] & 0b0001_1111;
|
|
443
|
+
if (major !== majorUtf8String) {
|
|
444
|
+
unexpectedMajorInIndefiniteString(major);
|
|
445
|
+
}
|
|
446
|
+
if (minor === minorIndefinite) {
|
|
447
|
+
throw new Error("nested indefinite string.");
|
|
448
|
+
}
|
|
449
|
+
const bytes = decodeUnstructuredByteString(at, to);
|
|
450
|
+
const length = _offset;
|
|
451
|
+
at += length;
|
|
452
|
+
for (let i = 0; i < bytes.length; ++i) {
|
|
453
|
+
vector.push(bytes[i]);
|
|
489
454
|
}
|
|
490
455
|
}
|
|
491
|
-
|
|
456
|
+
throw new Error("expected break marker.");
|
|
492
457
|
}
|
|
493
|
-
function
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
458
|
+
function decodeUnstructuredByteStringIndefinite(at, to) {
|
|
459
|
+
at += 1;
|
|
460
|
+
const vector = [];
|
|
461
|
+
for (const base = at; at < to;) {
|
|
462
|
+
if (payload[at] === 0b1111_1111) {
|
|
463
|
+
const data = alloc(vector.length);
|
|
464
|
+
data.set(vector, 0);
|
|
465
|
+
_offset = at - base + 2;
|
|
466
|
+
return data;
|
|
467
|
+
}
|
|
468
|
+
const major = (payload[at] & 0b1110_0000) >> 5;
|
|
469
|
+
const minor = payload[at] & 0b0001_1111;
|
|
470
|
+
if (major !== majorUnstructuredByteString) {
|
|
471
|
+
unexpectedMajorInIndefiniteString(major);
|
|
472
|
+
}
|
|
473
|
+
if (minor === minorIndefinite) {
|
|
474
|
+
throw new Error("nested indefinite string.");
|
|
475
|
+
}
|
|
476
|
+
const bytes = decodeUnstructuredByteString(at, to);
|
|
477
|
+
const length = _offset;
|
|
478
|
+
at += length;
|
|
479
|
+
for (let i = 0; i < bytes.length; ++i) {
|
|
480
|
+
vector.push(bytes[i]);
|
|
481
|
+
}
|
|
500
482
|
}
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
483
|
+
throw new Error("expected break marker.");
|
|
484
|
+
}
|
|
485
|
+
function castBigInt(bigInt) {
|
|
486
|
+
if (typeof bigInt === "number") {
|
|
487
|
+
return bigInt;
|
|
505
488
|
}
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
cursor += 4;
|
|
489
|
+
const num = Number(bigInt);
|
|
490
|
+
if (Number.MIN_SAFE_INTEGER <= num && num <= Number.MAX_SAFE_INTEGER) {
|
|
491
|
+
return num;
|
|
510
492
|
}
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
493
|
+
return bigInt;
|
|
494
|
+
}
|
|
495
|
+
function demote(bigInteger) {
|
|
496
|
+
const num = Number(bigInteger);
|
|
497
|
+
if (num < Number.MIN_SAFE_INTEGER || Number.MAX_SAFE_INTEGER < num) {
|
|
498
|
+
console.warn(new Error(`@smithy/core/cbor - truncating BigInt(${bigInteger}) to ${num} with loss of precision.`));
|
|
515
499
|
}
|
|
500
|
+
return num;
|
|
501
|
+
}
|
|
502
|
+
function overflow(n) {
|
|
503
|
+
throw new Error(`length ${n} greater than remaining buf len.`);
|
|
504
|
+
}
|
|
505
|
+
function unexpectedMinor(minor) {
|
|
506
|
+
throw new Error(`unexpected minor value ${minor}.`);
|
|
516
507
|
}
|
|
508
|
+
function unexpectedMajorInIndefiniteString(major) {
|
|
509
|
+
throw new Error(`unexpected major type ${major} in indefinite string.`);
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
const USE_BUFFER = typeof Buffer !== "undefined";
|
|
513
|
+
const encodeStringCache = new Map();
|
|
514
|
+
let encodeCacheEpoch = 0;
|
|
515
|
+
let encodeCacheSaturated = false;
|
|
516
|
+
const initialSize = 2048;
|
|
517
|
+
let data = alloc(initialSize);
|
|
518
|
+
let dataView = new DataView(data.buffer, data.byteOffset, data.byteLength);
|
|
519
|
+
let cursor = 0;
|
|
517
520
|
function encode(_input) {
|
|
518
521
|
const encodeStack = [_input];
|
|
519
522
|
while (encodeStack.length) {
|
|
520
523
|
const input = encodeStack.pop();
|
|
521
|
-
ensureSpace(typeof input === "string" ? input.length * 4 : 64);
|
|
522
524
|
if (typeof input === "string") {
|
|
525
|
+
const len = input.length;
|
|
523
526
|
if (USE_BUFFER) {
|
|
524
|
-
|
|
525
|
-
|
|
527
|
+
ensureSpace(len * 3 + 9);
|
|
528
|
+
if (len > 23) {
|
|
529
|
+
encodeHeader(majorUtf8String, Buffer.byteLength(input));
|
|
530
|
+
cursor += data.write(input, cursor);
|
|
531
|
+
}
|
|
532
|
+
else {
|
|
533
|
+
encodeStringCached(input);
|
|
534
|
+
}
|
|
526
535
|
}
|
|
527
536
|
else {
|
|
528
|
-
const
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
cursor
|
|
537
|
+
const maxBytes = len * 3;
|
|
538
|
+
ensureSpace(maxBytes + 9);
|
|
539
|
+
const headerPos = cursor;
|
|
540
|
+
const result = new TextEncoder().encodeInto(input, data.subarray(cursor + 9));
|
|
541
|
+
const byteLen = result.written;
|
|
542
|
+
let headerSize;
|
|
543
|
+
if (byteLen < 24) {
|
|
544
|
+
headerSize = 1;
|
|
545
|
+
}
|
|
546
|
+
else if (byteLen < 256) {
|
|
547
|
+
headerSize = 2;
|
|
548
|
+
}
|
|
549
|
+
else if (byteLen < 65536) {
|
|
550
|
+
headerSize = 3;
|
|
551
|
+
}
|
|
552
|
+
else if (byteLen < 4294967296) {
|
|
553
|
+
headerSize = 5;
|
|
554
|
+
}
|
|
555
|
+
else {
|
|
556
|
+
headerSize = 9;
|
|
557
|
+
}
|
|
558
|
+
if (headerSize < 9) {
|
|
559
|
+
data.copyWithin(headerPos + headerSize, headerPos + 9, headerPos + 9 + byteLen);
|
|
560
|
+
}
|
|
561
|
+
cursor = headerPos;
|
|
562
|
+
encodeInteger(majorUtf8String, byteLen);
|
|
563
|
+
cursor += byteLen;
|
|
532
564
|
}
|
|
533
565
|
continue;
|
|
534
566
|
}
|
|
535
|
-
|
|
567
|
+
if (data.byteLength - cursor < 9) {
|
|
568
|
+
ensureSpace(64);
|
|
569
|
+
}
|
|
570
|
+
if (typeof input === "number") {
|
|
536
571
|
if (Number.isInteger(input)) {
|
|
537
572
|
const nonNegative = input >= 0;
|
|
538
573
|
const major = nonNegative ? majorUint64 : majorNegativeInt64;
|
|
@@ -547,7 +582,7 @@ function encode(_input) {
|
|
|
547
582
|
else if (value < 65536) {
|
|
548
583
|
data[cursor++] = (major << 5) | extendedFloat16;
|
|
549
584
|
data[cursor++] = value >> 8;
|
|
550
|
-
data[cursor++] = value;
|
|
585
|
+
data[cursor++] = value & 0xff;
|
|
551
586
|
}
|
|
552
587
|
else if (value < 4294967296) {
|
|
553
588
|
data[cursor++] = (major << 5) | extendedFloat32;
|
|
@@ -556,7 +591,10 @@ function encode(_input) {
|
|
|
556
591
|
}
|
|
557
592
|
else {
|
|
558
593
|
data[cursor++] = (major << 5) | extendedFloat64;
|
|
559
|
-
|
|
594
|
+
const hi = (value / 4294967296) | 0;
|
|
595
|
+
const lo = (value - hi * 4294967296) | 0;
|
|
596
|
+
dataView.setUint32(cursor, hi);
|
|
597
|
+
dataView.setUint32(cursor + 4, lo);
|
|
560
598
|
cursor += 8;
|
|
561
599
|
}
|
|
562
600
|
continue;
|
|
@@ -570,28 +608,16 @@ function encode(_input) {
|
|
|
570
608
|
const nonNegative = input >= 0;
|
|
571
609
|
const major = nonNegative ? majorUint64 : majorNegativeInt64;
|
|
572
610
|
const value = nonNegative ? input : -input - BigInt(1);
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
data[cursor++] = n >> 8;
|
|
584
|
-
data[cursor++] = n & 0b1111_1111;
|
|
585
|
-
}
|
|
586
|
-
else if (n < 4294967296) {
|
|
587
|
-
data[cursor++] = (major << 5) | extendedFloat32;
|
|
588
|
-
dataView.setUint32(cursor, n);
|
|
589
|
-
cursor += 4;
|
|
590
|
-
}
|
|
591
|
-
else if (value < BigInt("18446744073709551616")) {
|
|
592
|
-
data[cursor++] = (major << 5) | extendedFloat64;
|
|
593
|
-
dataView.setBigUint64(cursor, value);
|
|
594
|
-
cursor += 8;
|
|
611
|
+
if (value < BigInt("18446744073709551616")) {
|
|
612
|
+
const n = Number(value);
|
|
613
|
+
if (n < 4294967296) {
|
|
614
|
+
encodeInteger(major, n);
|
|
615
|
+
}
|
|
616
|
+
else {
|
|
617
|
+
data[cursor++] = (major << 5) | extendedFloat64;
|
|
618
|
+
dataView.setBigUint64(cursor, value);
|
|
619
|
+
cursor += 8;
|
|
620
|
+
}
|
|
595
621
|
}
|
|
596
622
|
else {
|
|
597
623
|
const binaryBigInt = value.toString(2);
|
|
@@ -602,14 +628,9 @@ function encode(_input) {
|
|
|
602
628
|
bigIntBytes[bigIntBytes.byteLength - i] = Number(b & BigInt(255));
|
|
603
629
|
b >>= BigInt(8);
|
|
604
630
|
}
|
|
605
|
-
ensureSpace(bigIntBytes.byteLength * 2);
|
|
631
|
+
ensureSpace(bigIntBytes.byteLength * 2 + 16);
|
|
606
632
|
data[cursor++] = nonNegative ? 0b110_00010 : 0b110_00011;
|
|
607
|
-
|
|
608
|
-
encodeHeader(majorUnstructuredByteString, Buffer.byteLength(bigIntBytes));
|
|
609
|
-
}
|
|
610
|
-
else {
|
|
611
|
-
encodeHeader(majorUnstructuredByteString, bigIntBytes.byteLength);
|
|
612
|
-
}
|
|
633
|
+
encodeHeader(majorUnstructuredByteString, bigIntBytes.byteLength);
|
|
613
634
|
data.set(bigIntBytes, cursor);
|
|
614
635
|
cursor += bigIntBytes.byteLength;
|
|
615
636
|
}
|
|
@@ -627,28 +648,29 @@ function encode(_input) {
|
|
|
627
648
|
throw new Error("@smithy/core/cbor: client may not serialize undefined value.");
|
|
628
649
|
}
|
|
629
650
|
else if (Array.isArray(input)) {
|
|
651
|
+
encodeInteger(majorList, input.length);
|
|
652
|
+
ensureSpace(input.length * 9 + 64);
|
|
630
653
|
for (let i = input.length - 1; i >= 0; --i) {
|
|
631
654
|
encodeStack.push(input[i]);
|
|
632
655
|
}
|
|
633
|
-
encodeHeader(majorList, input.length);
|
|
634
656
|
continue;
|
|
635
657
|
}
|
|
636
658
|
else if (typeof input.byteLength === "number") {
|
|
637
|
-
ensureSpace(input.length * 2);
|
|
638
|
-
|
|
659
|
+
ensureSpace(input.length * 2 + 9);
|
|
660
|
+
encodeInteger(majorUnstructuredByteString, input.length);
|
|
639
661
|
data.set(input, cursor);
|
|
640
662
|
cursor += input.byteLength;
|
|
641
663
|
continue;
|
|
642
664
|
}
|
|
643
665
|
else if (typeof input === "object") {
|
|
644
|
-
if (input instanceof
|
|
666
|
+
if (input instanceof NumericValue) {
|
|
645
667
|
const decimalIndex = input.string.indexOf(".");
|
|
646
668
|
const exponent = decimalIndex === -1 ? 0 : decimalIndex - input.string.length + 1;
|
|
647
669
|
const mantissa = BigInt(input.string.replace(".", ""));
|
|
648
670
|
data[cursor++] = 0b110_00100;
|
|
671
|
+
encodeInteger(majorList, 2);
|
|
649
672
|
encodeStack.push(mantissa);
|
|
650
673
|
encodeStack.push(exponent);
|
|
651
|
-
encodeHeader(majorList, 2);
|
|
652
674
|
continue;
|
|
653
675
|
}
|
|
654
676
|
if (input[tagSymbol]) {
|
|
@@ -662,24 +684,147 @@ function encode(_input) {
|
|
|
662
684
|
}
|
|
663
685
|
}
|
|
664
686
|
const keys = Object.keys(input);
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
encodeStack.push(
|
|
687
|
+
const len = keys.length;
|
|
688
|
+
encodeInteger(majorMap, len);
|
|
689
|
+
for (let i = len - 1; i >= 0; --i) {
|
|
690
|
+
encodeStack.push(input[keys[i]]);
|
|
691
|
+
encodeStack.push(keys[i]);
|
|
669
692
|
}
|
|
670
|
-
encodeHeader(majorMap, keys.length);
|
|
671
693
|
continue;
|
|
672
694
|
}
|
|
673
695
|
throw new Error(`data type ${input?.constructor?.name ?? typeof input} not compatible for encoding.`);
|
|
674
696
|
}
|
|
675
697
|
}
|
|
698
|
+
function advanceEncodingEpoch() {
|
|
699
|
+
encodeCacheEpoch = (encodeCacheEpoch + 1) & 0b1111_1111_1111_1111;
|
|
700
|
+
encodeCacheSaturated = false;
|
|
701
|
+
}
|
|
702
|
+
function toUint8Array() {
|
|
703
|
+
const out = alloc(cursor);
|
|
704
|
+
out.set(data.subarray(0, cursor), 0);
|
|
705
|
+
cursor = 0;
|
|
706
|
+
return out;
|
|
707
|
+
}
|
|
708
|
+
function resize(size) {
|
|
709
|
+
const old = data;
|
|
710
|
+
data = alloc(size);
|
|
711
|
+
if (old) {
|
|
712
|
+
if (old.copy) {
|
|
713
|
+
old.copy(data, 0, 0, old.byteLength);
|
|
714
|
+
}
|
|
715
|
+
else {
|
|
716
|
+
data.set(old, 0);
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
dataView = new DataView(data.buffer, data.byteOffset, data.byteLength);
|
|
720
|
+
}
|
|
721
|
+
function encodeStringCached(input) {
|
|
722
|
+
const cached = encodeStringCache.get(input);
|
|
723
|
+
if (cached !== undefined) {
|
|
724
|
+
data.set(cached.bytes, cursor);
|
|
725
|
+
cursor += cached.bytes.length;
|
|
726
|
+
cached.epoch = encodeCacheEpoch;
|
|
727
|
+
return;
|
|
728
|
+
}
|
|
729
|
+
const start = cursor;
|
|
730
|
+
const byteLen = Buffer.byteLength(input);
|
|
731
|
+
encodeInteger(majorUtf8String, byteLen);
|
|
732
|
+
cursor += data.write(input, cursor);
|
|
733
|
+
const bytes = Uint8Array.prototype.slice.call(data, start, cursor);
|
|
734
|
+
if (encodeStringCache.size >= 2048) {
|
|
735
|
+
if (encodeCacheSaturated) {
|
|
736
|
+
return;
|
|
737
|
+
}
|
|
738
|
+
let evicted = 0;
|
|
739
|
+
for (const [key, entry] of encodeStringCache) {
|
|
740
|
+
if (evicted >= 1024) {
|
|
741
|
+
break;
|
|
742
|
+
}
|
|
743
|
+
if (entry.epoch !== encodeCacheEpoch) {
|
|
744
|
+
encodeStringCache.delete(key);
|
|
745
|
+
evicted++;
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
if (evicted === 0) {
|
|
749
|
+
encodeCacheSaturated = true;
|
|
750
|
+
return;
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
if (encodeStringCache.size < 2048) {
|
|
754
|
+
encodeStringCache.set(input, { epoch: encodeCacheEpoch, bytes });
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
function ensureSpace(bytes) {
|
|
758
|
+
const remaining = data.byteLength - cursor;
|
|
759
|
+
if (remaining < bytes) {
|
|
760
|
+
if (cursor < 16_000_000) {
|
|
761
|
+
resize(Math.max(data.byteLength * 4, data.byteLength + bytes));
|
|
762
|
+
}
|
|
763
|
+
else {
|
|
764
|
+
resize(data.byteLength + bytes + 16_000_000);
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
function encodeHeader(major, value) {
|
|
769
|
+
if (value < 24) {
|
|
770
|
+
data[cursor++] = (major << 5) | value;
|
|
771
|
+
}
|
|
772
|
+
else if (value < 256) {
|
|
773
|
+
data[cursor++] = (major << 5) | 24;
|
|
774
|
+
data[cursor++] = value;
|
|
775
|
+
}
|
|
776
|
+
else if (value < 65536) {
|
|
777
|
+
data[cursor++] = (major << 5) | extendedFloat16;
|
|
778
|
+
dataView.setUint16(cursor, value);
|
|
779
|
+
cursor += 2;
|
|
780
|
+
}
|
|
781
|
+
else if (value < 4294967296) {
|
|
782
|
+
data[cursor++] = (major << 5) | extendedFloat32;
|
|
783
|
+
dataView.setUint32(cursor, value);
|
|
784
|
+
cursor += 4;
|
|
785
|
+
}
|
|
786
|
+
else {
|
|
787
|
+
data[cursor++] = (major << 5) | extendedFloat64;
|
|
788
|
+
dataView.setBigUint64(cursor, typeof value === "bigint" ? value : BigInt(value));
|
|
789
|
+
cursor += 8;
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
function encodeInteger(major, value) {
|
|
793
|
+
if (value < 24) {
|
|
794
|
+
data[cursor++] = (major << 5) | value;
|
|
795
|
+
}
|
|
796
|
+
else if (value < 256) {
|
|
797
|
+
data[cursor++] = (major << 5) | 24;
|
|
798
|
+
data[cursor++] = value;
|
|
799
|
+
}
|
|
800
|
+
else if (value < 65536) {
|
|
801
|
+
data[cursor++] = (major << 5) | extendedFloat16;
|
|
802
|
+
data[cursor++] = value >> 8;
|
|
803
|
+
data[cursor++] = value & 0xff;
|
|
804
|
+
}
|
|
805
|
+
else if (value < 4294967296) {
|
|
806
|
+
data[cursor++] = (major << 5) | extendedFloat32;
|
|
807
|
+
dataView.setUint32(cursor, value);
|
|
808
|
+
cursor += 4;
|
|
809
|
+
}
|
|
810
|
+
else {
|
|
811
|
+
data[cursor++] = (major << 5) | extendedFloat64;
|
|
812
|
+
const hi = (value / 4294967296) | 0;
|
|
813
|
+
const lo = (value - hi * 4294967296) | 0;
|
|
814
|
+
dataView.setUint32(cursor, hi);
|
|
815
|
+
dataView.setUint32(cursor + 4, lo);
|
|
816
|
+
cursor += 8;
|
|
817
|
+
}
|
|
818
|
+
}
|
|
676
819
|
|
|
677
820
|
const cbor = {
|
|
678
821
|
deserialize(payload) {
|
|
822
|
+
advanceDecodingEpoch();
|
|
679
823
|
setPayload(payload);
|
|
680
824
|
return decode(0, payload.length);
|
|
681
825
|
},
|
|
682
826
|
serialize(input) {
|
|
827
|
+
advanceEncodingEpoch();
|
|
683
828
|
try {
|
|
684
829
|
encode(input);
|
|
685
830
|
return toUint8Array();
|
|
@@ -695,7 +840,7 @@ const cbor = {
|
|
|
695
840
|
};
|
|
696
841
|
|
|
697
842
|
const parseCborBody = (streamBody, context) => {
|
|
698
|
-
return
|
|
843
|
+
return collectBody(streamBody, context).then(async (bytes) => {
|
|
699
844
|
if (bytes.length) {
|
|
700
845
|
try {
|
|
701
846
|
return cbor.deserialize(bytes);
|
|
@@ -781,14 +926,14 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
781
926
|
if (body !== undefined) {
|
|
782
927
|
contents.body = body;
|
|
783
928
|
try {
|
|
784
|
-
contents.headers["content-length"] = String(
|
|
929
|
+
contents.headers["content-length"] = String(calculateBodyLength(body));
|
|
785
930
|
}
|
|
786
931
|
catch (e) { }
|
|
787
932
|
}
|
|
788
|
-
return new
|
|
933
|
+
return new HttpRequest(contents);
|
|
789
934
|
};
|
|
790
935
|
|
|
791
|
-
class CborCodec extends
|
|
936
|
+
class CborCodec extends SerdeContext {
|
|
792
937
|
createSerializer() {
|
|
793
938
|
const serializer = new CborShapeSerializer();
|
|
794
939
|
serializer.setSerdeContext(this.serdeContext);
|
|
@@ -800,22 +945,22 @@ class CborCodec extends protocols.SerdeContext {
|
|
|
800
945
|
return deserializer;
|
|
801
946
|
}
|
|
802
947
|
}
|
|
803
|
-
class CborShapeSerializer extends
|
|
948
|
+
class CborShapeSerializer extends SerdeContext {
|
|
804
949
|
value;
|
|
805
950
|
write(schema, value) {
|
|
806
951
|
this.value = this.serialize(schema, value);
|
|
807
952
|
}
|
|
808
|
-
serialize(schema
|
|
809
|
-
const ns =
|
|
953
|
+
serialize(schema, source) {
|
|
954
|
+
const ns = NormalizedSchema.of(schema);
|
|
810
955
|
if (source == null) {
|
|
811
956
|
if (ns.isIdempotencyToken()) {
|
|
812
|
-
return
|
|
957
|
+
return generateIdempotencyToken();
|
|
813
958
|
}
|
|
814
959
|
return source;
|
|
815
960
|
}
|
|
816
961
|
if (ns.isBlobSchema()) {
|
|
817
962
|
if (typeof source === "string") {
|
|
818
|
-
return (this.serdeContext?.base64Decoder ??
|
|
963
|
+
return (this.serdeContext?.base64Decoder ?? fromBase64)(source);
|
|
819
964
|
}
|
|
820
965
|
return source;
|
|
821
966
|
}
|
|
@@ -890,26 +1035,26 @@ class CborShapeSerializer extends protocols.SerdeContext {
|
|
|
890
1035
|
return buffer;
|
|
891
1036
|
}
|
|
892
1037
|
}
|
|
893
|
-
class CborShapeDeserializer extends
|
|
1038
|
+
class CborShapeDeserializer extends SerdeContext {
|
|
894
1039
|
read(schema, bytes) {
|
|
895
1040
|
const data = cbor.deserialize(bytes);
|
|
896
1041
|
return this.readValue(schema, data);
|
|
897
1042
|
}
|
|
898
1043
|
readValue(_schema, value) {
|
|
899
|
-
const ns =
|
|
1044
|
+
const ns = NormalizedSchema.of(_schema);
|
|
900
1045
|
if (ns.isTimestampSchema()) {
|
|
901
1046
|
if (typeof value === "number") {
|
|
902
|
-
return
|
|
1047
|
+
return _parseEpochTimestamp(value);
|
|
903
1048
|
}
|
|
904
1049
|
if (typeof value === "object") {
|
|
905
1050
|
if (value.tag === 1 && "value" in value) {
|
|
906
|
-
return
|
|
1051
|
+
return _parseEpochTimestamp(value.value);
|
|
907
1052
|
}
|
|
908
1053
|
}
|
|
909
1054
|
}
|
|
910
1055
|
if (ns.isBlobSchema()) {
|
|
911
1056
|
if (typeof value === "string") {
|
|
912
|
-
return (this.serdeContext?.base64Decoder ??
|
|
1057
|
+
return (this.serdeContext?.base64Decoder ?? fromBase64)(value);
|
|
913
1058
|
}
|
|
914
1059
|
return value;
|
|
915
1060
|
}
|
|
@@ -989,7 +1134,7 @@ class CborShapeDeserializer extends protocols.SerdeContext {
|
|
|
989
1134
|
}
|
|
990
1135
|
}
|
|
991
1136
|
}
|
|
992
|
-
else if (value instanceof
|
|
1137
|
+
else if (value instanceof NumericValue) {
|
|
993
1138
|
return value;
|
|
994
1139
|
}
|
|
995
1140
|
return newObject;
|
|
@@ -1000,7 +1145,7 @@ class CborShapeDeserializer extends protocols.SerdeContext {
|
|
|
1000
1145
|
}
|
|
1001
1146
|
}
|
|
1002
1147
|
|
|
1003
|
-
class SmithyRpcV2CborProtocol extends
|
|
1148
|
+
class SmithyRpcV2CborProtocol extends RpcProtocol {
|
|
1004
1149
|
codec = new CborCodec();
|
|
1005
1150
|
serializer = this.codec.createSerializer();
|
|
1006
1151
|
deserializer = this.codec.createDeserializer();
|
|
@@ -1020,7 +1165,7 @@ class SmithyRpcV2CborProtocol extends protocols.RpcProtocol {
|
|
|
1020
1165
|
"smithy-protocol": "rpc-v2-cbor",
|
|
1021
1166
|
accept: this.getDefaultContentType(),
|
|
1022
1167
|
});
|
|
1023
|
-
if (
|
|
1168
|
+
if (deref(operationSchema.input) === "unit") {
|
|
1024
1169
|
delete request.body;
|
|
1025
1170
|
delete request.headers["content-type"];
|
|
1026
1171
|
}
|
|
@@ -1034,7 +1179,7 @@ class SmithyRpcV2CborProtocol extends protocols.RpcProtocol {
|
|
|
1034
1179
|
}
|
|
1035
1180
|
catch (e) { }
|
|
1036
1181
|
}
|
|
1037
|
-
const { service, operation } =
|
|
1182
|
+
const { service, operation } = getSmithyContext(context);
|
|
1038
1183
|
const path = `/service/${service}/operation/${operation}`;
|
|
1039
1184
|
if (request.path.endsWith("/")) {
|
|
1040
1185
|
request.path += path.slice(1);
|
|
@@ -1058,7 +1203,7 @@ class SmithyRpcV2CborProtocol extends protocols.RpcProtocol {
|
|
|
1058
1203
|
[namespace] = errorName.split("#");
|
|
1059
1204
|
}
|
|
1060
1205
|
const registry = this.compositeErrorRegistry;
|
|
1061
|
-
const nsRegistry =
|
|
1206
|
+
const nsRegistry = TypeRegistry.for(namespace);
|
|
1062
1207
|
registry.copyFrom(nsRegistry);
|
|
1063
1208
|
let errorSchema;
|
|
1064
1209
|
try {
|
|
@@ -1068,7 +1213,7 @@ class SmithyRpcV2CborProtocol extends protocols.RpcProtocol {
|
|
|
1068
1213
|
if (dataObject.Message) {
|
|
1069
1214
|
dataObject.message = dataObject.Message;
|
|
1070
1215
|
}
|
|
1071
|
-
const syntheticRegistry =
|
|
1216
|
+
const syntheticRegistry = TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace);
|
|
1072
1217
|
registry.copyFrom(syntheticRegistry);
|
|
1073
1218
|
const baseExceptionSchema = registry.getBaseException();
|
|
1074
1219
|
if (baseExceptionSchema) {
|
|
@@ -1077,7 +1222,7 @@ class SmithyRpcV2CborProtocol extends protocols.RpcProtocol {
|
|
|
1077
1222
|
}
|
|
1078
1223
|
throw Object.assign(new Error(errorName), errorMetadata, dataObject);
|
|
1079
1224
|
}
|
|
1080
|
-
const ns =
|
|
1225
|
+
const ns = NormalizedSchema.of(errorSchema);
|
|
1081
1226
|
const ErrorCtor = registry.getErrorCtor(errorSchema);
|
|
1082
1227
|
const message = dataObject.message ?? dataObject.Message ?? "Unknown";
|
|
1083
1228
|
const exception = new ErrorCtor({});
|