@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
@@ -3,14 +3,20 @@ import { BedrockRuntimeClient } from "./BedrockRuntimeClient";
3
3
  import { ApplyGuardrailCommand, } from "./commands/ApplyGuardrailCommand";
4
4
  import { ConverseCommand } from "./commands/ConverseCommand";
5
5
  import { ConverseStreamCommand, } from "./commands/ConverseStreamCommand";
6
+ import { GetAsyncInvokeCommand, } from "./commands/GetAsyncInvokeCommand";
6
7
  import { InvokeModelCommand } from "./commands/InvokeModelCommand";
7
8
  import { InvokeModelWithResponseStreamCommand, } from "./commands/InvokeModelWithResponseStreamCommand";
9
+ import { ListAsyncInvokesCommand, } from "./commands/ListAsyncInvokesCommand";
10
+ import { StartAsyncInvokeCommand, } from "./commands/StartAsyncInvokeCommand";
8
11
  const commands = {
9
12
  ApplyGuardrailCommand,
10
13
  ConverseCommand,
11
14
  ConverseStreamCommand,
15
+ GetAsyncInvokeCommand,
12
16
  InvokeModelCommand,
13
17
  InvokeModelWithResponseStreamCommand,
18
+ ListAsyncInvokesCommand,
19
+ StartAsyncInvokeCommand,
14
20
  };
15
21
  export class BedrockRuntime extends BedrockRuntimeClient {
16
22
  }
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { ApplyGuardrailRequestFilterSensitiveLog, } from "../models/models_0";
5
6
  import { de_ApplyGuardrailCommand, se_ApplyGuardrailCommand } from "../protocols/Aws_restJson1";
6
7
  export { $Command };
7
8
  export class ApplyGuardrailCommand extends $Command
@@ -15,7 +16,7 @@ export class ApplyGuardrailCommand extends $Command
15
16
  })
16
17
  .s("AmazonBedrockFrontendService", "ApplyGuardrail", {})
17
18
  .n("BedrockRuntimeClient", "ApplyGuardrailCommand")
18
- .f(void 0, void 0)
19
+ .f(ApplyGuardrailRequestFilterSensitiveLog, void 0)
19
20
  .ser(se_ApplyGuardrailCommand)
20
21
  .de(de_ApplyGuardrailCommand)
21
22
  .build() {
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { ConverseRequestFilterSensitiveLog } from "../models/models_0";
5
+ import { ConverseRequestFilterSensitiveLog, ConverseResponseFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_ConverseCommand, se_ConverseCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
8
  export class ConverseCommand extends $Command
@@ -16,7 +16,7 @@ export class ConverseCommand extends $Command
16
16
  })
17
17
  .s("AmazonBedrockFrontendService", "Converse", {})
18
18
  .n("BedrockRuntimeClient", "ConverseCommand")
19
- .f(ConverseRequestFilterSensitiveLog, void 0)
19
+ .f(ConverseRequestFilterSensitiveLog, ConverseResponseFilterSensitiveLog)
20
20
  .ser(se_ConverseCommand)
21
21
  .de(de_ConverseCommand)
