@cdk8s/awscdk-resolver 0.0.297 → 0.0.299

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 (198) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/package.json +5 -5
  4. package/node_modules/@aws-sdk/client-sso/package.json +4 -4
  5. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +2 -0
  6. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js +1 -0
  7. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/index.d.ts +1 -0
  8. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +1 -0
  9. package/node_modules/@aws-sdk/core/package.json +1 -1
  10. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  11. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  12. package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
  13. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  14. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  15. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  16. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  17. package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  18. package/node_modules/@aws-sdk/nested-clients/package.json +4 -4
  19. package/node_modules/@aws-sdk/token-providers/README.md +9 -0
  20. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +18 -1
  21. package/node_modules/@aws-sdk/token-providers/dist-es/fromEnvSigningName.js +13 -0
  22. package/node_modules/@aws-sdk/token-providers/dist-es/index.js +1 -0
  23. package/node_modules/@aws-sdk/token-providers/dist-types/fromEnvSigningName.d.ts +18 -0
  24. package/node_modules/@aws-sdk/token-providers/dist-types/index.d.ts +1 -0
  25. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromEnvSigningName.d.ts +11 -0
  26. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/index.d.ts +1 -0
  27. package/node_modules/@aws-sdk/token-providers/package.json +3 -2
  28. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  29. package/node_modules/@smithy/abort-controller/package.json +2 -2
  30. package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveCustomEndpointsConfig.d.ts +5 -0
  31. package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveEndpointsConfig.d.ts +3 -0
  32. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariant.d.ts +3 -2
  33. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariantTag.d.ts +4 -1
  34. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/PartitionHash.d.ts +3 -2
  35. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/RegionHash.d.ts +3 -2
  36. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getHostnameFromVariants.d.ts +2 -0
  37. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getRegionInfo.d.ts +2 -0
  38. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedHostname.d.ts +2 -0
  39. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedPartition.d.ts +2 -0
  40. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedSigningRegion.d.ts +2 -0
  41. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveCustomEndpointsConfig.d.ts +5 -0
  42. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveEndpointsConfig.d.ts +3 -0
  43. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/EndpointVariant.d.ts +3 -2
  44. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/EndpointVariantTag.d.ts +4 -1
  45. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/PartitionHash.d.ts +3 -2
  46. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/RegionHash.d.ts +3 -2
  47. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getHostnameFromVariants.d.ts +2 -0
  48. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getRegionInfo.d.ts +2 -0
  49. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedHostname.d.ts +2 -0
  50. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedPartition.d.ts +2 -0
  51. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedSigningRegion.d.ts +2 -0
  52. package/node_modules/@smithy/config-resolver/package.json +4 -4
  53. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +3 -2
  54. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +625 -2
  55. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +3 -2
  56. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +6 -0
  57. package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +6 -0
  58. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +6 -0
  59. package/node_modules/@smithy/core/package.json +7 -6
  60. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  61. package/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts +1 -1
  62. package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts +1 -1
  63. package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
  64. package/node_modules/@smithy/hash-node/package.json +2 -2
  65. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  66. package/node_modules/@smithy/middleware-content-length/dist-cjs/index.js +2 -2
  67. package/node_modules/@smithy/middleware-content-length/package.json +3 -3
  68. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  69. package/node_modules/@smithy/middleware-retry/package.json +8 -8
  70. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  71. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  72. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  73. package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +0 -2
  74. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +0 -1
  75. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +1 -2
  76. package/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +0 -3
  77. package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +0 -7
  78. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +0 -7
  79. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +0 -7
  80. package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +0 -3
  81. package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +0 -3
  82. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +0 -1
  83. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +0 -1
  84. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +1 -2
  85. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +0 -1
  86. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +0 -1
  87. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +0 -1
  88. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +0 -1
  89. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +0 -1
  90. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +0 -1
  91. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +0 -1
  92. package/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +0 -2
  93. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  94. package/node_modules/@smithy/property-provider/dist-types/chain.d.ts +1 -1
  95. package/node_modules/@smithy/property-provider/dist-types/ts3.4/chain.d.ts +1 -1
  96. package/node_modules/@smithy/property-provider/package.json +2 -2
  97. package/node_modules/@smithy/protocol-http/dist-types/extensions/httpExtensionConfiguration.d.ts +3 -7
  98. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/extensions/httpExtensionConfiguration.d.ts +3 -7
  99. package/node_modules/@smithy/protocol-http/package.json +2 -2
  100. package/node_modules/@smithy/querystring-builder/package.json +2 -2
  101. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  102. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  103. package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
  104. package/node_modules/@smithy/signature-v4/package.json +4 -4
  105. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +32 -617
  106. package/node_modules/@smithy/smithy-client/dist-es/index.js +1 -6
  107. package/node_modules/@smithy/smithy-client/dist-types/index.d.ts +1 -6
  108. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/index.d.ts +1 -6
  109. package/node_modules/@smithy/smithy-client/package.json +8 -8
  110. package/node_modules/@smithy/types/dist-cjs/schema/schema.js +1 -0
  111. package/node_modules/@smithy/types/dist-cjs/schema/sentinels.js +1 -0
  112. package/node_modules/@smithy/types/dist-cjs/schema/traits.js +1 -0
  113. package/node_modules/@smithy/types/dist-cjs/transform/mutable.js +1 -0
  114. package/node_modules/@smithy/types/dist-es/index.js +3 -0
  115. package/node_modules/@smithy/types/dist-es/schema/schema.js +1 -0
  116. package/node_modules/@smithy/types/dist-es/schema/sentinels.js +1 -0
  117. package/node_modules/@smithy/types/dist-es/schema/traits.js +1 -0
  118. package/node_modules/@smithy/types/dist-es/transform/mutable.js +1 -0
  119. package/node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts +0 -3
  120. package/node_modules/@smithy/types/dist-types/command.d.ts +2 -0
  121. package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +0 -2
  122. package/node_modules/@smithy/types/dist-types/index.d.ts +3 -0
  123. package/node_modules/@smithy/types/dist-types/schema/schema.d.ts +263 -0
  124. package/node_modules/@smithy/types/dist-types/schema/sentinels.d.ts +65 -0
  125. package/node_modules/@smithy/types/dist-types/schema/traits.d.ts +46 -0
  126. package/node_modules/@smithy/types/dist-types/serde.d.ts +2 -0
  127. package/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-common-types.d.ts +0 -1
  128. package/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-input-types.d.ts +0 -3
  129. package/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-output-types.d.ts +0 -2
  130. package/node_modules/@smithy/types/dist-types/transform/client-payload-blob-type-narrow.d.ts +0 -2
  131. package/node_modules/@smithy/types/dist-types/transform/mutable.d.ts +6 -0
  132. package/node_modules/@smithy/types/dist-types/ts3.4/blob/blob-payload-input-types.d.ts +0 -1
  133. package/node_modules/@smithy/types/dist-types/ts3.4/command.d.ts +2 -0
  134. package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +0 -1
  135. package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +3 -0
  136. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +278 -0
  137. package/node_modules/@smithy/types/dist-types/ts3.4/schema/sentinels.d.ts +65 -0
  138. package/node_modules/@smithy/types/dist-types/ts3.4/schema/traits.d.ts +46 -0
  139. package/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +2 -0
  140. package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-common-types.d.ts +0 -1
  141. package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts +0 -1
  142. package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-output-types.d.ts +0 -1
  143. package/node_modules/@smithy/types/dist-types/ts3.4/transform/client-payload-blob-type-narrow.d.ts +0 -1
  144. package/node_modules/@smithy/types/dist-types/ts3.4/transform/mutable.d.ts +6 -0
  145. package/node_modules/@smithy/types/package.json +1 -1
  146. package/node_modules/@smithy/url-parser/package.json +3 -3
  147. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
  148. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  149. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  150. package/node_modules/@smithy/util-middleware/package.json +2 -2
  151. package/node_modules/@smithy/util-retry/dist-types/defaultRetryToken.d.ts +1 -1
  152. package/node_modules/@smithy/util-retry/dist-types/ts3.4/defaultRetryToken.d.ts +1 -1
  153. package/node_modules/@smithy/util-retry/package.json +3 -3
  154. package/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.js +1 -2
  155. package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js +1 -2
  156. package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js +6 -6
  157. package/node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js +1 -2
  158. package/node_modules/@smithy/util-stream/dist-cjs/splitStream.browser.js +1 -2
  159. package/node_modules/@smithy/util-stream/dist-cjs/splitStream.js +1 -2
  160. package/node_modules/@smithy/util-stream/dist-types/ByteArrayCollector.d.ts +1 -1
  161. package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +0 -3
  162. package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts +0 -1
  163. package/node_modules/@smithy/util-stream/dist-types/createBufferedReadable.d.ts +0 -1
  164. package/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +0 -1
  165. package/node_modules/@smithy/util-stream/dist-types/splitStream.d.ts +0 -1
  166. package/node_modules/@smithy/util-stream/dist-types/ts3.4/ByteArrayCollector.d.ts +1 -1
  167. package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +0 -1
  168. package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.d.ts +0 -1
  169. package/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadable.d.ts +0 -1
  170. package/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts +0 -1
  171. package/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.d.ts +0 -1
  172. package/node_modules/@smithy/util-stream/package.json +4 -4
  173. package/node_modules/@smithy/util-waiter/package.json +3 -3
  174. package/package.json +5 -5
  175. package/node_modules/@smithy/smithy-client/dist-cjs/date-utils.js +0 -1
  176. package/node_modules/@smithy/smithy-client/dist-cjs/lazy-json.js +0 -1
  177. package/node_modules/@smithy/smithy-client/dist-cjs/parse-utils.js +0 -1
  178. package/node_modules/@smithy/smithy-client/dist-cjs/quote-header.js +0 -1
  179. package/node_modules/@smithy/smithy-client/dist-cjs/split-every.js +0 -1
  180. package/node_modules/@smithy/smithy-client/dist-cjs/split-header.js +0 -1
  181. /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/date-utils.js +0 -0
  182. /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/lazy-json.js +0 -0
  183. /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/parse-utils.js +0 -0
  184. /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/quote-header.js +0 -0
  185. /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/split-every.js +0 -0
  186. /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/split-header.js +0 -0
  187. /package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/date-utils.d.ts +0 -0
  188. /package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/lazy-json.d.ts +0 -0
  189. /package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/parse-utils.d.ts +0 -0
  190. /package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/quote-header.d.ts +0 -0
  191. /package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/split-every.d.ts +0 -0
  192. /package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/split-header.d.ts +0 -0
  193. /package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/date-utils.d.ts +0 -0
  194. /package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/lazy-json.d.ts +0 -0
  195. /package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/parse-utils.d.ts +0 -0
  196. /package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/quote-header.d.ts +0 -0
  197. /package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/split-every.d.ts +0 -0
  198. /package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/split-header.d.ts +0 -0
