@cdk8s/awscdk-resolver 0.0.623 → 0.0.625

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 +1 -1
  4. package/node_modules/@aws-sdk/client-cloudformation/package.json +8 -8
  5. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +55 -141
  6. package/node_modules/@aws-sdk/core/dist-es/submodules/account-id-endpoint/index.js +3 -3
  7. package/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-recursion-detection/configuration.js +1 -1
  8. package/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.js +48 -19
  9. package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-browser/defaultUserAgent.browser.js +1 -1
  10. package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/defaultUserAgent.js +0 -5
  11. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/index.js +3 -3
  12. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js +2 -2
  13. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/index.js +3 -3
  14. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +19 -20
  15. package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/index.d.ts +5 -3
  16. package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.browser.d.ts +5 -5
  17. package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.d.ts +5 -5
  18. package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.native.d.ts +5 -5
  19. package/node_modules/@aws-sdk/core/dist-types/submodules/client/middleware-recursion-detection/configuration.d.ts +1 -0
  20. package/node_modules/@aws-sdk/core/dist-types/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.d.ts +5 -1
  21. package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-endpoints/types/EndpointRuleObject.d.ts +1 -1
  22. package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-endpoints/types/ErrorRuleObject.d.ts +1 -1
  23. package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-endpoints/types/RuleSetObject.d.ts +1 -1
  24. package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-endpoints/types/TreeRuleObject.d.ts +1 -1
  25. package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-endpoints/types/shared.d.ts +1 -1
  26. package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-user-agent-browser/defaultUserAgent.browser.d.ts +2 -1
  27. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/index.d.ts +5 -3
  28. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/index.d.ts +3 -2
  29. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/index.d.ts +3 -3
  30. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +22 -20
  31. package/node_modules/@aws-sdk/core/dist-types/submodules/util/index.d.ts +2 -1
  32. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/index.d.ts +16 -3
  33. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.browser.d.ts +7 -1
  34. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +23 -3
  35. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +24 -2
  36. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/index.d.ts +3 -3
  37. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +31 -20
  38. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/index.d.ts +2 -1
  39. package/node_modules/@aws-sdk/core/package.json +6 -6
  40. package/node_modules/@aws-sdk/credential-provider-env/dist-es/index.js +1 -1
  41. package/node_modules/@aws-sdk/credential-provider-env/dist-types/index.d.ts +2 -4
  42. package/node_modules/@aws-sdk/credential-provider-env/dist-types/ts3.4/index.d.ts +10 -1
  43. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  44. package/node_modules/@aws-sdk/credential-provider-http/package.json +7 -7
  45. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +1 -1
  46. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/index.js +1 -1
  47. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveLoginCredentials.js +1 -1
  48. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/index.d.ts +2 -4
  49. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/index.d.ts +2 -1
  50. package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
  51. package/node_modules/@aws-sdk/credential-provider-login/dist-es/index.js +1 -2
  52. package/node_modules/@aws-sdk/credential-provider-login/dist-types/index.d.ts +2 -8
  53. package/node_modules/@aws-sdk/credential-provider-login/dist-types/ts3.4/index.d.ts +7 -2
  54. package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -6
  55. package/node_modules/@aws-sdk/credential-provider-node/dist-es/index.js +1 -1
  56. package/node_modules/@aws-sdk/credential-provider-node/dist-types/index.d.ts +2 -1
  57. package/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/index.d.ts +6 -1
  58. package/node_modules/@aws-sdk/credential-provider-node/package.json +11 -11
  59. package/node_modules/@aws-sdk/credential-provider-process/dist-es/index.js +1 -1
  60. package/node_modules/@aws-sdk/credential-provider-process/dist-types/index.d.ts +2 -4
  61. package/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/index.d.ts +2 -1
  62. package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
  63. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/index.js +3 -4
  64. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/fromSSO.d.ts +4 -4
  65. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/index.d.ts +5 -16
  66. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/index.d.ts +5 -4
  67. package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
  68. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/index.js +2 -2
  69. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/index.d.ts +4 -8
  70. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/index.d.ts +7 -2
  71. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -6
  72. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  73. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  74. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  75. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  76. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  77. package/node_modules/@aws-sdk/nested-clients/package.json +8 -8
  78. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +4 -4
  79. package/node_modules/@aws-sdk/token-providers/dist-es/index.js +4 -4
  80. package/node_modules/@aws-sdk/token-providers/dist-types/index.d.ts +7 -4
  81. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/index.d.ts +7 -4
  82. package/node_modules/@aws-sdk/token-providers/package.json +6 -6
  83. package/node_modules/@aws-sdk/types/dist-es/endpoint.js +1 -1
  84. package/node_modules/@aws-sdk/types/dist-es/identity/index.js +1 -5
  85. package/node_modules/@aws-sdk/types/dist-es/index.js +4 -34
  86. package/node_modules/@aws-sdk/types/dist-es/transfer.js +1 -1
  87. package/node_modules/@aws-sdk/types/dist-types/abort.d.ts +1 -1
  88. package/node_modules/@aws-sdk/types/dist-types/auth.d.ts +2 -1
  89. package/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts +2 -2
  90. package/node_modules/@aws-sdk/types/dist-types/checksum.d.ts +1 -1
  91. package/node_modules/@aws-sdk/types/dist-types/client.d.ts +1 -1
  92. package/node_modules/@aws-sdk/types/dist-types/command.d.ts +1 -1
  93. package/node_modules/@aws-sdk/types/dist-types/connection.d.ts +1 -1
  94. package/node_modules/@aws-sdk/types/dist-types/crypto.d.ts +1 -1
  95. package/node_modules/@aws-sdk/types/dist-types/encode.d.ts +1 -1
  96. package/node_modules/@aws-sdk/types/dist-types/endpoint.d.ts +2 -1
  97. package/node_modules/@aws-sdk/types/dist-types/eventStream.d.ts +1 -1
  98. package/node_modules/@aws-sdk/types/dist-types/http.d.ts +1 -1
  99. package/node_modules/@aws-sdk/types/dist-types/identity/AwsCredentialIdentity.d.ts +7 -7
  100. package/node_modules/@aws-sdk/types/dist-types/identity/Identity.d.ts +1 -1
  101. package/node_modules/@aws-sdk/types/dist-types/identity/TokenIdentity.d.ts +1 -1
  102. package/node_modules/@aws-sdk/types/dist-types/identity/index.d.ts +5 -5
  103. package/node_modules/@aws-sdk/types/dist-types/index.d.ts +42 -34
  104. package/node_modules/@aws-sdk/types/dist-types/middleware.d.ts +1 -1
  105. package/node_modules/@aws-sdk/types/dist-types/pagination.d.ts +1 -1
  106. package/node_modules/@aws-sdk/types/dist-types/profile.d.ts +1 -1
  107. package/node_modules/@aws-sdk/types/dist-types/response.d.ts +1 -1
  108. package/node_modules/@aws-sdk/types/dist-types/retry.d.ts +1 -1
  109. package/node_modules/@aws-sdk/types/dist-types/serde.d.ts +1 -1
  110. package/node_modules/@aws-sdk/types/dist-types/shapes.d.ts +1 -1
  111. package/node_modules/@aws-sdk/types/dist-types/signature.d.ts +1 -1
  112. package/node_modules/@aws-sdk/types/dist-types/stream.d.ts +1 -1
  113. package/node_modules/@aws-sdk/types/dist-types/transfer.d.ts +2 -1
  114. package/node_modules/@aws-sdk/types/dist-types/ts3.4/auth.d.ts +2 -5
  115. package/node_modules/@aws-sdk/types/dist-types/ts3.4/endpoint.d.ts +1 -1
  116. package/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +1 -1
  117. package/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/index.d.ts +17 -5
  118. package/node_modules/@aws-sdk/types/dist-types/ts3.4/index.d.ts +225 -34
  119. package/node_modules/@aws-sdk/types/dist-types/ts3.4/transfer.d.ts +1 -1
  120. package/node_modules/@aws-sdk/types/dist-types/uri.d.ts +1 -1
  121. package/node_modules/@aws-sdk/types/dist-types/util.d.ts +1 -1
  122. package/node_modules/@aws-sdk/types/dist-types/waiter.d.ts +1 -1
  123. package/node_modules/@aws-sdk/types/package.json +2 -2
  124. package/node_modules/@aws-sdk/xml-builder/dist-es/index.js +2 -2
  125. package/node_modules/@aws-sdk/xml-builder/dist-types/index.d.ts +2 -11
  126. package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/index.d.ts +2 -2
  127. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  128. package/node_modules/@smithy/core/dist-es/index.js +5 -5
  129. package/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/index.js +3 -3
  130. package/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-signing/index.js +2 -2
  131. package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/httpAuthSchemes/index.js +3 -3
  132. package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/index.js +3 -3
  133. package/node_modules/@smithy/core/dist-es/submodules/cbor/index.js +3 -3
  134. package/node_modules/@smithy/core/dist-es/submodules/endpoints/index.browser.js +1 -1
  135. package/node_modules/@smithy/core/dist-es/submodules/endpoints/index.js +1 -1
  136. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/service-customizations/index.js +1 -1
  137. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/debug/index.js +2 -2
  138. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/index.js +11 -11
  139. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/types/index.js +1 -7
  140. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/index.js +2 -2
  141. package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +13 -13
  142. package/node_modules/@smithy/core/dist-es/submodules/schema/index.js +14 -14
  143. package/node_modules/@smithy/core/dist-types/index.d.ts +7 -5
  144. package/node_modules/@smithy/core/dist-types/legacy-root-exports/middleware-http-auth-scheme/index.d.ts +4 -3
  145. package/node_modules/@smithy/core/dist-types/legacy-root-exports/middleware-http-signing/index.d.ts +2 -2
  146. package/node_modules/@smithy/core/dist-types/legacy-root-exports/util-identity-and-auth/httpAuthSchemes/index.d.ts +3 -3
  147. package/node_modules/@smithy/core/dist-types/legacy-root-exports/util-identity-and-auth/index.d.ts +4 -3
  148. package/node_modules/@smithy/core/dist-types/submodules/cbor/index.d.ts +3 -3
  149. package/node_modules/@smithy/core/dist-types/submodules/client/util-waiter/waiter.d.ts +1 -1
  150. package/node_modules/@smithy/core/dist-types/submodules/endpoints/index.browser.d.ts +2 -1
  151. package/node_modules/@smithy/core/dist-types/submodules/endpoints/index.d.ts +2 -1
  152. package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/service-customizations/index.d.ts +1 -1
  153. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/debug/index.d.ts +2 -2
  154. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/lib/index.d.ts +12 -11
  155. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/types/index.d.ts +7 -7
  156. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/index.d.ts +2 -2
  157. package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +13 -13
  158. package/node_modules/@smithy/core/dist-types/submodules/schema/index.d.ts +14 -14
  159. package/node_modules/@smithy/core/dist-types/submodules/transport/httpRequest.d.ts +2 -2
  160. package/node_modules/@smithy/core/dist-types/submodules/transport/index.d.ts +2 -1
  161. package/node_modules/@smithy/core/package.json +2 -2
  162. package/node_modules/@smithy/credential-provider-imds/dist-es/index.js +3 -4
  163. package/node_modules/@smithy/credential-provider-imds/dist-types/index.d.ts +5 -4
  164. package/node_modules/@smithy/credential-provider-imds/package.json +3 -3
  165. package/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts +1 -1
  166. package/node_modules/@smithy/fetch-http-handler/package.json +4 -4
  167. package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +1 -1
  168. package/node_modules/@smithy/node-http-handler/package.json +4 -4
  169. package/node_modules/@smithy/signature-v4/dist-es/index.js +4 -4
  170. package/node_modules/@smithy/signature-v4/dist-types/index.d.ts +5 -4
  171. package/node_modules/@smithy/signature-v4/package.json +3 -3
  172. package/node_modules/@smithy/types/dist-es/auth/index.js +2 -6
  173. package/node_modules/@smithy/types/dist-es/connection/index.js +1 -3
  174. package/node_modules/@smithy/types/dist-es/endpoints/index.js +1 -5
  175. package/node_modules/@smithy/types/dist-es/extensions/index.js +1 -2
  176. package/node_modules/@smithy/types/dist-es/identity/index.js +1 -4
  177. package/node_modules/@smithy/types/dist-es/index.js +7 -43
  178. package/node_modules/@smithy/types/dist-es/metrics.js +1 -0
  179. package/node_modules/@smithy/types/dist-types/abort.d.ts +1 -1
  180. package/node_modules/@smithy/types/dist-types/auth/index.d.ts +7 -6
  181. package/node_modules/@smithy/types/dist-types/connection/index.d.ts +3 -3
  182. package/node_modules/@smithy/types/dist-types/endpoints/index.d.ts +5 -5
  183. package/node_modules/@smithy/types/dist-types/extensions/index.d.ts +6 -4
  184. package/node_modules/@smithy/types/dist-types/identity/index.d.ts +4 -4
  185. package/node_modules/@smithy/types/dist-types/index.d.ts +51 -43
  186. package/node_modules/@smithy/types/dist-types/metrics.d.ts +93 -0
  187. package/node_modules/@smithy/types/package.json +1 -1
  188. package/package.json +4 -4
  189. package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/getNodeModulesParentDirs.js +0 -15
  190. package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/getSanitizedDevTypeScriptVersion.js +0 -14
  191. package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/getSanitizedTypeScriptVersion.js +0 -9
  192. package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/getTypeScriptUserAgentPair.js +0 -75
  193. package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-user-agent-node/getNodeModulesParentDirs.d.ts +0 -10
  194. package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-user-agent-node/getSanitizedDevTypeScriptVersion.d.ts +0 -8
  195. package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-user-agent-node/getSanitizedTypeScriptVersion.d.ts +0 -8
  196. package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-user-agent-node/getTypeScriptUserAgentPair.d.ts +0 -6
  197. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/getNodeModulesParentDirs.d.ts +0 -1
  198. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/getSanitizedDevTypeScriptVersion.d.ts +0 -3
  199. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/getSanitizedTypeScriptVersion.d.ts +0 -3
  200. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/getTypeScriptUserAgentPair.d.ts +0 -4
@@ -1,44 +1,52 @@
1
- export * from "./abort";
2
- export * from "./auth";
3
- export * from "./blob/blob-payload-input-types";
4
- export * from "./checksum";
5
- export * from "./client";
6
- export * from "./command";
7
- export * from "./connection";
8
- export * from "./crypto";
9
- export * from "./encode";
10
- export * from "./endpoint";
11
- export * from "./endpoints";
1
+ export type { AbortController, AbortHandler, AbortSignal } from "./abort";
2
+ export { HttpApiKeyAuthLocation, HttpAuthLocation } from "./auth";
3
+ export type { AuthScheme, ErrorHandler, HttpAuthDefinition, HttpAuthOption, HttpAuthScheme, HttpAuthSchemeId, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, HttpSigner, IdentityProviderConfig, SelectedHttpAuthScheme, SuccessHandler, } from "./auth";
4
+ export type { BlobPayloadInputTypes, BlobTypes, BrowserRuntimeBlobTypes, NodeJsRuntimeBlobTypes, } from "./blob/blob-payload-input-types";
5
+ export type { Checksum, ChecksumConstructor } from "./checksum";
6
+ export type { CheckOptionalClientConfig, Client, InvokeFunction, InvokeMethod, InvokeMethodOptionalArgs, } from "./client";
7
+ export type { Command, CommandIO, GetOutputType } from "./command";
8
+ export type { CacheKey, ConnectConfiguration, ConnectionManager, ConnectionManagerConfiguration, ConnectionPool, } from "./connection";
9
+ export type { Hash, HashConstructor, SourceData, StreamHasher, randomValues } from "./crypto";
10
+ export type { AvailableMessage, AvailableMessages, MessageDecoder, MessageEncoder } from "./encode";
11
+ export { EndpointURLScheme } from "./endpoint";
12
+ export type { EndpointARN, EndpointObjectProperty, EndpointParameters, EndpointPartition, EndpointURL, EndpointV2, } from "./endpoint";
13
+ export type { ConditionObject, DeprecatedObject, EndpointObject, EndpointObjectHeaders, EndpointObjectProperties, EndpointParams, EndpointResolverOptions, EndpointRuleObject, ErrorRuleObject, EvaluateOptions, Expression, FunctionArgv, FunctionObject, FunctionReturn, ParameterObject, ReferenceObject, ReferenceRecord, RuleSetObject, RuleSetRules, TreeRuleObject, } from "./endpoints";
12
14
  export type { EndpointParameterInstructions, BuiltInParamInstruction, ClientContextParamInstruction, StaticContextParamInstruction, ContextParamInstruction, OperationContextParamInstruction, } from "./endpoints/EndpointParameterInstructions";
13
- export * from "./eventStream";
14
- export * from "./extensions";
15
- export * from "./feature-ids";
16
- export * from "./http";
17
- export * from "./http/httpHandlerInitialization";
18
- export * from "./identity";
19
- export * from "./logger";
20
- export * from "./middleware";
21
- export * from "./pagination";
22
- export * from "./profile";
23
- export * from "./response";
24
- export * from "./retry";
25
- export * from "./schema/schema";
26
- export * from "./schema/traits";
27
- export * from "./schema/schema-deprecated";
28
- export * from "./schema/sentinels";
29
- export * from "./schema/static-schemas";
30
- export * from "./serde";
31
- export * from "./shapes";
32
- export * from "./signature";
33
- export * from "./stream";
34
- export * from "./streaming-payload/streaming-blob-common-types";
35
- export * from "./streaming-payload/streaming-blob-payload-input-types";
36
- export * from "./streaming-payload/streaming-blob-payload-output-types";
37
- export * from "./transfer";
38
- export * from "./transform/client-payload-blob-type-narrow";
39
- export * from "./transform/mutable";
40
- export * from "./transform/no-undefined";
41
- export * from "./transform/type-transform";
42
- export * from "./uri";
43
- export * from "./util";
44
- export * from "./waiter";
15
+ export type { BinaryHeaderValue, BooleanHeaderValue, ByteHeaderValue, EventStreamMarshaller, EventStreamMarshallerDeserFn, EventStreamMarshallerSerFn, EventStreamPayloadHandler, EventStreamPayloadHandlerProvider, EventStreamRequestSigner, EventStreamSerdeContext, EventStreamSerdeProvider, EventStreamSignerProvider, HeaderValue, Int64, IntegerHeaderValue, LongHeaderValue, Message, MessageHeaderValue, MessageHeaders, ShortHeaderValue, StringHeaderValue, TimestampHeaderValue, UuidHeaderValue, } from "./eventStream";
16
+ export { AlgorithmId, getDefaultClientConfiguration, resolveDefaultRuntimeConfig } from "./extensions";
17
+ export type { ChecksumAlgorithm, ChecksumConfiguration, DefaultClientConfiguration, DefaultExtensionConfiguration, RetryStrategyConfiguration, } from "./extensions";
18
+ export type { SmithyFeatures } from "./feature-ids";
19
+ export { FieldPosition } from "./http";
20
+ export type { Endpoint, FieldOptions, HeaderBag, HttpHandlerOptions, HttpMessage, HttpRequest, HttpResponse, QueryParameterBag, } from "./http";
21
+ export type { FetchHttpHandlerOptions, NodeHttpHandlerOptions, RequestHandlerParams, } from "./http/httpHandlerInitialization";
22
+ export type { ApiKeyIdentity, ApiKeyIdentityProvider, AwsCredentialIdentity, AwsCredentialIdentityProvider, Identity, IdentityProvider, TokenIdentity, TokenIdentityProvider, } from "./identity";
23
+ export type { Logger } from "./logger";
24
+ export { SMITHY_CONTEXT_KEY } from "./middleware";
25
+ export type { AbsoluteLocation, BuildHandler, BuildHandlerArguments, BuildHandlerOptions, BuildHandlerOutput, BuildMiddleware, DeserializeHandler, DeserializeHandlerArguments, DeserializeHandlerOptions, DeserializeHandlerOutput, DeserializeMiddleware, FinalizeHandler, FinalizeHandlerArguments, FinalizeHandlerOutput, FinalizeRequestHandlerOptions, FinalizeRequestMiddleware, Handler, HandlerExecutionContext, HandlerOptions, InitializeHandler, InitializeHandlerArguments, InitializeHandlerOptions, InitializeHandlerOutput, InitializeMiddleware, MiddlewareStack, MiddlewareType, Pluggable, Priority, Relation, RelativeLocation, RelativeMiddlewareOptions, SerializeHandler, SerializeHandlerArguments, SerializeHandlerOptions, SerializeHandlerOutput, SerializeMiddleware, Step, Terminalware, } from "./middleware";
26
+ export type { PaginationConfiguration, Paginator } from "./pagination";
27
+ export { IniSectionType } from "./profile";
28
+ export type { IniSection, ParsedIniData, Profile, SharedConfigFiles } from "./profile";
29
+ export type { MetadataBearer, ResponseMetadata } from "./response";
30
+ export type { ExponentialBackoffJitterType, ExponentialBackoffStrategyOptions, RetryBackoffStrategy, RetryErrorInfo, RetryErrorType, RetryStrategyOptions, RetryStrategyV2, RetryToken, StandardRetryBackoffStrategy, StandardRetryToken, } from "./retry";
31
+ export type { $ClientProtocol, $ClientProtocolCtor, $Codec, $MemberSchema, $OperationSchema, $Schema, $SchemaRef, $ShapeDeserializer, $ShapeSerializer, BlobSchemas, CodecSettings, ConfigurableSerdeContext, NormalizedSchema, SchemaTraits, SchemaTraitsObject, SimpleSchema, TimestampSchemas, UnitSchema, } from "./schema/schema";
32
+ export type { HttpLabelBitMask, HttpPayloadBitMask, HttpQueryParamsBitMask, HttpResponseCodeBitMask, IdempotencyTokenBitMask, IdempotentBitMask, SensitiveBitMask, TraitBitVector, } from "./schema/traits";
33
+ export type { ClientProtocol, ClientProtocolCtor, Codec, ListSchema, MapSchema, MemberSchema, OperationSchema, Schema, SchemaRef, ShapeDeserializer, ShapeSerializer, StructureSchema, TraitsSchema, } from "./schema/schema-deprecated";
34
+ export type { BigDecimalSchema, BigIntegerSchema, BlobSchema, BooleanSchema, DocumentSchema, ListSchemaModifier, MapSchemaModifier, NumericSchema, StreamingBlobSchema, StringSchema, TimestampDateTimeSchema, TimestampDefaultSchema, TimestampEpochSecondsSchema, TimestampHttpDateSchema, } from "./schema/sentinels";
35
+ export type { ShapeName, ShapeNamespace, StaticErrorSchema, StaticListSchema, StaticMapSchema, StaticOperationSchema, StaticSchema, StaticSchemaIdError, StaticSchemaIdList, StaticSchemaIdMap, StaticSchemaIdOperation, StaticSchemaIdSimple, StaticSchemaIdStruct, StaticSchemaIdUnion, StaticSimpleSchema, StaticStructureSchema, StaticUnionSchema, } from "./schema/static-schemas";
36
+ export type { EndpointBearer, RequestSerializer, ResponseDeserializer, SdkStream, SdkStreamMixin, SdkStreamMixinInjector, SdkStreamSerdeContext, SerdeContext, SerdeFunctions, StreamCollector, WithSdkStreamMixin, } from "./serde";
37
+ export type { DocumentType, RetryableTrait, SdkError, SmithyException } from "./shapes";
38
+ export type { DateInput, EventSigner, EventSigningArguments, EventStreamRequestScopedCredentials, FormattedEvent, MessageSigner, MessageSigningArguments, RequestPresigner, RequestPresigningArguments, RequestSigner, RequestSigningArguments, SignableMessage, SignedMessage, SigningArguments, StringSigner, } from "./signature";
39
+ export type { GetAwsChunkedEncodingStream, GetAwsChunkedEncodingStreamOptions } from "./stream";
40
+ export type { BrowserRuntimeStreamingBlobTypes, NodeJsRuntimeStreamingBlobTypes, StreamingBlobTypes, } from "./streaming-payload/streaming-blob-common-types";
41
+ export type { BrowserRuntimeStreamingBlobPayloadInputTypes, NodeJsRuntimeStreamingBlobPayloadInputTypes, StreamingBlobPayloadInputTypes, } from "./streaming-payload/streaming-blob-payload-input-types";
42
+ export type { BrowserRuntimeStreamingBlobPayloadOutputTypes, NodeJsRuntimeStreamingBlobPayloadOutputTypes, StreamingBlobPayloadOutputTypes, } from "./streaming-payload/streaming-blob-payload-output-types";
43
+ export { RequestHandlerProtocol } from "./transfer";
44
+ export type { RequestContext, RequestHandler, RequestHandlerMetadata, RequestHandlerOutput } from "./transfer";
45
+ export type { BrowserClient, BrowserXhrClient, NarrowPayloadBlobOutputType, NarrowPayloadBlobTypes, NodeJsClient, NodeJsHttp2Client, } from "./transform/client-payload-blob-type-narrow";
46
+ export type { Mutable } from "./transform/mutable";
47
+ export type { AssertiveClient, NoUndefined, RecursiveRequired, UncheckedClient } from "./transform/no-undefined";
48
+ export type { Transform } from "./transform/type-transform";
49
+ export type { URI } from "./uri";
50
+ export type { BodyLengthCalculator, Decoder, Encoder, Exact, MemoizedProvider, OptionalParameter, Provider, RegionInfo, RegionInfoProvider, RegionInfoProviderOptions, RetryStrategy, UrlParser, UserAgent, UserAgentPair, } from "./util";
51
+ export type { WaiterConfiguration } from "./waiter";
52
+ export type { MetricsRecorder, MetricsRecorderFactory, MetricUnit, RequestOutcome } from "./metrics";
@@ -0,0 +1,93 @@
1
+ /**
2
+ * Outcome of a request, recorded by the framework via {@link MetricsRecorder.recordRequestOutcome}.
3
+ *
4
+ * @public
5
+ */
6
+ export type RequestOutcome = "Success" | "Fault";
7
+ /**
8
+ * Unit attached to a recorded metric value. The vocabulary follows the
9
+ * CloudWatch unit names so backends that emit to CloudWatch can pass it
10
+ * through, but it carries no backend-specific semantics — a recorder is free
11
+ * to map or ignore it.
12
+ *
13
+ * @public
14
+ */
15
+ export type MetricUnit = "Seconds" | "Microseconds" | "Milliseconds" | "Bytes" | "Kilobytes" | "Megabytes" | "Gigabytes" | "Terabytes" | "Bits" | "Kilobits" | "Megabits" | "Gigabits" | "Terabits" | "Percent" | "Count" | "None" | "Bytes/Second" | "Kilobytes/Second" | "Megabytes/Second" | "Gigabytes/Second" | "Terabytes/Second" | "Bits/Second" | "Kilobits/Second" | "Megabits/Second" | "Gigabits/Second" | "Terabits/Second" | "Count/Second";
16
+ /**
17
+ * Backend-agnostic recorder for per-request metrics. The framework drives the
18
+ * lifecycle and records request-level metrics through this interface; user
19
+ * handlers record their own business metrics through the same methods. Concrete
20
+ * recorders (e.g. an EMF recorder, or a future OpenTelemetry recorder) translate
21
+ * these abstract calls into their own primitives.
22
+ *
23
+ * @typeParam Native - the concrete backend handle returned by
24
+ * {@link MetricsRecorder.getMetrics}, e.g. an OpenTelemetry `Meter`. The
25
+ * parameter is required so that native access is always typed rather than
26
+ * erased to `unknown`.
27
+ *
28
+ * @public
29
+ */
30
+ export interface MetricsRecorder<Native> {
31
+ /**
32
+ * Open the recorder for the current request. Called by the framework once at
33
+ * the start of request handling.
34
+ */
35
+ begin(): void;
36
+ /**
37
+ * Close the recorder for the current request. Called by the framework once at
38
+ * the end of request handling; this is where an implementation typically
39
+ * flushes its event.
40
+ */
41
+ end(): void;
42
+ /**
43
+ * Records the outcome and duration of a request. The concrete backend decides
44
+ * how to express this.
45
+ */
46
+ recordRequestOutcome(outcome: RequestOutcome, durationMs: number): void;
47
+ /**
48
+ * Records a count. Values should be non-negative for cross-backend portability.
49
+ */
50
+ addCount(name: string, value: number): void;
51
+ /**
52
+ * Records a duration in milliseconds.
53
+ */
54
+ addTime(name: string, value: number): void;
55
+ /**
56
+ * Records a level — a sampled value that should average meaningfully across
57
+ * calls (e.g. queue depth, batch size).
58
+ */
59
+ addLevel(name: string, value: number, unit?: MetricUnit): void;
60
+ /**
61
+ * Records a discrete data point where percentiles matter (e.g. per-call
62
+ * latency, item size).
63
+ */
64
+ addMetric(name: string, value: number, unit?: MetricUnit): void;
65
+ /**
66
+ * Records a unitless ratio (e.g. cache hit rate, throttle rate).
67
+ */
68
+ addRatio(name: string, value: number): void;
69
+ /**
70
+ * Attaches a property to the request's metrics. A nullish or empty value
71
+ * removes the property.
72
+ */
73
+ setProperty(name: string, value: string | null | undefined): void;
74
+ /**
75
+ * Returns the recorder's native backend handle, so callers can reach
76
+ * library-specific features the abstract methods do not expose (e.g. an
77
+ * OpenTelemetry `Meter`).
78
+ */
79
+ getMetrics(): Native;
80
+ }
81
+ /**
82
+ * Creates a per-request {@link MetricsRecorder}. Created once at startup and
83
+ * passed to the service handler; the framework calls {@link MetricsRecorderFactory.create}
84
+ * once per request to obtain a scoped recorder.
85
+ *
86
+ * @typeParam Native - the native backend handle exposed by recorders this
87
+ * factory produces. See {@link MetricsRecorder}.
88
+ *
89
+ * @public
90
+ */
91
+ export interface MetricsRecorderFactory<Native> {
92
+ create(): MetricsRecorder<Native>;
93
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/types",
3
- "version": "4.15.1",
3
+ "version": "4.16.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
6
6
  "build:es:cjs": "premove dist-es && yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline",
package/package.json CHANGED
@@ -52,7 +52,7 @@
52
52
  "aws-cdk": "^2.1129.0",
53
53
  "aws-cdk-lib": "2.195.0",
54
54
  "cdk8s": "2.68.91",
55
- "cdk8s-cli": "^2.207.38",
55
+ "cdk8s-cli": "^2.207.39",
56
56
  "commit-and-tag-version": "^12",
57
57
  "constructs": "10.3.0",
58
58
  "eslint": "^9",
@@ -66,7 +66,7 @@
66
66
  "jsii-docgen": "^10.5.0",
67
67
  "jsii-pacmak": "^1.138.0",
68
68
  "jsii-rosetta": "^5",
69
- "projen": "^0.101.4",
69
+ "projen": "^0.101.8",
70
70
  "ts-jest": "^27",
71
71
  "ts-node": "^10.9.2",
72
72
  "typescript": "^5.9.3"
@@ -77,7 +77,7 @@
77
77
  "constructs": "^10.3.0"
78
78
  },
