@aws-sdk/client-bedrock-runtime 3.699.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.
Files changed (43) hide show
  1. package/README.md +31 -7
  2. package/dist-cjs/index.js +484 -116
  3. package/dist-es/BedrockRuntime.js +6 -0
  4. package/dist-es/commands/GetAsyncInvokeCommand.js +23 -0
  5. package/dist-es/commands/ListAsyncInvokesCommand.js +23 -0
  6. package/dist-es/commands/StartAsyncInvokeCommand.js +23 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/index.js +1 -0
  9. package/dist-es/models/models_0.js +156 -72
  10. package/dist-es/pagination/Interfaces.js +1 -0
  11. package/dist-es/pagination/ListAsyncInvokesPaginator.js +4 -0
  12. package/dist-es/pagination/index.js +2 -0
  13. package/dist-es/protocols/Aws_restJson1.js +200 -2
  14. package/dist-types/BedrockRuntime.d.ts +22 -0
  15. package/dist-types/BedrockRuntimeClient.d.ts +5 -2
  16. package/dist-types/commands/ApplyGuardrailCommand.d.ts +12 -5
  17. package/dist-types/commands/ConverseCommand.d.ts +73 -9
  18. package/dist-types/commands/ConverseStreamCommand.d.ts +53 -9
  19. package/dist-types/commands/GetAsyncInvokeCommand.d.ts +101 -0
  20. package/dist-types/commands/InvokeModelCommand.d.ts +26 -9
  21. package/dist-types/commands/InvokeModelWithResponseStreamCommand.d.ts +26 -9
  22. package/dist-types/commands/ListAsyncInvokesCommand.d.ts +112 -0
  23. package/dist-types/commands/StartAsyncInvokeCommand.d.ts +124 -0
  24. package/dist-types/commands/index.d.ts +3 -0
  25. package/dist-types/index.d.ts +1 -0
  26. package/dist-types/models/models_0.d.ts +652 -97
  27. package/dist-types/pagination/Interfaces.d.ts +8 -0
  28. package/dist-types/pagination/ListAsyncInvokesPaginator.d.ts +7 -0
  29. package/dist-types/pagination/index.d.ts +2 -0
  30. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  31. package/dist-types/ts3.4/BedrockRuntime.d.ts +52 -0
  32. package/dist-types/ts3.4/BedrockRuntimeClient.d.ts +20 -2
  33. package/dist-types/ts3.4/commands/GetAsyncInvokeCommand.d.ts +50 -0
  34. package/dist-types/ts3.4/commands/ListAsyncInvokesCommand.d.ts +50 -0
  35. package/dist-types/ts3.4/commands/StartAsyncInvokeCommand.d.ts +50 -0
  36. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  37. package/dist-types/ts3.4/index.d.ts +1 -0
  38. package/dist-types/ts3.4/models/models_0.d.ts +254 -42
  39. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  40. package/dist-types/ts3.4/pagination/ListAsyncInvokesPaginator.d.ts +11 -0
  41. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  42. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  43. 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,17 +75,24 @@ __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,
75
83
  ModelTimeoutException: () => ModelTimeoutException,
76
84
  PayloadPartFilterSensitiveLog: () => PayloadPartFilterSensitiveLog,
85
+ PerformanceConfigLatency: () => PerformanceConfigLatency,
77
86
  PromptVariableValues: () => PromptVariableValues,
78
87
  ResourceNotFoundException: () => ResourceNotFoundException,
79
88
  ResponseStream: () => ResponseStream,
80
89
  ResponseStreamFilterSensitiveLog: () => ResponseStreamFilterSensitiveLog,
81
90
  ServiceQuotaExceededException: () => ServiceQuotaExceededException,
82
91
  ServiceUnavailableException: () => ServiceUnavailableException,
92
+ SortAsyncInvocationBy: () => SortAsyncInvocationBy,
93
+ SortOrder: () => SortOrder,
94
+ StartAsyncInvokeCommand: () => StartAsyncInvokeCommand,
95
+ StartAsyncInvokeRequestFilterSensitiveLog: () => StartAsyncInvokeRequestFilterSensitiveLog,
83
96
  StopReason: () => StopReason,
84
97
  SystemContentBlock: () => SystemContentBlock,
85
98
  ThrottlingException: () => ThrottlingException,
