@cdk8s/awscdk-resolver 0.0.642 → 0.0.644

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 (200) 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 +2 -1
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/enums.js +1 -0
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeChangeSetCommand.d.ts +1 -1
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/enums.d.ts +1 -0
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +7 -3
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/enums.d.ts +1 -0
  9. package/node_modules/@aws-sdk/client-cloudformation/package.json +6 -6
  10. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +856 -57
  11. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +8 -5
  12. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -1
  13. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -1
  14. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonSettings.js +1 -0
  15. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonCodec.js → codec-v1/JsonCodec.js} +1 -1
  16. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +1 -0
  17. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonShapeDeserializer.js → codec-v1/JsonShapeDeserializer.js} +6 -6
  18. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonShapeSerializer.js → codec-v1/JsonShapeSerializer.js} +3 -3
  19. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js +103 -0
  20. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +20 -0
  21. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{experimental/BufferJsonShapeDeserializer.js → codec-v2/JsonShapeDeserializer2.js} +38 -18
  22. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{experimental/ByteJsonShapeSerializer.js → codec-v2/JsonShapeSerializer2.js} +66 -60
  23. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +9 -6
  24. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -1
  25. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -1
  26. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +1 -1
  27. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +1 -1
  28. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonSettings.d.ts +7 -0
  29. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonCodec.d.ts → codec-v1/JsonCodec.d.ts} +4 -8
  30. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonSettings.d.ts +7 -0
  31. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonShapeDeserializer.d.ts → codec-v1/JsonShapeDeserializer.d.ts} +3 -2
  32. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonShapeSerializer.d.ts → codec-v1/JsonShapeSerializer.d.ts} +3 -2
  33. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +51 -0
  34. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +13 -0
  35. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{experimental/BufferJsonShapeDeserializer.d.ts → codec-v2/JsonShapeDeserializer2.d.ts} +4 -3
  36. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{experimental/ByteJsonShapeSerializer.d.ts → codec-v2/JsonShapeSerializer2.d.ts} +19 -16
  37. package/node_modules/@aws-sdk/core/dist-types/ts3.4/api-extractor-type-index.d.ts +4 -7
  38. package/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +61 -21
  39. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +13 -27
  40. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConstants.d.ts +4 -16
  41. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +5 -14
  42. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/index.d.ts +16 -5
  43. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/emitWarningIfUnsupportedVersion.d.ts +4 -11
  44. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.browser.d.ts +107 -47
  45. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +112 -39
  46. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.native.d.ts +107 -48
  47. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/longPollMiddleware.d.ts +13 -14
  48. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-host-header/hostHeaderMiddleware.d.ts +25 -35
  49. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-logger/loggerMiddleware.d.ts +14 -4
  50. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/configuration.d.ts +2 -6
  51. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.browser.d.ts +2 -5
  52. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.d.ts +2 -5
  53. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.browser.d.ts +2 -6
  54. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.d.ts +2 -10
  55. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.native.d.ts +2 -6
  56. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/check-features.d.ts +16 -20
  57. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/configurations.d.ts +21 -44
  58. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/constants.d.ts +7 -7
  59. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/encode-features.d.ts +2 -5
  60. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/user-agent-middleware.d.ts +18 -18
  61. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/awsRegionConfig.d.ts +8 -11
  62. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/extensions.d.ts +14 -16
  63. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.browser.d.ts +1 -4
  64. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.d.ts +7 -14
  65. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.native.d.ts +1 -4
  66. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setCredentialFeature.d.ts +6 -7
  67. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setFeature.d.ts +6 -12
  68. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setTokenFeature.d.ts +6 -7
  69. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/aws.d.ts +2 -2
  70. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/isVirtualHostableS3Bucket.d.ts +4 -5
  71. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/parseArn.d.ts +2 -7
  72. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partition.d.ts +28 -38
  73. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partitions.d.ts +647 -638
  74. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/isIpAddress.d.ts +1 -1
  75. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/resolveDefaultAwsRegionalEndpointsConfig.d.ts +29 -56
  76. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/resolveEndpoint.d.ts +1 -1
  77. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointError.d.ts +1 -1
  78. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointRuleObject.d.ts +6 -1
  79. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/ErrorRuleObject.d.ts +1 -1
  80. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/RuleSetObject.d.ts +1 -1
  81. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/TreeRuleObject.d.ts +1 -1
  82. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/shared.d.ts +12 -1
  83. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/configurations.d.ts +4 -7
  84. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/createUserAgentStringParsingProvider.d.ts +7 -14
  85. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.browser.d.ts +7 -2
  86. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +18 -27
  87. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +13 -18
  88. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/crt-availability.d.ts +3 -8
  89. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +17 -28
  90. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/getRuntimeUserAgentPair.d.ts +2 -6
  91. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/is-crt-available.d.ts +2 -5
  92. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/nodeAppIdConfigOptions.d.ts +4 -13
  93. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +9 -10
  94. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +39 -44
  95. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +2 -5
  96. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +1 -6
  97. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +1 -7
  98. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +4 -13
  99. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +23 -7
  100. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +13 -38
  101. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +57 -133
  102. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.browser.d.ts +32 -11
  103. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +32 -9
  104. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.d.ts +1 -8
  105. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.d.ts +1 -6
  106. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +2 -8
  107. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.d.ts +1 -8
  108. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +6 -26
  109. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/index.d.ts +4 -4
  110. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/isClockSkewed.d.ts +1 -9
  111. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts +5 -8
  112. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +40 -74
  113. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/UnionSerde.d.ts +9 -24
  114. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +36 -25
  115. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/coercing-serializers.d.ts +3 -18
  116. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/common.d.ts +5 -2
  117. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +30 -22
  118. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +21 -22
  119. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +21 -22
  120. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +49 -29
  121. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +49 -36
  122. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +4 -0
  123. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/awsExpectUnion.d.ts +1 -7
  124. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonCodec.d.ts +11 -0
  125. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonSettings.d.ts +4 -0
  126. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +13 -0
  127. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +18 -0
  128. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +27 -0
  129. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +9 -0
  130. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +15 -0
  131. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +39 -0
  132. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -1
  133. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +7 -21
  134. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +7 -15
  135. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +2 -11
  136. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +14 -22
  137. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +18 -27
  138. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +57 -49
  139. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QuerySerializerSettings.d.ts +7 -13
  140. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts +21 -16
  141. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/writeKey.d.ts +1 -4
  142. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +47 -31
  143. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlCodec.d.ts +17 -14
  144. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeDeserializer.d.ts +15 -20
  145. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeSerializer.d.ts +21 -21
  146. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/parseXmlBody.d.ts +4 -13
  147. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/simpleFormatXml.d.ts +1 -6
  148. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/index.d.ts +3 -3
  149. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/util-arn-parser/arn.d.ts +14 -32
  150. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/util-format-url/format-url.d.ts +4 -2
  151. package/node_modules/@aws-sdk/core/package.json +3 -3
  152. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  153. package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
  154. package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
  155. package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
  156. package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
  157. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  158. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  159. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
  160. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  161. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  162. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  163. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  164. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  165. package/node_modules/@aws-sdk/nested-clients/package.json +6 -6
  166. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  167. package/node_modules/@aws-sdk/token-providers/package.json +4 -4
  168. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +1561 -337
  169. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +4 -205
  170. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +1 -1
  171. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +113 -0
  172. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +103 -0
  173. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +621 -0
  174. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +602 -0
  175. package/node_modules/@smithy/core/dist-es/submodules/cbor/index.js +5 -1
  176. package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +5 -27
  177. package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -2
  178. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v1/CborShapeDeserializer.d.ts +13 -0
  179. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v1/CborShapeSerializer.d.ts +15 -0
  180. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/CborShapeDeserializer2.d.ts +18 -0
  181. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/CborShapeSerializer2.d.ts +35 -0
  182. package/node_modules/@smithy/core/dist-types/submodules/cbor/index.d.ts +5 -1
  183. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +5 -27
  184. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -2
  185. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v1/CborShapeDeserializer.d.ts +13 -0
  186. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v1/CborShapeSerializer.d.ts +15 -0
  187. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v2/CborShapeDeserializer2.d.ts +18 -0
  188. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v2/CborShapeSerializer2.d.ts +35 -0
  189. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/index.d.ts +5 -1
  190. package/node_modules/@smithy/core/package.json +2 -1
  191. package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
  192. package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
  193. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  194. package/node_modules/@smithy/signature-v4/package.json +2 -2
  195. package/package.json +6 -9
  196. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonCodec.d.ts +0 -19
  197. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeDeserializer.d.ts +0 -13
  198. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +0 -28
  199. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.d.ts +0 -29
  200. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +0 -57
