@aws-sdk/client-bedrock-runtime 3.716.0 → 3.723.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +142 -95
- package/dist-es/BedrockRuntimeClient.js +1 -0
- package/dist-es/models/models_0.js +29 -25
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +9 -7
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +20 -8
- package/package.json +47 -47
package/dist-cjs/index.js
CHANGED
|
@@ -223,7 +223,14 @@ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions
|
|
|
223
223
|
}, "resolveRuntimeExtensions");
|
|
224
224
|
|
|
225
225
|
// src/BedrockRuntimeClient.ts
|
|
226
|
-
var
|
|
226
|
+
var BedrockRuntimeClient = class extends import_smithy_client.Client {
|
|
227
|
+
static {
|
|
228
|
+
__name(this, "BedrockRuntimeClient");
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* The resolved configuration of BedrockRuntimeClient class. This is resolved and normalized from the {@link BedrockRuntimeClientConfig | constructor configuration interface}.
|
|
232
|
+
*/
|
|
233
|
+
config;
|
|
227
234
|
constructor(...[configuration]) {
|
|
228
235
|
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
229
236
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
@@ -234,7 +241,7 @@ var _BedrockRuntimeClient = class _BedrockRuntimeClient extends import_smithy_cl
|
|
|
234
241
|
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
235
242
|
const _config_7 = (0, import_eventstream_serde_config_resolver.resolveEventStreamSerdeConfig)(_config_6);
|
|
236
243
|
const _config_8 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_7);
|
|
237
|
-
const _config_9 = resolveRuntimeExtensions(_config_8,
|
|
244
|
+
const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
|
|
238
245
|
super(_config_9);
|
|
239
246
|
this.config = _config_9;
|
|
240
247
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
@@ -262,8 +269,6 @@ var _BedrockRuntimeClient = class _BedrockRuntimeClient extends import_smithy_cl
|
|
|
262
269
|
super.destroy();
|
|
263
270
|
}
|
|
264
271
|
};
|
|
265
|
-
__name(_BedrockRuntimeClient, "BedrockRuntimeClient");
|
|
266
|
-
var BedrockRuntimeClient = _BedrockRuntimeClient;
|
|
267
272
|
|
|
268
273
|
// src/BedrockRuntime.ts
|
|
269
274
|
|
|
@@ -278,7 +283,10 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
278
283
|
|
|
279
284
|
// src/models/BedrockRuntimeServiceException.ts
|
|
280
285
|
|
|
281
|
-
var
|
|
286
|
+
var BedrockRuntimeServiceException = class _BedrockRuntimeServiceException extends import_smithy_client.ServiceException {
|
|
287
|
+
static {
|
|
288
|
+
__name(this, "BedrockRuntimeServiceException");
|
|
289
|
+
}
|
|
282
290
|
/**
|
|
283
291
|
* @internal
|
|
284
292
|
*/
|
|
@@ -287,11 +295,14 @@ var _BedrockRuntimeServiceException = class _BedrockRuntimeServiceException exte
|
|
|
287
295
|
Object.setPrototypeOf(this, _BedrockRuntimeServiceException.prototype);
|
|
288
296
|
}
|
|
289
297
|
};
|
|
290
|
-
__name(_BedrockRuntimeServiceException, "BedrockRuntimeServiceException");
|
|
291
|
-
var BedrockRuntimeServiceException = _BedrockRuntimeServiceException;
|
|
292
298
|
|
|
293
299
|
// src/models/models_0.ts
|
|
294
|
-
var
|
|
300
|
+
var AccessDeniedException = class _AccessDeniedException extends BedrockRuntimeServiceException {
|
|
301
|
+
static {
|
|
302
|
+
__name(this, "AccessDeniedException");
|
|
303
|
+
}
|
|
304
|
+
name = "AccessDeniedException";
|
|
305
|
+
$fault = "client";
|
|
295
306
|
/**
|
|
296
307
|
* @internal
|
|
297
308
|
*/
|
|
@@ -301,13 +312,9 @@ var _AccessDeniedException = class _AccessDeniedException extends BedrockRuntime
|
|
|
301
312
|
$fault: "client",
|
|
302
313
|
...opts
|
|
303
314
|
});
|
|
304
|
-
this.name = "AccessDeniedException";
|
|
305
|
-
this.$fault = "client";
|
|
306
315
|
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
307
316
|
}
|
|
308
317
|
};
|
|
309
|
-
__name(_AccessDeniedException, "AccessDeniedException");
|
|
310
|
-
var AccessDeniedException = _AccessDeniedException;
|
|
311
318
|
var AsyncInvokeOutputDataConfig;
|
|
312
319
|
((AsyncInvokeOutputDataConfig3) => {
|
|
313
320
|
AsyncInvokeOutputDataConfig3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
@@ -321,7 +328,12 @@ var AsyncInvokeStatus = {
|
|
|
321
328
|
FAILED: "Failed",
|
|
322
329
|
IN_PROGRESS: "InProgress"
|
|
323
330
|
};
|
|
324
|
-
var
|
|
331
|
+
var InternalServerException = class _InternalServerException extends BedrockRuntimeServiceException {
|
|
332
|
+
static {
|
|
333
|
+
__name(this, "InternalServerException");
|
|
334
|
+
}
|
|
335
|
+
name = "InternalServerException";
|
|
336
|
+
$fault = "server";
|
|
325
337
|
/**
|
|
326
338
|
* @internal
|
|
327
339
|
*/
|
|
@@ -331,14 +343,15 @@ var _InternalServerException = class _InternalServerException extends BedrockRun
|
|
|
331
343
|
$fault: "server",
|
|
332
344
|
...opts
|
|
333
345
|
});
|
|
334
|
-
this.name = "InternalServerException";
|
|
335
|
-
this.$fault = "server";
|
|
336
346
|
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
337
347
|
}
|
|
338
348
|
};
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
349
|
+
var ThrottlingException = class _ThrottlingException extends BedrockRuntimeServiceException {
|
|
350
|
+
static {
|
|
351
|
+
__name(this, "ThrottlingException");
|
|
352
|
+
}
|
|
353
|
+
name = "ThrottlingException";
|
|
354
|
+
$fault = "client";
|
|
342
355
|
/**
|
|
343
356
|
* @internal
|
|
344
357
|
*/
|
|
@@ -348,14 +361,15 @@ var _ThrottlingException = class _ThrottlingException extends BedrockRuntimeServ
|
|
|
348
361
|
$fault: "client",
|
|
349
362
|
...opts
|
|
350
363
|
});
|
|
351
|
-
this.name = "ThrottlingException";
|
|
352
|
-
this.$fault = "client";
|
|
353
364
|
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
354
365
|
}
|
|
355
366
|
};
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
367
|
+
var ValidationException = class _ValidationException extends BedrockRuntimeServiceException {
|
|
368
|
+
static {
|
|
369
|
+
__name(this, "ValidationException");
|
|
370
|
+
}
|
|
371
|
+
name = "ValidationException";
|
|
372
|
+
$fault = "client";
|
|
359
373
|
/**
|
|
360
374
|
* @internal
|
|
361
375
|
*/
|
|
@@ -365,13 +379,9 @@ var _ValidationException = class _ValidationException extends BedrockRuntimeServ
|
|
|
365
379
|
$fault: "client",
|
|
366
380
|
...opts
|
|
367
381
|
});
|
|
368
|
-
this.name = "ValidationException";
|
|
369
|
-
this.$fault = "client";
|
|
370
382
|
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
371
383
|
}
|
|
372
384
|
};
|
|
373
|
-
__name(_ValidationException, "ValidationException");
|
|
374
|
-
var ValidationException = _ValidationException;
|
|
375
385
|
var SortAsyncInvocationBy = {
|
|
376
386
|
SUBMISSION_TIME: "SubmissionTime"
|
|
377
387
|
};
|
|
@@ -379,7 +389,12 @@ var SortOrder = {
|
|
|
379
389
|
ASCENDING: "Ascending",
|
|
380
390
|
DESCENDING: "Descending"
|
|
381
391
|
};
|
|
382
|
-
var
|
|
392
|
+
var ConflictException = class _ConflictException extends BedrockRuntimeServiceException {
|
|
393
|
+
static {
|
|
394
|
+
__name(this, "ConflictException");
|
|
395
|
+
}
|
|
396
|
+
name = "ConflictException";
|
|
397
|
+
$fault = "client";
|
|
383
398
|
/**
|
|
384
399
|
* @internal
|
|
385
400
|
*/
|
|
@@ -389,14 +404,15 @@ var _ConflictException = class _ConflictException extends BedrockRuntimeServiceE
|
|
|
389
404
|
$fault: "client",
|
|
390
405
|
...opts
|
|
391
406
|
});
|
|
392
|
-
this.name = "ConflictException";
|
|
393
|
-
this.$fault = "client";
|
|
394
407
|
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
395
408
|
}
|
|
396
409
|
};
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
410
|
+
var ResourceNotFoundException = class _ResourceNotFoundException extends BedrockRuntimeServiceException {
|
|
411
|
+
static {
|
|
412
|
+
__name(this, "ResourceNotFoundException");
|
|
413
|
+
}
|
|
414
|
+
name = "ResourceNotFoundException";
|
|
415
|
+
$fault = "client";
|
|
400
416
|
/**
|
|
401
417
|
* @internal
|
|
402
418
|
*/
|
|
@@ -406,14 +422,15 @@ var _ResourceNotFoundException = class _ResourceNotFoundException extends Bedroc
|
|
|
406
422
|
$fault: "client",
|
|
407
423
|
...opts
|
|
408
424
|
});
|
|
409
|
-
this.name = "ResourceNotFoundException";
|
|
410
|
-
this.$fault = "client";
|
|
411
425
|
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
412
426
|
}
|
|
413
427
|
};
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
428
|
+
var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends BedrockRuntimeServiceException {
|
|
429
|
+
static {
|
|
430
|
+
__name(this, "ServiceQuotaExceededException");
|
|
431
|
+
}
|
|
432
|
+
name = "ServiceQuotaExceededException";
|
|
433
|
+
$fault = "client";
|
|
417
434
|
/**
|
|
418
435
|
* @internal
|
|
419
436
|
*/
|
|
@@ -423,14 +440,15 @@ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extend
|
|
|
423
440
|
$fault: "client",
|
|
424
441
|
...opts
|
|
425
442
|
});
|
|
426
|
-
this.name = "ServiceQuotaExceededException";
|
|
427
|
-
this.$fault = "client";
|
|
428
443
|
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
429
444
|
}
|
|
430
445
|
};
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
446
|
+
var ServiceUnavailableException = class _ServiceUnavailableException extends BedrockRuntimeServiceException {
|
|
447
|
+
static {
|
|
448
|
+
__name(this, "ServiceUnavailableException");
|
|
449
|
+
}
|
|
450
|
+
name = "ServiceUnavailableException";
|
|
451
|
+
$fault = "server";
|
|
434
452
|
/**
|
|
435
453
|
* @internal
|
|
436
454
|
*/
|
|
@@ -440,13 +458,9 @@ var _ServiceUnavailableException = class _ServiceUnavailableException extends Be
|
|
|
440
458
|
$fault: "server",
|
|
441
459
|
...opts
|
|
442
460
|
});
|
|
443
|
-
this.name = "ServiceUnavailableException";
|
|
444
|
-
this.$fault = "server";
|
|
445
461
|
Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
|
|
446
462
|
}
|
|
447
463
|
};
|
|
448
|
-
__name(_ServiceUnavailableException, "ServiceUnavailableException");
|
|
449
|
-
var ServiceUnavailableException = _ServiceUnavailableException;
|
|
450
464
|
var GuardrailImageFormat = {
|
|
451
465
|
JPEG: "jpeg",
|
|
452
466
|
PNG: "png"
|
|
@@ -757,7 +771,22 @@ var StopReason = {
|
|
|
757
771
|
STOP_SEQUENCE: "stop_sequence",
|
|
758
772
|
TOOL_USE: "tool_use"
|
|
759
773
|
};
|
|
760
|
-
var
|
|
774
|
+
var ModelErrorException = class _ModelErrorException extends BedrockRuntimeServiceException {
|
|
775
|
+
static {
|
|
776
|
+
__name(this, "ModelErrorException");
|
|
777
|
+
}
|
|
778
|
+
name = "ModelErrorException";
|
|
779
|
+
$fault = "client";
|
|
780
|
+
/**
|
|
781
|
+
* <p>The original status code.</p>
|
|
782
|
+
* @public
|
|
783
|
+
*/
|
|
784
|
+
originalStatusCode;
|
|
785
|
+
/**
|
|
786
|
+
* <p>The resource name.</p>
|
|
787
|
+
* @public
|
|
788
|
+
*/
|
|
789
|
+
resourceName;
|
|
761
790
|
/**
|
|
762
791
|
* @internal
|
|
763
792
|
*/
|
|
@@ -767,16 +796,18 @@ var _ModelErrorException = class _ModelErrorException extends BedrockRuntimeServ
|
|
|
767
796
|
$fault: "client",
|
|
768
797
|
...opts
|
|
769
798
|
});
|
|
770
|
-
this.name = "ModelErrorException";
|
|
771
|
-
this.$fault = "client";
|
|
772
799
|
Object.setPrototypeOf(this, _ModelErrorException.prototype);
|
|
773
800
|
this.originalStatusCode = opts.originalStatusCode;
|
|
774
801
|
this.resourceName = opts.resourceName;
|
|
775
802
|
}
|
|
776
803
|
};
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
804
|
+
var ModelNotReadyException = class _ModelNotReadyException extends BedrockRuntimeServiceException {
|
|
805
|
+
static {
|
|
806
|
+
__name(this, "ModelNotReadyException");
|
|
807
|
+
}
|
|
808
|
+
name = "ModelNotReadyException";
|
|
809
|
+
$fault = "client";
|
|
810
|
+
$retryable = {};
|
|
780
811
|
/**
|
|
781
812
|
* @internal
|
|
782
813
|
*/
|
|
@@ -786,15 +817,15 @@ var _ModelNotReadyException = class _ModelNotReadyException extends BedrockRunti
|
|
|
786
817
|
$fault: "client",
|
|
787
818
|
...opts
|
|
788
819
|
});
|
|
789
|
-
this.name = "ModelNotReadyException";
|
|
790
|
-
this.$fault = "client";
|
|
791
|
-
this.$retryable = {};
|
|
792
820
|
Object.setPrototypeOf(this, _ModelNotReadyException.prototype);
|
|
793
821
|
}
|
|
794
822
|
};
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
823
|
+
var ModelTimeoutException = class _ModelTimeoutException extends BedrockRuntimeServiceException {
|
|
824
|
+
static {
|
|
825
|
+
__name(this, "ModelTimeoutException");
|
|
826
|
+
}
|
|
827
|
+
name = "ModelTimeoutException";
|
|
828
|
+
$fault = "client";
|
|
798
829
|
/**
|
|
799
830
|
* @internal
|
|
800
831
|
*/
|
|
@@ -804,13 +835,9 @@ var _ModelTimeoutException = class _ModelTimeoutException extends BedrockRuntime
|
|
|
804
835
|
$fault: "client",
|
|
805
836
|
...opts
|
|
806
837
|
});
|
|
807
|
-
this.name = "ModelTimeoutException";
|
|
808
|
-
this.$fault = "client";
|
|
809
838
|
Object.setPrototypeOf(this, _ModelTimeoutException.prototype);
|
|
810
839
|
}
|
|
811
840
|
};
|
|
812
|
-
__name(_ModelTimeoutException, "ModelTimeoutException");
|
|
813
|
-
var ModelTimeoutException = _ModelTimeoutException;
|
|
814
841
|
var GuardrailStreamProcessingMode = {
|
|
815
842
|
ASYNC: "async",
|
|
816
843
|
SYNC: "sync"
|
|
@@ -833,7 +860,22 @@ var ContentBlockStart;
|
|
|
833
860
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
834
861
|
}, "visit");
|
|
835
862
|
})(ContentBlockStart || (ContentBlockStart = {}));
|
|
836
|
-
var
|
|
863
|
+
var ModelStreamErrorException = class _ModelStreamErrorException extends BedrockRuntimeServiceException {
|
|
864
|
+
static {
|
|
865
|
+
__name(this, "ModelStreamErrorException");
|
|
866
|
+
}
|
|
867
|
+
name = "ModelStreamErrorException";
|
|
868
|
+
$fault = "client";
|
|
869
|
+
/**
|
|
870
|
+
* <p>The original status code.</p>
|
|
871
|
+
* @public
|
|
872
|
+
*/
|
|
873
|
+
originalStatusCode;
|
|
874
|
+
/**
|
|
875
|
+
* <p>The original message.</p>
|
|
876
|
+
* @public
|
|
877
|
+
*/
|
|
878
|
+
originalMessage;
|
|
837
879
|
/**
|
|
838
880
|
* @internal
|
|
839
881
|
*/
|
|
@@ -843,15 +885,11 @@ var _ModelStreamErrorException = class _ModelStreamErrorException extends Bedroc
|
|
|
843
885
|
$fault: "client",
|
|
844
886
|
...opts
|
|
845
887
|
});
|
|
846
|
-
this.name = "ModelStreamErrorException";
|
|
847
|
-
this.$fault = "client";
|
|
848
888
|
Object.setPrototypeOf(this, _ModelStreamErrorException.prototype);
|
|
849
889
|
this.originalStatusCode = opts.originalStatusCode;
|
|
850
890
|
this.originalMessage = opts.originalMessage;
|
|
851
891
|
}
|
|
852
892
|
};
|
|
853
|
-
__name(_ModelStreamErrorException, "ModelStreamErrorException");
|
|
854
|
-
var ModelStreamErrorException = _ModelStreamErrorException;
|
|
855
893
|
var ConverseStreamOutput;
|
|
856
894
|
((ConverseStreamOutput3) => {
|
|
857
895
|
ConverseStreamOutput3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
@@ -2293,35 +2331,37 @@ var _xabpl = "x-amzn-bedrock-performanceconfig-latency";
|
|
|
2293
2331
|
var _xabt = "x-amzn-bedrock-trace";
|
|
2294
2332
|
|
|
2295
2333
|
// src/commands/ApplyGuardrailCommand.ts
|
|
2296
|
-
var
|
|
2334
|
+
var ApplyGuardrailCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
2297
2335
|
return [
|
|
2298
2336
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2299
2337
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2300
2338
|
];
|
|
2301
2339
|
}).s("AmazonBedrockFrontendService", "ApplyGuardrail", {}).n("BedrockRuntimeClient", "ApplyGuardrailCommand").f(ApplyGuardrailRequestFilterSensitiveLog, void 0).ser(se_ApplyGuardrailCommand).de(de_ApplyGuardrailCommand).build() {
|
|
2340
|
+
static {
|
|
2341
|
+
__name(this, "ApplyGuardrailCommand");
|
|
2342
|
+
}
|
|
2302
2343
|
};
|
|
2303
|
-
__name(_ApplyGuardrailCommand, "ApplyGuardrailCommand");
|
|
2304
|
-
var ApplyGuardrailCommand = _ApplyGuardrailCommand;
|
|
2305
2344
|
|
|
2306
2345
|
// src/commands/ConverseCommand.ts
|
|
2307
2346
|
|
|
2308
2347
|
|
|
2309
2348
|
|
|
2310
|
-
var
|
|
2349
|
+
var ConverseCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
2311
2350
|
return [
|
|
2312
2351
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2313
2352
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2314
2353
|
];
|
|
2315
2354
|
}).s("AmazonBedrockFrontendService", "Converse", {}).n("BedrockRuntimeClient", "ConverseCommand").f(ConverseRequestFilterSensitiveLog, ConverseResponseFilterSensitiveLog).ser(se_ConverseCommand).de(de_ConverseCommand).build() {
|
|
2355
|
+
static {
|
|
2356
|
+
__name(this, "ConverseCommand");
|
|
2357
|
+
}
|
|
2316
2358
|
};
|
|
2317
|
-
__name(_ConverseCommand, "ConverseCommand");
|
|
2318
|
-
var ConverseCommand = _ConverseCommand;
|
|
2319
2359
|
|
|
2320
2360
|
// src/commands/ConverseStreamCommand.ts
|
|
2321
2361
|
|
|
2322
2362
|
|
|
2323
2363
|
|
|
2324
|
-
var
|
|
2364
|
+
var ConverseStreamCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
2325
2365
|
return [
|
|
2326
2366
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2327
2367
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
@@ -2334,43 +2374,46 @@ var _ConverseStreamCommand = class _ConverseStreamCommand extends import_smithy_
|
|
|
2334
2374
|
output: true
|
|
2335
2375
|
}
|
|
2336
2376
|
}).n("BedrockRuntimeClient", "ConverseStreamCommand").f(ConverseStreamRequestFilterSensitiveLog, ConverseStreamResponseFilterSensitiveLog).ser(se_ConverseStreamCommand).de(de_ConverseStreamCommand).build() {
|
|
2377
|
+
static {
|
|
2378
|
+
__name(this, "ConverseStreamCommand");
|
|
2379
|
+
}
|
|
2337
2380
|
};
|
|
2338
|
-
__name(_ConverseStreamCommand, "ConverseStreamCommand");
|
|
2339
|
-
var ConverseStreamCommand = _ConverseStreamCommand;
|
|
2340
2381
|
|
|
2341
2382
|
// src/commands/GetAsyncInvokeCommand.ts
|
|
2342
2383
|
|
|
2343
2384
|
|
|
2344
2385
|
|
|
2345
|
-
var
|
|
2386
|
+
var GetAsyncInvokeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
2346
2387
|
return [
|
|
2347
2388
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2348
2389
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2349
2390
|
];
|
|
2350
2391
|
}).s("AmazonBedrockFrontendService", "GetAsyncInvoke", {}).n("BedrockRuntimeClient", "GetAsyncInvokeCommand").f(void 0, GetAsyncInvokeResponseFilterSensitiveLog).ser(se_GetAsyncInvokeCommand).de(de_GetAsyncInvokeCommand).build() {
|
|
2392
|
+
static {
|
|
2393
|
+
__name(this, "GetAsyncInvokeCommand");
|
|
2394
|
+
}
|
|
2351
2395
|
};
|
|
2352
|
-
__name(_GetAsyncInvokeCommand, "GetAsyncInvokeCommand");
|
|
2353
|
-
var GetAsyncInvokeCommand = _GetAsyncInvokeCommand;
|
|
2354
2396
|
|
|
2355
2397
|
// src/commands/InvokeModelCommand.ts
|
|
2356
2398
|
|
|
2357
2399
|
|
|
2358
2400
|
|
|
2359
|
-
var
|
|
2401
|
+
var InvokeModelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
2360
2402
|
return [
|
|
2361
2403
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2362
2404
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2363
2405
|
];
|
|
2364
2406
|
}).s("AmazonBedrockFrontendService", "InvokeModel", {}).n("BedrockRuntimeClient", "InvokeModelCommand").f(InvokeModelRequestFilterSensitiveLog, InvokeModelResponseFilterSensitiveLog).ser(se_InvokeModelCommand).de(de_InvokeModelCommand).build() {
|
|
2407
|
+
static {
|
|
2408
|
+
__name(this, "InvokeModelCommand");
|
|
2409
|
+
}
|
|
2365
2410
|
};
|
|
2366
|
-
__name(_InvokeModelCommand, "InvokeModelCommand");
|
|
2367
|
-
var InvokeModelCommand = _InvokeModelCommand;
|
|
2368
2411
|
|
|
2369
2412
|
// src/commands/InvokeModelWithResponseStreamCommand.ts
|
|
2370
2413
|
|
|
2371
2414
|
|
|
2372
2415
|
|
|
2373
|
-
var
|
|
2416
|
+
var InvokeModelWithResponseStreamCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
2374
2417
|
return [
|
|
2375
2418
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2376
2419
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
@@ -2383,37 +2426,40 @@ var _InvokeModelWithResponseStreamCommand = class _InvokeModelWithResponseStream
|
|
|
2383
2426
|
output: true
|
|
2384
2427
|
}
|
|
2385
2428
|
}).n("BedrockRuntimeClient", "InvokeModelWithResponseStreamCommand").f(InvokeModelWithResponseStreamRequestFilterSensitiveLog, InvokeModelWithResponseStreamResponseFilterSensitiveLog).ser(se_InvokeModelWithResponseStreamCommand).de(de_InvokeModelWithResponseStreamCommand).build() {
|
|
2429
|
+
static {
|
|
2430
|
+
__name(this, "InvokeModelWithResponseStreamCommand");
|
|
2431
|
+
}
|
|
2386
2432
|
};
|
|
2387
|
-
__name(_InvokeModelWithResponseStreamCommand, "InvokeModelWithResponseStreamCommand");
|
|
2388
|
-
var InvokeModelWithResponseStreamCommand = _InvokeModelWithResponseStreamCommand;
|
|
2389
2433
|
|
|
2390
2434
|
// src/commands/ListAsyncInvokesCommand.ts
|
|
2391
2435
|
|
|
2392
2436
|
|
|
2393
2437
|
|
|
2394
|
-
var
|
|
2438
|
+
var ListAsyncInvokesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
2395
2439
|
return [
|
|
2396
2440
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2397
2441
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2398
2442
|
];
|
|
2399
2443
|
}).s("AmazonBedrockFrontendService", "ListAsyncInvokes", {}).n("BedrockRuntimeClient", "ListAsyncInvokesCommand").f(void 0, ListAsyncInvokesResponseFilterSensitiveLog).ser(se_ListAsyncInvokesCommand).de(de_ListAsyncInvokesCommand).build() {
|
|
2444
|
+
static {
|
|
2445
|
+
__name(this, "ListAsyncInvokesCommand");
|
|
2446
|
+
}
|
|
2400
2447
|
};
|
|
2401
|
-
__name(_ListAsyncInvokesCommand, "ListAsyncInvokesCommand");
|
|
2402
|
-
var ListAsyncInvokesCommand = _ListAsyncInvokesCommand;
|
|
2403
2448
|
|
|
2404
2449
|
// src/commands/StartAsyncInvokeCommand.ts
|
|
2405
2450
|
|
|
2406
2451
|
|
|
2407
2452
|
|
|
2408
|
-
var
|
|
2453
|
+
var StartAsyncInvokeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
2409
2454
|
return [
|
|
2410
2455
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2411
2456
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2412
2457
|
];
|
|
2413
2458
|
}).s("AmazonBedrockFrontendService", "StartAsyncInvoke", {}).n("BedrockRuntimeClient", "StartAsyncInvokeCommand").f(StartAsyncInvokeRequestFilterSensitiveLog, void 0).ser(se_StartAsyncInvokeCommand).de(de_StartAsyncInvokeCommand).build() {
|
|
2459
|
+
static {
|
|
2460
|
+
__name(this, "StartAsyncInvokeCommand");
|
|
2461
|
+
}
|
|
2414
2462
|
};
|
|
2415
|
-
__name(_StartAsyncInvokeCommand, "StartAsyncInvokeCommand");
|
|
2416
|
-
var StartAsyncInvokeCommand = _StartAsyncInvokeCommand;
|
|
2417
2463
|
|
|
2418
2464
|
// src/BedrockRuntime.ts
|
|
2419
2465
|
var commands = {
|
|
@@ -2426,10 +2472,11 @@ var commands = {
|
|
|
2426
2472
|
ListAsyncInvokesCommand,
|
|
2427
2473
|
StartAsyncInvokeCommand
|
|
2428
2474
|
};
|
|
2429
|
-
var
|
|
2475
|
+
var BedrockRuntime = class extends BedrockRuntimeClient {
|
|
2476
|
+
static {
|
|
2477
|
+
__name(this, "BedrockRuntime");
|
|
2478
|
+
}
|
|
2430
2479
|
};
|
|
2431
|
-
__name(_BedrockRuntime, "BedrockRuntime");
|
|
2432
|
-
var BedrockRuntime = _BedrockRuntime;
|
|
2433
2480
|
(0, import_smithy_client.createAggregatedClient)(commands, BedrockRuntime);
|
|
2434
2481
|
|
|
2435
2482
|
// src/pagination/ListAsyncInvokesPaginator.ts
|
|
@@ -15,6 +15,7 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
|
15
15
|
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
16
16
|
export { __Client };
|
|
17
17
|
export class BedrockRuntimeClient extends __Client {
|
|
18
|
+
config;
|
|
18
19
|
constructor(...[configuration]) {
|
|
19
20
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
20
21
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
2
|
import { BedrockRuntimeServiceException as __BaseException } from "./BedrockRuntimeServiceException";
|
|
3
3
|
export class AccessDeniedException extends __BaseException {
|
|
4
|
+
name = "AccessDeniedException";
|
|
5
|
+
$fault = "client";
|
|
4
6
|
constructor(opts) {
|
|
5
7
|
super({
|
|
6
8
|
name: "AccessDeniedException",
|
|
7
9
|
$fault: "client",
|
|
8
10
|
...opts,
|
|
9
11
|
});
|
|
10
|
-
this.name = "AccessDeniedException";
|
|
11
|
-
this.$fault = "client";
|
|
12
12
|
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -26,38 +26,38 @@ export const AsyncInvokeStatus = {
|
|
|
26
26
|
IN_PROGRESS: "InProgress",
|
|
27
27
|
};
|
|
28
28
|
export class InternalServerException extends __BaseException {
|
|
29
|
+
name = "InternalServerException";
|
|
30
|
+
$fault = "server";
|
|
29
31
|
constructor(opts) {
|
|
30
32
|
super({
|
|
31
33
|
name: "InternalServerException",
|
|
32
34
|
$fault: "server",
|
|
33
35
|
...opts,
|
|
34
36
|
});
|
|
35
|
-
this.name = "InternalServerException";
|
|
36
|
-
this.$fault = "server";
|
|
37
37
|
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
export class ThrottlingException extends __BaseException {
|
|
41
|
+
name = "ThrottlingException";
|
|
42
|
+
$fault = "client";
|
|
41
43
|
constructor(opts) {
|
|
42
44
|
super({
|
|
43
45
|
name: "ThrottlingException",
|
|
44
46
|
$fault: "client",
|
|
45
47
|
...opts,
|
|
46
48
|
});
|
|
47
|
-
this.name = "ThrottlingException";
|
|
48
|
-
this.$fault = "client";
|
|
49
49
|
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
export class ValidationException extends __BaseException {
|
|
53
|
+
name = "ValidationException";
|
|
54
|
+
$fault = "client";
|
|
53
55
|
constructor(opts) {
|
|
54
56
|
super({
|
|
55
57
|
name: "ValidationException",
|
|
56
58
|
$fault: "client",
|
|
57
59
|
...opts,
|
|
58
60
|
});
|
|
59
|
-
this.name = "ValidationException";
|
|
60
|
-
this.$fault = "client";
|
|
61
61
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -69,50 +69,50 @@ export const SortOrder = {
|
|
|
69
69
|
DESCENDING: "Descending",
|
|
70
70
|
};
|
|
71
71
|
export class ConflictException extends __BaseException {
|
|
72
|
+
name = "ConflictException";
|
|
73
|
+
$fault = "client";
|
|
72
74
|
constructor(opts) {
|
|
73
75
|
super({
|
|
74
76
|
name: "ConflictException",
|
|
75
77
|
$fault: "client",
|
|
76
78
|
...opts,
|
|
77
79
|
});
|
|
78
|
-
this.name = "ConflictException";
|
|
79
|
-
this.$fault = "client";
|
|
80
80
|
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
export class ResourceNotFoundException extends __BaseException {
|
|
84
|
+
name = "ResourceNotFoundException";
|
|
85
|
+
$fault = "client";
|
|
84
86
|
constructor(opts) {
|
|
85
87
|
super({
|
|
86
88
|
name: "ResourceNotFoundException",
|
|
87
89
|
$fault: "client",
|
|
88
90
|
...opts,
|
|
89
91
|
});
|
|
90
|
-
this.name = "ResourceNotFoundException";
|
|
91
|
-
this.$fault = "client";
|
|
92
92
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
export class ServiceQuotaExceededException extends __BaseException {
|
|
96
|
+
name = "ServiceQuotaExceededException";
|
|
97
|
+
$fault = "client";
|
|
96
98
|
constructor(opts) {
|
|
97
99
|
super({
|
|
98
100
|
name: "ServiceQuotaExceededException",
|
|
99
101
|
$fault: "client",
|
|
100
102
|
...opts,
|
|
101
103
|
});
|
|
102
|
-
this.name = "ServiceQuotaExceededException";
|
|
103
|
-
this.$fault = "client";
|
|
104
104
|
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
export class ServiceUnavailableException extends __BaseException {
|
|
108
|
+
name = "ServiceUnavailableException";
|
|
109
|
+
$fault = "server";
|
|
108
110
|
constructor(opts) {
|
|
109
111
|
super({
|
|
110
112
|
name: "ServiceUnavailableException",
|
|
111
113
|
$fault: "server",
|
|
112
114
|
...opts,
|
|
113
115
|
});
|
|
114
|
-
this.name = "ServiceUnavailableException";
|
|
115
|
-
this.$fault = "server";
|
|
116
116
|
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
@@ -427,41 +427,43 @@ export const StopReason = {
|
|
|
427
427
|
TOOL_USE: "tool_use",
|
|
428
428
|
};
|
|
429
429
|
export class ModelErrorException extends __BaseException {
|
|
430
|
+
name = "ModelErrorException";
|
|
431
|
+
$fault = "client";
|
|
432
|
+
originalStatusCode;
|
|
433
|
+
resourceName;
|
|
430
434
|
constructor(opts) {
|
|
431
435
|
super({
|
|
432
436
|
name: "ModelErrorException",
|
|
433
437
|
$fault: "client",
|
|
434
438
|
...opts,
|
|
435
439
|
});
|
|
436
|
-
this.name = "ModelErrorException";
|
|
437
|
-
this.$fault = "client";
|
|
438
440
|
Object.setPrototypeOf(this, ModelErrorException.prototype);
|
|
439
441
|
this.originalStatusCode = opts.originalStatusCode;
|
|
440
442
|
this.resourceName = opts.resourceName;
|
|
441
443
|
}
|
|
442
444
|
}
|
|
443
445
|
export class ModelNotReadyException extends __BaseException {
|
|
446
|
+
name = "ModelNotReadyException";
|
|
447
|
+
$fault = "client";
|
|
448
|
+
$retryable = {};
|
|
444
449
|
constructor(opts) {
|
|
445
450
|
super({
|
|
446
451
|
name: "ModelNotReadyException",
|
|
447
452
|
$fault: "client",
|
|
448
453
|
...opts,
|
|
449
454
|
});
|
|
450
|
-
this.name = "ModelNotReadyException";
|
|
451
|
-
this.$fault = "client";
|
|
452
|
-
this.$retryable = {};
|
|
453
455
|
Object.setPrototypeOf(this, ModelNotReadyException.prototype);
|
|
454
456
|
}
|
|
455
457
|
}
|
|
456
458
|
export class ModelTimeoutException extends __BaseException {
|
|
459
|
+
name = "ModelTimeoutException";
|
|
460
|
+
$fault = "client";
|
|
457
461
|
constructor(opts) {
|
|
458
462
|
super({
|
|
459
463
|
name: "ModelTimeoutException",
|
|
460
464
|
$fault: "client",
|
|
461
465
|
...opts,
|
|
462
466
|
});
|
|
463
|
-
this.name = "ModelTimeoutException";
|
|
464
|
-
this.$fault = "client";
|
|
465
467
|
Object.setPrototypeOf(this, ModelTimeoutException.prototype);
|
|
466
468
|
}
|
|
467
469
|
}
|
|
@@ -488,14 +490,16 @@ export var ContentBlockStart;
|
|
|
488
490
|
};
|
|
489
491
|
})(ContentBlockStart || (ContentBlockStart = {}));
|
|
490
492
|
export class ModelStreamErrorException extends __BaseException {
|
|
493
|
+
name = "ModelStreamErrorException";
|
|
494
|
+
$fault = "client";
|
|
495
|
+
originalStatusCode;
|
|
496
|
+
originalMessage;
|
|
491
497
|
constructor(opts) {
|
|
492
498
|
super({
|
|
493
499
|
name: "ModelStreamErrorException",
|
|
494
500
|
$fault: "client",
|
|
495
501
|
...opts,
|
|
496
502
|
});
|
|
497
|
-
this.name = "ModelStreamErrorException";
|
|
498
|
-
this.$fault = "client";
|
|
499
503
|
Object.setPrototypeOf(this, ModelStreamErrorException.prototype);
|
|
500
504
|
this.originalStatusCode = opts.originalStatusCode;
|
|
501
505
|
this.originalMessage = opts.originalMessage;
|
|
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
7
7
|
runtime: string;
|
|
8
8
|
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
|
-
credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
10
|
+
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
11
11
|
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
|
|
12
12
|
eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
|
|
13
13
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
7
7
|
runtime: string;
|
|
8
8
|
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
|
-
credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity
|
|
10
|
+
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>);
|
|
11
11
|
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
|
|
12
12
|
eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
|
|
13
13
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
@@ -22,7 +22,7 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
22
22
|
region: string | import("@smithy/types").Provider<any>;
|
|
23
23
|
profile?: string | undefined;
|
|
24
24
|
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
|
|
25
|
-
credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
25
|
+
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
26
26
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
27
27
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
28
28
|
logger: import("@smithy/types").Logger;
|
|
@@ -32,7 +32,7 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
32
32
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
33
33
|
userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
|
|
34
34
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
35
|
-
endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
|
|
35
|
+
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
36
36
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
37
37
|
logger?: import("@smithy/types").Logger | undefined;
|
|
38
38
|
}) => import("@smithy/types").EndpointV2;
|
|
@@ -6,9 +6,11 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
6
6
|
import("@smithy/smithy-client").ResolvedDefaultsMode
|
|
7
7
|
>;
|
|
8
8
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
9
|
-
credentialDefaultProvider:
|
|
10
|
-
input: any
|
|
11
|
-
|
|
9
|
+
credentialDefaultProvider:
|
|
10
|
+
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
|
|
11
|
+
| ((
|
|
12
|
+
_: unknown
|
|
13
|
+
) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
12
14
|
defaultUserAgentProvider: (
|
|
13
15
|
config?:
|
|
14
16
|
| import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
|
|
@@ -6,13 +6,15 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
6
6
|
import("@smithy/smithy-client").ResolvedDefaultsMode
|
|
7
7
|
>;
|
|
8
8
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
9
|
-
credentialDefaultProvider:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
credentialDefaultProvider:
|
|
10
|
+
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
|
|
11
|
+
| ((
|
|
12
|
+
init?:
|
|
13
|
+
| import("@aws-sdk/credential-provider-node").DefaultProviderInit
|
|
14
|
+
| undefined
|
|
15
|
+
) => import("@smithy/types").MemoizedProvider<
|
|
16
|
+
import("@smithy/types").AwsCredentialIdentity
|
|
17
|
+
>);
|
|
16
18
|
defaultUserAgentProvider: (
|
|
17
19
|
config?:
|
|
18
20
|
| import("@aws-sdk/util-user-agent-node").PreviouslyResolved
|
|
@@ -28,9 +28,11 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
28
28
|
| import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
|
|
29
29
|
| undefined
|
|
30
30
|
) => Promise<import("@smithy/types").UserAgent>;
|
|
31
|
-
credentialDefaultProvider:
|
|
32
|
-
input: any
|
|
33
|
-
|
|
31
|
+
credentialDefaultProvider:
|
|
32
|
+
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
|
|
33
|
+
| ((
|
|
34
|
+
_: unknown
|
|
35
|
+
) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
34
36
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
35
37
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
36
38
|
logger: import("@smithy/types").Logger;
|
|
@@ -51,11 +53,21 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
51
53
|
| import("@smithy/types").RetryStrategyV2
|
|
52
54
|
| undefined;
|
|
53
55
|
endpoint?:
|
|
54
|
-
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
| ((
|
|
57
|
+
| string
|
|
58
|
+
| import("@smithy/types").Endpoint
|
|
59
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
60
|
+
| import("@smithy/types").EndpointV2
|
|
61
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
62
|
+
) &
|
|
63
|
+
(
|
|
64
|
+
| string
|
|
65
|
+
| import("@smithy/types").Provider<string>
|
|
66
|
+
| import("@smithy/types").Endpoint
|
|
67
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
68
|
+
| import("@smithy/types").EndpointV2
|
|
69
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
70
|
+
))
|
|
59
71
|
| undefined;
|
|
60
72
|
endpointProvider: (
|
|
61
73
|
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock-runtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.723.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock-runtime",
|
|
@@ -20,62 +20,62 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
28
|
-
"@aws-sdk/middleware-logger": "3.
|
|
29
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^
|
|
37
|
-
"@smithy/core": "^
|
|
38
|
-
"@smithy/eventstream-serde-browser": "^
|
|
39
|
-
"@smithy/eventstream-serde-config-resolver": "^
|
|
40
|
-
"@smithy/eventstream-serde-node": "^
|
|
41
|
-
"@smithy/fetch-http-handler": "^
|
|
42
|
-
"@smithy/hash-node": "^
|
|
43
|
-
"@smithy/invalid-dependency": "^
|
|
44
|
-
"@smithy/middleware-content-length": "^
|
|
45
|
-
"@smithy/middleware-endpoint": "^
|
|
46
|
-
"@smithy/middleware-retry": "^
|
|
47
|
-
"@smithy/middleware-serde": "^
|
|
48
|
-
"@smithy/middleware-stack": "^
|
|
49
|
-
"@smithy/node-config-provider": "^
|
|
50
|
-
"@smithy/node-http-handler": "^
|
|
51
|
-
"@smithy/protocol-http": "^
|
|
52
|
-
"@smithy/smithy-client": "^
|
|
53
|
-
"@smithy/types": "^
|
|
54
|
-
"@smithy/url-parser": "^
|
|
55
|
-
"@smithy/util-base64": "^
|
|
56
|
-
"@smithy/util-body-length-browser": "^
|
|
57
|
-
"@smithy/util-body-length-node": "^
|
|
58
|
-
"@smithy/util-defaults-mode-browser": "^
|
|
59
|
-
"@smithy/util-defaults-mode-node": "^
|
|
60
|
-
"@smithy/util-endpoints": "^
|
|
61
|
-
"@smithy/util-middleware": "^
|
|
62
|
-
"@smithy/util-retry": "^
|
|
63
|
-
"@smithy/util-stream": "^
|
|
64
|
-
"@smithy/util-utf8": "^
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.723.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.723.0",
|
|
25
|
+
"@aws-sdk/core": "3.723.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.723.0",
|
|
27
|
+
"@aws-sdk/middleware-host-header": "3.723.0",
|
|
28
|
+
"@aws-sdk/middleware-logger": "3.723.0",
|
|
29
|
+
"@aws-sdk/middleware-recursion-detection": "3.723.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.723.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.723.0",
|
|
32
|
+
"@aws-sdk/types": "3.723.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.723.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.723.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.723.0",
|
|
36
|
+
"@smithy/config-resolver": "^4.0.0",
|
|
37
|
+
"@smithy/core": "^3.0.0",
|
|
38
|
+
"@smithy/eventstream-serde-browser": "^4.0.0",
|
|
39
|
+
"@smithy/eventstream-serde-config-resolver": "^4.0.0",
|
|
40
|
+
"@smithy/eventstream-serde-node": "^4.0.0",
|
|
41
|
+
"@smithy/fetch-http-handler": "^5.0.0",
|
|
42
|
+
"@smithy/hash-node": "^4.0.0",
|
|
43
|
+
"@smithy/invalid-dependency": "^4.0.0",
|
|
44
|
+
"@smithy/middleware-content-length": "^4.0.0",
|
|
45
|
+
"@smithy/middleware-endpoint": "^4.0.0",
|
|
46
|
+
"@smithy/middleware-retry": "^4.0.0",
|
|
47
|
+
"@smithy/middleware-serde": "^4.0.0",
|
|
48
|
+
"@smithy/middleware-stack": "^4.0.0",
|
|
49
|
+
"@smithy/node-config-provider": "^4.0.0",
|
|
50
|
+
"@smithy/node-http-handler": "^4.0.0",
|
|
51
|
+
"@smithy/protocol-http": "^5.0.0",
|
|
52
|
+
"@smithy/smithy-client": "^4.0.0",
|
|
53
|
+
"@smithy/types": "^4.0.0",
|
|
54
|
+
"@smithy/url-parser": "^4.0.0",
|
|
55
|
+
"@smithy/util-base64": "^4.0.0",
|
|
56
|
+
"@smithy/util-body-length-browser": "^4.0.0",
|
|
57
|
+
"@smithy/util-body-length-node": "^4.0.0",
|
|
58
|
+
"@smithy/util-defaults-mode-browser": "^4.0.0",
|
|
59
|
+
"@smithy/util-defaults-mode-node": "^4.0.0",
|
|
60
|
+
"@smithy/util-endpoints": "^3.0.0",
|
|
61
|
+
"@smithy/util-middleware": "^4.0.0",
|
|
62
|
+
"@smithy/util-retry": "^4.0.0",
|
|
63
|
+
"@smithy/util-stream": "^4.0.0",
|
|
64
|
+
"@smithy/util-utf8": "^4.0.0",
|
|
65
65
|
"@types/uuid": "^9.0.1",
|
|
66
66
|
"tslib": "^2.6.2",
|
|
67
67
|
"uuid": "^9.0.1"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@tsconfig/
|
|
71
|
-
"@types/node": "^
|
|
70
|
+
"@tsconfig/node18": "18.2.4",
|
|
71
|
+
"@types/node": "^18.19.69",
|
|
72
72
|
"concurrently": "7.0.0",
|
|
73
73
|
"downlevel-dts": "0.10.1",
|
|
74
74
|
"rimraf": "3.0.2",
|
|
75
|
-
"typescript": "~
|
|
75
|
+
"typescript": "~5.2.2"
|
|
76
76
|
},
|
|
77
77
|
"engines": {
|
|
78
|
-
"node": ">=
|
|
78
|
+
"node": ">=18.0.0"
|
|
79
79
|
},
|
|
80
80
|
"typesVersions": {
|
|
81
81
|
"<4.0": {
|