@aws-sdk/client-bedrock-runtime 3.704.0 → 3.706.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 +711 -135
  3. package/dist-es/BedrockRuntime.js +6 -0
  4. package/dist-es/commands/ApplyGuardrailCommand.js +2 -1
  5. package/dist-es/commands/ConverseCommand.js +2 -2
  6. package/dist-es/commands/GetAsyncInvokeCommand.js +23 -0
  7. package/dist-es/commands/ListAsyncInvokesCommand.js +23 -0
  8. package/dist-es/commands/StartAsyncInvokeCommand.js +23 -0
  9. package/dist-es/commands/index.js +3 -0
  10. package/dist-es/index.js +1 -0
  11. package/dist-es/models/models_0.js +264 -76
  12. package/dist-es/pagination/Interfaces.js +1 -0
  13. package/dist-es/pagination/ListAsyncInvokesPaginator.js +4 -0
  14. package/dist-es/pagination/index.js +2 -0
  15. package/dist-es/protocols/Aws_restJson1.js +283 -7
  16. package/dist-types/BedrockRuntime.d.ts +22 -0
  17. package/dist-types/BedrockRuntimeClient.d.ts +5 -2
  18. package/dist-types/commands/ApplyGuardrailCommand.d.ts +16 -0
  19. package/dist-types/commands/ConverseCommand.d.ts +72 -0
  20. package/dist-types/commands/ConverseStreamCommand.d.ts +46 -0
  21. package/dist-types/commands/GetAsyncInvokeCommand.d.ts +101 -0
  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 +828 -119
  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 +356 -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
@@ -8,6 +8,176 @@ export declare class AccessDeniedException extends __BaseException {
8
8
  opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
9
9
  );
10
10
  }
