@aws-sdk/client-bedrock-runtime 3.704.0 → 3.705.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -7
- package/dist-cjs/index.js +464 -112
- package/dist-es/BedrockRuntime.js +6 -0
- package/dist-es/commands/GetAsyncInvokeCommand.js +23 -0
- package/dist-es/commands/ListAsyncInvokesCommand.js +23 -0
- package/dist-es/commands/StartAsyncInvokeCommand.js +23 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/index.js +1 -0
- package/dist-es/models/models_0.js +152 -72
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListAsyncInvokesPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +190 -2
- package/dist-types/BedrockRuntime.d.ts +22 -0
- package/dist-types/BedrockRuntimeClient.d.ts +5 -2
- package/dist-types/commands/ApplyGuardrailCommand.d.ts +2 -0
- package/dist-types/commands/ConverseCommand.d.ts +43 -0
- package/dist-types/commands/ConverseStreamCommand.d.ts +23 -0
- package/dist-types/commands/GetAsyncInvokeCommand.d.ts +101 -0
- package/dist-types/commands/ListAsyncInvokesCommand.d.ts +112 -0
- package/dist-types/commands/StartAsyncInvokeCommand.d.ts +124 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +569 -90
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListAsyncInvokesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/dist-types/ts3.4/BedrockRuntime.d.ts +52 -0
- package/dist-types/ts3.4/BedrockRuntimeClient.d.ts +20 -2
- package/dist-types/ts3.4/commands/GetAsyncInvokeCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListAsyncInvokesCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/StartAsyncInvokeCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +237 -42
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListAsyncInvokesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
- package/package.json +4 -2
|
@@ -8,6 +8,148 @@ 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
|
+
}
|
|
11
153
|
export declare const GuardrailContentQualifier: {
|
|
12
154
|
readonly GROUNDING_SOURCE: "grounding_source";
|
|
13
155
|
readonly GUARD_CONTENT: "guard_content";
|
|
@@ -255,41 +397,6 @@ export interface ApplyGuardrailResponse {
|
|
|
255
397
|
assessments: GuardrailAssessment[] | undefined;
|
|
256
398
|
guardrailCoverage?: GuardrailCoverage | undefined;
|
|
257
399
|
}
|
|
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
400
|
export declare const GuardrailTrace: {
|
|
294
401
|
readonly DISABLED: "disabled";
|
|
295
402
|
readonly ENABLED: "enabled";
|
|
@@ -402,11 +509,59 @@ export interface ImageBlock {
|
|
|
402
509
|
format: ImageFormat | undefined;
|
|
403
510
|
source: ImageSource | undefined;
|
|
404
511
|
}
|
|
512
|
+
export declare const VideoFormat: {
|
|
513
|
+
readonly FLV: "flv";
|
|
514
|
+
readonly MKV: "mkv";
|
|
515
|
+
readonly MOV: "mov";
|
|
516
|
+
readonly MP4: "mp4";
|
|
517
|
+
readonly MPEG: "mpeg";
|
|
518
|
+
readonly MPG: "mpg";
|
|
519
|
+
readonly THREE_GP: "three_gp";
|
|
520
|
+
readonly WEBM: "webm";
|
|
521
|
+
readonly WMV: "wmv";
|
|
522
|
+
};
|
|
523
|
+
export type VideoFormat = (typeof VideoFormat)[keyof typeof VideoFormat];
|
|
524
|
+
export interface S3Location {
|
|
525
|
+
uri: string | undefined;
|
|
526
|
+
bucketOwner?: string | undefined;
|
|
527
|
+
}
|
|
528
|
+
export type VideoSource =
|
|
529
|
+
| VideoSource.BytesMember
|
|
530
|
+
| VideoSource.S3LocationMember
|
|
531
|
+
| VideoSource.$UnknownMember;
|
|
532
|
+
export declare namespace VideoSource {
|
|
533
|
+
interface BytesMember {
|
|
534
|
+
bytes: Uint8Array;
|
|
535
|
+
s3Location?: never;
|
|
536
|
+
$unknown?: never;
|
|
537
|
+
}
|
|
538
|
+
interface S3LocationMember {
|
|
539
|
+
bytes?: never;
|
|
540
|
+
s3Location: S3Location;
|
|
541
|
+
$unknown?: never;
|
|
542
|
+
}
|
|
543
|
+
interface $UnknownMember {
|
|
544
|
+
bytes?: never;
|
|
545
|
+
s3Location?: never;
|
|
546
|
+
$unknown: [string, any];
|
|
547
|
+
}
|
|
548
|
+
interface Visitor<T> {
|
|
549
|
+
bytes: (value: Uint8Array) => T;
|
|
550
|
+
s3Location: (value: S3Location) => T;
|
|
551
|
+
_: (name: string, value: any) => T;
|
|
552
|
+
}
|
|
553
|
+
const visit: <T>(value: VideoSource, visitor: Visitor<T>) => T;
|
|
554
|
+
}
|
|
555
|
+
export interface VideoBlock {
|
|
556
|
+
format: VideoFormat | undefined;
|
|
557
|
+
source: VideoSource | undefined;
|
|
558
|
+
}
|
|
405
559
|
export type ToolResultContentBlock =
|
|
406
560
|
| ToolResultContentBlock.DocumentMember
|
|
407
561
|
| ToolResultContentBlock.ImageMember
|
|
408
562
|
| ToolResultContentBlock.JsonMember
|
|
409
563
|
| ToolResultContentBlock.TextMember
|
|
564
|
+
| ToolResultContentBlock.VideoMember
|
|
410
565
|
| ToolResultContentBlock.$UnknownMember;
|
|
411
566
|
export declare namespace ToolResultContentBlock {
|
|
412
567
|
interface JsonMember {
|
|
@@ -414,6 +569,7 @@ export declare namespace ToolResultContentBlock {
|
|
|
414
569
|
text?: never;
|
|
415
570
|
image?: never;
|
|
416
571
|
document?: never;
|
|
572
|
+
video?: never;
|
|
417
573
|
$unknown?: never;
|
|
418
574
|
}
|
|
419
575
|
interface TextMember {
|
|
@@ -421,6 +577,7 @@ export declare namespace ToolResultContentBlock {
|
|
|
421
577
|
text: string;
|
|
422
578
|
image?: never;
|
|
423
579
|
document?: never;
|
|
580
|
+
video?: never;
|
|
424
581
|
$unknown?: never;
|
|
425
582
|
}
|
|
426
583
|
interface ImageMember {
|
|
@@ -428,6 +585,7 @@ export declare namespace ToolResultContentBlock {
|
|
|
428
585
|
text?: never;
|
|
429
586
|
image: ImageBlock;
|
|
430
587
|
document?: never;
|
|
588
|
+
video?: never;
|
|
431
589
|
$unknown?: never;
|
|
432
590
|
}
|
|
433
591
|
interface DocumentMember {
|
|
@@ -435,6 +593,15 @@ export declare namespace ToolResultContentBlock {
|
|
|
435
593
|
text?: never;
|
|
436
594
|
image?: never;
|
|
437
595
|
document: DocumentBlock;
|
|
596
|
+
video?: never;
|
|
597
|
+
$unknown?: never;
|
|
598
|
+
}
|
|
599
|
+
interface VideoMember {
|
|
600
|
+
json?: never;
|
|
601
|
+
text?: never;
|
|
602
|
+
image?: never;
|
|
603
|
+
document?: never;
|
|
604
|
+
video: VideoBlock;
|
|
438
605
|
$unknown?: never;
|
|
439
606
|
}
|
|
440
607
|
interface $UnknownMember {
|
|
@@ -442,6 +609,7 @@ export declare namespace ToolResultContentBlock {
|
|
|
442
609
|
text?: never;
|
|
443
610
|
image?: never;
|
|
444
611
|
document?: never;
|
|
612
|
+
video?: never;
|
|
445
613
|
$unknown: [string, any];
|
|
446
614
|
}
|
|
447
615
|
interface Visitor<T> {
|
|
@@ -449,6 +617,7 @@ export declare namespace ToolResultContentBlock {
|
|
|
449
617
|
text: (value: string) => T;
|
|
450
618
|
image: (value: ImageBlock) => T;
|
|
451
619
|
document: (value: DocumentBlock) => T;
|
|
620
|
+
video: (value: VideoBlock) => T;
|
|
452
621
|
_: (name: string, value: any) => T;
|
|
453
622
|
}
|
|
454
623
|
const visit: <T>(value: ToolResultContentBlock, visitor: Visitor<T>) => T;
|
|
@@ -476,12 +645,14 @@ export type ContentBlock =
|
|
|
476
645
|
| ContentBlock.TextMember
|
|
477
646
|
| ContentBlock.ToolResultMember
|
|
478
647
|
| ContentBlock.ToolUseMember
|
|
648
|
+
| ContentBlock.VideoMember
|
|
479
649
|
| ContentBlock.$UnknownMember;
|
|
480
650
|
export declare namespace ContentBlock {
|
|
481
651
|
interface TextMember {
|
|
482
652
|
text: string;
|
|
483
653
|
image?: never;
|
|
484
654
|
document?: never;
|
|
655
|
+
video?: never;
|
|
485
656
|
toolUse?: never;
|
|
486
657
|
toolResult?: never;
|
|
487
658
|
guardContent?: never;
|
|
@@ -491,6 +662,7 @@ export declare namespace ContentBlock {
|
|
|
491
662
|
text?: never;
|
|
492
663
|
image: ImageBlock;
|
|
493
664
|
document?: never;
|
|
665
|
+
video?: never;
|
|
494
666
|
toolUse?: never;
|
|
495
667
|
toolResult?: never;
|
|
496
668
|
guardContent?: never;
|
|
@@ -500,6 +672,17 @@ export declare namespace ContentBlock {
|
|
|
500
672
|
text?: never;
|
|
501
673
|
image?: never;
|
|
502
674
|
document: DocumentBlock;
|
|
675
|
+
video?: never;
|
|
676
|
+
toolUse?: never;
|
|
677
|
+
toolResult?: never;
|
|
678
|
+
guardContent?: never;
|
|
679
|
+
$unknown?: never;
|
|
680
|
+
}
|
|
681
|
+
interface VideoMember {
|
|
682
|
+
text?: never;
|
|
683
|
+
image?: never;
|
|
684
|
+
document?: never;
|
|
685
|
+
video: VideoBlock;
|
|
503
686
|
toolUse?: never;
|
|
504
687
|
toolResult?: never;
|
|
505
688
|
guardContent?: never;
|
|
@@ -509,6 +692,7 @@ export declare namespace ContentBlock {
|
|
|
509
692
|
text?: never;
|
|
510
693
|
image?: never;
|
|
511
694
|
document?: never;
|
|
695
|
+
video?: never;
|
|
512
696
|
toolUse: ToolUseBlock;
|
|
513
697
|
toolResult?: never;
|
|
514
698
|
guardContent?: never;
|
|
@@ -518,6 +702,7 @@ export declare namespace ContentBlock {
|
|
|
518
702
|
text?: never;
|
|
519
703
|
image?: never;
|
|
520
704
|
document?: never;
|
|
705
|
+
video?: never;
|
|
521
706
|
toolUse?: never;
|
|
522
707
|
toolResult: ToolResultBlock;
|
|
523
708
|
guardContent?: never;
|
|
@@ -527,6 +712,7 @@ export declare namespace ContentBlock {
|
|
|
527
712
|
text?: never;
|
|
528
713
|
image?: never;
|
|
529
714
|
document?: never;
|
|
715
|
+
video?: never;
|
|
530
716
|
toolUse?: never;
|
|
531
717
|
toolResult?: never;
|
|
532
718
|
guardContent: GuardrailConverseContentBlock;
|
|
@@ -536,6 +722,7 @@ export declare namespace ContentBlock {
|
|
|
536
722
|
text?: never;
|
|
537
723
|
image?: never;
|
|
538
724
|
document?: never;
|
|
725
|
+
video?: never;
|
|
539
726
|
toolUse?: never;
|
|
540
727
|
toolResult?: never;
|
|
541
728
|
guardContent?: never;
|
|
@@ -545,6 +732,7 @@ export declare namespace ContentBlock {
|
|
|
545
732
|
text: (value: string) => T;
|
|
546
733
|
image: (value: ImageBlock) => T;
|
|
547
734
|
document: (value: DocumentBlock) => T;
|
|
735
|
+
video: (value: VideoBlock) => T;
|
|
548
736
|
toolUse: (value: ToolUseBlock) => T;
|
|
549
737
|
toolResult: (value: ToolResultBlock) => T;
|
|
550
738
|
guardContent: (value: GuardrailConverseContentBlock) => T;
|
|
@@ -712,6 +900,7 @@ export interface ConverseRequest {
|
|
|
712
900
|
additionalModelRequestFields?: __DocumentType | undefined;
|
|
713
901
|
promptVariables?: Record<string, PromptVariableValues> | undefined;
|
|
714
902
|
additionalModelResponseFieldPaths?: string[] | undefined;
|
|
903
|
+
requestMetadata?: Record<string, string> | undefined;
|
|
715
904
|
performanceConfig?: PerformanceConfiguration | undefined;
|
|
716
905
|
}
|
|
717
906
|
export interface ConverseMetrics {
|
|
@@ -790,13 +979,6 @@ export declare class ModelTimeoutException extends __BaseException {
|
|
|
790
979
|
opts: __ExceptionOptionType<ModelTimeoutException, __BaseException>
|
|
791
980
|
);
|
|
792
981
|
}
|
|
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
982
|
export declare const GuardrailStreamProcessingMode: {
|
|
801
983
|
readonly ASYNC: "async";
|
|
802
984
|
readonly SYNC: "sync";
|
|
@@ -819,6 +1001,7 @@ export interface ConverseStreamRequest {
|
|
|
819
1001
|
additionalModelRequestFields?: __DocumentType | undefined;
|
|
820
1002
|
promptVariables?: Record<string, PromptVariableValues> | undefined;
|
|
821
1003
|
additionalModelResponseFieldPaths?: string[] | undefined;
|
|
1004
|
+
requestMetadata?: Record<string, string> | undefined;
|
|
822
1005
|
performanceConfig?: PerformanceConfiguration | undefined;
|
|
823
1006
|
}
|
|
824
1007
|
export interface ToolUseBlockDelta {
|
|
@@ -1253,6 +1436,18 @@ export interface InvokeModelWithResponseStreamResponse {
|
|
|
1253
1436
|
contentType: string | undefined;
|
|
1254
1437
|
performanceConfigLatency?: PerformanceConfigLatency | undefined;
|
|
1255
1438
|
}
|
|
1439
|
+
export declare const GetAsyncInvokeResponseFilterSensitiveLog: (
|
|
1440
|
+
obj: GetAsyncInvokeResponse
|
|
1441
|
+
) => any;
|
|
1442
|
+
export declare const AsyncInvokeSummaryFilterSensitiveLog: (
|
|
1443
|
+
obj: AsyncInvokeSummary
|
|
1444
|
+
) => any;
|
|
1445
|
+
export declare const ListAsyncInvokesResponseFilterSensitiveLog: (
|
|
1446
|
+
obj: ListAsyncInvokesResponse
|
|
1447
|
+
) => any;
|
|
1448
|
+
export declare const StartAsyncInvokeRequestFilterSensitiveLog: (
|
|
1449
|
+
obj: StartAsyncInvokeRequest
|
|
1450
|
+
) => any;
|
|
1256
1451
|
export declare const ConverseRequestFilterSensitiveLog: (
|
|
1257
1452
|
obj: ConverseRequest
|
|
1258
1453
|
) => any;
|
|
@@ -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>;
|
|
@@ -18,6 +18,10 @@ import {
|
|
|
18
18
|
ConverseStreamCommandInput,
|
|
19
19
|
ConverseStreamCommandOutput,
|
|
20
20
|
} from "../commands/ConverseStreamCommand";
|
|
21
|
+
import {
|
|
22
|
+
GetAsyncInvokeCommandInput,
|
|
23
|
+
GetAsyncInvokeCommandOutput,
|
|
24
|
+
} from "../commands/GetAsyncInvokeCommand";
|
|
21
25
|
import {
|
|
22
26
|
InvokeModelCommandInput,
|
|
23
27
|
InvokeModelCommandOutput,
|
|
@@ -26,6 +30,14 @@ import {
|
|
|
26
30
|
InvokeModelWithResponseStreamCommandInput,
|
|
27
31
|
InvokeModelWithResponseStreamCommandOutput,
|
|
28
32
|
} from "../commands/InvokeModelWithResponseStreamCommand";
|
|
33
|
+
import {
|
|
34
|
+
ListAsyncInvokesCommandInput,
|
|
35
|
+
ListAsyncInvokesCommandOutput,
|
|
36
|
+
} from "../commands/ListAsyncInvokesCommand";
|
|
37
|
+
import {
|
|
38
|
+
StartAsyncInvokeCommandInput,
|
|
39
|
+
StartAsyncInvokeCommandOutput,
|
|
40
|
+
} from "../commands/StartAsyncInvokeCommand";
|
|
29
41
|
export declare const se_ApplyGuardrailCommand: (
|
|
30
42
|
input: ApplyGuardrailCommandInput,
|
|
31
43
|
context: __SerdeContext
|
|
@@ -38,6 +50,10 @@ export declare const se_ConverseStreamCommand: (
|
|
|
38
50
|
input: ConverseStreamCommandInput,
|
|
39
51
|
context: __SerdeContext
|
|
40
52
|
) => Promise<__HttpRequest>;
|
|
53
|
+
export declare const se_GetAsyncInvokeCommand: (
|
|
54
|
+
input: GetAsyncInvokeCommandInput,
|
|
55
|
+
context: __SerdeContext
|
|
56
|
+
) => Promise<__HttpRequest>;
|
|
41
57
|
export declare const se_InvokeModelCommand: (
|
|
42
58
|
input: InvokeModelCommandInput,
|
|
43
59
|
context: __SerdeContext
|
|
@@ -46,6 +62,14 @@ export declare const se_InvokeModelWithResponseStreamCommand: (
|
|
|
46
62
|
input: InvokeModelWithResponseStreamCommandInput,
|
|
47
63
|
context: __SerdeContext
|
|
48
64
|
) => Promise<__HttpRequest>;
|
|
65
|
+
export declare const se_ListAsyncInvokesCommand: (
|
|
66
|
+
input: ListAsyncInvokesCommandInput,
|
|
67
|
+
context: __SerdeContext
|
|
68
|
+
) => Promise<__HttpRequest>;
|
|
69
|
+
export declare const se_StartAsyncInvokeCommand: (
|
|
70
|
+
input: StartAsyncInvokeCommandInput,
|
|
71
|
+
context: __SerdeContext
|
|
72
|
+
) => Promise<__HttpRequest>;
|
|
49
73
|
export declare const de_ApplyGuardrailCommand: (
|
|
50
74
|
output: __HttpResponse,
|
|
51
75
|
context: __SerdeContext
|
|
@@ -58,6 +82,10 @@ export declare const de_ConverseStreamCommand: (
|
|
|
58
82
|
output: __HttpResponse,
|
|
59
83
|
context: __SerdeContext & __EventStreamSerdeContext
|
|
60
84
|
) => Promise<ConverseStreamCommandOutput>;
|
|
85
|
+
export declare const de_GetAsyncInvokeCommand: (
|
|
86
|
+
output: __HttpResponse,
|
|
87
|
+
context: __SerdeContext
|
|
88
|
+
) => Promise<GetAsyncInvokeCommandOutput>;
|
|
61
89
|
export declare const de_InvokeModelCommand: (
|
|
62
90
|
output: __HttpResponse,
|
|
63
91
|
context: __SerdeContext
|
|
@@ -66,3 +94,11 @@ export declare const de_InvokeModelWithResponseStreamCommand: (
|
|
|
66
94
|
output: __HttpResponse,
|
|
67
95
|
context: __SerdeContext & __EventStreamSerdeContext
|
|
68
96
|
) => Promise<InvokeModelWithResponseStreamCommandOutput>;
|
|
97
|
+
export declare const de_ListAsyncInvokesCommand: (
|
|
98
|
+
output: __HttpResponse,
|
|
99
|
+
context: __SerdeContext
|
|
100
|
+
) => Promise<ListAsyncInvokesCommandOutput>;
|
|
101
|
+
export declare const de_StartAsyncInvokeCommand: (
|
|
102
|
+
output: __HttpResponse,
|
|
103
|
+
context: __SerdeContext
|
|
104
|
+
) => Promise<StartAsyncInvokeCommandOutput>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock-runtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.705.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock-runtime",
|
|
@@ -62,7 +62,9 @@
|
|
|
62
62
|
"@smithy/util-retry": "^3.0.10",
|
|
63
63
|
"@smithy/util-stream": "^3.3.1",
|
|
64
64
|
"@smithy/util-utf8": "^3.0.0",
|
|
65
|
-
"
|
|
65
|
+
"@types/uuid": "^9.0.1",
|
|
66
|
+
"tslib": "^2.6.2",
|
|
67
|
+
"uuid": "^9.0.1"
|
|
66
68
|
},
|
|
67
69
|
"devDependencies": {
|
|
68
70
|
"@tsconfig/node16": "16.1.3",
|