22
22
  .build() {
@@ -0,0 +1,23 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { GetAsyncInvokeResponseFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_GetAsyncInvokeCommand, se_GetAsyncInvokeCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class GetAsyncInvokeCommand extends $Command
9
+ .classBuilder()
10
+ .ep(commonParams)
11
+ .m(function (Command, cs, config, o) {
12
+ return [
13
+ getSerdePlugin(config, this.serialize, this.deserialize),
14
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
+ ];
16
+ })
17
+ .s("AmazonBedrockFrontendService", "GetAsyncInvoke", {})
18
+ .n("BedrockRuntimeClient", "GetAsyncInvokeCommand")
19
+ .f(void 0, GetAsyncInvokeResponseFilterSensitiveLog)
20
+ .ser(se_GetAsyncInvokeCommand)
21
+ .de(de_GetAsyncInvokeCommand)
22
+ .build() {
23
+ }
@@ -0,0 +1,23 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { ListAsyncInvokesResponseFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_ListAsyncInvokesCommand, se_ListAsyncInvokesCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class ListAsyncInvokesCommand extends $Command
9
+ .classBuilder()
10
+ .ep(commonParams)
11
+ .m(function (Command, cs, config, o) {
12
+ return [
13
+ getSerdePlugin(config, this.serialize, this.deserialize),
14
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
+ ];
16
+ })
17
+ .s("AmazonBedrockFrontendService", "ListAsyncInvokes", {})
18
+ .n("BedrockRuntimeClient", "ListAsyncInvokesCommand")
19
+ .f(void 0, ListAsyncInvokesResponseFilterSensitiveLog)
20
+ .ser(se_ListAsyncInvokesCommand)
21
+ .de(de_ListAsyncInvokesCommand)
22
+ .build() {
23
+ }
@@ -0,0 +1,23 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { StartAsyncInvokeRequestFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_StartAsyncInvokeCommand, se_StartAsyncInvokeCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class StartAsyncInvokeCommand extends $Command
9
+ .classBuilder()
10
+ .ep(commonParams)
11
+ .m(function (Command, cs, config, o) {
12
+ return [
13
+ getSerdePlugin(config, this.serialize, this.deserialize),
14
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
+ ];
16
+ })
17
+ .s("AmazonBedrockFrontendService", "StartAsyncInvoke", {})
18
+ .n("BedrockRuntimeClient", "StartAsyncInvokeCommand")
19
+ .f(StartAsyncInvokeRequestFilterSensitiveLog, void 0)
20
+ .ser(se_StartAsyncInvokeCommand)
21
+ .de(de_StartAsyncInvokeCommand)
22
+ .build() {
23
+ }
@@ -1,5 +1,8 @@
1
1
  export * from "./ApplyGuardrailCommand";
2
2
  export * from "./ConverseCommand";
3
3
  export * from "./ConverseStreamCommand";
4
+ export * from "./GetAsyncInvokeCommand";
4
5
  export * from "./InvokeModelCommand";
5
6
  export * from "./InvokeModelWithResponseStreamCommand";
7
+ export * from "./ListAsyncInvokesCommand";
8
+ export * from "./StartAsyncInvokeCommand";
package/dist-es/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from "./BedrockRuntimeClient";
2
2
  export * from "./BedrockRuntime";
3
3
  export * from "./commands";
4
+ export * from "./pagination";
4
5
  export * from "./models";
5
6
  export { BedrockRuntimeServiceException } from "./models/BedrockRuntimeServiceException";
@@ -12,6 +12,122 @@ export class AccessDeniedException extends __BaseException {
12
12
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
13
  }
14
14
  }
15
+ export var AsyncInvokeOutputDataConfig;
16
+ (function (AsyncInvokeOutputDataConfig) {
17
+ AsyncInvokeOutputDataConfig.visit = (value, visitor) => {
18
+ if (value.s3OutputDataConfig !== undefined)
19
+ return visitor.s3OutputDataConfig(value.s3OutputDataConfig);
20
+ return visitor._(value.$unknown[0], value.$unknown[1]);
21
+ };
22
+ })(AsyncInvokeOutputDataConfig || (AsyncInvokeOutputDataConfig = {}));
23
+ export const AsyncInvokeStatus = {
24
+ COMPLETED: "Completed",
25
+ FAILED: "Failed",
26
+ IN_PROGRESS: "InProgress",
27
+ };
28
+ export class InternalServerException extends __BaseException {
29
+ constructor(opts) {
30
+ super({
31
+ name: "InternalServerException",
32
+ $fault: "server",
33
+ ...opts,
34
+ });
35
+ this.name = "InternalServerException";
36
+ this.$fault = "server";
37
+ Object.setPrototypeOf(this, InternalServerException.prototype);
38
+ }
39
+ }
40
+ export class ThrottlingException extends __BaseException {
41
+ constructor(opts) {
42
+ super({
43
+ name: "ThrottlingException",
44
+ $fault: "client",
45
+ ...opts,
46
+ });
47
+ this.name = "ThrottlingException";
48
+ this.$fault = "client";
49
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
50
+ }
51
+ }
52
+ export class ValidationException extends __BaseException {
53
+ constructor(opts) {
54
+ super({
55
+ name: "ValidationException",
56
+ $fault: "client",
57
+ ...opts,
58
+ });
59
+ this.name = "ValidationException";
60
+ this.$fault = "client";
61
+ Object.setPrototypeOf(this, ValidationException.prototype);
62
+ }
63
+ }
64
+ export const SortAsyncInvocationBy = {
65
+ SUBMISSION_TIME: "SubmissionTime",
66
+ };
67
+ export const SortOrder = {
68
+ ASCENDING: "Ascending",
69
+ DESCENDING: "Descending",
70
+ };
71
+ export class ConflictException extends __BaseException {
72
+ constructor(opts) {
73
+ super({
74
+ name: "ConflictException",
75
+ $fault: "client",
76
+ ...opts,
77
+ });
78
+ this.name = "ConflictException";
79
+ this.$fault = "client";
80
+ Object.setPrototypeOf(this, ConflictException.prototype);
81
+ }
82
+ }
83
+ export class ResourceNotFoundException extends __BaseException {
84
+ constructor(opts) {
85
+ super({
86
+ name: "ResourceNotFoundException",
87
+ $fault: "client",
88
+ ...opts,
89
+ });
90
+ this.name = "ResourceNotFoundException";
91
+ this.$fault = "client";
92
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
93
+ }
94
+ }
95
+ export class ServiceQuotaExceededException extends __BaseException {
96
+ constructor(opts) {
97
+ super({
98
+ name: "ServiceQuotaExceededException",
99
+ $fault: "client",
100
+ ...opts,
101
+ });
102
+ this.name = "ServiceQuotaExceededException";
103
+ this.$fault = "client";
104
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
105
+ }
106
+ }
107
+ export class ServiceUnavailableException extends __BaseException {
108
+ constructor(opts) {
109
+ super({
110
+ name: "ServiceUnavailableException",
111
+ $fault: "server",
112
+ ...opts,
113
+ });
114
+ this.name = "ServiceUnavailableException";
115
+ this.$fault = "server";
116
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
117
+ }
118
+ }
119
+ export const GuardrailImageFormat = {
120
+ JPEG: "jpeg",
121
+ PNG: "png",
122
+ };
123
+ export var GuardrailImageSource;
124
+ (function (GuardrailImageSource) {
125
+ GuardrailImageSource.visit = (value, visitor) => {
126
+ if (value.bytes !== undefined)
127
+ return visitor.bytes(value.bytes);
128
+ return visitor._(value.$unknown[0], value.$unknown[1]);
129
+ };
130
+ })(GuardrailImageSource || (GuardrailImageSource = {}));
15
131
  export const GuardrailContentQualifier = {
16
132
  GROUNDING_SOURCE: "grounding_source",
17
133
  GUARD_CONTENT: "guard_content",
@@ -22,6 +138,8 @@ export var GuardrailContentBlock;
22
138
  GuardrailContentBlock.visit = (value, visitor) => {
23
139
  if (value.text !== undefined)
24
140
  return visitor.text(value.text);
141
+ if (value.image !== undefined)
142
+ return visitor.image(value.image);
25
143
  return visitor._(value.$unknown[0], value.$unknown[1]);
26
144
  };
27
145
  })(GuardrailContentBlock || (GuardrailContentBlock = {}));
@@ -113,66 +231,6 @@ export const GuardrailWordPolicyAction = {
113
231
  export const GuardrailManagedWordType = {
114
232
  PROFANITY: "PROFANITY",
115
233
  };
116
- export class InternalServerException extends __BaseException {
117
- constructor(opts) {
118
- super({
119
- name: "InternalServerException",
120
- $fault: "server",
121
- ...opts,
122
- });
123
- this.name = "InternalServerException";
124
- this.$fault = "server";
125
- Object.setPrototypeOf(this, InternalServerException.prototype);
126
- }
127
- }
128
- export class ResourceNotFoundException extends __BaseException {
129
- constructor(opts) {
130
- super({
131
- name: "ResourceNotFoundException",
132
- $fault: "client",
133
- ...opts,
134
- });
135
- this.name = "ResourceNotFoundException";
136
- this.$fault = "client";
137
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
138
- }
139
- }
140
- export class ServiceQuotaExceededException extends __BaseException {
141
- constructor(opts) {
142
- super({
143
- name: "ServiceQuotaExceededException",
144
- $fault: "client",
145
- ...opts,
146
- });
147
- this.name = "ServiceQuotaExceededException";
148
- this.$fault = "client";
149
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
150
- }
151
- }
152
- export class ThrottlingException extends __BaseException {
153
- constructor(opts) {
154
- super({
155
- name: "ThrottlingException",
156
- $fault: "client",
157
- ...opts,
158
- });
159
- this.name = "ThrottlingException";
160
- this.$fault = "client";
161
- Object.setPrototypeOf(this, ThrottlingException.prototype);
162
- }
163
- }
164
- export class ValidationException extends __BaseException {
165
- constructor(opts) {
166
- super({
167
- name: "ValidationException",
168
- $fault: "client",
169
- ...opts,
170
- });
171
- this.name = "ValidationException";
172
- this.$fault = "client";
173
- Object.setPrototypeOf(this, ValidationException.prototype);
174
- }
175
- }
176
234
  export const GuardrailTrace = {
177
235
  DISABLED: "disabled",
178
236
  ENABLED: "enabled",
@@ -196,6 +254,18 @@ export var DocumentSource;
196
254
  return visitor._(value.$unknown[0], value.$unknown[1]);
197
255
  };
198
256
  })(DocumentSource || (DocumentSource = {}));
257
+ export const GuardrailConverseImageFormat = {
258
+ JPEG: "jpeg",
259
+ PNG: "png",
260
+ };
261
+ export var GuardrailConverseImageSource;
262
+ (function (GuardrailConverseImageSource) {
263
+ GuardrailConverseImageSource.visit = (value, visitor) => {
264
+ if (value.bytes !== undefined)
265
+ return visitor.bytes(value.bytes);
266
+ return visitor._(value.$unknown[0], value.$unknown[1]);
267
+ };
268
+ })(GuardrailConverseImageSource || (GuardrailConverseImageSource = {}));
199
269
  export const GuardrailConverseContentQualifier = {
200
270
  GROUNDING_SOURCE: "grounding_source",
201
271
  GUARD_CONTENT: "guard_content",
@@ -206,6 +276,8 @@ export var GuardrailConverseContentBlock;
206
276
  GuardrailConverseContentBlock.visit = (value, visitor) => {
207
277
  if (value.text !== undefined)
208
278
  return visitor.text(value.text);
279
+ if (value.image !== undefined)
280
+ return visitor.image(value.image);
209
281
  return visitor._(value.$unknown[0], value.$unknown[1]);
210
282
  };
211
283
  })(GuardrailConverseContentBlock || (GuardrailConverseContentBlock = {}));
@@ -223,6 +295,27 @@ export var ImageSource;
223
295
  return visitor._(value.$unknown[0], value.$unknown[1]);
224
296
  };
225
297
  })(ImageSource || (ImageSource = {}));
298
+ export const VideoFormat = {
299
+ FLV: "flv",
300
+ MKV: "mkv",
301
+ MOV: "mov",
302
+ MP4: "mp4",
303
+ MPEG: "mpeg",
304
+ MPG: "mpg",
305
+ THREE_GP: "three_gp",
306
+ WEBM: "webm",
307
+ WMV: "wmv",
308
+ };
309
+ export var VideoSource;
310
+ (function (VideoSource) {
311
+ VideoSource.visit = (value, visitor) => {
312
+ if (value.bytes !== undefined)
313
+ return visitor.bytes(value.bytes);
314
+ if (value.s3Location !== undefined)
315
+ return visitor.s3Location(value.s3Location);
316
+ return visitor._(value.$unknown[0], value.$unknown[1]);
317
+ };
318
+ })(VideoSource || (VideoSource = {}));
226
319
  export var ToolResultContentBlock;
227
320
  (function (ToolResultContentBlock) {
228
321
  ToolResultContentBlock.visit = (value, visitor) => {
@@ -234,6 +327,8 @@ export var ToolResultContentBlock;
234
327
  return visitor.image(value.image);
235
328
  if (value.document !== undefined)
236
329
  return visitor.document(value.document);
330
+ if (value.video !== undefined)
331
+ return visitor.video(value.video);
237
332
  return visitor._(value.$unknown[0], value.$unknown[1]);
238
333
  };
239
334
  })(ToolResultContentBlock || (ToolResultContentBlock = {}));
@@ -250,6 +345,8 @@ export var ContentBlock;
250
345
  return visitor.image(value.image);
251
346
  if (value.document !== undefined)
252
347
  return visitor.document(value.document);
348
+ if (value.video !== undefined)
349
+ return visitor.video(value.video);
253
350
  if (value.toolUse !== undefined)
254
351
  return visitor.toolUse(value.toolUse);
255
352
  if (value.toolResult !== undefined)
@@ -368,18 +465,6 @@ export class ModelTimeoutException extends __BaseException {
368
465
  Object.setPrototypeOf(this, ModelTimeoutException.prototype);
369
466
  }
370
467
  }
371
- export class ServiceUnavailableException extends __BaseException {
372
- constructor(opts) {
373
- super({
374
- name: "ServiceUnavailableException",
375
- $fault: "server",
376
- ...opts,
377
- });
378
- this.name = "ServiceUnavailableException";
379
- this.$fault = "server";
380
- Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
381
- }
382
- }
383
468
  export const GuardrailStreamProcessingMode = {
384
469
  ASYNC: "async",
385
470
  SYNC: "sync",
@@ -468,19 +553,122 @@ export var ResponseStream;
468
553
  return visitor._(value.$unknown[0], value.$unknown[1]);
469
554
  };
470
555
  })(ResponseStream || (ResponseStream = {}));
