Changesets · Branches · Tags · Compare
| Changeset | e317d4ccae55906dc8f3512bf22638acf2b679d6e8783f3cd27928046682d5ff |
|---|---|
| Author | Dallin Romney <dallinromney@gmail.com> · 2025-07-07 14:56 -07:00 |
| Committer | Dallin Romney <dallinromney@gmail.com> · 2025-07-07 14:56 -07:00 |
| Parents | 6e8c481b57a5 |
6 files changed
modified core/llm/llms/Bedrock.ts +28 −10
| @@ -21,6 +21,7 @@ | ||
| 21 | 21 | import { safeParseToolCallArgs } from "../../tools/parseArgs.js"; |
| 22 | 22 | import { renderChatMessage, stripImages } from "../../util/messageContent.js"; |
| 23 | 23 | import { BaseLLM } from "../index.js"; |
| 24 | +import { LlmApiRequestType } from "../openaiTypeConverters.js"; | |
| 24 | 25 | import { PROVIDER_TOOL_SUPPORT } from "../toolSupport.js"; |
| 25 | 26 | import { getSecureID } from "../utils/getSecureID.js"; |
| 26 | 27 | |
| @@ -47,6 +48,7 @@ | ||
| 47 | 48 | } |
| 48 | 49 | |
| 49 | 50 | class Bedrock extends BaseLLM { |
| 51 | + protected useOpenAIAdapterFor: (LlmApiRequestType | "*")[] = ["*"]; | |
| 50 | 52 | static providerName = "bedrock"; |
| 51 | 53 | static defaultOptions: Partial<LLMOptions> = { |
| 52 | 54 | region: "us-east-1", |
| @@ -76,6 +78,7 @@ | ||
| 76 | 78 | } else { |
| 77 | 79 | this.profile = "bedrock"; |
| 78 | 80 | } |
| 81 | + | |
| 79 | 82 | this.requestOptions = { |
| 80 | 83 | region: options.region, |
| 81 | 84 | headers: {}, |
| @@ -609,17 +612,32 @@ | ||
| 609 | 612 | } |
| 610 | 613 | |
| 611 | 614 | private async _getCredentials() { |
| 612 | - try { | |
| 613 | - return await fromNodeProviderChain({ | |
| 614 | - profile: this.profile, | |
| 615 | - ignoreCache: true, | |
| 616 | - })(); | |
| 617 | - } catch (e) { | |
| 618 | - console.warn( | |
| 619 | - `AWS profile with name ${this.profile} not found in ~/.aws/credentials, using default profile`, | |
| 620 | - ); | |
| 621 | - return await fromNodeProviderChain()(); | |
| 615 | + if (this.apiKey) { | |
| 616 | + const [accessKeyId, secretAccessKey] = this.apiKey.split(":"); | |
| 617 | + if (!accessKeyId || !secretAccessKey) { | |
| 618 | + throw new Error( | |
| 619 | + "Invalid Bedrock API key format. Expected format: accessKeyId:secretAccessKey", | |
| 620 | + ); | |
| 621 | + } | |
| 622 | + return { | |
| 623 | + accessKeyId, | |
| 624 | + secretAccessKey, | |
| 625 | + }; | |
| 626 | + } | |
| 627 | + | |
| 628 | + if (this.profile) { | |
| 629 | + try { | |
| 630 | + return await fromNodeProviderChain({ | |
| 631 | + profile: this.profile, | |
| 632 | + ignoreCache: true, | |
| 633 | + })(); | |
| 634 | + } catch (e) { | |
| 635 | + console.warn( | |
| 636 | + `AWS profile with name ${this.profile} not found in ~/.aws/credentials, using default profile`, | |
| 637 | + ); | |
| 638 | + } | |
| 622 | 639 | } |
| 640 | + return await fromNodeProviderChain()(); | |
| 623 | 641 | } |
| 624 | 642 | |
| 625 | 643 | // EMBED // |
modified packages/openai-adapters/package-lock.json +1621 −193
| @@ -9,6 +9,7 @@ | ||
| 9 | 9 | "version": "1.0.44", |
| 10 | 10 | "license": "Apache-2.0", |
| 11 | 11 | "dependencies": { |
| 12 | + "@aws-sdk/client-bedrock-runtime": "^3.842.0", | |
| 12 | 13 | "@continuedev/config-types": "^1.0.5", |
| 13 | 14 | "@continuedev/config-yaml": "^1.0.51", |
| 14 | 15 | "@continuedev/fetch": "^1.0.15", |
| @@ -42,6 +43,731 @@ | ||
| 42 | 43 | "node": ">=6.0.0" |
| 43 | 44 | } |
| 44 | 45 | }, |
| 46 | + "node_modules/@aws-crypto/crc32": { | |
| 47 | + "version": "5.2.0", | |
| 48 | + "resolved": "https://registry.npmjs.org/@aws-crypto/crc32/-/crc32-5.2.0.tgz", | |
| 49 | + "integrity": "sha512-nLbCWqQNgUiwwtFsen1AdzAtvuLRsQS8rYgMuxCrdKf9kOssamGLuPwyTY9wyYblNr9+1XM8v6zoDTPPSIeANg==", | |
| 50 | + "license": "Apache-2.0", | |
| 51 | + "dependencies": { | |
| 52 | + "@aws-crypto/util": "^5.2.0", | |
| 53 | + "@aws-sdk/types": "^3.222.0", | |
| 54 | + "tslib": "^2.6.2" | |
| 55 | + }, | |
| 56 | + "engines": { | |
| 57 | + "node": ">=16.0.0" | |
| 58 | + } | |
| 59 | + }, | |
| 60 | + "node_modules/@aws-crypto/sha256-browser": { | |
| 61 | + "version": "5.2.0", | |
| 62 | + "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-browser/-/sha256-browser-5.2.0.tgz", | |
| 63 | + "integrity": "sha512-AXfN/lGotSQwu6HNcEsIASo7kWXZ5HYWvfOmSNKDsEqC4OashTp8alTmaz+F7TC2L083SFv5RdB+qU3Vs1kZqw==", | |
| 64 | + "license": "Apache-2.0", | |
| 65 | + "dependencies": { | |
| 66 | + "@aws-crypto/sha256-js": "^5.2.0", | |
| 67 | + "@aws-crypto/supports-web-crypto": "^5.2.0", | |
| 68 | + "@aws-crypto/util": "^5.2.0", | |
| 69 | + "@aws-sdk/types": "^3.222.0", | |
| 70 | + "@aws-sdk/util-locate-window": "^3.0.0", | |
| 71 | + "@smithy/util-utf8": "^2.0.0", | |
| 72 | + "tslib": "^2.6.2" | |
| 73 | + } | |
| 74 | + }, | |
| 75 | + "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer": { | |
| 76 | + "version": "2.2.0", | |
| 77 | + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz", | |
| 78 | + "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==", | |
| 79 | + "license": "Apache-2.0", | |
| 80 | + "dependencies": { | |
| 81 | + "tslib": "^2.6.2" | |
| 82 | + }, | |
| 83 | + "engines": { | |
| 84 | + "node": ">=14.0.0" | |
| 85 | + } | |
| 86 | + }, | |
| 87 | + "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from": { | |
| 88 | + "version": "2.2.0", | |
| 89 | + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz", | |
| 90 | + "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==", | |
| 91 | + "license": "Apache-2.0", | |
| 92 | + "dependencies": { | |
| 93 | + "@smithy/is-array-buffer": "^2.2.0", | |
| 94 | + "tslib": "^2.6.2" | |
| 95 | + }, | |
| 96 | + "engines": { | |
| 97 | + "node": ">=14.0.0" | |
| 98 | + } | |
| 99 | + }, | |
| 100 | + "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8": { | |
| 101 | + "version": "2.3.0", | |
| 102 | + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz", | |
| 103 | + "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==", | |
| 104 | + "license": "Apache-2.0", | |
| 105 | + "dependencies": { | |
| 106 | + "@smithy/util-buffer-from": "^2.2.0", | |
| 107 | + "tslib": "^2.6.2" | |
| 108 | + }, | |
| 109 | + "engines": { | |
| 110 | + "node": ">=14.0.0" | |
| 111 | + } | |
| 112 | + }, | |
| 113 | + "node_modules/@aws-crypto/sha256-js": { | |
| 114 | + "version": "5.2.0", | |
| 115 | + "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-5.2.0.tgz", | |
| 116 | + "integrity": "sha512-FFQQyu7edu4ufvIZ+OadFpHHOt+eSTBaYaki44c+akjg7qZg9oOQeLlk77F6tSYqjDAFClrHJk9tMf0HdVyOvA==", | |
| 117 | + "license": "Apache-2.0", | |
| 118 | + "dependencies": { | |
| 119 | + "@aws-crypto/util": "^5.2.0", | |
| 120 | + "@aws-sdk/types": "^3.222.0", | |
| 121 | + "tslib": "^2.6.2" | |
| 122 | + }, | |
| 123 | + "engines": { | |
| 124 | + "node": ">=16.0.0" | |
| 125 | + } | |
| 126 | + }, | |
| 127 | + "node_modules/@aws-crypto/supports-web-crypto": { | |
| 128 | + "version": "5.2.0", | |
| 129 | + "resolved": "https://registry.npmjs.org/@aws-crypto/supports-web-crypto/-/supports-web-crypto-5.2.0.tgz", | |
| 130 | + "integrity": "sha512-iAvUotm021kM33eCdNfwIN//F77/IADDSs58i+MDaOqFrVjZo9bAal0NK7HurRuWLLpF1iLX7gbWrjHjeo+YFg==", | |
| 131 | + "license": "Apache-2.0", | |
| 132 | + "dependencies": { | |
| 133 | + "tslib": "^2.6.2" | |
| 134 | + } | |
| 135 | + }, | |
| 136 | + "node_modules/@aws-crypto/util": { | |
| 137 | + "version": "5.2.0", | |
| 138 | + "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-5.2.0.tgz", | |
| 139 | + "integrity": "sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==", | |
| 140 | + "license": "Apache-2.0", | |
| 141 | + "dependencies": { | |
| 142 | + "@aws-sdk/types": "^3.222.0", | |
| 143 | + "@smithy/util-utf8": "^2.0.0", | |
| 144 | + "tslib": "^2.6.2" | |
| 145 | + } | |
| 146 | + }, | |
| 147 | + "node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer": { | |
| 148 | + "version": "2.2.0", | |
| 149 | + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz", | |
| 150 | + "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==", | |
| 151 | + "license": "Apache-2.0", | |
| 152 | + "dependencies": { | |
| 153 | + "tslib": "^2.6.2" | |
| 154 | + }, | |
| 155 | + "engines": { | |
| 156 | + "node": ">=14.0.0" | |
| 157 | + } | |
| 158 | + }, | |
| 159 | + "node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from": { | |
| 160 | + "version": "2.2.0", | |
| 161 | + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz", | |
| 162 | + "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==", | |
| 163 | + "license": "Apache-2.0", | |
| 164 | + "dependencies": { | |
| 165 | + "@smithy/is-array-buffer": "^2.2.0", | |
| 166 | + "tslib": "^2.6.2" | |
| 167 | + }, | |
| 168 | + "engines": { | |
| 169 | + "node": ">=14.0.0" | |
| 170 | + } | |
| 171 | + }, | |
| 172 | + "node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8": { | |
| 173 | + "version": "2.3.0", | |
| 174 | + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz", | |
| 175 | + "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==", | |
| 176 | + "license": "Apache-2.0", | |
| 177 | + "dependencies": { | |
| 178 | + "@smithy/util-buffer-from": "^2.2.0", | |
| 179 | + "tslib": "^2.6.2" | |
| 180 | + }, | |
| 181 | + "engines": { | |
| 182 | + "node": ">=14.0.0" | |
| 183 | + } | |
| 184 | + }, | |
| 185 | + "node_modules/@aws-sdk/client-bedrock-runtime": { | |
| 186 | + "version": "3.842.0", | |
| 187 | + "resolved": "https://registry.npmjs.org/@aws-sdk/client-bedrock-runtime/-/client-bedrock-runtime-3.842.0.tgz", | |
| 188 | + "integrity": "sha512-CrGuU9YGqYZPm2hjjqJYC5+HMjky/HuvlUmboFDdpH96mwm/RrUQAO6sXYojeUPy9ceidUiHd3HskqvpiMTl2Q==", | |
| 189 | + "license": "Apache-2.0", | |
| 190 | + "dependencies": { | |
| 191 | + "@aws-crypto/sha256-browser": "5.2.0", | |
| 192 | + "@aws-crypto/sha256-js": "5.2.0", | |
| 193 | + "@aws-sdk/core": "3.840.0", | |
| 194 | + "@aws-sdk/credential-provider-node": "3.840.0", | |
| 195 | + "@aws-sdk/eventstream-handler-node": "3.840.0", | |
| 196 | + "@aws-sdk/middleware-eventstream": "3.840.0", | |
| 197 | + "@aws-sdk/middleware-host-header": "3.840.0", | |
| 198 | + "@aws-sdk/middleware-logger": "3.840.0", | |
| 199 | + "@aws-sdk/middleware-recursion-detection": "3.840.0", | |
| 200 | + "@aws-sdk/middleware-user-agent": "3.840.0", | |
| 201 | + "@aws-sdk/middleware-websocket": "3.840.0", | |
| 202 | + "@aws-sdk/region-config-resolver": "3.840.0", | |
| 203 | + "@aws-sdk/token-providers": "3.840.0", | |
| 204 | + "@aws-sdk/types": "3.840.0", | |
| 205 | + "@aws-sdk/util-endpoints": "3.840.0", | |
| 206 | + "@aws-sdk/util-user-agent-browser": "3.840.0", | |
| 207 | + "@aws-sdk/util-user-agent-node": "3.840.0", | |
| 208 | + "@smithy/config-resolver": "^4.1.4", | |
| 209 | + "@smithy/core": "^3.6.0", | |
| 210 | + "@smithy/eventstream-serde-browser": "^4.0.4", | |
| 211 | + "@smithy/eventstream-serde-config-resolver": "^4.1.2", | |
| 212 | + "@smithy/eventstream-serde-node": "^4.0.4", | |
| 213 | + "@smithy/fetch-http-handler": "^5.0.4", | |
| 214 | + "@smithy/hash-node": "^4.0.4", | |
| 215 | + "@smithy/invalid-dependency": "^4.0.4", | |
| 216 | + "@smithy/middleware-content-length": "^4.0.4", | |
| 217 | + "@smithy/middleware-endpoint": "^4.1.13", | |
| 218 | + "@smithy/middleware-retry": "^4.1.14", | |
| 219 | + "@smithy/middleware-serde": "^4.0.8", | |
| 220 | + "@smithy/middleware-stack": "^4.0.4", | |
| 221 | + "@smithy/node-config-provider": "^4.1.3", | |
| 222 | + "@smithy/node-http-handler": "^4.0.6", | |
| 223 | + "@smithy/protocol-http": "^5.1.2", | |
| 224 | + "@smithy/smithy-client": "^4.4.5", | |
| 225 | + "@smithy/types": "^4.3.1", | |
| 226 | + "@smithy/url-parser": "^4.0.4", | |
| 227 | + "@smithy/util-base64": "^4.0.0", | |
| 228 | + "@smithy/util-body-length-browser": "^4.0.0", | |
| 229 | + "@smithy/util-body-length-node": "^4.0.0", | |
| 230 | + "@smithy/util-defaults-mode-browser": "^4.0.21", | |
| 231 | + "@smithy/util-defaults-mode-node": "^4.0.21", | |
| 232 | + "@smithy/util-endpoints": "^3.0.6", | |
| 233 | + "@smithy/util-middleware": "^4.0.4", | |
| 234 | + "@smithy/util-retry": "^4.0.6", | |
| 235 | + "@smithy/util-stream": "^4.2.2", | |
| 236 | + "@smithy/util-utf8": "^4.0.0", | |
| 237 | + "@types/uuid": "^9.0.1", | |
| 238 | + "tslib": "^2.6.2", | |
| 239 | + "uuid": "^9.0.1" | |
| 240 | + }, | |
| 241 | + "engines": { | |
| 242 | + "node": ">=18.0.0" | |
| 243 | + } | |
| 244 | + }, | |
| 245 | + "node_modules/@aws-sdk/client-bedrock-runtime/node_modules/uuid": { | |
| 246 | + "version": "9.0.1", | |
| 247 | + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", | |
| 248 | + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", | |
| 249 | + "funding": [ | |
| 250 | + "https://github.com/sponsors/broofa", | |
| 251 | + "https://github.com/sponsors/ctavan" | |
| 252 | + ], | |
| 253 | + "license": "MIT", | |
| 254 | + "bin": { | |
| 255 | + "uuid": "dist/bin/uuid" | |
| 256 | + } | |
| 257 | + }, | |
| 258 | + "node_modules/@aws-sdk/client-sso": { | |
| 259 | + "version": "3.840.0", | |
| 260 | + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.840.0.tgz", | |
| 261 | + "integrity": "sha512-3Zp+FWN2hhmKdpS0Ragi5V2ZPsZNScE3jlbgoJjzjI/roHZqO+e3/+XFN4TlM0DsPKYJNp+1TAjmhxN6rOnfYA==", | |
| 262 | + "license": "Apache-2.0", | |
| 263 | + "dependencies": { | |
| 264 | + "@aws-crypto/sha256-browser": "5.2.0", | |
| 265 | + "@aws-crypto/sha256-js": "5.2.0", | |
| 266 | + "@aws-sdk/core": "3.840.0", | |
| 267 | + "@aws-sdk/middleware-host-header": "3.840.0", | |
| 268 | + "@aws-sdk/middleware-logger": "3.840.0", | |
| 269 | + "@aws-sdk/middleware-recursion-detection": "3.840.0", | |
| 270 | + "@aws-sdk/middleware-user-agent": "3.840.0", | |
| 271 | + "@aws-sdk/region-config-resolver": "3.840.0", | |
| 272 | + "@aws-sdk/types": "3.840.0", | |
| 273 | + "@aws-sdk/util-endpoints": "3.840.0", | |
| 274 | + "@aws-sdk/util-user-agent-browser": "3.840.0", | |
| 275 | + "@aws-sdk/util-user-agent-node": "3.840.0", | |
| 276 | + "@smithy/config-resolver": "^4.1.4", | |
| 277 | + "@smithy/core": "^3.6.0", | |
| 278 | + "@smithy/fetch-http-handler": "^5.0.4", | |
| 279 | + "@smithy/hash-node": "^4.0.4", | |
| 280 | + "@smithy/invalid-dependency": "^4.0.4", | |
| 281 | + "@smithy/middleware-content-length": "^4.0.4", | |
| 282 | + "@smithy/middleware-endpoint": "^4.1.13", | |
| 283 | + "@smithy/middleware-retry": "^4.1.14", | |
| 284 | + "@smithy/middleware-serde": "^4.0.8", | |
| 285 | + "@smithy/middleware-stack": "^4.0.4", | |
| 286 | + "@smithy/node-config-provider": "^4.1.3", | |
| 287 | + "@smithy/node-http-handler": "^4.0.6", | |
| 288 | + "@smithy/protocol-http": "^5.1.2", | |
| 289 | + "@smithy/smithy-client": "^4.4.5", | |
| 290 | + "@smithy/types": "^4.3.1", | |
| 291 | + "@smithy/url-parser": "^4.0.4", | |
| 292 | + "@smithy/util-base64": "^4.0.0", | |
| 293 | + "@smithy/util-body-length-browser": "^4.0.0", | |
| 294 | + "@smithy/util-body-length-node": "^4.0.0", | |
| 295 | + "@smithy/util-defaults-mode-browser": "^4.0.21", | |
| 296 | + "@smithy/util-defaults-mode-node": "^4.0.21", | |
| 297 | + "@smithy/util-endpoints": "^3.0.6", | |
| 298 | + "@smithy/util-middleware": "^4.0.4", | |
| 299 | + "@smithy/util-retry": "^4.0.6", | |
| 300 | + "@smithy/util-utf8": "^4.0.0", | |
| 301 | + "tslib": "^2.6.2" | |
| 302 | + }, | |
| 303 | + "engines": { | |
| 304 | + "node": ">=18.0.0" | |
| 305 | + } | |
| 306 | + }, | |
| 307 | + "node_modules/@aws-sdk/core": { | |
| 308 | + "version": "3.840.0", | |
| 309 | + "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.840.0.tgz", | |
| 310 | + "integrity": "sha512-x3Zgb39tF1h2XpU+yA4OAAQlW6LVEfXNlSedSYJ7HGKXqA/E9h3rWQVpYfhXXVVsLdYXdNw5KBUkoAoruoZSZA==", | |
| 311 | + "license": "Apache-2.0", | |
| 312 | + "dependencies": { | |
| 313 | + "@aws-sdk/types": "3.840.0", | |
| 314 | + "@aws-sdk/xml-builder": "3.821.0", | |
| 315 | + "@smithy/core": "^3.6.0", | |
| 316 | + "@smithy/node-config-provider": "^4.1.3", | |
| 317 | + "@smithy/property-provider": "^4.0.4", | |
| 318 | + "@smithy/protocol-http": "^5.1.2", | |
| 319 | + "@smithy/signature-v4": "^5.1.2", | |
| 320 | + "@smithy/smithy-client": "^4.4.5", | |
| 321 | + "@smithy/types": "^4.3.1", | |
| 322 | + "@smithy/util-base64": "^4.0.0", | |
| 323 | + "@smithy/util-body-length-browser": "^4.0.0", | |
| 324 | + "@smithy/util-middleware": "^4.0.4", | |
| 325 | + "@smithy/util-utf8": "^4.0.0", | |
| 326 | + "fast-xml-parser": "4.4.1", | |
| 327 | + "tslib": "^2.6.2" | |
| 328 | + }, | |
| 329 | + "engines": { | |
| 330 | + "node": ">=18.0.0" | |
| 331 | + } | |
| 332 | + }, | |
| 333 | + "node_modules/@aws-sdk/credential-provider-env": { | |
| 334 | + "version": "3.840.0", | |
| 335 | + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.840.0.tgz", | |
| 336 | + "integrity": "sha512-EzF6VcJK7XvQ/G15AVEfJzN2mNXU8fcVpXo4bRyr1S6t2q5zx6UPH/XjDbn18xyUmOq01t+r8gG+TmHEVo18fA==", | |
| 337 | + "license": "Apache-2.0", | |
| 338 | + "dependencies": { | |
| 339 | + "@aws-sdk/core": "3.840.0", | |
| 340 | + "@aws-sdk/types": "3.840.0", | |
| 341 | + "@smithy/property-provider": "^4.0.4", | |
| 342 | + "@smithy/types": "^4.3.1", | |
| 343 | + "tslib": "^2.6.2" | |
| 344 | + }, | |
| 345 | + "engines": { | |
| 346 | + "node": ">=18.0.0" | |
| 347 | + } | |
| 348 | + }, | |
| 349 | + "node_modules/@aws-sdk/credential-provider-http": { | |
| 350 | + "version": "3.840.0", | |
| 351 | + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.840.0.tgz", | |
| 352 | + "integrity": "sha512-wbnUiPGLVea6mXbUh04fu+VJmGkQvmToPeTYdHE8eRZq3NRDi3t3WltT+jArLBKD/4NppRpMjf2ju4coMCz91g==", | |
| 353 | + "license": "Apache-2.0", | |
| 354 | + "dependencies": { | |
| 355 | + "@aws-sdk/core": "3.840.0", | |
| 356 | + "@aws-sdk/types": "3.840.0", | |
| 357 | + "@smithy/fetch-http-handler": "^5.0.4", | |
| 358 | + "@smithy/node-http-handler": "^4.0.6", | |
| 359 | + "@smithy/property-provider": "^4.0.4", | |
| 360 | + "@smithy/protocol-http": "^5.1.2", | |
| 361 | + "@smithy/smithy-client": "^4.4.5", | |
| 362 | + "@smithy/types": "^4.3.1", | |
| 363 | + "@smithy/util-stream": "^4.2.2", | |
| 364 | + "tslib": "^2.6.2" | |
| 365 | + }, | |
| 366 | + "engines": { | |
| 367 | + "node": ">=18.0.0" | |
| 368 | + } | |
| 369 | + }, | |
| 370 | + "node_modules/@aws-sdk/credential-provider-ini": { | |
| 371 | + "version": "3.840.0", | |
| 372 | + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.840.0.tgz", | |
| 373 | + "integrity": "sha512-7F290BsWydShHb+7InXd+IjJc3mlEIm9I0R57F/Pjl1xZB69MdkhVGCnuETWoBt4g53ktJd6NEjzm/iAhFXFmw==", | |
| 374 | + "license": "Apache-2.0", | |
| 375 | + "dependencies": { | |
| 376 | + "@aws-sdk/core": "3.840.0", | |
| 377 | + "@aws-sdk/credential-provider-env": "3.840.0", | |
| 378 | + "@aws-sdk/credential-provider-http": "3.840.0", | |
| 379 | + "@aws-sdk/credential-provider-process": "3.840.0", | |
| 380 | + "@aws-sdk/credential-provider-sso": "3.840.0", | |
| 381 | + "@aws-sdk/credential-provider-web-identity": "3.840.0", | |
| 382 | + "@aws-sdk/nested-clients": "3.840.0", | |
| 383 | + "@aws-sdk/types": "3.840.0", | |
| 384 | + "@smithy/credential-provider-imds": "^4.0.6", | |
| 385 | + "@smithy/property-provider": "^4.0.4", | |
| 386 | + "@smithy/shared-ini-file-loader": "^4.0.4", | |
| 387 | + "@smithy/types": "^4.3.1", | |
| 388 | + "tslib": "^2.6.2" | |
| 389 | + }, | |
| 390 | + "engines": { | |
| 391 | + "node": ">=18.0.0" | |
| 392 | + } | |
| 393 | + }, | |
| 394 | + "node_modules/@aws-sdk/credential-provider-node": { | |
| 395 | + "version": "3.840.0", | |
| 396 | + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.840.0.tgz", | |
| 397 | + "integrity": "sha512-KufP8JnxA31wxklLm63evUPSFApGcH8X86z3mv9SRbpCm5ycgWIGVCTXpTOdgq6rPZrwT9pftzv2/b4mV/9clg==", | |
| 398 | + "license": "Apache-2.0", | |
| 399 | + "dependencies": { | |
| 400 | + "@aws-sdk/credential-provider-env": "3.840.0", | |
| 401 | + "@aws-sdk/credential-provider-http": "3.840.0", | |
| 402 | + "@aws-sdk/credential-provider-ini": "3.840.0", | |
| 403 | + "@aws-sdk/credential-provider-process": "3.840.0", | |
| 404 | + "@aws-sdk/credential-provider-sso": "3.840.0", | |
| 405 | + "@aws-sdk/credential-provider-web-identity": "3.840.0", | |
| 406 | + "@aws-sdk/types": "3.840.0", | |
| 407 | + "@smithy/credential-provider-imds": "^4.0.6", | |
| 408 | + "@smithy/property-provider": "^4.0.4", | |
| 409 | + "@smithy/shared-ini-file-loader": "^4.0.4", | |
| 410 | + "@smithy/types": "^4.3.1", | |
| 411 | + "tslib": "^2.6.2" | |
| 412 | + }, | |
| 413 | + "engines": { | |
| 414 | + "node": ">=18.0.0" | |
| 415 | + } | |
| 416 | + }, | |
| 417 | + "node_modules/@aws-sdk/credential-provider-process": { | |
| 418 | + "version": "3.840.0", | |
| 419 | + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.840.0.tgz", | |
| 420 | + "integrity": "sha512-HkDQWHy8tCI4A0Ps2NVtuVYMv9cB4y/IuD/TdOsqeRIAT12h8jDb98BwQPNLAImAOwOWzZJ8Cu0xtSpX7CQhMw==", | |
| 421 | + "license": "Apache-2.0", | |
| 422 | + "dependencies": { | |
| 423 | + "@aws-sdk/core": "3.840.0", | |
| 424 | + "@aws-sdk/types": "3.840.0", | |
| 425 | + "@smithy/property-provider": "^4.0.4", | |
| 426 | + "@smithy/shared-ini-file-loader": "^4.0.4", | |
| 427 | + "@smithy/types": "^4.3.1", | |
| 428 | + "tslib": "^2.6.2" | |
| 429 | + }, | |
| 430 | + "engines": { | |
| 431 | + "node": ">=18.0.0" | |
| 432 | + } | |
| 433 | + }, | |
| 434 | + "node_modules/@aws-sdk/credential-provider-sso": { | |
| 435 | + "version": "3.840.0", | |
| 436 | + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.840.0.tgz", | |
| 437 | + "integrity": "sha512-2qgdtdd6R0Z1y0KL8gzzwFUGmhBHSUx4zy85L2XV1CXhpRNwV71SVWJqLDVV5RVWVf9mg50Pm3AWrUC0xb0pcA==", | |
| 438 | + "license": "Apache-2.0", | |
| 439 | + "dependencies": { | |
| 440 | + "@aws-sdk/client-sso": "3.840.0", | |
| 441 | + "@aws-sdk/core": "3.840.0", | |
| 442 | + "@aws-sdk/token-providers": "3.840.0", | |
| 443 | + "@aws-sdk/types": "3.840.0", | |
| 444 | + "@smithy/property-provider": "^4.0.4", | |
| 445 | + "@smithy/shared-ini-file-loader": "^4.0.4", | |
| 446 | + "@smithy/types": "^4.3.1", | |
| 447 | + "tslib": "^2.6.2" | |
| 448 | + }, | |
| 449 | + "engines": { | |
| 450 | + "node": ">=18.0.0" | |
| 451 | + } | |
| 452 | + }, | |
| 453 | + "node_modules/@aws-sdk/credential-provider-web-identity": { | |
| 454 | + "version": "3.840.0", | |
| 455 | + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.840.0.tgz", | |
| 456 | + "integrity": "sha512-dpEeVXG8uNZSmVXReE4WP0lwoioX2gstk4RnUgrdUE3YaPq8A+hJiVAyc3h+cjDeIqfbsQbZm9qFetKC2LF9dQ==", | |
| 457 | + "license": "Apache-2.0", | |
| 458 | + "dependencies": { | |
| 459 | + "@aws-sdk/core": "3.840.0", | |
| 460 | + "@aws-sdk/nested-clients": "3.840.0", | |
| 461 | + "@aws-sdk/types": "3.840.0", | |
| 462 | + "@smithy/property-provider": "^4.0.4", | |
| 463 | + "@smithy/types": "^4.3.1", | |
| 464 | + "tslib": "^2.6.2" | |
| 465 | + }, | |
| 466 | + "engines": { | |
| 467 | + "node": ">=18.0.0" | |
| 468 | + } | |
| 469 | + }, | |
| 470 | + "node_modules/@aws-sdk/eventstream-handler-node": { | |
| 471 | + "version": "3.840.0", | |
| 472 | + "resolved": "https://registry.npmjs.org/@aws-sdk/eventstream-handler-node/-/eventstream-handler-node-3.840.0.tgz", | |
| 473 | + "integrity": "sha512-m/zVrSSAEHq+6h4sy0JUEBScB1pGgs/1+iRVhfzfbnf+/gTr4ut2jRq4tDiNEX9pQ1oFVvw+ntPua5qfquQeRQ==", | |
| 474 | + "license": "Apache-2.0", | |
| 475 | + "dependencies": { | |
| 476 | + "@aws-sdk/types": "3.840.0", | |
| 477 | + "@smithy/eventstream-codec": "^4.0.4", | |
| 478 | + "@smithy/types": "^4.3.1", | |
| 479 | + "tslib": "^2.6.2" | |
| 480 | + }, | |
| 481 | + "engines": { | |
| 482 | + "node": ">=18.0.0" | |
| 483 | + } | |
| 484 | + }, | |
| 485 | + "node_modules/@aws-sdk/middleware-eventstream": { | |
| 486 | + "version": "3.840.0", | |
| 487 | + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-eventstream/-/middleware-eventstream-3.840.0.tgz", | |
| 488 | + "integrity": "sha512-4khgf7AjJ4llh3aiNmZ+x4PGl4vkKNxRHn0xTgi6Iw1J3SChsF2mnNaLXK8hoXeydx756rw+JhqOuZH91i5l4w==", | |
| 489 | + "license": "Apache-2.0", | |
| 490 | + "dependencies": { | |
| 491 | + "@aws-sdk/types": "3.840.0", | |
| 492 | + "@smithy/protocol-http": "^5.1.2", | |
| 493 | + "@smithy/types": "^4.3.1", | |
| 494 | + "tslib": "^2.6.2" | |
| 495 | + }, | |
| 496 | + "engines": { | |
| 497 | + "node": ">=18.0.0" | |
| 498 | + } | |
| 499 | + }, | |
| 500 | + "node_modules/@aws-sdk/middleware-host-header": { | |
| 501 | + "version": "3.840.0", | |
| 502 | + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.840.0.tgz", | |
| 503 | + "integrity": "sha512-ub+hXJAbAje94+Ya6c6eL7sYujoE8D4Bumu1NUI8TXjUhVVn0HzVWQjpRLshdLsUp1AW7XyeJaxyajRaJQ8+Xg==", | |
| 504 | + "license": "Apache-2.0", | |
| 505 | + "dependencies": { | |
| 506 | + "@aws-sdk/types": "3.840.0", | |
| 507 | + "@smithy/protocol-http": "^5.1.2", | |
| 508 | + "@smithy/types": "^4.3.1", | |
| 509 | + "tslib": "^2.6.2" | |
| 510 | + }, | |
| 511 | + "engines": { | |
| 512 | + "node": ">=18.0.0" | |
| 513 | + } | |
| 514 | + }, | |
| 515 | + "node_modules/@aws-sdk/middleware-logger": { | |
| 516 | + "version": "3.840.0", | |
| 517 | + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.840.0.tgz", | |
| 518 | + "integrity": "sha512-lSV8FvjpdllpGaRspywss4CtXV8M7NNNH+2/j86vMH+YCOZ6fu2T/TyFd/tHwZ92vDfHctWkRbQxg0bagqwovA==", | |
| 519 | + "license": "Apache-2.0", | |
| 520 | + "dependencies": { | |
| 521 | + "@aws-sdk/types": "3.840.0", | |
| 522 | + "@smithy/types": "^4.3.1", | |
| 523 | + "tslib": "^2.6.2" | |
| 524 | + }, | |
| 525 | + "engines": { | |
| 526 | + "node": ">=18.0.0" | |
| 527 | + } | |
| 528 | + }, | |
| 529 | + "node_modules/@aws-sdk/middleware-recursion-detection": { | |
| 530 | + "version": "3.840.0", | |
| 531 | + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.840.0.tgz", | |
| 532 | + "integrity": "sha512-Gu7lGDyfddyhIkj1Z1JtrY5NHb5+x/CRiB87GjaSrKxkDaydtX2CU977JIABtt69l9wLbcGDIQ+W0uJ5xPof7g==", | |
| 533 | + "license": "Apache-2.0", | |
| 534 | + "dependencies": { | |
| 535 | + "@aws-sdk/types": "3.840.0", | |
| 536 | + "@smithy/protocol-http": "^5.1.2", | |
| 537 | + "@smithy/types": "^4.3.1", | |
| 538 | + "tslib": "^2.6.2" | |
| 539 | + }, | |
| 540 | + "engines": { | |
| 541 | + "node": ">=18.0.0" | |
| 542 | + } | |
| 543 | + }, | |
| 544 | + "node_modules/@aws-sdk/middleware-user-agent": { | |
| 545 | + "version": "3.840.0", | |
| 546 | + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.840.0.tgz", | |
| 547 | + "integrity": "sha512-hiiMf7BP5ZkAFAvWRcK67Mw/g55ar7OCrvrynC92hunx/xhMkrgSLM0EXIZ1oTn3uql9kH/qqGF0nqsK6K555A==", | |
| 548 | + "license": "Apache-2.0", | |
| 549 | + "dependencies": { | |
| 550 | + "@aws-sdk/core": "3.840.0", | |
| 551 | + "@aws-sdk/types": "3.840.0", | |
| 552 | + "@aws-sdk/util-endpoints": "3.840.0", | |
| 553 | + "@smithy/core": "^3.6.0", | |
| 554 | + "@smithy/protocol-http": "^5.1.2", | |
| 555 | + "@smithy/types": "^4.3.1", | |
| 556 | + "tslib": "^2.6.2" | |
| 557 | + }, | |
| 558 | + "engines": { | |
| 559 | + "node": ">=18.0.0" | |
| 560 | + } | |
| 561 | + }, | |
| 562 | + "node_modules/@aws-sdk/middleware-websocket": { | |
| 563 | + "version": "3.840.0", | |
| 564 | + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-websocket/-/middleware-websocket-3.840.0.tgz", | |
| 565 | + "integrity": "sha512-v9jJD1zjKMUg8iEZlFP5TLY7+DdwKodLgkNtls34+LMRbW+7Bue+H3gPi1VML5sks2o/+PJ6fz58Wo3bXZ8XHA==", | |
| 566 | + "license": "Apache-2.0", | |
| 567 | + "dependencies": { | |
| 568 | + "@aws-sdk/types": "3.840.0", | |
| 569 | + "@aws-sdk/util-format-url": "3.840.0", | |
| 570 | + "@smithy/eventstream-codec": "^4.0.4", | |
| 571 | + "@smithy/eventstream-serde-browser": "^4.0.4", | |
| 572 | + "@smithy/fetch-http-handler": "^5.0.4", | |
| 573 | + "@smithy/protocol-http": "^5.1.2", | |
| 574 | + "@smithy/signature-v4": "^5.1.2", | |
| 575 | + "@smithy/types": "^4.3.1", | |
| 576 | + "@smithy/util-hex-encoding": "^4.0.0", | |
| 577 | + "tslib": "^2.6.2" | |
| 578 | + }, | |
| 579 | + "engines": { | |
| 580 | + "node": ">= 14.0.0" | |
| 581 | + } | |
| 582 | + }, | |
| 583 | + "node_modules/@aws-sdk/nested-clients": { | |
| 584 | + "version": "3.840.0", | |
| 585 | + "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.840.0.tgz", | |
| 586 | + "integrity": "sha512-LXYYo9+n4hRqnRSIMXLBb+BLz+cEmjMtTudwK1BF6Bn2RfdDv29KuyeDRrPCS3TwKl7ZKmXUmE9n5UuHAPfBpA==", | |
| 587 | + "license": "Apache-2.0", | |
| 588 | + "dependencies": { | |
| 589 | + "@aws-crypto/sha256-browser": "5.2.0", | |
| 590 | + "@aws-crypto/sha256-js": "5.2.0", | |
| 591 | + "@aws-sdk/core": "3.840.0", | |
| 592 | + "@aws-sdk/middleware-host-header": "3.840.0", | |
| 593 | + "@aws-sdk/middleware-logger": "3.840.0", | |
| 594 | + "@aws-sdk/middleware-recursion-detection": "3.840.0", | |
| 595 | + "@aws-sdk/middleware-user-agent": "3.840.0", | |
| 596 | + "@aws-sdk/region-config-resolver": "3.840.0", | |
| 597 | + "@aws-sdk/types": "3.840.0", | |
| 598 | + "@aws-sdk/util-endpoints": "3.840.0", | |
| 599 | + "@aws-sdk/util-user-agent-browser": "3.840.0", | |
| 600 | + "@aws-sdk/util-user-agent-node": "3.840.0", | |
| 601 | + "@smithy/config-resolver": "^4.1.4", | |
| 602 | + "@smithy/core": "^3.6.0", | |
| 603 | + "@smithy/fetch-http-handler": "^5.0.4", | |
| 604 | + "@smithy/hash-node": "^4.0.4", | |
| 605 | + "@smithy/invalid-dependency": "^4.0.4", | |
| 606 | + "@smithy/middleware-content-length": "^4.0.4", | |
| 607 | + "@smithy/middleware-endpoint": "^4.1.13", | |
| 608 | + "@smithy/middleware-retry": "^4.1.14", | |
| 609 | + "@smithy/middleware-serde": "^4.0.8", | |
| 610 | + "@smithy/middleware-stack": "^4.0.4", | |
| 611 | + "@smithy/node-config-provider": "^4.1.3", | |
| 612 | + "@smithy/node-http-handler": "^4.0.6", | |
| 613 | + "@smithy/protocol-http": "^5.1.2", | |
| 614 | + "@smithy/smithy-client": "^4.4.5", | |
| 615 | + "@smithy/types": "^4.3.1", | |
| 616 | + "@smithy/url-parser": "^4.0.4", | |
| 617 | + "@smithy/util-base64": "^4.0.0", | |
| 618 | + "@smithy/util-body-length-browser": "^4.0.0", | |
| 619 | + "@smithy/util-body-length-node": "^4.0.0", | |
| 620 | + "@smithy/util-defaults-mode-browser": "^4.0.21", | |
| 621 | + "@smithy/util-defaults-mode-node": "^4.0.21", | |
| 622 | + "@smithy/util-endpoints": "^3.0.6", | |
| 623 | + "@smithy/util-middleware": "^4.0.4", | |
| 624 | + "@smithy/util-retry": "^4.0.6", | |
| 625 | + "@smithy/util-utf8": "^4.0.0", | |
| 626 | + "tslib": "^2.6.2" | |
| 627 | + }, | |
| 628 | + "engines": { | |
| 629 | + "node": ">=18.0.0" | |
| 630 | + } | |
| 631 | + }, | |
| 632 | + "node_modules/@aws-sdk/region-config-resolver": { | |
| 633 | + "version": "3.840.0", | |
| 634 | + "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.840.0.tgz", | |
| 635 | + "integrity": "sha512-Qjnxd/yDv9KpIMWr90ZDPtRj0v75AqGC92Lm9+oHXZ8p1MjG5JE2CW0HL8JRgK9iKzgKBL7pPQRXI8FkvEVfrA==", | |
| 636 | + "license": "Apache-2.0", | |
| 637 | + "dependencies": { | |
| 638 | + "@aws-sdk/types": "3.840.0", | |
| 639 | + "@smithy/node-config-provider": "^4.1.3", | |
| 640 | + "@smithy/types": "^4.3.1", | |
| 641 | + "@smithy/util-config-provider": "^4.0.0", | |
| 642 | + "@smithy/util-middleware": "^4.0.4", | |
| 643 | + "tslib": "^2.6.2" | |
| 644 | + }, | |
| 645 | + "engines": { | |
| 646 | + "node": ">=18.0.0" | |
| 647 | + } | |
| 648 | + }, | |
| 649 | + "node_modules/@aws-sdk/token-providers": { | |
| 650 | + "version": "3.840.0", | |
| 651 | + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.840.0.tgz", | |
| 652 | + "integrity": "sha512-6BuTOLTXvmgwjK7ve7aTg9JaWFdM5UoMolLVPMyh3wTv9Ufalh8oklxYHUBIxsKkBGO2WiHXytveuxH6tAgTYg==", | |
| 653 | + "license": "Apache-2.0", | |
| 654 | + "dependencies": { | |
| 655 | + "@aws-sdk/core": "3.840.0", | |
| 656 | + "@aws-sdk/nested-clients": "3.840.0", | |
| 657 | + "@aws-sdk/types": "3.840.0", | |
| 658 | + "@smithy/property-provider": "^4.0.4", | |
| 659 | + "@smithy/shared-ini-file-loader": "^4.0.4", | |
| 660 | + "@smithy/types": "^4.3.1", | |
| 661 | + "tslib": "^2.6.2" | |
| 662 | + }, | |
| 663 | + "engines": { | |
| 664 | + "node": ">=18.0.0" | |
| 665 | + } | |
| 666 | + }, | |
| 667 | + "node_modules/@aws-sdk/types": { | |
| 668 | + "version": "3.840.0", | |
| 669 | + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.840.0.tgz", | |
| 670 | + "integrity": "sha512-xliuHaUFZxEx1NSXeLLZ9Dyu6+EJVQKEoD+yM+zqUo3YDZ7medKJWY6fIOKiPX/N7XbLdBYwajb15Q7IL8KkeA==", | |
| 671 | + "license": "Apache-2.0", | |
| 672 | + "dependencies": { | |
| 673 | + "@smithy/types": "^4.3.1", | |
| 674 | + "tslib": "^2.6.2" | |
| 675 | + }, | |
| 676 | + "engines": { | |
| 677 | + "node": ">=18.0.0" | |
| 678 | + } | |
| 679 | + }, | |
| 680 | + "node_modules/@aws-sdk/util-endpoints": { | |
| 681 | + "version": "3.840.0", | |
| 682 | + "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.840.0.tgz", | |
| 683 | + "integrity": "sha512-eqE9ROdg/Kk0rj3poutyRCFauPDXIf/WSvCqFiRDDVi6QOnCv/M0g2XW8/jSvkJlOyaXkNCptapIp6BeeFFGYw==", | |
| 684 | + "license": "Apache-2.0", | |
| 685 | + "dependencies": { | |
| 686 | + "@aws-sdk/types": "3.840.0", | |
| 687 | + "@smithy/types": "^4.3.1", | |
| 688 | + "@smithy/util-endpoints": "^3.0.6", | |
| 689 | + "tslib": "^2.6.2" | |
| 690 | + }, | |
| 691 | + "engines": { | |
| 692 | + "node": ">=18.0.0" | |
| 693 | + } | |
| 694 | + }, | |
| 695 | + "node_modules/@aws-sdk/util-format-url": { | |
| 696 | + "version": "3.840.0", | |
| 697 | + "resolved": "https://registry.npmjs.org/@aws-sdk/util-format-url/-/util-format-url-3.840.0.tgz", | |
| 698 | + "integrity": "sha512-VB1PWyI1TQPiPvg4w7tgUGGQER1xxXPNUqfh3baxUSFi1Oh8wHrDnFywkxLm3NMmgDmnLnSZ5Q326qAoyqKLSg==", | |
| 699 | + "license": "Apache-2.0", | |
| 700 | + "dependencies": { | |
| 701 | + "@aws-sdk/types": "3.840.0", | |
| 702 | + "@smithy/querystring-builder": "^4.0.4", | |
| 703 | + "@smithy/types": "^4.3.1", | |
| 704 | + "tslib": "^2.6.2" | |
| 705 | + }, | |
| 706 | + "engines": { | |
| 707 | + "node": ">=18.0.0" | |
| 708 | + } | |
| 709 | + }, | |
| 710 | + "node_modules/@aws-sdk/util-locate-window": { | |
| 711 | + "version": "3.804.0", | |
| 712 | + "resolved": "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.804.0.tgz", | |
| 713 | + "integrity": "sha512-zVoRfpmBVPodYlnMjgVjfGoEZagyRF5IPn3Uo6ZvOZp24chnW/FRstH7ESDHDDRga4z3V+ElUQHKpFDXWyBW5A==", | |
| 714 | + "license": "Apache-2.0", | |
| 715 | + "dependencies": { | |
| 716 | + "tslib": "^2.6.2" | |
| 717 | + }, | |
| 718 | + "engines": { | |
| 719 | + "node": ">=18.0.0" | |
| 720 | + } | |
| 721 | + }, | |
| 722 | + "node_modules/@aws-sdk/util-user-agent-browser": { | |
| 723 | + "version": "3.840.0", | |
| 724 | + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.840.0.tgz", | |
| 725 | + "integrity": "sha512-JdyZM3EhhL4PqwFpttZu1afDpPJCCc3eyZOLi+srpX11LsGj6sThf47TYQN75HT1CarZ7cCdQHGzP2uy3/xHfQ==", | |
| 726 | + "license": "Apache-2.0", | |
| 727 | + "dependencies": { | |
| 728 | + "@aws-sdk/types": "3.840.0", | |
| 729 | + "@smithy/types": "^4.3.1", | |
| 730 | + "bowser": "^2.11.0", | |
| 731 | + "tslib": "^2.6.2" | |
| 732 | + } | |
| 733 | + }, | |
| 734 | + "node_modules/@aws-sdk/util-user-agent-node": { | |
| 735 | + "version": "3.840.0", | |
| 736 | + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.840.0.tgz", | |
| 737 | + "integrity": "sha512-Fy5JUEDQU1tPm2Yw/YqRYYc27W5+QD/J4mYvQvdWjUGZLB5q3eLFMGD35Uc28ZFoGMufPr4OCxK/bRfWROBRHQ==", | |
| 738 | + "license": "Apache-2.0", | |
| 739 | + "dependencies": { | |
| 740 | + "@aws-sdk/middleware-user-agent": "3.840.0", | |
| 741 | + "@aws-sdk/types": "3.840.0", | |
| 742 | + "@smithy/node-config-provider": "^4.1.3", | |
| 743 | + "@smithy/types": "^4.3.1", | |
| 744 | + "tslib": "^2.6.2" | |
| 745 | + }, | |
| 746 | + "engines": { | |
| 747 | + "node": ">=18.0.0" | |
| 748 | + }, | |
| 749 | + "peerDependencies": { | |
| 750 | + "aws-crt": ">=1.0.0" | |
| 751 | + }, | |
| 752 | + "peerDependenciesMeta": { | |
| 753 | + "aws-crt": { | |
| 754 | + "optional": true | |
| 755 | + } | |
| 756 | + } | |
| 757 | + }, | |
| 758 | + "node_modules/@aws-sdk/xml-builder": { | |
| 759 | + "version": "3.821.0", | |
| 760 | + "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.821.0.tgz", | |
| 761 | + "integrity": "sha512-DIIotRnefVL6DiaHtO6/21DhJ4JZnnIwdNbpwiAhdt/AVbttcE4yw925gsjur0OGv5BTYXQXU3YnANBYnZjuQA==", | |
| 762 | + "license": "Apache-2.0", | |
| 763 | + "dependencies": { | |
| 764 | + "@smithy/types": "^4.3.1", | |
| 765 | + "tslib": "^2.6.2" | |
| 766 | + }, | |
| 767 | + "engines": { | |
| 768 | + "node": ">=18.0.0" | |
| 769 | + } | |
| 770 | + }, | |
| 45 | 771 | "node_modules/@babel/code-frame": { |
| 46 | 772 | "version": "7.24.7", |
| 47 | 773 | "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz", |
| @@ -761,265 +1487,915 @@ | ||
| 761 | 1487 | "jest-get-type": "^29.6.3" |
| 762 | 1488 | }, |
| 763 | 1489 | "engines": { |
| 764 | - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" | |
| 1490 | + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" | |
| 1491 | + } | |
| 1492 | + }, | |
| 1493 | + "node_modules/@jest/fake-timers": { | |
| 1494 | + "version": "29.7.0", | |
| 1495 | + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", | |
| 1496 | + "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", | |
| 1497 | + "dev": true, | |
| 1498 | + "peer": true, | |
| 1499 | + "dependencies": { | |
| 1500 | + "@jest/types": "^29.6.3", | |
| 1501 | + "@sinonjs/fake-timers": "^10.0.2", | |
| 1502 | + "@types/node": "*", | |
| 1503 | + "jest-message-util": "^29.7.0", | |
| 1504 | + "jest-mock": "^29.7.0", | |
| 1505 | + "jest-util": "^29.7.0" | |
| 1506 | + }, | |
| 1507 | + "engines": { | |
| 1508 | + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" | |
| 1509 | + } | |
| 1510 | + }, | |
| 1511 | + "node_modules/@jest/globals": { | |
| 1512 | + "version": "29.7.0", | |
| 1513 | + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", | |
| 1514 | + "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", | |
| 1515 | + "dev": true, | |
| 1516 | + "peer": true, | |
| 1517 | + "dependencies": { | |
| 1518 | + "@jest/environment": "^29.7.0", | |
| 1519 | + "@jest/expect": "^29.7.0", | |
| 1520 | + "@jest/types": "^29.6.3", | |
| 1521 | + "jest-mock": "^29.7.0" | |
| 1522 | + }, | |
| 1523 | + "engines": { | |
| 1524 | + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" | |
| 1525 | + } | |
| 1526 | + }, | |
| 1527 | + "node_modules/@jest/reporters": { | |
| 1528 | + "version": "29.7.0", | |
| 1529 | + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", | |
| 1530 | + "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", | |
| 1531 | + "dev": true, | |
| 1532 | + "peer": true, | |
| 1533 | + "dependencies": { | |
| 1534 | + "@bcoe/v8-coverage": "^0.2.3", | |
| 1535 | + "@jest/console": "^29.7.0", | |
| 1536 | + "@jest/test-result": "^29.7.0", | |
| 1537 | + "@jest/transform": "^29.7.0", | |
| 1538 | + "@jest/types": "^29.6.3", | |
| 1539 | + "@jridgewell/trace-mapping": "^0.3.18", | |
| 1540 | + "@types/node": "*", | |
| 1541 | + "chalk": "^4.0.0", | |
| 1542 | + "collect-v8-coverage": "^1.0.0", | |
| 1543 | + "exit": "^0.1.2", | |
| 1544 | + "glob": "^7.1.3", | |
| 1545 | + "graceful-fs": "^4.2.9", | |
| 1546 | + "istanbul-lib-coverage": "^3.0.0", | |
| 1547 | + "istanbul-lib-instrument": "^6.0.0", | |
| 1548 | + "istanbul-lib-report": "^3.0.0", | |
| 1549 | + "istanbul-lib-source-maps": "^4.0.0", | |
| 1550 | + "istanbul-reports": "^3.1.3", | |
| 1551 | + "jest-message-util": "^29.7.0", | |
| 1552 | + "jest-util": "^29.7.0", | |
| 1553 | + "jest-worker": "^29.7.0", | |
| 1554 | + "slash": "^3.0.0", | |
| 1555 | + "string-length": "^4.0.1", | |
| 1556 | + "strip-ansi": "^6.0.0", | |
| 1557 | + "v8-to-istanbul": "^9.0.1" | |
| 1558 | + }, | |
| 1559 | + "engines": { | |
| 1560 | + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" | |
| 1561 | + }, | |
| 1562 | + "peerDependencies": { | |
| 1563 | + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" | |
| 1564 | + }, | |
| 1565 | + "peerDependenciesMeta": { | |
| 1566 | + "node-notifier": { | |
| 1567 | + "optional": true | |
| 1568 | + } | |
| 1569 | + } | |
| 1570 | + }, | |
| 1571 | + "node_modules/@jest/schemas": { | |
| 1572 | + "version": "29.6.3", | |
| 1573 | + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", | |
| 1574 | + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", | |
| 1575 | + "dev": true, | |
| 1576 | + "dependencies": { | |
| 1577 | + "@sinclair/typebox": "^0.27.8" | |
| 1578 | + }, | |
| 1579 | + "engines": { | |
| 1580 | + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" | |
| 1581 | + } | |
| 1582 | + }, | |
| 1583 | + "node_modules/@jest/source-map": { | |
| 1584 | + "version": "29.6.3", | |
| 1585 | + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", | |
| 1586 | + "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", | |
| 1587 | + "dev": true, | |
| 1588 | + "peer": true, | |
| 1589 | + "dependencies": { | |
| 1590 | + "@jridgewell/trace-mapping": "^0.3.18", | |
| 1591 | + "callsites": "^3.0.0", | |
| 1592 | + "graceful-fs": "^4.2.9" | |
| 1593 | + }, | |
| 1594 | + "engines": { | |
| 1595 | + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" | |
| 1596 | + } | |
| 1597 | + }, | |
| 1598 | + "node_modules/@jest/test-result": { | |
| 1599 | + "version": "29.7.0", | |
| 1600 | + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", | |
| 1601 | + "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", | |
| 1602 | + "dev": true, | |
| 1603 | + "peer": true, | |
| 1604 | + "dependencies": { | |
| 1605 | + "@jest/console": "^29.7.0", | |
| 1606 | + "@jest/types": "^29.6.3", | |
| 1607 | + "@types/istanbul-lib-coverage": "^2.0.0", | |
| 1608 | + "collect-v8-coverage": "^1.0.0" | |
| 1609 | + }, | |
| 1610 | + "engines": { | |
| 1611 | + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" | |
| 1612 | + } | |
| 1613 | + }, | |
| 1614 | + "node_modules/@jest/test-sequencer": { | |
| 1615 | + "version": "29.7.0", | |
| 1616 | + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", | |
| 1617 | + "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", | |
| 1618 | + "dev": true, | |
| 1619 | + "peer": true, | |
| 1620 | + "dependencies": { | |
| 1621 | + "@jest/test-result": "^29.7.0", | |
| 1622 | + "graceful-fs": "^4.2.9", | |
| 1623 | + "jest-haste-map": "^29.7.0", | |
| 1624 | + "slash": "^3.0.0" | |
| 1625 | + }, | |
| 1626 | + "engines": { | |
| 1627 | + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" | |
| 1628 | + } | |
| 1629 | + }, | |
| 1630 | + "node_modules/@jest/transform": { | |
| 1631 | + "version": "29.7.0", | |
| 1632 | + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", | |
| 1633 | + "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", | |
| 1634 | + "dev": true, | |
| 1635 | + "peer": true, | |
| 1636 | + "dependencies": { | |
| 1637 | + "@babel/core": "^7.11.6", | |
| 1638 | + "@jest/types": "^29.6.3", | |
| 1639 | + "@jridgewell/trace-mapping": "^0.3.18", | |
| 1640 | + "babel-plugin-istanbul": "^6.1.1", | |
| 1641 | + "chalk": "^4.0.0", | |
| 1642 | + "convert-source-map": "^2.0.0", | |
| 1643 | + "fast-json-stable-stringify": "^2.1.0", | |
| 1644 | + "graceful-fs": "^4.2.9", | |
| 1645 | + "jest-haste-map": "^29.7.0", | |
| 1646 | + "jest-regex-util": "^29.6.3", | |
| 1647 | + "jest-util": "^29.7.0", | |
| 1648 | + "micromatch": "^4.0.4", | |
| 1649 | + "pirates": "^4.0.4", | |
| 1650 | + "slash": "^3.0.0", | |
| 1651 | + "write-file-atomic": "^4.0.2" | |
| 1652 | + }, | |
| 1653 | + "engines": { | |
| 1654 | + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" | |
| 1655 | + } | |
| 1656 | + }, | |
| 1657 | + "node_modules/@jest/types": { | |
| 1658 | + "version": "29.6.3", | |
| 1659 | + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", | |
| 1660 | + "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", | |
| 1661 | + "dev": true, | |
| 1662 | + "dependencies": { | |
| 1663 | + "@jest/schemas": "^29.6.3", | |
| 1664 | + "@types/istanbul-lib-coverage": "^2.0.0", | |
| 1665 | + "@types/istanbul-reports": "^3.0.0", | |
| 1666 | + "@types/node": "*", | |
| 1667 | + "@types/yargs": "^17.0.8", | |
| 1668 | + "chalk": "^4.0.0" | |
| 1669 | + }, | |
| 1670 | + "engines": { | |
| 1671 | + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" | |
| 1672 | + } | |
| 1673 | + }, | |
| 1674 | + "node_modules/@jridgewell/gen-mapping": { | |
| 1675 | + "version": "0.3.5", | |
| 1676 | + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", | |
| 1677 | + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", | |
| 1678 | + "dev": true, | |
| 1679 | + "peer": true, | |
| 1680 | + "dependencies": { | |
| 1681 | + "@jridgewell/set-array": "^1.2.1", | |
| 1682 | + "@jridgewell/sourcemap-codec": "^1.4.10", | |
| 1683 | + "@jridgewell/trace-mapping": "^0.3.24" | |
| 1684 | + }, | |
| 1685 | + "engines": { | |
| 1686 | + "node": ">=6.0.0" | |
| 1687 | + } | |
| 1688 | + }, | |
| 1689 | + "node_modules/@jridgewell/resolve-uri": { | |
| 1690 | + "version": "3.1.2", | |
| 1691 | + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", | |
| 1692 | + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", | |
| 1693 | + "dev": true, | |
| 1694 | + "engines": { | |
| 1695 | + "node": ">=6.0.0" | |
| 1696 | + } | |
| 1697 | + }, | |
| 1698 | + "node_modules/@jridgewell/set-array": { | |
| 1699 | + "version": "1.2.1", | |
| 1700 | + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", | |
| 1701 | + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", | |
| 1702 | + "dev": true, | |
| 1703 | + "peer": true, | |
| 1704 | + "engines": { | |
| 1705 | + "node": ">=6.0.0" | |
| 1706 | + } | |
| 1707 | + }, | |
| 1708 | + "node_modules/@jridgewell/sourcemap-codec": { | |
| 1709 | + "version": "1.5.0", | |
| 1710 | + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", | |
| 1711 | + "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", | |
| 1712 | + "dev": true | |
| 1713 | + }, | |
| 1714 | + "node_modules/@jridgewell/trace-mapping": { | |
| 1715 | + "version": "0.3.25", | |
| 1716 | + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", | |
| 1717 | + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", | |
| 1718 | + "dev": true, | |
| 1719 | + "peer": true, | |
| 1720 | + "dependencies": { | |
| 1721 | + "@jridgewell/resolve-uri": "^3.1.0", | |
| 1722 | + "@jridgewell/sourcemap-codec": "^1.4.14" | |
| 1723 | + } | |
| 1724 | + }, | |
| 1725 | + "node_modules/@sinclair/typebox": { | |
| 1726 | + "version": "0.27.8", | |
| 1727 | + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", | |
| 1728 | + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", | |
| 1729 | + "dev": true | |
| 1730 | + }, | |
| 1731 | + "node_modules/@sinonjs/commons": { | |
| 1732 | + "version": "3.0.1", | |
| 1733 | + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", | |
| 1734 | + "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", | |
| 1735 | + "dev": true, | |
| 1736 | + "peer": true, | |
| 1737 | + "dependencies": { | |
| 1738 | + "type-detect": "4.0.8" | |
| 1739 | + } | |
| 1740 | + }, | |
| 1741 | + "node_modules/@sinonjs/fake-timers": { | |
| 1742 | + "version": "10.3.0", | |
| 1743 | + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", | |
| 1744 | + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", | |
| 1745 | + "dev": true, | |
| 1746 | + "peer": true, | |
| 1747 | + "dependencies": { | |
| 1748 | + "@sinonjs/commons": "^3.0.0" | |
| 1749 | + } | |
| 1750 | + }, | |
| 1751 | + "node_modules/@smithy/abort-controller": { | |
| 1752 | + "version": "4.0.4", | |
| 1753 | + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-4.0.4.tgz", | |
| 1754 | + "integrity": "sha512-gJnEjZMvigPDQWHrW3oPrFhQtkrgqBkyjj3pCIdF3A5M6vsZODG93KNlfJprv6bp4245bdT32fsHK4kkH3KYDA==", | |
| 1755 | + "license": "Apache-2.0", | |
| 1756 | + "dependencies": { | |
| 1757 | + "@smithy/types": "^4.3.1", | |
| 1758 | + "tslib": "^2.6.2" | |
| 1759 | + }, | |
| 1760 | + "engines": { | |
| 1761 | + "node": ">=18.0.0" | |
| 1762 | + } | |
| 1763 | + }, | |
| 1764 | + "node_modules/@smithy/config-resolver": { | |
| 1765 | + "version": "4.1.4", | |
| 1766 | + "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-4.1.4.tgz", | |
| 1767 | + "integrity": "sha512-prmU+rDddxHOH0oNcwemL+SwnzcG65sBF2yXRO7aeXIn/xTlq2pX7JLVbkBnVLowHLg4/OL4+jBmv9hVrVGS+w==", | |
| 1768 | + "license": "Apache-2.0", | |
| 1769 | + "dependencies": { | |
| 1770 | + "@smithy/node-config-provider": "^4.1.3", | |
| 1771 | + "@smithy/types": "^4.3.1", | |
| 1772 | + "@smithy/util-config-provider": "^4.0.0", | |
| 1773 | + "@smithy/util-middleware": "^4.0.4", | |
| 1774 | + "tslib": "^2.6.2" | |
| 1775 | + }, | |
| 1776 | + "engines": { | |
| 1777 | + "node": ">=18.0.0" | |
| 1778 | + } | |
| 1779 | + }, | |
| 1780 | + "node_modules/@smithy/core": { | |
| 1781 | + "version": "3.6.0", | |
| 1782 | + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.6.0.tgz", | |
| 1783 | + "integrity": "sha512-Pgvfb+TQ4wUNLyHzvgCP4aYZMh16y7GcfF59oirRHcgGgkH1e/s9C0nv/v3WP+Quymyr5je71HeFQCwh+44XLg==", | |
| 1784 | + "license": "Apache-2.0", | |
| 1785 | + "dependencies": { | |
| 1786 | + "@smithy/middleware-serde": "^4.0.8", | |
| 1787 | + "@smithy/protocol-http": "^5.1.2", | |
| 1788 | + "@smithy/types": "^4.3.1", | |
| 1789 | + "@smithy/util-base64": "^4.0.0", | |
| 1790 | + "@smithy/util-body-length-browser": "^4.0.0", | |
| 1791 | + "@smithy/util-middleware": "^4.0.4", | |
| 1792 | + "@smithy/util-stream": "^4.2.2", | |
| 1793 | + "@smithy/util-utf8": "^4.0.0", | |
| 1794 | + "tslib": "^2.6.2" | |
| 1795 | + }, | |
| 1796 | + "engines": { | |
| 1797 | + "node": ">=18.0.0" | |
| 1798 | + } | |
| 1799 | + }, | |
| 1800 | + "node_modules/@smithy/credential-provider-imds": { | |
| 1801 | + "version": "4.0.6", | |
| 1802 | + "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-4.0.6.tgz", | |
| 1803 | + "integrity": "sha512-hKMWcANhUiNbCJouYkZ9V3+/Qf9pteR1dnwgdyzR09R4ODEYx8BbUysHwRSyex4rZ9zapddZhLFTnT4ZijR4pw==", | |
| 1804 | + "license": "Apache-2.0", | |
| 1805 | + "dependencies": { | |
| 1806 | + "@smithy/node-config-provider": "^4.1.3", | |
| 1807 | + "@smithy/property-provider": "^4.0.4", | |
| 1808 | + "@smithy/types": "^4.3.1", | |
| 1809 | + "@smithy/url-parser": "^4.0.4", | |
| 1810 | + "tslib": "^2.6.2" | |
| 1811 | + }, | |
| 1812 | + "engines": { | |
| 1813 | + "node": ">=18.0.0" | |
| 1814 | + } | |
| 1815 | + }, | |
| 1816 | + "node_modules/@smithy/eventstream-codec": { | |
| 1817 | + "version": "4.0.4", | |
| 1818 | + "resolved": "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-4.0.4.tgz", | |
| 1819 | + "integrity": "sha512-7XoWfZqWb/QoR/rAU4VSi0mWnO2vu9/ltS6JZ5ZSZv0eovLVfDfu0/AX4ub33RsJTOth3TiFWSHS5YdztvFnig==", | |
| 1820 | + "license": "Apache-2.0", | |
| 1821 | + "dependencies": { | |
| 1822 | + "@aws-crypto/crc32": "5.2.0", | |
| 1823 | + "@smithy/types": "^4.3.1", | |
| 1824 | + "@smithy/util-hex-encoding": "^4.0.0", | |
| 1825 | + "tslib": "^2.6.2" | |
| 1826 | + }, | |
| 1827 | + "engines": { | |
| 1828 | + "node": ">=18.0.0" | |
| 1829 | + } | |
| 1830 | + }, | |
| 1831 | + "node_modules/@smithy/eventstream-serde-browser": { | |
| 1832 | + "version": "4.0.4", | |
| 1833 | + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-browser/-/eventstream-serde-browser-4.0.4.tgz", | |
| 1834 | + "integrity": "sha512-3fb/9SYaYqbpy/z/H3yIi0bYKyAa89y6xPmIqwr2vQiUT2St+avRt8UKwsWt9fEdEasc5d/V+QjrviRaX1JRFA==", | |
| 1835 | + "license": "Apache-2.0", | |
| 1836 | + "dependencies": { | |
| 1837 | + "@smithy/eventstream-serde-universal": "^4.0.4", | |
| 1838 | + "@smithy/types": "^4.3.1", | |
| 1839 | + "tslib": "^2.6.2" | |
| 1840 | + }, | |
| 1841 | + "engines": { | |
| 1842 | + "node": ">=18.0.0" | |
| 1843 | + } | |
| 1844 | + }, | |
| 1845 | + "node_modules/@smithy/eventstream-serde-config-resolver": { | |
| 1846 | + "version": "4.1.2", | |
| 1847 | + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-config-resolver/-/eventstream-serde-config-resolver-4.1.2.tgz", | |
| 1848 | + "integrity": "sha512-JGtambizrWP50xHgbzZI04IWU7LdI0nh/wGbqH3sJesYToMi2j/DcoElqyOcqEIG/D4tNyxgRuaqBXWE3zOFhQ==", | |
| 1849 | + "license": "Apache-2.0", | |
| 1850 | + "dependencies": { | |
| 1851 | + "@smithy/types": "^4.3.1", | |
| 1852 | + "tslib": "^2.6.2" | |
| 1853 | + }, | |
| 1854 | + "engines": { | |
| 1855 | + "node": ">=18.0.0" | |
| 1856 | + } | |
| 1857 | + }, | |
| 1858 | + "node_modules/@smithy/eventstream-serde-node": { | |
| 1859 | + "version": "4.0.4", | |
| 1860 | + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-node/-/eventstream-serde-node-4.0.4.tgz", | |
| 1861 | + "integrity": "sha512-RD6UwNZ5zISpOWPuhVgRz60GkSIp0dy1fuZmj4RYmqLVRtejFqQ16WmfYDdoSoAjlp1LX+FnZo+/hkdmyyGZ1w==", | |
| 1862 | + "license": "Apache-2.0", | |
| 1863 | + "dependencies": { | |
| 1864 | + "@smithy/eventstream-serde-universal": "^4.0.4", | |
| 1865 | + "@smithy/types": "^4.3.1", | |
| 1866 | + "tslib": "^2.6.2" | |
| 1867 | + }, | |
| 1868 | + "engines": { | |
| 1869 | + "node": ">=18.0.0" | |
| 1870 | + } | |
| 1871 | + }, | |
| 1872 | + "node_modules/@smithy/eventstream-serde-universal": { | |
| 1873 | + "version": "4.0.4", | |
| 1874 | + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-universal/-/eventstream-serde-universal-4.0.4.tgz", | |
| 1875 | + "integrity": "sha512-UeJpOmLGhq1SLox79QWw/0n2PFX+oPRE1ZyRMxPIaFEfCqWaqpB7BU9C8kpPOGEhLF7AwEqfFbtwNxGy4ReENA==", | |
| 1876 | + "license": "Apache-2.0", | |
| 1877 | + "dependencies": { | |
| 1878 | + "@smithy/eventstream-codec": "^4.0.4", | |
| 1879 | + "@smithy/types": "^4.3.1", | |
| 1880 | + "tslib": "^2.6.2" | |
| 1881 | + }, | |
| 1882 | + "engines": { | |
| 1883 | + "node": ">=18.0.0" | |
| 1884 | + } | |
| 1885 | + }, | |
| 1886 | + "node_modules/@smithy/fetch-http-handler": { | |
| 1887 | + "version": "5.0.4", | |
| 1888 | + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-5.0.4.tgz", | |
| 1889 | + "integrity": "sha512-AMtBR5pHppYMVD7z7G+OlHHAcgAN7v0kVKEpHuTO4Gb199Gowh0taYi9oDStFeUhetkeP55JLSVlTW1n9rFtUw==", | |
| 1890 | + "license": "Apache-2.0", | |
| 1891 | + "dependencies": { | |
| 1892 | + "@smithy/protocol-http": "^5.1.2", | |
| 1893 | + "@smithy/querystring-builder": "^4.0.4", | |
| 1894 | + "@smithy/types": "^4.3.1", | |
| 1895 | + "@smithy/util-base64": "^4.0.0", | |
| 1896 | + "tslib": "^2.6.2" | |
| 1897 | + }, | |
| 1898 | + "engines": { | |
| 1899 | + "node": ">=18.0.0" | |
| 1900 | + } | |
| 1901 | + }, | |
| 1902 | + "node_modules/@smithy/hash-node": { | |
| 1903 | + "version": "4.0.4", | |
| 1904 | + "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-4.0.4.tgz", | |
| 1905 | + "integrity": "sha512-qnbTPUhCVnCgBp4z4BUJUhOEkVwxiEi1cyFM+Zj6o+aY8OFGxUQleKWq8ltgp3dujuhXojIvJWdoqpm6dVO3lQ==", | |
| 1906 | + "license": "Apache-2.0", | |
| 1907 | + "dependencies": { | |
| 1908 | + "@smithy/types": "^4.3.1", | |
| 1909 | + "@smithy/util-buffer-from": "^4.0.0", | |
| 1910 | + "@smithy/util-utf8": "^4.0.0", | |
| 1911 | + "tslib": "^2.6.2" | |
| 1912 | + }, | |
| 1913 | + "engines": { | |
| 1914 | + "node": ">=18.0.0" | |
| 1915 | + } | |
| 1916 | + }, | |
| 1917 | + "node_modules/@smithy/invalid-dependency": { | |
| 1918 | + "version": "4.0.4", | |
| 1919 | + "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-4.0.4.tgz", | |
| 1920 | + "integrity": "sha512-bNYMi7WKTJHu0gn26wg8OscncTt1t2b8KcsZxvOv56XA6cyXtOAAAaNP7+m45xfppXfOatXF3Sb1MNsLUgVLTw==", | |
| 1921 | + "license": "Apache-2.0", | |
| 1922 | + "dependencies": { | |
| 1923 | + "@smithy/types": "^4.3.1", | |
| 1924 | + "tslib": "^2.6.2" | |
| 1925 | + }, | |
| 1926 | + "engines": { | |
| 1927 | + "node": ">=18.0.0" | |
| 1928 | + } | |
| 1929 | + }, | |
| 1930 | + "node_modules/@smithy/is-array-buffer": { | |
| 1931 | + "version": "4.0.0", | |
| 1932 | + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-4.0.0.tgz", | |
| 1933 | + "integrity": "sha512-saYhF8ZZNoJDTvJBEWgeBccCg+yvp1CX+ed12yORU3NilJScfc6gfch2oVb4QgxZrGUx3/ZJlb+c/dJbyupxlw==", | |
| 1934 | + "license": "Apache-2.0", | |
| 1935 | + "dependencies": { | |
| 1936 | + "tslib": "^2.6.2" | |
| 1937 | + }, | |
| 1938 | + "engines": { | |
| 1939 | + "node": ">=18.0.0" | |
| 1940 | + } | |
| 1941 | + }, | |
| 1942 | + "node_modules/@smithy/middleware-content-length": { | |
| 1943 | + "version": "4.0.4", | |
| 1944 | + "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-4.0.4.tgz", | |
| 1945 | + "integrity": "sha512-F7gDyfI2BB1Kc+4M6rpuOLne5LOcEknH1n6UQB69qv+HucXBR1rkzXBnQTB2q46sFy1PM/zuSJOB532yc8bg3w==", | |
| 1946 | + "license": "Apache-2.0", | |
| 1947 | + "dependencies": { | |
| 1948 | + "@smithy/protocol-http": "^5.1.2", | |
| 1949 | + "@smithy/types": "^4.3.1", | |
| 1950 | + "tslib": "^2.6.2" | |
| 1951 | + }, | |
| 1952 | + "engines": { | |
| 1953 | + "node": ">=18.0.0" | |
| 1954 | + } | |
| 1955 | + }, | |
| 1956 | + "node_modules/@smithy/middleware-endpoint": { | |
| 1957 | + "version": "4.1.13", | |
| 1958 | + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-4.1.13.tgz", | |
| 1959 | + "integrity": "sha512-xg3EHV/Q5ZdAO5b0UiIMj3RIOCobuS40pBBODguUDVdko6YK6QIzCVRrHTogVuEKglBWqWenRnZ71iZnLL3ZAQ==", | |
| 1960 | + "license": "Apache-2.0", | |
| 1961 | + "dependencies": { | |
| 1962 | + "@smithy/core": "^3.6.0", | |
| 1963 | + "@smithy/middleware-serde": "^4.0.8", | |
| 1964 | + "@smithy/node-config-provider": "^4.1.3", | |
| 1965 | + "@smithy/shared-ini-file-loader": "^4.0.4", | |
| 1966 | + "@smithy/types": "^4.3.1", | |
| 1967 | + "@smithy/url-parser": "^4.0.4", | |
| 1968 | + "@smithy/util-middleware": "^4.0.4", | |
| 1969 | + "tslib": "^2.6.2" | |
| 1970 | + }, | |
| 1971 | + "engines": { | |
| 1972 | + "node": ">=18.0.0" | |
| 1973 | + } | |
| 1974 | + }, | |
| 1975 | + "node_modules/@smithy/middleware-retry": { | |
| 1976 | + "version": "4.1.14", | |
| 1977 | + "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-4.1.14.tgz", | |
| 1978 | + "integrity": "sha512-eoXaLlDGpKvdmvt+YBfRXE7HmIEtFF+DJCbTPwuLunP0YUnrydl+C4tS+vEM0+nyxXrX3PSUFqC+lP1+EHB1Tw==", | |
| 1979 | + "license": "Apache-2.0", | |
| 1980 | + "dependencies": { | |
| 1981 | + "@smithy/node-config-provider": "^4.1.3", | |
| 1982 | + "@smithy/protocol-http": "^5.1.2", | |
| 1983 | + "@smithy/service-error-classification": "^4.0.6", | |
| 1984 | + "@smithy/smithy-client": "^4.4.5", | |
| 1985 | + "@smithy/types": "^4.3.1", | |
| 1986 | + "@smithy/util-middleware": "^4.0.4", | |
| 1987 | + "@smithy/util-retry": "^4.0.6", | |
| 1988 | + "tslib": "^2.6.2", | |
| 1989 | + "uuid": "^9.0.1" | |
| 1990 | + }, | |
| 1991 | + "engines": { | |
| 1992 | + "node": ">=18.0.0" | |
| 1993 | + } | |
| 1994 | + }, | |
| 1995 | + "node_modules/@smithy/middleware-retry/node_modules/uuid": { | |
| 1996 | + "version": "9.0.1", | |
| 1997 | + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", | |
| 1998 | + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", | |
| 1999 | + "funding": [ | |
| 2000 | + "https://github.com/sponsors/broofa", | |
| 2001 | + "https://github.com/sponsors/ctavan" | |
| 2002 | + ], | |
| 2003 | + "license": "MIT", | |
| 2004 | + "bin": { | |
| 2005 | + "uuid": "dist/bin/uuid" | |
| 2006 | + } | |
| 2007 | + }, | |
| 2008 | + "node_modules/@smithy/middleware-serde": { | |
| 2009 | + "version": "4.0.8", | |
| 2010 | + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-4.0.8.tgz", | |
| 2011 | + "integrity": "sha512-iSSl7HJoJaGyMIoNn2B7czghOVwJ9nD7TMvLhMWeSB5vt0TnEYyRRqPJu/TqW76WScaNvYYB8nRoiBHR9S1Ddw==", | |
| 2012 | + "license": "Apache-2.0", | |
| 2013 | + "dependencies": { | |
| 2014 | + "@smithy/protocol-http": "^5.1.2", | |
| 2015 | + "@smithy/types": "^4.3.1", | |
| 2016 | + "tslib": "^2.6.2" | |
| 2017 | + }, | |
| 2018 | + "engines": { | |
| 2019 | + "node": ">=18.0.0" | |
| 2020 | + } | |
| 2021 | + }, | |
| 2022 | + "node_modules/@smithy/middleware-stack": { | |
| 2023 | + "version": "4.0.4", | |
| 2024 | + "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-4.0.4.tgz", | |
| 2025 | + "integrity": "sha512-kagK5ggDrBUCCzI93ft6DjteNSfY8Ulr83UtySog/h09lTIOAJ/xUSObutanlPT0nhoHAkpmW9V5K8oPyLh+QA==", | |
| 2026 | + "license": "Apache-2.0", | |
| 2027 | + "dependencies": { | |
| 2028 | + "@smithy/types": "^4.3.1", | |
| 2029 | + "tslib": "^2.6.2" | |
| 2030 | + }, | |
| 2031 | + "engines": { | |
| 2032 | + "node": ">=18.0.0" | |
| 2033 | + } | |
| 2034 | + }, | |
| 2035 | + "node_modules/@smithy/node-config-provider": { | |
| 2036 | + "version": "4.1.3", | |
| 2037 | + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.1.3.tgz", | |
| 2038 | + "integrity": "sha512-HGHQr2s59qaU1lrVH6MbLlmOBxadtzTsoO4c+bF5asdgVik3I8o7JIOzoeqWc5MjVa+vD36/LWE0iXKpNqooRw==", | |
| 2039 | + "license": "Apache-2.0", | |
| 2040 | + "dependencies": { | |
| 2041 | + "@smithy/property-provider": "^4.0.4", | |
| 2042 | + "@smithy/shared-ini-file-loader": "^4.0.4", | |
| 2043 | + "@smithy/types": "^4.3.1", | |
| 2044 | + "tslib": "^2.6.2" | |
| 2045 | + }, | |
| 2046 | + "engines": { | |
| 2047 | + "node": ">=18.0.0" | |
| 2048 | + } | |
| 2049 | + }, | |
| 2050 | + "node_modules/@smithy/node-http-handler": { | |
| 2051 | + "version": "4.0.6", | |
| 2052 | + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-4.0.6.tgz", | |
| 2053 | + "integrity": "sha512-NqbmSz7AW2rvw4kXhKGrYTiJVDHnMsFnX4i+/FzcZAfbOBauPYs2ekuECkSbtqaxETLLTu9Rl/ex6+I2BKErPA==", | |
| 2054 | + "license": "Apache-2.0", | |
| 2055 | + "dependencies": { | |
| 2056 | + "@smithy/abort-controller": "^4.0.4", | |
| 2057 | + "@smithy/protocol-http": "^5.1.2", | |
| 2058 | + "@smithy/querystring-builder": "^4.0.4", | |
| 2059 | + "@smithy/types": "^4.3.1", | |
| 2060 | + "tslib": "^2.6.2" | |
| 2061 | + }, | |
| 2062 | + "engines": { | |
| 2063 | + "node": ">=18.0.0" | |
| 2064 | + } | |
| 2065 | + }, | |
| 2066 | + "node_modules/@smithy/property-provider": { | |
| 2067 | + "version": "4.0.4", | |
| 2068 | + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-4.0.4.tgz", | |
| 2069 | + "integrity": "sha512-qHJ2sSgu4FqF4U/5UUp4DhXNmdTrgmoAai6oQiM+c5RZ/sbDwJ12qxB1M6FnP+Tn/ggkPZf9ccn4jqKSINaquw==", | |
| 2070 | + "license": "Apache-2.0", | |
| 2071 | + "dependencies": { | |
| 2072 | + "@smithy/types": "^4.3.1", | |
| 2073 | + "tslib": "^2.6.2" | |
| 2074 | + }, | |
| 2075 | + "engines": { | |
| 2076 | + "node": ">=18.0.0" | |
| 2077 | + } | |
| 2078 | + }, | |
| 2079 | + "node_modules/@smithy/protocol-http": { | |
| 2080 | + "version": "5.1.2", | |
| 2081 | + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-5.1.2.tgz", | |
| 2082 | + "integrity": "sha512-rOG5cNLBXovxIrICSBm95dLqzfvxjEmuZx4KK3hWwPFHGdW3lxY0fZNXfv2zebfRO7sJZ5pKJYHScsqopeIWtQ==", | |
| 2083 | + "license": "Apache-2.0", | |
| 2084 | + "dependencies": { | |
| 2085 | + "@smithy/types": "^4.3.1", | |
| 2086 | + "tslib": "^2.6.2" | |
| 2087 | + }, | |
| 2088 | + "engines": { | |
| 2089 | + "node": ">=18.0.0" | |
| 2090 | + } | |
| 2091 | + }, | |
| 2092 | + "node_modules/@smithy/querystring-builder": { | |
| 2093 | + "version": "4.0.4", | |
| 2094 | + "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-4.0.4.tgz", | |
| 2095 | + "integrity": "sha512-SwREZcDnEYoh9tLNgMbpop+UTGq44Hl9tdj3rf+yeLcfH7+J8OXEBaMc2kDxtyRHu8BhSg9ADEx0gFHvpJgU8w==", | |
| 2096 | + "license": "Apache-2.0", | |
| 2097 | + "dependencies": { | |
| 2098 | + "@smithy/types": "^4.3.1", | |
| 2099 | + "@smithy/util-uri-escape": "^4.0.0", | |
| 2100 | + "tslib": "^2.6.2" | |
| 2101 | + }, | |
| 2102 | + "engines": { | |
| 2103 | + "node": ">=18.0.0" | |
| 2104 | + } | |
| 2105 | + }, | |
| 2106 | + "node_modules/@smithy/querystring-parser": { | |
| 2107 | + "version": "4.0.4", | |
| 2108 | + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-4.0.4.tgz", | |
| 2109 | + "integrity": "sha512-6yZf53i/qB8gRHH/l2ZwUG5xgkPgQF15/KxH0DdXMDHjesA9MeZje/853ifkSY0x4m5S+dfDZ+c4x439PF0M2w==", | |
| 2110 | + "license": "Apache-2.0", | |
| 2111 | + "dependencies": { | |
| 2112 | + "@smithy/types": "^4.3.1", | |
| 2113 | + "tslib": "^2.6.2" | |
| 2114 | + }, | |
| 2115 | + "engines": { | |
| 2116 | + "node": ">=18.0.0" | |
| 2117 | + } | |
| 2118 | + }, | |
| 2119 | + "node_modules/@smithy/service-error-classification": { | |
| 2120 | + "version": "4.0.6", | |
| 2121 | + "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-4.0.6.tgz", | |
| 2122 | + "integrity": "sha512-RRoTDL//7xi4tn5FrN2NzH17jbgmnKidUqd4KvquT0954/i6CXXkh1884jBiunq24g9cGtPBEXlU40W6EpNOOg==", | |
| 2123 | + "license": "Apache-2.0", | |
| 2124 | + "dependencies": { | |
| 2125 | + "@smithy/types": "^4.3.1" | |
| 2126 | + }, | |
| 2127 | + "engines": { | |
| 2128 | + "node": ">=18.0.0" | |
| 2129 | + } | |
| 2130 | + }, | |
| 2131 | + "node_modules/@smithy/shared-ini-file-loader": { | |
| 2132 | + "version": "4.0.4", | |
| 2133 | + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.4.tgz", | |
| 2134 | + "integrity": "sha512-63X0260LoFBjrHifPDs+nM9tV0VMkOTl4JRMYNuKh/f5PauSjowTfvF3LogfkWdcPoxsA9UjqEOgjeYIbhb7Nw==", | |
| 2135 | + "license": "Apache-2.0", | |
| 2136 | + "dependencies": { | |
| 2137 | + "@smithy/types": "^4.3.1", | |
| 2138 | + "tslib": "^2.6.2" | |
| 2139 | + }, | |
| 2140 | + "engines": { | |
| 2141 | + "node": ">=18.0.0" | |
| 2142 | + } | |
| 2143 | + }, | |
| 2144 | + "node_modules/@smithy/signature-v4": { | |
| 2145 | + "version": "5.1.2", | |
| 2146 | + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-5.1.2.tgz", | |
| 2147 | + "integrity": "sha512-d3+U/VpX7a60seHziWnVZOHuEgJlclufjkS6zhXvxcJgkJq4UWdH5eOBLzHRMx6gXjsdT9h6lfpmLzbrdupHgQ==", | |
| 2148 | + "license": "Apache-2.0", | |
| 2149 | + "dependencies": { | |
| 2150 | + "@smithy/is-array-buffer": "^4.0.0", | |
| 2151 | + "@smithy/protocol-http": "^5.1.2", | |
| 2152 | + "@smithy/types": "^4.3.1", | |
| 2153 | + "@smithy/util-hex-encoding": "^4.0.0", | |
| 2154 | + "@smithy/util-middleware": "^4.0.4", | |
| 2155 | + "@smithy/util-uri-escape": "^4.0.0", | |
| 2156 | + "@smithy/util-utf8": "^4.0.0", | |
| 2157 | + "tslib": "^2.6.2" | |
| 2158 | + }, | |
| 2159 | + "engines": { | |
| 2160 | + "node": ">=18.0.0" | |
| 2161 | + } | |
| 2162 | + }, | |
| 2163 | + "node_modules/@smithy/smithy-client": { | |
| 2164 | + "version": "4.4.5", | |
| 2165 | + "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-4.4.5.tgz", | |
| 2166 | + "integrity": "sha512-+lynZjGuUFJaMdDYSTMnP/uPBBXXukVfrJlP+1U/Dp5SFTEI++w6NMga8DjOENxecOF71V9Z2DllaVDYRnGlkg==", | |
| 2167 | + "license": "Apache-2.0", | |
| 2168 | + "dependencies": { | |
| 2169 | + "@smithy/core": "^3.6.0", | |
| 2170 | + "@smithy/middleware-endpoint": "^4.1.13", | |
| 2171 | + "@smithy/middleware-stack": "^4.0.4", | |
| 2172 | + "@smithy/protocol-http": "^5.1.2", | |
| 2173 | + "@smithy/types": "^4.3.1", | |
| 2174 | + "@smithy/util-stream": "^4.2.2", | |
| 2175 | + "tslib": "^2.6.2" | |
| 2176 | + }, | |
| 2177 | + "engines": { | |
| 2178 | + "node": ">=18.0.0" | |
| 765 | 2179 | } |
| 766 | 2180 | }, |
| 767 | - "node_modules/@jest/fake-timers": { | |
| 768 | - "version": "29.7.0", | |
| 769 | - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", | |
| 770 | - "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", | |
| 771 | - "dev": true, | |
| 772 | - "peer": true, | |
| 2181 | + "node_modules/@smithy/types": { | |
| 2182 | + "version": "4.3.1", | |
| 2183 | + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-4.3.1.tgz", | |
| 2184 | + "integrity": "sha512-UqKOQBL2x6+HWl3P+3QqFD4ncKq0I8Nuz9QItGv5WuKuMHuuwlhvqcZCoXGfc+P1QmfJE7VieykoYYmrOoFJxA==", | |
| 2185 | + "license": "Apache-2.0", | |
| 773 | 2186 | "dependencies": { |
| 774 | - "@jest/types": "^29.6.3", | |
| 775 | - "@sinonjs/fake-timers": "^10.0.2", | |
| 776 | - "@types/node": "*", | |
| 777 | - "jest-message-util": "^29.7.0", | |
| 778 | - "jest-mock": "^29.7.0", | |
| 779 | - "jest-util": "^29.7.0" | |
| 2187 | + "tslib": "^2.6.2" | |
| 780 | 2188 | }, |
| 781 | 2189 | "engines": { |
| 782 | - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" | |
| 2190 | + "node": ">=18.0.0" | |
| 783 | 2191 | } |
| 784 | 2192 | }, |
| 785 | - "node_modules/@jest/globals": { | |
| 786 | - "version": "29.7.0", | |
| 787 | - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", | |
| 788 | - "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", | |
| 789 | - "dev": true, | |
| 790 | - "peer": true, | |
| 2193 | + "node_modules/@smithy/url-parser": { | |
| 2194 | + "version": "4.0.4", | |
| 2195 | + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-4.0.4.tgz", | |
| 2196 | + "integrity": "sha512-eMkc144MuN7B0TDA4U2fKs+BqczVbk3W+qIvcoCY6D1JY3hnAdCuhCZODC+GAeaxj0p6Jroz4+XMUn3PCxQQeQ==", | |
| 2197 | + "license": "Apache-2.0", | |
| 791 | 2198 | "dependencies": { |
| 792 | - "@jest/environment": "^29.7.0", | |
| 793 | - "@jest/expect": "^29.7.0", | |
| 794 | - "@jest/types": "^29.6.3", | |
| 795 | - "jest-mock": "^29.7.0" | |
| 2199 | + "@smithy/querystring-parser": "^4.0.4", | |
| 2200 | + "@smithy/types": "^4.3.1", | |
| 2201 | + "tslib": "^2.6.2" | |
| 796 | 2202 | }, |
| 797 | 2203 | "engines": { |
| 798 | - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" | |
| 2204 | + "node": ">=18.0.0" | |
| 799 | 2205 | } |
| 800 | 2206 | }, |
| 801 | - "node_modules/@jest/reporters": { | |
| 802 | - "version": "29.7.0", | |
| 803 | - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", | |
| 804 | - "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", | |
| 805 | - "dev": true, | |
| 806 | - "peer": true, | |
| 2207 | + "node_modules/@smithy/util-base64": { | |
| 2208 | + "version": "4.0.0", | |
| 2209 | + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", | |
| 2210 | + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", | |
| 2211 | + "license": "Apache-2.0", | |
| 807 | 2212 | "dependencies": { |
| 808 | - "@bcoe/v8-coverage": "^0.2.3", | |
| 809 | - "@jest/console": "^29.7.0", | |
| 810 | - "@jest/test-result": "^29.7.0", | |
| 811 | - "@jest/transform": "^29.7.0", | |
| 812 | - "@jest/types": "^29.6.3", | |
| 813 | - "@jridgewell/trace-mapping": "^0.3.18", | |
| 814 | - "@types/node": "*", | |
| 815 | - "chalk": "^4.0.0", | |
| 816 | - "collect-v8-coverage": "^1.0.0", | |
| 817 | - "exit": "^0.1.2", | |
| 818 | - "glob": "^7.1.3", | |
| 819 | - "graceful-fs": "^4.2.9", | |
| 820 | - "istanbul-lib-coverage": "^3.0.0", | |
| 821 | - "istanbul-lib-instrument": "^6.0.0", | |
| 822 | - "istanbul-lib-report": "^3.0.0", | |
| 823 | - "istanbul-lib-source-maps": "^4.0.0", | |
| 824 | - "istanbul-reports": "^3.1.3", | |
| 825 | - "jest-message-util": "^29.7.0", | |
| 826 | - "jest-util": "^29.7.0", | |
| 827 | - "jest-worker": "^29.7.0", | |
| 828 | - "slash": "^3.0.0", | |
| 829 | - "string-length": "^4.0.1", | |
| 830 | - "strip-ansi": "^6.0.0", | |
| 831 | - "v8-to-istanbul": "^9.0.1" | |
| 2213 | + "@smithy/util-buffer-from": "^4.0.0", | |
| 2214 | + "@smithy/util-utf8": "^4.0.0", | |
| 2215 | + "tslib": "^2.6.2" | |
| 832 | 2216 | }, |
| 833 | 2217 | "engines": { |
| 834 | - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" | |
| 835 | - }, | |
| 836 | - "peerDependencies": { | |
| 837 | - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" | |
| 838 | - }, | |
| 839 | - "peerDependenciesMeta": { | |
| 840 | - "node-notifier": { | |
| 841 | - "optional": true | |
| 842 | - } | |
| 2218 | + "node": ">=18.0.0" | |
| 843 | 2219 | } |
| 844 | 2220 | }, |
| 845 | - "node_modules/@jest/schemas": { | |
| 846 | - "version": "29.6.3", | |
| 847 | - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", | |
| 848 | - "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", | |
| 849 | - "dev": true, | |
| 2221 | + "node_modules/@smithy/util-body-length-browser": { | |
| 2222 | + "version": "4.0.0", | |
| 2223 | + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-4.0.0.tgz", | |
| 2224 | + "integrity": "sha512-sNi3DL0/k64/LO3A256M+m3CDdG6V7WKWHdAiBBMUN8S3hK3aMPhwnPik2A/a2ONN+9doY9UxaLfgqsIRg69QA==", | |
| 2225 | + "license": "Apache-2.0", | |
| 850 | 2226 | "dependencies": { |
| 851 | - "@sinclair/typebox": "^0.27.8" | |
| 2227 | + "tslib": "^2.6.2" | |
| 852 | 2228 | }, |
| 853 | 2229 | "engines": { |
| 854 | - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" | |
| 2230 | + "node": ">=18.0.0" | |
| 855 | 2231 | } |
| 856 | 2232 | }, |
| 857 | - "node_modules/@jest/source-map": { | |
| 858 | - "version": "29.6.3", | |
| 859 | - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", | |
| 860 | - "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", | |
| 861 | - "dev": true, | |
| 862 | - "peer": true, | |
| 2233 | + "node_modules/@smithy/util-body-length-node": { | |
| 2234 | + "version": "4.0.0", | |
| 2235 | + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-4.0.0.tgz", | |
| 2236 | + "integrity": "sha512-q0iDP3VsZzqJyje8xJWEJCNIu3lktUGVoSy1KB0UWym2CL1siV3artm+u1DFYTLejpsrdGyCSWBdGNjJzfDPjg==", | |
| 2237 | + "license": "Apache-2.0", | |
| 863 | 2238 | "dependencies": { |
| 864 | - "@jridgewell/trace-mapping": "^0.3.18", | |
| 865 | - "callsites": "^3.0.0", | |
| 866 | - "graceful-fs": "^4.2.9" | |
| 2239 | + "tslib": "^2.6.2" | |
| 867 | 2240 | }, |
| 868 | 2241 | "engines": { |
| 869 | - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" | |
| 2242 | + "node": ">=18.0.0" | |
| 870 | 2243 | } |
| 871 | 2244 | }, |
| 872 | - "node_modules/@jest/test-result": { | |
| 873 | - "version": "29.7.0", | |
| 874 | - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", | |
| 875 | - "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", | |
| 876 | - "dev": true, | |
| 877 | - "peer": true, | |
| 2245 | + "node_modules/@smithy/util-buffer-from": { | |
| 2246 | + "version": "4.0.0", | |
| 2247 | + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-4.0.0.tgz", | |
| 2248 | + "integrity": "sha512-9TOQ7781sZvddgO8nxueKi3+yGvkY35kotA0Y6BWRajAv8jjmigQ1sBwz0UX47pQMYXJPahSKEKYFgt+rXdcug==", | |
| 2249 | + "license": "Apache-2.0", | |
| 878 | 2250 | "dependencies": { |
| 879 | - "@jest/console": "^29.7.0", | |
| 880 | - "@jest/types": "^29.6.3", | |
| 881 | - "@types/istanbul-lib-coverage": "^2.0.0", | |
| 882 | - "collect-v8-coverage": "^1.0.0" | |
| 2251 | + "@smithy/is-array-buffer": "^4.0.0", | |
| 2252 | + "tslib": "^2.6.2" | |
| 883 | 2253 | }, |
| 884 | 2254 | "engines": { |
| 885 | - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" | |
| 2255 | + "node": ">=18.0.0" | |
| 886 | 2256 | } |
| 887 | 2257 | }, |
| 888 | - "node_modules/@jest/test-sequencer": { | |
| 889 | - "version": "29.7.0", | |
| 890 | - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", | |
| 891 | - "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", | |
| 892 | - "dev": true, | |
| 893 | - "peer": true, | |
| 2258 | + "node_modules/@smithy/util-config-provider": { | |
| 2259 | + "version": "4.0.0", | |
| 2260 | + "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-4.0.0.tgz", | |
| 2261 | + "integrity": "sha512-L1RBVzLyfE8OXH+1hsJ8p+acNUSirQnWQ6/EgpchV88G6zGBTDPdXiiExei6Z1wR2RxYvxY/XLw6AMNCCt8H3w==", | |
| 2262 | + "license": "Apache-2.0", | |
| 894 | 2263 | "dependencies": { |
| 895 | - "@jest/test-result": "^29.7.0", | |
| 896 | - "graceful-fs": "^4.2.9", | |
| 897 | - "jest-haste-map": "^29.7.0", | |
| 898 | - "slash": "^3.0.0" | |
| 2264 | + "tslib": "^2.6.2" | |
| 899 | 2265 | }, |
| 900 | 2266 | "engines": { |
| 901 | - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" | |
| 2267 | + "node": ">=18.0.0" | |
| 902 | 2268 | } |
| 903 | 2269 | }, |
| 904 | - "node_modules/@jest/transform": { | |
| 905 | - "version": "29.7.0", | |
| 906 | - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", | |
| 907 | - "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", | |
| 908 | - "dev": true, | |
| 909 | - "peer": true, | |
| 2270 | + "node_modules/@smithy/util-defaults-mode-browser": { | |
| 2271 | + "version": "4.0.21", | |
| 2272 | + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-4.0.21.tgz", | |
| 2273 | + "integrity": "sha512-wM0jhTytgXu3wzJoIqpbBAG5U6BwiubZ6QKzSbP7/VbmF1v96xlAbX2Am/mz0Zep0NLvLh84JT0tuZnk3wmYQA==", | |
| 2274 | + "license": "Apache-2.0", | |
| 910 | 2275 | "dependencies": { |
| 911 | - "@babel/core": "^7.11.6", | |
| 912 | - "@jest/types": "^29.6.3", | |
| 913 | - "@jridgewell/trace-mapping": "^0.3.18", | |
| 914 | - "babel-plugin-istanbul": "^6.1.1", | |
| 915 | - "chalk": "^4.0.0", | |
| 916 | - "convert-source-map": "^2.0.0", | |
| 917 | - "fast-json-stable-stringify": "^2.1.0", | |
| 918 | - "graceful-fs": "^4.2.9", | |
| 919 | - "jest-haste-map": "^29.7.0", | |
| 920 | - "jest-regex-util": "^29.6.3", | |
| 921 | - "jest-util": "^29.7.0", | |
| 922 | - "micromatch": "^4.0.4", | |
| 923 | - "pirates": "^4.0.4", | |
| 924 | - "slash": "^3.0.0", | |
| 925 | - "write-file-atomic": "^4.0.2" | |
| 2276 | + "@smithy/property-provider": "^4.0.4", | |
| 2277 | + "@smithy/smithy-client": "^4.4.5", | |
| 2278 | + "@smithy/types": "^4.3.1", | |
| 2279 | + "bowser": "^2.11.0", | |
| 2280 | + "tslib": "^2.6.2" | |
| 926 | 2281 | }, |
| 927 | 2282 | "engines": { |
| 928 | - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" | |
| 2283 | + "node": ">=18.0.0" | |
| 929 | 2284 | } |
| 930 | 2285 | }, |
| 931 | - "node_modules/@jest/types": { | |
| 932 | - "version": "29.6.3", | |
| 933 | - "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", | |
| 934 | - "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", | |
| 935 | - "dev": true, | |
| 2286 | + "node_modules/@smithy/util-defaults-mode-node": { | |
| 2287 | + "version": "4.0.21", | |
| 2288 | + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-4.0.21.tgz", | |
| 2289 | + "integrity": "sha512-/F34zkoU0GzpUgLJydHY8Rxu9lBn8xQC/s/0M0U9lLBkYbA1htaAFjWYJzpzsbXPuri5D1H8gjp2jBum05qBrA==", | |
| 2290 | + "license": "Apache-2.0", | |
| 936 | 2291 | "dependencies": { |
| 937 | - "@jest/schemas": "^29.6.3", | |
| 938 | - "@types/istanbul-lib-coverage": "^2.0.0", | |
| 939 | - "@types/istanbul-reports": "^3.0.0", | |
| 940 | - "@types/node": "*", | |
| 941 | - "@types/yargs": "^17.0.8", | |
| 942 | - "chalk": "^4.0.0" | |
| 2292 | + "@smithy/config-resolver": "^4.1.4", | |
| 2293 | + "@smithy/credential-provider-imds": "^4.0.6", | |
| 2294 | + "@smithy/node-config-provider": "^4.1.3", | |
| 2295 | + "@smithy/property-provider": "^4.0.4", | |
| 2296 | + "@smithy/smithy-client": "^4.4.5", | |
| 2297 | + "@smithy/types": "^4.3.1", | |
| 2298 | + "tslib": "^2.6.2" | |
| 943 | 2299 | }, |
| 944 | 2300 | "engines": { |
| 945 | - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" | |
| 2301 | + "node": ">=18.0.0" | |
| 946 | 2302 | } |
| 947 | 2303 | }, |
| 948 | - "node_modules/@jridgewell/gen-mapping": { | |
| 949 | - "version": "0.3.5", | |
| 950 | - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", | |
| 951 | - "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", | |
| 952 | - "dev": true, | |
| 953 | - "peer": true, | |
| 2304 | + "node_modules/@smithy/util-endpoints": { | |
| 2305 | + "version": "3.0.6", | |
| 2306 | + "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-3.0.6.tgz", | |
| 2307 | + "integrity": "sha512-YARl3tFL3WgPuLzljRUnrS2ngLiUtkwhQtj8PAL13XZSyUiNLQxwG3fBBq3QXFqGFUXepIN73pINp3y8c2nBmA==", | |
| 2308 | + "license": "Apache-2.0", | |
| 954 | 2309 | "dependencies": { |
| 955 | - "@jridgewell/set-array": "^1.2.1", | |
| 956 | - "@jridgewell/sourcemap-codec": "^1.4.10", | |
| 957 | - "@jridgewell/trace-mapping": "^0.3.24" | |
| 2310 | + "@smithy/node-config-provider": "^4.1.3", | |
| 2311 | + "@smithy/types": "^4.3.1", | |
| 2312 | + "tslib": "^2.6.2" | |
| 958 | 2313 | }, |
| 959 | 2314 | "engines": { |
| 960 | - "node": ">=6.0.0" | |
| 2315 | + "node": ">=18.0.0" | |
| 961 | 2316 | } |
| 962 | 2317 | }, |
| 963 | - "node_modules/@jridgewell/resolve-uri": { | |
| 964 | - "version": "3.1.2", | |
| 965 | - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", | |
| 966 | - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", | |
| 967 | - "dev": true, | |
| 2318 | + "node_modules/@smithy/util-hex-encoding": { | |
| 2319 | + "version": "4.0.0", | |
| 2320 | + "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-4.0.0.tgz", | |
| 2321 | + "integrity": "sha512-Yk5mLhHtfIgW2W2WQZWSg5kuMZCVbvhFmC7rV4IO2QqnZdbEFPmQnCcGMAX2z/8Qj3B9hYYNjZOhWym+RwhePw==", | |
| 2322 | + "license": "Apache-2.0", | |
| 2323 | + "dependencies": { | |
| 2324 | + "tslib": "^2.6.2" | |
| 2325 | + }, | |
| 968 | 2326 | "engines": { |
| 969 | - "node": ">=6.0.0" | |
| 2327 | + "node": ">=18.0.0" | |
| 970 | 2328 | } |
| 971 | 2329 | }, |
| 972 | - "node_modules/@jridgewell/set-array": { | |
| 973 | - "version": "1.2.1", | |
| 974 | - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", | |
| 975 | - "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", | |
| 976 | - "dev": true, | |
| 977 | - "peer": true, | |
| 2330 | + "node_modules/@smithy/util-middleware": { | |
| 2331 | + "version": "4.0.4", | |
| 2332 | + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-4.0.4.tgz", | |
| 2333 | + "integrity": "sha512-9MLKmkBmf4PRb0ONJikCbCwORACcil6gUWojwARCClT7RmLzF04hUR4WdRprIXal7XVyrddadYNfp2eF3nrvtQ==", | |
| 2334 | + "license": "Apache-2.0", | |
| 2335 | + "dependencies": { | |
| 2336 | + "@smithy/types": "^4.3.1", | |
| 2337 | + "tslib": "^2.6.2" | |
| 2338 | + }, | |
| 978 | 2339 | "engines": { |
| 979 | - "node": ">=6.0.0" | |
| 2340 | + "node": ">=18.0.0" | |
| 980 | 2341 | } |
| 981 | 2342 | }, |
| 982 | - "node_modules/@jridgewell/sourcemap-codec": { | |
| 983 | - "version": "1.5.0", | |
| 984 | - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", | |
| 985 | - "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", | |
| 986 | - "dev": true | |
| 987 | - }, | |
| 988 | - "node_modules/@jridgewell/trace-mapping": { | |
| 989 | - "version": "0.3.25", | |
| 990 | - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", | |
| 991 | - "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", | |
| 992 | - "dev": true, | |
| 993 | - "peer": true, | |
| 2343 | + "node_modules/@smithy/util-retry": { | |
| 2344 | + "version": "4.0.6", | |
| 2345 | + "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-4.0.6.tgz", | |
| 2346 | + "integrity": "sha512-+YekoF2CaSMv6zKrA6iI/N9yva3Gzn4L6n35Luydweu5MMPYpiGZlWqehPHDHyNbnyaYlz/WJyYAZnC+loBDZg==", | |
| 2347 | + "license": "Apache-2.0", | |
| 994 | 2348 | "dependencies": { |
| 995 | - "@jridgewell/resolve-uri": "^3.1.0", | |
| 996 | - "@jridgewell/sourcemap-codec": "^1.4.14" | |
| 2349 | + "@smithy/service-error-classification": "^4.0.6", | |
| 2350 | + "@smithy/types": "^4.3.1", | |
| 2351 | + "tslib": "^2.6.2" | |
| 2352 | + }, | |
| 2353 | + "engines": { | |
| 2354 | + "node": ">=18.0.0" | |
| 997 | 2355 | } |
| 998 | 2356 | }, |
| 999 | - "node_modules/@sinclair/typebox": { | |
| 1000 | - "version": "0.27.8", | |
| 1001 | - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", | |
| 1002 | - "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", | |
| 1003 | - "dev": true | |
| 2357 | + "node_modules/@smithy/util-stream": { | |
| 2358 | + "version": "4.2.2", | |
| 2359 | + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-4.2.2.tgz", | |
| 2360 | + "integrity": "sha512-aI+GLi7MJoVxg24/3J1ipwLoYzgkB4kUfogZfnslcYlynj3xsQ0e7vk4TnTro9hhsS5PvX1mwmkRqqHQjwcU7w==", | |
| 2361 | + "license": "Apache-2.0", | |
| 2362 | + "dependencies": { | |
| 2363 | + "@smithy/fetch-http-handler": "^5.0.4", | |
| 2364 | + "@smithy/node-http-handler": "^4.0.6", | |
| 2365 | + "@smithy/types": "^4.3.1", | |
| 2366 | + "@smithy/util-base64": "^4.0.0", | |
| 2367 | + "@smithy/util-buffer-from": "^4.0.0", | |
| 2368 | + "@smithy/util-hex-encoding": "^4.0.0", | |
| 2369 | + "@smithy/util-utf8": "^4.0.0", | |
| 2370 | + "tslib": "^2.6.2" | |
| 2371 | + }, | |
| 2372 | + "engines": { | |
| 2373 | + "node": ">=18.0.0" | |
| 2374 | + } | |
| 1004 | 2375 | }, |
| 1005 | - "node_modules/@sinonjs/commons": { | |
| 1006 | - "version": "3.0.1", | |
| 1007 | - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", | |
| 1008 | - "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", | |
| 1009 | - "dev": true, | |
| 1010 | - "peer": true, | |
| 2376 | + "node_modules/@smithy/util-uri-escape": { | |
| 2377 | + "version": "4.0.0", | |
| 2378 | + "resolved": "https://registry.npmjs.org/@smithy/util-uri-escape/-/util-uri-escape-4.0.0.tgz", | |
| 2379 | + "integrity": "sha512-77yfbCbQMtgtTylO9itEAdpPXSog3ZxMe09AEhm0dU0NLTalV70ghDZFR+Nfi1C60jnJoh/Re4090/DuZh2Omg==", | |
| 2380 | + "license": "Apache-2.0", | |
| 1011 | 2381 | "dependencies": { |
| 1012 | - "type-detect": "4.0.8" | |
| 2382 | + "tslib": "^2.6.2" | |
| 2383 | + }, | |
| 2384 | + "engines": { | |
| 2385 | + "node": ">=18.0.0" | |
| 1013 | 2386 | } |
| 1014 | 2387 | }, |
| 1015 | - "node_modules/@sinonjs/fake-timers": { | |
| 1016 | - "version": "10.3.0", | |
| 1017 | - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", | |
| 1018 | - "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", | |
| 1019 | - "dev": true, | |
| 1020 | - "peer": true, | |
| 2388 | + "node_modules/@smithy/util-utf8": { | |
| 2389 | + "version": "4.0.0", | |
| 2390 | + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-4.0.0.tgz", | |
| 2391 | + "integrity": "sha512-b+zebfKCfRdgNJDknHCob3O7FpeYQN6ZG6YLExMcasDHsCXlsXCEuiPZeLnJLpwa5dvPetGlnGCiMHuLwGvFow==", | |
| 2392 | + "license": "Apache-2.0", | |
| 1021 | 2393 | "dependencies": { |
| 1022 | - "@sinonjs/commons": "^3.0.0" | |
| 2394 | + "@smithy/util-buffer-from": "^4.0.0", | |
| 2395 | + "tslib": "^2.6.2" | |
| 2396 | + }, | |
| 2397 | + "engines": { | |
| 2398 | + "node": ">=18.0.0" | |
| 1023 | 2399 | } |
| 1024 | 2400 | }, |
| 1025 | 2401 | "node_modules/@tsconfig/node10": { |
| @@ -1173,6 +2549,12 @@ | ||
| 1173 | 2549 | "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", |
| 1174 | 2550 | "dev": true |
| 1175 | 2551 | }, |
| 2552 | + "node_modules/@types/uuid": { | |
| 2553 | + "version": "9.0.8", | |
| 2554 | + "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.8.tgz", | |
| 2555 | + "integrity": "sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==", | |
| 2556 | + "license": "MIT" | |
| 2557 | + }, | |
| 1176 | 2558 | "node_modules/@types/yargs": { |
| 1177 | 2559 | "version": "17.0.32", |
| 1178 | 2560 | "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.32.tgz", |
| @@ -1446,6 +2828,12 @@ | ||
| 1446 | 2828 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", |
| 1447 | 2829 | "dev": true |
| 1448 | 2830 | }, |
| 2831 | + "node_modules/bowser": { | |
| 2832 | + "version": "2.11.0", | |
| 2833 | + "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.11.0.tgz", | |
| 2834 | + "integrity": "sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==", | |
| 2835 | + "license": "MIT" | |
| 2836 | + }, | |
| 1449 | 2837 | "node_modules/brace-expansion": { |
| 1450 | 2838 | "version": "1.1.11", |
| 1451 | 2839 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", |
| @@ -2004,6 +3392,28 @@ | ||
| 2004 | 3392 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", |
| 2005 | 3393 | "dev": true |
| 2006 | 3394 | }, |
| 3395 | + "node_modules/fast-xml-parser": { | |
| 3396 | + "version": "4.4.1", | |
| 3397 | + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.4.1.tgz", | |
| 3398 | + "integrity": "sha512-xkjOecfnKGkSsOwtZ5Pz7Us/T6mrbPQrq0nh+aCO5V9nk5NLWmasAHumTKjiPJPWANe+kAZ84Jc8ooJkzZ88Sw==", | |
| 3399 | + "funding": [ | |
| 3400 | + { | |
| 3401 | + "type": "github", | |
| 3402 | + "url": "https://github.com/sponsors/NaturalIntelligence" | |
| 3403 | + }, | |
| 3404 | + { | |
| 3405 | + "type": "paypal", | |
| 3406 | + "url": "https://paypal.me/naturalintelligence" | |
| 3407 | + } | |
| 3408 | + ], | |
| 3409 | + "license": "MIT", | |
| 3410 | + "dependencies": { | |
| 3411 | + "strnum": "^1.0.5" | |
| 3412 | + }, | |
| 3413 | + "bin": { | |
| 3414 | + "fxparser": "src/cli/cli.js" | |
| 3415 | + } | |
| 3416 | + }, | |
| 2007 | 3417 | "node_modules/fb-watchman": { |
| 2008 | 3418 | "version": "2.0.2", |
| 2009 | 3419 | "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", |
| @@ -3974,6 +5384,18 @@ | ||
| 3974 | 5384 | "url": "https://github.com/sponsors/sindresorhus" |
| 3975 | 5385 | } |
| 3976 | 5386 | }, |
| 5387 | + "node_modules/strnum": { | |
| 5388 | + "version": "1.1.2", | |
| 5389 | + "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.1.2.tgz", | |
| 5390 | + "integrity": "sha512-vrN+B7DBIoTTZjnPNewwhx6cBA/H+IS7rfW68n7XxC1y7uoiGQBxaKzqucGUgavX15dJgiGztLJ8vxuEzwqBdA==", | |
| 5391 | + "funding": [ | |
| 5392 | + { | |
| 5393 | + "type": "github", | |
| 5394 | + "url": "https://github.com/sponsors/NaturalIntelligence" | |
| 5395 | + } | |
| 5396 | + ], | |
| 5397 | + "license": "MIT" | |
| 5398 | + }, | |
| 3977 | 5399 | "node_modules/supports-color": { |
| 3978 | 5400 | "version": "7.2.0", |
| 3979 | 5401 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", |
| @@ -4151,6 +5573,12 @@ | ||
| 4151 | 5573 | } |
| 4152 | 5574 | } |
| 4153 | 5575 | }, |
| 5576 | + "node_modules/tslib": { | |
| 5577 | + "version": "2.8.1", | |
| 5578 | + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", | |
| 5579 | + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", | |
| 5580 | + "license": "0BSD" | |
| 5581 | + }, | |
| 4154 | 5582 | "node_modules/type-detect": { |
| 4155 | 5583 | "version": "4.0.8", |
| 4156 | 5584 | "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", |
modified packages/openai-adapters/package.json +1 −0
| @@ -12,6 +12,7 @@ | ||
| 12 | 12 | "author": "Nate Sesti and Ty Dunn", |
| 13 | 13 | "license": "Apache-2.0", |
| 14 | 14 | "dependencies": { |
| 15 | + "@aws-sdk/client-bedrock-runtime": "^3.842.0", | |
| 15 | 16 | "@continuedev/config-types": "^1.0.5", |
| 16 | 17 | "@continuedev/config-yaml": "^1.0.51", |
| 17 | 18 | "@continuedev/fetch": "^1.0.15", |
added packages/openai-adapters/src/apis/Bedrock.ts +705 −0
| @@ -0,0 +1,705 @@ | ||
| 1 | +import { | |
| 2 | + BedrockRuntimeClient, | |
| 3 | + ContentBlock, | |
| 4 | + ConversationRole, | |
| 5 | + ConverseStreamCommand, | |
| 6 | + ConverseStreamCommandInput, | |
| 7 | + ImageFormat, | |
| 8 | + Message, | |
| 9 | + ToolConfiguration, | |
| 10 | +} from "@aws-sdk/client-bedrock-runtime"; | |
| 11 | +import { OpenAI } from "openai/index"; | |
| 12 | +import { v4 as uuidv4 } from "uuid"; | |
| 13 | + | |
| 14 | +import { | |
| 15 | + ChatCompletion, | |
| 16 | + ChatCompletionChunk, | |
| 17 | + ChatCompletionCreateParams, | |
| 18 | + ChatCompletionCreateParamsNonStreaming, | |
| 19 | + ChatCompletionCreateParamsStreaming, | |
| 20 | + ChatCompletionMessageToolCall, | |
| 21 | + Completion, | |
| 22 | + CompletionCreateParamsNonStreaming, | |
| 23 | + CompletionCreateParamsStreaming, | |
| 24 | + CreateEmbeddingResponse, | |
| 25 | + EmbeddingCreateParams, | |
| 26 | + Model, | |
| 27 | +} from "openai/resources/index"; | |
| 28 | + | |
| 29 | +import { BedrockConfig } from "../types.js"; | |
| 30 | +import { chatChunk, chatChunkFromDelta } from "../util.js"; | |
| 31 | +import { safeParseArgs } from "../util/parseArgs.js"; | |
| 32 | +import { | |
| 33 | + BaseLlmApi, | |
| 34 | + CreateRerankResponse, | |
| 35 | + FimCreateParamsStreaming, | |
| 36 | + RerankCreateParams, | |
| 37 | +} from "./base.js"; | |
| 38 | + | |
| 39 | +// Utility function to get or generate UUID for prompt caching | |
| 40 | +function getSecureID(): string { | |
| 41 | + // Adding a type declaration for the static property | |
| 42 | + if (!(getSecureID as any).uuid) { | |
| 43 | + (getSecureID as any).uuid = crypto.randomUUID(); | |
| 44 | + } | |
| 45 | + return `<!-- SID: ${(getSecureID as any).uuid} -->`; | |
| 46 | +} | |
| 47 | + | |
| 48 | +/** | |
| 49 | + * Interface for tool use state tracking | |
| 50 | + */ | |
| 51 | +interface ToolUseState { | |
| 52 | + toolUseId: string; | |
| 53 | + name: string; | |
| 54 | + input: string; | |
| 55 | +} | |
| 56 | + | |
| 57 | +export class BedrockApi implements BaseLlmApi { | |
| 58 | + private client: BedrockRuntimeClient; | |
| 59 | + private _currentToolResponse: Partial<ToolUseState> | null = null; | |
| 60 | + | |
| 61 | + constructor(protected config: BedrockConfig) { | |
| 62 | + if (!config.env?.region) { | |
| 63 | + throw new Error("region is required for Bedrock API"); | |
| 64 | + } | |
| 65 | + if (!config.apiKey) { | |
| 66 | + throw new Error( | |
| 67 | + "apiKey in the format accessKeyId:secretAccessKey is required for Bedrock API", | |
| 68 | + ); | |
| 69 | + } | |
| 70 | + | |
| 71 | + const [accessKeyId, secretAccessKey] = config.apiKey.split(":"); | |
| 72 | + if (!accessKeyId || !secretAccessKey) { | |
| 73 | + throw new Error( | |
| 74 | + "Bedrock apiKey must be in the format accessKeyId:secretAccessKey", | |
| 75 | + ); | |
| 76 | + } | |
| 77 | + | |
| 78 | + this.client = new BedrockRuntimeClient({ | |
| 79 | + region: config.env.region, | |
| 80 | + credentials: { | |
| 81 | + accessKeyId, | |
| 82 | + secretAccessKey, | |
| 83 | + }, | |
| 84 | + }); | |
| 85 | + } | |
| 86 | + | |
| 87 | + private _oaiPartToBedrockPart( | |
| 88 | + part: | |
| 89 | + | OpenAI.Chat.Completions.ChatCompletionContentPart | |
| 90 | + | OpenAI.Chat.Completions.ChatCompletionContentPartRefusal, | |
| 91 | + ): ContentBlock { | |
| 92 | + switch (part.type) { | |
| 93 | + case "refusal": | |
| 94 | + return { | |
| 95 | + text: part.refusal, | |
| 96 | + }; | |
| 97 | + case "text": | |
| 98 | + return { | |
| 99 | + text: part.text, | |
| 100 | + }; | |
| 101 | + case "input_audio": | |
| 102 | + throw new Error("Unsupported part type: input_audio"); | |
| 103 | + case "image_url": | |
| 104 | + default: | |
| 105 | + try { | |
| 106 | + const [mimeType, base64Data] = part.image_url.url.split(","); | |
| 107 | + const format = mimeType.split("/")[1]?.split(";")[0] || "jpeg"; | |
| 108 | + if ( | |
| 109 | + format === ImageFormat.JPEG || | |
| 110 | + format === ImageFormat.PNG || | |
| 111 | + format === ImageFormat.WEBP || | |
| 112 | + format === ImageFormat.GIF | |
| 113 | + ) { | |
| 114 | + return { | |
| 115 | + image: { | |
| 116 | + format, | |
| 117 | + source: { | |
| 118 | + bytes: Uint8Array.from(Buffer.from(base64Data, "base64")), | |
| 119 | + }, | |
| 120 | + }, | |
| 121 | + }; | |
| 122 | + } else { | |
| 123 | + console.warn( | |
| 124 | + `Bedrock: skipping unsupported image part format: ${format}`, | |
| 125 | + ); | |
| 126 | + return { text: "[Unsupported image format]" }; | |
| 127 | + } | |
| 128 | + } catch (error) { | |
| 129 | + console.warn("Bedrock: failed to process image part", error); | |
| 130 | + return { text: "[Failed to process image]" }; | |
| 131 | + } | |
| 132 | + } | |
| 133 | + } | |
| 134 | + | |
| 135 | + private _convertMessages( | |
| 136 | + oaiMessages: OpenAI.Chat.Completions.ChatCompletionMessageParam[], | |
| 137 | + availableTools: Set<string>, | |
| 138 | + ): Message[] { | |
| 139 | + let currentRole: "user" | "assistant" = "user"; | |
| 140 | + let currentBlocks: ContentBlock[] = []; | |
| 141 | + const converted: Message[] = []; | |
| 142 | + const hasAddedToolCallIds = new Set<string>(); | |
| 143 | + | |
| 144 | + const pushCurrentMessage = () => { | |
| 145 | + if (currentBlocks.length > 0) { | |
| 146 | + converted.push({ | |
| 147 | + role: currentRole, | |
| 148 | + content: currentBlocks, | |
| 149 | + }); | |
| 150 | + currentBlocks = []; | |
| 151 | + } | |
| 152 | + }; | |
| 153 | + | |
| 154 | + const nonSystemMessages = oaiMessages.filter((m) => m.role !== "system"); | |
| 155 | + | |
| 156 | + for (let idx = 0; idx < nonSystemMessages.length; idx++) { | |
| 157 | + const message = nonSystemMessages[idx]; | |
| 158 | + | |
| 159 | + if (message.role === "user" || message.role === "tool") { | |
| 160 | + // Detect conversational turn change | |
| 161 | + if (currentRole !== ConversationRole.USER) { | |
| 162 | + pushCurrentMessage(); | |
| 163 | + currentRole = ConversationRole.USER; | |
| 164 | + } | |
| 165 | + | |
| 166 | + // USER messages | |
| 167 | + if (message.role === "user") { | |
| 168 | + const content = message.content; | |
| 169 | + if (content) { | |
| 170 | + if (typeof content === "string") { | |
| 171 | + currentBlocks.push({ text: content }); | |
| 172 | + } else { | |
| 173 | + content.forEach((part) => { | |
| 174 | + currentBlocks.push(this._oaiPartToBedrockPart(part)); | |
| 175 | + }); | |
| 176 | + } | |
| 177 | + } | |
| 178 | + } | |
| 179 | + // TOOL messages | |
| 180 | + else if (message.role === "tool") { | |
| 181 | + const trimmedContent = | |
| 182 | + typeof message.content === "string" | |
| 183 | + ? message.content.trim() | |
| 184 | + : JSON.stringify(message.content); | |
| 185 | + | |
| 186 | + if (hasAddedToolCallIds.has(message.tool_call_id)) { | |
| 187 | + currentBlocks.push({ | |
| 188 | + toolResult: { | |
| 189 | + toolUseId: message.tool_call_id, | |
| 190 | + content: [ | |
| 191 | + { | |
| 192 | + text: trimmedContent || "No tool output", | |
| 193 | + }, | |
| 194 | + ], | |
| 195 | + }, | |
| 196 | + }); | |
| 197 | + } else { | |
| 198 | + currentBlocks.push({ | |
| 199 | + text: `Tool call output for Tool Call ID ${message.tool_call_id}:\n\n${trimmedContent || "No tool output"}`, | |
| 200 | + }); | |
| 201 | + } | |
| 202 | + } | |
| 203 | + } else if (message.role === "assistant") { | |
| 204 | + // Detect conversational turn change | |
| 205 | + if (currentRole !== ConversationRole.ASSISTANT) { | |
| 206 | + pushCurrentMessage(); | |
| 207 | + currentRole = ConversationRole.ASSISTANT; | |
| 208 | + } | |
| 209 | + | |
| 210 | + // ASSISTANT messages | |
| 211 | + const content = message.content; | |
| 212 | + if (content) { | |
| 213 | + if (typeof content === "string") { | |
| 214 | + currentBlocks.push({ text: content }); | |
| 215 | + } else { | |
| 216 | + content.forEach((part) => { | |
| 217 | + currentBlocks.push(this._oaiPartToBedrockPart(part)); | |
| 218 | + }); | |
| 219 | + } | |
| 220 | + } | |
| 221 | + | |
| 222 | + // TOOL CALLS | |
| 223 | + if (message.tool_calls) { | |
| 224 | + for (const toolCall of message.tool_calls) { | |
| 225 | + if (toolCall.id && toolCall.function?.name) { | |
| 226 | + if (availableTools.has(toolCall.function.name)) { | |
| 227 | + currentBlocks.push({ | |
| 228 | + toolUse: { | |
| 229 | + toolUseId: toolCall.id, | |
| 230 | + name: toolCall.function.name, | |
| 231 | + input: safeParseArgs( | |
| 232 | + toolCall.function.arguments, | |
| 233 | + `Call: ${toolCall.function.name} ${toolCall.id}`, | |
| 234 | + ), | |
| 235 | + }, | |
| 236 | + }); | |
| 237 | + hasAddedToolCallIds.add(toolCall.id); | |
| 238 | + } else { | |
| 239 | + const toolCallText = `Assistant tool call:\nTool name: ${toolCall.function.name}\nTool Call ID: ${toolCall.id}\nArguments: ${toolCall.function?.arguments ?? "{}"}`; | |
| 240 | + currentBlocks.push({ | |
| 241 | + text: toolCallText, | |
| 242 | + }); | |
| 243 | + } | |
| 244 | + } | |
| 245 | + } | |
| 246 | + } | |
| 247 | + } | |
| 248 | + } | |
| 249 | + | |
| 250 | + if (currentBlocks.length > 0) { | |
| 251 | + pushCurrentMessage(); | |
| 252 | + } | |
| 253 | + | |
| 254 | + // If caching is enabled, add cache points | |
| 255 | + // if (this.config.cacheBehavior?.cacheConversation) { | |
| 256 | + // this._addCachingToLastTwoUserMessages(converted); | |
| 257 | + // } | |
| 258 | + | |
| 259 | + return converted; | |
| 260 | + } | |
| 261 | + | |
| 262 | + private _addCachingToLastTwoUserMessages(converted: Message[]) { | |
| 263 | + let numCached = 0; | |
| 264 | + for (let i = converted.length - 1; i >= 0; i--) { | |
| 265 | + const message = converted[i]; | |
| 266 | + if (message.role === "user") { | |
| 267 | + message.content?.forEach((block) => { | |
| 268 | + if (block.text) { | |
| 269 | + block.text += getSecureID(); | |
| 270 | + } | |
| 271 | + }); | |
| 272 | + message.content?.push({ cachePoint: { type: "default" } }); | |
| 273 | + numCached++; | |
| 274 | + } | |
| 275 | + if (numCached === 2) { | |
| 276 | + break; | |
| 277 | + } | |
| 278 | + } | |
| 279 | + } | |
| 280 | + | |
| 281 | + private _convertBody( | |
| 282 | + oaiBody: ChatCompletionCreateParams, | |
| 283 | + ): ConverseStreamCommandInput { | |
| 284 | + // Extract system message | |
| 285 | + const systemMessage = | |
| 286 | + oaiBody.messages.find((msg) => msg.role === "system")?.content || ""; | |
| 287 | + | |
| 288 | + const systemMessageText = | |
| 289 | + typeof systemMessage === "string" | |
| 290 | + ? systemMessage | |
| 291 | + : systemMessage | |
| 292 | + .map((part) => | |
| 293 | + part.type === "text" ? part.text : "[Non-text content]", | |
| 294 | + ) | |
| 295 | + .join(" "); | |
| 296 | + | |
| 297 | + // Check for tools | |
| 298 | + const availableTools = new Set<string>(); | |
| 299 | + let toolConfig: ToolConfiguration | undefined = undefined; | |
| 300 | + | |
| 301 | + if (oaiBody.tools && oaiBody.tools.length > 0) { | |
| 302 | + toolConfig = { | |
| 303 | + tools: oaiBody.tools.map((tool) => ({ | |
| 304 | + toolSpec: { | |
| 305 | + name: tool.function.name, | |
| 306 | + description: tool.function.description, | |
| 307 | + inputSchema: { | |
| 308 | + json: tool.function.parameters, | |
| 309 | + }, | |
| 310 | + }, | |
| 311 | + })), | |
| 312 | + } as ToolConfiguration; | |
| 313 | + | |
| 314 | + // Add cache point if needed | |
| 315 | + // if (this.config.cacheBehavior?.cacheSystemMessage) { | |
| 316 | + // toolConfig!.tools!.push({ cachePoint: { type: "default" } }); | |
| 317 | + // } | |
| 318 | + | |
| 319 | + oaiBody.tools.forEach((tool) => { | |
| 320 | + availableTools.add(tool.function.name); | |
| 321 | + }); | |
| 322 | + } | |
| 323 | + | |
| 324 | + // Convert messages | |
| 325 | + const convertedMessages = this._convertMessages( | |
| 326 | + oaiBody.messages, | |
| 327 | + availableTools, | |
| 328 | + ); | |
| 329 | + | |
| 330 | + // Build final request body | |
| 331 | + const body: any = { | |
| 332 | + modelId: oaiBody.model, | |
| 333 | + messages: convertedMessages, | |
| 334 | + inferenceConfig: { | |
| 335 | + temperature: oaiBody.temperature, | |
| 336 | + topP: oaiBody.top_p, | |
| 337 | + maxTokens: oaiBody.max_tokens, | |
| 338 | + stopSequences: Array.isArray(oaiBody.stop) | |
| 339 | + ? oaiBody.stop.filter((s) => s.trim() !== "").slice(0, 4) | |
| 340 | + : oaiBody.stop | |
| 341 | + ? [oaiBody.stop].filter((s) => s.trim() !== "") | |
| 342 | + : undefined, | |
| 343 | + }, | |
| 344 | + }; | |
| 345 | + | |
| 346 | + // Add system message if present | |
| 347 | + if (systemMessageText) { | |
| 348 | + body.system = false // this.config.cacheBehavior?.cacheSystemMessage // TODO | |
| 349 | + ? [{ text: systemMessageText }, { cachePoint: { type: "default" } }] | |
| 350 | + : [{ text: systemMessageText }]; | |
| 351 | + } | |
| 352 | + | |
| 353 | + // Add tool config if present | |
| 354 | + if (toolConfig) { | |
| 355 | + body.toolConfig = toolConfig; | |
| 356 | + } | |
| 357 | + | |
| 358 | + // Add reasoning if needed | |
| 359 | + // TODO REASONING | |
| 360 | + // if (this.c) { | |
| 361 | + // body.additionalModelRequestFields = { | |
| 362 | + // thinking: { | |
| 363 | + // type: "enabled", | |
| 364 | + // budget_tokens: | |
| 365 | + // oaiBody.additionalModelRequestFields.reasoningBudgetTokens, | |
| 366 | + // }, | |
| 367 | + // }; | |
| 368 | + // } | |
| 369 | + | |
| 370 | + return body; | |
| 371 | + } | |
| 372 | + | |
| 373 | + async chatCompletionNonStream( | |
| 374 | + body: ChatCompletionCreateParamsNonStreaming, | |
| 375 | + signal: AbortSignal, | |
| 376 | + ): Promise<ChatCompletion> { | |
| 377 | + let completion = ""; | |
| 378 | + const toolCalls: ChatCompletionMessageToolCall[] = []; | |
| 379 | + | |
| 380 | + for await (const chunk of this.chatCompletionStream( | |
| 381 | + { | |
| 382 | + ...body, | |
| 383 | + stream: true, | |
| 384 | + }, | |
| 385 | + signal, | |
| 386 | + )) { | |
| 387 | + if (chunk.choices[0].delta.content) { | |
| 388 | + completion += chunk.choices[0].delta.content; | |
| 389 | + } | |
| 390 | + // TODO tool calls not supported | |
| 391 | + } | |
| 392 | + | |
| 393 | + return { | |
| 394 | + id: uuidv4(), | |
| 395 | + object: "chat.completion", | |
| 396 | + model: body.model, | |
| 397 | + created: Date.now(), | |
| 398 | + choices: [ | |
| 399 | + { | |
| 400 | + index: 0, | |
| 401 | + logprobs: null, | |
| 402 | + finish_reason: "stop", | |
| 403 | + message: { | |
| 404 | + role: "assistant", | |
| 405 | + content: completion, | |
| 406 | + tool_calls: toolCalls.length > 0 ? toolCalls : undefined, | |
| 407 | + refusal: null, | |
| 408 | + }, | |
| 409 | + }, | |
| 410 | + ], | |
| 411 | + usage: undefined, | |
| 412 | + }; | |
| 413 | + } | |
| 414 | + | |
| 415 | + async *chatCompletionStream( | |
| 416 | + body: ChatCompletionCreateParamsStreaming, | |
| 417 | + signal: AbortSignal, | |
| 418 | + ): AsyncGenerator<ChatCompletionChunk> { | |
| 419 | + const requestBody = this._convertBody(body); | |
| 420 | + | |
| 421 | + try { | |
| 422 | + const command = new ConverseStreamCommand({ | |
| 423 | + ...requestBody, | |
| 424 | + }); | |
| 425 | + | |
| 426 | + const response = await this.client.send(command, { abortSignal: signal }); | |
| 427 | + | |
| 428 | + if (!response?.stream) { | |
| 429 | + throw new Error("No stream received from Bedrock API"); | |
| 430 | + } | |
| 431 | + | |
| 432 | + this._currentToolResponse = null; | |
| 433 | + | |
| 434 | + for await (const chunk of response.stream) { | |
| 435 | + if (chunk.contentBlockDelta?.delta) { | |
| 436 | + const delta: any = chunk.contentBlockDelta.delta; | |
| 437 | + | |
| 438 | + // Handle text content | |
| 439 | + if (delta.text) { | |
| 440 | + yield chatChunk({ | |
| 441 | + content: delta.text, | |
| 442 | + model: body.model, | |
| 443 | + }); | |
| 444 | + continue; | |
| 445 | + } | |
| 446 | + | |
| 447 | + // Handle thinking content (if reasoning enabled) | |
| 448 | + if (delta.reasoningContent?.text) { | |
| 449 | + // TODO reasoning | |
| 450 | + // Reasoning is not directly supported in OpenAI format, | |
| 451 | + // but we could add it as a special message | |
| 452 | + continue; | |
| 453 | + } | |
| 454 | + | |
| 455 | + // Handle tool use | |
| 456 | + if (delta.toolUse?.input && this._currentToolResponse) { | |
| 457 | + if (this._currentToolResponse.input === undefined) { | |
| 458 | + this._currentToolResponse.input = ""; | |
| 459 | + } | |
| 460 | + this._currentToolResponse.input += delta.toolUse.input; | |
| 461 | + continue; | |
| 462 | + } | |
| 463 | + } | |
| 464 | + | |
| 465 | + if (chunk.contentBlockStart?.start) { | |
| 466 | + const start: any = chunk.contentBlockStart.start; | |
| 467 | + | |
| 468 | + // Handle tool start | |
| 469 | + const toolUse = start.toolUse; | |
| 470 | + if (toolUse?.toolUseId && toolUse?.name) { | |
| 471 | + this._currentToolResponse = { | |
| 472 | + toolUseId: toolUse.toolUseId, | |
| 473 | + name: toolUse.name, | |
| 474 | + input: "", | |
| 475 | + }; | |
| 476 | + } | |
| 477 | + continue; | |
| 478 | + } | |
| 479 | + | |
| 480 | + if (chunk.contentBlockStop) { | |
| 481 | + // End of a content block | |
| 482 | + if (this._currentToolResponse) { | |
| 483 | + yield chatChunkFromDelta({ | |
| 484 | + model: body.model, | |
| 485 | + delta: { | |
| 486 | + tool_calls: [ | |
| 487 | + { | |
| 488 | + index: 0, | |
| 489 | + id: this._currentToolResponse.toolUseId, | |
| 490 | + type: "function", | |
| 491 | + function: { | |
| 492 | + name: this._currentToolResponse.name, | |
| 493 | + arguments: this._currentToolResponse.input, | |
| 494 | + }, | |
| 495 | + }, | |
| 496 | + ], | |
| 497 | + }, | |
| 498 | + }); | |
| 499 | + this._currentToolResponse = null; | |
| 500 | + } | |
| 501 | + continue; | |
| 502 | + } | |
| 503 | + } | |
| 504 | + } catch (error) { | |
| 505 | + this._currentToolResponse = null; | |
| 506 | + if (error instanceof Error) { | |
| 507 | + if ("code" in error) { | |
| 508 | + throw new Error( | |
| 509 | + `AWS Bedrock stream error (${(error as any).code}): ${error.message}`, | |
| 510 | + ); | |
| 511 | + } | |
| 512 | + throw new Error(`Error processing Bedrock stream: ${error.message}`); | |
| 513 | + } | |
| 514 | + throw new Error( | |
| 515 | + "Error processing Bedrock stream: Unknown error occurred", | |
| 516 | + ); | |
| 517 | + } | |
| 518 | + } | |
| 519 | + | |
| 520 | + completionNonStream( | |
| 521 | + body: CompletionCreateParamsNonStreaming, | |
| 522 | + ): Promise<Completion> { | |
| 523 | + throw new Error("Bedrock does not support completions API"); | |
| 524 | + } | |
| 525 | + | |
| 526 | + completionStream( | |
| 527 | + body: CompletionCreateParamsStreaming, | |
| 528 | + ): AsyncGenerator<Completion> { | |
| 529 | + throw new Error("Bedrock does not support completions API"); | |
| 530 | + } | |
| 531 | + | |
| 532 | + fimStream( | |
| 533 | + body: FimCreateParamsStreaming, | |
| 534 | + ): AsyncGenerator<ChatCompletionChunk> { | |
| 535 | + throw new Error("Bedrock does not support FIM directly"); | |
| 536 | + } | |
| 537 | + | |
| 538 | + async embed(body: EmbeddingCreateParams): Promise<CreateEmbeddingResponse> { | |
| 539 | + throw new Error("Not implemented"); | |
| 540 | + // // Determine which embedding model is being used based on the model prefix | |
| 541 | + // const modelPrefix = this._getEmbeddingModelPrefix(body.model); | |
| 542 | + | |
| 543 | + // if (!modelPrefix) { | |
| 544 | + // throw new Error(`Unsupported embedding model: ${body.model}`); | |
| 545 | + // } | |
| 546 | + | |
| 547 | + // const inputs = Array.isArray(body.input) ? body.input : [body.input]; | |
| 548 | + | |
| 549 | + // try { | |
| 550 | + // const embeddings = await Promise.all( | |
| 551 | + // inputs.map(async (input) => { | |
| 552 | + // const payload = this._formatEmbeddingPayload(input, modelPrefix); | |
| 553 | + | |
| 554 | + // const response = await customFetch(this.config.requestOptions)( | |
| 555 | + // `https://bedrock-runtime.${this.config.region}.amazonaws.com/model/${body.model}/invoke`, | |
| 556 | + // { | |
| 557 | + // method: "POST", | |
| 558 | + // body: JSON.stringify(payload), | |
| 559 | + // headers: { | |
| 560 | + // "Content-Type": "application/json", | |
| 561 | + // "X-Amz-Content-Sha256": "UNSIGNED-PAYLOAD", | |
| 562 | + // "X-Amz-Date": new Date() | |
| 563 | + // .toISOString() | |
| 564 | + // .replace(/[:-]|\.\d{3}/g, ""), | |
| 565 | + // }, | |
| 566 | + // aws: { | |
| 567 | + // region: this.config.region, | |
| 568 | + // service: "bedrock", | |
| 569 | + // credentials: { | |
| 570 | + // accessKeyId: this.config.accessKeyId, | |
| 571 | + // secretAccessKey: this.config.secretAccessKey, | |
| 572 | + // }, | |
| 573 | + // }, | |
| 574 | + // }, | |
| 575 | + // ); | |
| 576 | + | |
| 577 | + // const data = await response.json(); | |
| 578 | + // return this._extractEmbedding(data, modelPrefix); | |
| 579 | + // }), | |
| 580 | + // ); | |
| 581 | + | |
| 582 | + // return embedding({ | |
| 583 | + // model: body.model, | |
| 584 | + // usage: { | |
| 585 | + // total_tokens: inputs.reduce((sum, input) => sum + input.length, 0), | |
| 586 | + // prompt_tokens: inputs.reduce((sum, input) => sum + input.length, 0), | |
| 587 | + // }, | |
| 588 | + // data: embeddings, | |
| 589 | + // }); | |
| 590 | + // } catch (error) { | |
| 591 | + // if (error instanceof Error) { | |
| 592 | + // throw new Error(`Bedrock embedding error: ${error.message}`); | |
| 593 | + // } | |
| 594 | + // throw new Error("Unknown error in Bedrock embedding"); | |
| 595 | + // } | |
| 596 | + } | |
| 597 | + | |
| 598 | + private _getEmbeddingModelPrefix(model: string): string | undefined { | |
| 599 | + if (model.startsWith("cohere")) { | |
| 600 | + return "cohere"; | |
| 601 | + } | |
| 602 | + if (model.startsWith("amazon.titan-embed")) { | |
| 603 | + return "amazon.titan-embed"; | |
| 604 | + } | |
| 605 | + return undefined; | |
| 606 | + } | |
| 607 | + | |
| 608 | + private _formatEmbeddingPayload(text: string, modelPrefix: string): any { | |
| 609 | + if (modelPrefix === "cohere") { | |
| 610 | + return { | |
| 611 | + texts: [text], | |
| 612 | + input_type: "search_document", | |
| 613 | + truncate: "END", | |
| 614 | + }; | |
| 615 | + } | |
| 616 | + if (modelPrefix === "amazon.titan-embed") { | |
| 617 | + return { | |
| 618 | + inputText: text, | |
| 619 | + }; | |
| 620 | + } | |
| 621 | + throw new Error(`Unsupported model prefix: ${modelPrefix}`); | |
| 622 | + } | |
| 623 | + | |
| 624 | + private _extractEmbedding(data: any, modelPrefix: string): number[] { | |
| 625 | + if (modelPrefix === "cohere") { | |
| 626 | + return data.embeddings?.[0] || []; | |
| 627 | + } | |
| 628 | + if (modelPrefix === "amazon.titan-embed") { | |
| 629 | + return data.embedding || []; | |
| 630 | + } | |
| 631 | + return []; | |
| 632 | + } | |
| 633 | + | |
| 634 | + async rerank(body: RerankCreateParams): Promise<CreateRerankResponse> { | |
| 635 | + throw new Error("Not implemented"); | |
| 636 | + // if (!body.query || !body.documents.length) { | |
| 637 | + // throw new Error("Query and documents must not be empty"); | |
| 638 | + // } | |
| 639 | + | |
| 640 | + // try { | |
| 641 | + // // Build the payload | |
| 642 | + // const payload: any = { | |
| 643 | + // query: body.query, | |
| 644 | + // documents: body.documents, | |
| 645 | + // top_n: body.documents.length, | |
| 646 | + // }; | |
| 647 | + | |
| 648 | + // // Add api_version for Cohere model | |
| 649 | + // if (body.model.startsWith("cohere.rerank")) { | |
| 650 | + // payload.api_version = 2; | |
| 651 | + // } | |
| 652 | + | |
| 653 | + // const response = await customFetch(this.config.requestOptions)( | |
| 654 | + // `https://bedrock-runtime.${this.config.region}.amazonaws.com/model/${body.model}/invoke`, | |
| 655 | + // { | |
| 656 | + // method: "POST", | |
| 657 | + // body: JSON.stringify(payload), | |
| 658 | + // headers: { | |
| 659 | + // "Content-Type": "application/json", | |
| 660 | + // "X-Amz-Content-Sha256": "UNSIGNED-PAYLOAD", | |
| 661 | + // "X-Amz-Date": new Date().toISOString().replace(/[:-]|\.\d{3}/g, ""), | |
| 662 | + // }, | |
| 663 | + // aws: { | |
| 664 | + // region: this.config.region, | |
| 665 | + // service: "bedrock", | |
| 666 | + // credentials: { | |
| 667 | + // accessKeyId: this.config.accessKeyId, | |
| 668 | + // secretAccessKey: this.config.secretAccessKey, | |
| 669 | + // }, | |
| 670 | + // }, | |
| 671 | + // }, | |
| 672 | + // ); | |
| 673 | + | |
| 674 | + // const data = await response.json(); | |
| 675 | + | |
| 676 | + // // Process the response | |
| 677 | + // if (!data.results) { | |
| 678 | + // throw new Error("Invalid response format from Bedrock reranker"); | |
| 679 | + // } | |
| 680 | + | |
| 681 | + // // Return the results in a format compatible with OpenAI's reranker | |
| 682 | + // return { | |
| 683 | + // object: "list", | |
| 684 | + // model: body.model, | |
| 685 | + // data: data.results.map((result: any, index: number) => ({ | |
| 686 | + // document_index: result.index || index, | |
| 687 | + // relevance_score: result.relevance_score, | |
| 688 | + // text: body.documents[result.index || index], | |
| 689 | + // })), | |
| 690 | + // usage: { | |
| 691 | + // total_tokens: 0, // TODO | |
| 692 | + // }, | |
| 693 | + // }; | |
| 694 | + // } catch (error) { | |
| 695 | + // if (error instanceof Error) { | |
| 696 | + // throw new Error(`Bedrock rerank error: ${error.message}`); | |
| 697 | + // } | |
| 698 | + // throw new Error("Unknown error in Bedrock reranker"); | |
| 699 | + // } | |
| 700 | + } | |
| 701 | + | |
| 702 | + list(): Promise<Model[]> { | |
| 703 | + throw new Error("Method not implemented."); | |
| 704 | + } | |
| 705 | +} |
modified packages/openai-adapters/src/index.ts +3 −0
| @@ -2,6 +2,7 @@ | ||
| 2 | 2 | import { z } from "zod"; |
| 3 | 3 | import { AnthropicApi } from "./apis/Anthropic.js"; |
| 4 | 4 | import { AzureApi } from "./apis/Azure.js"; |
| 5 | +import { BedrockApi } from "./apis/Bedrock.js"; | |
| 5 | 6 | import { CohereApi } from "./apis/Cohere.js"; |
| 6 | 7 | import { DeepSeekApi } from "./apis/DeepSeek.js"; |
| 7 | 8 | import { GeminiApi } from "./apis/Gemini.js"; |
| @@ -34,6 +35,8 @@ | ||
| 34 | 35 | return new OpenAIApi(config); |
| 35 | 36 | case "azure": |
| 36 | 37 | return new AzureApi(config); |
| 38 | + case "bedrock": | |
| 39 | + return new BedrockApi(config); | |
| 37 | 40 | case "cohere": |
| 38 | 41 | return new CohereApi(config); |
| 39 | 42 | case "anthropic": |
modified packages/openai-adapters/src/types.ts +13 −0
| @@ -71,6 +71,18 @@ | ||
| 71 | 71 | }); |
| 72 | 72 | export type DeepseekConfig = z.infer<typeof DeepseekConfigSchema>; |
| 73 | 73 | |
| 74 | +export const BedrockConfigSchema = OpenAIConfigSchema.extend({ | |
| 75 | + provider: z.literal("bedrock"), | |
| 76 | + // cacheBehavior: z.object({ | |
| 77 | + // cacheSystemMessage: z.boolean().optional(), | |
| 78 | + // cacheConversation: z.boolean().optional(), | |
| 79 | + // }).optional(), | |
| 80 | + env: z.object({ | |
| 81 | + region: z.string().optional(), | |
| 82 | + }), | |
| 83 | +}); | |
| 84 | +export type BedrockConfig = z.infer<typeof BedrockConfigSchema>; | |
| 85 | + | |
| 74 | 86 | export const LlamastackConfigSchema = OpenAIConfigSchema.extend({ |
| 75 | 87 | provider: z.literal("llamastack"), |
| 76 | 88 | }); |
| @@ -142,6 +154,7 @@ | ||
| 142 | 154 | // Discriminated union |
| 143 | 155 | export const LLMConfigSchema = z.discriminatedUnion("provider", [ |
| 144 | 156 | OpenAIConfigSchema, |
| 157 | + BedrockConfigSchema, | |
| 145 | 158 | MoonshotConfigSchema, |
| 146 | 159 | DeepseekConfigSchema, |
| 147 | 160 | CohereConfigSchema, |