@@ -90,7 +103,10 @@ __export(src_exports, {
90
103
  ToolResultStatus: () => ToolResultStatus,
91
104
  Trace: () => Trace,
92
105
  ValidationException: () => ValidationException,
93
- __Client: () => import_smithy_client.Client
106
+ VideoFormat: () => VideoFormat,
107
+ VideoSource: () => VideoSource,
108
+ __Client: () => import_smithy_client.Client,
109
+ paginateListAsyncInvokes: () => paginateListAsyncInvokes
94
110
  });
95
111
  module.exports = __toCommonJS(src_exports);
96
112
 
@@ -245,6 +261,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
245
261
  var import_core2 = require("@aws-sdk/core");
246
262
 
247
263
 
264
+ var import_uuid = require("uuid");
248
265
 
249
266
  // src/models/BedrockRuntimeServiceException.ts
250
267
 
@@ -279,6 +296,145 @@ var _AccessDeniedException = class _AccessDeniedException extends BedrockRuntime
279
296
  };
280
297
  __name(_AccessDeniedException, "AccessDeniedException");
281
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;
282
438
  var GuardrailContentQualifier = {
283
439
  GROUNDING_SOURCE: "grounding_source",
284
440
  GUARD_CONTENT: "guard_content",
@@ -380,91 +536,6 @@ var GuardrailWordPolicyAction = {
380
536
  var GuardrailManagedWordType = {
381
537
  PROFANITY: "PROFANITY"
382
538
  };
383
- var _InternalServerException = class _InternalServerException extends BedrockRuntimeServiceException {
384
- /**
385
- * @internal
386
- */
387
- constructor(opts) {
388
- super({
389
- name: "InternalServerException",
390
- $fault: "server",
391
- ...opts
392
- });
393
- this.name = "InternalServerException";
394
- this.$fault = "server";
395
- Object.setPrototypeOf(this, _InternalServerException.prototype);
396
- }
397
- };
398
- __name(_InternalServerException, "InternalServerException");
399
- var InternalServerException = _InternalServerException;
400
- var _ResourceNotFoundException = class _ResourceNotFoundException extends BedrockRuntimeServiceException {
401
- /**
402
- * @internal
403
- */
404
- constructor(opts) {
405
- super({
406
- name: "ResourceNotFoundException",
407
- $fault: "client",
408
- ...opts
409
- });
410
- this.name = "ResourceNotFoundException";
411
- this.$fault = "client";
412
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
413
- }
414
- };
415
- __name(_ResourceNotFoundException, "ResourceNotFoundException");
416
- var ResourceNotFoundException = _ResourceNotFoundException;
417
- var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends BedrockRuntimeServiceException {
418
- /**
419
- * @internal
420
- */
421
- constructor(opts) {
422
- super({
423
- name: "ServiceQuotaExceededException",
424
- $fault: "client",
425
- ...opts
426
- });
427
- this.name = "ServiceQuotaExceededException";
428
- this.$fault = "client";
429
- Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
430
- }
431
- };
432
- __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
433
- var ServiceQuotaExceededException = _ServiceQuotaExceededException;
434
- var _ThrottlingException = class _ThrottlingException extends BedrockRuntimeServiceException {
435
- /**
436
- * @internal
437
- */
438
- constructor(opts) {
439
- super({
440
- name: "ThrottlingException",
441
- $fault: "client",
442
- ...opts
443
- });
444
- this.name = "ThrottlingException";
445
- this.$fault = "client";
446
- Object.setPrototypeOf(this, _ThrottlingException.prototype);
447
- }
448
- };
449
- __name(_ThrottlingException, "ThrottlingException");
450
- var ThrottlingException = _ThrottlingException;
451
- var _ValidationException = class _ValidationException extends BedrockRuntimeServiceException {
452
- /**
453
- * @internal
454
- */
455
- constructor(opts) {
456
- super({
457
- name: "ValidationException",
458
- $fault: "client",
459
- ...opts
460
- });
461
- this.name = "ValidationException";
462
- this.$fault = "client";
463
- Object.setPrototypeOf(this, _ValidationException.prototype);
464
- }
465
- };
466
- __name(_ValidationException, "ValidationException");
467
- var ValidationException = _ValidationException;
468
539
  var GuardrailTrace = {
469
540
  DISABLED: "disabled",
470
541
  ENABLED: "enabled"
@@ -515,6 +586,27 @@ var ImageSource;
515
586
  return visitor._(value.$unknown[0], value.$unknown[1]);
516
587
  }, "visit");
517
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 = {}));
518
610
  var ToolResultContentBlock;
519
611
  ((ToolResultContentBlock2) => {
520
612
  ToolResultContentBlock2.visit = /* @__PURE__ */ __name((value, visitor) => {
@@ -526,6 +618,8 @@ var ToolResultContentBlock;
526
618
  return visitor.image(value.image);
527
619
  if (value.document !== void 0)
528
620
  return visitor.document(value.document);
621
+ if (value.video !== void 0)
622
+ return visitor.video(value.video);
529
623
  return visitor._(value.$unknown[0], value.$unknown[1]);
530
624
  }, "visit");
531
625
  })(ToolResultContentBlock || (ToolResultContentBlock = {}));
@@ -542,6 +636,8 @@ var ContentBlock;
542
636
  return visitor.image(value.image);
543
637
  if (value.document !== void 0)
544
638
  return visitor.document(value.document);
639
+ if (value.video !== void 0)
640
+ return visitor.video(value.video);
545
641
  if (value.toolUse !== void 0)
546
642
  return visitor.toolUse(value.toolUse);
547
643
  if (value.toolResult !== void 0)
@@ -555,6 +651,10 @@ var ConversationRole = {
555
651
  ASSISTANT: "assistant",
556
652
  USER: "user"
557
653
  };
654
+ var PerformanceConfigLatency = {
655
+ OPTIMIZED: "optimized",
656
+ STANDARD: "standard"
657
+ };
558
658
  var PromptVariableValues;
559
659
  ((PromptVariableValues3) => {
560
660
  PromptVariableValues3.visit = /* @__PURE__ */ __name((value, visitor) => {
@@ -671,23 +771,6 @@ var _ModelTimeoutException = class _ModelTimeoutException extends BedrockRuntime
671
771
  };
672
772
  __name(_ModelTimeoutException, "ModelTimeoutException");
673
773
  var ModelTimeoutException = _ModelTimeoutException;
674
- var _ServiceUnavailableException = class _ServiceUnavailableException extends BedrockRuntimeServiceException {
675
- /**
676
- * @internal
677
- */
678
- constructor(opts) {
679
- super({
680
- name: "ServiceUnavailableException",
681
- $fault: "server",
682
- ...opts
683
- });
684
- this.name = "ServiceUnavailableException";
685
- this.$fault = "server";
686
- Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
687
- }
688
- };
689
- __name(_ServiceUnavailableException, "ServiceUnavailableException");
690
- var ServiceUnavailableException = _ServiceUnavailableException;
691
774
  var GuardrailStreamProcessingMode = {
692
775
  ASYNC: "async",
693
776
  SYNC: "sync"
@@ -781,19 +864,42 @@ var ResponseStream;
781
864
  return visitor._(value.$unknown[0], value.$unknown[1]);
782
865
  }, "visit");
783
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");
784
888
  var ConverseRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
785
889
  ...obj,
786
890
  ...obj.messages && { messages: obj.messages.map((item) => item) },
787
891
  ...obj.system && { system: obj.system.map((item) => item) },
788
892
  ...obj.toolConfig && { toolConfig: obj.toolConfig },
789
- ...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 }
790
895
  }), "ConverseRequestFilterSensitiveLog");
791
896
  var ConverseStreamRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
792
897
  ...obj,
793
898
  ...obj.messages && { messages: obj.messages.map((item) => item) },
794
899
  ...obj.system && { system: obj.system.map((item) => item) },
795
900
  ...obj.toolConfig && { toolConfig: obj.toolConfig },
796
- ...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 }
797
903
  }), "ConverseStreamRequestFilterSensitiveLog");
798
904
  var ConverseStreamOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
799
905
  if (obj.messageStart !== void 0)
@@ -898,7 +1004,9 @@ var se_ConverseCommand = /* @__PURE__ */ __name(async (input, context) => {
898
1004
  guardrailConfig: (_) => (0, import_smithy_client._json)(_),
899
1005
  inferenceConfig: (_) => se_InferenceConfiguration(_, context),
900
1006
  messages: (_) => se_Messages(_, context),
1007
+ performanceConfig: (_) => (0, import_smithy_client._json)(_),
901
1008
  promptVariables: (_) => (0, import_smithy_client._json)(_),
1009
+ requestMetadata: (_) => (0, import_smithy_client._json)(_),
902
1010
  system: (_) => (0, import_smithy_client._json)(_),
903
1011
  toolConfig: (_) => se_ToolConfiguration(_, context)
904
1012
  })
