@psnext/slingcli 2.5.20260615-2 → 2.5.20260617-2

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 (195) hide show
  1. package/node_modules/@aws-sdk/core/dist-cjs/index.js +45 -50
  2. package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +2 -4
  3. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.browser.js +21 -22
  4. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +51 -51
  5. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.native.js +21 -22
  6. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +19 -21
  7. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +107 -109
  8. package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +2 -4
  9. package/node_modules/@aws-sdk/core/package.json +8 -8
  10. package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +4 -6
  11. package/node_modules/@aws-sdk/credential-provider-env/package.json +6 -6
  12. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js +3 -7
  13. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.browser.js +12 -16
  14. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +16 -21
  15. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +14 -18
  16. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js +1 -5
  17. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.browser.js +2 -5
  18. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +2 -7
  19. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-cjs/index.js +11 -13
  20. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/package.json +7 -7
  21. package/node_modules/@aws-sdk/credential-provider-http/package.json +6 -6
  22. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +47 -41
  23. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js +8 -4
  24. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js +14 -10
  25. package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
  26. package/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js +31 -33
  27. package/node_modules/@aws-sdk/credential-provider-login/package.json +7 -7
  28. package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +16 -18
  29. package/node_modules/@aws-sdk/credential-provider-node/package.json +11 -11
  30. package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +11 -13
  31. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  32. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +22 -24
  33. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BGYXHf8s.js +3 -0
  34. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +26 -28
  35. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +7 -7
  36. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  37. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +10 -14
  38. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +2 -6
  39. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +3 -27
  40. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
  41. package/node_modules/@aws-sdk/eventstream-handler-node/dist-cjs/index.js +7 -9
  42. package/node_modules/@aws-sdk/eventstream-handler-node/package.json +5 -5
  43. package/node_modules/@aws-sdk/middleware-eventstream/dist-cjs/index.js +3 -5
  44. package/node_modules/@aws-sdk/middleware-eventstream/package.json +5 -5
  45. package/node_modules/@aws-sdk/middleware-websocket/dist-cjs/index.js +16 -18
  46. package/node_modules/@aws-sdk/middleware-websocket/package.json +6 -6
  47. package/node_modules/@aws-sdk/nested-clients/dist-cjs/index.js +0 -1
  48. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +82 -84
  49. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +158 -119
  50. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +80 -82
  51. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +80 -82
  52. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +99 -101
  53. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js +4 -1
  54. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +70 -35
  55. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js +1 -1
  56. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js +3 -0
  57. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/EndpointParameters.d.ts +1 -0
  58. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/enums.d.ts +12 -0
  59. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/EndpointParameters.d.ts +1 -0
  60. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/enums.d.ts +3 -0
  61. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-cjs/index.js +11 -13
  62. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/package.json +7 -7
  63. package/node_modules/@aws-sdk/nested-clients/package.json +9 -8
  64. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +4 -6
  65. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +5 -5
  66. package/node_modules/@aws-sdk/types/dist-cjs/index.js +7 -8
  67. package/node_modules/@aws-sdk/types/package.json +4 -4
  68. package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +0 -2
  69. package/node_modules/@aws-sdk/util-locate-window/package.json +4 -4
  70. package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +2 -4
  71. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-external/nodable_entities.js +4 -7
  72. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.browser.js +2 -5
  73. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +7 -10
  74. package/node_modules/@aws-sdk/xml-builder/package.json +4 -4
  75. package/node_modules/@earendil-works/pi-agent-core/package.json +2 -2
  76. package/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js +21 -57
  77. package/node_modules/@earendil-works/pi-ai/dist/models.generated.js +277 -175
  78. package/node_modules/@earendil-works/pi-ai/dist/models.js +4 -1
  79. package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.js +52 -34
  80. package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.js +11 -9
  81. package/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.js +7 -4
  82. package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare.js +4 -3
  83. package/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.js +15 -5
  84. package/node_modules/@earendil-works/pi-ai/dist/providers/google.js +2 -1
  85. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex-responses.js +18 -17
  86. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-completions.js +21 -8
  87. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses-shared.js +2 -1
  88. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses.js +8 -7
  89. package/node_modules/@earendil-works/pi-ai/dist/providers/simple-options.js +1 -0
  90. package/node_modules/@earendil-works/pi-ai/dist/stream.js +1 -1
  91. package/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.js +17 -22
  92. package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/anthropic.js +2 -1
  93. package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/openai-codex.js +3 -2
  94. package/node_modules/@earendil-works/pi-ai/dist/utils/provider-env.js +44 -0
  95. package/node_modules/@earendil-works/pi-ai/package.json +1 -1
  96. package/node_modules/@earendil-works/pi-coding-agent/dist/bun/restore-sandbox-env.js +4 -0
  97. package/node_modules/@earendil-works/pi-coding-agent/dist/cli/args.js +1 -1
  98. package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.js +10 -7
  99. package/node_modules/@earendil-works/pi-coding-agent/dist/core/auth-storage.js +8 -1
  100. package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/branch-summarization.js +2 -2
  101. package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/compaction.js +10 -10
  102. package/node_modules/@earendil-works/pi-coding-agent/dist/core/export-html/vendor/marked.min.js +75 -3
  103. package/node_modules/@earendil-works/pi-coding-agent/dist/core/http-dispatcher.js +17 -1
  104. package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-registry.js +8 -4
  105. package/node_modules/@earendil-works/pi-coding-agent/dist/core/project-trust.js +1 -1
  106. package/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-attribution.js +10 -0
  107. package/node_modules/@earendil-works/pi-coding-agent/dist/core/resolve-config-value.js +19 -19
  108. package/node_modules/@earendil-works/pi-coding-agent/dist/core/sdk.js +2 -0
  109. package/node_modules/@earendil-works/pi-coding-agent/dist/core/system-prompt.js +6 -6
  110. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/bash.js +4 -0
  111. package/node_modules/@earendil-works/pi-coding-agent/dist/main.js +17 -5
  112. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/footer.js +4 -0
  113. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/login-dialog.js +0 -1
  114. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/session-selector.js +0 -5
  115. package/node_modules/@earendil-works/pi-coding-agent/dist/package-manager-cli.js +6 -6
  116. package/node_modules/@earendil-works/pi-coding-agent/dist/utils/child-process.js +23 -5
  117. package/node_modules/@earendil-works/pi-coding-agent/npm-shrinkwrap.json +17 -17
  118. package/node_modules/@earendil-works/pi-coding-agent/package.json +4 -4
  119. package/node_modules/@earendil-works/pi-tui/dist/components/editor.js +5 -1
  120. package/node_modules/@earendil-works/pi-tui/package.json +2 -2
  121. package/node_modules/@smithy/core/dist-cjs/index.js +13 -15
  122. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +29 -31
  123. package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.browser.js +2 -4
  124. package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js +7 -9
  125. package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.native.js +3 -5
  126. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +22 -23
  127. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +10 -11
  128. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +38 -39
  129. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +10 -11
  130. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +14 -17
  131. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +20 -23
  132. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +9 -11
  133. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +11 -13
  134. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +59 -60
  135. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +23 -24
  136. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +25 -26
  137. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +5 -7
  138. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -6
  139. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +23 -25
  140. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -6
  141. package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +2 -4
  142. package/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +1 -1
  143. package/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-signing/httpSigningMiddleware.js +1 -1
  144. package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +1 -1
  145. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/endpointMiddleware.js +1 -1
  146. package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
  147. package/node_modules/@smithy/core/package.json +7 -6
  148. package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +23 -24
  149. package/node_modules/@smithy/credential-provider-imds/package.json +6 -6
  150. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +6 -8
  151. package/node_modules/@smithy/fetch-http-handler/package.json +7 -7
  152. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +27 -29
  153. package/node_modules/@smithy/signature-v4/package.json +6 -6
  154. package/node_modules/@smithy/types/dist-cjs/index.js +23 -18
  155. package/node_modules/@smithy/types/package.json +4 -4
  156. package/node_modules/marked/README.md +13 -4
  157. package/node_modules/marked/bin/main.js +16 -14
  158. package/node_modules/marked/bin/marked.js +2 -1
  159. package/node_modules/marked/lib/marked.d.ts +157 -125
  160. package/node_modules/marked/lib/marked.esm.js +67 -2179
  161. package/node_modules/marked/lib/marked.esm.js.map +3 -3
  162. package/node_modules/marked/lib/marked.umd.js +67 -2201
  163. package/node_modules/marked/lib/marked.umd.js.map +3 -3
  164. package/node_modules/marked/man/marked.1 +4 -2
  165. package/node_modules/marked/man/marked.1.md +2 -1
  166. package/node_modules/marked/package.json +27 -35
  167. package/node_modules/undici/docs/docs/api/Client.md +3 -0
  168. package/node_modules/undici/docs/docs/api/Cookies.md +27 -0
  169. package/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +1 -0
  170. package/node_modules/undici/lib/core/socks5-client.js +14 -4
  171. package/node_modules/undici/lib/core/socks5-utils.js +18 -4
  172. package/node_modules/undici/lib/dispatcher/agent.js +1 -1
  173. package/node_modules/undici/lib/dispatcher/balanced-pool.js +1 -1
  174. package/node_modules/undici/lib/dispatcher/client-h1.js +69 -1
  175. package/node_modules/undici/lib/dispatcher/client.js +3 -2
  176. package/node_modules/undici/lib/dispatcher/dispatcher-base.js +19 -0
  177. package/node_modules/undici/lib/dispatcher/pool.js +1 -1
  178. package/node_modules/undici/lib/dispatcher/proxy-agent.js +2 -1
  179. package/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +45 -34
  180. package/node_modules/undici/lib/util/cache.js +8 -2
  181. package/node_modules/undici/lib/web/cookies/parse.js +17 -25
  182. package/node_modules/undici/lib/web/websocket/permessage-deflate.js +13 -31
  183. package/node_modules/undici/lib/web/websocket/receiver.js +80 -23
  184. package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +8 -1
  185. package/node_modules/undici/lib/web/websocket/websocket.js +8 -1
  186. package/node_modules/undici/package.json +1 -1
  187. package/node_modules/undici/types/client.d.ts +16 -0
  188. package/package.json +6 -6
  189. package/slingshot/index.js +253 -253
  190. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BKDNrsal.js +0 -8
  191. package/node_modules/marked/lib/marked.cjs +0 -2211
  192. package/node_modules/marked/lib/marked.cjs.map +0 -7
  193. package/node_modules/marked/lib/marked.d.cts +0 -728
  194. package/node_modules/marked/marked.min.js +0 -69
  195. /package/node_modules/marked/{LICENSE.md → LICENSE} +0 -0
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@aws-sdk/eventstream-handler-node",
3
- "version": "3.972.21",
3
+ "version": "3.972.22",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline",
7
- "build:es": "tsc -p tsconfig.es.json",
7
+ "build:es": "premove dist-es && tsc -p tsconfig.es.json",
8
8
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
9
- "build:types": "tsc -p tsconfig.types.json",
9
+ "build:types": "premove dist-types && tsc -p tsconfig.types.json",
10
10
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
11
- "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
11
+ "clean": "premove dist-cjs dist-es dist-types",
12
12
  "test": "yarn g:vitest run",