@@ -0,0 +1,18 @@
1
+ import { SerdeContext } from "@smithy/core/protocols";
2
+ import type { Schema, ShapeDeserializer } from "@smithy/types";
3
+ /**
4
+ * Single-pass CBOR deserializer that reads bytes and applies Smithy schema
5
+ * transformations in one traversal using module-level state.
6
+ *
7
+ * @internal
8
+ */
9
+ export declare class CborShapeDeserializer2 extends SerdeContext implements ShapeDeserializer<Uint8Array> {
10
+ read(schema: Schema, bytes: Uint8Array): any;
11
+ /**
12
+ * Deserialize a pre-decoded JS object per schema.
13
+ * Used by protocol error handling which passes pre-decoded objects.
14
+ *
15
+ * @internal
16
+ */
17
+ readValue(_schema: Schema, value: any): any;
18
+ }
@@ -0,0 +1,35 @@
1
+ import { SerdeContext } from "@smithy/core/protocols";
2
+ import { NormalizedSchema } from "@smithy/core/schema";
3
+ import type { Schema, ShapeSerializer } from "@smithy/types";
4
+ /**
5
+ * Single-pass CBOR serializer that walks the Smithy schema and writes CBOR bytes
6
+ * directly to a module-level buffer in one traversal. Eliminates the intermediate
7
+ * JS object tree that the multi-pass CborShapeSerializer builds.
8
+ *
9
+ * @internal
10
+ */
11
+ export declare class CborShapeSerializer2 extends SerdeContext implements ShapeSerializer<Uint8Array> {
12
+ write(schema: Schema, value: unknown): void;
13
+ flush(): Uint8Array;
14
+ }
15
+ /**
16
+ * Advance the encoding epoch. Call between serialization batches
17
+ * to allow stale cache entries to be evicted.
18
+ *
19
+ * @internal
20
+ */
21
+ export declare function advanceSinglePassEncodingEpoch(): void;
22
+ /**
23
+ * Cached CBOR struct iteration data: parallel arrays for direct indexed access.
24
+ */
25
+ export interface CborStructCache {
26
+ memberNames: string[];
27
+ memberSchemas: NormalizedSchema[];
28
+ encodedKeys: Uint8Array[];
29
+ }
30
+ /**
31
+ * Builds or retrieves the CBOR-specific struct cache for a given NormalizedSchema.
32
+ * On first call, iterates structIterator() to populate NormalizedSchema's own cache,
33
+ * then builds pre-encoded CBOR key bytes for each member.
34
+ */
35
+ export declare function loadCborStructIterator(ns: NormalizedSchema): CborStructCache;
@@ -2,4 +2,8 @@ export { cbor } from "./cbor";
2
2
  export { tag, tagSymbol } from "./cbor-types";
3
3
  export { buildHttpRpcRequest, checkCborResponse, dateToTag, loadSmithyRpcV2CborErrorCode, parseCborBody, parseCborErrorBody, } from "./parseCborBody";
4
4
  export { SmithyRpcV2CborProtocol } from "./SmithyRpcV2CborProtocol";
5
- export { CborCodec, CborShapeDeserializer, CborShapeSerializer } from "./CborCodec";
5
+ export { CborCodec } from "./CborCodec";
6
+ export { CborShapeSerializer } from "./codec-v1/CborShapeSerializer";
7
+ export { CborShapeDeserializer } from "./codec-v1/CborShapeDeserializer";
8
+ export { CborShapeSerializer2 } from "./codec-v2/CborShapeSerializer2";
9
+ export { CborShapeDeserializer2 } from "./codec-v2/CborShapeDeserializer2";
@@ -1,33 +1,11 @@
1
1
  import { SerdeContext } from "@smithy/core/protocols";
2
- import { Codec, Schema, ShapeDeserializer, ShapeSerializer } from "@smithy/types";
2
+ import { Codec } from "@smithy/types";
3
+ import { CborShapeSerializer2 } from "./codec-v2/CborShapeSerializer2";
4
+ import { CborShapeDeserializer2 } from "./codec-v2/CborShapeDeserializer2";
3
5
  /**
4
6
  * @public
5
7
  */
6
8
  export declare class CborCodec extends SerdeContext implements Codec<Uint8Array, Uint8Array> {
7
- createSerializer(): CborShapeSerializer;
8
- createDeserializer(): CborShapeDeserializer;
9
- }
10
- /**
11
- * @public
12
- */
13
- export declare class CborShapeSerializer extends SerdeContext implements ShapeSerializer {
14
- private value;
15
- write(schema: Schema, value: unknown): void;
16
- /**
17
- * Recursive serializer transform that copies and prepares the user input object
18
- * for CBOR serialization.
19
- */
20
- serialize(schema: Schema, source: unknown): any;
21
- flush(): Uint8Array;
22
- }
23
- /**
24
- * @public
25
- */
26
- export declare class CborShapeDeserializer extends SerdeContext implements ShapeDeserializer {
27
- read(schema: Schema, bytes: Uint8Array): any;
28
- /**
29
- * Public because it's called by the protocol implementation to deserialize errors.
30
- * @internal
31
- */
32
- readValue(_schema: Schema, value: any): any;
9
+ createSerializer(): CborShapeSerializer2;
10
+ createDeserializer(): CborShapeDeserializer2;
33
11
  }
@@ -13,8 +13,8 @@ export declare class SmithyRpcV2CborProtocol extends RpcProtocol {
13
13
  */
14
14
  protected compositeErrorRegistry: TypeRegistry;
15
15
  private codec;
16
- protected serializer: import("./CborCodec").CborShapeSerializer;
17
- protected deserializer: import("./CborCodec").CborShapeDeserializer;
16
+ protected serializer: import(".").CborShapeSerializer2;
17
+ protected deserializer: import(".").CborShapeDeserializer2;
18
18
  constructor({ defaultNamespace, errorTypeRegistries, }: {
19
19
  defaultNamespace: string;
20
20
  errorTypeRegistries?: TypeRegistry[];
@@ -0,0 +1,13 @@
1
+ import { SerdeContext } from "@smithy/core/protocols";
2
+ import { Schema, ShapeDeserializer } from "@smithy/types";
3
+ /**
4
+ * @public
5
+ */
6
+ export declare class CborShapeDeserializer extends SerdeContext implements ShapeDeserializer {
7
+ read(schema: Schema, bytes: Uint8Array): any;
8
+ /**
9
+ * Public because it's called by the protocol implementation to deserialize errors.
10
+ * @internal
11
+ */
12
+ readValue(_schema: Schema, value: any): any;
13
+ }
@@ -0,0 +1,15 @@
1
+ import { SerdeContext } from "@smithy/core/protocols";
2
+ import { Schema, ShapeSerializer } from "@smithy/types";
3
+ /**
4
+ * @public
5
+ */
6
+ export declare class CborShapeSerializer extends SerdeContext implements ShapeSerializer {
7
+ private value;
8
+ write(schema: Schema, value: unknown): void;
9
+ /**
10
+ * Recursive serializer transform that copies and prepares the user input object
11
+ * for CBOR serialization.
12
+ */
13
+ serialize(schema: Schema, source: unknown): any;
14
+ flush(): Uint8Array;
15
+ }
@@ -0,0 +1,18 @@
1
+ import { SerdeContext } from "@smithy/core/protocols";
2
+ import { Schema, ShapeDeserializer } from "@smithy/types";
3
+ /**
4
+ * Single-pass CBOR deserializer that reads bytes and applies Smithy schema
5
+ * transformations in one traversal using module-level state.
6
+ *
7
+ * @internal
8
+ */
9
+ export declare class CborShapeDeserializer2 extends SerdeContext implements ShapeDeserializer<Uint8Array> {
10
+ read(schema: Schema, bytes: Uint8Array): any;
11
+ /**
12
+ * Deserialize a pre-decoded JS object per schema.
13
+ * Used by protocol error handling which passes pre-decoded objects.
14
+ *
15
+ * @internal
16
+ */
17
+ readValue(_schema: Schema, value: any): any;
18
+ }
@@ -0,0 +1,35 @@
1
+ import { SerdeContext } from "@smithy/core/protocols";
2
+ import { NormalizedSchema } from "@smithy/core/schema";
3
+ import { Schema, ShapeSerializer } from "@smithy/types";
4
+ /**
5
+ * Single-pass CBOR serializer that walks the Smithy schema and writes CBOR bytes
6
+ * directly to a module-level buffer in one traversal. Eliminates the intermediate
7
+ * JS object tree that the multi-pass CborShapeSerializer builds.
8
+ *
9
+ * @internal
10
+ */
11
+ export declare class CborShapeSerializer2 extends SerdeContext implements ShapeSerializer<Uint8Array> {
12
+ write(schema: Schema, value: unknown): void;
13
+ flush(): Uint8Array;
14
+ }
15
+ /**
16
+ * Advance the encoding epoch. Call between serialization batches
17
+ * to allow stale cache entries to be evicted.
18
+ *
19
+ * @internal
20
+ */
21
+ export declare function advanceSinglePassEncodingEpoch(): void;
22
+ /**
23
+ * Cached CBOR struct iteration data: parallel arrays for direct indexed access.
24
+ */
25
+ export interface CborStructCache {
26
+ memberNames: string[];
27
+ memberSchemas: NormalizedSchema[];
28
+ encodedKeys: Uint8Array[];
29
+ }
30
+ /**
31
+ * Builds or retrieves the CBOR-specific struct cache for a given NormalizedSchema.
32
+ * On first call, iterates structIterator() to populate NormalizedSchema's own cache,
33
+ * then builds pre-encoded CBOR key bytes for each member.
34
+ */
35
+ export declare function loadCborStructIterator(ns: NormalizedSchema): CborStructCache;
@@ -2,4 +2,8 @@ export { cbor } from "./cbor";
2
2
  export { tag, tagSymbol } from "./cbor-types";
3
3
  export { buildHttpRpcRequest, checkCborResponse, dateToTag, loadSmithyRpcV2CborErrorCode, parseCborBody, parseCborErrorBody, } from "./parseCborBody";
4
4
  export { SmithyRpcV2CborProtocol } from "./SmithyRpcV2CborProtocol";
5
- export { CborCodec, CborShapeDeserializer, CborShapeSerializer } from "./CborCodec";
5
+ export { CborCodec } from "./CborCodec";
6
+ export { CborShapeSerializer } from "./codec-v1/CborShapeSerializer";
7
+ export { CborShapeDeserializer } from "./codec-v1/CborShapeDeserializer";
8
+ export { CborShapeSerializer2 } from "./codec-v2/CborShapeSerializer2";
9
+ export { CborShapeDeserializer2 } from "./codec-v2/CborShapeDeserializer2";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "3.30.0",
3
+ "version": "3.31.1",
4
4
  "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/core",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -220,6 +220,7 @@
220
220
  "scripts": {
221
221
  "benchmark:cbor": "node ./scripts/cbor-perf.mjs",
222
222
  "benchmark:checksum": "node ./scripts/checksum-perf.mjs",
223
+ "benchmark:schema:cbor": "node ./scripts/cbor-shape-perf.mjs",
223
224
  "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
224
225
  "build:es:cjs": "node ../../scripts/compilation/es_cjs.js",
225
226
  "build:types": "premove dist-types && yarn g:tsc -p tsconfig.types.json",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/credential-provider-imds",
3
- "version": "4.4.14",
3
+ "version": "4.4.16",
4
4
  "description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
5
5
  "keywords": [
6
6
  "aws",
@@ -45,7 +45,7 @@
45
45
  "test:watch": "yarn g:vitest watch"
46
46
  },
47
47
  "dependencies": {
48
- "@smithy/core": "^3.30.0",
48
+ "@smithy/core": "^3.31.1",
49
49
  "@smithy/types": "^4.16.1",
50
50
  "tslib": "^2.6.2"
51
51
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/fetch-http-handler",
3
- "version": "5.6.11",
3
+ "version": "5.6.13",
4
4
  "description": "Provides a way to make requests",
5
5
  "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/fetch-http-handler",
6
6
  "license": "Apache-2.0",
@@ -44,7 +44,7 @@
44
44
  "test:browser:watch": "yarn g:vitest watch -c vitest.config.browser.mts"
45
45
  },
46
46
  "dependencies": {
47
- "@smithy/core": "^3.30.0",
47
+ "@smithy/core": "^3.31.1",
48
48
  "@smithy/types": "^4.16.1",
49
49
  "tslib": "^2.6.2"
50
50
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/node-http-handler",
3
- "version": "4.9.11",
3
+ "version": "4.9.13",
4
4
  "description": "Provides a way to make requests",
5
5
  "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/node-http-handler",
6
6
  "license": "Apache-2.0",
@@ -43,7 +43,7 @@
43
43
  "test:watch": "yarn g:vitest watch"
44
44
  },
45
45
  "dependencies": {
46
- "@smithy/core": "^3.30.0",
46
+ "@smithy/core": "^3.31.1",
47
47
  "@smithy/types": "^4.16.1",
48
48
  "tslib": "^2.6.2"
49
49
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/signature-v4",
3
- "version": "5.6.10",
3
+ "version": "5.6.12",
4
4
  "description": "A standalone implementation of the AWS Signature V4 request signing algorithm",
5
5
  "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/signature-v4",
6
6
  "license": "Apache-2.0",
@@ -42,7 +42,7 @@
42
42
  "test:watch": "yarn g:vitest watch"
43
43
  },
44
44
  "dependencies": {
45
- "@smithy/core": "^3.30.0",
45
+ "@smithy/core": "^3.31.1",
46
46
  "@smithy/types": "^4.16.1",
47
47
  "tslib": "^2.6.2"
48
48
  },
package/package.json CHANGED
@@ -43,17 +43,17 @@
43
43
  "organization": false
44
44
  },
45
45
  "devDependencies": {
46
- "@cdk8s/projen-common": "0.1.10",
46
+ "@cdk8s/projen-common": "0.1.14",
47
47
  "@stylistic/eslint-plugin": "^2",
48
48
  "@types/fs-extra": "^11.0.4",
49
49
  "@types/jest": "^27",
50
50
  "@types/node": "^18",
51
51
  "@typescript-eslint/eslint-plugin": "^8",
52
52
  "@typescript-eslint/parser": "^8",
53
- "aws-cdk": "^2.1133.0",
53
+ "aws-cdk": "^2.1134.0",
54
54
  "aws-cdk-lib": "2.195.0",
55
55
  "cdk8s": "2.68.91",
56
- "cdk8s-cli": "^2.207.41",
56
+ "cdk8s-cli": "^2.207.44",
57
57
  "commit-and-tag-version": "^12",
58
58
  "constructs": "10.3.0",
59
59
  "eslint": "^9",
@@ -67,7 +67,7 @@
67
67
  "jsii-docgen": "^10.5.0",
68
68
  "jsii-pacmak": "^1.139.0",
69
69
  "jsii-rosetta": "^5",
70
- "projen": "^0.101.21",
70
+ "projen": "^0.101.23",
71
71
  "ts-jest": "^27",
72
72
  "ts-node": "^10.9.2",
73
73
  "typescript": "^5.9.3"
@@ -78,14 +78,11 @@
78
78
  "constructs": "^10.3.0"
79
79
  },
80
80
  "dependencies": {
81
- "@aws-sdk/client-cloudformation": "^3.1095.0"
81
+ "@aws-sdk/client-cloudformation": "^3.1101.0"
82
82
  },
83
83
  "bundledDependencies": [
84
84
  "@aws-sdk/client-cloudformation"
85
85
  ],
86
- "resolutions": {
87
- "**/downlevel-dts/**/typescript": "~5.2.2"
88
- },
89
86
  "engines": {
90
87
  "node": ">= 16.20.0"
91
88
  },
@@ -95,7 +92,7 @@
95
92
  "publishConfig": {
96
93
  "access": "public"
97
94
  },
98
- "version": "0.0.642",
95
+ "version": "0.0.644",
99
96
  "jest": {
100
97
  "coverageProvider": "v8",
101
98
  "testMatch": [
@@ -1,19 +0,0 @@
1
- import { Codec, CodecSettings } from "@smithy/types";
2
- import { SerdeContextConfig } from "../ConfigurableSerdeContext";
3
- import { JsonShapeDeserializer } from "./JsonShapeDeserializer";
4
- import { JsonShapeSerializer } from "./JsonShapeSerializer";
5
- /**
6
- * @public
7
- */
8
- export type JsonSettings = CodecSettings & {
9
- jsonName: boolean;
10
- };
11
- /**
12
- * @public
13
- */
14
- export declare class JsonCodec extends SerdeContextConfig implements Codec<string, string> {
15
- readonly settings: JsonSettings;
16
- constructor(settings: JsonSettings);
17
- createSerializer(): JsonShapeSerializer;
18
- createDeserializer(): JsonShapeDeserializer;
19
- }
@@ -1,13 +0,0 @@
1
- import { DocumentType, Schema, ShapeDeserializer } from "@smithy/types";
2
- import { SerdeContextConfig } from "../ConfigurableSerdeContext";
3
- import { JsonSettings } from "./JsonCodec";
4
- /**
5
- * @public
6
- */
7
- export declare class JsonShapeDeserializer extends SerdeContextConfig implements ShapeDeserializer<string> {
8
- readonly settings: JsonSettings;
9
- constructor(settings: JsonSettings);
10
- read(schema: Schema, data: string | Uint8Array | unknown): Promise<any>;
11
- readObject(schema: Schema, data: DocumentType): any;
12
- protected _read(schema: Schema, value: unknown): any;
13
- }
@@ -1,28 +0,0 @@
1
- import { NormalizedSchema } from "@smithy/core/schema";
2
- import { Schema, ShapeSerializer } from "@smithy/types";
3
- import { SerdeContextConfig } from "../ConfigurableSerdeContext";
4
- import { JsonSettings } from "./JsonCodec";
5
- /**
6
- * @public
7
- */
8
- export declare class JsonShapeSerializer extends SerdeContextConfig implements ShapeSerializer<string> {
9
- readonly settings: JsonSettings;
10
- /**
11
- * Write buffer. Reused per value serialization pass.
12
- * In the initial implementation, this is not an incremental buffer.
13
- */
14
- protected buffer: any;
15
- protected useReplacer: boolean;
16
- protected rootSchema: NormalizedSchema | undefined;
17
- constructor(settings: JsonSettings);
18
- write(schema: Schema, value: unknown): void;
19
- flush(): string;
20
- /**
21
- * @internal
22
- */
23
- writeDiscriminatedDocument(schema: Schema, value: unknown): void;
24
- /**
25
- * Order if-statements by likelihood.
26
- */
27
- protected _write(schema: Schema, value: unknown, container?: NormalizedSchema): any;
28
- }
@@ -1,29 +0,0 @@
1
- import { DocumentType, Schema, ShapeDeserializer } from "@smithy/types";
2
- import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
3
- import { JsonSettings } from "../JsonCodec";
4
- /**
5
- * Performance-optimized JSON deserializer.
6
- *
7
- * Skips UTF-8 decoding when the runtime supports JSON.parse(Buffer) (Node 22+).
8
- *
9
- * After JSON.parse, lists, maps, and document containers are mutated in place
10
- * (element values are overwritten with their deserialized form) rather than
11
- * copied into new arrays/objects. Structs allocate a fresh object because
12
- * jsonName traits require key renaming, and building the output object
13
- * incrementally lets V8 assign a stable hidden class rather than
14
- * deoptimizing from repeated property deletion/addition on an existing shape.
15
- *
16
- * In-place mutation is safe here because the parsed tree is locally owned
17
- * after JSON.parse with no external references, so rewriting values avoids
18
- * redundant allocation and GC pressure.
19
- *
20
- * @internal
21
- */
22
- export declare class BufferJsonShapeDeserializer extends SerdeContextConfig implements ShapeDeserializer<string> {
23
- readonly settings: JsonSettings;
24
- constructor(settings: JsonSettings);
25
- read(schema: Schema, data: string | Uint8Array | unknown): Promise<any>;
26
- readObject(schema: Schema, data: DocumentType): any;
27
- protected _read(schema: Schema, value: unknown): any;
28
- private _readStruct;
29
- }
@@ -1,57 +0,0 @@
1
- import { Schema, ShapeSerializer } from "@smithy/types";
2
- import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
3
- import { JsonSettings } from "../JsonCodec";
4
- /**
5
- * Experimental single-pass JSON serializer that writes directly to a Uint8Array buffer.
6
- * Fewer intermediate states as when compared to the initial multi-pass implementation.
7
- *
8
- * @internal
9
- */
10
- export declare class ByteJsonShapeSerializer extends SerdeContextConfig implements ShapeSerializer<Uint8Array> {
11
- readonly settings: JsonSettings;
12
- private json;
13
- private i;
14
- private rootSchema;
15
- constructor(settings: JsonSettings);
16
- write(schema: Schema, value: unknown): void;
17
- /**
18
- * @internal
19
- */
20
- writeDiscriminatedDocument(schema: Schema, value: unknown): void;
21
- /**
22
- * Returns the serialized JSON as a Uint8Array (UTF-8 bytes).
23
- * This is the primary output — pass directly to request.body.
24
- */
25
- flush(): Uint8Array;
26
- private ensure;
27
- /**
28
- * Write a raw ASCII string (no JSON escaping). Used for pre-validated content
29
- * like numeric literals and pre-encoded base64.
30
- */
31
- private writeAscii;
32
- /**
33
- * Write a quoted ASCII string with no escape checking.
34
- * Used for struct member keys (jsonName or model names) which are
35
- * guaranteed to be safe ASCII identifiers. No control chars, quotes,
36
- * backslashes, or non-ASCII.
37
- * Ensures extra room for surrounding structural chars (comma, colon).
38
- */
39
- private writeAsciiQuoted;
40
- /**
41
- * Write a JSON-escaped string including the surrounding quotes.
42
- * Fast-path for ASCII, falls back to TextEncoder for multi-byte.
43
- */
44
- private writeJsonString;
45
- private writeUnicodeEscape;
46
- private static readonly B64;
47
- /**
48
- * Write a Uint8Array as a quoted base64 string directly into the buffer.
49
- * No intermediate JS string, no escape checking (base64 alphabet is safe ASCII).
50
- */
51
- private writeBase64;
52
- private writeValue;
53
- private writeStruct;
54
- private writeList;
55
- private writeMap;
56
- private writeTimestamp;
57
- }