556
+ export const GetAsyncInvokeResponseFilterSensitiveLog = (obj) => ({
557
+ ...obj,
558
+ ...(obj.failureMessage && { failureMessage: SENSITIVE_STRING }),
559
+ ...(obj.outputDataConfig && { outputDataConfig: obj.outputDataConfig }),
560
+ });
561
+ export const AsyncInvokeSummaryFilterSensitiveLog = (obj) => ({
562
+ ...obj,
563
+ ...(obj.failureMessage && { failureMessage: SENSITIVE_STRING }),
564
+ ...(obj.outputDataConfig && { outputDataConfig: obj.outputDataConfig }),
565
+ });
566
+ export const ListAsyncInvokesResponseFilterSensitiveLog = (obj) => ({
567
+ ...obj,
568
+ ...(obj.asyncInvokeSummaries && {
569
+ asyncInvokeSummaries: obj.asyncInvokeSummaries.map((item) => AsyncInvokeSummaryFilterSensitiveLog(item)),
570
+ }),
571
+ });
572
+ export const StartAsyncInvokeRequestFilterSensitiveLog = (obj) => ({
573
+ ...obj,
574
+ ...(obj.modelInput && { modelInput: SENSITIVE_STRING }),
575
+ ...(obj.outputDataConfig && { outputDataConfig: obj.outputDataConfig }),
576
+ });
577
+ export const GuardrailImageSourceFilterSensitiveLog = (obj) => {
578
+ if (obj.bytes !== undefined)
579
+ return { bytes: obj.bytes };
580
+ if (obj.$unknown !== undefined)
581
+ return { [obj.$unknown[0]]: "UNKNOWN" };
582
+ };
583
+ export const GuardrailImageBlockFilterSensitiveLog = (obj) => ({
584
+ ...obj,
585
+ ...(obj.source && { source: SENSITIVE_STRING }),
586
+ });
587
+ export const GuardrailContentBlockFilterSensitiveLog = (obj) => {
588
+ if (obj.text !== undefined)
589
+ return { text: obj.text };
590
+ if (obj.image !== undefined)
591
+ return { image: SENSITIVE_STRING };
592
+ if (obj.$unknown !== undefined)
593
+ return { [obj.$unknown[0]]: "UNKNOWN" };
594
+ };
595
+ export const ApplyGuardrailRequestFilterSensitiveLog = (obj) => ({
596
+ ...obj,
597
+ ...(obj.content && { content: obj.content.map((item) => GuardrailContentBlockFilterSensitiveLog(item)) }),
598
+ });
599
+ export const GuardrailConverseImageSourceFilterSensitiveLog = (obj) => {
600
+ if (obj.bytes !== undefined)
601
+ return { bytes: obj.bytes };
602
+ if (obj.$unknown !== undefined)
603
+ return { [obj.$unknown[0]]: "UNKNOWN" };
604
+ };
605
+ export const GuardrailConverseImageBlockFilterSensitiveLog = (obj) => ({
606
+ ...obj,
607
+ ...(obj.source && { source: SENSITIVE_STRING }),
608
+ });
609
+ export const GuardrailConverseContentBlockFilterSensitiveLog = (obj) => {
610
+ if (obj.text !== undefined)
611
+ return { text: obj.text };
612
+ if (obj.image !== undefined)
613
+ return { image: SENSITIVE_STRING };
614
+ if (obj.$unknown !== undefined)
615
+ return { [obj.$unknown[0]]: "UNKNOWN" };
616
+ };
617
+ export const ContentBlockFilterSensitiveLog = (obj) => {
618
+ if (obj.text !== undefined)
619
+ return { text: obj.text };
620
+ if (obj.image !== undefined)
621
+ return { image: obj.image };
622
+ if (obj.document !== undefined)
623
+ return { document: obj.document };
624
+ if (obj.video !== undefined)
625
+ return { video: obj.video };
626
+ if (obj.toolUse !== undefined)
627
+ return { toolUse: obj.toolUse };
628
+ if (obj.toolResult !== undefined)
629
+ return { toolResult: obj.toolResult };
630
+ if (obj.guardContent !== undefined)
631
+ return { guardContent: GuardrailConverseContentBlockFilterSensitiveLog(obj.guardContent) };
632
+ if (obj.$unknown !== undefined)
633
+ return { [obj.$unknown[0]]: "UNKNOWN" };
634
+ };
635
+ export const MessageFilterSensitiveLog = (obj) => ({
636
+ ...obj,
637
+ ...(obj.content && { content: obj.content.map((item) => ContentBlockFilterSensitiveLog(item)) }),
638
+ });
639
+ export const SystemContentBlockFilterSensitiveLog = (obj) => {
640
+ if (obj.text !== undefined)
641
+ return { text: obj.text };
642
+ if (obj.guardContent !== undefined)
643
+ return { guardContent: GuardrailConverseContentBlockFilterSensitiveLog(obj.guardContent) };
644
+ if (obj.$unknown !== undefined)
645
+ return { [obj.$unknown[0]]: "UNKNOWN" };
646
+ };
471
647
  export const ConverseRequestFilterSensitiveLog = (obj) => ({
472
648
  ...obj,
473
- ...(obj.messages && { messages: obj.messages.map((item) => item) }),
474
- ...(obj.system && { system: obj.system.map((item) => item) }),
649
+ ...(obj.messages && { messages: obj.messages.map((item) => MessageFilterSensitiveLog(item)) }),
650
+ ...(obj.system && { system: obj.system.map((item) => SystemContentBlockFilterSensitiveLog(item)) }),
475
651
  ...(obj.toolConfig && { toolConfig: obj.toolConfig }),
476
652
  ...(obj.promptVariables && { promptVariables: SENSITIVE_STRING }),
653
+ ...(obj.requestMetadata && { requestMetadata: SENSITIVE_STRING }),
654
+ });
655
+ export const ConverseOutputFilterSensitiveLog = (obj) => {
656
+ if (obj.message !== undefined)
657
+ return { message: MessageFilterSensitiveLog(obj.message) };
658
+ if (obj.$unknown !== undefined)
659
+ return { [obj.$unknown[0]]: "UNKNOWN" };
660
+ };
661
+ export const ConverseResponseFilterSensitiveLog = (obj) => ({
662
+ ...obj,
663
+ ...(obj.output && { output: ConverseOutputFilterSensitiveLog(obj.output) }),
477
664
  });