@@ -921,7 +1029,9 @@ var se_ConverseStreamCommand = /* @__PURE__ */ __name(async (input, context) =>
921
1029
  guardrailConfig: (_) => (0, import_smithy_client._json)(_),
922
1030
  inferenceConfig: (_) => se_InferenceConfiguration(_, context),
923
1031
  messages: (_) => se_Messages(_, context),
1032
+ performanceConfig: (_) => (0, import_smithy_client._json)(_),
924
1033
  promptVariables: (_) => (0, import_smithy_client._json)(_),
1034
+ requestMetadata: (_) => (0, import_smithy_client._json)(_),
925
1035
  system: (_) => (0, import_smithy_client._json)(_),
926
1036
  toolConfig: (_) => se_ToolConfiguration(_, context)
927
1037
  })
@@ -929,6 +1039,15 @@ var se_ConverseStreamCommand = /* @__PURE__ */ __name(async (input, context) =>
929
1039
  b.m("POST").h(headers).b(body);
930
1040
  return b.build();
931
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");
932
1051
  var se_InvokeModelCommand = /* @__PURE__ */ __name(async (input, context) => {
933
1052
  const b = (0, import_core.requestBuilder)(input, context);
934
1053
  const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
@@ -936,7 +1055,8 @@ var se_InvokeModelCommand = /* @__PURE__ */ __name(async (input, context) => {
936
1055
  [_a]: input[_a],
937
1056
  [_xabt]: input[_t],
938
1057
  [_xabg]: input[_gI],
939
- [_xabg_]: input[_gV]
1058
+ [_xabg_]: input[_gV],
1059
+ [_xabpl]: input[_pCL]
940
1060
  });
941
1061
  b.bp("/model/{modelId}/invoke");
942
1062
  b.p("modelId", () => input.modelId, "{modelId}", false);
@@ -954,7 +1074,8 @@ var se_InvokeModelWithResponseStreamCommand = /* @__PURE__ */ __name(async (inpu
954
1074
  [_xaba]: input[_a],
955
1075
  [_xabt]: input[_t],
956
1076
  [_xabg]: input[_gI],
957
- [_xabg_]: input[_gV]
1077
+ [_xabg_]: input[_gV],
1078
+ [_xabpl]: input[_pCL]
958
1079
  });
959
1080
  b.bp("/model/{modelId}/invoke-with-response-stream");
960
1081
  b.p("modelId", () => input.modelId, "{modelId}", false);
@@ -965,6 +1086,42 @@ var se_InvokeModelWithResponseStreamCommand = /* @__PURE__ */ __name(async (inpu
965
1086
  b.m("POST").h(headers).b(body);
966
1087
  return b.build();
967
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");
968
1125
  var de_ApplyGuardrailCommand = /* @__PURE__ */ __name(async (output, context) => {
969
1126
  if (output.statusCode !== 200 && output.statusCode >= 300) {
970
1127
  return de_CommandError(output, context);
@@ -995,6 +1152,7 @@ var de_ConverseCommand = /* @__PURE__ */ __name(async (output, context) => {
995
1152
  additionalModelResponseFields: (_) => de_Document(_, context),
996
1153
  metrics: import_smithy_client._json,
997
1154
  output: (_) => de_ConverseOutput((0, import_core2.awsExpectUnion)(_), context),
1155
+ performanceConfig: import_smithy_client._json,
998
1156
  stopReason: import_smithy_client.expectString,
999
1157
  trace: (_) => de_ConverseTrace(_, context),
1000
1158
  usage: import_smithy_client._json
@@ -1013,13 +1171,36 @@ var de_ConverseStreamCommand = /* @__PURE__ */ __name(async (output, context) =>
1013
1171
  contents.stream = de_ConverseStreamOutput(data, context);
1014
1172
  return contents;
1015
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");
1016
1196
  var de_InvokeModelCommand = /* @__PURE__ */ __name(async (output, context) => {
1017
1197
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1018
1198
  return de_CommandError(output, context);
1019
1199
  }
1020
1200
  const contents = (0, import_smithy_client.map)({
1021
1201
  $metadata: deserializeMetadata(output),
1022
- [_cT]: [, output.headers[_ct]]
1202
+ [_cT]: [, output.headers[_ct]],
1203
+ [_pCL]: [, output.headers[_xabpl]]
1023
1204
  });
1024
1205
  const data = await (0, import_smithy_client.collectBody)(output.body, context);
1025
1206
  contents.body = data;
@@ -1031,12 +1212,42 @@ var de_InvokeModelWithResponseStreamCommand = /* @__PURE__ */ __name(async (outp
1031
1212
  }
1032
1213
  const contents = (0, import_smithy_client.map)({
1033
1214
  $metadata: deserializeMetadata(output),
1034
- [_cT]: [, output.headers[_xabct]]
1215
+ [_cT]: [, output.headers[_xabct]],
1216
+ [_pCL]: [, output.headers[_xabpl]]
1035
1217
  });
1036
1218
  const data = output.body;
1037
1219
  contents.body = de_ResponseStream(data, context);
1038
1220
  return contents;
1039
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");
1040
1251
  var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1041
1252
  const parsedOutput = {
1042
1253
  ...output,
@@ -1077,6 +1288,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1077
1288
  case "ModelStreamErrorException":
1078
1289
  case "com.amazonaws.bedrockruntime#ModelStreamErrorException":
1079
1290
  throw await de_ModelStreamErrorExceptionRes(parsedOutput, context);
1291
+ case "ConflictException":
1292
+ case "com.amazonaws.bedrockruntime#ConflictException":
1293
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1080
1294
  default:
1081
1295
  const parsedBody = parsedOutput.body;
1082
1296
  return throwDefaultError({
@@ -1100,6 +1314,19 @@ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, co
1100
1314
  });
1101
1315
  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1102
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");
1103
1330
  var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1104
1331
  const contents = (0, import_smithy_client.map)({});
1105
1332
  const data = parsedOutput.body;
@@ -1438,6 +1665,7 @@ var se_ContentBlock = /* @__PURE__ */ __name((input, context) => {
1438
1665
  text: (value) => ({ text: value }),
1439
1666
  toolResult: (value) => ({ toolResult: se_ToolResultBlock(value, context) }),
1440
1667
  toolUse: (value) => ({ toolUse: se_ToolUseBlock(value, context) }),
1668
+ video: (value) => ({ video: se_VideoBlock(value, context) }),
1441
1669
  _: (name, value) => ({ name: value })
1442
1670
  });
1443
1671
  }, "se_ContentBlock");
@@ -1490,6 +1718,9 @@ var se_Messages = /* @__PURE__ */ __name((input, context) => {
1490
1718
  return se_Message(entry, context);
1491
1719
  });
1492
1720
  }, "se_Messages");
1721
+ var se_ModelInputPayload = /* @__PURE__ */ __name((input, context) => {
1722
+ return input;
1723
+ }, "se_ModelInputPayload");
1493
1724
  var se_Tool = /* @__PURE__ */ __name((input, context) => {
1494
1725
  return Tool.visit(input, {
1495
1726
  toolSpec: (value) => ({ toolSpec: se_ToolSpecification(value, context) }),
@@ -1521,6 +1752,7 @@ var se_ToolResultContentBlock = /* @__PURE__ */ __name((input, context) => {
1521
1752
  image: (value) => ({ image: se_ImageBlock(value, context) }),
1522
1753
  json: (value) => ({ json: se_Document(value, context) }),
1523
1754
  text: (value) => ({ text: value }),
1755
+ video: (value) => ({ video: se_VideoBlock(value, context) }),
1524
1756
  _: (name, value) => ({ name: value })
1525
1757
  });
1526
1758
  }, "se_ToolResultContentBlock");
@@ -1548,9 +1780,41 @@ var se_ToolUseBlock = /* @__PURE__ */ __name((input, context) => {
1548
1780
  toolUseId: []
1549
1781
  });
1550
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");
1551
1796
  var se_Document = /* @__PURE__ */ __name((input, context) => {
1552
1797
  return input;
1553
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");
1554
1818
  var de_ContentBlock = /* @__PURE__ */ __name((output, context) => {
1555
1819
  if (output.document != null) {
1556
1820
  return {
@@ -1580,6 +1844,11 @@ var de_ContentBlock = /* @__PURE__ */ __name((output, context) => {
1580
1844
  toolUse: de_ToolUseBlock(output.toolUse, context)
1581
1845
  };
1582
1846
  }
1847
+ if (output.video != null) {
1848
+ return {
1849
+ video: de_VideoBlock(output.video, context)
1850
+ };
1851
+ }
1583
1852
  return { $unknown: Object.entries(output)[0] };
1584
1853
  }, "de_ContentBlock");
1585
1854
  var de_ContentBlocks = /* @__PURE__ */ __name((output, context) => {
@@ -1599,6 +1868,7 @@ var de_ConverseOutput = /* @__PURE__ */ __name((output, context) => {
1599
1868
  var de_ConverseStreamMetadataEvent = /* @__PURE__ */ __name((output, context) => {
1600
1869
  return (0, import_smithy_client.take)(output, {
1601
1870
  metrics: import_smithy_client._json,
1871
+ performanceConfig: import_smithy_client._json,
1602
1872
  trace: (_) => de_ConverseStreamTrace(_, context),
1603
1873
  usage: import_smithy_client._json
1604
1874
  });
@@ -1745,6 +2015,11 @@ var de_ToolResultContentBlock = /* @__PURE__ */ __name((output, context) => {
1745
2015
  if ((0, import_smithy_client.expectString)(output.text) !== void 0) {
1746
2016
  return { text: (0, import_smithy_client.expectString)(output.text) };
1747
2017
  }
2018
+ if (output.video != null) {
2019
+ return {
2020
+ video: de_VideoBlock(output.video, context)
2021
+ };
2022
+ }
1748
2023
  return { $unknown: Object.entries(output)[0] };
1749
2024
  }, "de_ToolResultContentBlock");
1750
2025
  var de_ToolResultContentBlocks = /* @__PURE__ */ __name((output, context) => {
@@ -1760,6 +2035,25 @@ var de_ToolUseBlock = /* @__PURE__ */ __name((output, context) => {
1760
2035
  toolUseId: import_smithy_client.expectString
1761
2036
  });
1762
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");
1763
2057
  var de_Document = /* @__PURE__ */ __name((output, context) => {
1764
2058
  return output;
1765
2059
  }, "de_Document");
@@ -1774,11 +2068,20 @@ var _cT = "contentType";
1774
2068
  var _ct = "content-type";
1775
2069
  var _gI = "guardrailIdentifier";
1776
2070
  var _gV = "guardrailVersion";
2071
+ var _mR = "maxResults";
2072
+ var _nT = "nextToken";
2073
+ var _pCL = "performanceConfigLatency";
2074
+ var _sB = "sortBy";
2075
+ var _sE = "statusEquals";
2076
+ var _sO = "sortOrder";
2077
+ var _sTA = "submitTimeAfter";
2078
+ var _sTB = "submitTimeBefore";
1777
2079
  var _t = "trace";
1778
2080
  var _xaba = "x-amzn-bedrock-accept";
1779
2081
  var _xabct = "x-amzn-bedrock-content-type";
1780
2082
  var _xabg = "x-amzn-bedrock-guardrailidentifier";
1781
2083
  var _xabg_ = "x-amzn-bedrock-guardrailversion";
2084
+ var _xabpl = "x-amzn-bedrock-performanceconfig-latency";
1782
2085
  var _xabt = "x-amzn-bedrock-trace";
1783
2086
 
1784
2087
  // src/commands/ApplyGuardrailCommand.ts
@@ -1827,6 +2130,20 @@ var _ConverseStreamCommand = class _ConverseStreamCommand extends import_smithy_
1827
2130
  __name(_ConverseStreamCommand, "ConverseStreamCommand");
1828
2131
  var ConverseStreamCommand = _ConverseStreamCommand;
1829
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
+
1830
2147
  // src/commands/InvokeModelCommand.ts
1831
2148
 
1832
2149
 
@@ -1862,19 +2179,54 @@ var _InvokeModelWithResponseStreamCommand = class _InvokeModelWithResponseStream
1862
2179
  __name(_InvokeModelWithResponseStreamCommand, "InvokeModelWithResponseStreamCommand");
1863
2180
  var InvokeModelWithResponseStreamCommand = _InvokeModelWithResponseStreamCommand;
1864
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
+
1865
2210
  // src/BedrockRuntime.ts
1866
2211
  var commands = {
1867
2212
  ApplyGuardrailCommand,
1868
2213
  ConverseCommand,
1869
2214
  ConverseStreamCommand,
2215
+ GetAsyncInvokeCommand,
1870
2216
  InvokeModelCommand,
1871
- InvokeModelWithResponseStreamCommand
2217
+ InvokeModelWithResponseStreamCommand,
2218
+ ListAsyncInvokesCommand,
2219
+ StartAsyncInvokeCommand
1872
2220
  };
1873
2221
  var _BedrockRuntime = class _BedrockRuntime extends BedrockRuntimeClient {
1874
2222
  };
1875
2223
  __name(_BedrockRuntime, "BedrockRuntime");
1876
2224
  var BedrockRuntime = _BedrockRuntime;
1877
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");
1878
2230
  // Annotate the CommonJS export names for ESM import in node:
1879
2231
 
1880
2232
  0 && (module.exports = {
@@ -1886,9 +2238,24 @@ var BedrockRuntime = _BedrockRuntime;
1886
2238
  ApplyGuardrailCommand,
1887
2239
  ConverseCommand,
1888
2240
  ConverseStreamCommand,
2241
+ GetAsyncInvokeCommand,
1889
2242
  InvokeModelCommand,
1890
2243
  InvokeModelWithResponseStreamCommand,
2244
+ ListAsyncInvokesCommand,
2245
+ StartAsyncInvokeCommand,
2246
+ paginateListAsyncInvokes,
1891
2247
  AccessDeniedException,
2248
+ AsyncInvokeOutputDataConfig,
2249
+ AsyncInvokeStatus,
2250
+ InternalServerException,
2251
+ ThrottlingException,
2252
+ ValidationException,
2253
+ SortAsyncInvocationBy,
2254
+ SortOrder,
2255
+ ConflictException,
2256
+ ResourceNotFoundException,
2257
+ ServiceQuotaExceededException,
2258
+ ServiceUnavailableException,
1892
2259
  GuardrailContentQualifier,
1893
2260
  GuardrailContentBlock,
1894
2261
  GuardrailContentSource,
@@ -1905,11 +2272,6 @@ var BedrockRuntime = _BedrockRuntime;
1905
2272
  GuardrailTopicType,
1906
2273
  GuardrailWordPolicyAction,
1907
2274
  GuardrailManagedWordType,
1908
- InternalServerException,
1909
- ResourceNotFoundException,
1910
- ServiceQuotaExceededException,
1911
- ThrottlingException,
1912
- ValidationException,
1913
2275
  GuardrailTrace,
1914
2276
  DocumentFormat,
1915
2277
  DocumentSource,
@@ -1917,10 +2279,13 @@ var BedrockRuntime = _BedrockRuntime;
1917
2279
  GuardrailConverseContentBlock,
1918
2280
  ImageFormat,
1919
2281
  ImageSource,
2282
+ VideoFormat,
2283
+ VideoSource,
1920
2284
  ToolResultContentBlock,
1921
2285
  ToolResultStatus,
1922
2286
  ContentBlock,
1923
2287
  ConversationRole,
2288
+ PerformanceConfigLatency,
1924
2289
  PromptVariableValues,
1925
2290
  SystemContentBlock,
1926
2291
  ToolChoice,
@@ -1931,7 +2296,6 @@ var BedrockRuntime = _BedrockRuntime;
1931
2296
  ModelErrorException,
1932
2297
  ModelNotReadyException,
1933
2298
  ModelTimeoutException,
1934
- ServiceUnavailableException,
1935
2299
  GuardrailStreamProcessingMode,
1936
2300
  ContentBlockDelta,
1937
2301
  ContentBlockStart,
@@ -1939,6 +2303,10 @@ var BedrockRuntime = _BedrockRuntime;
1939
2303
  ConverseStreamOutput,
1940
2304
  Trace,
1941
2305
  ResponseStream,
2306
+ GetAsyncInvokeResponseFilterSensitiveLog,
2307
+ AsyncInvokeSummaryFilterSensitiveLog,
2308
+ ListAsyncInvokesResponseFilterSensitiveLog,
2309
+ StartAsyncInvokeRequestFilterSensitiveLog,
1942
2310
  ConverseRequestFilterSensitiveLog,
1943
2311
  ConverseStreamRequestFilterSensitiveLog,
1944
2312
  ConverseStreamOutputFilterSensitiveLog,