@aws-sdk/client-bedrock-runtime 3.704.0 → 3.705.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/README.md +31 -7
- package/dist-cjs/index.js +464 -112
- package/dist-es/BedrockRuntime.js +6 -0
- package/dist-es/commands/GetAsyncInvokeCommand.js +23 -0
- package/dist-es/commands/ListAsyncInvokesCommand.js +23 -0
- package/dist-es/commands/StartAsyncInvokeCommand.js +23 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/index.js +1 -0
- package/dist-es/models/models_0.js +152 -72
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListAsyncInvokesPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +190 -2
- package/dist-types/BedrockRuntime.d.ts +22 -0
- package/dist-types/BedrockRuntimeClient.d.ts +5 -2
- package/dist-types/commands/ApplyGuardrailCommand.d.ts +2 -0
- package/dist-types/commands/ConverseCommand.d.ts +43 -0
- package/dist-types/commands/ConverseStreamCommand.d.ts +23 -0
- package/dist-types/commands/GetAsyncInvokeCommand.d.ts +101 -0
- package/dist-types/commands/ListAsyncInvokesCommand.d.ts +112 -0
- package/dist-types/commands/StartAsyncInvokeCommand.d.ts +124 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +569 -90
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListAsyncInvokesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/dist-types/ts3.4/BedrockRuntime.d.ts +52 -0
- package/dist-types/ts3.4/BedrockRuntimeClient.d.ts +20 -2
- package/dist-types/ts3.4/commands/GetAsyncInvokeCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListAsyncInvokesCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/StartAsyncInvokeCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +237 -42
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListAsyncInvokesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
- package/package.json +4 -2
package/dist-cjs/index.js
CHANGED
|
@@ -23,9 +23,13 @@ var src_exports = {};
|
|
|
23
23
|
__export(src_exports, {
|
|
24
24
|
AccessDeniedException: () => AccessDeniedException,
|
|
25
25
|
ApplyGuardrailCommand: () => ApplyGuardrailCommand,
|
|
26
|
+
AsyncInvokeOutputDataConfig: () => AsyncInvokeOutputDataConfig,
|
|
27
|
+
AsyncInvokeStatus: () => AsyncInvokeStatus,
|
|
28
|
+
AsyncInvokeSummaryFilterSensitiveLog: () => AsyncInvokeSummaryFilterSensitiveLog,
|
|
26
29
|
BedrockRuntime: () => BedrockRuntime,
|
|
27
30
|
BedrockRuntimeClient: () => BedrockRuntimeClient,
|
|
28
31
|
BedrockRuntimeServiceException: () => BedrockRuntimeServiceException,
|
|
32
|
+
ConflictException: () => ConflictException,
|
|
29
33
|
ContentBlock: () => ContentBlock,
|
|
30
34
|
ContentBlockDelta: () => ContentBlockDelta,
|
|
31
35
|
ContentBlockStart: () => ContentBlockStart,
|
|
@@ -40,6 +44,8 @@ __export(src_exports, {
|
|
|
40
44
|
ConverseStreamResponseFilterSensitiveLog: () => ConverseStreamResponseFilterSensitiveLog,
|
|
41
45
|
DocumentFormat: () => DocumentFormat,
|
|
42
46
|
DocumentSource: () => DocumentSource,
|
|
47
|
+
GetAsyncInvokeCommand: () => GetAsyncInvokeCommand,
|
|
48
|
+
GetAsyncInvokeResponseFilterSensitiveLog: () => GetAsyncInvokeResponseFilterSensitiveLog,
|
|
43
49
|
GuardrailAction: () => GuardrailAction,
|
|
44
50
|
GuardrailContentBlock: () => GuardrailContentBlock,
|
|
45
51
|
GuardrailContentFilterConfidence: () => GuardrailContentFilterConfidence,
|
|
@@ -69,6 +75,8 @@ __export(src_exports, {
|
|
|
69
75
|
InvokeModelWithResponseStreamCommand: () => InvokeModelWithResponseStreamCommand,
|
|
70
76
|
InvokeModelWithResponseStreamRequestFilterSensitiveLog: () => InvokeModelWithResponseStreamRequestFilterSensitiveLog,
|
|
71
77
|
InvokeModelWithResponseStreamResponseFilterSensitiveLog: () => InvokeModelWithResponseStreamResponseFilterSensitiveLog,
|
|
78
|
+
ListAsyncInvokesCommand: () => ListAsyncInvokesCommand,
|
|
79
|
+
ListAsyncInvokesResponseFilterSensitiveLog: () => ListAsyncInvokesResponseFilterSensitiveLog,
|
|
72
80
|
ModelErrorException: () => ModelErrorException,
|
|
73
81
|
ModelNotReadyException: () => ModelNotReadyException,
|
|
74
82
|
ModelStreamErrorException: () => ModelStreamErrorException,
|
|
@@ -81,6 +89,10 @@ __export(src_exports, {
|
|
|
81
89
|
ResponseStreamFilterSensitiveLog: () => ResponseStreamFilterSensitiveLog,
|
|
82
90
|
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
83
91
|
ServiceUnavailableException: () => ServiceUnavailableException,
|
|
92
|
+
SortAsyncInvocationBy: () => SortAsyncInvocationBy,
|
|
93
|
+
SortOrder: () => SortOrder,
|
|
94
|
+
StartAsyncInvokeCommand: () => StartAsyncInvokeCommand,
|
|
95
|
+
StartAsyncInvokeRequestFilterSensitiveLog: () => StartAsyncInvokeRequestFilterSensitiveLog,
|
|
84
96
|
StopReason: () => StopReason,
|
|
85
97
|
SystemContentBlock: () => SystemContentBlock,
|
|
86
98
|
ThrottlingException: () => ThrottlingException,
|
|
@@ -91,7 +103,10 @@ __export(src_exports, {
|
|
|
91
103
|
ToolResultStatus: () => ToolResultStatus,
|
|
92
104
|
Trace: () => Trace,
|
|
93
105
|
ValidationException: () => ValidationException,
|
|
94
|
-
|
|
106
|
+
VideoFormat: () => VideoFormat,
|
|
107
|
+
VideoSource: () => VideoSource,
|
|
108
|
+
__Client: () => import_smithy_client.Client,
|
|
109
|
+
paginateListAsyncInvokes: () => paginateListAsyncInvokes
|
|
95
110
|
});
|
|
96
111
|
module.exports = __toCommonJS(src_exports);
|
|
97
112
|
|
|
@@ -246,6 +261,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
246
261
|
var import_core2 = require("@aws-sdk/core");
|
|
247
262
|
|
|
248
263
|
|
|
264
|
+
var import_uuid = require("uuid");
|
|
249
265
|
|
|
250
266
|
// src/models/BedrockRuntimeServiceException.ts
|
|
251
267
|
|
|
@@ -280,6 +296,145 @@ var _AccessDeniedException = class _AccessDeniedException extends BedrockRuntime
|
|
|
280
296
|
};
|
|
281
297
|
__name(_AccessDeniedException, "AccessDeniedException");
|
|
282
298
|
var AccessDeniedException = _AccessDeniedException;
|
|
299
|
+
var AsyncInvokeOutputDataConfig;
|
|
300
|
+
((AsyncInvokeOutputDataConfig3) => {
|
|
301
|
+
AsyncInvokeOutputDataConfig3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
302
|
+
if (value.s3OutputDataConfig !== void 0)
|
|
303
|
+
return visitor.s3OutputDataConfig(value.s3OutputDataConfig);
|
|
304
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
305
|
+
}, "visit");
|
|
306
|
+
})(AsyncInvokeOutputDataConfig || (AsyncInvokeOutputDataConfig = {}));
|
|
307
|
+
var AsyncInvokeStatus = {
|
|
308
|
+
COMPLETED: "Completed",
|
|
309
|
+
FAILED: "Failed",
|
|
310
|
+
IN_PROGRESS: "InProgress"
|
|
311
|
+
};
|
|
312
|
+
var _InternalServerException = class _InternalServerException extends BedrockRuntimeServiceException {
|
|
313
|
+
/**
|
|
314
|
+
* @internal
|
|
315
|
+
*/
|
|
316
|
+
constructor(opts) {
|
|
317
|
+
super({
|
|
318
|
+
name: "InternalServerException",
|
|
319
|
+
$fault: "server",
|
|
320
|
+
...opts
|
|
321
|
+
});
|
|
322
|
+
this.name = "InternalServerException";
|
|
323
|
+
this.$fault = "server";
|
|
324
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
325
|
+
}
|
|
326
|
+
};
|
|
327
|
+
__name(_InternalServerException, "InternalServerException");
|
|
328
|
+
var InternalServerException = _InternalServerException;
|
|
329
|
+
var _ThrottlingException = class _ThrottlingException extends BedrockRuntimeServiceException {
|
|
330
|
+
/**
|
|
331
|
+
* @internal
|
|
332
|
+
*/
|
|
333
|
+
constructor(opts) {
|
|
334
|
+
super({
|
|
335
|
+
name: "ThrottlingException",
|
|
336
|
+
$fault: "client",
|
|
337
|
+
...opts
|
|
338
|
+
});
|
|
339
|
+
this.name = "ThrottlingException";
|
|
340
|
+
this.$fault = "client";
|
|
341
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
342
|
+
}
|
|
343
|
+
};
|
|
344
|
+
__name(_ThrottlingException, "ThrottlingException");
|
|
345
|
+
var ThrottlingException = _ThrottlingException;
|
|
346
|
+
var _ValidationException = class _ValidationException extends BedrockRuntimeServiceException {
|
|
347
|
+
/**
|
|
348
|
+
* @internal
|
|
349
|
+
*/
|
|
350
|
+
constructor(opts) {
|
|
351
|
+
super({
|
|
352
|
+
name: "ValidationException",
|
|
353
|
+
$fault: "client",
|
|
354
|
+
...opts
|
|
355
|
+
});
|
|
356
|
+
this.name = "ValidationException";
|
|
357
|
+
this.$fault = "client";
|
|
358
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
359
|
+
}
|
|
360
|
+
};
|
|
361
|
+
__name(_ValidationException, "ValidationException");
|
|
362
|
+
var ValidationException = _ValidationException;
|
|
363
|
+
var SortAsyncInvocationBy = {
|
|
364
|
+
SUBMISSION_TIME: "SubmissionTime"
|
|
365
|
+
};
|
|
366
|
+
var SortOrder = {
|
|
367
|
+
ASCENDING: "Ascending",
|
|
368
|
+
DESCENDING: "Descending"
|
|
369
|
+
};
|
|
370
|
+
var _ConflictException = class _ConflictException extends BedrockRuntimeServiceException {
|
|
371
|
+
/**
|
|
372
|
+
* @internal
|
|
373
|
+
*/
|
|
374
|
+
constructor(opts) {
|
|
375
|
+
super({
|
|
376
|
+
name: "ConflictException",
|
|
377
|
+
$fault: "client",
|
|
378
|
+
...opts
|
|
379
|
+
});
|
|
380
|
+
this.name = "ConflictException";
|
|
381
|
+
this.$fault = "client";
|
|
382
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
383
|
+
}
|
|
384
|
+
};
|
|
385
|
+
__name(_ConflictException, "ConflictException");
|
|
386
|
+
var ConflictException = _ConflictException;
|
|
387
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends BedrockRuntimeServiceException {
|
|
388
|
+
/**
|
|
389
|
+
* @internal
|
|
390
|
+
*/
|
|
391
|
+
constructor(opts) {
|
|
392
|
+
super({
|
|
393
|
+
name: "ResourceNotFoundException",
|
|
394
|
+
$fault: "client",
|
|
395
|
+
...opts
|
|
396
|
+
});
|
|
397
|
+
this.name = "ResourceNotFoundException";
|
|
398
|
+
this.$fault = "client";
|
|
399
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
400
|
+
}
|
|
401
|
+
};
|
|
402
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
403
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
404
|
+
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends BedrockRuntimeServiceException {
|
|
405
|
+
/**
|
|
406
|
+
* @internal
|
|
407
|
+
*/
|
|
408
|
+
constructor(opts) {
|
|
409
|
+
super({
|
|
410
|
+
name: "ServiceQuotaExceededException",
|
|
411
|
+
$fault: "client",
|
|
412
|
+
...opts
|
|
413
|
+
});
|
|
414
|
+
this.name = "ServiceQuotaExceededException";
|
|
415
|
+
this.$fault = "client";
|
|
416
|
+
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
417
|
+
}
|
|
418
|
+
};
|
|
419
|
+
__name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
|
|
420
|
+
var ServiceQuotaExceededException = _ServiceQuotaExceededException;
|
|
421
|
+
var _ServiceUnavailableException = class _ServiceUnavailableException extends BedrockRuntimeServiceException {
|
|
422
|
+
/**
|
|
423
|
+
* @internal
|
|
424
|
+
*/
|
|
425
|
+
constructor(opts) {
|
|
426
|
+
super({
|
|
427
|
+
name: "ServiceUnavailableException",
|
|
428
|
+
$fault: "server",
|
|
429
|
+
...opts
|
|
430
|
+
});
|
|
431
|
+
this.name = "ServiceUnavailableException";
|
|
432
|
+
this.$fault = "server";
|
|
433
|
+
Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
|
|
434
|
+
}
|
|
435
|
+
};
|
|
436
|
+
__name(_ServiceUnavailableException, "ServiceUnavailableException");
|
|
437
|
+
var ServiceUnavailableException = _ServiceUnavailableException;
|
|
283
438
|
var GuardrailContentQualifier = {
|
|
284
439
|
GROUNDING_SOURCE: "grounding_source",
|
|
285
440
|
GUARD_CONTENT: "guard_content",
|
|
@@ -381,91 +536,6 @@ var GuardrailWordPolicyAction = {
|
|
|
381
536
|
var GuardrailManagedWordType = {
|
|
382
537
|
PROFANITY: "PROFANITY"
|
|
383
538
|
};
|
|
384
|
-
var _InternalServerException = class _InternalServerException extends BedrockRuntimeServiceException {
|
|
385
|
-
/**
|
|
386
|
-
* @internal
|
|
387
|
-
*/
|
|
388
|
-
constructor(opts) {
|
|
389
|
-
super({
|
|
390
|
-
name: "InternalServerException",
|
|
391
|
-
$fault: "server",
|
|
392
|
-
...opts
|
|
393
|
-
});
|
|
394
|
-
this.name = "InternalServerException";
|
|
395
|
-
this.$fault = "server";
|
|
396
|
-
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
397
|
-
}
|
|
398
|
-
};
|
|
399
|
-
__name(_InternalServerException, "InternalServerException");
|
|
400
|
-
var InternalServerException = _InternalServerException;
|
|
401
|
-
var _ResourceNotFoundException = class _ResourceNotFoundException extends BedrockRuntimeServiceException {
|
|
402
|
-
/**
|
|
403
|
-
* @internal
|
|
404
|
-
*/
|
|
405
|
-
constructor(opts) {
|
|
406
|
-
super({
|
|
407
|
-
name: "ResourceNotFoundException",
|
|
408
|
-
$fault: "client",
|
|
409
|
-
...opts
|
|
410
|
-
});
|
|
411
|
-
this.name = "ResourceNotFoundException";
|
|
412
|
-
this.$fault = "client";
|
|
413
|
-
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
414
|
-
}
|
|
415
|
-
};
|
|
416
|
-
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
417
|
-
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
418
|
-
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends BedrockRuntimeServiceException {
|
|
419
|
-
/**
|
|
420
|
-
* @internal
|
|
421
|
-
*/
|
|
422
|
-
constructor(opts) {
|
|
423
|
-
super({
|
|
424
|
-
name: "ServiceQuotaExceededException",
|
|
425
|
-
$fault: "client",
|
|
426
|
-
...opts
|
|
427
|
-
});
|
|
428
|
-
this.name = "ServiceQuotaExceededException";
|
|
429
|
-
this.$fault = "client";
|
|
430
|
-
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
431
|
-
}
|
|
432
|
-
};
|
|
433
|
-
__name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
|
|
434
|
-
var ServiceQuotaExceededException = _ServiceQuotaExceededException;
|
|
435
|
-
var _ThrottlingException = class _ThrottlingException extends BedrockRuntimeServiceException {
|
|
436
|
-
/**
|
|
437
|
-
* @internal
|
|
438
|
-
*/
|
|
439
|
-
constructor(opts) {
|
|
440
|
-
super({
|
|
441
|
-
name: "ThrottlingException",
|
|
442
|
-
$fault: "client",
|
|
443
|
-
...opts
|
|
444
|
-
});
|
|
445
|
-
this.name = "ThrottlingException";
|
|
446
|
-
this.$fault = "client";
|
|
447
|
-
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
448
|
-
}
|
|
449
|
-
};
|
|
450
|
-
__name(_ThrottlingException, "ThrottlingException");
|
|
451
|
-
var ThrottlingException = _ThrottlingException;
|
|
452
|
-
var _ValidationException = class _ValidationException extends BedrockRuntimeServiceException {
|
|
453
|
-
/**
|
|
454
|
-
* @internal
|
|
455
|
-
*/
|
|
456
|
-
constructor(opts) {
|
|
457
|
-
super({
|
|
458
|
-
name: "ValidationException",
|
|
459
|
-
$fault: "client",
|
|
460
|
-
...opts
|
|
461
|
-
});
|
|
462
|
-
this.name = "ValidationException";
|
|
463
|
-
this.$fault = "client";
|
|
464
|
-
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
465
|
-
}
|
|
466
|
-
};
|
|
467
|
-
__name(_ValidationException, "ValidationException");
|
|
468
|
-
var ValidationException = _ValidationException;
|
|
469
539
|
var GuardrailTrace = {
|
|
470
540
|
DISABLED: "disabled",
|
|
471
541
|
ENABLED: "enabled"
|
|
@@ -516,6 +586,27 @@ var ImageSource;
|
|
|
516
586
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
517
587
|
}, "visit");
|
|
518
588
|
})(ImageSource || (ImageSource = {}));
|
|
589
|
+
var VideoFormat = {
|
|
590
|
+
FLV: "flv",
|
|
591
|
+
MKV: "mkv",
|
|
592
|
+
MOV: "mov",
|
|
593
|
+
MP4: "mp4",
|
|
594
|
+
MPEG: "mpeg",
|
|
595
|
+
MPG: "mpg",
|
|
596
|
+
THREE_GP: "three_gp",
|
|
597
|
+
WEBM: "webm",
|
|
598
|
+
WMV: "wmv"
|
|
599
|
+
};
|
|
600
|
+
var VideoSource;
|
|
601
|
+
((VideoSource2) => {
|
|
602
|
+
VideoSource2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
603
|
+
if (value.bytes !== void 0)
|
|
604
|
+
return visitor.bytes(value.bytes);
|
|
605
|
+
if (value.s3Location !== void 0)
|
|
606
|
+
return visitor.s3Location(value.s3Location);
|
|
607
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
608
|
+
}, "visit");
|
|
609
|
+
})(VideoSource || (VideoSource = {}));
|
|
519
610
|
var ToolResultContentBlock;
|
|
520
611
|
((ToolResultContentBlock2) => {
|
|
521
612
|
ToolResultContentBlock2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
@@ -527,6 +618,8 @@ var ToolResultContentBlock;
|
|
|
527
618
|
return visitor.image(value.image);
|
|
528
619
|
if (value.document !== void 0)
|
|
529
620
|
return visitor.document(value.document);
|
|
621
|
+
if (value.video !== void 0)
|
|
622
|
+
return visitor.video(value.video);
|
|
530
623
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
531
624
|
}, "visit");
|
|
532
625
|
})(ToolResultContentBlock || (ToolResultContentBlock = {}));
|
|
@@ -543,6 +636,8 @@ var ContentBlock;
|
|
|
543
636
|
return visitor.image(value.image);
|
|
544
637
|
if (value.document !== void 0)
|
|
545
638
|
return visitor.document(value.document);
|
|
639
|
+
if (value.video !== void 0)
|
|
640
|
+
return visitor.video(value.video);
|
|
546
641
|
if (value.toolUse !== void 0)
|
|
547
642
|
return visitor.toolUse(value.toolUse);
|
|
548
643
|
if (value.toolResult !== void 0)
|
|
@@ -676,23 +771,6 @@ var _ModelTimeoutException = class _ModelTimeoutException extends BedrockRuntime
|
|
|
676
771
|
};
|
|
677
772
|
__name(_ModelTimeoutException, "ModelTimeoutException");
|
|
678
773
|
var ModelTimeoutException = _ModelTimeoutException;
|
|
679
|
-
var _ServiceUnavailableException = class _ServiceUnavailableException extends BedrockRuntimeServiceException {
|
|
680
|
-
/**
|
|
681
|
-
* @internal
|
|
682
|
-
*/
|
|
683
|
-
constructor(opts) {
|
|
684
|
-
super({
|
|
685
|
-
name: "ServiceUnavailableException",
|
|
686
|
-
$fault: "server",
|
|
687
|
-
...opts
|
|
688
|
-
});
|
|
689
|
-
this.name = "ServiceUnavailableException";
|
|
690
|
-
this.$fault = "server";
|
|
691
|
-
Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
|
|
692
|
-
}
|
|
693
|
-
};
|
|
694
|
-
__name(_ServiceUnavailableException, "ServiceUnavailableException");
|
|
695
|
-
var ServiceUnavailableException = _ServiceUnavailableException;
|
|
696
774
|
var GuardrailStreamProcessingMode = {
|
|
697
775
|
ASYNC: "async",
|
|
698
776
|
SYNC: "sync"
|
|
@@ -786,19 +864,42 @@ var ResponseStream;
|
|
|
786
864
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
787
865
|
}, "visit");
|
|
788
866
|
})(ResponseStream || (ResponseStream = {}));
|
|
867
|
+
var GetAsyncInvokeResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
868
|
+
...obj,
|
|
869
|
+
...obj.failureMessage && { failureMessage: import_smithy_client.SENSITIVE_STRING },
|
|
870
|
+
...obj.outputDataConfig && { outputDataConfig: obj.outputDataConfig }
|
|
871
|
+
}), "GetAsyncInvokeResponseFilterSensitiveLog");
|
|
872
|
+
var AsyncInvokeSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
873
|
+
...obj,
|
|
874
|
+
...obj.failureMessage && { failureMessage: import_smithy_client.SENSITIVE_STRING },
|
|
875
|
+
...obj.outputDataConfig && { outputDataConfig: obj.outputDataConfig }
|
|
876
|
+
}), "AsyncInvokeSummaryFilterSensitiveLog");
|
|
877
|
+
var ListAsyncInvokesResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
878
|
+
...obj,
|
|
879
|
+
...obj.asyncInvokeSummaries && {
|
|
880
|
+
asyncInvokeSummaries: obj.asyncInvokeSummaries.map((item) => AsyncInvokeSummaryFilterSensitiveLog(item))
|
|
881
|
+
}
|
|
882
|
+
}), "ListAsyncInvokesResponseFilterSensitiveLog");
|
|
883
|
+
var StartAsyncInvokeRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
884
|
+
...obj,
|
|
885
|
+
...obj.modelInput && { modelInput: import_smithy_client.SENSITIVE_STRING },
|
|
886
|
+
...obj.outputDataConfig && { outputDataConfig: obj.outputDataConfig }
|
|
887
|
+
}), "StartAsyncInvokeRequestFilterSensitiveLog");
|
|
789
888
|
var ConverseRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
790
889
|
...obj,
|
|
791
890
|
...obj.messages && { messages: obj.messages.map((item) => item) },
|
|
792
891
|
...obj.system && { system: obj.system.map((item) => item) },
|
|
793
892
|
...obj.toolConfig && { toolConfig: obj.toolConfig },
|
|
794
|
-
...obj.promptVariables && { promptVariables: import_smithy_client.SENSITIVE_STRING }
|
|
893
|
+
...obj.promptVariables && { promptVariables: import_smithy_client.SENSITIVE_STRING },
|
|
894
|
+
...obj.requestMetadata && { requestMetadata: import_smithy_client.SENSITIVE_STRING }
|
|
795
895
|
}), "ConverseRequestFilterSensitiveLog");
|
|
796
896
|
var ConverseStreamRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
797
897
|
...obj,
|
|
798
898
|
...obj.messages && { messages: obj.messages.map((item) => item) },
|
|
799
899
|
...obj.system && { system: obj.system.map((item) => item) },
|
|
800
900
|
...obj.toolConfig && { toolConfig: obj.toolConfig },
|
|
801
|
-
...obj.promptVariables && { promptVariables: import_smithy_client.SENSITIVE_STRING }
|
|
901
|
+
...obj.promptVariables && { promptVariables: import_smithy_client.SENSITIVE_STRING },
|
|
902
|
+
...obj.requestMetadata && { requestMetadata: import_smithy_client.SENSITIVE_STRING }
|
|
802
903
|
}), "ConverseStreamRequestFilterSensitiveLog");
|
|
803
904
|
var ConverseStreamOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
804
905
|
if (obj.messageStart !== void 0)
|
|
@@ -905,6 +1006,7 @@ var se_ConverseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
905
1006
|
messages: (_) => se_Messages(_, context),
|
|
906
1007
|
performanceConfig: (_) => (0, import_smithy_client._json)(_),
|
|
907
1008
|
promptVariables: (_) => (0, import_smithy_client._json)(_),
|
|
1009
|
+
requestMetadata: (_) => (0, import_smithy_client._json)(_),
|
|
908
1010
|
system: (_) => (0, import_smithy_client._json)(_),
|
|
909
1011
|
toolConfig: (_) => se_ToolConfiguration(_, context)
|
|
910
1012
|
})
|
|
@@ -929,6 +1031,7 @@ var se_ConverseStreamCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
929
1031
|
messages: (_) => se_Messages(_, context),
|
|
930
1032
|
performanceConfig: (_) => (0, import_smithy_client._json)(_),
|
|
931
1033
|
promptVariables: (_) => (0, import_smithy_client._json)(_),
|
|
1034
|
+
requestMetadata: (_) => (0, import_smithy_client._json)(_),
|
|
932
1035
|
system: (_) => (0, import_smithy_client._json)(_),
|
|
933
1036
|
toolConfig: (_) => se_ToolConfiguration(_, context)
|
|
934
1037
|
})
|
|
@@ -936,6 +1039,15 @@ var se_ConverseStreamCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
936
1039
|
b.m("POST").h(headers).b(body);
|
|
937
1040
|
return b.build();
|
|
938
1041
|
}, "se_ConverseStreamCommand");
|
|
1042
|
+
var se_GetAsyncInvokeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1043
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1044
|
+
const headers = {};
|
|
1045
|
+
b.bp("/async-invoke/{invocationArn}");
|
|
1046
|
+
b.p("invocationArn", () => input.invocationArn, "{invocationArn}", false);
|
|
1047
|
+
let body;
|
|
1048
|
+
b.m("GET").h(headers).b(body);
|
|
1049
|
+
return b.build();
|
|
1050
|
+
}, "se_GetAsyncInvokeCommand");
|
|
939
1051
|
var se_InvokeModelCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
940
1052
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
941
1053
|
const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
|
|
@@ -974,6 +1086,42 @@ var se_InvokeModelWithResponseStreamCommand = /* @__PURE__ */ __name(async (inpu
|
|
|
974
1086
|
b.m("POST").h(headers).b(body);
|
|
975
1087
|
return b.build();
|
|
976
1088
|
}, "se_InvokeModelWithResponseStreamCommand");
|
|
1089
|
+
var se_ListAsyncInvokesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1090
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1091
|
+
const headers = {};
|
|
1092
|
+
b.bp("/async-invoke");
|
|
1093
|
+
const query = (0, import_smithy_client.map)({
|
|
1094
|
+
[_sTA]: [() => input.submitTimeAfter !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_sTA]).toString()],
|
|
1095
|
+
[_sTB]: [() => input.submitTimeBefore !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_sTB]).toString()],
|
|
1096
|
+
[_sE]: [, input[_sE]],
|
|
1097
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1098
|
+
[_nT]: [, input[_nT]],
|
|
1099
|
+
[_sB]: [, input[_sB]],
|
|
1100
|
+
[_sO]: [, input[_sO]]
|
|
1101
|
+
});
|
|
1102
|
+
let body;
|
|
1103
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1104
|
+
return b.build();
|
|
1105
|
+
}, "se_ListAsyncInvokesCommand");
|
|
1106
|
+
var se_StartAsyncInvokeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1107
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1108
|
+
const headers = {
|
|
1109
|
+
"content-type": "application/json"
|
|
1110
|
+
};
|
|
1111
|
+
b.bp("/async-invoke");
|
|
1112
|
+
let body;
|
|
1113
|
+
body = JSON.stringify(
|
|
1114
|
+
(0, import_smithy_client.take)(input, {
|
|
1115
|
+
clientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
1116
|
+
modelId: [],
|
|
1117
|
+
modelInput: (_) => se_ModelInputPayload(_, context),
|
|
1118
|
+
outputDataConfig: (_) => (0, import_smithy_client._json)(_),
|
|
1119
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
1120
|
+
})
|
|
1121
|
+
);
|
|
1122
|
+
b.m("POST").h(headers).b(body);
|
|
1123
|
+
return b.build();
|
|
1124
|
+
}, "se_StartAsyncInvokeCommand");
|
|
977
1125
|
var de_ApplyGuardrailCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
978
1126
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
979
1127
|
return de_CommandError(output, context);
|
|
@@ -1023,6 +1171,28 @@ var de_ConverseStreamCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1023
1171
|
contents.stream = de_ConverseStreamOutput(data, context);
|
|
1024
1172
|
return contents;
|
|
1025
1173
|
}, "de_ConverseStreamCommand");
|
|
1174
|
+
var de_GetAsyncInvokeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1175
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1176
|
+
return de_CommandError(output, context);
|
|
1177
|
+
}
|
|
1178
|
+
const contents = (0, import_smithy_client.map)({
|
|
1179
|
+
$metadata: deserializeMetadata(output)
|
|
1180
|
+
});
|
|
1181
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1182
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1183
|
+
clientRequestToken: import_smithy_client.expectString,
|
|
1184
|
+
endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1185
|
+
failureMessage: import_smithy_client.expectString,
|
|
1186
|
+
invocationArn: import_smithy_client.expectString,
|
|
1187
|
+
lastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1188
|
+
modelArn: import_smithy_client.expectString,
|
|
1189
|
+
outputDataConfig: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
1190
|
+
status: import_smithy_client.expectString,
|
|
1191
|
+
submitTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
1192
|
+
});
|
|
1193
|
+
Object.assign(contents, doc);
|
|
1194
|
+
return contents;
|
|
1195
|
+
}, "de_GetAsyncInvokeCommand");
|
|
1026
1196
|
var de_InvokeModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1027
1197
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1028
1198
|
return de_CommandError(output, context);
|
|
@@ -1049,6 +1219,35 @@ var de_InvokeModelWithResponseStreamCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1049
1219
|
contents.body = de_ResponseStream(data, context);
|
|
1050
1220
|
return contents;
|
|
1051
1221
|
}, "de_InvokeModelWithResponseStreamCommand");
|
|
1222
|
+
var de_ListAsyncInvokesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1223
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1224
|
+
return de_CommandError(output, context);
|
|
1225
|
+
}
|
|
1226
|
+
const contents = (0, import_smithy_client.map)({
|
|
1227
|
+
$metadata: deserializeMetadata(output)
|
|
1228
|
+
});
|
|
1229
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1230
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1231
|
+
asyncInvokeSummaries: (_) => de_AsyncInvokeSummaries(_, context),
|
|
1232
|
+
nextToken: import_smithy_client.expectString
|
|
1233
|
+
});
|
|
1234
|
+
Object.assign(contents, doc);
|
|
1235
|
+
return contents;
|
|
1236
|
+
}, "de_ListAsyncInvokesCommand");
|
|
1237
|
+
var de_StartAsyncInvokeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1238
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1239
|
+
return de_CommandError(output, context);
|
|
1240
|
+
}
|
|
1241
|
+
const contents = (0, import_smithy_client.map)({
|
|
1242
|
+
$metadata: deserializeMetadata(output)
|
|
1243
|
+
});
|
|
1244
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1245
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1246
|
+
invocationArn: import_smithy_client.expectString
|
|
1247
|
+
});
|
|
1248
|
+
Object.assign(contents, doc);
|
|
1249
|
+
return contents;
|
|
1250
|
+
}, "de_StartAsyncInvokeCommand");
|
|
1052
1251
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1053
1252
|
const parsedOutput = {
|
|
1054
1253
|
...output,
|
|
@@ -1089,6 +1288,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1089
1288
|
case "ModelStreamErrorException":
|
|
1090
1289
|
case "com.amazonaws.bedrockruntime#ModelStreamErrorException":
|
|
1091
1290
|
throw await de_ModelStreamErrorExceptionRes(parsedOutput, context);
|
|
1291
|
+
case "ConflictException":
|
|
1292
|
+
case "com.amazonaws.bedrockruntime#ConflictException":
|
|
1293
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1092
1294
|
default:
|
|
1093
1295
|
const parsedBody = parsedOutput.body;
|
|
1094
1296
|
return throwDefaultError({
|
|
@@ -1112,6 +1314,19 @@ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, co
|
|
|
1112
1314
|
});
|
|
1113
1315
|
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1114
1316
|
}, "de_AccessDeniedExceptionRes");
|
|
1317
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1318
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1319
|
+
const data = parsedOutput.body;
|
|
1320
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1321
|
+
message: import_smithy_client.expectString
|
|
1322
|
+
});
|
|
1323
|
+
Object.assign(contents, doc);
|
|
1324
|
+
const exception = new ConflictException({
|
|
1325
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1326
|
+
...contents
|
|
1327
|
+
});
|
|
1328
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1329
|
+
}, "de_ConflictExceptionRes");
|
|
1115
1330
|
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1116
1331
|
const contents = (0, import_smithy_client.map)({});
|
|
1117
1332
|
const data = parsedOutput.body;
|
|
@@ -1450,6 +1665,7 @@ var se_ContentBlock = /* @__PURE__ */ __name((input, context) => {
|
|
|
1450
1665
|
text: (value) => ({ text: value }),
|
|
1451
1666
|
toolResult: (value) => ({ toolResult: se_ToolResultBlock(value, context) }),
|
|
1452
1667
|
toolUse: (value) => ({ toolUse: se_ToolUseBlock(value, context) }),
|
|
1668
|
+
video: (value) => ({ video: se_VideoBlock(value, context) }),
|
|
1453
1669
|
_: (name, value) => ({ name: value })
|
|
1454
1670
|
});
|
|
1455
1671
|
}, "se_ContentBlock");
|
|
@@ -1502,6 +1718,9 @@ var se_Messages = /* @__PURE__ */ __name((input, context) => {
|
|
|
1502
1718
|
return se_Message(entry, context);
|
|
1503
1719
|
});
|
|
1504
1720
|
}, "se_Messages");
|
|
1721
|
+
var se_ModelInputPayload = /* @__PURE__ */ __name((input, context) => {
|
|
1722
|
+
return input;
|
|
1723
|
+
}, "se_ModelInputPayload");
|
|
1505
1724
|
var se_Tool = /* @__PURE__ */ __name((input, context) => {
|
|
1506
1725
|
return Tool.visit(input, {
|
|
1507
1726
|
toolSpec: (value) => ({ toolSpec: se_ToolSpecification(value, context) }),
|
|
@@ -1533,6 +1752,7 @@ var se_ToolResultContentBlock = /* @__PURE__ */ __name((input, context) => {
|
|
|
1533
1752
|
image: (value) => ({ image: se_ImageBlock(value, context) }),
|
|
1534
1753
|
json: (value) => ({ json: se_Document(value, context) }),
|
|
1535
1754
|
text: (value) => ({ text: value }),
|
|
1755
|
+
video: (value) => ({ video: se_VideoBlock(value, context) }),
|
|
1536
1756
|
_: (name, value) => ({ name: value })
|
|
1537
1757
|
});
|
|
1538
1758
|
}, "se_ToolResultContentBlock");
|
|
@@ -1560,9 +1780,41 @@ var se_ToolUseBlock = /* @__PURE__ */ __name((input, context) => {
|
|
|
1560
1780
|
toolUseId: []
|
|
1561
1781
|
});
|
|
1562
1782
|
}, "se_ToolUseBlock");
|
|
1783
|
+
var se_VideoBlock = /* @__PURE__ */ __name((input, context) => {
|
|
1784
|
+
return (0, import_smithy_client.take)(input, {
|
|
1785
|
+
format: [],
|
|
1786
|
+
source: (_) => se_VideoSource(_, context)
|
|
1787
|
+
});
|
|
1788
|
+
}, "se_VideoBlock");
|
|
1789
|
+
var se_VideoSource = /* @__PURE__ */ __name((input, context) => {
|
|
1790
|
+
return VideoSource.visit(input, {
|
|
1791
|
+
bytes: (value) => ({ bytes: context.base64Encoder(value) }),
|
|
1792
|
+
s3Location: (value) => ({ s3Location: (0, import_smithy_client._json)(value) }),
|
|
1793
|
+
_: (name, value) => ({ name: value })
|
|
1794
|
+
});
|
|
1795
|
+
}, "se_VideoSource");
|
|
1563
1796
|
var se_Document = /* @__PURE__ */ __name((input, context) => {
|
|
1564
1797
|
return input;
|
|
1565
1798
|
}, "se_Document");
|
|
1799
|
+
var de_AsyncInvokeSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
1800
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1801
|
+
return de_AsyncInvokeSummary(entry, context);
|
|
1802
|
+
});
|
|
1803
|
+
return retVal;
|
|
1804
|
+
}, "de_AsyncInvokeSummaries");
|
|
1805
|
+
var de_AsyncInvokeSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1806
|
+
return (0, import_smithy_client.take)(output, {
|
|
1807
|
+
clientRequestToken: import_smithy_client.expectString,
|
|
1808
|
+
endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1809
|
+
failureMessage: import_smithy_client.expectString,
|
|
1810
|
+
invocationArn: import_smithy_client.expectString,
|
|
1811
|
+
lastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1812
|
+
modelArn: import_smithy_client.expectString,
|
|
1813
|
+
outputDataConfig: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
1814
|
+
status: import_smithy_client.expectString,
|
|
1815
|
+
submitTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
1816
|
+
});
|
|
1817
|
+
}, "de_AsyncInvokeSummary");
|
|
1566
1818
|
var de_ContentBlock = /* @__PURE__ */ __name((output, context) => {
|
|
1567
1819
|
if (output.document != null) {
|
|
1568
1820
|
return {
|
|
@@ -1592,6 +1844,11 @@ var de_ContentBlock = /* @__PURE__ */ __name((output, context) => {
|
|
|
1592
1844
|
toolUse: de_ToolUseBlock(output.toolUse, context)
|
|
1593
1845
|
};
|
|
1594
1846
|
}
|
|
1847
|
+
if (output.video != null) {
|
|
1848
|
+
return {
|
|
1849
|
+
video: de_VideoBlock(output.video, context)
|
|
1850
|
+
};
|
|
1851
|
+
}
|
|
1595
1852
|
return { $unknown: Object.entries(output)[0] };
|
|
1596
1853
|
}, "de_ContentBlock");
|
|
1597
1854
|
var de_ContentBlocks = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -1758,6 +2015,11 @@ var de_ToolResultContentBlock = /* @__PURE__ */ __name((output, context) => {
|
|
|
1758
2015
|
if ((0, import_smithy_client.expectString)(output.text) !== void 0) {
|
|
1759
2016
|
return { text: (0, import_smithy_client.expectString)(output.text) };
|
|
1760
2017
|
}
|
|
2018
|
+
if (output.video != null) {
|
|
2019
|
+
return {
|
|
2020
|
+
video: de_VideoBlock(output.video, context)
|
|
2021
|
+
};
|
|
2022
|
+
}
|
|
1761
2023
|
return { $unknown: Object.entries(output)[0] };
|
|
1762
2024
|
}, "de_ToolResultContentBlock");
|
|
1763
2025
|
var de_ToolResultContentBlocks = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -1773,6 +2035,25 @@ var de_ToolUseBlock = /* @__PURE__ */ __name((output, context) => {
|
|
|
1773
2035
|
toolUseId: import_smithy_client.expectString
|
|
1774
2036
|
});
|
|
1775
2037
|
}, "de_ToolUseBlock");
|
|
2038
|
+
var de_VideoBlock = /* @__PURE__ */ __name((output, context) => {
|
|
2039
|
+
return (0, import_smithy_client.take)(output, {
|
|
2040
|
+
format: import_smithy_client.expectString,
|
|
2041
|
+
source: (_) => de_VideoSource((0, import_core2.awsExpectUnion)(_), context)
|
|
2042
|
+
});
|
|
2043
|
+
}, "de_VideoBlock");
|
|
2044
|
+
var de_VideoSource = /* @__PURE__ */ __name((output, context) => {
|
|
2045
|
+
if (output.bytes != null) {
|
|
2046
|
+
return {
|
|
2047
|
+
bytes: context.base64Decoder(output.bytes)
|
|
2048
|
+
};
|
|
2049
|
+
}
|
|
2050
|
+
if (output.s3Location != null) {
|
|
2051
|
+
return {
|
|
2052
|
+
s3Location: (0, import_smithy_client._json)(output.s3Location)
|
|
2053
|
+
};
|
|
2054
|
+
}
|
|
2055
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2056
|
+
}, "de_VideoSource");
|
|
1776
2057
|
var de_Document = /* @__PURE__ */ __name((output, context) => {
|
|
1777
2058
|
return output;
|
|
1778
2059
|
}, "de_Document");
|
|
@@ -1787,7 +2068,14 @@ var _cT = "contentType";
|
|
|
1787
2068
|
var _ct = "content-type";
|
|
1788
2069
|
var _gI = "guardrailIdentifier";
|
|
1789
2070
|
var _gV = "guardrailVersion";
|
|
2071
|
+
var _mR = "maxResults";
|
|
2072
|
+
var _nT = "nextToken";
|
|
1790
2073
|
var _pCL = "performanceConfigLatency";
|
|
2074
|
+
var _sB = "sortBy";
|
|
2075
|
+
var _sE = "statusEquals";
|
|
2076
|
+
var _sO = "sortOrder";
|
|
2077
|
+
var _sTA = "submitTimeAfter";
|
|
2078
|
+
var _sTB = "submitTimeBefore";
|
|
1791
2079
|
var _t = "trace";
|
|
1792
2080
|
var _xaba = "x-amzn-bedrock-accept";
|
|
1793
2081
|
var _xabct = "x-amzn-bedrock-content-type";
|
|
@@ -1842,6 +2130,20 @@ var _ConverseStreamCommand = class _ConverseStreamCommand extends import_smithy_
|
|
|
1842
2130
|
__name(_ConverseStreamCommand, "ConverseStreamCommand");
|
|
1843
2131
|
var ConverseStreamCommand = _ConverseStreamCommand;
|
|
1844
2132
|
|
|
2133
|
+
// src/commands/GetAsyncInvokeCommand.ts
|
|
2134
|
+
|
|
2135
|
+
|
|
2136
|
+
|
|
2137
|
+
var _GetAsyncInvokeCommand = class _GetAsyncInvokeCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
2138
|
+
return [
|
|
2139
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2140
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2141
|
+
];
|
|
2142
|
+
}).s("AmazonBedrockFrontendService", "GetAsyncInvoke", {}).n("BedrockRuntimeClient", "GetAsyncInvokeCommand").f(void 0, GetAsyncInvokeResponseFilterSensitiveLog).ser(se_GetAsyncInvokeCommand).de(de_GetAsyncInvokeCommand).build() {
|
|
2143
|
+
};
|
|
2144
|
+
__name(_GetAsyncInvokeCommand, "GetAsyncInvokeCommand");
|
|
2145
|
+
var GetAsyncInvokeCommand = _GetAsyncInvokeCommand;
|
|
2146
|
+
|
|
1845
2147
|
// src/commands/InvokeModelCommand.ts
|
|
1846
2148
|
|
|
1847
2149
|
|
|
@@ -1877,19 +2179,54 @@ var _InvokeModelWithResponseStreamCommand = class _InvokeModelWithResponseStream
|
|
|
1877
2179
|
__name(_InvokeModelWithResponseStreamCommand, "InvokeModelWithResponseStreamCommand");
|
|
1878
2180
|
var InvokeModelWithResponseStreamCommand = _InvokeModelWithResponseStreamCommand;
|
|
1879
2181
|
|
|
2182
|
+
// src/commands/ListAsyncInvokesCommand.ts
|
|
2183
|
+
|
|
2184
|
+
|
|
2185
|
+
|
|
2186
|
+
var _ListAsyncInvokesCommand = class _ListAsyncInvokesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
2187
|
+
return [
|
|
2188
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2189
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2190
|
+
];
|
|
2191
|
+
}).s("AmazonBedrockFrontendService", "ListAsyncInvokes", {}).n("BedrockRuntimeClient", "ListAsyncInvokesCommand").f(void 0, ListAsyncInvokesResponseFilterSensitiveLog).ser(se_ListAsyncInvokesCommand).de(de_ListAsyncInvokesCommand).build() {
|
|
2192
|
+
};
|
|
2193
|
+
__name(_ListAsyncInvokesCommand, "ListAsyncInvokesCommand");
|
|
2194
|
+
var ListAsyncInvokesCommand = _ListAsyncInvokesCommand;
|
|
2195
|
+
|
|
2196
|
+
// src/commands/StartAsyncInvokeCommand.ts
|
|
2197
|
+
|
|
2198
|
+
|
|
2199
|
+
|
|
2200
|
+
var _StartAsyncInvokeCommand = class _StartAsyncInvokeCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
2201
|
+
return [
|
|
2202
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2203
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2204
|
+
];
|
|
2205
|
+
}).s("AmazonBedrockFrontendService", "StartAsyncInvoke", {}).n("BedrockRuntimeClient", "StartAsyncInvokeCommand").f(StartAsyncInvokeRequestFilterSensitiveLog, void 0).ser(se_StartAsyncInvokeCommand).de(de_StartAsyncInvokeCommand).build() {
|
|
2206
|
+
};
|
|
2207
|
+
__name(_StartAsyncInvokeCommand, "StartAsyncInvokeCommand");
|
|
2208
|
+
var StartAsyncInvokeCommand = _StartAsyncInvokeCommand;
|
|
2209
|
+
|
|
1880
2210
|
// src/BedrockRuntime.ts
|
|
1881
2211
|
var commands = {
|
|
1882
2212
|
ApplyGuardrailCommand,
|
|
1883
2213
|
ConverseCommand,
|
|
1884
2214
|
ConverseStreamCommand,
|
|
2215
|
+
GetAsyncInvokeCommand,
|
|
1885
2216
|
InvokeModelCommand,
|
|
1886
|
-
InvokeModelWithResponseStreamCommand
|
|
2217
|
+
InvokeModelWithResponseStreamCommand,
|
|
2218
|
+
ListAsyncInvokesCommand,
|
|
2219
|
+
StartAsyncInvokeCommand
|
|
1887
2220
|
};
|
|
1888
2221
|
var _BedrockRuntime = class _BedrockRuntime extends BedrockRuntimeClient {
|
|
1889
2222
|
};
|
|
1890
2223
|
__name(_BedrockRuntime, "BedrockRuntime");
|
|
1891
2224
|
var BedrockRuntime = _BedrockRuntime;
|
|
1892
2225
|
(0, import_smithy_client.createAggregatedClient)(commands, BedrockRuntime);
|
|
2226
|
+
|
|
2227
|
+
// src/pagination/ListAsyncInvokesPaginator.ts
|
|
2228
|
+
|
|
2229
|
+
var paginateListAsyncInvokes = (0, import_core.createPaginator)(BedrockRuntimeClient, ListAsyncInvokesCommand, "nextToken", "nextToken", "maxResults");
|
|
1893
2230
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1894
2231
|
|
|
1895
2232
|
0 && (module.exports = {
|
|
@@ -1901,9 +2238,24 @@ var BedrockRuntime = _BedrockRuntime;
|
|
|
1901
2238
|
ApplyGuardrailCommand,
|
|
1902
2239
|
ConverseCommand,
|
|
1903
2240
|
ConverseStreamCommand,
|
|
2241
|
+
GetAsyncInvokeCommand,
|
|
1904
2242
|
InvokeModelCommand,
|
|
1905
2243
|
InvokeModelWithResponseStreamCommand,
|
|
2244
|
+
ListAsyncInvokesCommand,
|
|
2245
|
+
StartAsyncInvokeCommand,
|
|
2246
|
+
paginateListAsyncInvokes,
|
|
1906
2247
|
AccessDeniedException,
|
|
2248
|
+
AsyncInvokeOutputDataConfig,
|
|
2249
|
+
AsyncInvokeStatus,
|
|
2250
|
+
InternalServerException,
|
|
2251
|
+
ThrottlingException,
|
|
2252
|
+
ValidationException,
|
|
2253
|
+
SortAsyncInvocationBy,
|
|
2254
|
+
SortOrder,
|
|
2255
|
+
ConflictException,
|
|
2256
|
+
ResourceNotFoundException,
|
|
2257
|
+
ServiceQuotaExceededException,
|
|
2258
|
+
ServiceUnavailableException,
|
|
1907
2259
|
GuardrailContentQualifier,
|
|
1908
2260
|
GuardrailContentBlock,
|
|
1909
2261
|
GuardrailContentSource,
|
|
@@ -1920,11 +2272,6 @@ var BedrockRuntime = _BedrockRuntime;
|
|
|
1920
2272
|
GuardrailTopicType,
|
|
1921
2273
|
GuardrailWordPolicyAction,
|
|
1922
2274
|
GuardrailManagedWordType,
|
|
1923
|
-
InternalServerException,
|
|
1924
|
-
ResourceNotFoundException,
|
|
1925
|
-
ServiceQuotaExceededException,
|
|
1926
|
-
ThrottlingException,
|
|
1927
|
-
ValidationException,
|
|
1928
2275
|
GuardrailTrace,
|
|
1929
2276
|
DocumentFormat,
|
|
1930
2277
|
DocumentSource,
|
|
@@ -1932,6 +2279,8 @@ var BedrockRuntime = _BedrockRuntime;
|
|
|
1932
2279
|
GuardrailConverseContentBlock,
|
|
1933
2280
|
ImageFormat,
|
|
1934
2281
|
ImageSource,
|
|
2282
|
+
VideoFormat,
|
|
2283
|
+
VideoSource,
|
|
1935
2284
|
ToolResultContentBlock,
|
|
1936
2285
|
ToolResultStatus,
|
|
1937
2286
|
ContentBlock,
|
|
@@ -1947,7 +2296,6 @@ var BedrockRuntime = _BedrockRuntime;
|
|
|
1947
2296
|
ModelErrorException,
|
|
1948
2297
|
ModelNotReadyException,
|
|
1949
2298
|
ModelTimeoutException,
|
|
1950
|
-
ServiceUnavailableException,
|
|
1951
2299
|
GuardrailStreamProcessingMode,
|
|
1952
2300
|
ContentBlockDelta,
|
|
1953
2301
|
ContentBlockStart,
|
|
@@ -1955,6 +2303,10 @@ var BedrockRuntime = _BedrockRuntime;
|
|
|
1955
2303
|
ConverseStreamOutput,
|
|
1956
2304
|
Trace,
|
|
1957
2305
|
ResponseStream,
|
|
2306
|
+
GetAsyncInvokeResponseFilterSensitiveLog,
|
|
2307
|
+
AsyncInvokeSummaryFilterSensitiveLog,
|
|
2308
|
+
ListAsyncInvokesResponseFilterSensitiveLog,
|
|
2309
|
+
StartAsyncInvokeRequestFilterSensitiveLog,
|
|
1958
2310
|
ConverseRequestFilterSensitiveLog,
|
|
1959
2311
|
ConverseStreamRequestFilterSensitiveLog,
|
|
1960
2312
|
ConverseStreamOutputFilterSensitiveLog,
|