@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.
Files changed (41) hide show
  1. package/README.md +31 -7
  2. package/dist-cjs/index.js +464 -112
  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 +152 -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 +190 -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 +2 -0
  17. package/dist-types/commands/ConverseCommand.d.ts +43 -0
  18. package/dist-types/commands/ConverseStreamCommand.d.ts +23 -0
  19. package/dist-types/commands/GetAsyncInvokeCommand.d.ts +101 -0
  20. package/dist-types/commands/ListAsyncInvokesCommand.d.ts +112 -0
  21. package/dist-types/commands/StartAsyncInvokeCommand.d.ts +124 -0
  22. package/dist-types/commands/index.d.ts +3 -0
  23. package/dist-types/index.d.ts +1 -0
  24. package/dist-types/models/models_0.d.ts +569 -90
  25. package/dist-types/pagination/Interfaces.d.ts +8 -0
  26. package/dist-types/pagination/ListAsyncInvokesPaginator.d.ts +7 -0
  27. package/dist-types/pagination/index.d.ts +2 -0
  28. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  29. package/dist-types/ts3.4/BedrockRuntime.d.ts +52 -0
  30. package/dist-types/ts3.4/BedrockRuntimeClient.d.ts +20 -2
  31. package/dist-types/ts3.4/commands/GetAsyncInvokeCommand.d.ts +50 -0
  32. package/dist-types/ts3.4/commands/ListAsyncInvokesCommand.d.ts +50 -0
  33. package/dist-types/ts3.4/commands/StartAsyncInvokeCommand.d.ts +50 -0
  34. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  35. package/dist-types/ts3.4/index.d.ts +1 -0
  36. package/dist-types/ts3.4/models/models_0.d.ts +237 -42
  37. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  38. package/dist-types/ts3.4/pagination/ListAsyncInvokesPaginator.d.ts +11 -0
  39. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  40. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  41. package/package.json +4 -2
@@ -14,6 +14,404 @@ export declare class AccessDeniedException extends __BaseException {
14
14
  */
15
15
  constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
16
16
  }
17
+ /**
18
+ * @public
19
+ */
20
+ export interface GetAsyncInvokeRequest {
21
+ /**
22
+ * <p>The invocation's ARN.</p>
23
+ * @public
24
+ */
25
+ invocationArn: string | undefined;
26
+ }
27
+ /**
28
+ * <p>Asynchronous invocation output data settings.</p>
29
+ * @public
30
+ */
31
+ export interface AsyncInvokeS3OutputDataConfig {
32
+ /**
33
+ * <p>An object URI starting with <code>s3://</code>.</p>
34
+ * @public
35
+ */
36
+ s3Uri: string | undefined;
37
+ /**
38
+ * <p>A KMS encryption key ID.</p>
39
+ * @public
40
+ */
41
+ kmsKeyId?: string | undefined;
42
+ /**
43
+ * <p>If the bucket belongs to another AWS account, specify that account's ID.</p>
44
+ * @public
45
+ */
46
+ bucketOwner?: string | undefined;
47
+ }
48
+ /**
49
+ * <p>Asynchronous invocation output data settings.</p>
50
+ * @public
51
+ */
52
+ export type AsyncInvokeOutputDataConfig = AsyncInvokeOutputDataConfig.S3OutputDataConfigMember | AsyncInvokeOutputDataConfig.$UnknownMember;
53
+ /**
54
+ * @public
55
+ */
56
+ export declare namespace AsyncInvokeOutputDataConfig {
57
+ /**
58
+ * <p>A storage location for the output data in an S3 bucket</p>
59
+ * @public
60
+ */
61
+ interface S3OutputDataConfigMember {
62
+ s3OutputDataConfig: AsyncInvokeS3OutputDataConfig;
63
+ $unknown?: never;
64
+ }
65
+ /**
66
+ * @public
67
+ */
68
+ interface $UnknownMember {
69
+ s3OutputDataConfig?: never;
70
+ $unknown: [string, any];
71
+ }
72
+ interface Visitor<T> {
73
+ s3OutputDataConfig: (value: AsyncInvokeS3OutputDataConfig) => T;
74
+ _: (name: string, value: any) => T;
75
+ }
76
+ const visit: <T>(value: AsyncInvokeOutputDataConfig, visitor: Visitor<T>) => T;
77
+ }
78
+ /**
79
+ * @public
80
+ * @enum
81
+ */
82
+ export declare const AsyncInvokeStatus: {
83
+ readonly COMPLETED: "Completed";
84
+ readonly FAILED: "Failed";
85
+ readonly IN_PROGRESS: "InProgress";
86
+ };
87
+ /**
88
+ * @public
89
+ */
90
+ export type AsyncInvokeStatus = (typeof AsyncInvokeStatus)[keyof typeof AsyncInvokeStatus];
91
+ /**
92
+ * @public
93
+ */
94
+ export interface GetAsyncInvokeResponse {
95
+ /**
96
+ * <p>The invocation's ARN.</p>
97
+ * @public
98
+ */
99
+ invocationArn: string | undefined;
100
+ /**
101
+ * <p>The invocation's model ARN.</p>
102
+ * @public
103
+ */
104
+ modelArn: string | undefined;
105
+ /**
106
+ * <p>The invocation's idempotency token.</p>
107
+ * @public
108
+ */
109
+ clientRequestToken?: string | undefined;
110
+ /**
111
+ * <p>The invocation's status.</p>
112
+ * @public
113
+ */
114
+ status: AsyncInvokeStatus | undefined;
115
+ /**
116
+ * <p>An error message.</p>
117
+ * @public
118
+ */
119
+ failureMessage?: string | undefined;
120
+ /**
121
+ * <p>When the invocation request was submitted.</p>
122
+ * @public
123
+ */
124
+ submitTime: Date | undefined;
125
+ /**
126
+ * <p>The invocation's last modified time.</p>
127
+ * @public
128
+ */
129
+ lastModifiedTime?: Date | undefined;
130
+ /**
131
+ * <p>When the invocation ended.</p>
132
+ * @public
133
+ */
134
+ endTime?: Date | undefined;
135
+ /**
136
+ * <p>Output data settings.</p>
137
+ * @public
138
+ */
139
+ outputDataConfig: AsyncInvokeOutputDataConfig | undefined;
140
+ }
141
+ /**
142
+ * <p>An internal server error occurred. For troubleshooting this error,
143
+ * see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-internal-failure">InternalFailure</a> in the Amazon Bedrock User Guide</p>
144
+ * @public
145
+ */
146
+ export declare class InternalServerException extends __BaseException {
147
+ readonly name: "InternalServerException";
148
+ readonly $fault: "server";
149
+ /**
150
+ * @internal
151
+ */
152
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
153
+ }
154
+ /**
155
+ * <p>Your request was denied due to exceeding the account quotas for <i>Amazon Bedrock</i>. For
156
+ * troubleshooting this error, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-throttling-exception">ThrottlingException</a> in the Amazon Bedrock User Guide</p>
157
+ * @public
158
+ */
159
+ export declare class ThrottlingException extends __BaseException {
160
+ readonly name: "ThrottlingException";
161
+ readonly $fault: "client";
162
+ /**
163
+ * @internal
164
+ */
165
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
166
+ }
167
+ /**
168
+ * <p>The input fails to satisfy the constraints specified by <i>Amazon Bedrock</i>. For troubleshooting this error,
169
+ * see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-validation-error">ValidationError</a> in the Amazon Bedrock User Guide</p>
170
+ * @public
171
+ */
172
+ export declare class ValidationException extends __BaseException {
173
+ readonly name: "ValidationException";
174
+ readonly $fault: "client";
175
+ /**
176
+ * @internal
177
+ */
178
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
179
+ }
180
+ /**
181
+ * @public
182
+ * @enum
183
+ */
184
+ export declare const SortAsyncInvocationBy: {
185
+ readonly SUBMISSION_TIME: "SubmissionTime";
186
+ };
187
+ /**
188
+ * @public
189
+ */
190
+ export type SortAsyncInvocationBy = (typeof SortAsyncInvocationBy)[keyof typeof SortAsyncInvocationBy];
191
+ /**
192
+ * @public
193
+ * @enum
194
+ */
195
+ export declare const SortOrder: {
196
+ readonly ASCENDING: "Ascending";
197
+ readonly DESCENDING: "Descending";
198
+ };
199
+ /**
200
+ * @public
201
+ */
202
+ export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
203
+ /**
204
+ * @public
205
+ */
206
+ export interface ListAsyncInvokesRequest {
207
+ /**
208
+ * <p>Include invocations submitted after this time.</p>
209
+ * @public
210
+ */
211
+ submitTimeAfter?: Date | undefined;
212
+ /**
213
+ * <p>Include invocations submitted before this time.</p>
214
+ * @public
215
+ */
216
+ submitTimeBefore?: Date | undefined;
217
+ /**
218
+ * <p>Filter invocations by status.</p>
219
+ * @public
220
+ */
221
+ statusEquals?: AsyncInvokeStatus | undefined;
222
+ /**
223
+ * <p>The maximum number of invocations to return in one page of results.</p>
224
+ * @public
225
+ */
226
+ maxResults?: number | undefined;
227
+ /**
228
+ * <p>Specify the pagination token from a previous request to retrieve the next page of results.</p>
229
+ * @public
230
+ */
231
+ nextToken?: string | undefined;
232
+ /**
233
+ * <p>How to sort the response.</p>
234
+ * @public
235
+ */
236
+ sortBy?: SortAsyncInvocationBy | undefined;
237
+ /**
238
+ * <p>The sorting order for the response.</p>
239
+ * @public
240
+ */
241
+ sortOrder?: SortOrder | undefined;
242
+ }
243
+ /**
244
+ * <p>A summary of an asynchronous invocation.</p>
245
+ * @public
246
+ */
247
+ export interface AsyncInvokeSummary {
248
+ /**
249
+ * <p>The invocation's ARN.</p>
250
+ * @public
251
+ */
252
+ invocationArn: string | undefined;
253
+ /**
254
+ * <p>The invoked model's ARN.</p>
255
+ * @public
256
+ */
257
+ modelArn: string | undefined;
258
+ /**
259
+ * <p>The invocation's idempotency token.</p>
260
+ * @public
261
+ */
262
+ clientRequestToken?: string | undefined;
263
+ /**
264
+ * <p>The invocation's status.</p>
265
+ * @public
266
+ */
267
+ status?: AsyncInvokeStatus | undefined;
268
+ /**
269
+ * <p>An error message.</p>
270
+ * @public
271
+ */
272
+ failureMessage?: string | undefined;
273
+ /**
274
+ * <p>When the invocation was submitted.</p>
275
+ * @public
276
+ */
277
+ submitTime: Date | undefined;
278
+ /**
279
+ * <p>When the invocation was last modified.</p>
280
+ * @public
281
+ */
282
+ lastModifiedTime?: Date | undefined;
283
+ /**
284
+ * <p>When the invocation ended.</p>
285
+ * @public
286
+ */
287
+ endTime?: Date | undefined;
288
+ /**
289
+ * <p>The invocation's output data settings.</p>
290
+ * @public
291
+ */
292
+ outputDataConfig: AsyncInvokeOutputDataConfig | undefined;
293
+ }
294
+ /**
295
+ * @public
296
+ */
297
+ export interface ListAsyncInvokesResponse {
298
+ /**
299
+ * <p>Specify the pagination token from a previous request to retrieve the next page of results.</p>
300
+ * @public
301
+ */
302
+ nextToken?: string | undefined;
303
+ /**
304
+ * <p>A list of invocation summaries.</p>
305
+ * @public
306
+ */
307
+ asyncInvokeSummaries?: AsyncInvokeSummary[] | undefined;
308
+ }
309
+ /**
310
+ * <p>Error occurred because of a conflict while performing an operation.</p>
311
+ * @public
312
+ */
313
+ export declare class ConflictException extends __BaseException {
314
+ readonly name: "ConflictException";
315
+ readonly $fault: "client";
316
+ /**
317
+ * @internal
318
+ */
319
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
320
+ }
321
+ /**
322
+ * <p>The specified resource ARN was not found. For troubleshooting this error,
323
+ * see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-resource-not-found">ResourceNotFound</a> in the Amazon Bedrock User Guide</p>
324
+ * @public
325
+ */
326
+ export declare class ResourceNotFoundException extends __BaseException {
327
+ readonly name: "ResourceNotFoundException";
328
+ readonly $fault: "client";
329
+ /**
330
+ * @internal
331
+ */
332
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
333
+ }
334
+ /**
335
+ * <p>Your request exceeds the service quota for your account. You can view your quotas at <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/gs-request-quota.html">Viewing service quotas</a>. You can resubmit your request later.</p>
336
+ * @public
337
+ */
338
+ export declare class ServiceQuotaExceededException extends __BaseException {
339
+ readonly name: "ServiceQuotaExceededException";
340
+ readonly $fault: "client";
341
+ /**
342
+ * @internal
343
+ */
344
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
345
+ }
346
+ /**
347
+ * <p>The service isn't currently available. For troubleshooting this error,
348
+ * see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-service-unavailable">ServiceUnavailable</a> in the Amazon Bedrock User Guide</p>
349
+ * @public
350
+ */
351
+ export declare class ServiceUnavailableException extends __BaseException {
352
+ readonly name: "ServiceUnavailableException";
353
+ readonly $fault: "server";
354
+ /**
355
+ * @internal
356
+ */
357
+ constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
358
+ }
359
+ /**
360
+ * <p>A tag.</p>
361
+ * @public
362
+ */
363
+ export interface Tag {
364
+ /**
365
+ * <p>The tag's key.</p>
366
+ * @public
367
+ */
368
+ key: string | undefined;
369
+ /**
370
+ * <p>The tag's value.</p>
371
+ * @public
372
+ */
373
+ value: string | undefined;
374
+ }
375
+ /**
376
+ * @public
377
+ */
378
+ export interface StartAsyncInvokeRequest {
379
+ /**
380
+ * <p>Specify idempotency token to ensure that requests are not duplicated.</p>
381
+ * @public
382
+ */
383
+ clientRequestToken?: string | undefined;
384
+ /**
385
+ * <p>The model to invoke.</p>
386
+ * @public
387
+ */
388
+ modelId: string | undefined;
389
+ /**
390
+ * <p>Input to send to the model.</p>
391
+ * @public
392
+ */
393
+ modelInput: __DocumentType | undefined;
394
+ /**
395
+ * <p>Where to store the output.</p>
396
+ * @public
397
+ */
398
+ outputDataConfig: AsyncInvokeOutputDataConfig | undefined;
399
+ /**
400
+ * <p>Tags to apply to the invocation.</p>
401
+ * @public
402
+ */
403
+ tags?: Tag[] | undefined;
404
+ }
405
+ /**
406
+ * @public
407
+ */
408
+ export interface StartAsyncInvokeResponse {
409
+ /**
410
+ * <p>The ARN of the invocation.</p>
411
+ * @public
412
+ */
413
+ invocationArn: string | undefined;
414
+ }
17
415
  /**
18
416
  * @public
19
417
  * @enum
@@ -681,70 +1079,6 @@ export interface ApplyGuardrailResponse {
681
1079
  */
682
1080
  guardrailCoverage?: GuardrailCoverage | undefined;
683
1081
  }
684
- /**
685
- * <p>An internal server error occurred. For troubleshooting this error,
686
- * see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-internal-failure">InternalFailure</a> in the Amazon Bedrock User Guide</p>
687
- * @public
688
- */
689
- export declare class InternalServerException extends __BaseException {
690
- readonly name: "InternalServerException";
691
- readonly $fault: "server";
692
- /**
693
- * @internal
694
- */
695
- constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
696
- }
697
- /**
698
- * <p>The specified resource ARN was not found. For troubleshooting this error,
699
- * see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-resource-not-found">ResourceNotFound</a> in the Amazon Bedrock User Guide</p>
700
- * @public
701
- */
702
- export declare class ResourceNotFoundException extends __BaseException {
703
- readonly name: "ResourceNotFoundException";
704
- readonly $fault: "client";
705
- /**
706
- * @internal
707
- */
708
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
709
- }
710
- /**
711
- * <p>Your request exceeds the service quota for your account. You can view your quotas at <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/gs-request-quota.html">Viewing service quotas</a>. You can resubmit your request later.</p>
712
- * @public
713
- */
714
- export declare class ServiceQuotaExceededException extends __BaseException {
715
- readonly name: "ServiceQuotaExceededException";
716
- readonly $fault: "client";
717
- /**
718
- * @internal
719
- */
720
- constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
721
- }
722
- /**
723
- * <p>Your request was denied due to exceeding the account quotas for <i>Amazon Bedrock</i>. For
724
- * troubleshooting this error, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-throttling-exception">ThrottlingException</a> in the Amazon Bedrock User Guide</p>
725
- * @public
726
- */
727
- export declare class ThrottlingException extends __BaseException {
728
- readonly name: "ThrottlingException";
729
- readonly $fault: "client";
730
- /**
731
- * @internal
732
- */
733
- constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
734
- }
735
- /**
736
- * <p>The input fails to satisfy the constraints specified by <i>Amazon Bedrock</i>. For troubleshooting this error,
737
- * see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-validation-error">ValidationError</a> in the Amazon Bedrock User Guide</p>
738
- * @public
739
- */
740
- export declare class ValidationException extends __BaseException {
741
- readonly name: "ValidationException";
742
- readonly $fault: "client";
743
- /**
744
- * @internal
745
- */
746
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
747
- }
748
1082
  /**
749
1083
  * @public
750
1084
  * @enum
@@ -1033,11 +1367,106 @@ export interface ImageBlock {
1033
1367
  */
1034
1368
  source: ImageSource | undefined;
1035
1369
  }
1370
+ /**
1371
+ * @public
1372
+ * @enum
1373
+ */
1374
+ export declare const VideoFormat: {
1375
+ readonly FLV: "flv";
1376
+ readonly MKV: "mkv";
1377
+ readonly MOV: "mov";
1378
+ readonly MP4: "mp4";
1379
+ readonly MPEG: "mpeg";
1380
+ readonly MPG: "mpg";
1381
+ readonly THREE_GP: "three_gp";
1382
+ readonly WEBM: "webm";
1383
+ readonly WMV: "wmv";
1384
+ };
1385
+ /**
1386
+ * @public
1387
+ */
1388
+ export type VideoFormat = (typeof VideoFormat)[keyof typeof VideoFormat];
1389
+ /**
1390
+ * <p>A storage location in an S3 bucket.</p>
1391
+ * @public
1392
+ */
1393
+ export interface S3Location {
1394
+ /**
1395
+ * <p>An object URI starting with <code>s3://</code>.</p>
1396
+ * @public
1397
+ */
1398
+ uri: string | undefined;
1399
+ /**
1400
+ * <p>If the bucket belongs to another AWS account, specify that account's ID.</p>
1401
+ * @public
1402
+ */
1403
+ bucketOwner?: string | undefined;
1404
+ }
1405
+ /**
1406
+ * <p>A video source. You can upload a smaller video as a base64-encoded string as
1407
+ * long as the encoded file is less than 25MB. You can also transfer videos up to 1GB in size
1408
+ * from an S3 bucket.</p>
1409
+ * @public
1410
+ */
1411
+ export type VideoSource = VideoSource.BytesMember | VideoSource.S3LocationMember | VideoSource.$UnknownMember;
1412
+ /**
1413
+ * @public
1414
+ */
1415
+ export declare namespace VideoSource {
1416
+ /**
1417
+ * <p>Video content encoded in base64.</p>
1418
+ * @public
1419
+ */
1420
+ interface BytesMember {
1421
+ bytes: Uint8Array;
1422
+ s3Location?: never;
1423
+ $unknown?: never;
1424
+ }
1425
+ /**
1426
+ * <p>The location of a video object in an S3 bucket.</p>
1427
+ * @public
1428
+ */
1429
+ interface S3LocationMember {
1430
+ bytes?: never;
1431
+ s3Location: S3Location;
1432
+ $unknown?: never;
1433
+ }
1434
+ /**
1435
+ * @public
1436
+ */
1437
+ interface $UnknownMember {
1438
+ bytes?: never;
1439
+ s3Location?: never;
1440
+ $unknown: [string, any];
1441
+ }
1442
+ interface Visitor<T> {
1443
+ bytes: (value: Uint8Array) => T;
1444
+ s3Location: (value: S3Location) => T;
1445
+ _: (name: string, value: any) => T;
1446
+ }
1447
+ const visit: <T>(value: VideoSource, visitor: Visitor<T>) => T;
1448
+ }
1449
+ /**
1450
+ * <p>A video block.</p>
1451
+ * @public
1452
+ */
1453
+ export interface VideoBlock {
1454
+ /**
1455
+ * <p>The block's format.</p>
1456
+ * @public
1457
+ */
1458
+ format: VideoFormat | undefined;
1459
+ /**
1460
+ * <p>The block's source.</p>
1461
+ * @public
1462
+ */
1463
+ source: VideoSource | undefined;
1464
+ }
1036
1465
  /**
1037
1466
  * <p>The tool result content block.</p>
1038
1467
  * @public
1039
1468
  */
1040
- export type ToolResultContentBlock = ToolResultContentBlock.DocumentMember | ToolResultContentBlock.ImageMember | ToolResultContentBlock.JsonMember | ToolResultContentBlock.TextMember | ToolResultContentBlock.$UnknownMember;
1469
+ export type ToolResultContentBlock = ToolResultContentBlock.DocumentMember | ToolResultContentBlock.ImageMember | ToolResultContentBlock.JsonMember | ToolResultContentBlock.TextMember | ToolResultContentBlock.VideoMember | ToolResultContentBlock.$UnknownMember;
1041
1470
  /**
1042
1471
  * @public
1043
1472
  */
@@ -1051,6 +1480,7 @@ export declare namespace ToolResultContentBlock {
1051
1480
  text?: never;
1052
1481
  image?: never;
1053
1482
  document?: never;
1483
+ video?: never;
1054
1484
  $unknown?: never;
1055
1485
  }
1056
1486
  /**
@@ -1062,6 +1492,7 @@ export declare namespace ToolResultContentBlock {
1062
1492
  text: string;
1063
1493
  image?: never;
1064
1494
  document?: never;
1495
+ video?: never;
1065
1496
  $unknown?: never;
1066
1497
  }
1067
1498
  /**
@@ -1076,6 +1507,7 @@ export declare namespace ToolResultContentBlock {
1076
1507
  text?: never;
1077
1508
  image: ImageBlock;
1078
1509
  document?: never;
1510
+ video?: never;
1079
1511
  $unknown?: never;
1080
1512
  }
1081
1513
  /**
@@ -1087,6 +1519,19 @@ export declare namespace ToolResultContentBlock {
1087
1519
  text?: never;
1088
1520
  image?: never;
1089
1521
  document: DocumentBlock;
1522
+ video?: never;
1523
+ $unknown?: never;
1524
+ }
1525
+ /**
1526
+ * <p>A tool result that is video.</p>
1527
+ * @public
1528
+ */
1529
+ interface VideoMember {
1530
+ json?: never;
1531
+ text?: never;
1532
+ image?: never;
1533
+ document?: never;
1534
+ video: VideoBlock;
1090
1535
  $unknown?: never;
1091
1536
  }
1092
1537
  /**
@@ -1097,6 +1542,7 @@ export declare namespace ToolResultContentBlock {
1097
1542
  text?: never;
1098
1543
  image?: never;
1099
1544
  document?: never;
1545
+ video?: never;
1100
1546
  $unknown: [string, any];
1101
1547
  }
1102
1548
  interface Visitor<T> {
@@ -1104,6 +1550,7 @@ export declare namespace ToolResultContentBlock {
1104
1550
  text: (value: string) => T;
1105
1551
  image: (value: ImageBlock) => T;
1106
1552
  document: (value: DocumentBlock) => T;
1553
+ video: (value: VideoBlock) => T;
1107
1554
  _: (name: string, value: any) => T;
1108
1555
  }
1109
1556
  const visit: <T>(value: ToolResultContentBlock, visitor: Visitor<T>) => T;
@@ -1171,7 +1618,7 @@ export interface ToolUseBlock {
1171
1618
  * <p>A block of content for a message that you pass to, or receive from, a model with the <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html">Converse</a> or <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html">ConverseStream</a> API operations.</p>
1172
1619
  * @public
1173
1620
  */
1174
- export type ContentBlock = ContentBlock.DocumentMember | ContentBlock.GuardContentMember | ContentBlock.ImageMember | ContentBlock.TextMember | ContentBlock.ToolResultMember | ContentBlock.ToolUseMember | ContentBlock.$UnknownMember;
1621
+ export type ContentBlock = ContentBlock.DocumentMember | ContentBlock.GuardContentMember | ContentBlock.ImageMember | ContentBlock.TextMember | ContentBlock.ToolResultMember | ContentBlock.ToolUseMember | ContentBlock.VideoMember | ContentBlock.$UnknownMember;
1175
1622
  /**
1176
1623
  * @public
1177
1624
  */
@@ -1184,6 +1631,7 @@ export declare namespace ContentBlock {
1184
1631
  text: string;
1185
1632
  image?: never;
1186
1633
  document?: never;
1634
+ video?: never;
1187
1635
  toolUse?: never;
1188
1636
  toolResult?: never;
1189
1637
  guardContent?: never;
@@ -1200,6 +1648,7 @@ export declare namespace ContentBlock {
1200
1648
  text?: never;
1201
1649
  image: ImageBlock;
1202
1650
  document?: never;
1651
+ video?: never;
1203
1652
  toolUse?: never;
1204
1653
  toolResult?: never;
1205
1654
  guardContent?: never;
@@ -1213,6 +1662,21 @@ export declare namespace ContentBlock {
1213
1662
  text?: never;
1214
1663
  image?: never;
1215
1664
  document: DocumentBlock;
1665
+ video?: never;
1666
+ toolUse?: never;
1667
+ toolResult?: never;
1668
+ guardContent?: never;
1669
+ $unknown?: never;
1670
+ }
1671
+ /**
1672
+ * <p>Video to include in the message. </p>
1673
+ * @public
1674
+ */
1675
+ interface VideoMember {
1676
+ text?: never;
1677
+ image?: never;
1678
+ document?: never;
1679
+ video: VideoBlock;
1216
1680
  toolUse?: never;
1217
1681
  toolResult?: never;
1218
1682
  guardContent?: never;
@@ -1226,6 +1690,7 @@ export declare namespace ContentBlock {
1226
1690
  text?: never;
1227
1691
  image?: never;
1228
1692
  document?: never;
1693
+ video?: never;
1229
1694
  toolUse: ToolUseBlock;
1230
1695
  toolResult?: never;
1231
1696
  guardContent?: never;
@@ -1239,6 +1704,7 @@ export declare namespace ContentBlock {
1239
1704
  text?: never;
1240
1705
  image?: never;
1241
1706
  document?: never;
1707
+ video?: never;
1242
1708
  toolUse?: never;
1243
1709
  toolResult: ToolResultBlock;
1244
1710
  guardContent?: never;
@@ -1257,6 +1723,7 @@ export declare namespace ContentBlock {
1257
1723
  text?: never;
1258
1724
  image?: never;
1259
1725
  document?: never;
1726
+ video?: never;
1260
1727
  toolUse?: never;
1261
1728
  toolResult?: never;
1262
1729
  guardContent: GuardrailConverseContentBlock;
@@ -1269,6 +1736,7 @@ export declare namespace ContentBlock {
1269
1736
  text?: never;
1270
1737
  image?: never;
1271
1738
  document?: never;
1739
+ video?: never;
1272
1740
  toolUse?: never;
1273
1741
  toolResult?: never;
1274
1742
  guardContent?: never;
@@ -1278,6 +1746,7 @@ export declare namespace ContentBlock {
1278
1746
  text: (value: string) => T;
1279
1747
  image: (value: ImageBlock) => T;
1280
1748
  document: (value: DocumentBlock) => T;
1749
+ video: (value: VideoBlock) => T;
1281
1750
  toolUse: (value: ToolUseBlock) => T;
1282
1751
  toolResult: (value: ToolResultBlock) => T;
1283
1752
  guardContent: (value: GuardrailConverseContentBlock) => T;
@@ -1592,9 +2061,6 @@ export declare namespace Tool {
1592
2061
  }
1593
2062
  /**
1594
2063
  * <p>Configuration information for the tools that you pass to a model. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html">Tool use (function calling)</a> in the Amazon Bedrock User Guide.</p>
1595
- * <note>
1596
- * <p>This field is only supported by Anthropic Claude 3, Cohere Command R, Cohere Command R+, and Mistral Large models.</p>
1597
- * </note>
1598
2064
  * @public
1599
2065
  */
1600
2066
  export interface ToolConfiguration {
@@ -1655,9 +2121,8 @@ export interface ConverseRequest {
1655
2121
  inferenceConfig?: InferenceConfiguration | undefined;
1656
2122
  /**
1657
2123
  * <p>Configuration information for the tools that the model can use when generating a response. </p>
1658
- * <note>
1659
- * <p>This field is only supported by Anthropic Claude 3, Cohere Command R, Cohere Command R+, and Mistral Large models.</p>
1660
- * </note>
2124
+ * <p>For information about models that support tool use, see
2125
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference.html#conversation-inference-supported-models-features">Supported models and model features</a>.</p>
1661
2126
  * @public
1662
2127
  */
1663
2128
  toolConfig?: ToolConfiguration | undefined;
@@ -1696,6 +2161,11 @@ export interface ConverseRequest {
1696
2161
  * @public
1697
2162
  */
1698
2163
  additionalModelResponseFieldPaths?: string[] | undefined;
2164
+ /**
2165
+ * <p>Key-value pairs that you can use to filter invocation logs.</p>
2166
+ * @public
2167
+ */
2168
+ requestMetadata?: Record<string, string> | undefined;
1699
2169
  /**
1700
2170
  * <p>Model performance settings for the request.</p>
1701
2171
  * @public
@@ -1904,19 +2374,6 @@ export declare class ModelTimeoutException extends __BaseException {
1904
2374
  */
1905
2375
  constructor(opts: __ExceptionOptionType<ModelTimeoutException, __BaseException>);
1906
2376
  }
1907
- /**
1908
- * <p>The service isn't currently available. For troubleshooting this error,
1909
- * see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-service-unavailable">ServiceUnavailable</a> in the Amazon Bedrock User Guide</p>
1910
- * @public
1911
- */
1912
- export declare class ServiceUnavailableException extends __BaseException {
1913
- readonly name: "ServiceUnavailableException";
1914
- readonly $fault: "server";
1915
- /**
1916
- * @internal
1917
- */
1918
- constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
1919
- }
1920
2377
  /**
1921
2378
  * @public
1922
2379
  * @enum
@@ -2004,9 +2461,8 @@ export interface ConverseStreamRequest {
2004
2461
  inferenceConfig?: InferenceConfiguration | undefined;
2005
2462
  /**
2006
2463
  * <p>Configuration information for the tools that the model can use when generating a response.</p>
2007
- * <note>
2008
- * <p>This field is only supported by Anthropic Claude 3 models.</p>
2009
- * </note>
2464
+ * <p>For information about models that support streaming tool use, see
2465
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference.html#conversation-inference-supported-models-features">Supported models and model features</a>.</p>
2010
2466
  * @public
2011
2467
  */
2012
2468
  toolConfig?: ToolConfiguration | undefined;
@@ -2045,6 +2501,11 @@ export interface ConverseStreamRequest {
2045
2501
  * @public
2046
2502
  */
2047
2503
  additionalModelResponseFieldPaths?: string[] | undefined;
2504
+ /**
2505
+ * <p>Key-value pairs that you can use to filter invocation logs.</p>
2506
+ * @public
2507
+ */
2508
+ requestMetadata?: Record<string, string> | undefined;
2048
2509
  /**
2049
2510
  * <p>Model performance settings for the request.</p>
2050
2511
  * @public
@@ -2444,7 +2905,8 @@ export declare namespace ConverseStreamOutput {
2444
2905
  $unknown?: never;
2445
2906
  }
2446
2907
  /**
2447
- * <p>Input validation failed. Check your request parameters and retry the request.</p>
2908
+ * <p>The input fails to satisfy the constraints specified by <i>Amazon Bedrock</i>. For troubleshooting this error,
2909
+ * see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-validation-error">ValidationError</a> in the Amazon Bedrock User Guide</p>
2448
2910
  * @public
2449
2911
  */
2450
2912
  interface ValidationExceptionMember {
@@ -2462,7 +2924,8 @@ export declare namespace ConverseStreamOutput {
2462
2924
  $unknown?: never;
2463
2925
  }
2464
2926
  /**
2465
- * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
2927
+ * <p>Your request was denied due to exceeding the account quotas for <i>Amazon Bedrock</i>. For
2928
+ * troubleshooting this error, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-throttling-exception">ThrottlingException</a> in the Amazon Bedrock User Guide</p>
2466
2929
  * @public
2467
2930
  */
2468
2931
  interface ThrottlingExceptionMember {
@@ -2891,6 +3354,22 @@ export interface InvokeModelWithResponseStreamResponse {
2891
3354
  */
2892
3355
  performanceConfigLatency?: PerformanceConfigLatency | undefined;
2893
3356
  }
3357
+ /**
3358
+ * @internal
3359
+ */
3360
+ export declare const GetAsyncInvokeResponseFilterSensitiveLog: (obj: GetAsyncInvokeResponse) => any;
3361
+ /**
3362
+ * @internal
3363
+ */
3364
+ export declare const AsyncInvokeSummaryFilterSensitiveLog: (obj: AsyncInvokeSummary) => any;
3365
+ /**
3366
+ * @internal
3367
+ */
3368
+ export declare const ListAsyncInvokesResponseFilterSensitiveLog: (obj: ListAsyncInvokesResponse) => any;
3369
+ /**
3370
+ * @internal
3371
+ */
3372
+ export declare const StartAsyncInvokeRequestFilterSensitiveLog: (obj: StartAsyncInvokeRequest) => any;
2894
3373
  /**
2895
3374
  * @internal
2896
3375
  */