11
+ export interface GetAsyncInvokeRequest {
12
+ invocationArn: string | undefined;
13
+ }
14
+ export interface AsyncInvokeS3OutputDataConfig {
15
+ s3Uri: string | undefined;
16
+ kmsKeyId?: string | undefined;
17
+ bucketOwner?: string | undefined;
18
+ }
19
+ export type AsyncInvokeOutputDataConfig =
20
+ | AsyncInvokeOutputDataConfig.S3OutputDataConfigMember
21
+ | AsyncInvokeOutputDataConfig.$UnknownMember;
22
+ export declare namespace AsyncInvokeOutputDataConfig {
23
+ interface S3OutputDataConfigMember {
24
+ s3OutputDataConfig: AsyncInvokeS3OutputDataConfig;
25
+ $unknown?: never;
26
+ }
27
+ interface $UnknownMember {
28
+ s3OutputDataConfig?: never;
29
+ $unknown: [string, any];
30
+ }
31
+ interface Visitor<T> {
32
+ s3OutputDataConfig: (value: AsyncInvokeS3OutputDataConfig) => T;
33
+ _: (name: string, value: any) => T;
34
+ }
35
+ const visit: <T>(
36
+ value: AsyncInvokeOutputDataConfig,
37
+ visitor: Visitor<T>
38
+ ) => T;
39
+ }
40
+ export declare const AsyncInvokeStatus: {
41
+ readonly COMPLETED: "Completed";
42
+ readonly FAILED: "Failed";
43
+ readonly IN_PROGRESS: "InProgress";
44
+ };
45
+ export type AsyncInvokeStatus =
46
+ (typeof AsyncInvokeStatus)[keyof typeof AsyncInvokeStatus];
47
+ export interface GetAsyncInvokeResponse {
48
+ invocationArn: string | undefined;
49
+ modelArn: string | undefined;
50
+ clientRequestToken?: string | undefined;
51
+ status: AsyncInvokeStatus | undefined;
52
+ failureMessage?: string | undefined;
53
+ submitTime: Date | undefined;
54
+ lastModifiedTime?: Date | undefined;
55
+ endTime?: Date | undefined;
56
+ outputDataConfig: AsyncInvokeOutputDataConfig | undefined;
57
+ }
58
+ export declare class InternalServerException extends __BaseException {
59
+ readonly name: "InternalServerException";
60
+ readonly $fault: "server";
61
+ constructor(
62
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
63
+ );
64
+ }
65
+ export declare class ThrottlingException extends __BaseException {
66
+ readonly name: "ThrottlingException";
67
+ readonly $fault: "client";
68
+ constructor(
69
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
70
+ );
71
+ }
72
+ export declare class ValidationException extends __BaseException {
73
+ readonly name: "ValidationException";
74
+ readonly $fault: "client";
75
+ constructor(
76
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
77
+ );
78
+ }
79
+ export declare const SortAsyncInvocationBy: {
80
+ readonly SUBMISSION_TIME: "SubmissionTime";
81
+ };
82
+ export type SortAsyncInvocationBy =
83
+ (typeof SortAsyncInvocationBy)[keyof typeof SortAsyncInvocationBy];
84
+ export declare const SortOrder: {
85
+ readonly ASCENDING: "Ascending";
86
+ readonly DESCENDING: "Descending";
87
+ };
88
+ export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
89
+ export interface ListAsyncInvokesRequest {
90
+ submitTimeAfter?: Date | undefined;
91
+ submitTimeBefore?: Date | undefined;
92
+ statusEquals?: AsyncInvokeStatus | undefined;
93
+ maxResults?: number | undefined;
94
+ nextToken?: string | undefined;
95
+ sortBy?: SortAsyncInvocationBy | undefined;
96
+ sortOrder?: SortOrder | undefined;
97
+ }
98
+ export interface AsyncInvokeSummary {
99
+ invocationArn: string | undefined;
100
+ modelArn: string | undefined;
101
+ clientRequestToken?: string | undefined;
102
+ status?: AsyncInvokeStatus | undefined;
103
+ failureMessage?: string | undefined;
104
+ submitTime: Date | undefined;
105
+ lastModifiedTime?: Date | undefined;
106
+ endTime?: Date | undefined;
107
+ outputDataConfig: AsyncInvokeOutputDataConfig | undefined;
108
+ }
109
+ export interface ListAsyncInvokesResponse {
110
+ nextToken?: string | undefined;
111
+ asyncInvokeSummaries?: AsyncInvokeSummary[] | undefined;
112
+ }
113
+ export declare class ConflictException extends __BaseException {
114
+ readonly name: "ConflictException";
115
+ readonly $fault: "client";
116
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
117
+ }
118
+ export declare class ResourceNotFoundException extends __BaseException {
119
+ readonly name: "ResourceNotFoundException";
120
+ readonly $fault: "client";
121
+ constructor(
122
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
123
+ );
124
+ }
125
+ export declare class ServiceQuotaExceededException extends __BaseException {
126
+ readonly name: "ServiceQuotaExceededException";
127
+ readonly $fault: "client";
128
+ constructor(
129
+ opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
130
+ );
131
+ }
132
+ export declare class ServiceUnavailableException extends __BaseException {
133
+ readonly name: "ServiceUnavailableException";
134
+ readonly $fault: "server";
135
+ constructor(
136
+ opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>
137
+ );
138
+ }
139
+ export interface Tag {
140
+ key: string | undefined;
141
+ value: string | undefined;
142
+ }
143
+ export interface StartAsyncInvokeRequest {
144
+ clientRequestToken?: string | undefined;
145
+ modelId: string | undefined;
146
+ modelInput: __DocumentType | undefined;
147
+ outputDataConfig: AsyncInvokeOutputDataConfig | undefined;
148
+ tags?: Tag[] | undefined;
149
+ }
150
+ export interface StartAsyncInvokeResponse {
151
+ invocationArn: string | undefined;
152
+ }
153
+ export declare const GuardrailImageFormat: {
154
+ readonly JPEG: "jpeg";
155
+ readonly PNG: "png";
156
+ };
157
+ export type GuardrailImageFormat =
158
+ (typeof GuardrailImageFormat)[keyof typeof GuardrailImageFormat];
159
+ export type GuardrailImageSource =
160
+ | GuardrailImageSource.BytesMember
161
+ | GuardrailImageSource.$UnknownMember;
162
+ export declare namespace GuardrailImageSource {
163
+ interface BytesMember {
164
+ bytes: Uint8Array;
165
+ $unknown?: never;
166
+ }
167
+ interface $UnknownMember {
168
+ bytes?: never;
169
+ $unknown: [string, any];
170
+ }
171
+ interface Visitor<T> {
172
+ bytes: (value: Uint8Array) => T;
173
+ _: (name: string, value: any) => T;
174
+ }
175
+ const visit: <T>(value: GuardrailImageSource, visitor: Visitor<T>) => T;
176
+ }
177
+ export interface GuardrailImageBlock {
178
+ format: GuardrailImageFormat | undefined;
179
+ source: GuardrailImageSource | undefined;
180
+ }
11
181
  export declare const GuardrailContentQualifier: {
12
182
  readonly GROUNDING_SOURCE: "grounding_source";
13
183
  readonly GUARD_CONTENT: "guard_content";
@@ -20,19 +190,28 @@ export interface GuardrailTextBlock {
20
190
  qualifiers?: GuardrailContentQualifier[] | undefined;
21
191
  }
22
192
  export type GuardrailContentBlock =
193
+ | GuardrailContentBlock.ImageMember
23
194
  | GuardrailContentBlock.TextMember
24
195
  | GuardrailContentBlock.$UnknownMember;
25
196
  export declare namespace GuardrailContentBlock {
26
197
  interface TextMember {
27
198
  text: GuardrailTextBlock;
199
+ image?: never;
200
+ $unknown?: never;
201
+ }
202
+ interface ImageMember {
203
+ text?: never;
204
+ image: GuardrailImageBlock;
28
205
  $unknown?: never;
29
206
  }
30
207
  interface $UnknownMember {
31
208
  text?: never;
209
+ image?: never;
32
210
  $unknown: [string, any];
33
211
  }
34
212
  interface Visitor<T> {
35
213
  text: (value: GuardrailTextBlock) => T;
214
+ image: (value: GuardrailImageBlock) => T;
36
215
  _: (name: string, value: any) => T;
37
216
  }
38
217
  const visit: <T>(value: GuardrailContentBlock, visitor: Visitor<T>) => T;
@@ -116,12 +295,17 @@ export interface GuardrailContextualGroundingFilter {
116
295
  export interface GuardrailContextualGroundingPolicyAssessment {
117
296
  filters?: GuardrailContextualGroundingFilter[] | undefined;
118
297
  }
298
+ export interface GuardrailImageCoverage {
299
+ guarded?: number | undefined;
300
+ total?: number | undefined;
301
+ }
119
302
  export interface GuardrailTextCharactersCoverage {
120
303
  guarded?: number | undefined;
121
304
  total?: number | undefined;
122
305
  }
123
306
  export interface GuardrailCoverage {
124
307
  textCharacters?: GuardrailTextCharactersCoverage | undefined;
308
+ images?: GuardrailImageCoverage | undefined;
125
309
  }
126
310
  export interface GuardrailUsage {
127
311
  topicPolicyUnits: number | undefined;
@@ -255,41 +439,6 @@ export interface ApplyGuardrailResponse {
255
439
  assessments: GuardrailAssessment[] | undefined;
256
440
  guardrailCoverage?: GuardrailCoverage | undefined;
257
441
  }
258
- export declare class InternalServerException extends __BaseException {
259
- readonly name: "InternalServerException";
260
- readonly $fault: "server";
261
- constructor(
262
- opts: __ExceptionOptionType<InternalServerException, __BaseException>
263
- );
264
- }
265
- export declare class ResourceNotFoundException extends __BaseException {
266
- readonly name: "ResourceNotFoundException";
267
- readonly $fault: "client";
268
- constructor(
269
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
270
- );
271
- }
272
- export declare class ServiceQuotaExceededException extends __BaseException {
273
- readonly name: "ServiceQuotaExceededException";
274
- readonly $fault: "client";
275
- constructor(
276
- opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
277
- );
278
- }
279
- export declare class ThrottlingException extends __BaseException {
280
- readonly name: "ThrottlingException";
281
- readonly $fault: "client";
282
- constructor(
283
- opts: __ExceptionOptionType<ThrottlingException, __BaseException>
284
- );
285
- }
286
- export declare class ValidationException extends __BaseException {
287
- readonly name: "ValidationException";
288
- readonly $fault: "client";
289
- constructor(
290
- opts: __ExceptionOptionType<ValidationException, __BaseException>
291
- );
292
- }
293
442
  export declare const GuardrailTrace: {
294
443
  readonly DISABLED: "disabled";
295
444
  readonly ENABLED: "enabled";
@@ -343,6 +492,37 @@ export interface DocumentBlock {
343
492
  name: string | undefined;
344
493
  source: DocumentSource | undefined;
345
494
  }
495
+ export declare const GuardrailConverseImageFormat: {
496
+ readonly JPEG: "jpeg";
497
+ readonly PNG: "png";
498
+ };
499
+ export type GuardrailConverseImageFormat =
500
+ (typeof GuardrailConverseImageFormat)[keyof typeof GuardrailConverseImageFormat];
501
+ export type GuardrailConverseImageSource =
502
+ | GuardrailConverseImageSource.BytesMember
503
+ | GuardrailConverseImageSource.$UnknownMember;
504
+ export declare namespace GuardrailConverseImageSource {
505
+ interface BytesMember {
506
+ bytes: Uint8Array;
507
+ $unknown?: never;
508
+ }
509
+ interface $UnknownMember {
510
+ bytes?: never;
511
+ $unknown: [string, any];
512
+ }
513
+ interface Visitor<T> {
514
+ bytes: (value: Uint8Array) => T;
515
+ _: (name: string, value: any) => T;
516
+ }
517
+ const visit: <T>(
518
+ value: GuardrailConverseImageSource,
519
+ visitor: Visitor<T>
520
+ ) => T;
521
+ }
522
+ export interface GuardrailConverseImageBlock {
523
+ format: GuardrailConverseImageFormat | undefined;
524
+ source: GuardrailConverseImageSource | undefined;
525
+ }
346
526
  export declare const GuardrailConverseContentQualifier: {
347
527
  readonly GROUNDING_SOURCE: "grounding_source";
348
528
  readonly GUARD_CONTENT: "guard_content";
@@ -355,19 +535,28 @@ export interface GuardrailConverseTextBlock {
355
535
  qualifiers?: GuardrailConverseContentQualifier[] | undefined;
356
536
  }
357
537
  export type GuardrailConverseContentBlock =
538
+ | GuardrailConverseContentBlock.ImageMember
358
539
  | GuardrailConverseContentBlock.TextMember
359
540
  | GuardrailConverseContentBlock.$UnknownMember;
360
541
  export declare namespace GuardrailConverseContentBlock {
361
542
  interface TextMember {
362
543
  text: GuardrailConverseTextBlock;
544
+ image?: never;
545
+ $unknown?: never;
546
+ }
547
+ interface ImageMember {
548
+ text?: never;
549
+ image: GuardrailConverseImageBlock;
363
550
  $unknown?: never;
364
551
  }
365
552
  interface $UnknownMember {
366
553
  text?: never;
554
+ image?: never;
367
555
  $unknown: [string, any];
368
556
  }
369
557
  interface Visitor<T> {
370
558
  text: (value: GuardrailConverseTextBlock) => T;
559
+ image: (value: GuardrailConverseImageBlock) => T;
371
560
  _: (name: string, value: any) => T;
372
561
  }
373
562
  const visit: <T>(
@@ -402,11 +591,59 @@ export interface ImageBlock {
402
591
  format: ImageFormat | undefined;
403
592
  source: ImageSource | undefined;
404
593
  }
594
+ export declare const VideoFormat: {
595
+ readonly FLV: "flv";
596
+ readonly MKV: "mkv";
597
+ readonly MOV: "mov";
598
+ readonly MP4: "mp4";
599
+ readonly MPEG: "mpeg";
600
+ readonly MPG: "mpg";
601
+ readonly THREE_GP: "three_gp";
602
+ readonly WEBM: "webm";
603
+ readonly WMV: "wmv";
604
+ };
605
+ export type VideoFormat = (typeof VideoFormat)[keyof typeof VideoFormat];
606
+ export interface S3Location {
607
+ uri: string | undefined;
608
+ bucketOwner?: string | undefined;
609
+ }
610
+ export type VideoSource =
611
+ | VideoSource.BytesMember
612
+ | VideoSource.S3LocationMember
613
+ | VideoSource.$UnknownMember;
614
+ export declare namespace VideoSource {
615
+ interface BytesMember {
616
+ bytes: Uint8Array;
617
+ s3Location?: never;
618
+ $unknown?: never;
619
+ }
620
+ interface S3LocationMember {
621
+ bytes?: never;
622
+ s3Location: S3Location;
623
+ $unknown?: never;
624
+ }
625
+ interface $UnknownMember {
626
+ bytes?: never;
627
+ s3Location?: never;
628
+ $unknown: [string, any];
629
+ }
630
+ interface Visitor<T> {
631
+ bytes: (value: Uint8Array) => T;
632
+ s3Location: (value: S3Location) => T;
633
+ _: (name: string, value: any) => T;
634
+ }
635
+ const visit: <T>(value: VideoSource, visitor: Visitor<T>) => T;
636
+ }
637
+ export interface VideoBlock {
638
+ format: VideoFormat | undefined;
639
+ source: VideoSource | undefined;
640
+ }
405
641
  export type ToolResultContentBlock =
406
642
  | ToolResultContentBlock.DocumentMember
407
643
  | ToolResultContentBlock.ImageMember
408
644
  | ToolResultContentBlock.JsonMember
409
645
  | ToolResultContentBlock.TextMember
646
+ | ToolResultContentBlock.VideoMember
410
647
  | ToolResultContentBlock.$UnknownMember;
411
648
  export declare namespace ToolResultContentBlock {
412
649
  interface JsonMember {
@@ -414,6 +651,7 @@ export declare namespace ToolResultContentBlock {
414
651
  text?: never;
415
652
  image?: never;
416
653
  document?: never;
654
+ video?: never;
417
655
  $unknown?: never;
418
656
  }
419
657
  interface TextMember {
@@ -421,6 +659,7 @@ export declare namespace ToolResultContentBlock {
421
659
  text: string;
422
660
  image?: never;
423
661
  document?: never;
662
+ video?: never;
424
663
  $unknown?: never;
425
664
  }
426
665
  interface ImageMember {
@@ -428,6 +667,7 @@ export declare namespace ToolResultContentBlock {
428
667
  text?: never;
429
668
  image: ImageBlock;
430
669
  document?: never;
670
+ video?: never;
431
671
  $unknown?: never;
432
672
  }
433
673
  interface DocumentMember {
@@ -435,6 +675,15 @@ export declare namespace ToolResultContentBlock {
435
675
  text?: never;
436
676
  image?: never;
437
677
  document: DocumentBlock;
678
+ video?: never;
679
+ $unknown?: never;
680
+ }
681
+ interface VideoMember {
682
+ json?: never;
683
+ text?: never;
684
+ image?: never;
685
+ document?: never;
686
+ video: VideoBlock;
438
687
  $unknown?: never;
439
688
  }
440
689
  interface $UnknownMember {
@@ -442,6 +691,7 @@ export declare namespace ToolResultContentBlock {
442
691
  text?: never;
443
692
  image?: never;
444
693
  document?: never;
694
+ video?: never;
445
695
  $unknown: [string, any];
446
696
  }
447
697
  interface Visitor<T> {
@@ -449,6 +699,7 @@ export declare namespace ToolResultContentBlock {
449
699
  text: (value: string) => T;
450
700
  image: (value: ImageBlock) => T;
451
701
  document: (value: DocumentBlock) => T;
702
+ video: (value: VideoBlock) => T;
452
703
  _: (name: string, value: any) => T;
453
704
  }
454
705
  const visit: <T>(value: ToolResultContentBlock, visitor: Visitor<T>) => T;
@@ -476,12 +727,14 @@ export type ContentBlock =
476
727
  | ContentBlock.TextMember
477
728
  | ContentBlock.ToolResultMember
478
729
  | ContentBlock.ToolUseMember
730
+ | ContentBlock.VideoMember
479
731
  | ContentBlock.$UnknownMember;
480
732
  export declare namespace ContentBlock {
481
733
  interface TextMember {
482
734
  text: string;
483
735
  image?: never;
484
736
  document?: never;
737
+ video?: never;
485
738
  toolUse?: never;
486
739
  toolResult?: never;
487
740
  guardContent?: never;
@@ -491,6 +744,7 @@ export declare namespace ContentBlock {
491
744
  text?: never;
492
745
  image: ImageBlock;
493
746
  document?: never;
747
+ video?: never;
494
748
  toolUse?: never;
495
749
  toolResult?: never;
496
750
  guardContent?: never;
@@ -500,6 +754,17 @@ export declare namespace ContentBlock {
500
754
  text?: never;
501
755
  image?: never;
502
756
  document: DocumentBlock;
757
+ video?: never;
758
+ toolUse?: never;
759
+ toolResult?: never;
760
+ guardContent?: never;
761
+ $unknown?: never;
762
+ }
763
+ interface VideoMember {
764
+ text?: never;
765
+ image?: never;
766
+ document?: never;
767
+ video: VideoBlock;
503
768
  toolUse?: never;
504
769
  toolResult?: never;
505
770
  guardContent?: never;
@@ -509,6 +774,7 @@ export declare namespace ContentBlock {
509
774
  text?: never;
510
775
  image?: never;
511
776
  document?: never;
777
+ video?: never;
512
778
  toolUse: ToolUseBlock;
513
779
  toolResult?: never;
514
780
  guardContent?: never;
@@ -518,6 +784,7 @@ export declare namespace ContentBlock {
518
784
  text?: never;
519
785
  image?: never;
520
786
  document?: never;
787
+ video?: never;
521
788
  toolUse?: never;
522
789
  toolResult: ToolResultBlock;
523
790
  guardContent?: never;
@@ -527,6 +794,7 @@ export declare namespace ContentBlock {
527
794
  text?: never;
528
795
  image?: never;
529
796
  document?: never;
797
+ video?: never;
530
798
  toolUse?: never;
531
799
  toolResult?: never;
532
800
  guardContent: GuardrailConverseContentBlock;
@@ -536,6 +804,7 @@ export declare namespace ContentBlock {
536
804
  text?: never;
537
805
  image?: never;
538
806
  document?: never;
807
+ video?: never;
539
808
  toolUse?: never;
540
809
  toolResult?: never;
541
810
  guardContent?: never;
@@ -545,6 +814,7 @@ export declare namespace ContentBlock {
545
814
  text: (value: string) => T;
546
815
  image: (value: ImageBlock) => T;
547
816
  document: (value: DocumentBlock) => T;
817
+ video: (value: VideoBlock) => T;
548
818
  toolUse: (value: ToolUseBlock) => T;
549
819
  toolResult: (value: ToolResultBlock) => T;
550
820
  guardContent: (value: GuardrailConverseContentBlock) => T;
@@ -712,6 +982,7 @@ export interface ConverseRequest {
712
982
  additionalModelRequestFields?: __DocumentType | undefined;
713
983
  promptVariables?: Record<string, PromptVariableValues> | undefined;
714
984
  additionalModelResponseFieldPaths?: string[] | undefined;
985
+ requestMetadata?: Record<string, string> | undefined;
715
986
  performanceConfig?: PerformanceConfiguration | undefined;
716
987
  }
717
988
  export interface ConverseMetrics {
@@ -749,8 +1020,12 @@ export interface GuardrailTraceAssessment {
749
1020
  inputAssessment?: Record<string, GuardrailAssessment> | undefined;
750
1021
  outputAssessments?: Record<string, GuardrailAssessment[]> | undefined;
751
1022
  }
1023
+ export interface PromptRouterTrace {
1024
+ invokedModelId?: string | undefined;
1025
+ }
752
1026
  export interface ConverseTrace {
753
1027
  guardrail?: GuardrailTraceAssessment | undefined;
1028
+ promptRouter?: PromptRouterTrace | undefined;
754
1029
  }
755
1030
  export interface TokenUsage {
756
1031
  inputTokens: number | undefined;
@@ -790,13 +1065,6 @@ export declare class ModelTimeoutException extends __BaseException {
790
1065
  opts: __ExceptionOptionType<ModelTimeoutException, __BaseException>
791
1066
  );
792
1067
  }
793
- export declare class ServiceUnavailableException extends __BaseException {
794
- readonly name: "ServiceUnavailableException";
795
- readonly $fault: "server";
796
- constructor(
797
- opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>
798
- );
799
- }
800
1068
  export declare const GuardrailStreamProcessingMode: {
801
1069
  readonly ASYNC: "async";
802
1070
  readonly SYNC: "sync";
@@ -819,6 +1087,7 @@ export interface ConverseStreamRequest {
819
1087
  additionalModelRequestFields?: __DocumentType | undefined;
820
1088
  promptVariables?: Record<string, PromptVariableValues> | undefined;
821
1089
  additionalModelResponseFieldPaths?: string[] | undefined;
1090
+ requestMetadata?: Record<string, string> | undefined;
822
1091
  performanceConfig?: PerformanceConfiguration | undefined;
823
1092
  }
824
1093
  export interface ToolUseBlockDelta {
@@ -896,6 +1165,7 @@ export interface ConverseStreamMetrics {
896
1165
  }
897
1166
  export interface ConverseStreamTrace {
898
1167
  guardrail?: GuardrailTraceAssessment | undefined;
1168
+ promptRouter?: PromptRouterTrace | undefined;
899
1169
  }
900
1170
  export interface ConverseStreamMetadataEvent {
901
1171
  usage: TokenUsage | undefined;
@@ -1253,9 +1523,53 @@ export interface InvokeModelWithResponseStreamResponse {
1253
1523
  contentType: string | undefined;
1254
1524
  performanceConfigLatency?: PerformanceConfigLatency | undefined;
1255
1525
  }
1526
+ export declare const GetAsyncInvokeResponseFilterSensitiveLog: (
1527
+ obj: GetAsyncInvokeResponse
1528
+ ) => any;
1529
+ export declare const AsyncInvokeSummaryFilterSensitiveLog: (
1530
+ obj: AsyncInvokeSummary
1531
+ ) => any;
1532
+ export declare const ListAsyncInvokesResponseFilterSensitiveLog: (
1533
+ obj: ListAsyncInvokesResponse
1534
+ ) => any;
1535
+ export declare const StartAsyncInvokeRequestFilterSensitiveLog: (
1536
+ obj: StartAsyncInvokeRequest
1537
+ ) => any;
1538
+ export declare const GuardrailImageSourceFilterSensitiveLog: (
1539
+ obj: GuardrailImageSource
1540
+ ) => any;
1541
+ export declare const GuardrailImageBlockFilterSensitiveLog: (
1542
+ obj: GuardrailImageBlock
1543
+ ) => any;
1544
+ export declare const GuardrailContentBlockFilterSensitiveLog: (
1545
+ obj: GuardrailContentBlock
1546
+ ) => any;
1547
+ export declare const ApplyGuardrailRequestFilterSensitiveLog: (
1548
+ obj: ApplyGuardrailRequest
1549
+ ) => any;
1550
+ export declare const GuardrailConverseImageSourceFilterSensitiveLog: (
1551
+ obj: GuardrailConverseImageSource
1552
+ ) => any;
1553
+ export declare const GuardrailConverseImageBlockFilterSensitiveLog: (
1554
+ obj: GuardrailConverseImageBlock
1555
+ ) => any;
1556
+ export declare const GuardrailConverseContentBlockFilterSensitiveLog: (
1557
+ obj: GuardrailConverseContentBlock
1558
+ ) => any;
1559
+ export declare const ContentBlockFilterSensitiveLog: (obj: ContentBlock) => any;
1560
+ export declare const MessageFilterSensitiveLog: (obj: Message) => any;
1561
+ export declare const SystemContentBlockFilterSensitiveLog: (
1562
+ obj: SystemContentBlock
1563
+ ) => any;
1256
1564
  export declare const ConverseRequestFilterSensitiveLog: (
1257
1565
  obj: ConverseRequest
1258
1566
  ) => any;
1567
+ export declare const ConverseOutputFilterSensitiveLog: (
1568
+ obj: ConverseOutput
1569
+ ) => any;
1570
+ export declare const ConverseResponseFilterSensitiveLog: (
1571
+ obj: ConverseResponse
1572
+ ) => any;
1259
1573
  export declare const ConverseStreamRequestFilterSensitiveLog: (
1260
1574
  obj: ConverseStreamRequest
1261
1575
  ) => any;
@@ -0,0 +1,6 @@
1
+ import { PaginationConfiguration } from "@smithy/types";
2
+ import { BedrockRuntimeClient } from "../BedrockRuntimeClient";
3
+ export interface BedrockRuntimePaginationConfiguration
4
+ extends PaginationConfiguration {
5
+ client: BedrockRuntimeClient;
6
+ }
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListAsyncInvokesCommandInput,
4
+ ListAsyncInvokesCommandOutput,
5
+ } from "../commands/ListAsyncInvokesCommand";
6
+ import { BedrockRuntimePaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListAsyncInvokes: (
8
+ config: BedrockRuntimePaginationConfiguration,
9
+ input: ListAsyncInvokesCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListAsyncInvokesCommandOutput>;
@@ -0,0 +1,2 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListAsyncInvokesPaginator";