@aws-sdk/client-bedrock-runtime 3.940.0 → 3.943.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +72 -14
- package/dist-es/models/enums.js +20 -0
- package/dist-es/schemas/schemas_0.js +51 -14
- package/dist-types/commands/ConverseCommand.d.ts +43 -11
- package/dist-types/commands/ConverseStreamCommand.d.ts +39 -7
- package/dist-types/commands/CountTokensCommand.d.ts +20 -4
- package/dist-types/commands/InvokeModelCommand.d.ts +2 -2
- package/dist-types/commands/InvokeModelWithResponseStreamCommand.d.ts +2 -2
- package/dist-types/models/enums.d.ts +28 -0
- package/dist-types/models/models_0.d.ts +208 -21
- package/dist-types/schemas/schemas_0.d.ts +5 -0
- package/dist-types/ts3.4/models/enums.d.ts +21 -0
- package/dist-types/ts3.4/models/models_0.d.ts +113 -4
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +5 -0
- package/package.json +6 -6
|
@@ -53,6 +53,9 @@ declare const ConverseStreamCommand_base: {
|
|
|
53
53
|
* bucketOwner: "STRING_VALUE",
|
|
54
54
|
* },
|
|
55
55
|
* },
|
|
56
|
+
* error: { // ErrorBlock
|
|
57
|
+
* message: "STRING_VALUE",
|
|
58
|
+
* },
|
|
56
59
|
* },
|
|
57
60
|
* document: { // DocumentBlock
|
|
58
61
|
* format: "pdf" || "csv" || "doc" || "docx" || "xls" || "xlsx" || "html" || "txt" || "md",
|
|
@@ -85,6 +88,19 @@ declare const ConverseStreamCommand_base: {
|
|
|
85
88
|
* },
|
|
86
89
|
* },
|
|
87
90
|
* },
|
|
91
|
+
* audio: { // AudioBlock
|
|
92
|
+
* format: "mp3" || "opus" || "wav" || "aac" || "flac" || "mp4" || "ogg" || "mkv" || "mka" || "x-aac" || "m4a" || "mpeg" || "mpga" || "pcm" || "webm", // required
|
|
93
|
+
* source: { // AudioSource Union: only one key present
|
|
94
|
+
* bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
95
|
+
* s3Location: {
|
|
96
|
+
* uri: "STRING_VALUE", // required
|
|
97
|
+
* bucketOwner: "STRING_VALUE",
|
|
98
|
+
* },
|
|
99
|
+
* },
|
|
100
|
+
* error: {
|
|
101
|
+
* message: "STRING_VALUE",
|
|
102
|
+
* },
|
|
103
|
+
* },
|
|
88
104
|
* toolUse: { // ToolUseBlock
|
|
89
105
|
* toolUseId: "STRING_VALUE", // required
|
|
90
106
|
* name: "STRING_VALUE", // required
|
|
@@ -106,16 +122,16 @@ declare const ConverseStreamCommand_base: {
|
|
|
106
122
|
* bucketOwner: "STRING_VALUE",
|
|
107
123
|
* },
|
|
108
124
|
* },
|
|
125
|
+
* error: {
|
|
126
|
+
* message: "STRING_VALUE",
|
|
127
|
+
* },
|
|
109
128
|
* },
|
|
110
129
|
* document: {
|
|
111
130
|
* format: "pdf" || "csv" || "doc" || "docx" || "xls" || "xlsx" || "html" || "txt" || "md",
|
|
112
131
|
* name: "STRING_VALUE", // required
|
|
113
132
|
* source: {// Union: only one key present
|
|
114
133
|
* bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
115
|
-
* s3Location:
|
|
116
|
-
* uri: "STRING_VALUE", // required
|
|
117
|
-
* bucketOwner: "STRING_VALUE",
|
|
118
|
-
* },
|
|
134
|
+
* s3Location: "<S3Location>",
|
|
119
135
|
* text: "STRING_VALUE",
|
|
120
136
|
* content: [
|
|
121
137
|
* {// Union: only one key present
|
|
@@ -312,7 +328,7 @@ declare const ConverseStreamCommand_base: {
|
|
|
312
328
|
* latency: "standard" || "optimized",
|
|
313
329
|
* },
|
|
314
330
|
* serviceTier: { // ServiceTier
|
|
315
|
-
* type: "priority" || "default" || "flex", // required
|
|
331
|
+
* type: "priority" || "default" || "flex" || "reserved", // required
|
|
316
332
|
* },
|
|
317
333
|
* };
|
|
318
334
|
* const command = new ConverseStreamCommand(input);
|
|
@@ -334,6 +350,9 @@ declare const ConverseStreamCommand_base: {
|
|
|
334
350
|
* // type: "STRING_VALUE",
|
|
335
351
|
* // status: "success" || "error",
|
|
336
352
|
* // },
|
|
353
|
+
* // image: { // ImageBlockStart
|
|
354
|
+
* // format: "png" || "jpeg" || "gif" || "webp", // required
|
|
355
|
+
* // },
|
|
337
356
|
* // },
|
|
338
357
|
* // contentBlockIndex: Number("int"), // required
|
|
339
358
|
* // },
|
|
@@ -346,6 +365,7 @@ declare const ConverseStreamCommand_base: {
|
|
|
346
365
|
* // toolResult: [ // ToolResultBlocksDelta
|
|
347
366
|
* // { // ToolResultBlockDelta Union: only one key present
|
|
348
367
|
* // text: "STRING_VALUE",
|
|
368
|
+
* // json: "DOCUMENT_VALUE",
|
|
349
369
|
* // },
|
|
350
370
|
* // ],
|
|
351
371
|
* // reasoningContent: { // ReasoningContentBlockDelta Union: only one key present
|
|
@@ -388,6 +408,18 @@ declare const ConverseStreamCommand_base: {
|
|
|
388
408
|
* // },
|
|
389
409
|
* // },
|
|
390
410
|
* // },
|
|
411
|
+
* // image: { // ImageBlockDelta
|
|
412
|
+
* // source: { // ImageSource Union: only one key present
|
|
413
|
+
* // bytes: new Uint8Array(),
|
|
414
|
+
* // s3Location: { // S3Location
|
|
415
|
+
* // uri: "STRING_VALUE", // required
|
|
416
|
+
* // bucketOwner: "STRING_VALUE",
|
|
417
|
+
* // },
|
|
418
|
+
* // },
|
|
419
|
+
* // error: { // ErrorBlock
|
|
420
|
+
* // message: "STRING_VALUE",
|
|
421
|
+
* // },
|
|
422
|
+
* // },
|
|
391
423
|
* // },
|
|
392
424
|
* // contentBlockIndex: Number("int"), // required
|
|
393
425
|
* // },
|
|
@@ -395,7 +427,7 @@ declare const ConverseStreamCommand_base: {
|
|
|
395
427
|
* // contentBlockIndex: Number("int"), // required
|
|
396
428
|
* // },
|
|
397
429
|
* // messageStop: { // MessageStopEvent
|
|
398
|
-
* // stopReason: "end_turn" || "tool_use" || "max_tokens" || "stop_sequence" || "guardrail_intervened" || "content_filtered" || "model_context_window_exceeded", // required
|
|
430
|
+
* // stopReason: "end_turn" || "tool_use" || "max_tokens" || "stop_sequence" || "guardrail_intervened" || "content_filtered" || "malformed_model_output" || "malformed_tool_use" || "model_context_window_exceeded", // required
|
|
399
431
|
* // additionalModelResponseFields: "DOCUMENT_VALUE",
|
|
400
432
|
* // },
|
|
401
433
|
* // metadata: { // ConverseStreamMetadataEvent
|
|
@@ -850,7 +882,7 @@ declare const ConverseStreamCommand_base: {
|
|
|
850
882
|
* // latency: "standard" || "optimized",
|
|
851
883
|
* // },
|
|
852
884
|
* // serviceTier: { // ServiceTier
|
|
853
|
-
* // type: "priority" || "default" || "flex", // required
|
|
885
|
+
* // type: "priority" || "default" || "flex" || "reserved", // required
|
|
854
886
|
* // },
|
|
855
887
|
* // },
|
|
856
888
|
* // internalServerException: { // InternalServerException
|
|
@@ -58,6 +58,9 @@ declare const CountTokensCommand_base: {
|
|
|
58
58
|
* bucketOwner: "STRING_VALUE",
|
|
59
59
|
* },
|
|
60
60
|
* },
|
|
61
|
+
* error: { // ErrorBlock
|
|
62
|
+
* message: "STRING_VALUE",
|
|
63
|
+
* },
|
|
61
64
|
* },
|
|
62
65
|
* document: { // DocumentBlock
|
|
63
66
|
* format: "pdf" || "csv" || "doc" || "docx" || "xls" || "xlsx" || "html" || "txt" || "md",
|
|
@@ -90,6 +93,19 @@ declare const CountTokensCommand_base: {
|
|
|
90
93
|
* },
|
|
91
94
|
* },
|
|
92
95
|
* },
|
|
96
|
+
* audio: { // AudioBlock
|
|
97
|
+
* format: "mp3" || "opus" || "wav" || "aac" || "flac" || "mp4" || "ogg" || "mkv" || "mka" || "x-aac" || "m4a" || "mpeg" || "mpga" || "pcm" || "webm", // required
|
|
98
|
+
* source: { // AudioSource Union: only one key present
|
|
99
|
+
* bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
100
|
+
* s3Location: {
|
|
101
|
+
* uri: "STRING_VALUE", // required
|
|
102
|
+
* bucketOwner: "STRING_VALUE",
|
|
103
|
+
* },
|
|
104
|
+
* },
|
|
105
|
+
* error: {
|
|
106
|
+
* message: "STRING_VALUE",
|
|
107
|
+
* },
|
|
108
|
+
* },
|
|
93
109
|
* toolUse: { // ToolUseBlock
|
|
94
110
|
* toolUseId: "STRING_VALUE", // required
|
|
95
111
|
* name: "STRING_VALUE", // required
|
|
@@ -111,16 +127,16 @@ declare const CountTokensCommand_base: {
|
|
|
111
127
|
* bucketOwner: "STRING_VALUE",
|
|
112
128
|
* },
|
|
113
129
|
* },
|
|
130
|
+
* error: {
|
|
131
|
+
* message: "STRING_VALUE",
|
|
132
|
+
* },
|
|
114
133
|
* },
|
|
115
134
|
* document: {
|
|
116
135
|
* format: "pdf" || "csv" || "doc" || "docx" || "xls" || "xlsx" || "html" || "txt" || "md",
|
|
117
136
|
* name: "STRING_VALUE", // required
|
|
118
137
|
* source: {// Union: only one key present
|
|
119
138
|
* bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
120
|
-
* s3Location:
|
|
121
|
-
* uri: "STRING_VALUE", // required
|
|
122
|
-
* bucketOwner: "STRING_VALUE",
|
|
123
|
-
* },
|
|
139
|
+
* s3Location: "<S3Location>",
|
|
124
140
|
* text: "STRING_VALUE",
|
|
125
141
|
* content: [
|
|
126
142
|
* {// Union: only one key present
|
|
@@ -58,7 +58,7 @@ declare const InvokeModelCommand_base: {
|
|
|
58
58
|
* guardrailIdentifier: "STRING_VALUE",
|
|
59
59
|
* guardrailVersion: "STRING_VALUE",
|
|
60
60
|
* performanceConfigLatency: "standard" || "optimized",
|
|
61
|
-
* serviceTier: "priority" || "default" || "flex",
|
|
61
|
+
* serviceTier: "priority" || "default" || "flex" || "reserved",
|
|
62
62
|
* };
|
|
63
63
|
* const command = new InvokeModelCommand(input);
|
|
64
64
|
* const response = await client.send(command);
|
|
@@ -66,7 +66,7 @@ declare const InvokeModelCommand_base: {
|
|
|
66
66
|
* // body: new Uint8Array(), // required
|
|
67
67
|
* // contentType: "STRING_VALUE", // required
|
|
68
68
|
* // performanceConfigLatency: "standard" || "optimized",
|
|
69
|
-
* // serviceTier: "priority" || "default" || "flex",
|
|
69
|
+
* // serviceTier: "priority" || "default" || "flex" || "reserved",
|
|
70
70
|
* // };
|
|
71
71
|
*
|
|
72
72
|
* ```
|
|
@@ -51,7 +51,7 @@ declare const InvokeModelWithResponseStreamCommand_base: {
|
|
|
51
51
|
* guardrailIdentifier: "STRING_VALUE",
|
|
52
52
|
* guardrailVersion: "STRING_VALUE",
|
|
53
53
|
* performanceConfigLatency: "standard" || "optimized",
|
|
54
|
-
* serviceTier: "priority" || "default" || "flex",
|
|
54
|
+
* serviceTier: "priority" || "default" || "flex" || "reserved",
|
|
55
55
|
* };
|
|
56
56
|
* const command = new InvokeModelWithResponseStreamCommand(input);
|
|
57
57
|
* const response = await client.send(command);
|
|
@@ -83,7 +83,7 @@ declare const InvokeModelWithResponseStreamCommand_base: {
|
|
|
83
83
|
* // },
|
|
84
84
|
* // contentType: "STRING_VALUE", // required
|
|
85
85
|
* // performanceConfigLatency: "standard" || "optimized",
|
|
86
|
-
* // serviceTier: "priority" || "default" || "flex",
|
|
86
|
+
* // serviceTier: "priority" || "default" || "flex" || "reserved",
|
|
87
87
|
* // };
|
|
88
88
|
*
|
|
89
89
|
* ```
|
|
@@ -325,6 +325,31 @@ export declare const GuardrailTrace: {
|
|
|
325
325
|
* @public
|
|
326
326
|
*/
|
|
327
327
|
export type GuardrailTrace = (typeof GuardrailTrace)[keyof typeof GuardrailTrace];
|
|
328
|
+
/**
|
|
329
|
+
* @public
|
|
330
|
+
* @enum
|
|
331
|
+
*/
|
|
332
|
+
export declare const AudioFormat: {
|
|
333
|
+
readonly AAC: "aac";
|
|
334
|
+
readonly FLAC: "flac";
|
|
335
|
+
readonly M4A: "m4a";
|
|
336
|
+
readonly MKA: "mka";
|
|
337
|
+
readonly MKV: "mkv";
|
|
338
|
+
readonly MP3: "mp3";
|
|
339
|
+
readonly MP4: "mp4";
|
|
340
|
+
readonly MPEG: "mpeg";
|
|
341
|
+
readonly MPGA: "mpga";
|
|
342
|
+
readonly OGG: "ogg";
|
|
343
|
+
readonly OPUS: "opus";
|
|
344
|
+
readonly PCM: "pcm";
|
|
345
|
+
readonly WAV: "wav";
|
|
346
|
+
readonly WEBM: "webm";
|
|
347
|
+
readonly X_AAC: "x-aac";
|
|
348
|
+
};
|
|
349
|
+
/**
|
|
350
|
+
* @public
|
|
351
|
+
*/
|
|
352
|
+
export type AudioFormat = (typeof AudioFormat)[keyof typeof AudioFormat];
|
|
328
353
|
/**
|
|
329
354
|
* @public
|
|
330
355
|
* @enum
|
|
@@ -468,6 +493,7 @@ export declare const ServiceTierType: {
|
|
|
468
493
|
readonly DEFAULT: "default";
|
|
469
494
|
readonly FLEX: "flex";
|
|
470
495
|
readonly PRIORITY: "priority";
|
|
496
|
+
readonly RESERVED: "reserved";
|
|
471
497
|
};
|
|
472
498
|
/**
|
|
473
499
|
* @public
|
|
@@ -481,6 +507,8 @@ export declare const StopReason: {
|
|
|
481
507
|
readonly CONTENT_FILTERED: "content_filtered";
|
|
482
508
|
readonly END_TURN: "end_turn";
|
|
483
509
|
readonly GUARDRAIL_INTERVENED: "guardrail_intervened";
|
|
510
|
+
readonly MALFORMED_MODEL_OUTPUT: "malformed_model_output";
|
|
511
|
+
readonly MALFORMED_TOOL_USE: "malformed_tool_use";
|
|
484
512
|
readonly MAX_TOKENS: "max_tokens";
|
|
485
513
|
readonly MODEL_CONTEXT_WINDOW_EXCEEDED: "model_context_window_exceeded";
|
|
486
514
|
readonly STOP_SEQUENCE: "stop_sequence";
|