13
13
  "test:watch": "yarn g:vitest watch"
14
14
  },
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@aws-sdk/types": "^3.973.12",
25
+ "@aws-sdk/types": "^3.973.13",
26
26
  "@smithy/core": "^3.24.6",
27
27
  "@smithy/types": "^4.14.3",
28
28
  "tslib": "^2.6.2"
@@ -1,6 +1,4 @@
1
- 'use strict';
2
-
3
- var protocols = require('@smithy/core/protocols');
1
+ const { HttpRequest } = require("@smithy/core/protocols");
4
2
 
5
3
  function resolveEventStreamConfig(input) {
6
4
  const eventSigner = input.signer;
@@ -17,7 +15,7 @@ function resolveEventStreamConfig(input) {
17
15
 
18
16
  const eventStreamHandlingMiddleware = (options) => (next, context) => async (args) => {
19
17
  const { request } = args;
20
- if (!protocols.HttpRequest.isInstance(request))
18
+ if (!HttpRequest.isInstance(request))
21
19
  return next(args);
22
20
  return options.eventStreamPayloadHandler.handle(next, args, context);
23
21
  };
@@ -31,7 +29,7 @@ const eventStreamHandlingMiddlewareOptions = {
31
29
 
32
30
  const eventStreamHeaderMiddleware = (next) => async (args) => {
33
31
  const { request } = args;
34
- if (!protocols.HttpRequest.isInstance(request))
32
+ if (!HttpRequest.isInstance(request))
35
33
  return next(args);
36
34
  request.headers = {
37
35
  ...request.headers,
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-eventstream",
3
- "version": "3.972.17",
3
+ "version": "3.972.18",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline",
7
- "build:es": "tsc -p tsconfig.es.json",
7
+ "build:es": "premove dist-es && tsc -p tsconfig.es.json",
8
8
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
9
- "build:types": "tsc -p tsconfig.types.json",
9
+ "build:types": "premove dist-types && tsc -p tsconfig.types.json",
10
10
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
11
- "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
11
+ "clean": "premove dist-cjs dist-es dist-types",
12
12
  "test": "exit 0",
13
13
  "test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
14
14
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@aws-sdk/types": "^3.973.12",
26
+ "@aws-sdk/types": "^3.973.13",
27
27
  "@smithy/core": "^3.24.6",
28
28
  "@smithy/types": "^4.14.3",
29
29
  "tslib": "^2.6.2"
@@ -1,10 +1,8 @@
1
- 'use strict';
2
-
3
- var util = require('@aws-sdk/core/util');
4
- var eventStreams = require('@smithy/core/event-streams');
5
- var protocols = require('@smithy/core/protocols');
6
- var serde = require('@smithy/core/serde');
7
- var fetchHttpHandler = require('@smithy/fetch-http-handler');
1
+ const { formatUrl } = require("@aws-sdk/core/util");
2
+ const { iterableToReadableStream, readableStreamToIterable, EventStreamCodec } = require("@smithy/core/event-streams");
3
+ const { HttpResponse, HttpRequest } = require("@smithy/core/protocols");
4
+ const { fromBase64, fromHex } = require("@smithy/core/serde");
5
+ const { FetchHttpHandler } = require("@smithy/fetch-http-handler");
8
6
 
9
7
  const isWebSocketRequest = (request) => request.protocol === "ws:" || request.protocol === "wss:";
10
8
 
@@ -17,13 +15,13 @@ class WebSocketFetchHandler {
17
15
  configPromise;
18
16
  httpHandler;
19
17
  sockets = {};
20
- static create(instanceOrOptions, httpHandler = new fetchHttpHandler.FetchHttpHandler()) {
18
+ static create(instanceOrOptions, httpHandler = new FetchHttpHandler()) {
21
19
  if (typeof instanceOrOptions?.handle === "function") {
22
20
  return instanceOrOptions;
23
21
  }
24
22
  return new WebSocketFetchHandler(instanceOrOptions, httpHandler);
25
23
  }
26
- constructor(options, httpHandler = new fetchHttpHandler.FetchHttpHandler()) {
24
+ constructor(options, httpHandler = new FetchHttpHandler()) {
27
25
  this.httpHandler = httpHandler;
28
26
  const setConfig = (opts) => {
29
27
  this.config = {
@@ -56,7 +54,7 @@ class WebSocketFetchHandler {
56
54
  logger?.debug?.(`@aws-sdk - ws fetching ${request.protocol}${request.hostname}${request.path}`);
57
55
  return this.httpHandler.handle(request);
58
56
  }
59
- const url = util.formatUrl(request);
57
+ const url = formatUrl(request);
60
58
  logger?.debug?.(`@aws-sdk - ws connecting ${url.split("?")[0]}`);
61
59
  const socket = new WebSocket(url);
62
60
  if (!this.sockets[url]) {
@@ -71,7 +69,7 @@ class WebSocketFetchHandler {
71
69
  const asyncIterable = this.connect(socket, bodyStream);
72
70
  const outputPayload = toReadableStream(asyncIterable);
73
71
  return {
74
- response: new protocols.HttpResponse({
72
+ response: new HttpResponse({
75
73
  statusCode: 200,
76
74
  body: outputPayload,
77
75
  }),
@@ -130,7 +128,7 @@ class WebSocketFetchHandler {
130
128
  if (typeof data === "string") {
131
129
  push({
132
130
  done: false,
133
- value: serde.fromBase64(data),
131
+ value: fromBase64(data),
134
132
  });
135
133
  }
136
134
  else {
@@ -195,7 +193,7 @@ const getIterator = (stream) => {
195
193
  return stream;
196
194
  }
197
195
  if (isReadableStream(stream)) {
198
- return eventStreams.readableStreamToIterable(stream);
196
+ return readableStreamToIterable(stream);
199
197
  }
200
198
  return {
201
199
  [Symbol.asyncIterator]: async function* () {
@@ -203,12 +201,12 @@ const getIterator = (stream) => {
203
201
  },
204
202
  };
205
203
  };
206
- const toReadableStream = (asyncIterable) => typeof ReadableStream === "function" ? eventStreams.iterableToReadableStream(asyncIterable) : asyncIterable;
204
+ const toReadableStream = (asyncIterable) => typeof ReadableStream === "function" ? iterableToReadableStream(asyncIterable) : asyncIterable;
207
205
  const isReadableStream = (payload) => typeof ReadableStream === "function" && payload instanceof ReadableStream;
208
206
 
209
207
  const websocketEndpointMiddleware = (config, options) => (next) => (args) => {
210
208
  const { request } = args;
211
- if (protocols.HttpRequest.isInstance(request) &&
209
+ if (HttpRequest.isInstance(request) &&
212
210
  config.requestHandler.metadata?.handlerProtocol?.toLowerCase().includes("websocket")) {
213
211
  request.protocol = "wss:";
214
212
  request.method = "GET";
@@ -271,7 +269,7 @@ class WebsocketSignatureV4 {
271
269
  return this.signer.presign(originalRequest, options);
272
270
  }
273
271
  async sign(toSign, options) {
274
- if (protocols.HttpRequest.isInstance(toSign) && isWebSocketRequest(toSign)) {
272
+ if (HttpRequest.isInstance(toSign) && isWebSocketRequest(toSign)) {
275
273
  const signedRequest = await this.signer.presign({ ...toSign, body: "" }, {
276
274
  ...options,
277
275
  expiresIn: 60,
@@ -333,7 +331,7 @@ class EventSigningTransformStream extends TransformStream {
333
331
  ...dateHeader,
334
332
  ":chunk-signature": {
335
333
  type: "binary",
336
- value: serde.fromHex(signedMessage.signature),
334
+ value: fromHex(signedMessage.signature),
337
335
  },
338
336
  },
339
337
  body: chunk,
@@ -355,7 +353,7 @@ class EventStreamPayloadHandler {
355
353
  credentials;
356
354
  constructor(options) {
357
355
  this.messageSigner = options.messageSigner;
358
- this.eventStreamCodec = new eventStreams.EventStreamCodec(options.utf8Encoder, options.utf8Decoder);
356
+ this.eventStreamCodec = new EventStreamCodec(options.utf8Encoder, options.utf8Decoder);
359
357
  this.systemClockOffsetProvider = async () => options.systemClockOffset ?? 0;
360
358
  this.credentials = options.credentials;
361
359
  }
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-websocket",
3
- "version": "3.972.28",
3
+ "version": "3.972.29",
4
4
  "main": "./dist-cjs/index.js",
5
5
  "module": "./dist-es/index.js",
6
6
  "types": "./dist-types/index.d.ts",
7
7
  "scripts": {
8
8
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
9
9
  "build:cjs": "node ../../scripts/compilation/inline",
10
- "build:es": "tsc -p tsconfig.es.json",
10
+ "build:es": "premove dist-es && tsc -p tsconfig.es.json",
11
11
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
12
- "build:types": "tsc -p tsconfig.types.json",
12
+ "build:types": "premove dist-types && tsc -p tsconfig.types.json",
13
13
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
14
- "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
14
+ "clean": "premove dist-cjs dist-es dist-types",
15
15
  "test": "yarn g:vitest run",
16
16
  "test:watch": "yarn g:vitest watch",
17
17
  "test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
@@ -24,8 +24,8 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@aws-sdk/core": "^3.974.20",
28
- "@aws-sdk/types": "^3.973.12",
27
+ "@aws-sdk/core": "^3.974.21",
28
+ "@aws-sdk/types": "^3.973.13",
29
29
  "@smithy/core": "^3.24.6",
30
30
  "@smithy/fetch-http-handler": "^5.4.6",
31
31
  "@smithy/signature-v4": "^5.4.6",
@@ -1,2 +1 @@
1
- 'use strict';
2
1
 
@@ -1,22 +1,22 @@
1
- 'use strict';
2
-
3
- var client$1 = require('@aws-sdk/core/client');
4
- var core = require('@smithy/core');
5
- var client = require('@smithy/core/client');
6
- var config = require('@smithy/core/config');
7
- var endpoints = require('@smithy/core/endpoints');
8
- var protocols = require('@smithy/core/protocols');
9
- var retry = require('@smithy/core/retry');
10
- var schema = require('@smithy/core/schema');
11
- var httpAuthSchemes = require('@aws-sdk/core/httpAuthSchemes');
12
- var serde = require('@smithy/core/serde');
13
- var nodeHttpHandler = require('@smithy/node-http-handler');
14
- var protocols$1 = require('@aws-sdk/core/protocols');
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
+ const { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
+ exports.$Command = Command;
5
+ exports.__Client = Client;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
13
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
14
+ const { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
15
15
 
16
16
  const defaultCognitoIdentityHttpAuthSchemeParametersProvider = async (config, context, input) => {
17
17
  return {
18
- operation: client.getSmithyContext(context).operation,
19
- region: await client.normalizeProvider(config.region)() || (() => {
18
+ operation: getSmithyContext(context).operation,
19
+ region: await normalizeProvider(config.region)() || (() => {
20
20
  throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
21
21
  })(),
22
22
  };
@@ -59,9 +59,9 @@ const defaultCognitoIdentityHttpAuthSchemeProvider = (authParameters) => {
59
59
  return options;
60
60
  };
61
61
  const resolveHttpAuthSchemeConfig = (config) => {
62
- const config_0 = httpAuthSchemes.resolveAwsSdkSigV4Config(config);
62
+ const config_0 = resolveAwsSdkSigV4Config(config);
63
63
  return Object.assign(config_0, {
64
- authSchemePreference: client.normalizeProvider(config.authSchemePreference ?? []),
64
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
65
65
  });
66
66
  };
67
67
 
@@ -79,7 +79,7 @@ const commonParams = {
79
79
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
80
80
  };
81
81
 
82
- var version = "3.997.19";
82
+ var version = "3.997.20";
83
83
  var packageInfo = {
84
84
  version: version};
85
85
 
@@ -142,21 +142,21 @@ const nodes = new Int32Array([
142
142
  3, r + 1, 18,
143
143
  5, r + 2, r + 3,
144
144
  ]);
145
- const bdd = endpoints.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
145
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
146
146
 
147
- const cache = new endpoints.EndpointCache({
147
+ const cache = new EndpointCache({
148
148
  size: 50,
149
149
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
150
150
  });
151
151
  const defaultEndpointResolver = (endpointParams, context = {}) => {
152
- return cache.get(endpointParams, () => endpoints.decideEndpoint(bdd, {
152
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
153
153
  endpointParams: endpointParams,
154
154
  logger: context.logger,
155
155
  }));
156
156
  };
157
- endpoints.customEndpointFunctions.aws = client$1.awsEndpointFunctions;
157
+ customEndpointFunctions.aws = awsEndpointFunctions;
158
158
 
159
- class CognitoIdentityServiceException extends client.ServiceException {
159
+ class CognitoIdentityServiceException extends ServiceException {
160
160
  constructor(options) {
161
161
  super(options);
162
162
  Object.setPrototypeOf(this, CognitoIdentityServiceException.prototype);
@@ -307,10 +307,10 @@ const _m = "message";
307
307
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity";
308
308
  const _se = "server";
309
309
  const n0 = "com.amazonaws.cognitoidentity";
310
- const _s_registry = schema.TypeRegistry.for(_s);
310
+ const _s_registry = TypeRegistry.for(_s);
311
311
  var CognitoIdentityServiceException$ = [-3, _s, "CognitoIdentityServiceException", 0, [], []];
312
312
  _s_registry.registerError(CognitoIdentityServiceException$, CognitoIdentityServiceException);
313
- const n0_registry = schema.TypeRegistry.for(n0);
313
+ const n0_registry = TypeRegistry.for(n0);
314
314
  var ExternalServiceException$ = [-3, n0, _ESE,
315
315
  { [_e]: _c, [_hE]: 400 },
316
316
  [_m],
@@ -412,8 +412,8 @@ var GetId$ = [9, n0, _GI,
412
412
  const getRuntimeConfig$1 = (config) => {
413
413
  return {
414
414
  apiVersion: "2014-06-30",
415
- base64Decoder: config?.base64Decoder ?? serde.fromBase64,
416
- base64Encoder: config?.base64Encoder ?? serde.toBase64,
415
+ base64Decoder: config?.base64Decoder ?? fromBase64,
416
+ base64Encoder: config?.base64Encoder ?? toBase64,
417
417
  disableHostPrefix: config?.disableHostPrefix ?? false,
418
418
  endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
419
419
  extensions: config?.extensions ?? [],
@@ -422,16 +422,16 @@ const getRuntimeConfig$1 = (config) => {
422
422
  {
423
423
  schemeId: "aws.auth#sigv4",
424
424
  identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
425
- signer: new httpAuthSchemes.AwsSdkSigV4Signer(),
425
+ signer: new AwsSdkSigV4Signer(),
426
426
  },
427
427
  {
428
428
  schemeId: "smithy.api#noAuth",
429
429
  identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
430
- signer: new core.NoAuthSigner(),
430
+ signer: new NoAuthSigner(),
431
431
  },
432
432
  ],
433
- logger: config?.logger ?? new client.NoOpLogger(),
434
- protocol: config?.protocol ?? protocols$1.AwsJson1_1Protocol,
433
+ logger: config?.logger ?? new NoOpLogger(),
434
+ protocol: config?.protocol ?? AwsJson1_1Protocol,
435
435
  protocolSettings: config?.protocolSettings ?? {
436
436
  defaultNamespace: "com.amazonaws.cognitoidentity",
437
437
  errorTypeRegistries,
@@ -440,43 +440,43 @@ const getRuntimeConfig$1 = (config) => {
440
440
  serviceTarget: "AWSCognitoIdentityService",
441
441
  },
442
442
  serviceId: config?.serviceId ?? "Cognito Identity",
443
- urlParser: config?.urlParser ?? protocols.parseUrl,
444
- utf8Decoder: config?.utf8Decoder ?? serde.fromUtf8,
445
- utf8Encoder: config?.utf8Encoder ?? serde.toUtf8,
443
+ urlParser: config?.urlParser ?? parseUrl,
444
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
445
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
446
446
  };
447
447
  };
448
448
 
449
- const getRuntimeConfig = (config$1) => {
450
- client.emitWarningIfUnsupportedVersion(process.version);
451
- const defaultsMode = config.resolveDefaultsModeConfig(config$1);
452
- const defaultConfigProvider = () => defaultsMode().then(client.loadConfigsForDefaultMode);
453
- const clientSharedValues = getRuntimeConfig$1(config$1);
454
- client$1.emitWarningIfUnsupportedVersion(process.version);
449
+ const getRuntimeConfig = (config) => {
450
+ emitWarningIfUnsupportedVersion(process.version);
451
+ const defaultsMode = resolveDefaultsModeConfig(config);
452
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
453
+ const clientSharedValues = getRuntimeConfig$1(config);
454
+ emitWarningIfUnsupportedVersion$1(process.version);
455
455
  const loaderConfig = {
456
- profile: config$1?.profile,
456
+ profile: config?.profile,
457
457
  logger: clientSharedValues.logger,
458
458
  };
459
459
  return {
460
460
  ...clientSharedValues,
461
- ...config$1,
461
+ ...config,
462
462
  runtime: "node",
463
463
  defaultsMode,
464
- authSchemePreference: config$1?.authSchemePreference ?? config.loadConfig(httpAuthSchemes.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
465
- bodyLengthChecker: config$1?.bodyLengthChecker ?? serde.calculateBodyLength,
466
- defaultUserAgentProvider: config$1?.defaultUserAgentProvider ?? client$1.createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
467
- maxAttempts: config$1?.maxAttempts ?? config.loadConfig(retry.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config$1),
468
- region: config$1?.region ?? config.loadConfig(config.NODE_REGION_CONFIG_OPTIONS, { ...config.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
469
- requestHandler: nodeHttpHandler.NodeHttpHandler.create(config$1?.requestHandler ?? defaultConfigProvider),
470
- retryMode: config$1?.retryMode ??
471
- config.loadConfig({
472
- ...retry.NODE_RETRY_MODE_CONFIG_OPTIONS,
473
- default: async () => (await defaultConfigProvider()).retryMode || retry.DEFAULT_RETRY_MODE,
474
- }, config$1),
475
- sha256: config$1?.sha256 ?? serde.Hash.bind(null, "sha256"),
476
- streamCollector: config$1?.streamCollector ?? nodeHttpHandler.streamCollector,
477
- useDualstackEndpoint: config$1?.useDualstackEndpoint ?? config.loadConfig(config.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
478
- useFipsEndpoint: config$1?.useFipsEndpoint ?? config.loadConfig(config.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
479
- userAgentAppId: config$1?.userAgentAppId ?? config.loadConfig(client$1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
464
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
465
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
466
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
467
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
468
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
469
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
470
+ retryMode: config?.retryMode ??
471
+ loadConfig({
472
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
473
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
474
+ }, config),
475
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
476
+ streamCollector: config?.streamCollector ?? streamCollector,
477
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
478
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
479
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
480
480
  };
481
481
  };
482
482
 
@@ -520,51 +520,51 @@ const resolveHttpAuthRuntimeConfig = (config) => {
520
520
  };
521
521
 
522
522
  const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
523
- const extensionConfiguration = Object.assign(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
523
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
524
524
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
525
- return Object.assign(runtimeConfig, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
525
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
526
526
  };
527
527
 
528
- class CognitoIdentityClient extends client.Client {
528
+ class CognitoIdentityClient extends Client {
529
529
  config;
530
530
  constructor(...[configuration]) {
531
531
  const _config_0 = getRuntimeConfig(configuration || {});
532
532
  super(_config_0);
533
533
  this.initConfig = _config_0;
534
534
  const _config_1 = resolveClientEndpointParameters(_config_0);
535
- const _config_2 = client$1.resolveUserAgentConfig(_config_1);
536
- const _config_3 = retry.resolveRetryConfig(_config_2);
537
- const _config_4 = config.resolveRegionConfig(_config_3);
538
- const _config_5 = client$1.resolveHostHeaderConfig(_config_4);
539
- const _config_6 = endpoints.resolveEndpointConfig(_config_5);
535
+ const _config_2 = resolveUserAgentConfig(_config_1);
536
+ const _config_3 = resolveRetryConfig(_config_2);
537
+ const _config_4 = resolveRegionConfig(_config_3);
538
+ const _config_5 = resolveHostHeaderConfig(_config_4);
539
+ const _config_6 = resolveEndpointConfig(_config_5);
540
540
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
541
541
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
542
542
  this.config = _config_8;
543
- this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
544
- this.middlewareStack.use(client$1.getUserAgentPlugin(this.config));
545
- this.middlewareStack.use(retry.getRetryPlugin(this.config));
546
- this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
547
- this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config));
548
- this.middlewareStack.use(client$1.getLoggerPlugin(this.config));
549
- this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config));
550
- this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
543
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
544
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
545
+ this.middlewareStack.use(getRetryPlugin(this.config));
546
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
547
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
548
+ this.middlewareStack.use(getLoggerPlugin(this.config));
549
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
550
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
551
551
  httpAuthSchemeParametersProvider: defaultCognitoIdentityHttpAuthSchemeParametersProvider,
552
- identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
552
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
553
553
  "aws.auth#sigv4": config.credentials,
554
554
  }),
555
555
  }));
556
- this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
556
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
557
557
  }
558
558
  destroy() {
559
559
  super.destroy();
560
560
  }
561
561
  }
562
562
 
563
- class GetCredentialsForIdentityCommand extends client.Command
563
+ class GetCredentialsForIdentityCommand extends Command
564
564
  .classBuilder()
565
565
  .ep(commonParams)
566
566
  .m(function (Command, cs, config, o) {
567
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
567
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
568
568
  })
569
569
  .s("AWSCognitoIdentityService", "GetCredentialsForIdentity", {})
570
570
  .n("CognitoIdentityClient", "GetCredentialsForIdentityCommand")
@@ -572,11 +572,11 @@ class GetCredentialsForIdentityCommand extends client.Command
572
572
  .build() {
573
573
  }
574
574
 
575
- class GetIdCommand extends client.Command
575
+ class GetIdCommand extends Command
576
576
  .classBuilder()
577
577
  .ep(commonParams)
578
578
  .m(function (Command, cs, config, o) {
579
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
579
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
580
580
  })
581
581
  .s("AWSCognitoIdentityService", "GetId", {})
582
582
  .n("CognitoIdentityClient", "GetIdCommand")
@@ -590,10 +590,8 @@ const commands = {
590
590
  };
591
591
  class CognitoIdentity extends CognitoIdentityClient {
592
592
  }
593
- client.createAggregatedClient(commands, CognitoIdentity);
593
+ createAggregatedClient(commands, CognitoIdentity);
594
594
 
595
- exports.$Command = client.Command;
596
- exports.__Client = client.Client;
597
595
  exports.CognitoIdentity = CognitoIdentity;
598
596
  exports.CognitoIdentityClient = CognitoIdentityClient;
599
597
  exports.CognitoIdentityServiceException = CognitoIdentityServiceException;