478
665
  export const ConverseStreamRequestFilterSensitiveLog = (obj) => ({
479
666
  ...obj,
480
- ...(obj.messages && { messages: obj.messages.map((item) => item) }),
481
- ...(obj.system && { system: obj.system.map((item) => item) }),
667
+ ...(obj.messages && { messages: obj.messages.map((item) => MessageFilterSensitiveLog(item)) }),
668
+ ...(obj.system && { system: obj.system.map((item) => SystemContentBlockFilterSensitiveLog(item)) }),
482
669
  ...(obj.toolConfig && { toolConfig: obj.toolConfig }),
483
670
  ...(obj.promptVariables && { promptVariables: SENSITIVE_STRING }),
671
+ ...(obj.requestMetadata && { requestMetadata: SENSITIVE_STRING }),
484
672
  });
485
673
  export const ConverseStreamOutputFilterSensitiveLog = (obj) => {
486
674
  if (obj.messageStart !== undefined)
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { BedrockRuntimeClient } from "../BedrockRuntimeClient";
3
+ import { ListAsyncInvokesCommand, } from "../commands/ListAsyncInvokesCommand";
4
+ export const paginateListAsyncInvokes = createPaginator(BedrockRuntimeClient, ListAsyncInvokesCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,2 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListAsyncInvokesPaginator";