Elffuss BraidHub

kikocis/continue public

Merge pull request #6499 from continuedev/dallin/bedrock-openai-adapter

feat: Bedrock OpenAI adapter
Changeset36ce526986ebcd662af9af27fdd27b2b1b86390739e7939daecaa8d2f115023f
AuthorNate Sesti <33237525+sestinj@users.noreply.github.com> · 2025-07-07 22:46 -07:00
CommitterGitHub <noreply@github.com> · 2025-07-07 22:46 -07:00
Parentsd717cb1b1923, 467f82ca9774

Browse the files at this changeset

17 files changed

modified core/config/load.ts +1 −0
@@ -651,6 +651,7 @@
651651 roles: llm.roles,
652652 configurationStatus: llm.getConfigurationStatus(),
653653 apiKeyLocation: llm.apiKeyLocation,
654+ envSecretLocations: llm.envSecretLocations,
654655 };
655656 }
656657
modified core/config/yaml/models.ts +6 −0
@@ -127,6 +127,12 @@
127127 if ("profile" in env && typeof env.profile === "string") {
128128 options.profile = env.profile;
129129 }
130+ if ("accessKeyId" in env && typeof env.accessKeyId === "string") {
131+ options.accessKeyId = env.accessKeyId;
132+ }
133+ if ("secretAccessKey" in env && typeof env.secretAccessKey === "string") {
134+ options.secretAccessKey = env.secretAccessKey;
135+ }
130136 if ("modelArn" in env && typeof env.modelArn === "string") {
131137 options.modelArn = env.modelArn;
132138 }
modified core/index.d.ts +4 −0
@@ -584,6 +584,7 @@
584584
585585 // continueProperties
586586 apiKeyLocation?: string;
587+ envSecretLocations?: Record<string, string>;
587588 apiBase?: string;
588589 orgScopeId?: string | null;
589590
@@ -612,6 +613,8 @@
612613 // AWS options
613614 profile?: string;
614615 modelArn?: string;
616+ accessKeyId?: string;
617+ secretAccessKey?: string;
615618
616619 // AWS and VertexAI Options
617620 region?: string;
@@ -1083,6 +1086,7 @@
10831086
10841087 apiBase?: string;
10851088 apiKeyLocation?: string;
1089+ envSecretLocations?: Record<string, string>;
10861090 orgScopeId?: string | null;
10871091
10881092 onPremProxyUrl?: string | null;
modified core/llm/constants.ts +1 −0
@@ -15,6 +15,7 @@
1515 export enum LLMConfigurationStatuses {
1616 VALID = "valid",
1717 MISSING_API_KEY = "missing-api-key",
18+ MISSING_ENV_SECRET = "missing-env-secret",
1819 }
1920
2021 export {
modified core/llm/index.ts +6 −0
@@ -156,6 +156,7 @@
156156
157157 // continueProperties
158158 apiKeyLocation?: string;
159+ envSecretLocations?: Record<string, string>;
159160 apiBase?: string;
160161 orgScopeId?: string | null;
161162
@@ -173,6 +174,8 @@
173174 accountId?: string;
174175 aiGatewaySlug?: string;
175176 profile?: string | undefined;
177+ accessKeyId?: string;
178+ secretAccessKey?: string;
176179
177180 // For IBM watsonx
178181 deploymentId?: string;
@@ -248,6 +251,7 @@
248251
249252 // continueProperties
250253 this.apiKeyLocation = options.apiKeyLocation;
254+ this.envSecretLocations = options.envSecretLocations;
251255 this.orgScopeId = options.orgScopeId;
252256 this.apiBase = options.apiBase;
253257
@@ -272,6 +276,8 @@
272276 this.region = options.region;
273277 this.projectId = options.projectId;
274278 this.profile = options.profile;
279+ this.accessKeyId = options.accessKeyId;
280+ this.secretAccessKey = options.secretAccessKey;
275281
276282 this.openaiAdapter = this.createOpenAiAdapter();
277283
modified core/llm/llms/Bedrock.ts +11 −8
@@ -71,11 +71,7 @@
7171 if (!options.apiBase) {
7272 this.apiBase = `https://bedrock-runtime.${options.region}.amazonaws.com`;
7373 }
74- if (options.profile) {
75- this.profile = options.profile;
76- } else {
77- this.profile = "bedrock";
78- }
74+
7975 this.requestOptions = {
8076 region: options.region,
8177 headers: {},
@@ -609,17 +605,24 @@
609605 }
610606
611607 private async _getCredentials() {
608+ if (this.accessKeyId && this.secretAccessKey) {
609+ return {
610+ accessKeyId: this.accessKeyId,
611+ secretAccessKey: this.secretAccessKey,
612+ };
613+ }
614+ const profile = this.profile ?? "bedrock";
612615 try {
613616 return await fromNodeProviderChain({
614- profile: this.profile,
617+ profile: profile,
615618 ignoreCache: true,
616619 })();
617620 } catch (e) {
618621 console.warn(
619- `AWS profile with name ${this.profile} not found in ~/.aws/credentials, using default profile`,
622+ `AWS profile with name ${profile} not found in ~/.aws/credentials, using default profile`,
620623 );
621- return await fromNodeProviderChain()();
622624 }
625+ return await fromNodeProviderChain()();
623626 }
624627
625628 // EMBED //
modified core/llm/llms/stubs/ContinueProxy.ts +17 −4
@@ -40,6 +40,7 @@
4040 this.apiType = undefined;
4141 this.actualApiBase = options.apiBase;
4242 this.apiKeyLocation = options.apiKeyLocation;
43+ this.envSecretLocations = options.envSecretLocations;
4344 this.orgScopeId = options.orgScopeId;
4445 this.onPremProxyUrl = options.onPremProxyUrl;
4546 if (this.onPremProxyUrl) {
@@ -60,6 +61,7 @@
6061 protected extraBodyProperties(): Record<string, any> {
6162 const continueProperties: ContinueProperties = {
6263 apiKeyLocation: this.apiKeyLocation,
64+ envSecretLocations: this.envSecretLocations,
6365 apiBase: this.actualApiBase,
6466 orgScopeId: this.orgScopeId ?? null,
6567 env: this.configEnv,
@@ -70,13 +72,24 @@
7072 }
7173
7274 getConfigurationStatus() {
73- if (!this.apiKeyLocation) {
75+ if (!this.apiKeyLocation && !this.envSecretLocations) {
7476 return LLMConfigurationStatuses.VALID;
7577 }
7678
77- const secretLocation = decodeSecretLocation(this.apiKeyLocation);
78- if (secretLocation.secretType === SecretType.NotFound) {
79- return LLMConfigurationStatuses.MISSING_API_KEY;
79+ if (this.apiKeyLocation) {
80+ const secretLocation = decodeSecretLocation(this.apiKeyLocation);
81+ if (secretLocation.secretType === SecretType.NotFound) {
82+ return LLMConfigurationStatuses.MISSING_API_KEY;
83+ }
84+ }
85+
86+ if (this.envSecretLocations) {
87+ for (const secretLocation of Object.values(this.envSecretLocations)) {
88+ const decoded = decodeSecretLocation(secretLocation);
89+ if (decoded.secretType === SecretType.NotFound) {
90+ return LLMConfigurationStatuses.MISSING_ENV_SECRET;
91+ }
92+ }
8093 }
8194
8295 return LLMConfigurationStatuses.VALID;
modified extensions/vscode/config_schema.json +21 −1
@@ -359,8 +359,18 @@
359359 "description": "The AWS security profile to use",
360360 "type": "string"
361361 },
362+ "accessKeyId": {
363+ "title": "Access Key ID",
364+ "description": "AWS access key id (can be used together with secretAccessKey in place of profile)",
365+ "type": "string"
366+ },
367+ "secretAccessKey": {
368+ "title": "Secret Access Key",
369+ "description": "AWS secret access key (can be used together with secretAccessKey in place of profile)",
370+ "type": "string"
371+ },
362372 "modelArn": {
363- "title": "Profile",
373+ "title": "Model ARN",
364374 "description": "The AWS arn for the imported model",
365375 "type": "string"
366376 },
@@ -2903,6 +2913,16 @@
29032913 "title": "Profile",
29042914 "description": "The AWS security profile to use",
29052915 "type": "string"
2916+ },
2917+ "accessKeyId": {
2918+ "title": "Access Key ID",
2919+ "description": "AWS access key id (can be used together with secretAccessKey in place of profile)",
2920+ "type": "string"
2921+ },
2922+ "secretAccessKey": {
2923+ "title": "Secret Access Key",
2924+ "description": "AWS secret access key (can be used together with secretAccessKey in place of profile)",
2925+ "type": "string"
29062926 }
29072927 },
29082928 "required": ["provider"],
modified gui/src/pages/config/ModelRoleSelector.tsx +19 −6
@@ -119,19 +119,32 @@
119119 {[...models]
120120 .sort((a, b) => a.title.localeCompare(b.title))
121121 .map((option, idx) => {
122- const showMissingApiKeyMsg =
122+ const isConfigInvalid =
123+ option.configurationStatus !==
124+ LLMConfigurationStatuses.VALID;
125+ let invalidMessage = "(Invalid config)";
126+ if (
123127 option.configurationStatus ===
124- LLMConfigurationStatuses.MISSING_API_KEY;
128+ LLMConfigurationStatuses.MISSING_ENV_SECRET
129+ ) {
130+ invalidMessage = "(Missing env secret)";
131+ }
132+ if (
133+ option.configurationStatus ===
134+ LLMConfigurationStatuses.MISSING_API_KEY
135+ ) {
136+ invalidMessage = "(Missing API Key)";
137+ }
125138
126139 return (
127140 <ListboxOption
128141 key={idx}
129142 value={option.title}
130- disabled={showMissingApiKeyMsg}
143+ disabled={isConfigInvalid}
131144 onMouseEnter={() => setHoveredIdx(idx)}
132145 onMouseLeave={() => setHoveredIdx(null)}
133146 onClick={(e: any) =>
134- handleOptionClick(showMissingApiKeyMsg, e)
147+ handleOptionClick(isConfigInvalid, e)
135148 }
136149 className=""
137150 >
@@ -144,9 +157,9 @@
144157 style={{ fontSize: fontSize(-3) }}
145158 >
146159 {option.title}
147- {showMissingApiKeyMsg && (
160+ {isConfigInvalid && (
148161 <span className="ml-2 text-[10px] italic">
149- (Missing API key)
162+ {invalidMessage}
150163 </span>
151164 )}
152165 </span>
modified packages/config-yaml/src/load/clientRender.ts +24 −2
@@ -133,7 +133,27 @@
133133 const apiKeyLocation = getUnrenderedSecretLocation(
134134 config.models[i]?.apiKey,
135135 );
136- if (apiKeyLocation) {
136+ const encodedApiKeyLocation = apiKeyLocation
137+ ? encodeSecretLocation(apiKeyLocation)
138+ : undefined;
139+
140+ let encodedEnvSecretLocations: Record<string, string> | undefined =
141+ undefined;
142+ if (config.models[i]?.env) {
143+ Object.entries(config.models[i]?.env!).forEach(([key, value]) => {
144+ if (typeof value === "string") {
145+ const secretLocation = getUnrenderedSecretLocation(value);
146+ if (secretLocation) {
147+ encodedEnvSecretLocations = {
148+ ...encodedEnvSecretLocations,
149+ [key]: encodeSecretLocation(secretLocation),
150+ };
151+ }
152+ }
153+ });
154+ }
155+
156+ if (encodedApiKeyLocation || encodedEnvSecretLocations) {
137157 config.models[i] = {
138158 ...config.models[i],
139159 name: config.models[i]?.name ?? "",
@@ -143,7 +163,8 @@
143163 config.models[i]?.provider ?? "",
144164 config.models[i]?.model ?? "",
145165 ),
146- apiKeyLocation: encodeSecretLocation(apiKeyLocation),
166+ apiKeyLocation: encodedApiKeyLocation,
167+ envSecretLocations: encodedEnvSecretLocations,
147168 orgScopeId,
148169 onPremProxyUrl,
149170 apiKey: undefined,
@@ -158,6 +179,7 @@
158179 /** The additional properties that are added to the otherwise OpenAI-compatible body when requesting a Continue proxy */
159180 export const continuePropertiesSchema = z.object({
160181 apiKeyLocation: z.string().optional(),
182+ envSecretLocations: z.record(z.string(), z.string()).optional(),
161183 apiBase: z.string().optional(),
162184 orgScopeId: z.string().nullable(),
163185 env: z.record(z.string(), z.any()).optional(),
modified packages/config-yaml/src/schemas/models.ts +4 −2
@@ -155,7 +155,8 @@
155155 z.object({
156156 ...baseModelFields,
157157 provider: z.literal("continue-proxy"),
158- apiKeyLocation: z.string(),
158+ apiKeyLocation: z.string().optional(),
159+ envSecretLocations: z.record(z.string(), z.string()).optional(),
159160 orgScopeId: z.string().nullable(),
160161 onPremProxyUrl: z.string().nullable(),
161162 }),
@@ -170,7 +171,8 @@
170171 .object({
171172 ...baseModelFields,
172173 provider: z.literal("continue-proxy"),
173- apiKeyLocation: z.string(),
174+ apiKeyLocation: z.string().optional(),
175+ envSecretLocations: z.record(z.string(), z.string()).optional(),
174176 })
175177 .partial(),
176178 z
modified packages/continue-sdk/typescript/src/createOpenAIClient.ts +3 −2
@@ -71,14 +71,15 @@
7171 );
7272 }
7373
74- if (!("apiKeyLocation" in modelConfig)) {
74+ if (!("apiKeyLocation" in modelConfig) && !("envSecretLocations" in modelConfig)) {
7575 throw new Error(
76- `Model ${modelName} does not have an apiKeyLocation defined`,
76+ `Model ${modelName} does not have an apiKeyLocation or envSecretLocations defined`,
7777 );
7878 }
7979
8080 const continueProperties: ContinueProperties = {
8181 apiKeyLocation: modelConfig.apiKeyLocation,
82+ envSecretLocations: modelConfig.envSecretLocations,
8283 orgScopeId: organizationId ?? null,
8384 };
8485
modified packages/openai-adapters/package-lock.json +1718 −193
@@ -9,6 +9,8 @@
99 "version": "1.0.44",
1010 "license": "Apache-2.0",
1111 "dependencies": {
12+ "@aws-sdk/client-bedrock-runtime": "^3.842.0",
13+ "@aws-sdk/credential-providers": "^3.840.0",
1214 "@continuedev/config-types": "^1.0.5",
1315 "@continuedev/config-yaml": "^1.0.51",
1416 "@continuedev/fetch": "^1.0.15",
@@ -42,6 +44,827 @@
4244 "node": ">=6.0.0"
4345 }
4446 },
47+ "node_modules/@aws-crypto/crc32": {
48+ "version": "5.2.0",
49+ "resolved": "https://registry.npmjs.org/@aws-crypto/crc32/-/crc32-5.2.0.tgz",
50+ "integrity": "sha512-nLbCWqQNgUiwwtFsen1AdzAtvuLRsQS8rYgMuxCrdKf9kOssamGLuPwyTY9wyYblNr9+1XM8v6zoDTPPSIeANg==",
51+ "license": "Apache-2.0",
52+ "dependencies": {
53+ "@aws-crypto/util": "^5.2.0",
54+ "@aws-sdk/types": "^3.222.0",
55+ "tslib": "^2.6.2"
56+ },
57+ "engines": {
58+ "node": ">=16.0.0"
59+ }
60+ },
61+ "node_modules/@aws-crypto/sha256-browser": {
62+ "version": "5.2.0",
63+ "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-browser/-/sha256-browser-5.2.0.tgz",
64+ "integrity": "sha512-AXfN/lGotSQwu6HNcEsIASo7kWXZ5HYWvfOmSNKDsEqC4OashTp8alTmaz+F7TC2L083SFv5RdB+qU3Vs1kZqw==",
65+ "license": "Apache-2.0",
66+ "dependencies": {
67+ "@aws-crypto/sha256-js": "^5.2.0",
68+ "@aws-crypto/supports-web-crypto": "^5.2.0",
69+ "@aws-crypto/util": "^5.2.0",
70+ "@aws-sdk/types": "^3.222.0",
71+ "@aws-sdk/util-locate-window": "^3.0.0",
72+ "@smithy/util-utf8": "^2.0.0",
73+ "tslib": "^2.6.2"
74+ }
75+ },
76+ "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer": {
77+ "version": "2.2.0",
78+ "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz",
79+ "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==",
80+ "license": "Apache-2.0",
81+ "dependencies": {
82+ "tslib": "^2.6.2"
83+ },
84+ "engines": {
85+ "node": ">=14.0.0"
86+ }
87+ },
88+ "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from": {
89+ "version": "2.2.0",
90+ "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz",
91+ "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==",
92+ "license": "Apache-2.0",
93+ "dependencies": {
94+ "@smithy/is-array-buffer": "^2.2.0",
95+ "tslib": "^2.6.2"
96+ },
97+ "engines": {
98+ "node": ">=14.0.0"
99+ }
100+ },
101+ "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8": {
102+ "version": "2.3.0",
103+ "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz",
104+ "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==",
105+ "license": "Apache-2.0",
106+ "dependencies": {
107+ "@smithy/util-buffer-from": "^2.2.0",
108+ "tslib": "^2.6.2"
109+ },
110+ "engines": {
111+ "node": ">=14.0.0"
112+ }
113+ },
114+ "node_modules/@aws-crypto/sha256-js": {
115+ "version": "5.2.0",
116+ "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-5.2.0.tgz",
117+ "integrity": "sha512-FFQQyu7edu4ufvIZ+OadFpHHOt+eSTBaYaki44c+akjg7qZg9oOQeLlk77F6tSYqjDAFClrHJk9tMf0HdVyOvA==",
118+ "license": "Apache-2.0",
119+ "dependencies": {
120+ "@aws-crypto/util": "^5.2.0",
121+ "@aws-sdk/types": "^3.222.0",
122+ "tslib": "^2.6.2"
123+ },
124+ "engines": {
125+ "node": ">=16.0.0"
126+ }
127+ },
128+ "node_modules/@aws-crypto/supports-web-crypto": {
129+ "version": "5.2.0",
130+ "resolved": "https://registry.npmjs.org/@aws-crypto/supports-web-crypto/-/supports-web-crypto-5.2.0.tgz",
131+ "integrity": "sha512-iAvUotm021kM33eCdNfwIN//F77/IADDSs58i+MDaOqFrVjZo9bAal0NK7HurRuWLLpF1iLX7gbWrjHjeo+YFg==",
132+ "license": "Apache-2.0",
133+ "dependencies": {
134+ "tslib": "^2.6.2"
135+ }
136+ },
137+ "node_modules/@aws-crypto/util": {
138+ "version": "5.2.0",
139+ "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-5.2.0.tgz",
140+ "integrity": "sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==",
141+ "license": "Apache-2.0",
142+ "dependencies": {
143+ "@aws-sdk/types": "^3.222.0",
144+ "@smithy/util-utf8": "^2.0.0",
145+ "tslib": "^2.6.2"
146+ }
147+ },
148+ "node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer": {
149+ "version": "2.2.0",
150+ "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz",
151+ "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==",
152+ "license": "Apache-2.0",
153+ "dependencies": {
154+ "tslib": "^2.6.2"
155+ },
156+ "engines": {
157+ "node": ">=14.0.0"
158+ }
159+ },
160+ "node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from": {
161+ "version": "2.2.0",
162+ "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz",
163+ "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==",
164+ "license": "Apache-2.0",
165+ "dependencies": {
166+ "@smithy/is-array-buffer": "^2.2.0",
167+ "tslib": "^2.6.2"
168+ },
169+ "engines": {
170+ "node": ">=14.0.0"
171+ }
172+ },
173+ "node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8": {
174+ "version": "2.3.0",
175+ "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz",
176+ "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==",
177+ "license": "Apache-2.0",
178+ "dependencies": {
179+ "@smithy/util-buffer-from": "^2.2.0",
180+ "tslib": "^2.6.2"
181+ },
182+ "engines": {
183+ "node": ">=14.0.0"
184+ }
185+ },
186+ "node_modules/@aws-sdk/client-bedrock-runtime": {
187+ "version": "3.842.0",
188+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-bedrock-runtime/-/client-bedrock-runtime-3.842.0.tgz",
189+ "integrity": "sha512-CrGuU9YGqYZPm2hjjqJYC5+HMjky/HuvlUmboFDdpH96mwm/RrUQAO6sXYojeUPy9ceidUiHd3HskqvpiMTl2Q==",
190+ "license": "Apache-2.0",
191+ "dependencies": {
192+ "@aws-crypto/sha256-browser": "5.2.0",
193+ "@aws-crypto/sha256-js": "5.2.0",
194+ "@aws-sdk/core": "3.840.0",
195+ "@aws-sdk/credential-provider-node": "3.840.0",
196+ "@aws-sdk/eventstream-handler-node": "3.840.0",
197+ "@aws-sdk/middleware-eventstream": "3.840.0",
198+ "@aws-sdk/middleware-host-header": "3.840.0",
199+ "@aws-sdk/middleware-logger": "3.840.0",
200+ "@aws-sdk/middleware-recursion-detection": "3.840.0",
201+ "@aws-sdk/middleware-user-agent": "3.840.0",
202+ "@aws-sdk/middleware-websocket": "3.840.0",
203+ "@aws-sdk/region-config-resolver": "3.840.0",
204+ "@aws-sdk/token-providers": "3.840.0",
205+ "@aws-sdk/types": "3.840.0",
206+ "@aws-sdk/util-endpoints": "3.840.0",
207+ "@aws-sdk/util-user-agent-browser": "3.840.0",
208+ "@aws-sdk/util-user-agent-node": "3.840.0",
209+ "@smithy/config-resolver": "^4.1.4",
210+ "@smithy/core": "^3.6.0",
211+ "@smithy/eventstream-serde-browser": "^4.0.4",
212+ "@smithy/eventstream-serde-config-resolver": "^4.1.2",
213+ "@smithy/eventstream-serde-node": "^4.0.4",
214+ "@smithy/fetch-http-handler": "^5.0.4",
215+ "@smithy/hash-node": "^4.0.4",
216+ "@smithy/invalid-dependency": "^4.0.4",
217+ "@smithy/middleware-content-length": "^4.0.4",
218+ "@smithy/middleware-endpoint": "^4.1.13",
219+ "@smithy/middleware-retry": "^4.1.14",
220+ "@smithy/middleware-serde": "^4.0.8",
221+ "@smithy/middleware-stack": "^4.0.4",
222+ "@smithy/node-config-provider": "^4.1.3",
223+ "@smithy/node-http-handler": "^4.0.6",
224+ "@smithy/protocol-http": "^5.1.2",
225+ "@smithy/smithy-client": "^4.4.5",
226+ "@smithy/types": "^4.3.1",
227+ "@smithy/url-parser": "^4.0.4",
228+ "@smithy/util-base64": "^4.0.0",
229+ "@smithy/util-body-length-browser": "^4.0.0",
230+ "@smithy/util-body-length-node": "^4.0.0",
231+ "@smithy/util-defaults-mode-browser": "^4.0.21",
232+ "@smithy/util-defaults-mode-node": "^4.0.21",
233+ "@smithy/util-endpoints": "^3.0.6",
234+ "@smithy/util-middleware": "^4.0.4",
235+ "@smithy/util-retry": "^4.0.6",
236+ "@smithy/util-stream": "^4.2.2",
237+ "@smithy/util-utf8": "^4.0.0",
238+ "@types/uuid": "^9.0.1",
239+ "tslib": "^2.6.2",
240+ "uuid": "^9.0.1"
241+ },
242+ "engines": {
243+ "node": ">=18.0.0"
244+ }
245+ },
246+ "node_modules/@aws-sdk/client-bedrock-runtime/node_modules/uuid": {
247+ "version": "9.0.1",
248+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz",
249+ "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==",
250+ "funding": [
251+ "https://github.com/sponsors/broofa",
252+ "https://github.com/sponsors/ctavan"
253+ ],
254+ "license": "MIT",
255+ "bin": {
256+ "uuid": "dist/bin/uuid"
257+ }
258+ },
259+ "node_modules/@aws-sdk/client-cognito-identity": {
260+ "version": "3.840.0",
261+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.840.0.tgz",
262+ "integrity": "sha512-0sn/X63Xqqh5D1FYmdSHiS9SkDzTitoGO++/8IFik4xf/jpn4ZQkIoDPvpxFZcLvebMuUa6jAQs4ap4RusKGkg==",
263+ "license": "Apache-2.0",
264+ "dependencies": {
265+ "@aws-crypto/sha256-browser": "5.2.0",
266+ "@aws-crypto/sha256-js": "5.2.0",
267+ "@aws-sdk/core": "3.840.0",
268+ "@aws-sdk/credential-provider-node": "3.840.0",
269+ "@aws-sdk/middleware-host-header": "3.840.0",
270+ "@aws-sdk/middleware-logger": "3.840.0",
271+ "@aws-sdk/middleware-recursion-detection": "3.840.0",
272+ "@aws-sdk/middleware-user-agent": "3.840.0",
273+ "@aws-sdk/region-config-resolver": "3.840.0",
274+ "@aws-sdk/types": "3.840.0",
275+ "@aws-sdk/util-endpoints": "3.840.0",
276+ "@aws-sdk/util-user-agent-browser": "3.840.0",
277+ "@aws-sdk/util-user-agent-node": "3.840.0",
278+ "@smithy/config-resolver": "^4.1.4",
279+ "@smithy/core": "^3.6.0",
280+ "@smithy/fetch-http-handler": "^5.0.4",
281+ "@smithy/hash-node": "^4.0.4",
282+ "@smithy/invalid-dependency": "^4.0.4",
283+ "@smithy/middleware-content-length": "^4.0.4",
284+ "@smithy/middleware-endpoint": "^4.1.13",
285+ "@smithy/middleware-retry": "^4.1.14",
286+ "@smithy/middleware-serde": "^4.0.8",
287+ "@smithy/middleware-stack": "^4.0.4",
288+ "@smithy/node-config-provider": "^4.1.3",
289+ "@smithy/node-http-handler": "^4.0.6",
290+ "@smithy/protocol-http": "^5.1.2",
291+ "@smithy/smithy-client": "^4.4.5",
292+ "@smithy/types": "^4.3.1",
293+ "@smithy/url-parser": "^4.0.4",
294+ "@smithy/util-base64": "^4.0.0",
295+ "@smithy/util-body-length-browser": "^4.0.0",
296+ "@smithy/util-body-length-node": "^4.0.0",
297+ "@smithy/util-defaults-mode-browser": "^4.0.21",
298+ "@smithy/util-defaults-mode-node": "^4.0.21",
299+ "@smithy/util-endpoints": "^3.0.6",
300+ "@smithy/util-middleware": "^4.0.4",
301+ "@smithy/util-retry": "^4.0.6",
302+ "@smithy/util-utf8": "^4.0.0",
303+ "tslib": "^2.6.2"
304+ },
305+ "engines": {
306+ "node": ">=18.0.0"
307+ }
308+ },
309+ "node_modules/@aws-sdk/client-sso": {
310+ "version": "3.840.0",
311+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.840.0.tgz",
312+ "integrity": "sha512-3Zp+FWN2hhmKdpS0Ragi5V2ZPsZNScE3jlbgoJjzjI/roHZqO+e3/+XFN4TlM0DsPKYJNp+1TAjmhxN6rOnfYA==",
313+ "license": "Apache-2.0",
314+ "dependencies": {
315+ "@aws-crypto/sha256-browser": "5.2.0",
316+ "@aws-crypto/sha256-js": "5.2.0",
317+ "@aws-sdk/core": "3.840.0",
318+ "@aws-sdk/middleware-host-header": "3.840.0",
319+ "@aws-sdk/middleware-logger": "3.840.0",
320+ "@aws-sdk/middleware-recursion-detection": "3.840.0",
321+ "@aws-sdk/middleware-user-agent": "3.840.0",
322+ "@aws-sdk/region-config-resolver": "3.840.0",
323+ "@aws-sdk/types": "3.840.0",
324+ "@aws-sdk/util-endpoints": "3.840.0",
325+ "@aws-sdk/util-user-agent-browser": "3.840.0",
326+ "@aws-sdk/util-user-agent-node": "3.840.0",
327+ "@smithy/config-resolver": "^4.1.4",
328+ "@smithy/core": "^3.6.0",
329+ "@smithy/fetch-http-handler": "^5.0.4",
330+ "@smithy/hash-node": "^4.0.4",
331+ "@smithy/invalid-dependency": "^4.0.4",
332+ "@smithy/middleware-content-length": "^4.0.4",
333+ "@smithy/middleware-endpoint": "^4.1.13",
334+ "@smithy/middleware-retry": "^4.1.14",
335+ "@smithy/middleware-serde": "^4.0.8",
336+ "@smithy/middleware-stack": "^4.0.4",
337+ "@smithy/node-config-provider": "^4.1.3",
338+ "@smithy/node-http-handler": "^4.0.6",
339+ "@smithy/protocol-http": "^5.1.2",
340+ "@smithy/smithy-client": "^4.4.5",
341+ "@smithy/types": "^4.3.1",
342+ "@smithy/url-parser": "^4.0.4",
343+ "@smithy/util-base64": "^4.0.0",
344+ "@smithy/util-body-length-browser": "^4.0.0",
345+ "@smithy/util-body-length-node": "^4.0.0",
346+ "@smithy/util-defaults-mode-browser": "^4.0.21",
347+ "@smithy/util-defaults-mode-node": "^4.0.21",
348+ "@smithy/util-endpoints": "^3.0.6",
349+ "@smithy/util-middleware": "^4.0.4",
350+ "@smithy/util-retry": "^4.0.6",
351+ "@smithy/util-utf8": "^4.0.0",
352+ "tslib": "^2.6.2"
353+ },
354+ "engines": {
355+ "node": ">=18.0.0"
356+ }
357+ },
358+ "node_modules/@aws-sdk/core": {
359+ "version": "3.840.0",
360+ "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.840.0.tgz",
361+ "integrity": "sha512-x3Zgb39tF1h2XpU+yA4OAAQlW6LVEfXNlSedSYJ7HGKXqA/E9h3rWQVpYfhXXVVsLdYXdNw5KBUkoAoruoZSZA==",
362+ "license": "Apache-2.0",
363+ "dependencies": {
364+ "@aws-sdk/types": "3.840.0",
365+ "@aws-sdk/xml-builder": "3.821.0",
366+ "@smithy/core": "^3.6.0",
367+ "@smithy/node-config-provider": "^4.1.3",
368+ "@smithy/property-provider": "^4.0.4",
369+ "@smithy/protocol-http": "^5.1.2",
370+ "@smithy/signature-v4": "^5.1.2",
371+ "@smithy/smithy-client": "^4.4.5",
372+ "@smithy/types": "^4.3.1",
373+ "@smithy/util-base64": "^4.0.0",
374+ "@smithy/util-body-length-browser": "^4.0.0",
375+ "@smithy/util-middleware": "^4.0.4",
376+ "@smithy/util-utf8": "^4.0.0",
377+ "fast-xml-parser": "4.4.1",
378+ "tslib": "^2.6.2"
379+ },
380+ "engines": {
381+ "node": ">=18.0.0"
382+ }
383+ },
384+ "node_modules/@aws-sdk/credential-provider-cognito-identity": {
385+ "version": "3.840.0",
386+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-cognito-identity/-/credential-provider-cognito-identity-3.840.0.tgz",
387+ "integrity": "sha512-p1RaMVd6+6ruYjKsWRCZT/jWhrYfDKbXY+/ScIYTvcaOOf9ArMtVnhFk3egewrC7kPXFGRYhg2GPmxRotNYMng==",
388+ "license": "Apache-2.0",
389+ "dependencies": {
390+ "@aws-sdk/client-cognito-identity": "3.840.0",
391+ "@aws-sdk/types": "3.840.0",
392+ "@smithy/property-provider": "^4.0.4",
393+ "@smithy/types": "^4.3.1",
394+ "tslib": "^2.6.2"
395+ },
396+ "engines": {
397+ "node": ">=18.0.0"
398+ }
399+ },
400+ "node_modules/@aws-sdk/credential-provider-env": {
401+ "version": "3.840.0",
402+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.840.0.tgz",
403+ "integrity": "sha512-EzF6VcJK7XvQ/G15AVEfJzN2mNXU8fcVpXo4bRyr1S6t2q5zx6UPH/XjDbn18xyUmOq01t+r8gG+TmHEVo18fA==",
404+ "license": "Apache-2.0",
405+ "dependencies": {
406+ "@aws-sdk/core": "3.840.0",
407+ "@aws-sdk/types": "3.840.0",
408+ "@smithy/property-provider": "^4.0.4",
409+ "@smithy/types": "^4.3.1",
410+ "tslib": "^2.6.2"
411+ },
412+ "engines": {
413+ "node": ">=18.0.0"
414+ }
415+ },
416+ "node_modules/@aws-sdk/credential-provider-http": {
417+ "version": "3.840.0",
418+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.840.0.tgz",
419+ "integrity": "sha512-wbnUiPGLVea6mXbUh04fu+VJmGkQvmToPeTYdHE8eRZq3NRDi3t3WltT+jArLBKD/4NppRpMjf2ju4coMCz91g==",
420+ "license": "Apache-2.0",
421+ "dependencies": {
422+ "@aws-sdk/core": "3.840.0",
423+ "@aws-sdk/types": "3.840.0",
424+ "@smithy/fetch-http-handler": "^5.0.4",
425+ "@smithy/node-http-handler": "^4.0.6",
426+ "@smithy/property-provider": "^4.0.4",
427+ "@smithy/protocol-http": "^5.1.2",
428+ "@smithy/smithy-client": "^4.4.5",
429+ "@smithy/types": "^4.3.1",
430+ "@smithy/util-stream": "^4.2.2",
431+ "tslib": "^2.6.2"
432+ },
433+ "engines": {
434+ "node": ">=18.0.0"
435+ }
436+ },
437+ "node_modules/@aws-sdk/credential-provider-ini": {
438+ "version": "3.840.0",
439+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.840.0.tgz",
440+ "integrity": "sha512-7F290BsWydShHb+7InXd+IjJc3mlEIm9I0R57F/Pjl1xZB69MdkhVGCnuETWoBt4g53ktJd6NEjzm/iAhFXFmw==",
441+ "license": "Apache-2.0",
442+ "dependencies": {
443+ "@aws-sdk/core": "3.840.0",
444+ "@aws-sdk/credential-provider-env": "3.840.0",
445+ "@aws-sdk/credential-provider-http": "3.840.0",
446+ "@aws-sdk/credential-provider-process": "3.840.0",
447+ "@aws-sdk/credential-provider-sso": "3.840.0",
448+ "@aws-sdk/credential-provider-web-identity": "3.840.0",
449+ "@aws-sdk/nested-clients": "3.840.0",
450+ "@aws-sdk/types": "3.840.0",
451+ "@smithy/credential-provider-imds": "^4.0.6",
452+ "@smithy/property-provider": "^4.0.4",
453+ "@smithy/shared-ini-file-loader": "^4.0.4",
454+ "@smithy/types": "^4.3.1",
455+ "tslib": "^2.6.2"
456+ },
457+ "engines": {
458+ "node": ">=18.0.0"
459+ }
460+ },
461+ "node_modules/@aws-sdk/credential-provider-node": {
462+ "version": "3.840.0",
463+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.840.0.tgz",
464+ "integrity": "sha512-KufP8JnxA31wxklLm63evUPSFApGcH8X86z3mv9SRbpCm5ycgWIGVCTXpTOdgq6rPZrwT9pftzv2/b4mV/9clg==",
465+ "license": "Apache-2.0",
466+ "dependencies": {
467+ "@aws-sdk/credential-provider-env": "3.840.0",
468+ "@aws-sdk/credential-provider-http": "3.840.0",
469+ "@aws-sdk/credential-provider-ini": "3.840.0",
470+ "@aws-sdk/credential-provider-process": "3.840.0",
471+ "@aws-sdk/credential-provider-sso": "3.840.0",
472+ "@aws-sdk/credential-provider-web-identity": "3.840.0",
473+ "@aws-sdk/types": "3.840.0",
474+ "@smithy/credential-provider-imds": "^4.0.6",
475+ "@smithy/property-provider": "^4.0.4",
476+ "@smithy/shared-ini-file-loader": "^4.0.4",
477+ "@smithy/types": "^4.3.1",
478+ "tslib": "^2.6.2"
479+ },
480+ "engines": {
481+ "node": ">=18.0.0"
482+ }
483+ },
484+ "node_modules/@aws-sdk/credential-provider-process": {
485+ "version": "3.840.0",
486+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.840.0.tgz",
487+ "integrity": "sha512-HkDQWHy8tCI4A0Ps2NVtuVYMv9cB4y/IuD/TdOsqeRIAT12h8jDb98BwQPNLAImAOwOWzZJ8Cu0xtSpX7CQhMw==",
488+ "license": "Apache-2.0",
489+ "dependencies": {
490+ "@aws-sdk/core": "3.840.0",
491+ "@aws-sdk/types": "3.840.0",
492+ "@smithy/property-provider": "^4.0.4",
493+ "@smithy/shared-ini-file-loader": "^4.0.4",
494+ "@smithy/types": "^4.3.1",
495+ "tslib": "^2.6.2"
496+ },
497+ "engines": {
498+ "node": ">=18.0.0"
499+ }
500+ },
501+ "node_modules/@aws-sdk/credential-provider-sso": {
502+ "version": "3.840.0",
503+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.840.0.tgz",
504+ "integrity": "sha512-2qgdtdd6R0Z1y0KL8gzzwFUGmhBHSUx4zy85L2XV1CXhpRNwV71SVWJqLDVV5RVWVf9mg50Pm3AWrUC0xb0pcA==",
505+ "license": "Apache-2.0",
506+ "dependencies": {
507+ "@aws-sdk/client-sso": "3.840.0",
508+ "@aws-sdk/core": "3.840.0",
509+ "@aws-sdk/token-providers": "3.840.0",
510+ "@aws-sdk/types": "3.840.0",
511+ "@smithy/property-provider": "^4.0.4",
512+ "@smithy/shared-ini-file-loader": "^4.0.4",
513+ "@smithy/types": "^4.3.1",
514+ "tslib": "^2.6.2"
515+ },
516+ "engines": {
517+ "node": ">=18.0.0"
518+ }
519+ },
520+ "node_modules/@aws-sdk/credential-provider-web-identity": {
521+ "version": "3.840.0",
522+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.840.0.tgz",
523+ "integrity": "sha512-dpEeVXG8uNZSmVXReE4WP0lwoioX2gstk4RnUgrdUE3YaPq8A+hJiVAyc3h+cjDeIqfbsQbZm9qFetKC2LF9dQ==",
524+ "license": "Apache-2.0",
525+ "dependencies": {
526+ "@aws-sdk/core": "3.840.0",
527+ "@aws-sdk/nested-clients": "3.840.0",
528+ "@aws-sdk/types": "3.840.0",
529+ "@smithy/property-provider": "^4.0.4",
530+ "@smithy/types": "^4.3.1",
531+ "tslib": "^2.6.2"
532+ },
533+ "engines": {
534+ "node": ">=18.0.0"
535+ }
536+ },
537+ "node_modules/@aws-sdk/credential-providers": {
538+ "version": "3.840.0",
539+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-providers/-/credential-providers-3.840.0.tgz",
540+ "integrity": "sha512-+CxYdGd+uM4NZ9VUvFTU1c/H61qhDB4q362k8xKU+bz24g//LDQ5Mpwksv8OUD1en44v4fUwgZ4SthPZMs+eFQ==",
541+ "license": "Apache-2.0",
542+ "dependencies": {
543+ "@aws-sdk/client-cognito-identity": "3.840.0",
544+ "@aws-sdk/core": "3.840.0",
545+ "@aws-sdk/credential-provider-cognito-identity": "3.840.0",
546+ "@aws-sdk/credential-provider-env": "3.840.0",
547+ "@aws-sdk/credential-provider-http": "3.840.0",
548+ "@aws-sdk/credential-provider-ini": "3.840.0",
549+ "@aws-sdk/credential-provider-node": "3.840.0",
550+ "@aws-sdk/credential-provider-process": "3.840.0",
551+ "@aws-sdk/credential-provider-sso": "3.840.0",
552+ "@aws-sdk/credential-provider-web-identity": "3.840.0",
553+ "@aws-sdk/nested-clients": "3.840.0",
554+ "@aws-sdk/types": "3.840.0",
555+ "@smithy/config-resolver": "^4.1.4",
556+ "@smithy/core": "^3.6.0",
557+ "@smithy/credential-provider-imds": "^4.0.6",
558+ "@smithy/node-config-provider": "^4.1.3",
559+ "@smithy/property-provider": "^4.0.4",
560+ "@smithy/types": "^4.3.1",
561+ "tslib": "^2.6.2"
562+ },
563+ "engines": {
564+ "node": ">=18.0.0"
565+ }
566+ },
567+ "node_modules/@aws-sdk/eventstream-handler-node": {
568+ "version": "3.840.0",
569+ "resolved": "https://registry.npmjs.org/@aws-sdk/eventstream-handler-node/-/eventstream-handler-node-3.840.0.tgz",
570+ "integrity": "sha512-m/zVrSSAEHq+6h4sy0JUEBScB1pGgs/1+iRVhfzfbnf+/gTr4ut2jRq4tDiNEX9pQ1oFVvw+ntPua5qfquQeRQ==",
571+ "license": "Apache-2.0",
572+ "dependencies": {
573+ "@aws-sdk/types": "3.840.0",
574+ "@smithy/eventstream-codec": "^4.0.4",
575+ "@smithy/types": "^4.3.1",
576+ "tslib": "^2.6.2"
577+ },
578+ "engines": {
579+ "node": ">=18.0.0"
580+ }
581+ },
582+ "node_modules/@aws-sdk/middleware-eventstream": {
583+ "version": "3.840.0",
584+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-eventstream/-/middleware-eventstream-3.840.0.tgz",
585+ "integrity": "sha512-4khgf7AjJ4llh3aiNmZ+x4PGl4vkKNxRHn0xTgi6Iw1J3SChsF2mnNaLXK8hoXeydx756rw+JhqOuZH91i5l4w==",
586+ "license": "Apache-2.0",
587+ "dependencies": {
588+ "@aws-sdk/types": "3.840.0",
589+ "@smithy/protocol-http": "^5.1.2",
590+ "@smithy/types": "^4.3.1",
591+ "tslib": "^2.6.2"
592+ },
593+ "engines": {
594+ "node": ">=18.0.0"
595+ }
596+ },
597+ "node_modules/@aws-sdk/middleware-host-header": {
598+ "version": "3.840.0",
599+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.840.0.tgz",
600+ "integrity": "sha512-ub+hXJAbAje94+Ya6c6eL7sYujoE8D4Bumu1NUI8TXjUhVVn0HzVWQjpRLshdLsUp1AW7XyeJaxyajRaJQ8+Xg==",
601+ "license": "Apache-2.0",
602+ "dependencies": {
603+ "@aws-sdk/types": "3.840.0",
604+ "@smithy/protocol-http": "^5.1.2",
605+ "@smithy/types": "^4.3.1",
606+ "tslib": "^2.6.2"
607+ },
608+ "engines": {
609+ "node": ">=18.0.0"
610+ }
611+ },
612+ "node_modules/@aws-sdk/middleware-logger": {
613+ "version": "3.840.0",
614+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.840.0.tgz",
615+ "integrity": "sha512-lSV8FvjpdllpGaRspywss4CtXV8M7NNNH+2/j86vMH+YCOZ6fu2T/TyFd/tHwZ92vDfHctWkRbQxg0bagqwovA==",
616+ "license": "Apache-2.0",
617+ "dependencies": {
618+ "@aws-sdk/types": "3.840.0",
619+ "@smithy/types": "^4.3.1",
620+ "tslib": "^2.6.2"
621+ },
622+ "engines": {
623+ "node": ">=18.0.0"
624+ }
625+ },
626+ "node_modules/@aws-sdk/middleware-recursion-detection": {
627+ "version": "3.840.0",
628+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.840.0.tgz",
629+ "integrity": "sha512-Gu7lGDyfddyhIkj1Z1JtrY5NHb5+x/CRiB87GjaSrKxkDaydtX2CU977JIABtt69l9wLbcGDIQ+W0uJ5xPof7g==",
630+ "license": "Apache-2.0",
631+ "dependencies": {
632+ "@aws-sdk/types": "3.840.0",
633+ "@smithy/protocol-http": "^5.1.2",
634+ "@smithy/types": "^4.3.1",
635+ "tslib": "^2.6.2"
636+ },
637+ "engines": {
638+ "node": ">=18.0.0"
639+ }
640+ },
641+ "node_modules/@aws-sdk/middleware-user-agent": {
642+ "version": "3.840.0",
643+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.840.0.tgz",
644+ "integrity": "sha512-hiiMf7BP5ZkAFAvWRcK67Mw/g55ar7OCrvrynC92hunx/xhMkrgSLM0EXIZ1oTn3uql9kH/qqGF0nqsK6K555A==",
645+ "license": "Apache-2.0",
646+ "dependencies": {
647+ "@aws-sdk/core": "3.840.0",
648+ "@aws-sdk/types": "3.840.0",
649+ "@aws-sdk/util-endpoints": "3.840.0",
650+ "@smithy/core": "^3.6.0",
651+ "@smithy/protocol-http": "^5.1.2",
652+ "@smithy/types": "^4.3.1",
653+ "tslib": "^2.6.2"
654+ },
655+ "engines": {
656+ "node": ">=18.0.0"
657+ }
658+ },
659+ "node_modules/@aws-sdk/middleware-websocket": {
660+ "version": "3.840.0",
661+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-websocket/-/middleware-websocket-3.840.0.tgz",
662+ "integrity": "sha512-v9jJD1zjKMUg8iEZlFP5TLY7+DdwKodLgkNtls34+LMRbW+7Bue+H3gPi1VML5sks2o/+PJ6fz58Wo3bXZ8XHA==",
663+ "license": "Apache-2.0",
664+ "dependencies": {
665+ "@aws-sdk/types": "3.840.0",
666+ "@aws-sdk/util-format-url": "3.840.0",
667+ "@smithy/eventstream-codec": "^4.0.4",
668+ "@smithy/eventstream-serde-browser": "^4.0.4",
669+ "@smithy/fetch-http-handler": "^5.0.4",
670+ "@smithy/protocol-http": "^5.1.2",
671+ "@smithy/signature-v4": "^5.1.2",
672+ "@smithy/types": "^4.3.1",
673+ "@smithy/util-hex-encoding": "^4.0.0",
674+ "tslib": "^2.6.2"
675+ },
676+ "engines": {
677+ "node": ">= 14.0.0"
678+ }
679+ },
680+ "node_modules/@aws-sdk/nested-clients": {
681+ "version": "3.840.0",
682+ "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.840.0.tgz",
683+ "integrity": "sha512-LXYYo9+n4hRqnRSIMXLBb+BLz+cEmjMtTudwK1BF6Bn2RfdDv29KuyeDRrPCS3TwKl7ZKmXUmE9n5UuHAPfBpA==",
684+ "license": "Apache-2.0",
685+ "dependencies": {
686+ "@aws-crypto/sha256-browser": "5.2.0",
687+ "@aws-crypto/sha256-js": "5.2.0",
688+ "@aws-sdk/core": "3.840.0",
689+ "@aws-sdk/middleware-host-header": "3.840.0",
690+ "@aws-sdk/middleware-logger": "3.840.0",
691+ "@aws-sdk/middleware-recursion-detection": "3.840.0",
692+ "@aws-sdk/middleware-user-agent": "3.840.0",
693+ "@aws-sdk/region-config-resolver": "3.840.0",
694+ "@aws-sdk/types": "3.840.0",
695+ "@aws-sdk/util-endpoints": "3.840.0",
696+ "@aws-sdk/util-user-agent-browser": "3.840.0",
697+ "@aws-sdk/util-user-agent-node": "3.840.0",
698+ "@smithy/config-resolver": "^4.1.4",
699+ "@smithy/core": "^3.6.0",
700+ "@smithy/fetch-http-handler": "^5.0.4",
701+ "@smithy/hash-node": "^4.0.4",
702+ "@smithy/invalid-dependency": "^4.0.4",
703+ "@smithy/middleware-content-length": "^4.0.4",
704+ "@smithy/middleware-endpoint": "^4.1.13",
705+ "@smithy/middleware-retry": "^4.1.14",
706+ "@smithy/middleware-serde": "^4.0.8",
707+ "@smithy/middleware-stack": "^4.0.4",
708+ "@smithy/node-config-provider": "^4.1.3",
709+ "@smithy/node-http-handler": "^4.0.6",
710+ "@smithy/protocol-http": "^5.1.2",
711+ "@smithy/smithy-client": "^4.4.5",
712+ "@smithy/types": "^4.3.1",
713+ "@smithy/url-parser": "^4.0.4",
714+ "@smithy/util-base64": "^4.0.0",
715+ "@smithy/util-body-length-browser": "^4.0.0",
716+ "@smithy/util-body-length-node": "^4.0.0",
717+ "@smithy/util-defaults-mode-browser": "^4.0.21",
718+ "@smithy/util-defaults-mode-node": "^4.0.21",
719+ "@smithy/util-endpoints": "^3.0.6",
720+ "@smithy/util-middleware": "^4.0.4",
721+ "@smithy/util-retry": "^4.0.6",
722+ "@smithy/util-utf8": "^4.0.0",
723+ "tslib": "^2.6.2"
724+ },
725+ "engines": {
726+ "node": ">=18.0.0"
727+ }
728+ },
729+ "node_modules/@aws-sdk/region-config-resolver": {
730+ "version": "3.840.0",
731+ "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.840.0.tgz",
732+ "integrity": "sha512-Qjnxd/yDv9KpIMWr90ZDPtRj0v75AqGC92Lm9+oHXZ8p1MjG5JE2CW0HL8JRgK9iKzgKBL7pPQRXI8FkvEVfrA==",
733+ "license": "Apache-2.0",
734+ "dependencies": {
735+ "@aws-sdk/types": "3.840.0",
736+ "@smithy/node-config-provider": "^4.1.3",
737+ "@smithy/types": "^4.3.1",
738+ "@smithy/util-config-provider": "^4.0.0",
739+ "@smithy/util-middleware": "^4.0.4",
740+ "tslib": "^2.6.2"
741+ },
742+ "engines": {
743+ "node": ">=18.0.0"
744+ }
745+ },
746+ "node_modules/@aws-sdk/token-providers": {
747+ "version": "3.840.0",
748+ "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.840.0.tgz",
749+ "integrity": "sha512-6BuTOLTXvmgwjK7ve7aTg9JaWFdM5UoMolLVPMyh3wTv9Ufalh8oklxYHUBIxsKkBGO2WiHXytveuxH6tAgTYg==",
750+ "license": "Apache-2.0",
751+ "dependencies": {
752+ "@aws-sdk/core": "3.840.0",
753+ "@aws-sdk/nested-clients": "3.840.0",
754+ "@aws-sdk/types": "3.840.0",
755+ "@smithy/property-provider": "^4.0.4",
756+ "@smithy/shared-ini-file-loader": "^4.0.4",
757+ "@smithy/types": "^4.3.1",
758+ "tslib": "^2.6.2"
759+ },
760+ "engines": {
761+ "node": ">=18.0.0"
762+ }
763+ },
764+ "node_modules/@aws-sdk/types": {
765+ "version": "3.840.0",
766+ "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.840.0.tgz",
767+ "integrity": "sha512-xliuHaUFZxEx1NSXeLLZ9Dyu6+EJVQKEoD+yM+zqUo3YDZ7medKJWY6fIOKiPX/N7XbLdBYwajb15Q7IL8KkeA==",
768+ "license": "Apache-2.0",
769+ "dependencies": {
770+ "@smithy/types": "^4.3.1",
771+ "tslib": "^2.6.2"
772+ },
773+ "engines": {
774+ "node": ">=18.0.0"
775+ }
776+ },
777+ "node_modules/@aws-sdk/util-endpoints": {
778+ "version": "3.840.0",
779+ "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.840.0.tgz",
780+ "integrity": "sha512-eqE9ROdg/Kk0rj3poutyRCFauPDXIf/WSvCqFiRDDVi6QOnCv/M0g2XW8/jSvkJlOyaXkNCptapIp6BeeFFGYw==",
781+ "license": "Apache-2.0",
782+ "dependencies": {
783+ "@aws-sdk/types": "3.840.0",
784+ "@smithy/types": "^4.3.1",
785+ "@smithy/util-endpoints": "^3.0.6",
786+ "tslib": "^2.6.2"
787+ },
788+ "engines": {
789+ "node": ">=18.0.0"
790+ }
791+ },
792+ "node_modules/@aws-sdk/util-format-url": {
793+ "version": "3.840.0",
794+ "resolved": "https://registry.npmjs.org/@aws-sdk/util-format-url/-/util-format-url-3.840.0.tgz",
795+ "integrity": "sha512-VB1PWyI1TQPiPvg4w7tgUGGQER1xxXPNUqfh3baxUSFi1Oh8wHrDnFywkxLm3NMmgDmnLnSZ5Q326qAoyqKLSg==",
796+ "license": "Apache-2.0",
797+ "dependencies": {
798+ "@aws-sdk/types": "3.840.0",
799+ "@smithy/querystring-builder": "^4.0.4",
800+ "@smithy/types": "^4.3.1",
801+ "tslib": "^2.6.2"
802+ },
803+ "engines": {
804+ "node": ">=18.0.0"
805+ }
806+ },
807+ "node_modules/@aws-sdk/util-locate-window": {
808+ "version": "3.804.0",
809+ "resolved": "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.804.0.tgz",
810+ "integrity": "sha512-zVoRfpmBVPodYlnMjgVjfGoEZagyRF5IPn3Uo6ZvOZp24chnW/FRstH7ESDHDDRga4z3V+ElUQHKpFDXWyBW5A==",
811+ "license": "Apache-2.0",
812+ "dependencies": {
813+ "tslib": "^2.6.2"
814+ },
815+ "engines": {
816+ "node": ">=18.0.0"
817+ }
818+ },
819+ "node_modules/@aws-sdk/util-user-agent-browser": {
820+ "version": "3.840.0",
821+ "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.840.0.tgz",
822+ "integrity": "sha512-JdyZM3EhhL4PqwFpttZu1afDpPJCCc3eyZOLi+srpX11LsGj6sThf47TYQN75HT1CarZ7cCdQHGzP2uy3/xHfQ==",
823+ "license": "Apache-2.0",
824+ "dependencies": {
825+ "@aws-sdk/types": "3.840.0",
826+ "@smithy/types": "^4.3.1",
827+ "bowser": "^2.11.0",
828+ "tslib": "^2.6.2"
829+ }
830+ },
831+ "node_modules/@aws-sdk/util-user-agent-node": {
832+ "version": "3.840.0",
833+ "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.840.0.tgz",
834+ "integrity": "sha512-Fy5JUEDQU1tPm2Yw/YqRYYc27W5+QD/J4mYvQvdWjUGZLB5q3eLFMGD35Uc28ZFoGMufPr4OCxK/bRfWROBRHQ==",
835+ "license": "Apache-2.0",
836+ "dependencies": {
837+ "@aws-sdk/middleware-user-agent": "3.840.0",
838+ "@aws-sdk/types": "3.840.0",
839+ "@smithy/node-config-provider": "^4.1.3",
840+ "@smithy/types": "^4.3.1",
841+ "tslib": "^2.6.2"
842+ },
843+ "engines": {
844+ "node": ">=18.0.0"
845+ },
846+ "peerDependencies": {
847+ "aws-crt": ">=1.0.0"
848+ },
849+ "peerDependenciesMeta": {
850+ "aws-crt": {
851+ "optional": true
852+ }
853+ }
854+ },
855+ "node_modules/@aws-sdk/xml-builder": {
856+ "version": "3.821.0",
857+ "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.821.0.tgz",
858+ "integrity": "sha512-DIIotRnefVL6DiaHtO6/21DhJ4JZnnIwdNbpwiAhdt/AVbttcE4yw925gsjur0OGv5BTYXQXU3YnANBYnZjuQA==",
859+ "license": "Apache-2.0",
860+ "dependencies": {
861+ "@smithy/types": "^4.3.1",
862+ "tslib": "^2.6.2"
863+ },
864+ "engines": {
865+ "node": ">=18.0.0"
866+ }
867+ },
45868 "node_modules/@babel/code-frame": {
46869 "version": "7.24.7",
47870 "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz",
@@ -761,265 +1584,915 @@
7611584 "jest-get-type": "^29.6.3"
7621585 },
7631586 "engines": {
764- "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
1587+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
1588+ }
1589+ },
1590+ "node_modules/@jest/fake-timers": {
1591+ "version": "29.7.0",
1592+ "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz",
1593+ "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==",
1594+ "dev": true,
1595+ "peer": true,
1596+ "dependencies": {
1597+ "@jest/types": "^29.6.3",
1598+ "@sinonjs/fake-timers": "^10.0.2",
1599+ "@types/node": "*",
1600+ "jest-message-util": "^29.7.0",
1601+ "jest-mock": "^29.7.0",
1602+ "jest-util": "^29.7.0"
1603+ },
1604+ "engines": {
1605+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
1606+ }
1607+ },
1608+ "node_modules/@jest/globals": {
1609+ "version": "29.7.0",
1610+ "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz",
1611+ "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==",
1612+ "dev": true,
1613+ "peer": true,
1614+ "dependencies": {
1615+ "@jest/environment": "^29.7.0",
1616+ "@jest/expect": "^29.7.0",
1617+ "@jest/types": "^29.6.3",
1618+ "jest-mock": "^29.7.0"
1619+ },
1620+ "engines": {
1621+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
1622+ }
1623+ },
1624+ "node_modules/@jest/reporters": {
1625+ "version": "29.7.0",
1626+ "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz",
1627+ "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==",
1628+ "dev": true,
1629+ "peer": true,
1630+ "dependencies": {
1631+ "@bcoe/v8-coverage": "^0.2.3",
1632+ "@jest/console": "^29.7.0",
1633+ "@jest/test-result": "^29.7.0",
1634+ "@jest/transform": "^29.7.0",
1635+ "@jest/types": "^29.6.3",
1636+ "@jridgewell/trace-mapping": "^0.3.18",
1637+ "@types/node": "*",
1638+ "chalk": "^4.0.0",
1639+ "collect-v8-coverage": "^1.0.0",
1640+ "exit": "^0.1.2",
1641+ "glob": "^7.1.3",
1642+ "graceful-fs": "^4.2.9",
1643+ "istanbul-lib-coverage": "^3.0.0",
1644+ "istanbul-lib-instrument": "^6.0.0",
1645+ "istanbul-lib-report": "^3.0.0",
1646+ "istanbul-lib-source-maps": "^4.0.0",
1647+ "istanbul-reports": "^3.1.3",
1648+ "jest-message-util": "^29.7.0",
1649+ "jest-util": "^29.7.0",
1650+ "jest-worker": "^29.7.0",
1651+ "slash": "^3.0.0",
1652+ "string-length": "^4.0.1",
1653+ "strip-ansi": "^6.0.0",
1654+ "v8-to-istanbul": "^9.0.1"
1655+ },
1656+ "engines": {
1657+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
1658+ },
1659+ "peerDependencies": {
1660+ "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0"
1661+ },
1662+ "peerDependenciesMeta": {
1663+ "node-notifier": {
1664+ "optional": true
1665+ }
1666+ }
1667+ },
1668+ "node_modules/@jest/schemas": {
1669+ "version": "29.6.3",
1670+ "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz",
1671+ "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==",
1672+ "dev": true,
1673+ "dependencies": {
1674+ "@sinclair/typebox": "^0.27.8"
1675+ },
1676+ "engines": {
1677+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
1678+ }
1679+ },
1680+ "node_modules/@jest/source-map": {
1681+ "version": "29.6.3",
1682+ "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz",
1683+ "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==",
1684+ "dev": true,
1685+ "peer": true,
1686+ "dependencies": {
1687+ "@jridgewell/trace-mapping": "^0.3.18",
1688+ "callsites": "^3.0.0",
1689+ "graceful-fs": "^4.2.9"
1690+ },
1691+ "engines": {
1692+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
1693+ }
1694+ },
1695+ "node_modules/@jest/test-result": {
1696+ "version": "29.7.0",
1697+ "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz",
1698+ "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==",
1699+ "dev": true,
1700+ "peer": true,
1701+ "dependencies": {
1702+ "@jest/console": "^29.7.0",
1703+ "@jest/types": "^29.6.3",
1704+ "@types/istanbul-lib-coverage": "^2.0.0",
1705+ "collect-v8-coverage": "^1.0.0"
1706+ },
1707+ "engines": {
1708+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
1709+ }
1710+ },
1711+ "node_modules/@jest/test-sequencer": {
1712+ "version": "29.7.0",
1713+ "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz",
1714+ "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==",
1715+ "dev": true,
1716+ "peer": true,
1717+ "dependencies": {
1718+ "@jest/test-result": "^29.7.0",
1719+ "graceful-fs": "^4.2.9",
1720+ "jest-haste-map": "^29.7.0",
1721+ "slash": "^3.0.0"
1722+ },
1723+ "engines": {
1724+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
1725+ }
1726+ },
1727+ "node_modules/@jest/transform": {
1728+ "version": "29.7.0",
1729+ "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz",
1730+ "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==",
1731+ "dev": true,
1732+ "peer": true,
1733+ "dependencies": {
1734+ "@babel/core": "^7.11.6",
1735+ "@jest/types": "^29.6.3",
1736+ "@jridgewell/trace-mapping": "^0.3.18",
1737+ "babel-plugin-istanbul": "^6.1.1",
1738+ "chalk": "^4.0.0",
1739+ "convert-source-map": "^2.0.0",
1740+ "fast-json-stable-stringify": "^2.1.0",
1741+ "graceful-fs": "^4.2.9",
1742+ "jest-haste-map": "^29.7.0",
1743+ "jest-regex-util": "^29.6.3",
1744+ "jest-util": "^29.7.0",
1745+ "micromatch": "^4.0.4",
1746+ "pirates": "^4.0.4",
1747+ "slash": "^3.0.0",
1748+ "write-file-atomic": "^4.0.2"
1749+ },
1750+ "engines": {
1751+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
1752+ }
1753+ },
1754+ "node_modules/@jest/types": {
1755+ "version": "29.6.3",
1756+ "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz",
1757+ "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==",
1758+ "dev": true,
1759+ "dependencies": {
1760+ "@jest/schemas": "^29.6.3",
1761+ "@types/istanbul-lib-coverage": "^2.0.0",
1762+ "@types/istanbul-reports": "^3.0.0",
1763+ "@types/node": "*",
1764+ "@types/yargs": "^17.0.8",
1765+ "chalk": "^4.0.0"
1766+ },
1767+ "engines": {
1768+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
1769+ }
1770+ },
1771+ "node_modules/@jridgewell/gen-mapping": {
1772+ "version": "0.3.5",
1773+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz",
1774+ "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==",
1775+ "dev": true,
1776+ "peer": true,
1777+ "dependencies": {
1778+ "@jridgewell/set-array": "^1.2.1",
1779+ "@jridgewell/sourcemap-codec": "^1.4.10",
1780+ "@jridgewell/trace-mapping": "^0.3.24"
1781+ },
1782+ "engines": {
1783+ "node": ">=6.0.0"
1784+ }
1785+ },
1786+ "node_modules/@jridgewell/resolve-uri": {
1787+ "version": "3.1.2",
1788+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
1789+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
1790+ "dev": true,
1791+ "engines": {
1792+ "node": ">=6.0.0"
1793+ }
1794+ },
1795+ "node_modules/@jridgewell/set-array": {
1796+ "version": "1.2.1",
1797+ "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz",
1798+ "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==",
1799+ "dev": true,
1800+ "peer": true,
1801+ "engines": {
1802+ "node": ">=6.0.0"
1803+ }
1804+ },
1805+ "node_modules/@jridgewell/sourcemap-codec": {
1806+ "version": "1.5.0",
1807+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz",
1808+ "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==",
1809+ "dev": true
1810+ },
1811+ "node_modules/@jridgewell/trace-mapping": {
1812+ "version": "0.3.25",
1813+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz",
1814+ "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==",
1815+ "dev": true,
1816+ "peer": true,
1817+ "dependencies": {
1818+ "@jridgewell/resolve-uri": "^3.1.0",
1819+ "@jridgewell/sourcemap-codec": "^1.4.14"
1820+ }
1821+ },
1822+ "node_modules/@sinclair/typebox": {
1823+ "version": "0.27.8",
1824+ "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz",
1825+ "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==",
1826+ "dev": true
1827+ },
1828+ "node_modules/@sinonjs/commons": {
1829+ "version": "3.0.1",
1830+ "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz",
1831+ "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==",
1832+ "dev": true,
1833+ "peer": true,
1834+ "dependencies": {
1835+ "type-detect": "4.0.8"
1836+ }
1837+ },
1838+ "node_modules/@sinonjs/fake-timers": {
1839+ "version": "10.3.0",
1840+ "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz",
1841+ "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==",
1842+ "dev": true,
1843+ "peer": true,
1844+ "dependencies": {
1845+ "@sinonjs/commons": "^3.0.0"
1846+ }
1847+ },
1848+ "node_modules/@smithy/abort-controller": {
1849+ "version": "4.0.4",
1850+ "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-4.0.4.tgz",
1851+ "integrity": "sha512-gJnEjZMvigPDQWHrW3oPrFhQtkrgqBkyjj3pCIdF3A5M6vsZODG93KNlfJprv6bp4245bdT32fsHK4kkH3KYDA==",
1852+ "license": "Apache-2.0",
1853+ "dependencies": {
1854+ "@smithy/types": "^4.3.1",
1855+ "tslib": "^2.6.2"
1856+ },
1857+ "engines": {
1858+ "node": ">=18.0.0"
1859+ }
1860+ },
1861+ "node_modules/@smithy/config-resolver": {
1862+ "version": "4.1.4",
1863+ "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-4.1.4.tgz",
1864+ "integrity": "sha512-prmU+rDddxHOH0oNcwemL+SwnzcG65sBF2yXRO7aeXIn/xTlq2pX7JLVbkBnVLowHLg4/OL4+jBmv9hVrVGS+w==",
1865+ "license": "Apache-2.0",
1866+ "dependencies": {
1867+ "@smithy/node-config-provider": "^4.1.3",
1868+ "@smithy/types": "^4.3.1",
1869+ "@smithy/util-config-provider": "^4.0.0",
1870+ "@smithy/util-middleware": "^4.0.4",
1871+ "tslib": "^2.6.2"
1872+ },
1873+ "engines": {
1874+ "node": ">=18.0.0"
1875+ }
1876+ },
1877+ "node_modules/@smithy/core": {
1878+ "version": "3.6.0",
1879+ "resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.6.0.tgz",
1880+ "integrity": "sha512-Pgvfb+TQ4wUNLyHzvgCP4aYZMh16y7GcfF59oirRHcgGgkH1e/s9C0nv/v3WP+Quymyr5je71HeFQCwh+44XLg==",
1881+ "license": "Apache-2.0",
1882+ "dependencies": {
1883+ "@smithy/middleware-serde": "^4.0.8",
1884+ "@smithy/protocol-http": "^5.1.2",
1885+ "@smithy/types": "^4.3.1",
1886+ "@smithy/util-base64": "^4.0.0",
1887+ "@smithy/util-body-length-browser": "^4.0.0",
1888+ "@smithy/util-middleware": "^4.0.4",
1889+ "@smithy/util-stream": "^4.2.2",
1890+ "@smithy/util-utf8": "^4.0.0",
1891+ "tslib": "^2.6.2"
1892+ },
1893+ "engines": {
1894+ "node": ">=18.0.0"
1895+ }
1896+ },
1897+ "node_modules/@smithy/credential-provider-imds": {
1898+ "version": "4.0.6",
1899+ "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-4.0.6.tgz",
1900+ "integrity": "sha512-hKMWcANhUiNbCJouYkZ9V3+/Qf9pteR1dnwgdyzR09R4ODEYx8BbUysHwRSyex4rZ9zapddZhLFTnT4ZijR4pw==",
1901+ "license": "Apache-2.0",
1902+ "dependencies": {
1903+ "@smithy/node-config-provider": "^4.1.3",
1904+ "@smithy/property-provider": "^4.0.4",
1905+ "@smithy/types": "^4.3.1",
1906+ "@smithy/url-parser": "^4.0.4",
1907+ "tslib": "^2.6.2"
1908+ },
1909+ "engines": {
1910+ "node": ">=18.0.0"
1911+ }
1912+ },
1913+ "node_modules/@smithy/eventstream-codec": {
1914+ "version": "4.0.4",
1915+ "resolved": "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-4.0.4.tgz",
1916+ "integrity": "sha512-7XoWfZqWb/QoR/rAU4VSi0mWnO2vu9/ltS6JZ5ZSZv0eovLVfDfu0/AX4ub33RsJTOth3TiFWSHS5YdztvFnig==",
1917+ "license": "Apache-2.0",
1918+ "dependencies": {
1919+ "@aws-crypto/crc32": "5.2.0",
1920+ "@smithy/types": "^4.3.1",
1921+ "@smithy/util-hex-encoding": "^4.0.0",
1922+ "tslib": "^2.6.2"
1923+ },
1924+ "engines": {
1925+ "node": ">=18.0.0"
1926+ }
1927+ },
1928+ "node_modules/@smithy/eventstream-serde-browser": {
1929+ "version": "4.0.4",
1930+ "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-browser/-/eventstream-serde-browser-4.0.4.tgz",
1931+ "integrity": "sha512-3fb/9SYaYqbpy/z/H3yIi0bYKyAa89y6xPmIqwr2vQiUT2St+avRt8UKwsWt9fEdEasc5d/V+QjrviRaX1JRFA==",
1932+ "license": "Apache-2.0",
1933+ "dependencies": {
1934+ "@smithy/eventstream-serde-universal": "^4.0.4",
1935+ "@smithy/types": "^4.3.1",
1936+ "tslib": "^2.6.2"
1937+ },
1938+ "engines": {
1939+ "node": ">=18.0.0"
1940+ }
1941+ },
1942+ "node_modules/@smithy/eventstream-serde-config-resolver": {
1943+ "version": "4.1.2",
1944+ "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-config-resolver/-/eventstream-serde-config-resolver-4.1.2.tgz",
1945+ "integrity": "sha512-JGtambizrWP50xHgbzZI04IWU7LdI0nh/wGbqH3sJesYToMi2j/DcoElqyOcqEIG/D4tNyxgRuaqBXWE3zOFhQ==",
1946+ "license": "Apache-2.0",
1947+ "dependencies": {
1948+ "@smithy/types": "^4.3.1",
1949+ "tslib": "^2.6.2"
1950+ },
1951+ "engines": {
1952+ "node": ">=18.0.0"
1953+ }
1954+ },
1955+ "node_modules/@smithy/eventstream-serde-node": {
1956+ "version": "4.0.4",
1957+ "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-node/-/eventstream-serde-node-4.0.4.tgz",
1958+ "integrity": "sha512-RD6UwNZ5zISpOWPuhVgRz60GkSIp0dy1fuZmj4RYmqLVRtejFqQ16WmfYDdoSoAjlp1LX+FnZo+/hkdmyyGZ1w==",
1959+ "license": "Apache-2.0",
1960+ "dependencies": {
1961+ "@smithy/eventstream-serde-universal": "^4.0.4",
1962+ "@smithy/types": "^4.3.1",
1963+ "tslib": "^2.6.2"
1964+ },
1965+ "engines": {
1966+ "node": ">=18.0.0"
1967+ }
1968+ },
1969+ "node_modules/@smithy/eventstream-serde-universal": {
1970+ "version": "4.0.4",
1971+ "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-universal/-/eventstream-serde-universal-4.0.4.tgz",
1972+ "integrity": "sha512-UeJpOmLGhq1SLox79QWw/0n2PFX+oPRE1ZyRMxPIaFEfCqWaqpB7BU9C8kpPOGEhLF7AwEqfFbtwNxGy4ReENA==",
1973+ "license": "Apache-2.0",
1974+ "dependencies": {
1975+ "@smithy/eventstream-codec": "^4.0.4",
1976+ "@smithy/types": "^4.3.1",
1977+ "tslib": "^2.6.2"
1978+ },
1979+ "engines": {
1980+ "node": ">=18.0.0"
1981+ }
1982+ },
1983+ "node_modules/@smithy/fetch-http-handler": {
1984+ "version": "5.0.4",
1985+ "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-5.0.4.tgz",
1986+ "integrity": "sha512-AMtBR5pHppYMVD7z7G+OlHHAcgAN7v0kVKEpHuTO4Gb199Gowh0taYi9oDStFeUhetkeP55JLSVlTW1n9rFtUw==",
1987+ "license": "Apache-2.0",
1988+ "dependencies": {
1989+ "@smithy/protocol-http": "^5.1.2",
1990+ "@smithy/querystring-builder": "^4.0.4",
1991+ "@smithy/types": "^4.3.1",
1992+ "@smithy/util-base64": "^4.0.0",
1993+ "tslib": "^2.6.2"
1994+ },
1995+ "engines": {
1996+ "node": ">=18.0.0"
1997+ }
1998+ },
1999+ "node_modules/@smithy/hash-node": {
2000+ "version": "4.0.4",
2001+ "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-4.0.4.tgz",
2002+ "integrity": "sha512-qnbTPUhCVnCgBp4z4BUJUhOEkVwxiEi1cyFM+Zj6o+aY8OFGxUQleKWq8ltgp3dujuhXojIvJWdoqpm6dVO3lQ==",
2003+ "license": "Apache-2.0",
2004+ "dependencies": {
2005+ "@smithy/types": "^4.3.1",
2006+ "@smithy/util-buffer-from": "^4.0.0",
2007+ "@smithy/util-utf8": "^4.0.0",
2008+ "tslib": "^2.6.2"
2009+ },
2010+ "engines": {
2011+ "node": ">=18.0.0"
2012+ }
2013+ },
2014+ "node_modules/@smithy/invalid-dependency": {
2015+ "version": "4.0.4",
2016+ "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-4.0.4.tgz",
2017+ "integrity": "sha512-bNYMi7WKTJHu0gn26wg8OscncTt1t2b8KcsZxvOv56XA6cyXtOAAAaNP7+m45xfppXfOatXF3Sb1MNsLUgVLTw==",
2018+ "license": "Apache-2.0",
2019+ "dependencies": {
2020+ "@smithy/types": "^4.3.1",
2021+ "tslib": "^2.6.2"
2022+ },
2023+ "engines": {
2024+ "node": ">=18.0.0"
2025+ }
2026+ },
2027+ "node_modules/@smithy/is-array-buffer": {
2028+ "version": "4.0.0",
2029+ "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-4.0.0.tgz",
2030+ "integrity": "sha512-saYhF8ZZNoJDTvJBEWgeBccCg+yvp1CX+ed12yORU3NilJScfc6gfch2oVb4QgxZrGUx3/ZJlb+c/dJbyupxlw==",
2031+ "license": "Apache-2.0",
2032+ "dependencies": {
2033+ "tslib": "^2.6.2"
2034+ },
2035+ "engines": {
2036+ "node": ">=18.0.0"
2037+ }
2038+ },
2039+ "node_modules/@smithy/middleware-content-length": {
2040+ "version": "4.0.4",
2041+ "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-4.0.4.tgz",
2042+ "integrity": "sha512-F7gDyfI2BB1Kc+4M6rpuOLne5LOcEknH1n6UQB69qv+HucXBR1rkzXBnQTB2q46sFy1PM/zuSJOB532yc8bg3w==",
2043+ "license": "Apache-2.0",
2044+ "dependencies": {
2045+ "@smithy/protocol-http": "^5.1.2",
2046+ "@smithy/types": "^4.3.1",
2047+ "tslib": "^2.6.2"
2048+ },
2049+ "engines": {
2050+ "node": ">=18.0.0"
2051+ }
2052+ },
2053+ "node_modules/@smithy/middleware-endpoint": {
2054+ "version": "4.1.13",
2055+ "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-4.1.13.tgz",
2056+ "integrity": "sha512-xg3EHV/Q5ZdAO5b0UiIMj3RIOCobuS40pBBODguUDVdko6YK6QIzCVRrHTogVuEKglBWqWenRnZ71iZnLL3ZAQ==",
2057+ "license": "Apache-2.0",
2058+ "dependencies": {
2059+ "@smithy/core": "^3.6.0",
2060+ "@smithy/middleware-serde": "^4.0.8",
2061+ "@smithy/node-config-provider": "^4.1.3",
2062+ "@smithy/shared-ini-file-loader": "^4.0.4",
2063+ "@smithy/types": "^4.3.1",
2064+ "@smithy/url-parser": "^4.0.4",
2065+ "@smithy/util-middleware": "^4.0.4",
2066+ "tslib": "^2.6.2"
2067+ },
2068+ "engines": {
2069+ "node": ">=18.0.0"
2070+ }
2071+ },
2072+ "node_modules/@smithy/middleware-retry": {
2073+ "version": "4.1.14",
2074+ "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-4.1.14.tgz",
2075+ "integrity": "sha512-eoXaLlDGpKvdmvt+YBfRXE7HmIEtFF+DJCbTPwuLunP0YUnrydl+C4tS+vEM0+nyxXrX3PSUFqC+lP1+EHB1Tw==",
2076+ "license": "Apache-2.0",
2077+ "dependencies": {
2078+ "@smithy/node-config-provider": "^4.1.3",
2079+ "@smithy/protocol-http": "^5.1.2",
2080+ "@smithy/service-error-classification": "^4.0.6",
2081+ "@smithy/smithy-client": "^4.4.5",
2082+ "@smithy/types": "^4.3.1",
2083+ "@smithy/util-middleware": "^4.0.4",
2084+ "@smithy/util-retry": "^4.0.6",
2085+ "tslib": "^2.6.2",
2086+ "uuid": "^9.0.1"
2087+ },
2088+ "engines": {
2089+ "node": ">=18.0.0"
2090+ }
2091+ },
2092+ "node_modules/@smithy/middleware-retry/node_modules/uuid": {
2093+ "version": "9.0.1",
2094+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz",
2095+ "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==",
2096+ "funding": [
2097+ "https://github.com/sponsors/broofa",
2098+ "https://github.com/sponsors/ctavan"
2099+ ],
2100+ "license": "MIT",
2101+ "bin": {
2102+ "uuid": "dist/bin/uuid"
2103+ }
2104+ },
2105+ "node_modules/@smithy/middleware-serde": {
2106+ "version": "4.0.8",
2107+ "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-4.0.8.tgz",
2108+ "integrity": "sha512-iSSl7HJoJaGyMIoNn2B7czghOVwJ9nD7TMvLhMWeSB5vt0TnEYyRRqPJu/TqW76WScaNvYYB8nRoiBHR9S1Ddw==",
2109+ "license": "Apache-2.0",
2110+ "dependencies": {
2111+ "@smithy/protocol-http": "^5.1.2",
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/middleware-stack": {
2120+ "version": "4.0.4",
2121+ "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-4.0.4.tgz",
2122+ "integrity": "sha512-kagK5ggDrBUCCzI93ft6DjteNSfY8Ulr83UtySog/h09lTIOAJ/xUSObutanlPT0nhoHAkpmW9V5K8oPyLh+QA==",
2123+ "license": "Apache-2.0",
2124+ "dependencies": {
2125+ "@smithy/types": "^4.3.1",
2126+ "tslib": "^2.6.2"
2127+ },
2128+ "engines": {
2129+ "node": ">=18.0.0"
2130+ }
2131+ },
2132+ "node_modules/@smithy/node-config-provider": {
2133+ "version": "4.1.3",
2134+ "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.1.3.tgz",
2135+ "integrity": "sha512-HGHQr2s59qaU1lrVH6MbLlmOBxadtzTsoO4c+bF5asdgVik3I8o7JIOzoeqWc5MjVa+vD36/LWE0iXKpNqooRw==",
2136+ "license": "Apache-2.0",
2137+ "dependencies": {
2138+ "@smithy/property-provider": "^4.0.4",
2139+ "@smithy/shared-ini-file-loader": "^4.0.4",
2140+ "@smithy/types": "^4.3.1",
2141+ "tslib": "^2.6.2"
2142+ },
2143+ "engines": {
2144+ "node": ">=18.0.0"
2145+ }
2146+ },
2147+ "node_modules/@smithy/node-http-handler": {
2148+ "version": "4.0.6",
2149+ "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-4.0.6.tgz",
2150+ "integrity": "sha512-NqbmSz7AW2rvw4kXhKGrYTiJVDHnMsFnX4i+/FzcZAfbOBauPYs2ekuECkSbtqaxETLLTu9Rl/ex6+I2BKErPA==",
2151+ "license": "Apache-2.0",
2152+ "dependencies": {
2153+ "@smithy/abort-controller": "^4.0.4",
2154+ "@smithy/protocol-http": "^5.1.2",
2155+ "@smithy/querystring-builder": "^4.0.4",
2156+ "@smithy/types": "^4.3.1",
2157+ "tslib": "^2.6.2"
2158+ },
2159+ "engines": {
2160+ "node": ">=18.0.0"
2161+ }
2162+ },
2163+ "node_modules/@smithy/property-provider": {
2164+ "version": "4.0.4",
2165+ "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-4.0.4.tgz",
2166+ "integrity": "sha512-qHJ2sSgu4FqF4U/5UUp4DhXNmdTrgmoAai6oQiM+c5RZ/sbDwJ12qxB1M6FnP+Tn/ggkPZf9ccn4jqKSINaquw==",
2167+ "license": "Apache-2.0",
2168+ "dependencies": {
2169+ "@smithy/types": "^4.3.1",
2170+ "tslib": "^2.6.2"
2171+ },
2172+ "engines": {
2173+ "node": ">=18.0.0"
2174+ }
2175+ },
2176+ "node_modules/@smithy/protocol-http": {
2177+ "version": "5.1.2",
2178+ "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-5.1.2.tgz",
2179+ "integrity": "sha512-rOG5cNLBXovxIrICSBm95dLqzfvxjEmuZx4KK3hWwPFHGdW3lxY0fZNXfv2zebfRO7sJZ5pKJYHScsqopeIWtQ==",
2180+ "license": "Apache-2.0",
2181+ "dependencies": {
2182+ "@smithy/types": "^4.3.1",
2183+ "tslib": "^2.6.2"
2184+ },
2185+ "engines": {
2186+ "node": ">=18.0.0"
2187+ }
2188+ },
2189+ "node_modules/@smithy/querystring-builder": {
2190+ "version": "4.0.4",
2191+ "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-4.0.4.tgz",
2192+ "integrity": "sha512-SwREZcDnEYoh9tLNgMbpop+UTGq44Hl9tdj3rf+yeLcfH7+J8OXEBaMc2kDxtyRHu8BhSg9ADEx0gFHvpJgU8w==",
2193+ "license": "Apache-2.0",
2194+ "dependencies": {
2195+ "@smithy/types": "^4.3.1",
2196+ "@smithy/util-uri-escape": "^4.0.0",
2197+ "tslib": "^2.6.2"
2198+ },
2199+ "engines": {
2200+ "node": ">=18.0.0"
2201+ }
2202+ },
2203+ "node_modules/@smithy/querystring-parser": {
2204+ "version": "4.0.4",
2205+ "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-4.0.4.tgz",
2206+ "integrity": "sha512-6yZf53i/qB8gRHH/l2ZwUG5xgkPgQF15/KxH0DdXMDHjesA9MeZje/853ifkSY0x4m5S+dfDZ+c4x439PF0M2w==",
2207+ "license": "Apache-2.0",
2208+ "dependencies": {
2209+ "@smithy/types": "^4.3.1",
2210+ "tslib": "^2.6.2"
2211+ },
2212+ "engines": {
2213+ "node": ">=18.0.0"
2214+ }
2215+ },
2216+ "node_modules/@smithy/service-error-classification": {
2217+ "version": "4.0.6",
2218+ "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-4.0.6.tgz",
2219+ "integrity": "sha512-RRoTDL//7xi4tn5FrN2NzH17jbgmnKidUqd4KvquT0954/i6CXXkh1884jBiunq24g9cGtPBEXlU40W6EpNOOg==",
2220+ "license": "Apache-2.0",
2221+ "dependencies": {
2222+ "@smithy/types": "^4.3.1"
2223+ },
2224+ "engines": {
2225+ "node": ">=18.0.0"
2226+ }
2227+ },
2228+ "node_modules/@smithy/shared-ini-file-loader": {
2229+ "version": "4.0.4",
2230+ "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.4.tgz",
2231+ "integrity": "sha512-63X0260LoFBjrHifPDs+nM9tV0VMkOTl4JRMYNuKh/f5PauSjowTfvF3LogfkWdcPoxsA9UjqEOgjeYIbhb7Nw==",
2232+ "license": "Apache-2.0",
2233+ "dependencies": {
2234+ "@smithy/types": "^4.3.1",
2235+ "tslib": "^2.6.2"
2236+ },
2237+ "engines": {
2238+ "node": ">=18.0.0"
2239+ }
2240+ },
2241+ "node_modules/@smithy/signature-v4": {
2242+ "version": "5.1.2",
2243+ "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-5.1.2.tgz",
2244+ "integrity": "sha512-d3+U/VpX7a60seHziWnVZOHuEgJlclufjkS6zhXvxcJgkJq4UWdH5eOBLzHRMx6gXjsdT9h6lfpmLzbrdupHgQ==",
2245+ "license": "Apache-2.0",
2246+ "dependencies": {
2247+ "@smithy/is-array-buffer": "^4.0.0",
2248+ "@smithy/protocol-http": "^5.1.2",
2249+ "@smithy/types": "^4.3.1",
2250+ "@smithy/util-hex-encoding": "^4.0.0",
2251+ "@smithy/util-middleware": "^4.0.4",
2252+ "@smithy/util-uri-escape": "^4.0.0",
2253+ "@smithy/util-utf8": "^4.0.0",
2254+ "tslib": "^2.6.2"
2255+ },
2256+ "engines": {
2257+ "node": ">=18.0.0"
2258+ }
2259+ },
2260+ "node_modules/@smithy/smithy-client": {
2261+ "version": "4.4.5",
2262+ "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-4.4.5.tgz",
2263+ "integrity": "sha512-+lynZjGuUFJaMdDYSTMnP/uPBBXXukVfrJlP+1U/Dp5SFTEI++w6NMga8DjOENxecOF71V9Z2DllaVDYRnGlkg==",
2264+ "license": "Apache-2.0",
2265+ "dependencies": {
2266+ "@smithy/core": "^3.6.0",
2267+ "@smithy/middleware-endpoint": "^4.1.13",
2268+ "@smithy/middleware-stack": "^4.0.4",
2269+ "@smithy/protocol-http": "^5.1.2",
2270+ "@smithy/types": "^4.3.1",
2271+ "@smithy/util-stream": "^4.2.2",
2272+ "tslib": "^2.6.2"
2273+ },
2274+ "engines": {
2275+ "node": ">=18.0.0"
7652276 }
7662277 },
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,
2278+ "node_modules/@smithy/types": {
2279+ "version": "4.3.1",
2280+ "resolved": "https://registry.npmjs.org/@smithy/types/-/types-4.3.1.tgz",
2281+ "integrity": "sha512-UqKOQBL2x6+HWl3P+3QqFD4ncKq0I8Nuz9QItGv5WuKuMHuuwlhvqcZCoXGfc+P1QmfJE7VieykoYYmrOoFJxA==",
2282+ "license": "Apache-2.0",
7732283 "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"
2284+ "tslib": "^2.6.2"
7802285 },
7812286 "engines": {
782- "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
2287+ "node": ">=18.0.0"
7832288 }
7842289 },
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,
2290+ "node_modules/@smithy/url-parser": {
2291+ "version": "4.0.4",
2292+ "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-4.0.4.tgz",
2293+ "integrity": "sha512-eMkc144MuN7B0TDA4U2fKs+BqczVbk3W+qIvcoCY6D1JY3hnAdCuhCZODC+GAeaxj0p6Jroz4+XMUn3PCxQQeQ==",
2294+ "license": "Apache-2.0",
7912295 "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"
2296+ "@smithy/querystring-parser": "^4.0.4",
2297+ "@smithy/types": "^4.3.1",
2298+ "tslib": "^2.6.2"
7962299 },
7972300 "engines": {
798- "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
2301+ "node": ">=18.0.0"
7992302 }
8002303 },
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,
2304+ "node_modules/@smithy/util-base64": {
2305+ "version": "4.0.0",
2306+ "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz",
2307+ "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==",
2308+ "license": "Apache-2.0",
8072309 "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"
2310+ "@smithy/util-buffer-from": "^4.0.0",
2311+ "@smithy/util-utf8": "^4.0.0",
2312+ "tslib": "^2.6.2"
8322313 },
8332314 "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- }
2315+ "node": ">=18.0.0"
8432316 }
8442317 },
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,
2318+ "node_modules/@smithy/util-body-length-browser": {
2319+ "version": "4.0.0",
2320+ "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-4.0.0.tgz",
2321+ "integrity": "sha512-sNi3DL0/k64/LO3A256M+m3CDdG6V7WKWHdAiBBMUN8S3hK3aMPhwnPik2A/a2ONN+9doY9UxaLfgqsIRg69QA==",
2322+ "license": "Apache-2.0",
8502323 "dependencies": {
851- "@sinclair/typebox": "^0.27.8"
2324+ "tslib": "^2.6.2"
8522325 },
8532326 "engines": {
854- "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
2327+ "node": ">=18.0.0"
8552328 }
8562329 },
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,
2330+ "node_modules/@smithy/util-body-length-node": {
2331+ "version": "4.0.0",
2332+ "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-4.0.0.tgz",
2333+ "integrity": "sha512-q0iDP3VsZzqJyje8xJWEJCNIu3lktUGVoSy1KB0UWym2CL1siV3artm+u1DFYTLejpsrdGyCSWBdGNjJzfDPjg==",
2334+ "license": "Apache-2.0",
8632335 "dependencies": {
864- "@jridgewell/trace-mapping": "^0.3.18",
865- "callsites": "^3.0.0",
866- "graceful-fs": "^4.2.9"
2336+ "tslib": "^2.6.2"
8672337 },
8682338 "engines": {
869- "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
2339+ "node": ">=18.0.0"
8702340 }
8712341 },
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,
2342+ "node_modules/@smithy/util-buffer-from": {
2343+ "version": "4.0.0",
2344+ "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-4.0.0.tgz",
2345+ "integrity": "sha512-9TOQ7781sZvddgO8nxueKi3+yGvkY35kotA0Y6BWRajAv8jjmigQ1sBwz0UX47pQMYXJPahSKEKYFgt+rXdcug==",
2346+ "license": "Apache-2.0",
8782347 "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"
2348+ "@smithy/is-array-buffer": "^4.0.0",
2349+ "tslib": "^2.6.2"
8832350 },
8842351 "engines": {
885- "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
2352+ "node": ">=18.0.0"
8862353 }
8872354 },
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,
2355+ "node_modules/@smithy/util-config-provider": {
2356+ "version": "4.0.0",
2357+ "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-4.0.0.tgz",
2358+ "integrity": "sha512-L1RBVzLyfE8OXH+1hsJ8p+acNUSirQnWQ6/EgpchV88G6zGBTDPdXiiExei6Z1wR2RxYvxY/XLw6AMNCCt8H3w==",
2359+ "license": "Apache-2.0",
8942360 "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"
2361+ "tslib": "^2.6.2"
8992362 },
9002363 "engines": {
901- "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
2364+ "node": ">=18.0.0"
9022365 }
9032366 },
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,
2367+ "node_modules/@smithy/util-defaults-mode-browser": {
2368+ "version": "4.0.21",
2369+ "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-4.0.21.tgz",
2370+ "integrity": "sha512-wM0jhTytgXu3wzJoIqpbBAG5U6BwiubZ6QKzSbP7/VbmF1v96xlAbX2Am/mz0Zep0NLvLh84JT0tuZnk3wmYQA==",
2371+ "license": "Apache-2.0",
9102372 "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"
2373+ "@smithy/property-provider": "^4.0.4",
2374+ "@smithy/smithy-client": "^4.4.5",
2375+ "@smithy/types": "^4.3.1",
2376+ "bowser": "^2.11.0",
2377+ "tslib": "^2.6.2"
9262378 },
9272379 "engines": {
928- "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
2380+ "node": ">=18.0.0"
9292381 }
9302382 },
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,
2383+ "node_modules/@smithy/util-defaults-mode-node": {
2384+ "version": "4.0.21",
2385+ "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-4.0.21.tgz",
2386+ "integrity": "sha512-/F34zkoU0GzpUgLJydHY8Rxu9lBn8xQC/s/0M0U9lLBkYbA1htaAFjWYJzpzsbXPuri5D1H8gjp2jBum05qBrA==",
2387+ "license": "Apache-2.0",
9362388 "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"
2389+ "@smithy/config-resolver": "^4.1.4",
2390+ "@smithy/credential-provider-imds": "^4.0.6",
2391+ "@smithy/node-config-provider": "^4.1.3",
2392+ "@smithy/property-provider": "^4.0.4",
2393+ "@smithy/smithy-client": "^4.4.5",
2394+ "@smithy/types": "^4.3.1",
2395+ "tslib": "^2.6.2"
9432396 },
9442397 "engines": {
945- "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
2398+ "node": ">=18.0.0"
9462399 }
9472400 },
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,
2401+ "node_modules/@smithy/util-endpoints": {
2402+ "version": "3.0.6",
2403+ "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-3.0.6.tgz",
2404+ "integrity": "sha512-YARl3tFL3WgPuLzljRUnrS2ngLiUtkwhQtj8PAL13XZSyUiNLQxwG3fBBq3QXFqGFUXepIN73pINp3y8c2nBmA==",
2405+ "license": "Apache-2.0",
9542406 "dependencies": {
955- "@jridgewell/set-array": "^1.2.1",
956- "@jridgewell/sourcemap-codec": "^1.4.10",
957- "@jridgewell/trace-mapping": "^0.3.24"
2407+ "@smithy/node-config-provider": "^4.1.3",
2408+ "@smithy/types": "^4.3.1",
2409+ "tslib": "^2.6.2"
9582410 },
9592411 "engines": {
960- "node": ">=6.0.0"
2412+ "node": ">=18.0.0"
9612413 }
9622414 },
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,
2415+ "node_modules/@smithy/util-hex-encoding": {
2416+ "version": "4.0.0",
2417+ "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-4.0.0.tgz",
2418+ "integrity": "sha512-Yk5mLhHtfIgW2W2WQZWSg5kuMZCVbvhFmC7rV4IO2QqnZdbEFPmQnCcGMAX2z/8Qj3B9hYYNjZOhWym+RwhePw==",
2419+ "license": "Apache-2.0",
2420+ "dependencies": {
2421+ "tslib": "^2.6.2"
2422+ },
9682423 "engines": {
969- "node": ">=6.0.0"
2424+ "node": ">=18.0.0"
9702425 }
9712426 },
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,
2427+ "node_modules/@smithy/util-middleware": {
2428+ "version": "4.0.4",
2429+ "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-4.0.4.tgz",
2430+ "integrity": "sha512-9MLKmkBmf4PRb0ONJikCbCwORACcil6gUWojwARCClT7RmLzF04hUR4WdRprIXal7XVyrddadYNfp2eF3nrvtQ==",
2431+ "license": "Apache-2.0",
2432+ "dependencies": {
2433+ "@smithy/types": "^4.3.1",
2434+ "tslib": "^2.6.2"
2435+ },
9782436 "engines": {
979- "node": ">=6.0.0"
2437+ "node": ">=18.0.0"
9802438 }
9812439 },
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,
2440+ "node_modules/@smithy/util-retry": {
2441+ "version": "4.0.6",
2442+ "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-4.0.6.tgz",
2443+ "integrity": "sha512-+YekoF2CaSMv6zKrA6iI/N9yva3Gzn4L6n35Luydweu5MMPYpiGZlWqehPHDHyNbnyaYlz/WJyYAZnC+loBDZg==",
2444+ "license": "Apache-2.0",
9942445 "dependencies": {
995- "@jridgewell/resolve-uri": "^3.1.0",
996- "@jridgewell/sourcemap-codec": "^1.4.14"
2446+ "@smithy/service-error-classification": "^4.0.6",
2447+ "@smithy/types": "^4.3.1",
2448+ "tslib": "^2.6.2"
2449+ },
2450+ "engines": {
2451+ "node": ">=18.0.0"
9972452 }
9982453 },
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
2454+ "node_modules/@smithy/util-stream": {
2455+ "version": "4.2.2",
2456+ "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-4.2.2.tgz",
2457+ "integrity": "sha512-aI+GLi7MJoVxg24/3J1ipwLoYzgkB4kUfogZfnslcYlynj3xsQ0e7vk4TnTro9hhsS5PvX1mwmkRqqHQjwcU7w==",
2458+ "license": "Apache-2.0",
2459+ "dependencies": {
2460+ "@smithy/fetch-http-handler": "^5.0.4",
2461+ "@smithy/node-http-handler": "^4.0.6",
2462+ "@smithy/types": "^4.3.1",
2463+ "@smithy/util-base64": "^4.0.0",
2464+ "@smithy/util-buffer-from": "^4.0.0",
2465+ "@smithy/util-hex-encoding": "^4.0.0",
2466+ "@smithy/util-utf8": "^4.0.0",
2467+ "tslib": "^2.6.2"
2468+ },
2469+ "engines": {
2470+ "node": ">=18.0.0"
2471+ }
10042472 },
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,
2473+ "node_modules/@smithy/util-uri-escape": {
2474+ "version": "4.0.0",
2475+ "resolved": "https://registry.npmjs.org/@smithy/util-uri-escape/-/util-uri-escape-4.0.0.tgz",
2476+ "integrity": "sha512-77yfbCbQMtgtTylO9itEAdpPXSog3ZxMe09AEhm0dU0NLTalV70ghDZFR+Nfi1C60jnJoh/Re4090/DuZh2Omg==",
2477+ "license": "Apache-2.0",
10112478 "dependencies": {
1012- "type-detect": "4.0.8"
2479+ "tslib": "^2.6.2"
2480+ },
2481+ "engines": {
2482+ "node": ">=18.0.0"
10132483 }
10142484 },
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,
2485+ "node_modules/@smithy/util-utf8": {
2486+ "version": "4.0.0",
2487+ "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-4.0.0.tgz",
2488+ "integrity": "sha512-b+zebfKCfRdgNJDknHCob3O7FpeYQN6ZG6YLExMcasDHsCXlsXCEuiPZeLnJLpwa5dvPetGlnGCiMHuLwGvFow==",
2489+ "license": "Apache-2.0",
10212490 "dependencies": {
1022- "@sinonjs/commons": "^3.0.0"
2491+ "@smithy/util-buffer-from": "^4.0.0",
2492+ "tslib": "^2.6.2"
2493+ },
2494+ "engines": {
2495+ "node": ">=18.0.0"
10232496 }
10242497 },
10252498 "node_modules/@tsconfig/node10": {
@@ -1173,6 +2646,12 @@
11732646 "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==",
11742647 "dev": true
11752648 },
2649+ "node_modules/@types/uuid": {
2650+ "version": "9.0.8",
2651+ "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.8.tgz",
2652+ "integrity": "sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==",
2653+ "license": "MIT"
2654+ },
11762655 "node_modules/@types/yargs": {
11772656 "version": "17.0.32",
11782657 "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.32.tgz",
@@ -1446,6 +2925,12 @@
14462925 "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
14472926 "dev": true
14482927 },
2928+ "node_modules/bowser": {
2929+ "version": "2.11.0",
2930+ "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.11.0.tgz",
2931+ "integrity": "sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==",
2932+ "license": "MIT"
2933+ },
14492934 "node_modules/brace-expansion": {
14502935 "version": "1.1.11",
14512936 "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
@@ -2004,6 +3489,28 @@
20043489 "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
20053490 "dev": true
20063491 },
3492+ "node_modules/fast-xml-parser": {
3493+ "version": "4.4.1",
3494+ "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.4.1.tgz",
3495+ "integrity": "sha512-xkjOecfnKGkSsOwtZ5Pz7Us/T6mrbPQrq0nh+aCO5V9nk5NLWmasAHumTKjiPJPWANe+kAZ84Jc8ooJkzZ88Sw==",
3496+ "funding": [
3497+ {
3498+ "type": "github",
3499+ "url": "https://github.com/sponsors/NaturalIntelligence"
3500+ },
3501+ {
3502+ "type": "paypal",
3503+ "url": "https://paypal.me/naturalintelligence"
3504+ }
3505+ ],
3506+ "license": "MIT",
3507+ "dependencies": {
3508+ "strnum": "^1.0.5"
3509+ },
3510+ "bin": {
3511+ "fxparser": "src/cli/cli.js"
3512+ }
3513+ },
20073514 "node_modules/fb-watchman": {
20083515 "version": "2.0.2",
20093516 "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz",
@@ -3974,6 +5481,18 @@
39745481 "url": "https://github.com/sponsors/sindresorhus"
39755482 }
39765483 },
5484+ "node_modules/strnum": {
5485+ "version": "1.1.2",
5486+ "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.1.2.tgz",
5487+ "integrity": "sha512-vrN+B7DBIoTTZjnPNewwhx6cBA/H+IS7rfW68n7XxC1y7uoiGQBxaKzqucGUgavX15dJgiGztLJ8vxuEzwqBdA==",
5488+ "funding": [
5489+ {
5490+ "type": "github",
5491+ "url": "https://github.com/sponsors/NaturalIntelligence"
5492+ }
5493+ ],
5494+ "license": "MIT"
5495+ },
39775496 "node_modules/supports-color": {
39785497 "version": "7.2.0",
39795498 "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
@@ -4151,6 +5670,12 @@
41515670 }
41525671 }
41535672 },
5673+ "node_modules/tslib": {
5674+ "version": "2.8.1",
5675+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
5676+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
5677+ "license": "0BSD"
5678+ },
41545679 "node_modules/type-detect": {
41555680 "version": "4.0.8",
41565681 "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz",
modified packages/openai-adapters/package.json +2 −0
@@ -12,6 +12,8 @@
1212 "author": "Nate Sesti and Ty Dunn",
1313 "license": "Apache-2.0",
1414 "dependencies": {
15+ "@aws-sdk/client-bedrock-runtime": "^3.842.0",
16+ "@aws-sdk/credential-providers": "^3.840.0",
1517 "@continuedev/config-types": "^1.0.5",
1618 "@continuedev/config-yaml": "^1.0.51",
1719 "@continuedev/fetch": "^1.0.15",
added packages/openai-adapters/src/apis/Bedrock.ts +691 −0
@@ -0,0 +1,691 @@
1+import {
2+ BedrockRuntimeClient,
3+ ContentBlock,
4+ ConversationRole,
5+ ConverseStreamCommand,
6+ ConverseStreamCommandInput,
7+ ImageFormat,
8+ InvokeModelCommand,
9+ Message,
10+ ToolConfiguration,
11+} from "@aws-sdk/client-bedrock-runtime";
12+import { OpenAI } from "openai/index";
13+import { v4 as uuidv4 } from "uuid";
14+
15+import {
16+ ChatCompletion,
17+ ChatCompletionChunk,
18+ ChatCompletionCreateParams,
19+ ChatCompletionCreateParamsNonStreaming,
20+ ChatCompletionCreateParamsStreaming,
21+ ChatCompletionMessageToolCall,
22+ Completion,
23+ CompletionCreateParamsNonStreaming,
24+ CompletionCreateParamsStreaming,
25+ CreateEmbeddingResponse,
26+ EmbeddingCreateParams,
27+ Model,
28+} from "openai/resources/index";
29+
30+import { fromNodeProviderChain } from "@aws-sdk/credential-providers";
31+import { BedrockConfig } from "../types.js";
32+import { chatChunk, chatChunkFromDelta, embedding, rerank } from "../util.js";
33+import { safeParseArgs } from "../util/parseArgs.js";
34+import {
35+ BaseLlmApi,
36+ CreateRerankResponse,
37+ FimCreateParamsStreaming,
38+ RerankCreateParams,
39+} from "./base.js";
40+
41+// Utility function to get or generate UUID for prompt caching
42+function getSecureID(): string {
43+ // Adding a type declaration for the static property
44+ if (!(getSecureID as any).uuid) {
45+ (getSecureID as any).uuid = crypto.randomUUID();
46+ }
47+ return `<!-- SID: ${(getSecureID as any).uuid} -->`;
48+}
49+
50+/**
51+ * Interface for tool use state tracking
52+ */
53+interface ToolUseState {
54+ toolUseId: string;
55+ name: string;
56+ input: string;
57+}
58+
59+export class BedrockApi implements BaseLlmApi {
60+ private _currentToolResponse: Partial<ToolUseState> | null = null;
61+
62+ constructor(protected config: BedrockConfig) {
63+ if (config.env?.accessKeyId || config?.env?.secretAccessKey) {
64+ if (!config.env?.accessKeyId) {
65+ throw new Error(
66+ "accessKeyId is required for Bedrock API. Only found secretAccessKey",
67+ );
68+ }
69+ if (!config.env?.secretAccessKey) {
70+ throw new Error(
71+ "secretAccessKey is required for Bedrock API. Only found accessKeyId",
72+ );
73+ }
74+ }
75+ }
76+
77+ async getCreds() {
78+ if (this.config?.env?.accessKeyId && this.config?.env?.secretAccessKey) {
79+ return {
80+ accessKeyId: this.config.env.accessKeyId,
81+ secretAccessKey: this.config.env.secretAccessKey,
82+ };
83+ }
84+ const profile = this.config.env.profile ?? "bedrock";
85+ try {
86+ return await fromNodeProviderChain({
87+ profile: profile,
88+ ignoreCache: true,
89+ })();
90+ } catch (e) {
91+ console.warn(
92+ `AWS profile with name ${profile} not found in ~/.aws/credentials, using default profile`,
93+ );
94+ }
95+ return await fromNodeProviderChain()();
96+ }
97+ async getClient(): Promise<BedrockRuntimeClient> {
98+ const creds = await this.getCreds();
99+ return new BedrockRuntimeClient({
100+ region: this.config.env.region,
101+ credentials: creds,
102+ });
103+ }
104+
105+ private _oaiPartToBedrockPart(
106+ part:
107+ | OpenAI.Chat.Completions.ChatCompletionContentPart
108+ | OpenAI.Chat.Completions.ChatCompletionContentPartRefusal,
109+ ): ContentBlock {
110+ switch (part.type) {
111+ case "refusal":
112+ return {
113+ text: part.refusal,
114+ };
115+ case "text":
116+ return {
117+ text: part.text,
118+ };
119+ case "input_audio":
120+ throw new Error("Unsupported part type: input_audio");
121+ case "image_url":
122+ default:
123+ try {
124+ const [mimeType, base64Data] = part.image_url.url.split(",");
125+ const format = mimeType.split("/")[1]?.split(";")[0] || "jpeg";
126+ if (
127+ format === ImageFormat.JPEG ||
128+ format === ImageFormat.PNG ||
129+ format === ImageFormat.WEBP ||
130+ format === ImageFormat.GIF
131+ ) {
132+ return {
133+ image: {
134+ format,
135+ source: {
136+ bytes: Uint8Array.from(Buffer.from(base64Data, "base64")),
137+ },
138+ },
139+ };
140+ } else {
141+ console.warn(
142+ `Bedrock: skipping unsupported image part format: ${format}`,
143+ );
144+ return { text: "[Unsupported image format]" };
145+ }
146+ } catch (error) {
147+ console.warn("Bedrock: failed to process image part", error);
148+ return { text: "[Failed to process image]" };
149+ }
150+ }
151+ }
152+
153+ private _convertMessages(
154+ oaiMessages: OpenAI.Chat.Completions.ChatCompletionMessageParam[],
155+ availableTools: Set<string>,
156+ ): Message[] {
157+ let currentRole: "user" | "assistant" = "user";
158+ let currentBlocks: ContentBlock[] = [];
159+ const converted: Message[] = [];
160+ const hasAddedToolCallIds = new Set<string>();
161+
162+ const pushCurrentMessage = () => {
163+ if (currentBlocks.length > 0) {
164+ converted.push({
165+ role: currentRole,
166+ content: currentBlocks,
167+ });
168+ currentBlocks = [];
169+ }
170+ };
171+
172+ const nonSystemMessages = oaiMessages.filter((m) => m.role !== "system");
173+
174+ for (let idx = 0; idx < nonSystemMessages.length; idx++) {
175+ const message = nonSystemMessages[idx];
176+
177+ if (message.role === "user" || message.role === "tool") {
178+ // Detect conversational turn change
179+ if (currentRole !== ConversationRole.USER) {
180+ pushCurrentMessage();
181+ currentRole = ConversationRole.USER;
182+ }
183+
184+ // USER messages
185+ if (message.role === "user") {
186+ const content = message.content;
187+ if (content) {
188+ if (typeof content === "string") {
189+ currentBlocks.push({ text: content });
190+ } else {
191+ content.forEach((part) => {
192+ currentBlocks.push(this._oaiPartToBedrockPart(part));
193+ });
194+ }
195+ }
196+ }
197+ // TOOL messages
198+ else if (message.role === "tool") {
199+ const trimmedContent =
200+ typeof message.content === "string"
201+ ? message.content.trim()
202+ : message.content
203+ .map((c) => c.text)
204+ .join("\n")
205+ .trim();
206+
207+ if (hasAddedToolCallIds.has(message.tool_call_id)) {
208+ currentBlocks.push({
209+ toolResult: {
210+ toolUseId: message.tool_call_id,
211+ content: [
212+ {
213+ text: trimmedContent || "No tool output",
214+ },
215+ ],
216+ },
217+ });
218+ } else {
219+ currentBlocks.push({
220+ text: `Tool call output for Tool Call ID ${message.tool_call_id}:\n\n${trimmedContent || "No tool output"}`,
221+ });
222+ }
223+ }
224+ } else if (message.role === "assistant") {
225+ // Detect conversational turn change
226+ if (currentRole !== ConversationRole.ASSISTANT) {
227+ pushCurrentMessage();
228+ currentRole = ConversationRole.ASSISTANT;
229+ }
230+
231+ // ASSISTANT messages
232+ if (typeof message.content === "string") {
233+ const trimmedText = message.content.trim();
234+ if (trimmedText) {
235+ currentBlocks.push({ text: trimmedText });
236+ }
237+ } else {
238+ message.content?.forEach((part) => {
239+ const text = part.type === "text" ? part.text : part.refusal;
240+ const trimmedText = text.trim();
241+ if (trimmedText) {
242+ currentBlocks.push({ text: trimmedText });
243+ }
244+ });
245+ }
246+
247+ // TOOL CALLS
248+ if (message.tool_calls) {
249+ for (const toolCall of message.tool_calls) {
250+ if (toolCall.id && toolCall.function?.name) {
251+ if (availableTools.has(toolCall.function.name)) {
252+ currentBlocks.push({
253+ toolUse: {
254+ toolUseId: toolCall.id,
255+ name: toolCall.function.name,
256+ input: safeParseArgs(
257+ toolCall.function.arguments,
258+ `Call: ${toolCall.function.name} ${toolCall.id}`,
259+ ),
260+ },
261+ });
262+ hasAddedToolCallIds.add(toolCall.id);
263+ } else {
264+ const toolCallText = `Assistant tool call:\nTool name: ${toolCall.function.name}\nTool Call ID: ${toolCall.id}\nArguments: ${toolCall.function?.arguments ?? "{}"}`;
265+ currentBlocks.push({
266+ text: toolCallText,
267+ });
268+ }
269+ }
270+ }
271+ }
272+ }
273+ }
274+
275+ if (currentBlocks.length > 0) {
276+ pushCurrentMessage();
277+ }
278+
279+ // If caching is enabled, add cache points
280+ // if (this.config.cacheBehavior?.cacheConversation) {
281+ // this._addCachingToLastTwoUserMessages(converted);
282+ // }
283+
284+ return converted;
285+ }
286+
287+ private _addCachingToLastTwoUserMessages(converted: Message[]) {
288+ let numCached = 0;
289+ for (let i = converted.length - 1; i >= 0; i--) {
290+ const message = converted[i];
291+ if (message.role === "user") {
292+ message.content?.forEach((block) => {
293+ if (block.text) {
294+ block.text += getSecureID();
295+ }
296+ });
297+ message.content?.push({ cachePoint: { type: "default" } });
298+ numCached++;
299+ }
300+ if (numCached === 2) {
301+ break;
302+ }
303+ }
304+ }
305+
306+ private _convertBody(
307+ oaiBody: ChatCompletionCreateParams,
308+ ): ConverseStreamCommandInput {
309+ // Extract system message
310+ const systemMessage =
311+ oaiBody.messages.find((msg) => msg.role === "system")?.content || "";
312+
313+ const systemMessageText =
314+ typeof systemMessage === "string"
315+ ? systemMessage
316+ : systemMessage
317+ .map((part) =>
318+ part.type === "text" ? part.text : "[Non-text content]",
319+ )
320+ .join(" ");
321+
322+ // Check for tools
323+ const availableTools = new Set<string>();
324+ let toolConfig: ToolConfiguration | undefined = undefined;
325+
326+ if (oaiBody.tools && oaiBody.tools.length > 0) {
327+ toolConfig = {
328+ tools: oaiBody.tools.map((tool) => ({
329+ toolSpec: {
330+ name: tool.function.name,
331+ description: tool.function.description,
332+ inputSchema: {
333+ json: tool.function.parameters,
334+ },
335+ },
336+ })),
337+ } as ToolConfiguration;
338+
339+ // Add cache point if needed
340+ // if (this.config.cacheBehavior?.cacheSystemMessage) {
341+ // toolConfig!.tools!.push({ cachePoint: { type: "default" } });
342+ // }
343+
344+ oaiBody.tools.forEach((tool) => {
345+ availableTools.add(tool.function.name);
346+ });
347+ }
348+
349+ // Convert messages
350+ const convertedMessages = this._convertMessages(
351+ oaiBody.messages,
352+ availableTools,
353+ );
354+
355+ // Build final request body
356+ const body: any = {
357+ modelId: oaiBody.model,
358+ messages: convertedMessages,
359+ inferenceConfig: {
360+ temperature: oaiBody.temperature,
361+ topP: oaiBody.top_p,
362+ maxTokens: oaiBody.max_tokens,
363+ stopSequences: Array.isArray(oaiBody.stop)
364+ ? oaiBody.stop.filter((s) => s.trim() !== "").slice(0, 4)
365+ : oaiBody.stop
366+ ? [oaiBody.stop].filter((s) => s.trim() !== "")
367+ : undefined,
368+ },
369+ };
370+
371+ // Add system message if present
372+ if (systemMessageText) {
373+ body.system = false // this.config.cacheBehavior?.cacheSystemMessage // TODO
374+ ? [{ text: systemMessageText }, { cachePoint: { type: "default" } }]
375+ : [{ text: systemMessageText }];
376+ }
377+
378+ // Add tool config if present
379+ if (toolConfig) {
380+ body.toolConfig = toolConfig;
381+ }
382+
383+ // Add reasoning if needed
384+ // TODO REASONING
385+ // if (this.c) {
386+ // body.additionalModelRequestFields = {
387+ // thinking: {
388+ // type: "enabled",
389+ // budget_tokens:
390+ // oaiBody.additionalModelRequestFields.reasoningBudgetTokens,
391+ // },
392+ // };
393+ // }
394+
395+ return body;
396+ }
397+
398+ async chatCompletionNonStream(
399+ body: ChatCompletionCreateParamsNonStreaming,
400+ signal: AbortSignal,
401+ ): Promise<ChatCompletion> {
402+ let completion = "";
403+ const toolCalls: ChatCompletionMessageToolCall[] = [];
404+
405+ for await (const chunk of this.chatCompletionStream(
406+ {
407+ ...body,
408+ stream: true,
409+ },
410+ signal,
411+ )) {
412+ if (chunk.choices[0].delta.content) {
413+ completion += chunk.choices[0].delta.content;
414+ }
415+ // TODO tool calls not supported
416+ }
417+
418+ return {
419+ id: uuidv4(),
420+ object: "chat.completion",
421+ model: body.model,
422+ created: Date.now(),
423+ choices: [
424+ {
425+ index: 0,
426+ logprobs: null,
427+ finish_reason: "stop",
428+ message: {
429+ role: "assistant",
430+ content: completion,
431+ tool_calls: toolCalls.length > 0 ? toolCalls : undefined,
432+ refusal: null,
433+ },
434+ },
435+ ],
436+ usage: undefined,
437+ };
438+ }
439+
440+ async *chatCompletionStream(
441+ body: ChatCompletionCreateParamsStreaming,
442+ signal: AbortSignal,
443+ ): AsyncGenerator<ChatCompletionChunk> {
444+ const requestBody = this._convertBody(body);
445+
446+ try {
447+ const command = new ConverseStreamCommand({
448+ ...requestBody,
449+ });
450+
451+ const client = await this.getClient();
452+ const response = await client.send(command, { abortSignal: signal });
453+
454+ if (!response?.stream) {
455+ throw new Error("No stream received from Bedrock API");
456+ }
457+
458+ this._currentToolResponse = null;
459+
460+ for await (const chunk of response.stream) {
461+ if (chunk.contentBlockDelta?.delta) {
462+ const delta: any = chunk.contentBlockDelta.delta;
463+
464+ // Handle text content
465+ if (delta.text) {
466+ yield chatChunk({
467+ content: delta.text,
468+ model: body.model,
469+ });
470+ continue;
471+ }
472+
473+ // Handle thinking content (if reasoning enabled)
474+ if (delta.reasoningContent?.text) {
475+ // TODO reasoning
476+ // Reasoning is not directly supported in OpenAI format,
477+ // but we could add it as a special message
478+ continue;
479+ }
480+
481+ // Handle tool use
482+ if (delta.toolUse?.input && this._currentToolResponse) {
483+ if (this._currentToolResponse.input === undefined) {
484+ this._currentToolResponse.input = "";
485+ }
486+ this._currentToolResponse.input += delta.toolUse.input;
487+ continue;
488+ }
489+ }
490+
491+ if (chunk.contentBlockStart?.start) {
492+ const start: any = chunk.contentBlockStart.start;
493+
494+ // Handle tool start
495+ const toolUse = start.toolUse;
496+ if (toolUse?.toolUseId && toolUse?.name) {
497+ this._currentToolResponse = {
498+ toolUseId: toolUse.toolUseId,
499+ name: toolUse.name,
500+ input: "",
501+ };
502+ }
503+ continue;
504+ }
505+
506+ if (chunk.contentBlockStop) {
507+ // End of a content block
508+ if (this._currentToolResponse) {
509+ yield chatChunkFromDelta({
510+ model: body.model,
511+ delta: {
512+ tool_calls: [
513+ {
514+ index: 0,
515+ id: this._currentToolResponse.toolUseId,
516+ type: "function",
517+ function: {
518+ name: this._currentToolResponse.name,
519+ arguments: this._currentToolResponse.input,
520+ },
521+ },
522+ ],
523+ },
524+ });
525+ this._currentToolResponse = null;
526+ }
527+ continue;
528+ }
529+ }
530+ } catch (error) {
531+ this._currentToolResponse = null;
532+ if (error instanceof Error) {
533+ if ("code" in error) {
534+ throw new Error(
535+ `AWS Bedrock stream error (${(error as any).code}): ${error.message}`,
536+ );
537+ }
538+ throw new Error(`Error processing Bedrock stream: ${error.message}`);
539+ }
540+ throw new Error(
541+ "Error processing Bedrock stream: Unknown error occurred",
542+ );
543+ }
544+ }
545+
546+ completionNonStream(
547+ body: CompletionCreateParamsNonStreaming,
548+ ): Promise<Completion> {
549+ throw new Error("Bedrock does not support completions API");
550+ }
551+
552+ completionStream(
553+ body: CompletionCreateParamsStreaming,
554+ ): AsyncGenerator<Completion> {
555+ throw new Error("Bedrock does not support completions API");
556+ }
557+
558+ fimStream(
559+ body: FimCreateParamsStreaming,
560+ ): AsyncGenerator<ChatCompletionChunk> {
561+ throw new Error("Bedrock does not support FIM directly");
562+ }
563+
564+ private async getInvokeModelResponseBody(model: string, jsonBody: object) {
565+ const payload = {
566+ body: JSON.stringify(jsonBody),
567+ modelId: model,
568+ accept: "*/*",
569+ contentType: "application/json",
570+ };
571+ const command = new InvokeModelCommand(payload);
572+ const client = await this.getClient();
573+ const response = await client.send(command);
574+ if (!response.body) {
575+ throw new Error("No response body");
576+ }
577+ const decoder = new TextDecoder();
578+ const decoded = decoder.decode(response.body);
579+ return JSON.parse(decoded);
580+ }
581+
582+ private getEmbedTexts(body: EmbeddingCreateParams): string[] {
583+ const texts: string[] = [];
584+ if (typeof body.input === "string") {
585+ texts.push(body.input);
586+ } else if (body.input.length > 0) {
587+ const firstVal = body.input[0];
588+ if (Array.isArray(firstVal)) {
589+ throw new Error("Unsupported embeddings type received: number[][]");
590+ }
591+ if (typeof firstVal === "string") {
592+ texts.push(...(body.input as string[]));
593+ } else {
594+ throw new Error("Unsupported embeddings type received: number[]");
595+ }
596+ }
597+ return texts;
598+ }
599+
600+ async embed(body: EmbeddingCreateParams): Promise<CreateEmbeddingResponse> {
601+ const texts = this.getEmbedTexts(body);
602+
603+ let embeddings: number[][];
604+ if (body.model.startsWith("cohere")) {
605+ const payload = {
606+ texts,
607+ input_type: "search_document",
608+ truncate: "END",
609+ };
610+ const output = await this.getInvokeModelResponseBody(body.model, payload);
611+ embeddings = [output.embedding];
612+ } else if (body.model.startsWith("amazon.titan-embed")) {
613+ embeddings = await Promise.all(
614+ texts.map(async (text) => {
615+ const payload = {
616+ inputText: text,
617+ };
618+ const output = await this.getInvokeModelResponseBody(
619+ body.model,
620+ payload,
621+ );
622+ return output.embeddings || [];
623+ }),
624+ );
625+ } else {
626+ throw new Error(`Unsupported model: ${body.model}`);
627+ }
628+
629+ return embedding({
630+ data: embeddings,
631+ model: body.model,
632+ usage: {
633+ prompt_tokens: 0,
634+ total_tokens: 0,
635+ },
636+ });
637+ }
638+
639+ async rerank(body: RerankCreateParams): Promise<CreateRerankResponse> {
640+ if (!body.query || !body.documents.length) {
641+ throw new Error("Query and chunks must not be empty");
642+ }
643+
644+ // Base payload for both models
645+ const payload: any = {
646+ query: body.query,
647+ documents: body.documents,
648+ top_n: body.top_k ?? body.documents.length,
649+ };
650+
651+ // Add api_version for Cohere model
652+ if (body.model.startsWith("cohere.rerank")) {
653+ payload.api_version = 2;
654+ }
655+
656+ try {
657+ const responseBody = await this.getInvokeModelResponseBody(
658+ body.model,
659+ payload,
660+ );
661+ const scores = responseBody.results
662+ .sort((a: any, b: any) => a.index - b.index)
663+ .map((result: any) => result.relevance_score);
664+
665+ return rerank({
666+ model: body.model,
667+ usage: {
668+ total_tokens: 0,
669+ },
670+ data: scores,
671+ });
672+ } catch (error) {
673+ if (error instanceof Error) {
674+ if ("code" in error) {
675+ // AWS SDK specific errors
676+ throw new Error(
677+ `AWS Bedrock rerank error (${(error as any).code}): ${error.message}`,
678+ );
679+ }
680+ throw new Error(`Error in BedrockReranker.rerank: ${error.message}`);
681+ }
682+ throw new Error(
683+ "Error in BedrockReranker.rerank: Unknown error occurred",
684+ );
685+ }
686+ }
687+
688+ list(): Promise<Model[]> {
689+ throw new Error("Method not implemented.");
690+ }
691+}
modified packages/openai-adapters/src/index.ts +3 −0
@@ -2,6 +2,7 @@
22 import { z } from "zod";
33 import { AnthropicApi } from "./apis/Anthropic.js";
44 import { AzureApi } from "./apis/Azure.js";
5+import { BedrockApi } from "./apis/Bedrock.js";
56 import { CohereApi } from "./apis/Cohere.js";
67 import { DeepSeekApi } from "./apis/DeepSeek.js";
78 import { GeminiApi } from "./apis/Gemini.js";
@@ -34,6 +35,8 @@
3435 return new OpenAIApi(config);
3536 case "azure":
3637 return new AzureApi(config);
38+ case "bedrock":
39+ return new BedrockApi(config);
3740 case "cohere":
3841 return new CohereApi(config);
3942 case "anthropic":
modified packages/openai-adapters/src/types.ts +16 −0
@@ -71,6 +71,21 @@
7171 });
7272 export type DeepseekConfig = z.infer<typeof DeepseekConfigSchema>;
7373
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+ accessKeyId: z.string().optional(),
83+ secretAccessKey: z.string().optional(),
84+ profile: z.string().optional(),
85+ }),
86+});
87+export type BedrockConfig = z.infer<typeof BedrockConfigSchema>;
88+
7489 export const LlamastackConfigSchema = OpenAIConfigSchema.extend({
7590 provider: z.literal("llamastack"),
7691 });
@@ -142,6 +157,7 @@
142157 // Discriminated union
143158 export const LLMConfigSchema = z.discriminatedUnion("provider", [
144159 OpenAIConfigSchema,
160+ BedrockConfigSchema,
145161 MoonshotConfigSchema,
146162 DeepseekConfigSchema,
147163 CohereConfigSchema,