@cdklabs/cdk-construct-connect-datalake 0.0.26 → 0.0.28

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.
Files changed (280) hide show
  1. package/.jsii +10 -10
  2. package/.jsii.tabl.json +1 -1
  3. package/lib/index.js +1 -1
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +3 -3
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-es/schemas/schemas_0.js +2 -2
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormation.d.ts +187 -181
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormation.d.ts +184 -180
  8. package/node_modules/@aws-sdk/client-cloudformation/package.json +8 -8
  9. package/node_modules/@aws-sdk/client-connect/README.md +14 -0
  10. package/node_modules/@aws-sdk/client-connect/dist-cjs/index.js +187 -39
  11. package/node_modules/@aws-sdk/client-connect/dist-es/Connect.js +6 -0
  12. package/node_modules/@aws-sdk/client-connect/dist-es/commands/ListEvaluationFormAIVersionsCommand.js +4 -0
  13. package/node_modules/@aws-sdk/client-connect/dist-es/commands/ListSecurityProfileAIAgentsCommand.js +4 -0
  14. package/node_modules/@aws-sdk/client-connect/dist-es/commands/index.js +2 -0
  15. package/node_modules/@aws-sdk/client-connect/dist-es/models/enums.js +24 -6
  16. package/node_modules/@aws-sdk/client-connect/dist-es/pagination/ListSecurityProfileAIAgentsPaginator.js +4 -0
  17. package/node_modules/@aws-sdk/client-connect/dist-es/pagination/index.js +1 -0
  18. package/node_modules/@aws-sdk/client-connect/dist-es/schemas/schemas_0.js +131 -32
  19. package/node_modules/@aws-sdk/client-connect/dist-types/Connect.d.ts +818 -791
  20. package/node_modules/@aws-sdk/client-connect/dist-types/ConnectClient.d.ts +4 -2
  21. package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateEvaluationFormCommand.d.ts +9 -0
  22. package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateRoutingProfileCommand.d.ts +10 -1
  23. package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateSecurityProfileCommand.d.ts +6 -0
  24. package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateTaskTemplateCommand.d.ts +1 -1
  25. package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeContactEvaluationCommand.d.ts +9 -0
  26. package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeEvaluationFormCommand.d.ts +9 -0
  27. package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeInstanceAttributeCommand.d.ts +2 -2
  28. package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeRoutingProfileCommand.d.ts +10 -1
  29. package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetContactMetricsCommand.d.ts +2 -1
  30. package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetCrossRegionRoutingCommand.d.ts +1 -2
  31. package/node_modules/@aws-sdk/client-connect/dist-types/commands/ListContactReferencesCommand.d.ts +8 -0
  32. package/node_modules/@aws-sdk/client-connect/dist-types/commands/ListEvaluationFormAIVersionsCommand.d.ts +96 -0
  33. package/node_modules/@aws-sdk/client-connect/dist-types/commands/ListInstanceAttributesCommand.d.ts +1 -1
  34. package/node_modules/@aws-sdk/client-connect/dist-types/commands/ListSecurityProfileAIAgentsCommand.d.ts +97 -0
  35. package/node_modules/@aws-sdk/client-connect/dist-types/commands/PutUserStatusCommand.d.ts +1 -1
  36. package/node_modules/@aws-sdk/client-connect/dist-types/commands/ReleasePhoneNumberCommand.d.ts +1 -1
  37. package/node_modules/@aws-sdk/client-connect/dist-types/commands/ReplicateInstanceCommand.d.ts +2 -2
  38. package/node_modules/@aws-sdk/client-connect/dist-types/commands/ResumeContactCommand.d.ts +1 -1
  39. package/node_modules/@aws-sdk/client-connect/dist-types/commands/ResumeContactRecordingCommand.d.ts +1 -1
  40. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchAgentStatusesCommand.d.ts +1 -1
  41. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchAvailablePhoneNumbersCommand.d.ts +1 -2
  42. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchEvaluationFormsCommand.d.ts +1 -0
  43. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchRoutingProfilesCommand.d.ts +10 -1
  44. package/node_modules/@aws-sdk/client-connect/dist-types/commands/StartContactEvaluationCommand.d.ts +0 -3
  45. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateEvaluationFormCommand.d.ts +9 -0
  46. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateInstanceAttributeCommand.d.ts +1 -1
  47. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateRoutingProfileConcurrencyCommand.d.ts +10 -1
  48. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateSecurityProfileCommand.d.ts +6 -0
  49. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateTestCaseCommand.d.ts +2 -1
  50. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateTrafficDistributionCommand.d.ts +1 -1
  51. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateUserConfigCommand.d.ts +1 -1
  52. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateUserHierarchyCommand.d.ts +1 -1
  53. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateUserHierarchyGroupNameCommand.d.ts +1 -1
  54. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateUserHierarchyStructureCommand.d.ts +1 -1
  55. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateUserIdentityInfoCommand.d.ts +1 -1
  56. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateUserNotificationStatusCommand.d.ts +1 -2
  57. package/node_modules/@aws-sdk/client-connect/dist-types/commands/index.d.ts +2 -0
  58. package/node_modules/@aws-sdk/client-connect/dist-types/models/enums.d.ts +64 -14
  59. package/node_modules/@aws-sdk/client-connect/dist-types/models/errors.d.ts +2 -1
  60. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_0.d.ts +107 -128
  61. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_1.d.ts +128 -89
  62. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_2.d.ts +310 -211
  63. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_3.d.ts +225 -236
  64. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_4.d.ts +262 -3
  65. package/node_modules/@aws-sdk/client-connect/dist-types/pagination/ListSecurityProfileAIAgentsPaginator.d.ts +7 -0
  66. package/node_modules/@aws-sdk/client-connect/dist-types/pagination/index.d.ts +1 -0
  67. package/node_modules/@aws-sdk/client-connect/dist-types/schemas/schemas_0.d.ts +13 -0
  68. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/Connect.d.ts +835 -790
  69. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/ConnectClient.d.ts +12 -0
  70. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateTaskTemplateCommand.d.ts +1 -1
  71. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/GetContactMetricsCommand.d.ts +2 -1
  72. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/GetCrossRegionRoutingCommand.d.ts +1 -2
  73. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/ListEvaluationFormAIVersionsCommand.d.ts +42 -0
  74. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/ListSecurityProfileAIAgentsCommand.d.ts +42 -0
  75. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/PutUserStatusCommand.d.ts +1 -1
  76. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/ReleasePhoneNumberCommand.d.ts +1 -1
  77. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/ReplicateInstanceCommand.d.ts +1 -1
  78. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/ResumeContactCommand.d.ts +1 -1
  79. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/ResumeContactRecordingCommand.d.ts +1 -1
  80. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchAgentStatusesCommand.d.ts +1 -1
  81. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchAvailablePhoneNumbersCommand.d.ts +4 -2
  82. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateTestCaseCommand.d.ts +2 -1
  83. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateTrafficDistributionCommand.d.ts +1 -1
  84. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateUserConfigCommand.d.ts +1 -1
  85. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateUserHierarchyCommand.d.ts +1 -1
  86. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateUserHierarchyGroupNameCommand.d.ts +1 -1
  87. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateUserHierarchyStructureCommand.d.ts +1 -1
  88. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateUserIdentityInfoCommand.d.ts +1 -1
  89. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateUserNotificationStatusCommand.d.ts +4 -2
  90. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/index.d.ts +2 -0
  91. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/enums.d.ts +32 -7
  92. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/errors.d.ts +1 -1
  93. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_0.d.ts +22 -31
  94. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_1.d.ts +33 -29
  95. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_2.d.ts +101 -50
  96. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_3.d.ts +52 -59
  97. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_4.d.ts +69 -0
  98. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/pagination/ListSecurityProfileAIAgentsPaginator.d.ts +11 -0
  99. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/pagination/index.d.ts +1 -0
  100. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/schemas/schemas_0.d.ts +13 -0
  101. package/node_modules/@aws-sdk/client-connect/package.json +8 -8
  102. package/node_modules/@aws-sdk/client-glue/README.md +7 -0
  103. package/node_modules/@aws-sdk/client-glue/dist-cjs/index.js +104 -21
  104. package/node_modules/@aws-sdk/client-glue/dist-es/Glue.js +2 -0
  105. package/node_modules/@aws-sdk/client-glue/dist-es/commands/ListIntegrationTablePropertiesCommand.js +4 -0
  106. package/node_modules/@aws-sdk/client-glue/dist-es/commands/index.js +1 -0
  107. package/node_modules/@aws-sdk/client-glue/dist-es/models/enums.js +16 -0
  108. package/node_modules/@aws-sdk/client-glue/dist-es/schemas/schemas_0.js +75 -20
  109. package/node_modules/@aws-sdk/client-glue/dist-types/Glue.d.ts +613 -599
  110. package/node_modules/@aws-sdk/client-glue/dist-types/GlueClient.d.ts +3 -2
  111. package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateIntegrationTablePropertiesCommand.d.ts +1 -0
  112. package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateTableCommand.d.ts +18 -0
  113. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityRuleRecommendationRunCommand.d.ts +1 -0
  114. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetIntegrationTablePropertiesCommand.d.ts +1 -0
  115. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetTableCommand.d.ts +24 -0
  116. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetTableVersionCommand.d.ts +24 -0
  117. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetTableVersionsCommand.d.ts +24 -0
  118. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetTablesCommand.d.ts +25 -0
  119. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetUnfilteredTableMetadataCommand.d.ts +24 -0
  120. package/node_modules/@aws-sdk/client-glue/dist-types/commands/ListDataQualityRuleRecommendationRunsCommand.d.ts +1 -0
  121. package/node_modules/@aws-sdk/client-glue/dist-types/commands/ListIntegrationTablePropertiesCommand.d.ts +129 -0
  122. package/node_modules/@aws-sdk/client-glue/dist-types/commands/RemoveSchemaVersionMetadataCommand.d.ts +2 -1
  123. package/node_modules/@aws-sdk/client-glue/dist-types/commands/ResetJobBookmarkCommand.d.ts +1 -1
  124. package/node_modules/@aws-sdk/client-glue/dist-types/commands/ResumeWorkflowRunCommand.d.ts +1 -1
  125. package/node_modules/@aws-sdk/client-glue/dist-types/commands/SearchTablesCommand.d.ts +24 -0
  126. package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartDataQualityRuleRecommendationRunCommand.d.ts +1 -0
  127. package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateIntegrationTablePropertiesCommand.d.ts +1 -0
  128. package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateTableCommand.d.ts +18 -0
  129. package/node_modules/@aws-sdk/client-glue/dist-types/commands/index.d.ts +1 -0
  130. package/node_modules/@aws-sdk/client-glue/dist-types/models/enums.d.ts +40 -0
  131. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_1.d.ts +86 -51
  132. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_2.d.ts +168 -134
  133. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_3.d.ts +116 -4
  134. package/node_modules/@aws-sdk/client-glue/dist-types/schemas/schemas_0.d.ts +6 -0
  135. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/Glue.d.ts +620 -598
  136. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/GlueClient.d.ts +6 -0
  137. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/ListIntegrationTablePropertiesCommand.d.ts +42 -0
  138. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/RemoveSchemaVersionMetadataCommand.d.ts +2 -4
  139. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/ResetJobBookmarkCommand.d.ts +1 -1
  140. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/ResumeWorkflowRunCommand.d.ts +1 -1
  141. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/index.d.ts +1 -0
  142. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/enums.d.ts +20 -0
  143. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_1.d.ts +18 -10
  144. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_2.d.ts +37 -34
  145. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_3.d.ts +30 -1
  146. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/schemas/schemas_0.d.ts +6 -0
  147. package/node_modules/@aws-sdk/client-glue/package.json +8 -8
  148. package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/index.js +3 -3
  149. package/node_modules/@aws-sdk/client-lakeformation/dist-es/schemas/schemas_0.js +2 -2
  150. package/node_modules/@aws-sdk/client-lakeformation/dist-types/LakeFormation.d.ts +129 -123
  151. package/node_modules/@aws-sdk/client-lakeformation/dist-types/ts3.4/LakeFormation.d.ts +126 -122
  152. package/node_modules/@aws-sdk/client-lakeformation/package.json +8 -8
  153. package/node_modules/@aws-sdk/client-ram/dist-cjs/index.js +3 -3
  154. package/node_modules/@aws-sdk/client-ram/dist-es/schemas/schemas_0.js +2 -2
  155. package/node_modules/@aws-sdk/client-ram/dist-types/RAM.d.ts +77 -71
  156. package/node_modules/@aws-sdk/client-ram/dist-types/ts3.4/RAM.d.ts +74 -70
  157. package/node_modules/@aws-sdk/client-ram/package.json +8 -8
  158. package/node_modules/@aws-sdk/client-sts/README.md +22 -3
  159. package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +30 -27
  160. package/node_modules/@aws-sdk/client-sts/dist-es/schemas/schemas_0.js +29 -26
  161. package/node_modules/@aws-sdk/client-sts/dist-types/STS.d.ts +51 -26
  162. package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +22 -3
  163. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleCommand.d.ts +3 -0
  164. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +3 -0
  165. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +3 -0
  166. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRootCommand.d.ts +3 -0
  167. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetFederationTokenCommand.d.ts +3 -0
  168. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetSessionTokenCommand.d.ts +3 -0
  169. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetWebIdentityTokenCommand.d.ts +3 -0
  170. package/node_modules/@aws-sdk/client-sts/dist-types/index.d.ts +22 -3
  171. package/node_modules/@aws-sdk/client-sts/dist-types/models/models_0.d.ts +118 -0
  172. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STS.d.ts +29 -23
  173. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/models_0.d.ts +18 -0
  174. package/node_modules/@aws-sdk/client-sts/package.json +9 -9
  175. package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +5 -0
  176. package/node_modules/@aws-sdk/core/dist-es/submodules/util/hasOwn.js +3 -0
  177. package/node_modules/@aws-sdk/core/dist-es/submodules/util/index.js +1 -0
  178. package/node_modules/@aws-sdk/core/dist-types/submodules/util/hasOwn.d.ts +4 -0
  179. package/node_modules/@aws-sdk/core/dist-types/submodules/util/index.d.ts +1 -0
  180. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/hasOwn.d.ts +1 -0
  181. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/index.d.ts +1 -0
  182. package/node_modules/@aws-sdk/core/package.json +6 -6
  183. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  184. package/node_modules/@aws-sdk/credential-provider-http/package.json +7 -7
  185. package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
  186. package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -6
  187. package/node_modules/@aws-sdk/credential-provider-node/package.json +11 -11
  188. package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
  189. package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
  190. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -6
  191. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +3 -3
  192. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +3 -3
  193. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +3 -3
  194. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +3 -3
  195. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +14 -11
  196. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/schemas/schemas_0.js +2 -2
  197. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +2 -2
  198. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js +2 -2
  199. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +2 -2
  200. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +13 -10
  201. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/CognitoIdentity.d.ts +11 -5
  202. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/Signin.d.ts +11 -5
  203. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/SSO.d.ts +9 -3
  204. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDC.d.ts +9 -3
  205. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/STS.d.ts +33 -8
  206. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/STSClient.d.ts +22 -3
  207. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +3 -0
  208. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +3 -0
  209. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/index.d.ts +22 -3
  210. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/models_0.d.ts +40 -0
  211. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/CognitoIdentity.d.ts +14 -5
  212. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/Signin.d.ts +11 -5
  213. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/SSO.d.ts +9 -3
  214. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/SSOOIDC.d.ts +9 -3
  215. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/STS.d.ts +11 -5
  216. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/models_0.d.ts +6 -0
  217. package/node_modules/@aws-sdk/nested-clients/package.json +8 -8
  218. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +4 -4
  219. package/node_modules/@aws-sdk/token-providers/package.json +6 -6
  220. package/node_modules/@aws-sdk/types/dist-types/feature-ids.d.ts +1 -0
  221. package/node_modules/@aws-sdk/types/dist-types/ts3.4/feature-ids.d.ts +1 -0
  222. package/node_modules/@aws-sdk/types/package.json +2 -2
  223. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  224. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +22 -37
  225. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +26 -4
  226. package/node_modules/@smithy/core/dist-cjs/submodules/errors/index.js +20 -0
  227. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +49 -8
  228. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +11 -10
  229. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +11 -10
  230. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +12 -7
  231. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +2 -0
  232. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +25 -8
  233. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +2 -0
  234. package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +22 -22
  235. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +0 -15
  236. package/node_modules/@smithy/core/dist-es/submodules/client/index.js +1 -1
  237. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/command.js +8 -1
  238. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/exceptions.js +18 -3
  239. package/node_modules/@smithy/core/dist-es/submodules/errors/errors.js +18 -0
  240. package/node_modules/@smithy/core/dist-es/submodules/errors/index.js +1 -0
  241. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +49 -8
  242. package/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/service-error-classification.js +11 -10
  243. package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +12 -7
  244. package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/getAwsChunkedEncodingStream.browser.js +2 -0
  245. package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/getAwsChunkedEncodingStream.js +23 -8
  246. package/node_modules/@smithy/core/dist-types/submodules/cbor/parseCborBody.d.ts +3 -0
  247. package/node_modules/@smithy/core/dist-types/submodules/client/index.d.ts +1 -1
  248. package/node_modules/@smithy/core/dist-types/submodules/client/smithy-client/client.d.ts +11 -3
  249. package/node_modules/@smithy/core/dist-types/submodules/errors/errors.d.ts +44 -0
  250. package/node_modules/@smithy/core/dist-types/submodules/errors/index.d.ts +1 -0
  251. package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +17 -7
  252. package/node_modules/@smithy/core/dist-types/submodules/retry/service-error-classification/service-error-classification.d.ts +4 -0
  253. package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +2 -2
  254. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/parseCborBody.d.ts +3 -0
  255. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/index.d.ts +1 -1
  256. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/client.d.ts +11 -3
  257. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/errors/errors.d.ts +44 -0
  258. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/errors/index.d.ts +1 -0
  259. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +21 -7
  260. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/service-error-classification/service-error-classification.d.ts +4 -0
  261. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +2 -2
  262. package/node_modules/@smithy/core/errors.d.ts +5 -0
  263. package/node_modules/@smithy/core/errors.js +5 -0
  264. package/node_modules/@smithy/core/package.json +11 -2
  265. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +4 -1
  266. package/node_modules/@smithy/signature-v4/dist-es/getCanonicalHeaders.js +4 -1
  267. package/node_modules/@smithy/signature-v4/package.json +3 -3
  268. package/node_modules/@smithy/types/dist-types/metrics.d.ts +8 -7
  269. package/node_modules/@smithy/types/dist-types/middleware.d.ts +5 -0
  270. package/node_modules/@smithy/types/dist-types/ts3.4/metrics.d.ts +8 -7
  271. package/node_modules/@smithy/types/dist-types/ts3.4/middleware.d.ts +5 -0
  272. package/node_modules/@smithy/types/package.json +1 -1
  273. package/node_modules/which-typed-array/CHANGELOG.md +14 -0
  274. package/node_modules/which-typed-array/README.md +0 -2
  275. package/node_modules/which-typed-array/index.d.ts +288 -11
  276. package/node_modules/which-typed-array/index.js +6 -7
  277. package/node_modules/which-typed-array/package.json +12 -11
  278. package/package.json +11 -11
  279. package/node_modules/which-typed-array/eslint.config.mjs +0 -12
  280. package/node_modules/which-typed-array/test/index.js +0 -105
@@ -8,7 +8,7 @@ export class HttpProtocol extends SerdeContext {
8
8
  constructor(options) {
9
9
  super();
10
10
  this.options = options;
11
- this.compositeErrorRegistry = TypeRegistry.for(options.defaultNamespace);
11
+ this.compositeErrorRegistry = new TypeRegistry(options.defaultNamespace);
12
12
  for (const etr of options.errorTypeRegistries ?? []) {
13
13
  this.compositeErrorRegistry.copyFrom(etr);
14
14
  }
@@ -103,6 +103,47 @@ export class HttpProtocol extends SerdeContext {
103
103
  cfId: output.headers["x-amz-cf-id"],
104
104
  };
105
105
  }
106
+ resolveError(name, namespaces, registries) {
107
+ const defaultErrorSchema = [-3, "", "Error", 0, [], [], 0];
108
+ let schema;
109
+ for (const registry of registries) {
110
+ for (const ns of namespaces) {
111
+ try {
112
+ if (ns === "*") {
113
+ schema = registry.getSchema(name);
114
+ }
115
+ else {
116
+ schema = registry.getSchema(ns + "#" + name);
117
+ }
118
+ const errorCtor = registry.getErrorCtor(schema);
119
+ if (errorCtor) {
120
+ return [schema, errorCtor, "modeled"];
121
+ }
122
+ else {
123
+ const syntheticErrorSchema = registry.getBaseException();
124
+ if (syntheticErrorSchema) {
125
+ const syntheticErrorCtor = registry.getErrorCtor(syntheticErrorSchema);
126
+ if (syntheticErrorCtor) {
127
+ return [schema, syntheticErrorCtor, "synthetic"];
128
+ }
129
+ }
130
+ }
131
+ }
132
+ catch (ignored) {
133
+ }
134
+ }
135
+ }
136
+ for (const registry of registries) {
137
+ const syntheticErrorSchema = registry.getBaseException();
138
+ if (syntheticErrorSchema) {
139
+ const syntheticErrorCtor = registry.getErrorCtor(syntheticErrorSchema);
140
+ if (syntheticErrorCtor) {
141
+ return [syntheticErrorSchema, syntheticErrorCtor, "synthetic"];
142
+ }
143
+ }
144
+ }
145
+ return [defaultErrorSchema, Error, "native"];
146
+ }
106
147
  async serializeEventStream({ eventStream, requestSchema, initialRequest, }) {
107
148
  const eventStreamSerde = await this.loadEventStreamCapability();
108
149
  return eventStreamSerde.serializeEventStream({
@@ -131,13 +172,6 @@ export class HttpProtocol extends SerdeContext {
131
172
  compositeErrorRegistry: this.compositeErrorRegistry,
132
173
  });
133
174
  }
134
- resolveEventStreamMarshaller(importedProvider) {
135
- const context = this.serdeContext;
136
- if (context.eventStreamMarshaller) {
137
- return context.eventStreamMarshaller;
138
- }
139
- return importedProvider(this.serdeContext);
140
- }
141
175
  getDefaultContentType() {
142
176
  throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`);
143
177
  }
@@ -156,4 +190,11 @@ export class HttpProtocol extends SerdeContext {
156
190
  }
157
191
  return context.eventStreamMarshaller;
158
192
  }
193
+ resolveEventStreamMarshaller(importedProvider) {
194
+ const context = this.serdeContext;
195
+ if (context.eventStreamMarshaller) {
196
+ return context.eventStreamMarshaller;
197
+ }
198
+ return importedProvider(this.serdeContext);
199
+ }
159
200
  }
@@ -19,16 +19,17 @@ export const isBrowserNetworkError = (error) => {
19
19
  export const isThrottlingError = (error) => error.$metadata?.httpStatusCode === 429 ||
20
20
  THROTTLING_ERROR_CODES.includes(error.name) ||
21
21
  error.$retryable?.throttling == true;
22
- export const isTransientError = (error, depth = 0) => isRetryableByTrait(error) ||
23
- isClockSkewCorrectedError(error) ||
24
- (error.name === "InvalidSignatureException" && error.message?.includes("Signature expired")) ||
25
- TRANSIENT_ERROR_CODES.includes(error.name) ||
26
- NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") ||
27
- NODEJS_NETWORK_ERROR_CODES.includes(error?.code || "") ||
28
- TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) ||
29
- isBrowserNetworkError(error) ||
30
- isNodeJsHttp2TransientError(error) ||
31
- (error.cause !== undefined && depth <= 10 && isTransientError(error.cause, depth + 1));
22
+ export const isTransientError = (error, depth = 0) => error?.name !== "AbortError" &&
23
+ (isRetryableByTrait(error) ||
24
+ isClockSkewCorrectedError(error) ||
25
+ (error.name === "InvalidSignatureException" && error.message?.includes("Signature expired")) ||
26
+ TRANSIENT_ERROR_CODES.includes(error.name) ||
27
+ NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") ||
28
+ NODEJS_NETWORK_ERROR_CODES.includes(error?.code || "") ||
29
+ TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) ||
30
+ isBrowserNetworkError(error) ||
31
+ isNodeJsHttp2TransientError(error) ||
32
+ (error.cause !== undefined && depth <= 10 && isTransientError(error.cause, depth + 1)));
32
33
  export const isServerError = (error) => {
33
34
  if (error.$metadata?.httpStatusCode !== undefined) {
34
35
  const statusCode = error.$metadata.httpStatusCode;
@@ -7,12 +7,12 @@ export class TypeRegistry {
7
7
  this.namespace = namespace;
8
8
  this.schemas = schemas;
9
9
  this.exceptions = exceptions;
10
- }
11
- static for(namespace) {
12
10
  if (!TypeRegistry.registries.has(namespace)) {
13
- TypeRegistry.registries.set(namespace, new TypeRegistry(namespace));
11
+ TypeRegistry.registries.set(namespace, this);
14
12
  }
15
- return TypeRegistry.registries.get(namespace);
13
+ }
14
+ static for(namespace) {
15
+ return TypeRegistry.registries.get(namespace) ?? new TypeRegistry(namespace);
16
16
  }
17
17
  copyFrom(other) {
18
18
  const { schemas, exceptions } = this;
@@ -30,7 +30,9 @@ export class TypeRegistry {
30
30
  register(shapeId, schema) {
31
31
  const qualifiedName = this.normalizeShapeId(shapeId);
32
32
  for (const r of [this, TypeRegistry.for(qualifiedName.split("#")[0])]) {
33
- r.schemas.set(qualifiedName, schema);
33
+ if (!r.schemas.has(qualifiedName)) {
34
+ r.schemas.set(qualifiedName, schema);
35
+ }
34
36
  }
35
37
  }
36
38
  getSchema(shapeId) {
@@ -55,9 +57,12 @@ export class TypeRegistry {
55
57
  registerError(es, ctor) {
56
58
  const $error = es;
57
59
  const ns = $error[1];
60
+ const qualifiedName = ns + "#" + $error[2];
58
61
  for (const r of [this, TypeRegistry.for(ns)]) {
59
- r.schemas.set(ns + "#" + $error[2], $error);
60
- r.exceptions.set($error, ctor);
62
+ if (!r.schemas.has(qualifiedName) && !r.exceptions.has($error)) {
63
+ r.schemas.set(qualifiedName, $error);
64
+ r.exceptions.set($error, ctor);
65
+ }
61
66
  }
62
67
  }
63
68
  getErrorCtor(es) {
@@ -6,6 +6,8 @@ export const getAwsChunkedEncodingStream = (readableStream, options) => {
6
6
  checksumLocationName !== undefined &&
7
7
  streamHasher !== undefined;
8
8
  const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readableStream) : undefined;
9
+ Promise.resolve(digest).catch(() => {
10
+ });
9
11
  const reader = readableStream.getReader();
10
12
  return new ReadableStream({
11
13
  async pull(controller) {
@@ -13,8 +13,12 @@ export function getAwsChunkedEncodingStream(stream, options) {
13
13
  checksumLocationName !== undefined &&
14
14
  streamHasher !== undefined;
15
15
  const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readable) : undefined;
16
+ Promise.resolve(digest).catch(() => {
17
+ });
16
18
  const awsChunkedEncodingStream = new Readable({
17
- read: () => { },
19
+ read() {
20
+ readable.resume();
21
+ },
18
22
  });
19
23
  readable.on("data", (data) => {
20
24
  const length = bodyLengthChecker(data) || 0;
@@ -23,16 +27,27 @@ export function getAwsChunkedEncodingStream(stream, options) {
23
27
  }
24
28
  awsChunkedEncodingStream.push(`${length.toString(16)}\r\n`);
25
29
  awsChunkedEncodingStream.push(data);
26
- awsChunkedEncodingStream.push("\r\n");
30
+ if (!awsChunkedEncodingStream.push("\r\n")) {
31
+ readable.pause();
32
+ }
27
33
  });
34
+ readable.on("error", (err) => {
35
+ awsChunkedEncodingStream.destroy(err);
36
+ });
37
+ readable.pause();
28
38
  readable.on("end", async () => {
29
- awsChunkedEncodingStream.push(`0\r\n`);
30
- if (checksumRequired) {
31
- const checksum = base64Encoder(await digest);
32
- awsChunkedEncodingStream.push(`${checksumLocationName}:${checksum}\r\n`);
33
- awsChunkedEncodingStream.push(`\r\n`);
39
+ try {
40
+ awsChunkedEncodingStream.push(`0\r\n`);
41
+ if (checksumRequired) {
42
+ const checksum = base64Encoder(await digest);
43
+ awsChunkedEncodingStream.push(`${checksumLocationName}:${checksum}\r\n`);
44
+ awsChunkedEncodingStream.push(`\r\n`);
45
+ }
46
+ awsChunkedEncodingStream.push(null);
47
+ }
48
+ catch (err) {
49
+ awsChunkedEncodingStream.destroy(err);
34
50
  }
35
- awsChunkedEncodingStream.push(null);
36
51
  });
37
52
  return awsChunkedEncodingStream;
38
53
  }
@@ -18,6 +18,9 @@ export declare const dateToTag: (date: Date) => {
18
18
  */
19
19
  export declare const parseCborErrorBody: (errorBody: any, context: SerdeContext) => Promise<any>;
20
20
  /**
21
+ * Trims error.__type
22
+ * "com.a.b#Error:Sender,tag" -> "com.a.b#Error"
23
+ *
21
24
  * @internal
22
25
  */
23
26
  export declare const loadSmithyRpcV2CborErrorCode: (output: HttpResponse, data: any) => string | undefined;
@@ -5,7 +5,7 @@ export { invalidFunction } from "./invalid-dependency/invalidFunction";
5
5
  export { invalidProvider } from "./invalid-dependency/invalidProvider";
6
6
  export { createWaiter } from "./util-waiter/createWaiter";
7
7
  export { waiterServiceDefaults, WaiterState, checkExceptions, type WaiterConfiguration, type WaiterOptions, type WaiterResult, } from "./util-waiter/waiter";
8
- export { Client, type SmithyConfiguration, type SmithyResolvedConfiguration } from "./smithy-client/client";
8
+ export { Client, type SmithyClientRequestOptions, type SmithyConfiguration, type SmithyResolvedConfiguration, } from "./smithy-client/client";
9
9
  export { Command, type CommandImpl } from "./smithy-client/command";
10
10
  export { SENSITIVE_STRING } from "./smithy-client/constants";
11
11
  export { createAggregatedClient } from "./smithy-client/create-aggregated-client";
@@ -1,4 +1,12 @@
1
- import type { $ClientProtocol, $ClientProtocolCtor, ClientProtocol, ClientProtocolCtor, Command, FetchHttpHandlerOptions, Client as IClient, MetadataBearer, MiddlewareStack, NodeHttpHandlerOptions, RequestHandler } from "@smithy/types";
1
+ import type { $ClientProtocol, $ClientProtocolCtor, ClientProtocol, ClientProtocolCtor, Command, FetchHttpHandlerOptions, Client as IClient, MetadataBearer, MetricsRecorder, MiddlewareStack, NodeHttpHandlerOptions, RequestHandler } from "@smithy/types";
2
+ /**
3
+ * Options accepted for an individual Smithy client request.
4
+ *
5
+ * @public
6
+ */
7
+ export type SmithyClientRequestOptions<HandlerOptions> = unknown extends HandlerOptions ? HandlerOptions : HandlerOptions extends unknown ? keyof HandlerOptions extends never ? HandlerOptions : HandlerOptions & {
8
+ metricsRecorder?: MetricsRecorder<unknown>;
9
+ } : never;
2
10
  /**
3
11
  * @public
4
12
  */
@@ -77,8 +85,8 @@ export declare class Client<HandlerOptions, ClientInput extends object, ClientOu
77
85
  */
78
86
  private handlers?;
79
87
  constructor(config: ResolvedClientConfiguration);
80
- send<InputType extends ClientInput, OutputType extends ClientOutput>(command: Command<ClientInput, InputType, ClientOutput, OutputType, SmithyResolvedConfiguration<HandlerOptions>>, options?: HandlerOptions): Promise<OutputType>;
88
+ send<InputType extends ClientInput, OutputType extends ClientOutput>(command: Command<ClientInput, InputType, ClientOutput, OutputType, SmithyResolvedConfiguration<HandlerOptions>>, options?: SmithyClientRequestOptions<HandlerOptions>): Promise<OutputType>;
81
89
  send<InputType extends ClientInput, OutputType extends ClientOutput>(command: Command<ClientInput, InputType, ClientOutput, OutputType, SmithyResolvedConfiguration<HandlerOptions>>, cb: (err: any, data?: OutputType) => void): void;
82
- send<InputType extends ClientInput, OutputType extends ClientOutput>(command: Command<ClientInput, InputType, ClientOutput, OutputType, SmithyResolvedConfiguration<HandlerOptions>>, options: HandlerOptions, cb: (err: any, data?: OutputType) => void): void;
90
+ send<InputType extends ClientInput, OutputType extends ClientOutput>(command: Command<ClientInput, InputType, ClientOutput, OutputType, SmithyResolvedConfiguration<HandlerOptions>>, options: SmithyClientRequestOptions<HandlerOptions>, cb: (err: any, data?: OutputType) => void): void;
83
91
  destroy(): void;
84
92
  }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * A general SDK error that does not fall into a more specific category.
3
+ *
4
+ * @public
5
+ */
6
+ export declare class SmithyError extends Error {
7
+ name: string;
8
+ readonly $source: string;
9
+ }
10
+ /**
11
+ * A value had the wrong type or could not be interpreted as the expected type.
12
+ *
13
+ * @public
14
+ */
15
+ export declare class SmithyTypeError extends TypeError {
16
+ name: string;
17
+ readonly $source: string;
18
+ }
19
+ /**
20
+ * A value was the correct type but fell outside its allowed range or bounds.
21
+ *
22
+ * @public
23
+ */
24
+ export declare class SmithyRangeError extends RangeError {
25
+ name: string;
26
+ readonly $source: string;
27
+ }
28
+ /**
29
+ * @public
30
+ */
31
+ export type ErrorConstructor<E extends Error = Error> = new (message?: string) => E;
32
+ /**
33
+ * @public
34
+ */
35
+ export interface ErrorContainer {
36
+ readonly $source: string;
37
+ readonly Error: ErrorConstructor<SmithyError>;
38
+ readonly TypeError: ErrorConstructor<SmithyTypeError>;
39
+ readonly RangeError: ErrorConstructor<SmithyRangeError>;
40
+ }
41
+ /**
42
+ * @public
43
+ */
44
+ export declare const errors: ErrorContainer;
@@ -0,0 +1 @@
1
+ export { errors, type SmithyError, type SmithyRangeError, type SmithyTypeError } from "./errors";
@@ -1,6 +1,6 @@
1
1
  import type { EventStreamSerde } from "@smithy/core/event-streams";
2
2
  import { NormalizedSchema, TypeRegistry } from "@smithy/core/schema";
3
- import type { ClientProtocol, Codec, Endpoint, EndpointBearer, EndpointV2, EventStreamMarshaller, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, Schema, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types";
3
+ import type { ClientProtocol, Codec, Endpoint, EndpointBearer, EndpointV2, EventStreamMarshaller, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, Schema, SerdeFunctions, ShapeDeserializer, ShapeSerializer, StaticErrorSchema } from "@smithy/types";
4
4
  import { SerdeContext } from "./SerdeContext";
5
5
  /**
6
6
  * Abstract base for HTTP-based client protocols.
@@ -43,6 +43,16 @@ export declare abstract class HttpProtocol extends SerdeContext implements Clien
43
43
  protected setHostPrefix<Input extends object>(request: IHttpRequest, operationSchema: OperationSchema, input: Input): void;
44
44
  protected abstract handleError(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any, metadata: ResponseMetadata): Promise<never>;
45
45
  protected deserializeMetadata(output: IHttpResponse): ResponseMetadata;
46
+ /**
47
+ * For a given error short name, a list of preferred namespaces, and a list of preferred registries,
48
+ * find the error's schema and class.
49
+ *
50
+ * @param name - short error shape id.
51
+ * @param namespaces - must contain '*' to allow matching against an undeclared namespace.
52
+ * @param registries - in which to look.
53
+ * @returns matched error schema and constructor, with worst case being the least-descriptive DocumentSchema and native Error.
54
+ */
55
+ protected resolveError(name: string, namespaces: string[], registries: TypeRegistry[]): [StaticErrorSchema, any, "modeled" | "synthetic" | "native"];
46
56
  /**
47
57
  * @param eventStream - the iterable provided by the caller.
48
58
  * @param requestSchema - the schema of the event stream container (struct).
@@ -74,12 +84,6 @@ export declare abstract class HttpProtocol extends SerdeContext implements Clien
74
84
  * Loads eventStream capability async (for chunking).
75
85
  */
76
86
  protected loadEventStreamCapability(): Promise<EventStreamSerde>;
77
- /**
78
- * Returns a platform-specific EventStreamMarshaller.
79
- * Prefers user-injected marshaller from serdeContext (via client config),
80
- * falls back to the dynamically imported provider.
81
- */
82
- private resolveEventStreamMarshaller;
83
87
  /**
84
88
  * @returns content-type default header value for event stream events and other documents.
85
89
  */
@@ -92,4 +96,10 @@ export declare abstract class HttpProtocol extends SerdeContext implements Clien
92
96
  protected deserializeHttpMessage(schema: Schema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, headerBindings: Set<string>, dataObject: any): Promise<string[]>;
93
97
  protected deserializeHttpMessage(schema: Schema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any): Promise<string[]>;
94
98
  protected getEventStreamMarshaller(): EventStreamMarshaller;
99
+ /**
100
+ * Returns a platform-specific EventStreamMarshaller.
101
+ * Prefers user-injected marshaller from serdeContext (via client config),
102
+ * falls back to the dynamically imported provider.
103
+ */
104
+ private resolveEventStreamMarshaller;
95
105
  }
@@ -19,6 +19,10 @@ export declare const isThrottlingError: (error: SdkError) => boolean;
19
19
  * included here because there is an error scenario with unknown root
20
20
  * cause where the NodeHttpHandler does not decorate the Error with
21
21
  * the name "TimeoutError" to be checked by the TRANSIENT_ERROR_CODES condition.
22
+ *
23
+ * Errors named "AbortError" are considered terminal. AbortSignal.timeout()
24
+ * produces an underlying cause which would otherwise be considered retryable as
25
+ * a TimeoutError.
22
26
  */
23
27
  export declare const isTransientError: (error: SdkError, depth?: number) => boolean;
24
28
  export declare const isServerError: (error: SdkError) => boolean;
@@ -10,10 +10,10 @@ export declare class TypeRegistry {
10
10
  private schemas;
11
11
  private exceptions;
12
12
  static readonly registries: Map<string, TypeRegistry>;
13
- private constructor();
13
+ constructor(namespace: string, schemas?: Map<string, ISchema>, exceptions?: Map<StaticErrorSchema, any>);
14
14
  /**
15
15
  * @param namespace - specifier.
16
- * @returns the schema for that namespace, creating it if necessary.
16
+ * @returns the TypeRegistry for that namespace, creating it if necessary.
17
17
  */
18
18
  static for(namespace: string): TypeRegistry;
19
19
  /**
@@ -18,6 +18,9 @@ export declare const dateToTag: (date: Date) => {
18
18
  */
19
19
  export declare const parseCborErrorBody: (errorBody: any, context: SerdeContext) => Promise<any>;
20
20
  /**
21
+ * Trims error.__type
22
+ * "com.a.b#Error:Sender,tag" -> "com.a.b#Error"
23
+ *
21
24
  * @internal
22
25
  */
23
26
  export declare const loadSmithyRpcV2CborErrorCode: (output: HttpResponse, data: any) => string | undefined;
@@ -5,7 +5,7 @@ export { invalidFunction } from "./invalid-dependency/invalidFunction";
5
5
  export { invalidProvider } from "./invalid-dependency/invalidProvider";
6
6
  export { createWaiter } from "./util-waiter/createWaiter";
7
7
  export { waiterServiceDefaults, WaiterState, checkExceptions, WaiterConfiguration, WaiterOptions, WaiterResult } from "./util-waiter/waiter";
8
- export { Client, SmithyConfiguration, SmithyResolvedConfiguration } from "./smithy-client/client";
8
+ export { Client, SmithyClientRequestOptions, SmithyConfiguration, SmithyResolvedConfiguration } from "./smithy-client/client";
9
9
  export { Command, CommandImpl } from "./smithy-client/command";
10
10
  export { SENSITIVE_STRING } from "./smithy-client/constants";
11
11
  export { createAggregatedClient } from "./smithy-client/create-aggregated-client";
@@ -1,4 +1,12 @@
1
- import { $ClientProtocol, $ClientProtocolCtor, ClientProtocol, ClientProtocolCtor, Command, FetchHttpHandlerOptions, Client as IClient, MetadataBearer, MiddlewareStack, NodeHttpHandlerOptions, RequestHandler } from "@smithy/types";
1
+ import { $ClientProtocol, $ClientProtocolCtor, ClientProtocol, ClientProtocolCtor, Command, FetchHttpHandlerOptions, Client as IClient, MetadataBearer, MetricsRecorder, MiddlewareStack, NodeHttpHandlerOptions, RequestHandler } from "@smithy/types";
2
+ /**
3
+ * Options accepted for an individual Smithy client request.
4
+ *
5
+ * @public
6
+ */
7
+ export type SmithyClientRequestOptions<HandlerOptions> = unknown extends HandlerOptions ? HandlerOptions : HandlerOptions extends unknown ? keyof HandlerOptions extends never ? HandlerOptions : HandlerOptions & {
8
+ metricsRecorder?: MetricsRecorder<unknown>;
9
+ } : never;
2
10
  /**
3
11
  * @public
4
12
  */
@@ -77,8 +85,8 @@ export declare class Client<HandlerOptions, ClientInput extends object, ClientOu
77
85
  */
78
86
  private handlers?;
79
87
  constructor(config: ResolvedClientConfiguration);
80
- send<InputType extends ClientInput, OutputType extends ClientOutput>(command: Command<ClientInput, InputType, ClientOutput, OutputType, SmithyResolvedConfiguration<HandlerOptions>>, options?: HandlerOptions): Promise<OutputType>;
88
+ send<InputType extends ClientInput, OutputType extends ClientOutput>(command: Command<ClientInput, InputType, ClientOutput, OutputType, SmithyResolvedConfiguration<HandlerOptions>>, options?: SmithyClientRequestOptions<HandlerOptions>): Promise<OutputType>;
81
89
  send<InputType extends ClientInput, OutputType extends ClientOutput>(command: Command<ClientInput, InputType, ClientOutput, OutputType, SmithyResolvedConfiguration<HandlerOptions>>, cb: (err: any, data?: OutputType) => void): void;
82
- send<InputType extends ClientInput, OutputType extends ClientOutput>(command: Command<ClientInput, InputType, ClientOutput, OutputType, SmithyResolvedConfiguration<HandlerOptions>>, options: HandlerOptions, cb: (err: any, data?: OutputType) => void): void;
90
+ send<InputType extends ClientInput, OutputType extends ClientOutput>(command: Command<ClientInput, InputType, ClientOutput, OutputType, SmithyResolvedConfiguration<HandlerOptions>>, options: SmithyClientRequestOptions<HandlerOptions>, cb: (err: any, data?: OutputType) => void): void;
83
91
  destroy(): void;
84
92
  }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * A general SDK error that does not fall into a more specific category.
3
+ *
4
+ * @public
5
+ */
6
+ export declare class SmithyError extends Error {
7
+ name: string;
8
+ readonly $source: string;
9
+ }
10
+ /**
11
+ * A value had the wrong type or could not be interpreted as the expected type.
12
+ *
13
+ * @public
14
+ */
15
+ export declare class SmithyTypeError extends TypeError {
16
+ name: string;
17
+ readonly $source: string;
18
+ }
19
+ /**
20
+ * A value was the correct type but fell outside its allowed range or bounds.
21
+ *
22
+ * @public
23
+ */
24
+ export declare class SmithyRangeError extends RangeError {
25
+ name: string;
26
+ readonly $source: string;
27
+ }
28
+ /**
29
+ * @public
30
+ */
31
+ export type ErrorConstructor<E extends Error = Error> = new (message?: string) => E;
32
+ /**
33
+ * @public
34
+ */
35
+ export interface ErrorContainer {
36
+ readonly $source: string;
37
+ readonly Error: ErrorConstructor<SmithyError>;
38
+ readonly TypeError: ErrorConstructor<SmithyTypeError>;
39
+ readonly RangeError: ErrorConstructor<SmithyRangeError>;
40
+ }
41
+ /**
42
+ * @public
43
+ */
44
+ export declare const errors: ErrorContainer;
@@ -0,0 +1 @@
1
+ export { errors, SmithyError, SmithyRangeError, SmithyTypeError } from "./errors";
@@ -1,6 +1,6 @@
1
1
  import { EventStreamSerde } from "@smithy/core/event-streams";
2
2
  import { NormalizedSchema, TypeRegistry } from "@smithy/core/schema";
3
- import { ClientProtocol, Codec, Endpoint, EndpointBearer, EndpointV2, EventStreamMarshaller, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, Schema, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types";
3
+ import { ClientProtocol, Codec, Endpoint, EndpointBearer, EndpointV2, EventStreamMarshaller, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, Schema, SerdeFunctions, ShapeDeserializer, ShapeSerializer, StaticErrorSchema } from "@smithy/types";
4
4
  import { SerdeContext } from "./SerdeContext";
5
5
  /**
6
6
  * Abstract base for HTTP-based client protocols.
@@ -43,6 +43,20 @@ export declare abstract class HttpProtocol extends SerdeContext implements Clien
43
43
  protected setHostPrefix<Input extends object>(request: IHttpRequest, operationSchema: OperationSchema, input: Input): void;
44
44
  protected abstract handleError(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any, metadata: ResponseMetadata): Promise<never>;
45
45
  protected deserializeMetadata(output: IHttpResponse): ResponseMetadata;
46
+ /**
47
+ * For a given error short name, a list of preferred namespaces, and a list of preferred registries,
48
+ * find the error's schema and class.
49
+ *
50
+ * @param name - short error shape id.
51
+ * @param namespaces - must contain '*' to allow matching against an undeclared namespace.
52
+ * @param registries - in which to look.
53
+ * @returns matched error schema and constructor, with worst case being the least-descriptive DocumentSchema and native Error.
54
+ */
55
+ protected resolveError(name: string, namespaces: string[], registries: TypeRegistry[]): [
56
+ StaticErrorSchema,
57
+ any,
58
+ "modeled" | "synthetic" | "native"
59
+ ];
46
60
  /**
47
61
  * @param eventStream - the iterable provided by the caller.
48
62
  * @param requestSchema - the schema of the event stream container (struct).
@@ -74,12 +88,6 @@ export declare abstract class HttpProtocol extends SerdeContext implements Clien
74
88
  * Loads eventStream capability async (for chunking).
75
89
  */
76
90
  protected loadEventStreamCapability(): Promise<EventStreamSerde>;
77
- /**
78
- * Returns a platform-specific EventStreamMarshaller.
79
- * Prefers user-injected marshaller from serdeContext (via client config),
80
- * falls back to the dynamically imported provider.
81
- */
82
- private resolveEventStreamMarshaller;
83
91
  /**
84
92
  * @returns content-type default header value for event stream events and other documents.
85
93
  */
@@ -92,4 +100,10 @@ export declare abstract class HttpProtocol extends SerdeContext implements Clien
92
100
  protected deserializeHttpMessage(schema: Schema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, headerBindings: Set<string>, dataObject: any): Promise<string[]>;
93
101
  protected deserializeHttpMessage(schema: Schema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any): Promise<string[]>;
94
102
  protected getEventStreamMarshaller(): EventStreamMarshaller;
103
+ /**
104
+ * Returns a platform-specific EventStreamMarshaller.
105
+ * Prefers user-injected marshaller from serdeContext (via client config),
106
+ * falls back to the dynamically imported provider.
107
+ */
108
+ private resolveEventStreamMarshaller;
95
109
  }
@@ -19,6 +19,10 @@ export declare const isThrottlingError: (error: SdkError) => boolean;
19
19
  * included here because there is an error scenario with unknown root
20
20
  * cause where the NodeHttpHandler does not decorate the Error with
21
21
  * the name "TimeoutError" to be checked by the TRANSIENT_ERROR_CODES condition.
22
+ *
23
+ * Errors named "AbortError" are considered terminal. AbortSignal.timeout()
24
+ * produces an underlying cause which would otherwise be considered retryable as
25
+ * a TimeoutError.
22
26
  */
23
27
  export declare const isTransientError: (error: SdkError, depth?: number) => boolean;
24
28
  export declare const isServerError: (error: SdkError) => boolean;
@@ -10,10 +10,10 @@ export declare class TypeRegistry {
10
10
  private schemas;
11
11
  private exceptions;
12
12
  static readonly registries: Map<string, TypeRegistry>;
13
- private constructor();
13
+ constructor(namespace: string, schemas?: Map<string, ISchema>, exceptions?: Map<StaticErrorSchema, any>);
14
14
  /**
15
15
  * @param namespace - specifier.
16
- * @returns the schema for that namespace, creating it if necessary.
16
+ * @returns the TypeRegistry for that namespace, creating it if necessary.
17
17
  */
18
18
  static for(namespace: string): TypeRegistry;
19
19
  /**
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Do not edit:
3
+ * This is a compatibility redirect for contexts that do not understand package.json exports field.
4
+ */
5
+ export * from "./dist-types/submodules/errors/index";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Do not edit:
3
+ * This is a compatibility redirect for contexts that do not understand package.json exports field.
4
+ */
5
+ module.exports = require("./dist-cjs/submodules/errors/index.js");
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "3.33.3",
3
+ "version": "3.35.0",
4
4
  "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/core",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -24,6 +24,8 @@
24
24
  "./config.js",
25
25
  "./endpoints.d.ts",
26
26
  "./endpoints.js",
27
+ "./errors.d.ts",
28
+ "./errors.js",
27
29
  "./event-streams.d.ts",
28
30
  "./event-streams.js",
29
31
  "./protocols.d.ts",
@@ -212,6 +214,13 @@
212
214
  "node": "./dist-cjs/submodules/transport/index.js",
213
215
  "import": "./dist-es/submodules/transport/index.js",
214
216
  "require": "./dist-cjs/submodules/transport/index.js"
217
+ },
218
+ "./errors": {
219
+ "types": "./dist-types/submodules/errors/index.d.ts",
220
+ "module": "./dist-es/submodules/errors/index.js",
221
+ "node": "./dist-cjs/submodules/errors/index.js",
222
+ "import": "./dist-es/submodules/errors/index.js",
223
+ "require": "./dist-cjs/submodules/errors/index.js"
215
224
  }
216
225
  },
217
226
  "scripts": {
@@ -232,7 +241,7 @@
232
241
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
233
242
  },
234
243
  "dependencies": {
235
- "@smithy/types": "^4.17.2",
244
+ "@smithy/types": "^4.19.0",
236
245
  "tslib": "^2.6.2"
237
246
  },
238
247
  "devDependencies": {
@@ -339,7 +339,10 @@ const getCanonicalHeaders = ({ headers }, unsignableHeaders, signableHeaders) =>
339
339
  continue;
340
340
  }
341
341
  }
342
- canonical[canonicalHeaderName] = headers[headerName].trim().replace(/\s+/g, " ");
342
+ canonical[canonicalHeaderName] = headers[headerName]
343
+ .replace(/[\r\n]/g, " ")
344
+ .replace(/[ \t]+/g, " ")
345
+ .replace(/^ | $/g, "");
343
346
  }
344
347
  return canonical;
345
348
  };
@@ -14,7 +14,10 @@ export const getCanonicalHeaders = ({ headers }, unsignableHeaders, signableHead
14
14
  continue;
15
15
  }
16
16
  }
17
- canonical[canonicalHeaderName] = headers[headerName].trim().replace(/\s+/g, " ");
17
+ canonical[canonicalHeaderName] = headers[headerName]
18
+ .replace(/[\r\n]/g, " ")
19
+ .replace(/[ \t]+/g, " ")
20
+ .replace(/^ | $/g, "");
18
21
  }
19
22
  return canonical;
20
23
  };