@@ -0,0 +1,278 @@
1
+ import { EndpointV2 } from "../endpoint";
2
+ import { HandlerExecutionContext } from "../middleware";
3
+ import { MetadataBearer } from "../response";
4
+ import { EndpointBearer, SerdeFunctions } from "../serde";
5
+ import { BigDecimalSchema, BigIntegerSchema, BlobSchema, BooleanSchema, DocumentSchema, NumericSchema, StreamingBlobSchema, StringSchema, TimestampDateTimeSchema, TimestampDefaultSchema, TimestampEpochSecondsSchema, TimestampHttpDateSchema } from "./sentinels";
6
+ import { TraitBitVector } from "./traits";
7
+ /**
8
+ * A schema is an object or value that describes how to serialize/deserialize data.
9
+ * @public
10
+ */
11
+ export type Schema = UnitSchema | TraitsSchema | SimpleSchema | ListSchema | MapSchema | StructureSchema | MemberSchema | OperationSchema | NormalizedSchema;
12
+ /**
13
+ * Traits attached to schema objects.
14
+ *
15
+ * When this is a number, it refers to a pre-allocated
16
+ * trait combination that is equivalent to one of the
17
+ * object type's variations.
18
+ *
19
+ * @public
20
+ */
21
+ export type SchemaTraits = TraitBitVector | SchemaTraitsObject;
22
+ /**
23
+ * A schema that has traits.
24
+ *
25
+ * @public
26
+ */
27
+ export interface TraitsSchema {
28
+ name: string;
29
+ traits: SchemaTraits;
30
+ }
31
+ /**
32
+ * Simple schemas are those corresponding to simple Smithy types.
33
+ * @see https://smithy.io/2.0/spec/simple-types.html
34
+ * @public
35
+ */
36
+ export type SimpleSchema = BlobSchemas | StringSchema | BooleanSchema | NumericSchema | BigIntegerSchema | BigDecimalSchema | DocumentSchema | TimestampSchemas | number;
37
+ /**
38
+ * Sentinel value for Timestamp schema.
39
+ * "Default" means unspecified and to use the protocol serializer's default format.
40
+ *
41
+ * @public
42
+ */
43
+ export type TimestampSchemas = TimestampDefaultSchema | TimestampDateTimeSchema | TimestampHttpDateSchema | TimestampEpochSecondsSchema;
44
+ /**
45
+ * Sentinel values for Blob schema.
46
+ * @public
47
+ */
48
+ export type BlobSchemas = BlobSchema | StreamingBlobSchema;
49
+ /**
50
+ * Signal value for the Smithy void value. Typically used for
51
+ * operation input and outputs.
52
+ *
53
+ * @internal
54
+ */
55
+ export type UnitSchema = "unit";
56
+ /**
57
+ * See https://smithy.io/2.0/trait-index.html for individual definitions.
58
+ *
59
+ * @public
60
+ */
61
+ export type SchemaTraitsObject = {
62
+ idempotent?: 1;
63
+ idempotencyToken?: 1;
64
+ sensitive?: 1;
65
+ sparse?: 1;
66
+ /**
67
+ * timestampFormat is expressed by the schema sentinel values of 4, 5, 6, and 7,
68
+ * and not contained in trait objects.
69
+ * @deprecated use schema value.
70
+ */
71
+ timestampFormat?: never;
72
+ httpLabel?: 1;
73
+ httpHeader?: string;
74
+ httpQuery?: string;
75
+ httpPrefixHeaders?: string;
76
+ httpQueryParams?: 1;
77
+ httpPayload?: 1;
78
+ /**
79
+ * [method, path, statusCode]
80
+ */
81
+ http?: [
82
+ string,
83
+ string,
84
+ number
85
+ ];
86
+ httpResponseCode?: 1;
87
+ /**
88
+ * [hostPrefix]
89
+ */
90
+ endpoint?: [
91
+ string
92
+ ];
93
+ xmlAttribute?: 1;
94
+ xmlName?: string;
95
+ /**
96
+ * [prefix, uri]
97
+ */
98
+ xmlNamespace?: [
99
+ string,
100
+ string
101
+ ];
102
+ xmlFlattened?: 1;
103
+ jsonName?: string;
104
+ mediaType?: string;
105
+ error?: "client" | "server";
106
+ [traitName: string]: unknown;
107
+ };
108
+ /**
109
+ * Schema for the structure aggregate type.
110
+ * @public
111
+ */
112
+ export interface StructureSchema extends TraitsSchema {
113
+ name: string;
114
+ traits: SchemaTraits;
115
+ members: Record<string, [
116
+ SchemaRef,
117
+ SchemaTraits
118
+ ]>;
119
+ }
120
+ /**
121
+ * Schema for the list aggregate type.
122
+ * @public
123
+ */
124
+ export interface ListSchema extends TraitsSchema {
125
+ name: string;
126
+ traits: SchemaTraits;
127
+ valueSchema: SchemaRef;
128
+ }
129
+ /**
130
+ * Schema for the map aggregate type.
131
+ * @public
132
+ */
133
+ export interface MapSchema extends TraitsSchema {
134
+ name: string;
135
+ traits: SchemaTraits;
136
+ keySchema: SchemaRef;
137
+ valueSchema: SchemaRef;
138
+ }
139
+ /**
140
+ * @public
141
+ */
142
+ export type MemberSchema = [
143
+ SchemaRef,
144
+ SchemaTraits
145
+ ];
146
+ /**
147
+ * Schema for an operation.
148
+ *
149
+ * @public
150
+ */
151
+ export interface OperationSchema extends TraitsSchema {
152
+ name: string;
153
+ traits: SchemaTraits;
154
+ input: SchemaRef;
155
+ output: SchemaRef;
156
+ }
157
+ /**
158
+ * Normalization wrapper for various schema data objects.
159
+ * @internal
160
+ */
161
+ export interface NormalizedSchema extends TraitsSchema {
162
+ name: string;
163
+ traits: SchemaTraits;
164
+ getSchema(): Schema;
165
+ getName(): string | undefined;
166
+ isMemberSchema(): boolean;
167
+ isListSchema(): boolean;
168
+ isMapSchema(): boolean;
169
+ isStructSchema(): boolean;
170
+ isBlobSchema(): boolean;
171
+ isTimestampSchema(): boolean;
172
+ isStringSchema(): boolean;
173
+ isBooleanSchema(): boolean;
174
+ isNumericSchema(): boolean;
175
+ isBigIntegerSchema(): boolean;
176
+ isBigDecimalSchema(): boolean;
177
+ isStreaming(): boolean;
178
+ getMergedTraits(): SchemaTraitsObject;
179
+ getMemberTraits(): SchemaTraitsObject;
180
+ getOwnTraits(): SchemaTraitsObject;
181
+ /**
182
+ * For list/set/map.
183
+ */
184
+ getValueSchema(): NormalizedSchema;
185
+ /**
186
+ * For struct/union.
187
+ */
188
+ getMemberSchema(member: string): NormalizedSchema | undefined;
189
+ getMemberSchemas(): Record<string, NormalizedSchema>;
190
+ }
191
+ /**
192
+ * A schema "reference" is either a schema or a function that
193
+ * provides a schema. This is useful for lazy loading, and to allow
194
+ * code generation to define schema out of dependency order.
195
+ * @public
196
+ */
197
+ export type SchemaRef = Schema | (() => Schema);
198
+ /**
199
+ * A codec creates serializers and deserializers for some format such as JSON, XML, or CBOR.
200
+ *
201
+ * @public
202
+ */
203
+ export interface Codec<S, D> extends ConfigurableSerdeContext {
204
+ createSerializer(): ShapeSerializer<S>;
205
+ createDeserializer(): ShapeDeserializer<D>;
206
+ }
207
+ /**
208
+ * Configuration for codecs. Different protocols may share codecs, but require different behaviors from them.
209
+ *
210
+ * @public
211
+ */
212
+ export type CodecSettings = {
213
+ timestampFormat: {
214
+ /**
215
+ * Whether to use member timestamp format traits.
216
+ */
217
+ useTrait: boolean;
218
+ /**
219
+ * Default timestamp format.
220
+ */
221
+ default: TimestampDateTimeSchema | TimestampHttpDateSchema | TimestampEpochSecondsSchema;
222
+ };
223
+ /**
224
+ * Whether to use HTTP binding traits.
225
+ */
226
+ httpBindings?: boolean;
227
+ };
228
+ /**
229
+ * Turns a serialization into a data object.
230
+ * @public
231
+ */
232
+ export interface ShapeDeserializer<SerializationType = Uint8Array> extends ConfigurableSerdeContext {
233
+ /**
234
+ * Optionally async.
235
+ */
236
+ read(schema: Schema, data: SerializationType): any | Promise<any>;
237
+ }
238
+ /**
239
+ * Turns a data object into a serialization.
240
+ * @public
241
+ */
242
+ export interface ShapeSerializer<SerializationType = Uint8Array> extends ConfigurableSerdeContext {
243
+ write(schema: Schema, value: unknown): void;
244
+ flush(): SerializationType;
245
+ }
246
+ /**
247
+ * A client protocol defines how to convert a message (e.g. HTTP request/response) to and from a data object.
248
+ * @public
249
+ */
250
+ export interface ClientProtocol<Request, Response> extends ConfigurableSerdeContext {
251
+ /**
252
+ * @returns the Smithy qualified shape id.
253
+ */
254
+ getShapeId(): string;
255
+ getRequestType(): {
256
+ new (...args: any[]): Request;
257
+ };
258
+ getResponseType(): {
259
+ new (...args: any[]): Response;
260
+ };
261
+ /**
262
+ * @returns the payload codec if the requests/responses have a symmetric format.
263
+ * It otherwise may return null.
264
+ */
265
+ getPayloadCodec(): Codec<any, any>;
266
+ serializeRequest<Input extends object>(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise<Request>;
267
+ updateServiceEndpoint(request: Request, endpoint: EndpointV2): Request;
268
+ deserializeResponse<Output extends MetadataBearer>(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: Response): Promise<Output>;
269
+ }
270
+ /**
271
+ * Allows a protocol, codec, or serde utility to accept the serdeContext
272
+ * from a client configuration or request/response handlerExecutionContext.
273
+ *
274
+ * @public
275
+ */
276
+ export interface ConfigurableSerdeContext {
277
+ setSerdeContext(serdeContext: SerdeFunctions): void;
278
+ }
@@ -0,0 +1,65 @@
1
+ /**
2
+ * The blob Smithy type, in JS as Uint8Array and other representations
3
+ * such as Buffer, string, or Readable(Stream) depending on circumstances.
4
+ * @public
5
+ */
6
+ export type BlobSchema = 21;
7
+ /**
8
+ * @public
9
+ */
10
+ export type StreamingBlobSchema = 42;
11
+ /**
12
+ * @public
13
+ */
14
+ export type BooleanSchema = 2;
15
+ /**
16
+ * Includes string and enum Smithy types.
17
+ * @public
18
+ */
19
+ export type StringSchema = 0;
20
+ /**
21
+ * Includes all numeric Smithy types except bigInteger and bigDecimal.
22
+ * byte, short, integer, long, float, double, intEnum.
23
+ *
24
+ * @public
25
+ */
26
+ export type NumericSchema = 1;
27
+ /**
28
+ * @public
29
+ */
30
+ export type BigIntegerSchema = 17;
31
+ /**
32
+ * @public
33
+ */
34
+ export type BigDecimalSchema = 19;
35
+ /**
36
+ * @public
37
+ */
38
+ export type DocumentSchema = 15;
39
+ /**
40
+ * Smithy type timestamp, in JS as native Date object.
41
+ * @public
42
+ */
43
+ export type TimestampDefaultSchema = 4;
44
+ /**
45
+ * @public
46
+ */
47
+ export type TimestampDateTimeSchema = 5;
48
+ /**
49
+ * @public
50
+ */
51
+ export type TimestampHttpDateSchema = 6;
52
+ /**
53
+ * @public
54
+ */
55
+ export type TimestampEpochSecondsSchema = 7;
56
+ /**
57
+ * Additional bit indicating the type is a list.
58
+ * @public
59
+ */
60
+ export type ListSchemaModifier = 64;
61
+ /**
62
+ * Additional bit indicating the type is a map.
63
+ * @public
64
+ */
65
+ export type MapSchemaModifier = 128;
@@ -0,0 +1,46 @@
1
+ /**
2
+ * A bitvector representing a traits object.
3
+ *
4
+ * Vector index to trait:
5
+ * 0 - httpLabel
6
+ * 1 - idempotent
7
+ * 2 - idempotencyToken
8
+ * 3 - sensitive
9
+ * 4 - httpPayload
10
+ * 5 - httpResponseCode
11
+ * 6 - httpQueryParams
12
+ *
13
+ * The singular trait values are enumerated for quick identification, but
14
+ * combination values are left to the `number` union type.
15
+ *
16
+ * @public
17
+ */
18
+ export type TraitBitVector = HttpLabelBitMask | IdempotentBitMask | IdempotencyTokenBitMask | SensitiveBitMask | HttpPayloadBitMask | HttpResponseCodeBitMask | HttpQueryParamsBitMask | number;
19
+ /**
20
+ * @public
21
+ */
22
+ export type HttpLabelBitMask = 1;
23
+ /**
24
+ * @public
25
+ */
26
+ export type IdempotentBitMask = 2;
27
+ /**
28
+ * @public
29
+ */
30
+ export type IdempotencyTokenBitMask = 4;
31
+ /**
32
+ * @public
33
+ */
34
+ export type SensitiveBitMask = 8;
35
+ /**
36
+ * @public
37
+ */
38
+ export type HttpPayloadBitMask = 16;
39
+ /**
40
+ * @public
41
+ */
42
+ export type HttpResponseCodeBitMask = 32;
43
+ /**
44
+ * @public
45
+ */
46
+ export type HttpQueryParamsBitMask = 64;
@@ -1,4 +1,5 @@
1
1
  import { Endpoint } from "./http";
2
+ import { ClientProtocol } from "./schema/schema";
2
3
  import { RequestHandler } from "./transfer";
3
4
  import { Decoder, Encoder, Provider } from "./util";
4
5
  /**
@@ -28,6 +29,7 @@ export interface StreamCollector {
28
29
  export interface SerdeContext extends SerdeFunctions, EndpointBearer {
29
30
  requestHandler: RequestHandler<any, any>;
30
31
  disableHostPrefix: boolean;
32
+ protocol?: ClientProtocol<any, any>;
31
33
  }
32
34
  /**
33
35
  * @public
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { Readable } from "stream";
3
2
  import { BlobOptionalType, ReadableStreamOptionalType } from "../externals-check/browser-externals-check";
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { Readable } from "stream";
3
2
  import { BlobOptionalType, ReadableStreamOptionalType } from "../externals-check/browser-externals-check";
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { IncomingMessage } from "http";
3
2
  import { Readable } from "stream";
4
3
  import { BlobOptionalType, ReadableStreamOptionalType } from "../externals-check/browser-externals-check";
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { IncomingMessage } from "http";
3
2
  import { ClientHttp2Stream } from "http2";
4
3
  import { InvokeMethod } from "../client";
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export type Mutable<Type> = {
5
+ -readonly [Property in keyof Type]: Type[Property];
6
+ };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/types",
3
- "version": "4.2.0",
3
+ "version": "4.3.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline types",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/url-parser",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline url-parser",
@@ -23,8 +23,8 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@smithy/querystring-parser": "^4.0.2",
27
- "@smithy/types": "^4.2.0",
26
+ "@smithy/querystring-parser": "^4.0.3",
27
+ "@smithy/types": "^4.3.0",
28
28
  "tslib": "^2.6.2"
29
29
  },
30
30
  "typesVersions": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-browser",
3
- "version": "4.0.14",
3
+ "version": "4.0.15",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline util-defaults-mode-browser",
@@ -23,9 +23,9 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@smithy/property-provider": "^4.0.2",
27
- "@smithy/smithy-client": "^4.2.6",
28
- "@smithy/types": "^4.2.0",
26
+ "@smithy/property-provider": "^4.0.3",
27
+ "@smithy/smithy-client": "^4.3.0",
28
+ "@smithy/types": "^4.3.0",
29
29
  "bowser": "^2.11.0",
30
30
  "tslib": "^2.6.2"
31
31
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-node",
3
- "version": "4.0.14",
3
+ "version": "4.0.15",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline util-defaults-mode-node",
@@ -23,12 +23,12 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@smithy/config-resolver": "^4.1.2",
27
- "@smithy/credential-provider-imds": "^4.0.4",
28
- "@smithy/node-config-provider": "^4.1.1",
29
- "@smithy/property-provider": "^4.0.2",
30
- "@smithy/smithy-client": "^4.2.6",
31
- "@smithy/types": "^4.2.0",
26
+ "@smithy/config-resolver": "^4.1.3",
27
+ "@smithy/credential-provider-imds": "^4.0.5",
28
+ "@smithy/node-config-provider": "^4.1.2",
29
+ "@smithy/property-provider": "^4.0.3",
30
+ "@smithy/smithy-client": "^4.3.0",
31
+ "@smithy/types": "^4.3.0",
32
32
  "tslib": "^2.6.2"
33
33
  },
34
34
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-endpoints",
3
- "version": "3.0.4",
3
+ "version": "3.0.5",
4
4
  "description": "Utilities to help with endpoint resolution.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -28,8 +28,8 @@
28
28
  },
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@smithy/node-config-provider": "^4.1.1",
32
- "@smithy/types": "^4.2.0",
31
+ "@smithy/node-config-provider": "^4.1.2",
32
+ "@smithy/types": "^4.3.0",
33
33
  "tslib": "^2.6.2"
34
34
  },
35
35
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-middleware",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "Shared utilities for to be used in middleware packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@smithy/types": "^4.2.0",
30
+ "@smithy/types": "^4.3.0",
31
31
  "tslib": "^2.6.2"
32
32
  },
33
33
  "devDependencies": {
@@ -5,5 +5,5 @@ import { StandardRetryToken } from "@smithy/types";
5
5
  export declare const createDefaultRetryToken: ({ retryDelay, retryCount, retryCost, }: {
6
6
  retryDelay: number;
7
7
  retryCount: number;
8
- retryCost?: number | undefined;
8
+ retryCost?: number;
9
9
  }) => StandardRetryToken;
@@ -5,5 +5,5 @@ import { StandardRetryToken } from "@smithy/types";
5
5
  export declare const createDefaultRetryToken: ({ retryDelay, retryCount, retryCost, }: {
6
6
  retryDelay: number;
7
7
  retryCount: number;
8
- retryCost?: number | undefined;
8
+ retryCost?: number;
9
9
  }) => StandardRetryToken;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-retry",
3
- "version": "4.0.3",
3
+ "version": "4.0.4",
4
4
  "description": "Shared retry utilities to be used in middleware packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -28,8 +28,8 @@
28
28
  },
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@smithy/service-error-classification": "^4.0.3",
32
- "@smithy/types": "^4.2.0",
31
+ "@smithy/service-error-classification": "^4.0.4",
32
+ "@smithy/types": "^4.3.0",
33
33
  "tslib": "^2.6.2"
34
34
  },
35
35
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createChecksumStream = void 0;
3
+ exports.createChecksumStream = createChecksumStream;
4
4
  const stream_type_check_1 = require("../stream-type-check");
5
5
  const ChecksumStream_1 = require("./ChecksumStream");
6
6
  const createChecksumStream_browser_1 = require("./createChecksumStream.browser");
@@ -10,4 +10,3 @@ function createChecksumStream(init) {
10
10
  }
11
11
  return new ChecksumStream_1.ChecksumStream(init);
12
12
  }
13
- exports.createChecksumStream = createChecksumStream;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createBufferedReadable = void 0;
3
+ exports.createBufferedReadable = createBufferedReadable;
4
4
  const node_stream_1 = require("node:stream");
5
5
  const ByteArrayCollector_1 = require("./ByteArrayCollector");
6
6
  const createBufferedReadableStream_1 = require("./createBufferedReadableStream");
@@ -58,4 +58,3 @@ function createBufferedReadable(upstream, size, logger) {
58
58
  });
59
59
  return downstream;
60
60
  }
61
- exports.createBufferedReadable = createBufferedReadable;
@@ -1,6 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.modeOf = exports.sizeOf = exports.flush = exports.merge = exports.createBufferedReadable = exports.createBufferedReadableStream = void 0;
3
+ exports.createBufferedReadable = void 0;
4
+ exports.createBufferedReadableStream = createBufferedReadableStream;
5
+ exports.merge = merge;
6
+ exports.flush = flush;
7
+ exports.sizeOf = sizeOf;
8
+ exports.modeOf = modeOf;
4
9
  const ByteArrayCollector_1 = require("./ByteArrayCollector");
5
10
  function createBufferedReadableStream(upstream, size, logger) {
6
11
  const reader = upstream.getReader();
@@ -57,7 +62,6 @@ function createBufferedReadableStream(upstream, size, logger) {
57
62
  pull,
58
63
  });
59
64
  }
60
- exports.createBufferedReadableStream = createBufferedReadableStream;
61
65
  exports.createBufferedReadable = createBufferedReadableStream;
62
66
  function merge(buffers, mode, chunk) {
63
67
  switch (mode) {
@@ -70,7 +74,6 @@ function merge(buffers, mode, chunk) {
70
74
  return sizeOf(buffers[mode]);
71
75
  }
72
76
  }
73
- exports.merge = merge;
74
77
  function flush(buffers, mode) {
75
78
  switch (mode) {
76
79
  case 0:
@@ -83,12 +86,10 @@ function flush(buffers, mode) {
83
86
  }
84
87
  throw new Error(`@smithy/util-stream - invalid index ${mode} given to flush()`);
85
88
  }
86
- exports.flush = flush;
87
89
  function sizeOf(chunk) {
88
90
  var _a, _b;
89
91
  return (_b = (_a = chunk === null || chunk === void 0 ? void 0 : chunk.byteLength) !== null && _a !== void 0 ? _a : chunk === null || chunk === void 0 ? void 0 : chunk.length) !== null && _b !== void 0 ? _b : 0;
90
92
  }
91
- exports.sizeOf = sizeOf;
92
93
  function modeOf(chunk, allowBuffer = true) {
93
94
  if (allowBuffer && typeof Buffer !== "undefined" && chunk instanceof Buffer) {
94
95
  return 2;
@@ -101,4 +102,3 @@ function modeOf(chunk, allowBuffer = true) {
101
102
  }
102
103
  return -1;
103
104
  }
104
- exports.modeOf = modeOf;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.headStream = void 0;
3
+ exports.headStream = headStream;
4
4
  async function headStream(stream, bytes) {
5
5
  var _a;
6
6
  let byteLengthCounter = 0;
@@ -33,4 +33,3 @@ async function headStream(stream, bytes) {
33
33
  }
34
34
  return collected;
35
35
  }
36
- exports.headStream = headStream;