@cdk8s/awscdk-resolver 0.0.637 → 0.0.639

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 (228) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1 -1
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.browser.d.ts +2 -0
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +2 -0
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.native.d.ts +2 -0
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  9. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  10. package/node_modules/@aws-sdk/client-cloudformation/package.json +6 -6
  11. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +66 -28
  12. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +133 -15
  13. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js +7 -2
  14. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +28 -14
  15. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.js +1 -0
  16. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.js +3 -0
  17. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.js +8 -0
  18. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/index.js +1 -1
  19. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +3 -3
  20. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.browser.js +9 -0
  21. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js +5 -1
  22. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js +1 -0
  23. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js +12 -6
  24. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/index.js +2 -1
  25. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/isClockSkewed.js +1 -1
  26. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +10 -1
  27. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +10 -0
  28. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/detectBufferParsing.js +18 -0
  29. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.js +13 -15
  30. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/ByteJsonShapeSerializer.js +27 -17
  31. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js +22 -3
  32. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/needsReviver.js +41 -0
  33. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js +33 -13
  34. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/writeKey.js +3 -0
  35. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +4 -0
  36. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +2 -1
  37. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +6 -0
  38. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +7 -0
  39. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +13 -0
  40. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/index.d.ts +1 -1
  41. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +22 -6
  42. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/index.browser.d.ts +11 -0
  43. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/index.d.ts +7 -1
  44. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +4 -0
  45. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +22 -6
  46. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/index.d.ts +2 -1
  47. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/detectBufferParsing.d.ts +1 -0
  48. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +0 -2
  49. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/needsReviver.d.ts +11 -0
  50. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +7 -2
  51. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/writeKey.d.ts +4 -0
  52. package/node_modules/@aws-sdk/core/dist-types/ts3.4/api-extractor-type-index.d.ts +7 -4
  53. package/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +21 -61
  54. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +27 -13
  55. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConstants.d.ts +16 -4
  56. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +14 -5
  57. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/index.d.ts +5 -16
  58. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/emitWarningIfUnsupportedVersion.d.ts +11 -4
  59. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.browser.d.ts +47 -107
  60. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +39 -112
  61. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.native.d.ts +48 -107
  62. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/longPollMiddleware.d.ts +14 -13
  63. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-host-header/hostHeaderMiddleware.d.ts +35 -25
  64. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-logger/loggerMiddleware.d.ts +4 -14
  65. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/configuration.d.ts +6 -2
  66. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.browser.d.ts +5 -2
  67. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.d.ts +5 -2
  68. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.browser.d.ts +6 -2
  69. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.d.ts +10 -2
  70. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.native.d.ts +6 -2
  71. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/check-features.d.ts +20 -16
  72. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/configurations.d.ts +44 -21
  73. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/constants.d.ts +7 -7
  74. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/encode-features.d.ts +5 -2
  75. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/user-agent-middleware.d.ts +18 -18
  76. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/awsRegionConfig.d.ts +11 -8
  77. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/extensions.d.ts +16 -14
  78. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.browser.d.ts +4 -1
  79. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.d.ts +14 -7
  80. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.native.d.ts +4 -1
  81. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setCredentialFeature.d.ts +7 -6
  82. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setFeature.d.ts +12 -6
  83. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setTokenFeature.d.ts +7 -6
  84. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/aws.d.ts +2 -2
  85. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/isVirtualHostableS3Bucket.d.ts +5 -4
  86. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/parseArn.d.ts +7 -2
  87. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partition.d.ts +38 -28
  88. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partitions.d.ts +638 -647
  89. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/isIpAddress.d.ts +1 -1
  90. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/resolveDefaultAwsRegionalEndpointsConfig.d.ts +56 -29
  91. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/resolveEndpoint.d.ts +1 -1
  92. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointError.d.ts +1 -1
  93. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointRuleObject.d.ts +1 -6
  94. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/ErrorRuleObject.d.ts +1 -1
  95. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/RuleSetObject.d.ts +1 -1
  96. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/TreeRuleObject.d.ts +1 -1
  97. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/shared.d.ts +1 -12
  98. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/configurations.d.ts +7 -4
  99. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/createUserAgentStringParsingProvider.d.ts +14 -7
  100. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.browser.d.ts +2 -7
  101. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +27 -18
  102. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +18 -13
  103. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/crt-availability.d.ts +8 -3
  104. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +28 -17
  105. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/getRuntimeUserAgentPair.d.ts +6 -2
  106. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/is-crt-available.d.ts +5 -2
  107. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/nodeAppIdConfigOptions.d.ts +13 -4
  108. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +10 -9
  109. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +44 -37
  110. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +5 -2
  111. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +6 -0
  112. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +7 -0
  113. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +13 -0
  114. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +7 -23
  115. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +38 -13
  116. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +133 -56
  117. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.browser.d.ts +11 -0
  118. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +9 -24
  119. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.d.ts +8 -1
  120. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.d.ts +6 -1
  121. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +8 -1
  122. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.d.ts +8 -1
  123. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +26 -4
  124. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/index.d.ts +4 -3
  125. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/isClockSkewed.d.ts +9 -1
  126. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -5
  127. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +74 -40
  128. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/UnionSerde.d.ts +24 -9
  129. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +25 -36
  130. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/coercing-serializers.d.ts +18 -3
  131. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/common.d.ts +2 -5
  132. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +22 -27
  133. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +22 -21
  134. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +22 -21
  135. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +29 -49
  136. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +36 -49
  137. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonCodec.d.ts +19 -13
  138. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeDeserializer.d.ts +13 -13
  139. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +28 -18
  140. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/awsExpectUnion.d.ts +7 -1
  141. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -0
  142. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.d.ts +29 -14
  143. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +57 -30
  144. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +21 -7
  145. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +15 -7
  146. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +11 -0
  147. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +22 -9
  148. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +27 -18
  149. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +49 -57
  150. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QuerySerializerSettings.d.ts +13 -7
  151. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts +16 -21
  152. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/writeKey.d.ts +4 -0
  153. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +31 -47
  154. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlCodec.d.ts +14 -17
  155. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeDeserializer.d.ts +20 -15
  156. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeSerializer.d.ts +21 -21
  157. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/parseXmlBody.d.ts +13 -4
  158. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/simpleFormatXml.d.ts +6 -1
  159. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/index.d.ts +3 -3
  160. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/util-arn-parser/arn.d.ts +32 -14
  161. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/util-format-url/format-url.d.ts +2 -4
  162. package/node_modules/@aws-sdk/core/package.json +10 -6
  163. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  164. package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
  165. package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
  166. package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
  167. package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
  168. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  169. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  170. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
  171. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  172. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  173. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  174. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  175. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  176. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +2 -0
  177. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +2 -0
  178. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +2 -0
  179. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +2 -0
  180. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +2 -0
  181. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +2 -0
  182. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.browser.d.ts +2 -0
  183. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +2 -0
  184. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.native.d.ts +2 -0
  185. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +2 -0
  186. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +2 -0
  187. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +2 -0
  188. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +2 -0
  189. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +2 -0
  190. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +2 -0
  191. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +2 -0
  192. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +2 -0
  193. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +2 -0
  194. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +2 -0
  195. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +2 -0
  196. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +2 -0
  197. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +2 -0
  198. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +2 -0
  199. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +2 -0
  200. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +2 -0
  201. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +2 -0
  202. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +2 -0
  203. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +2 -0
  204. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +2 -0
  205. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +2 -0
  206. package/node_modules/@aws-sdk/nested-clients/package.json +6 -6
  207. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  208. package/node_modules/@aws-sdk/token-providers/package.json +4 -4
  209. package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +14 -4
  210. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +14 -4
  211. package/node_modules/@aws-sdk/xml-builder/package.json +1 -1
  212. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +1 -1
  213. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +1 -0
  214. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +1 -0
  215. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +2 -2
  216. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +2 -2
  217. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +2 -2
  218. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +1 -1
  219. package/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/constants.js +1 -0
  220. package/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js +2 -2
  221. package/node_modules/@smithy/core/dist-types/submodules/retry/service-error-classification/constants.d.ts +1 -0
  222. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/service-error-classification/constants.d.ts +1 -0
  223. package/node_modules/@smithy/core/package.json +1 -1
  224. package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
  225. package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
  226. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  227. package/node_modules/@smithy/signature-v4/package.json +2 -2
  228. package/package.json +5 -5
@@ -1,56 +1,133 @@
1
- import { MergeFunctions } from "@aws-sdk/types";
2
- import { SignatureV4CryptoInit, SignatureV4Init } from "@smithy/signature-v4";
3
- import {
4
- AuthScheme,
5
- AwsCredentialIdentity,
6
- AwsCredentialIdentityProvider,
7
- ChecksumConstructor,
8
- HashConstructor,
9
- MemoizedProvider,
10
- Provider,
11
- RegionInfoProvider,
12
- RequestSigner,
13
- } from "@smithy/types";
14
- export interface AwsSdkSigV4AuthInputConfig {
15
- credentials?: AwsCredentialIdentity | AwsCredentialIdentityProvider;
16
- signer?: RequestSigner | ((authScheme?: AuthScheme) => Promise<RequestSigner>);
17
- signingEscapePath?: boolean;
18
- systemClockOffset?: number;
19
- signingRegion?: string;
20
- signerConstructor?: new (options: SignatureV4Init & SignatureV4CryptoInit) => RequestSigner;
21
- }
22
- export type AwsSdkSigV4Memoized = {
23
- memoized?: boolean;
24
- configBound?: boolean;
25
- attributed?: boolean;
26
- };
27
- export interface AwsSdkSigV4PreviouslyResolved {
28
- credentialDefaultProvider?: (input: any) => MemoizedProvider<AwsCredentialIdentity>;
29
- region: string | Provider<string>;
30
- sha256: ChecksumConstructor | HashConstructor;
31
- signingName?: string;
32
- regionInfoProvider?: RegionInfoProvider;
33
- defaultSigningName?: string;
34
- serviceId: string;
35
- useFipsEndpoint: Provider<boolean>;
36
- useDualstackEndpoint: Provider<boolean>;
37
- }
38
- export interface AwsSdkSigV4AuthResolvedConfig {
39
- credentials: MergeFunctions<
40
- AwsCredentialIdentityProvider,
41
- MemoizedProvider<AwsCredentialIdentity>
42
- > &
43
- AwsSdkSigV4Memoized;
44
- signer: (authScheme?: AuthScheme) => Promise<RequestSigner>;
45
- signingEscapePath: boolean;
46
- systemClockOffset: number;
47
- }
48
- export declare const resolveAwsSdkSigV4Config: <T>(
49
- config: T & AwsSdkSigV4AuthInputConfig & AwsSdkSigV4PreviouslyResolved,
50
- ) => T & AwsSdkSigV4AuthResolvedConfig;
51
- export interface AWSSDKSigV4AuthInputConfig extends AwsSdkSigV4AuthInputConfig {}
52
- export interface AWSSDKSigV4PreviouslyResolved extends AwsSdkSigV4PreviouslyResolved {}
53
- export interface AWSSDKSigV4AuthResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {}
54
- export declare const resolveAWSSDKSigV4Config: <T>(
55
- config: T & AwsSdkSigV4AuthInputConfig & AwsSdkSigV4PreviouslyResolved,
56
- ) => T & AwsSdkSigV4AuthResolvedConfig;
1
+ import { MergeFunctions } from "@aws-sdk/types";
2
+ import { SignatureV4CryptoInit, SignatureV4Init } from "@smithy/signature-v4";
3
+ import { AuthScheme, AwsCredentialIdentity, AwsCredentialIdentityProvider, ChecksumConstructor, HashConstructor, MemoizedProvider, Provider, RegionInfoProvider, RequestSigner } from "@smithy/types";
4
+ /**
5
+ * @public
6
+ */
7
+ export interface AwsSdkSigV4AuthInputConfig {
8
+ /**
9
+ * The credentials used to sign requests.
10
+ */
11
+ credentials?: AwsCredentialIdentity | AwsCredentialIdentityProvider;
12
+ /**
13
+ * The signer to use when signing requests.
14
+ */
15
+ signer?: RequestSigner | ((authScheme?: AuthScheme) => Promise<RequestSigner>);
16
+ /**
17
+ * Whether to escape request path when signing the request.
18
+ */
19
+ signingEscapePath?: boolean;
20
+ /**
21
+ * An offset value in milliseconds to apply to all signing times.
22
+ */
23
+ systemClockOffset?: number;
24
+ /**
25
+ * The region where you want to sign your request against. This
26
+ * can be different to the region in the endpoint.
27
+ */
28
+ signingRegion?: string;
29
+ /**
30
+ * The injectable SigV4-compatible signer class constructor. If not supplied,
31
+ * regular SignatureV4 constructor will be used.
32
+ *
33
+ * @internal
34
+ */
35
+ signerConstructor?: new (options: SignatureV4Init & SignatureV4CryptoInit) => RequestSigner;
36
+ /**
37
+ * Whether to disable clock skew correction. When true, the SDK will not adjust
38
+ * the signing timestamp, will not update the client clock offset from response
39
+ * headers, and will not retry clock skew errors.
40
+ *
41
+ * Defaults to false (correction enabled).
42
+ */
43
+ disableClockSkewCorrection?: boolean | Provider<boolean>;
44
+ }
45
+ /**
46
+ * Used to indicate whether a credential provider function was memoized by this resolver.
47
+ * @public
48
+ */
49
+ export type AwsSdkSigV4Memoized = {
50
+ /**
51
+ * The credential provider has been memoized by the AWS SDK SigV4 config resolver.
52
+ */
53
+ memoized?: boolean;
54
+ /**
55
+ * The credential provider has the caller client config object bound to its arguments.
56
+ */
57
+ configBound?: boolean;
58
+ /**
59
+ * Function is wrapped with attribution transform.
60
+ */
61
+ attributed?: boolean;
62
+ };
63
+ /**
64
+ * @internal
65
+ */
66
+ export interface AwsSdkSigV4PreviouslyResolved {
67
+ credentialDefaultProvider?: (input: any) => MemoizedProvider<AwsCredentialIdentity>;
68
+ region: string | Provider<string>;
69
+ sha256: ChecksumConstructor | HashConstructor;
70
+ signingName?: string;
71
+ regionInfoProvider?: RegionInfoProvider;
72
+ defaultSigningName?: string;
73
+ serviceId: string;
74
+ useFipsEndpoint: Provider<boolean>;
75
+ useDualstackEndpoint: Provider<boolean>;
76
+ }
77
+ /**
78
+ * @internal
79
+ */
80
+ export interface AwsSdkSigV4AuthResolvedConfig {
81
+ /**
82
+ * Resolved value for input config {@link AwsSdkSigV4AuthInputConfig.credentials}
83
+ * This provider MAY memoize the loaded credentials for certain period.
84
+ */
85
+ credentials: MergeFunctions<AwsCredentialIdentityProvider, MemoizedProvider<AwsCredentialIdentity>> & AwsSdkSigV4Memoized;
86
+ /**
87
+ * Resolved value for input config {@link AwsSdkSigV4AuthInputConfig.signer}
88
+ */
89
+ signer: (authScheme?: AuthScheme) => Promise<RequestSigner>;
90
+ /**
91
+ * Resolved value for input config {@link AwsSdkSigV4AuthInputConfig.signingEscapePath}
92
+ */
93
+ signingEscapePath: boolean;
94
+ /**
95
+ * Resolved value for input config {@link AwsSdkSigV4AuthInputConfig.systemClockOffset}
96
+ */
97
+ systemClockOffset: number;
98
+ /**
99
+ * Resolved value for input config {@link AwsSdkSigV4AuthInputConfig.disableClockSkewCorrection}
100
+ */
101
+ disableClockSkewCorrection: Provider<boolean>;
102
+ }
103
+ /**
104
+ * Combined input config type used internally by the resolver and helper functions.
105
+ * @internal
106
+ */
107
+ type AwsSdkSigV4ConfigInput = AwsSdkSigV4AuthInputConfig & AwsSdkSigV4PreviouslyResolved;
108
+ /**
109
+ * Accepts a platform-specific default for disableClockSkewCorrection and
110
+ * returns the resolver function. Called from the index (node vs browser).
111
+ *
112
+ * @internal
113
+ */
114
+ export declare const bindResolveAwsSdkSigV4Config: (defaultDisableClockSkewCorrection: boolean | Provider<boolean>) => <T>(config: T & AwsSdkSigV4ConfigInput) => T & AwsSdkSigV4AuthResolvedConfig;
115
+ /**
116
+ * @internal
117
+ * @deprecated renamed to {@link AwsSdkSigV4AuthInputConfig}
118
+ */
119
+ export interface AWSSDKSigV4AuthInputConfig extends AwsSdkSigV4AuthInputConfig {
120
+ }
121
+ /**
122
+ * @internal
123
+ * @deprecated renamed to {@link AwsSdkSigV4PreviouslyResolved}
124
+ */
125
+ export interface AWSSDKSigV4PreviouslyResolved extends AwsSdkSigV4PreviouslyResolved {
126
+ }
127
+ /**
128
+ * @internal
129
+ * @deprecated renamed to {@link AwsSdkSigV4AuthResolvedConfig}
130
+ */
131
+ export interface AWSSDKSigV4AuthResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
132
+ }
133
+ export {};
@@ -0,0 +1,11 @@
1
+ export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties, AwsSdkSigV4ASigner, resolveAwsSdkSigV4AConfig, } from "./aws_sdk";
2
+ export { AwsSdkSigV4AAuthInputConfig, AwsSdkSigV4APreviouslyResolved, AwsSdkSigV4AAuthResolvedConfig, AwsSdkSigV4AuthInputConfig, AwsSdkSigV4Memoized, AwsSdkSigV4PreviouslyResolved, AwsSdkSigV4AuthResolvedConfig, AWSSDKSigV4AuthInputConfig, AWSSDKSigV4PreviouslyResolved, AWSSDKSigV4AuthResolvedConfig, } from "./aws_sdk";
3
+ export { getBearerTokenEnvKey } from "./utils/getBearerTokenEnvKey";
4
+ export declare const NODE_AUTH_SCHEME_PREFERENCE_OPTIONS: symbol;
5
+ export declare const NODE_SIGV4A_CONFIG_OPTIONS: symbol;
6
+ export declare const resolveAwsSdkSigV4Config: <T>(config: T & (import("./aws_sdk").AwsSdkSigV4AuthInputConfig & import("./aws_sdk").AwsSdkSigV4PreviouslyResolved)) => T & import("./aws_sdk").AwsSdkSigV4AuthResolvedConfig;
7
+ /**
8
+ * @internal
9
+ * @deprecated renamed to {@link resolveAwsSdkSigV4Config}
10
+ */
11
+ export declare const resolveAWSSDKSigV4Config: <T>(config: T & (import("./aws_sdk").AwsSdkSigV4AuthInputConfig & import("./aws_sdk").AwsSdkSigV4PreviouslyResolved)) => T & import("./aws_sdk").AwsSdkSigV4AuthResolvedConfig;
@@ -1,24 +1,9 @@
1
- export {
2
- AwsSdkSigV4Signer,
3
- AWSSDKSigV4Signer,
4
- validateSigningProperties,
5
- AwsSdkSigV4ASigner,
6
- NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
7
- resolveAwsSdkSigV4AConfig,
8
- NODE_SIGV4A_CONFIG_OPTIONS,
9
- resolveAwsSdkSigV4Config,
10
- resolveAWSSDKSigV4Config,
11
- } from "./aws_sdk";
12
- export {
13
- AwsSdkSigV4AAuthInputConfig,
14
- AwsSdkSigV4APreviouslyResolved,
15
- AwsSdkSigV4AAuthResolvedConfig,
16
- AwsSdkSigV4AuthInputConfig,
17
- AwsSdkSigV4Memoized,
18
- AwsSdkSigV4PreviouslyResolved,
19
- AwsSdkSigV4AuthResolvedConfig,
20
- AWSSDKSigV4AuthInputConfig,
21
- AWSSDKSigV4PreviouslyResolved,
22
- AWSSDKSigV4AuthResolvedConfig,
23
- } from "./aws_sdk";
24
- export { getBearerTokenEnvKey } from "./utils/getBearerTokenEnvKey";
1
+ export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties, AwsSdkSigV4ASigner, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, resolveAwsSdkSigV4AConfig, NODE_SIGV4A_CONFIG_OPTIONS, } from "./aws_sdk";
2
+ export { AwsSdkSigV4AAuthInputConfig, AwsSdkSigV4APreviouslyResolved, AwsSdkSigV4AAuthResolvedConfig, AwsSdkSigV4AuthInputConfig, AwsSdkSigV4Memoized, AwsSdkSigV4PreviouslyResolved, AwsSdkSigV4AuthResolvedConfig, AWSSDKSigV4AuthInputConfig, AWSSDKSigV4PreviouslyResolved, AWSSDKSigV4AuthResolvedConfig, } from "./aws_sdk";
3
+ export { getBearerTokenEnvKey } from "./utils/getBearerTokenEnvKey";
4
+ export declare const resolveAwsSdkSigV4Config: <T>(config: T & (import("./aws_sdk").AwsSdkSigV4AuthInputConfig & import("./aws_sdk").AwsSdkSigV4PreviouslyResolved)) => T & import("./aws_sdk").AwsSdkSigV4AuthResolvedConfig;
5
+ /**
6
+ * @internal
7
+ * @deprecated renamed to {@link resolveAwsSdkSigV4Config}
8
+ */
9
+ export declare const resolveAWSSDKSigV4Config: <T>(config: T & (import("./aws_sdk").AwsSdkSigV4AuthInputConfig & import("./aws_sdk").AwsSdkSigV4PreviouslyResolved)) => T & import("./aws_sdk").AwsSdkSigV4AuthResolvedConfig;
@@ -1 +1,8 @@
1
- export declare const getArrayForCommaSeparatedString: (str: string) => string[];
1
+ /**
2
+ * Converts a comma-separated string into an array of trimmed strings
3
+ * @param str The comma-separated input string to split
4
+ * @returns Array of trimmed strings split from the input
5
+ *
6
+ * @internal
7
+ */
8
+ export declare const getArrayForCommaSeparatedString: (str: string) => string[];
@@ -1 +1,6 @@
1
- export declare const getBearerTokenEnvKey: (signingName: string) => string;
1
+ /**
2
+ * Returns an environment variable key base on signing name.
3
+ * @param signingName - The signing name to use in the key
4
+ * @returns The environment variable key in format AWS_BEARER_TOKEN_<SIGNING_NAME>
5
+ */
6
+ export declare const getBearerTokenEnvKey: (signingName: string) => string;
@@ -1 +1,8 @@
1
- export declare const getDateHeader: (response: unknown) => string | undefined;
1
+ /**
2
+ * @internal
3
+ */
4
+ export declare const getDateHeader: (response: unknown) => string | undefined;
5
+ /**
6
+ * @internal
7
+ */
8
+ export declare const getAgeHeader: (response: unknown) => string | undefined;
@@ -1 +1,8 @@
1
- export declare const getSkewCorrectedDate: (systemClockOffset: number) => Date;
1
+ /**
2
+ * @internal
3
+ *
4
+ * Returns a date that is corrected for clock skew.
5
+ *
6
+ * @param systemClockOffset The offset of the system clock in milliseconds.
7
+ */
8
+ export declare const getSkewCorrectedDate: (systemClockOffset: number) => Date;
@@ -1,4 +1,26 @@
1
- export declare const getUpdatedSystemClockOffset: (
2
- clockTime: string,
3
- currentSystemClockOffset: number,
4
- ) => number;
1
+ /**
2
+ * Computes an updated system clock offset from a server Date header.
3
+ *
4
+ * When `timeRequestSent` is provided, uses the midpoint formula:
5
+ * elapsed = timeResponseReceived - timeRequestSent
6
+ * midpoint = (timeRequestSent + timeResponseReceived) / 2
7
+ * candidateSkew = serverTime - midpoint
8
+ *
9
+ * When `timeRequestSent` is absent (legacy callers), falls back to:
10
+ * candidateSkew = serverTime - timeResponseReceived
11
+ *
12
+ * The candidate is discarded if:
13
+ * - An Age header is present
14
+ * - elapsed > 15 minutes
15
+ *
16
+ * The candidate is recorded unconditionally when not
17
+ * discarded. The detection threshold (4 min) is only used for retry decisions,
18
+ * not for whether to update the offset.
19
+ *
20
+ * @internal
21
+ * @param clockTime The string value of the Date response header.
22
+ * @param currentSystemClockOffset The current system clock offset in milliseconds.
23
+ * @param timeRequestSent The raw client time (ms) at which the request was sent.
24
+ * @param ageHeader The value of the Age response header, if present.
25
+ */
26
+ export declare const getUpdatedSystemClockOffset: (clockTime: string, currentSystemClockOffset: number, timeRequestSent?: number, ageHeader?: string) => number;
@@ -1,3 +1,4 @@
1
- export { getDateHeader } from "./getDateHeader";
2
- export { getSkewCorrectedDate } from "./getSkewCorrectedDate";
3
- export { getUpdatedSystemClockOffset } from "./getUpdatedSystemClockOffset";
1
+ export { getAgeHeader, getDateHeader } from "./getDateHeader";
2
+ export { getSkewCorrectedDate } from "./getSkewCorrectedDate";
3
+ export { getUpdatedSystemClockOffset } from "./getUpdatedSystemClockOffset";
4
+ export { isClockSkewed } from "./isClockSkewed";
@@ -1 +1,9 @@
1
- export declare const isClockSkewed: (clockTime: number, systemClockOffset: number) => boolean;
1
+ /**
2
+ * @internal
3
+ *
4
+ * Checks if the provided date is within the skew window of 300000ms.
5
+ *
6
+ * @param clockTime - The time to check for skew in milliseconds.
7
+ * @param systemClockOffset - The offset of the system clock in milliseconds.
8
+ */
9
+ export declare const isClockSkewed: (clockTime: number, systemClockOffset: number) => boolean;
@@ -1,5 +1,8 @@
1
- import { ConfigurableSerdeContext, SerdeFunctions } from "@smithy/types";
2
- export declare class SerdeContextConfig implements ConfigurableSerdeContext {
3
- protected serdeContext?: SerdeFunctions;
4
- setSerdeContext(serdeContext: SerdeFunctions): void;
5
- }
1
+ import { ConfigurableSerdeContext, SerdeFunctions } from "@smithy/types";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare class SerdeContextConfig implements ConfigurableSerdeContext {
6
+ protected serdeContext?: SerdeFunctions;
7
+ setSerdeContext(serdeContext: SerdeFunctions): void;
8
+ }
@@ -1,40 +1,74 @@
1
- import { ServiceException as SDKBaseServiceException } from "@smithy/core/client";
2
- import { NormalizedSchema, TypeRegistry } from "@smithy/core/schema";
3
- import {
4
- HttpResponse as IHttpResponse,
5
- MetadataBearer,
6
- ResponseMetadata,
7
- StaticErrorSchema,
8
- } from "@smithy/types";
9
- type ErrorMetadataBearer = MetadataBearer & {
10
- $fault: "client" | "server";
11
- };
12
- export declare class ProtocolLib {
13
- private queryCompat;
14
- private errorRegistry?;
15
- constructor(queryCompat?: boolean);
16
- resolveRestContentType(
17
- defaultContentType: string,
18
- inputSchema: NormalizedSchema,
19
- ): string | undefined;
20
- getErrorSchemaOrThrowBaseException(
21
- errorIdentifier: string,
22
- defaultNamespace: string,
23
- response: IHttpResponse,
24
- dataObject: any,
25
- metadata: ResponseMetadata,
26
- getErrorSchema?: (registry: TypeRegistry, errorName: string) => StaticErrorSchema,
27
- ): Promise<{
28
- errorSchema: StaticErrorSchema;
29
- errorMetadata: ErrorMetadataBearer;
30
- }>;
31
- compose(composite: TypeRegistry, errorIdentifier: string, defaultNamespace: string): void;
32
- decorateServiceException<E extends SDKBaseServiceException>(
33
- exception: E,
34
- additions?: Record<string, any>,
35
- ): E;
36
- setQueryCompatError(output: Record<string, any>, response: IHttpResponse): void;
37
- queryCompatOutput(queryCompatErrorData: any, errorData: any): void;
38
- findQueryCompatibleError(registry: TypeRegistry, errorName: string): StaticErrorSchema;
39
- }
40
- export {};
1
+ import { ServiceException as SDKBaseServiceException } from "@smithy/core/client";
2
+ import { NormalizedSchema, TypeRegistry } from "@smithy/core/schema";
3
+ import { HttpResponse as IHttpResponse, MetadataBearer, ResponseMetadata, StaticErrorSchema } from "@smithy/types";
4
+ /**
5
+ * @internal
6
+ */
7
+ type ErrorMetadataBearer = MetadataBearer & {
8
+ $fault: "client" | "server";
9
+ };
10
+ /**
11
+ * Shared code for Protocols.
12
+ *
13
+ * @internal
14
+ */
15
+ export declare class ProtocolLib {
16
+ private queryCompat;
17
+ private errorRegistry?;
18
+ constructor(queryCompat?: boolean);
19
+ /**
20
+ * This is only for REST protocols.
21
+ *
22
+ * @param defaultContentType - of the protocol.
23
+ * @param inputSchema - schema for which to determine content type.
24
+ *
25
+ * @returns content-type header value or undefined when not applicable.
26
+ */
27
+ resolveRestContentType(defaultContentType: string, inputSchema: NormalizedSchema): string | undefined;
28
+ /**
29
+ * Shared code for finding error schema or throwing an unmodeled base error.
30
+ * @returns error schema and error metadata.
31
+ *
32
+ * @throws ServiceBaseException or generic Error if no error schema could be found.
33
+ */
34
+ getErrorSchemaOrThrowBaseException(errorIdentifier: string, defaultNamespace: string, response: IHttpResponse, dataObject: any, metadata: ResponseMetadata, getErrorSchema?: (registry: TypeRegistry, errorName: string) => StaticErrorSchema): Promise<{
35
+ errorSchema: StaticErrorSchema;
36
+ errorMetadata: ErrorMetadataBearer;
37
+ }>;
38
+ /**
39
+ * This method exists because in older clients, no `errorTypeRegistries` array is provided to the Protocol
40
+ * implementation. This means that the TypeRegistry queried by the error's namespace or the service's defaultNamespace
41
+ * must be composed into the possibly-empty local compositeErrorRegistry.
42
+ *
43
+ *
44
+ * @param composite - TypeRegistry instance local to instances of HttpProtocol. In newer clients, this instance directly
45
+ * receives the error registries exported by the client.
46
+ * @param errorIdentifier - parsed from the response, used to look up the error schema within the registry.
47
+ * @param defaultNamespace - property of the Protocol implementation pointing to a specific service.
48
+ */
49
+ compose(composite: TypeRegistry, errorIdentifier: string, defaultNamespace: string): void;
50
+ /**
51
+ * Assigns additions onto exception if not already present.
52
+ */
53
+ decorateServiceException<E extends SDKBaseServiceException>(exception: E, additions?: Record<string, any>): E;
54
+ /**
55
+ * Reads the x-amzn-query-error header for awsQuery compatibility.
56
+ *
57
+ * @param output - values that will be assigned to an error object.
58
+ * @param response - from which to read awsQueryError headers.
59
+ */
60
+ setQueryCompatError(output: Record<string, any>, response: IHttpResponse): void;
61
+ /**
62
+ * Assigns Error, Type, Code from the awsQuery error object to the output error object.
63
+ * @param queryCompatErrorData - query compat error object.
64
+ * @param errorData - canonical error object returned to the caller.
65
+ */
66
+ queryCompatOutput(queryCompatErrorData: any, errorData: any): void;
67
+ /**
68
+ * Finds the canonical modeled error using the awsQueryError alias.
69
+ * @param registry - service error registry.
70
+ * @param errorName - awsQueryError name or regular qualified shapeId.
71
+ */
72
+ findQueryCompatibleError(registry: TypeRegistry, errorName: string): StaticErrorSchema;
73
+ }
74
+ export {};
@@ -1,9 +1,24 @@
1
- export declare class UnionSerde {
2
- private from;
3
- private to;
4
- private keys;
5
- constructor(from: any, to: any);
6
- mark(key: string): void;
7
- hasUnknown(): boolean;
8
- writeUnknown(): void;
9
- }
1
+ /**
2
+ * Helper for identifying unknown union members during deserialization.
3
+ */
4
+ export declare class UnionSerde {
5
+ private from;
6
+ private to;
7
+ private keys;
8
+ constructor(from: any, to: any);
9
+ /**
10
+ * Marks the key as being a known member.
11
+ * @param key - to mark.
12
+ */
13
+ mark(key: string): void;
14
+ /**
15
+ * @returns whether only one key remains unmarked and nothing has been written,
16
+ * implying the object is a union.
17
+ */
18
+ hasUnknown(): boolean;
19
+ /**
20
+ * Writes the unknown key-value pair, if present, into the $unknown property
21
+ * of the union object.
22
+ */
23
+ writeUnknown(): void;
24
+ }
@@ -1,36 +1,25 @@
1
- import { SmithyRpcV2CborProtocol } from "@smithy/core/cbor";
2
- import { TypeRegistry } from "@smithy/core/schema";
3
- import {
4
- EndpointBearer,
5
- HandlerExecutionContext,
6
- HttpRequest,
7
- HttpResponse,
8
- OperationSchema,
9
- ResponseMetadata,
10
- SerdeFunctions,
11
- } from "@smithy/types";
12
- export declare class AwsSmithyRpcV2CborProtocol extends SmithyRpcV2CborProtocol {
13
- private readonly awsQueryCompatible;
14
- private readonly mixin;
15
- constructor({
16
- defaultNamespace,
17
- errorTypeRegistries,
18
- awsQueryCompatible,
19
- }: {
20
- defaultNamespace: string;
21
- errorTypeRegistries?: TypeRegistry[];
22
- awsQueryCompatible?: boolean;
23
- });
24
- serializeRequest<Input extends object>(
25
- operationSchema: OperationSchema,
26
- input: Input,
27
- context: HandlerExecutionContext & SerdeFunctions & EndpointBearer,
28
- ): Promise<HttpRequest>;
29
- protected handleError(
30
- operationSchema: OperationSchema,
31
- context: HandlerExecutionContext & SerdeFunctions,
32
- response: HttpResponse,
33
- dataObject: any,
34
- metadata: ResponseMetadata,
35
- ): Promise<never>;
36
- }
1
+ import { SmithyRpcV2CborProtocol } from "@smithy/core/cbor";
2
+ import { TypeRegistry } from "@smithy/core/schema";
3
+ import { EndpointBearer, HandlerExecutionContext, HttpRequest, HttpResponse, OperationSchema, ResponseMetadata, SerdeFunctions } from "@smithy/types";
4
+ /**
5
+ * Extends the Smithy implementation to add AwsQueryCompatibility support.
6
+ *
7
+ * @public
8
+ */
9
+ export declare class AwsSmithyRpcV2CborProtocol extends SmithyRpcV2CborProtocol {
10
+ private readonly awsQueryCompatible;
11
+ private readonly mixin;
12
+ constructor({ defaultNamespace, errorTypeRegistries, awsQueryCompatible, }: {
13
+ defaultNamespace: string;
14
+ errorTypeRegistries?: TypeRegistry[];
15
+ awsQueryCompatible?: boolean;
16
+ });
17
+ /**
18
+ * @override
19
+ */
20
+ serializeRequest<Input extends object>(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise<HttpRequest>;
21
+ /**
22
+ * @override
23
+ */
24
+ protected handleError(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: HttpResponse, dataObject: any, metadata: ResponseMetadata): Promise<never>;
25
+ }
@@ -1,3 +1,18 @@
1
- export declare const _toStr: (val: unknown) => string | undefined;
2
- export declare const _toBool: (val: unknown) => boolean | undefined;
3
- export declare const _toNum: (val: unknown) => number | undefined;
1
+ /**
2
+ * @internal
3
+ *
4
+ * Used for awsQueryCompatibility trait.
5
+ */
6
+ export declare const _toStr: (val: unknown) => string | undefined;
7
+ /**
8
+ * @internal
9
+ *
10
+ * Used for awsQueryCompatibility trait.
11
+ */
12
+ export declare const _toBool: (val: unknown) => boolean | undefined;
13
+ /**
14
+ * @internal
15
+ *
16
+ * Used for awsQueryCompatibility trait.
17
+ */
18
+ export declare const _toNum: (val: unknown) => number | undefined;
@@ -1,5 +1,2 @@
1
- import { SerdeFunctions } from "@smithy/types";
2
- export declare const collectBodyString: (
3
- streamBody: any,
4
- context: SerdeFunctions,
5
- ) => Promise<string>;
1
+ import { SerdeFunctions } from "@smithy/types";
2
+ export declare const collectBodyString: (streamBody: any, context: SerdeFunctions) => Promise<string>;