79
79
  "dependencies": {
80
- "@aws-sdk/client-cloudformation": "^3.1081.0"
80
+ "@aws-sdk/client-cloudformation": "^3.1084.0"
81
81
  },
82
82
  "bundledDependencies": [
83
83
  "@aws-sdk/client-cloudformation"
@@ -94,7 +94,7 @@
94
94
  "publishConfig": {
95
95
  "access": "public"
96
96
  },
97
- "version": "0.0.623",
97
+ "version": "0.0.625",
98
98
  "jest": {
99
99
  "coverageProvider": "v8",
100
100
  "testMatch": [
@@ -1,15 +0,0 @@
1
- import { normalize, sep } from "node:path";
2
- export const getNodeModulesParentDirs = (dirname) => {
3
- const cwd = process.cwd();
4
- if (!dirname) {
5
- return [cwd];
6
- }
7
- const normalizedPath = normalize(dirname);
8
- const parts = normalizedPath.split(sep);
9
- const nodeModulesIndex = parts.indexOf("node_modules");
10
- const parentDir = nodeModulesIndex !== -1 ? parts.slice(0, nodeModulesIndex).join(sep) : normalizedPath;
11
- if (cwd === parentDir) {
12
- return [cwd];
13
- }
14
- return [parentDir, cwd];
15
- };
@@ -1,14 +0,0 @@
1
- import { getSanitizedTypeScriptVersion } from "./getSanitizedTypeScriptVersion";
2
- const ALLOWED_PREFIXES = ["^", "~", ">=", "<=", ">", "<"];
3
- const ALLOWED_DIST_TAGS = ["latest", "beta", "dev", "rc", "insiders", "next"];
4
- export const getSanitizedDevTypeScriptVersion = (version = "") => {
5
- if (ALLOWED_DIST_TAGS.includes(version)) {
6
- return version;
7
- }
8
- const prefix = ALLOWED_PREFIXES.find((p) => version.startsWith(p)) ?? "";
9
- const sanitizedTypeScriptVersion = getSanitizedTypeScriptVersion(version.slice(prefix.length));
10
- if (!sanitizedTypeScriptVersion) {
11
- return undefined;
12
- }
13
- return `${prefix}${sanitizedTypeScriptVersion}`;
14
- };
@@ -1,9 +0,0 @@
1
- const SEMVER_REGEX = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/;
2
- export const getSanitizedTypeScriptVersion = (version = "") => {
3
- const match = version.match(SEMVER_REGEX);
4
- if (!match) {
5
- return undefined;
6
- }
7
- const [major, minor, patch, prerelease] = [match[1], match[2], match[3], match[4]];
8
- return prerelease ? `${major}.${minor}.${patch}-${prerelease}` : `${major}.${minor}.${patch}`;
9
- };
@@ -1,75 +0,0 @@
1
- import { booleanSelector, SelectorType } from "@smithy/core/config";
2
- import { readFile } from "node:fs/promises";
3
- import { join } from "node:path";
4
- import { getNodeModulesParentDirs } from "./getNodeModulesParentDirs";
5
- import { getSanitizedDevTypeScriptVersion } from "./getSanitizedDevTypeScriptVersion";
6
- import { getSanitizedTypeScriptVersion } from "./getSanitizedTypeScriptVersion";
7
- let tscVersion;
8
- const TS_PACKAGE_JSON = join("node_modules", "typescript", "package.json");
9
- export const getTypeScriptUserAgentPair = async () => {
10
- if (tscVersion === null) {
11
- return undefined;
12
- }
13
- else if (typeof tscVersion === "string") {
14
- return ["md/tsc", tscVersion];
15
- }
16
- let isTypeScriptDetectionDisabled = false;
17
- try {
18
- isTypeScriptDetectionDisabled =
19
- booleanSelector(process.env, "AWS_SDK_JS_TYPESCRIPT_DETECTION_DISABLED", SelectorType.ENV) || false;
20
- }
21
- catch { }
22
- if (isTypeScriptDetectionDisabled) {
23
- tscVersion = null;
24
- return undefined;
25
- }
26
- const dirname = typeof __dirname !== "undefined" ? __dirname : undefined;
27
- const nodeModulesParentDirs = getNodeModulesParentDirs(dirname);
28
- let versionFromApp;
29
- for (const nodeModulesParentDir of nodeModulesParentDirs) {
30
- try {
31
- const appPackageJsonPath = join(nodeModulesParentDir, "package.json");
32
- const packageJson = await readFile(appPackageJsonPath, "utf-8");
33
- const { dependencies, devDependencies } = JSON.parse(packageJson);
34
- const version = devDependencies?.typescript ?? dependencies?.typescript;
35
- if (typeof version !== "string") {
36
- continue;
37
- }
38
- versionFromApp = version;
39
- break;
40
- }
41
- catch {
42
- }
43
- }
44
- if (!versionFromApp) {
45
- tscVersion = null;
46
- return undefined;
47
- }
48
- let versionFromNodeModules;
49
- for (const nodeModulesParentDir of nodeModulesParentDirs) {
50
- try {
51
- const tsPackageJsonPath = join(nodeModulesParentDir, TS_PACKAGE_JSON);
52
- const packageJson = await readFile(tsPackageJsonPath, "utf-8");
53
- const { version } = JSON.parse(packageJson);
54
- const sanitizedVersion = getSanitizedTypeScriptVersion(version);
55
- if (typeof sanitizedVersion !== "string") {
56
- continue;
57
- }
58
- versionFromNodeModules = sanitizedVersion;
59
- break;
60
- }
61
- catch {
62
- }
63
- }
64
- if (versionFromNodeModules) {
65
- tscVersion = versionFromNodeModules;
66
- return ["md/tsc", tscVersion];
67
- }
68
- const sanitizedVersion = getSanitizedDevTypeScriptVersion(versionFromApp);
69
- if (typeof sanitizedVersion !== "string") {
70
- tscVersion = null;
71
- return undefined;
72
- }
73
- tscVersion = `dev_${sanitizedVersion}`;
74
- return ["md/tsc", tscVersion];
75
- };
@@ -1,10 +0,0 @@
1
- /**
2
- * Returns candidate paths to the node_modules parent directories based on current
3
- * working directory and, if provided, from the given directory.
4
- *
5
- * @param dirname - Optional directory path to derive an additional candidate path from.
6
- * @returns An array of unique candidate paths to the TypeScript package.json file.
7
- *
8
- * @internal
9
- */
10
- export declare const getNodeModulesParentDirs: (dirname?: string) => string[];
@@ -1,8 +0,0 @@
1
- /**
2
- * Sanitizes a TypeScript version string for user-agent reporting.
3
- * Handles dist tags (e.g., "latest", "beta"), version prefixes (e.g., "^", "~"),
4
- * and semver strings. Returns undefined if the version is invalid.
5
- *
6
- * @internal
7
- */
8
- export declare const getSanitizedDevTypeScriptVersion: (version?: string) => string | undefined;
@@ -1,8 +0,0 @@
1
- /**
2
- * Validates a semver string (with optional pre-release and/or build metadata).
3
- * If valid, returns the version string with build metadata stripped.
4
- * Returns undefined if the string is not a valid semver.
5
- *
6
- * @internal
7
- */
8
- export declare const getSanitizedTypeScriptVersion: (version?: string) => string | undefined;
@@ -1,6 +0,0 @@
1
- import type { UserAgentPair } from "@smithy/types";
2
- /**
3
- * Returns the tyescript name and version as a user agent pair, if present.
4
- * @internal
5
- */
6
- export declare const getTypeScriptUserAgentPair: () => Promise<UserAgentPair | undefined>;
@@ -1 +0,0 @@
1
- export declare const getNodeModulesParentDirs: (dirname?: string) => string[];
@@ -1,3 +0,0 @@
1
- export declare const getSanitizedDevTypeScriptVersion: (
2
- version?: string
3
- ) => string | undefined;
@@ -1,3 +0,0 @@
1
- export declare const getSanitizedTypeScriptVersion: (
2
- version?: string
3
- ) => string | undefined;
@@ -1,4 +0,0 @@
1
- import { UserAgentPair } from "@smithy/types";
2
- export declare const getTypeScriptUserAgentPair: () => Promise<
3
- UserAgentPair | undefined
4
- >;