@aws-sdk/client-bedrock-agent-runtime 3.812.0 → 3.815.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 (75) hide show
  1. package/README.md +48 -0
  2. package/dist-cjs/index.js +829 -176
  3. package/dist-es/BedrockAgentRuntime.js +12 -0
  4. package/dist-es/commands/GetExecutionFlowSnapshotCommand.js +22 -0
  5. package/dist-es/commands/GetFlowExecutionCommand.js +22 -0
  6. package/dist-es/commands/GetInvocationStepCommand.js +1 -1
  7. package/dist-es/commands/ListFlowExecutionEventsCommand.js +23 -0
  8. package/dist-es/commands/ListFlowExecutionsCommand.js +22 -0
  9. package/dist-es/commands/PutInvocationStepCommand.js +1 -1
  10. package/dist-es/commands/RetrieveAndGenerateStreamCommand.js +1 -2
  11. package/dist-es/commands/RetrieveCommand.js +1 -2
  12. package/dist-es/commands/StartFlowExecutionCommand.js +23 -0
  13. package/dist-es/commands/StopFlowExecutionCommand.js +22 -0
  14. package/dist-es/commands/index.js +6 -0
  15. package/dist-es/models/models_0.js +202 -196
  16. package/dist-es/models/models_1.js +141 -1
  17. package/dist-es/pagination/ListFlowExecutionEventsPaginator.js +4 -0
  18. package/dist-es/pagination/ListFlowExecutionsPaginator.js +4 -0
  19. package/dist-es/pagination/index.js +2 -0
  20. package/dist-es/protocols/Aws_restJson1.js +370 -2
  21. package/dist-types/BedrockAgentRuntime.d.ts +42 -0
  22. package/dist-types/BedrockAgentRuntimeClient.d.ts +8 -2
  23. package/dist-types/commands/CreateInvocationCommand.d.ts +1 -1
  24. package/dist-types/commands/CreateSessionCommand.d.ts +1 -1
  25. package/dist-types/commands/DeleteSessionCommand.d.ts +1 -1
  26. package/dist-types/commands/EndSessionCommand.d.ts +1 -1
  27. package/dist-types/commands/GetExecutionFlowSnapshotCommand.d.ts +94 -0
  28. package/dist-types/commands/GetFlowExecutionCommand.d.ts +102 -0
  29. package/dist-types/commands/GetInvocationStepCommand.d.ts +1 -1
  30. package/dist-types/commands/GetSessionCommand.d.ts +1 -1
  31. package/dist-types/commands/ListFlowExecutionEventsCommand.d.ts +164 -0
  32. package/dist-types/commands/ListFlowExecutionsCommand.d.ts +101 -0
  33. package/dist-types/commands/ListInvocationStepsCommand.d.ts +1 -1
  34. package/dist-types/commands/ListInvocationsCommand.d.ts +1 -1
  35. package/dist-types/commands/ListSessionsCommand.d.ts +1 -2
  36. package/dist-types/commands/PutInvocationStepCommand.d.ts +1 -1
  37. package/dist-types/commands/RetrieveAndGenerateStreamCommand.d.ts +1 -2
  38. package/dist-types/commands/RetrieveCommand.d.ts +1 -2
  39. package/dist-types/commands/StartFlowExecutionCommand.d.ts +116 -0
  40. package/dist-types/commands/StopFlowExecutionCommand.d.ts +99 -0
  41. package/dist-types/commands/index.d.ts +6 -0
  42. package/dist-types/models/models_0.d.ts +3521 -3592
  43. package/dist-types/models/models_1.d.ts +972 -1
  44. package/dist-types/pagination/ListFlowExecutionEventsPaginator.d.ts +7 -0
  45. package/dist-types/pagination/ListFlowExecutionsPaginator.d.ts +7 -0
  46. package/dist-types/pagination/index.d.ts +2 -0
  47. package/dist-types/protocols/Aws_restJson1.d.ts +54 -0
  48. package/dist-types/ts3.4/BedrockAgentRuntime.d.ts +102 -0
  49. package/dist-types/ts3.4/BedrockAgentRuntimeClient.d.ts +36 -0
  50. package/dist-types/ts3.4/commands/CreateInvocationCommand.d.ts +1 -1
  51. package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +1 -1
  52. package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +1 -1
  53. package/dist-types/ts3.4/commands/EndSessionCommand.d.ts +1 -1
  54. package/dist-types/ts3.4/commands/GetExecutionFlowSnapshotCommand.d.ts +51 -0
  55. package/dist-types/ts3.4/commands/GetFlowExecutionCommand.d.ts +50 -0
  56. package/dist-types/ts3.4/commands/GetInvocationStepCommand.d.ts +1 -1
  57. package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +1 -1
  58. package/dist-types/ts3.4/commands/ListFlowExecutionEventsCommand.d.ts +51 -0
  59. package/dist-types/ts3.4/commands/ListFlowExecutionsCommand.d.ts +51 -0
  60. package/dist-types/ts3.4/commands/ListInvocationStepsCommand.d.ts +1 -1
  61. package/dist-types/ts3.4/commands/ListInvocationsCommand.d.ts +1 -1
  62. package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +1 -2
  63. package/dist-types/ts3.4/commands/PutInvocationStepCommand.d.ts +1 -1
  64. package/dist-types/ts3.4/commands/RetrieveAndGenerateStreamCommand.d.ts +4 -2
  65. package/dist-types/ts3.4/commands/RetrieveCommand.d.ts +1 -2
  66. package/dist-types/ts3.4/commands/StartFlowExecutionCommand.d.ts +51 -0
  67. package/dist-types/ts3.4/commands/StopFlowExecutionCommand.d.ts +51 -0
  68. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  69. package/dist-types/ts3.4/models/models_0.d.ts +393 -507
  70. package/dist-types/ts3.4/models/models_1.d.ts +490 -2
  71. package/dist-types/ts3.4/pagination/ListFlowExecutionEventsPaginator.d.ts +11 -0
  72. package/dist-types/ts3.4/pagination/ListFlowExecutionsPaginator.d.ts +11 -0
  73. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  74. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +72 -0
  75. package/package.json +1 -1
@@ -121,6 +121,117 @@ export var InvocationInputMember;
121
121
  return visitor._(value.$unknown[0], value.$unknown[1]);
122
122
  };
123
123
  })(InvocationInputMember || (InvocationInputMember = {}));
124
+ export class InternalServerException extends __BaseException {
125
+ name = "InternalServerException";
126
+ $fault = "server";
127
+ reason;
128
+ constructor(opts) {
129
+ super({
130
+ name: "InternalServerException",
131
+ $fault: "server",
132
+ ...opts,
133
+ });
134
+ Object.setPrototypeOf(this, InternalServerException.prototype);
135
+ this.reason = opts.reason;
136
+ }
137
+ }
138
+ export class ResourceNotFoundException extends __BaseException {
139
+ name = "ResourceNotFoundException";
140
+ $fault = "client";
141
+ constructor(opts) {
142
+ super({
143
+ name: "ResourceNotFoundException",
144
+ $fault: "client",
145
+ ...opts,
146
+ });
147
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
148
+ }
149
+ }
150
+ export class ThrottlingException extends __BaseException {
151
+ name = "ThrottlingException";
152
+ $fault = "client";
153
+ constructor(opts) {
154
+ super({
155
+ name: "ThrottlingException",
156
+ $fault: "client",
157
+ ...opts,
158
+ });
159
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
160
+ }
161
+ }
162
+ export class ValidationException extends __BaseException {
163
+ name = "ValidationException";
164
+ $fault = "client";
165
+ constructor(opts) {
166
+ super({
167
+ name: "ValidationException",
168
+ $fault: "client",
169
+ ...opts,
170
+ });
171
+ Object.setPrototypeOf(this, ValidationException.prototype);
172
+ }
173
+ }
174
+ export const FlowExecutionErrorType = {
175
+ TIMED_OUT: "ExecutionTimedOut",
176
+ };
177
+ export const FlowExecutionStatus = {
178
+ ABORTED: "Aborted",
179
+ FAILED: "Failed",
180
+ RUNNING: "Running",
181
+ SUCCEEDED: "Succeeded",
182
+ TIMED_OUT: "TimedOut",
183
+ };
184
+ export const FlowExecutionEventType = {
185
+ FLOW: "Flow",
186
+ NODE: "Node",
187
+ };
188
+ export const FlowErrorCode = {
189
+ INTERNAL_SERVER: "INTERNAL_SERVER",
190
+ NODE_EXECUTION_FAILED: "NODE_EXECUTION_FAILED",
191
+ VALIDATION: "VALIDATION",
192
+ };
193
+ export var FlowExecutionContent;
194
+ (function (FlowExecutionContent) {
195
+ FlowExecutionContent.visit = (value, visitor) => {
196
+ if (value.document !== undefined)
197
+ return visitor.document(value.document);
198
+ return visitor._(value.$unknown[0], value.$unknown[1]);
199
+ };
200
+ })(FlowExecutionContent || (FlowExecutionContent = {}));
201
+ export const NodeErrorCode = {
202
+ BAD_GATEWAY: "BAD_GATEWAY",
203
+ DEPENDENCY_FAILED: "DEPENDENCY_FAILED",
204
+ INTERNAL_SERVER: "INTERNAL_SERVER",
205
+ VALIDATION: "VALIDATION",
206
+ };
207
+ export var NodeExecutionContent;
208
+ (function (NodeExecutionContent) {
209
+ NodeExecutionContent.visit = (value, visitor) => {
210
+ if (value.document !== undefined)
211
+ return visitor.document(value.document);
212
+ return visitor._(value.$unknown[0], value.$unknown[1]);
213
+ };
214
+ })(NodeExecutionContent || (NodeExecutionContent = {}));
215
+ export var FlowExecutionEvent;
216
+ (function (FlowExecutionEvent) {
217
+ FlowExecutionEvent.visit = (value, visitor) => {
218
+ if (value.flowInputEvent !== undefined)
219
+ return visitor.flowInputEvent(value.flowInputEvent);
220
+ if (value.flowOutputEvent !== undefined)
221
+ return visitor.flowOutputEvent(value.flowOutputEvent);
222
+ if (value.nodeInputEvent !== undefined)
223
+ return visitor.nodeInputEvent(value.nodeInputEvent);
224
+ if (value.nodeOutputEvent !== undefined)
225
+ return visitor.nodeOutputEvent(value.nodeOutputEvent);
226
+ if (value.conditionResultEvent !== undefined)
227
+ return visitor.conditionResultEvent(value.conditionResultEvent);
228
+ if (value.nodeFailureEvent !== undefined)
229
+ return visitor.nodeFailureEvent(value.nodeFailureEvent);
230
+ if (value.flowFailureEvent !== undefined)
231
+ return visitor.flowFailureEvent(value.flowFailureEvent);
232
+ return visitor._(value.$unknown[0], value.$unknown[1]);
233
+ };
234
+ })(FlowExecutionEvent || (FlowExecutionEvent = {}));
124
235
  export class BadGatewayException extends __BaseException {
125
236
  name = "BadGatewayException";
126
237
  $fault = "server";
@@ -161,18 +272,16 @@ export class DependencyFailedException extends __BaseException {
161
272
  this.resourceName = opts.resourceName;
162
273
  }
163
274
  }
164
- export class InternalServerException extends __BaseException {
165
- name = "InternalServerException";
166
- $fault = "server";
167
- reason;
275
+ export class ServiceQuotaExceededException extends __BaseException {
276
+ name = "ServiceQuotaExceededException";
277
+ $fault = "client";
168
278
  constructor(opts) {
169
279
  super({
170
- name: "InternalServerException",
171
- $fault: "server",
280
+ name: "ServiceQuotaExceededException",
281
+ $fault: "client",
172
282
  ...opts,
173
283
  });
174
- Object.setPrototypeOf(this, InternalServerException.prototype);
175
- this.reason = opts.reason;
284
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
176
285
  }
177
286
  }
178
287
  export var FlowInputContent;
@@ -246,54 +355,6 @@ export var FlowTrace;
246
355
  return visitor._(value.$unknown[0], value.$unknown[1]);
247
356
  };
248
357
  })(FlowTrace || (FlowTrace = {}));
249
- export class ResourceNotFoundException extends __BaseException {
250
- name = "ResourceNotFoundException";
251
- $fault = "client";
252
- constructor(opts) {
253
- super({
254
- name: "ResourceNotFoundException",
255
- $fault: "client",
256
- ...opts,
257
- });
258
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
259
- }
260
- }
261
- export class ServiceQuotaExceededException extends __BaseException {
262
- name = "ServiceQuotaExceededException";
263
- $fault = "client";
264
- constructor(opts) {
265
- super({
266
- name: "ServiceQuotaExceededException",
267
- $fault: "client",
268
- ...opts,
269
- });
270
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
271
- }
272
- }
273
- export class ThrottlingException extends __BaseException {
274
- name = "ThrottlingException";
275
- $fault = "client";
276
- constructor(opts) {
277
- super({
278
- name: "ThrottlingException",
279
- $fault: "client",
280
- ...opts,
281
- });
282
- Object.setPrototypeOf(this, ThrottlingException.prototype);
283
- }
284
- }
285
- export class ValidationException extends __BaseException {
286
- name = "ValidationException";
287
- $fault = "client";
288
- constructor(opts) {
289
- super({
290
- name: "ValidationException",
291
- $fault: "client",
292
- ...opts,
293
- });
294
- Object.setPrototypeOf(this, ValidationException.prototype);
295
- }
296
- }
297
358
  export var FlowResponseStream;
298
359
  (function (FlowResponseStream) {
299
360
  FlowResponseStream.visit = (value, visitor) => {
@@ -772,75 +833,6 @@ export const GuadrailAction = {
772
833
  INTERVENED: "INTERVENED",
773
834
  NONE: "NONE",
774
835
  };
775
- export var RetrieveAndGenerateStreamResponseOutput;
776
- (function (RetrieveAndGenerateStreamResponseOutput) {
777
- RetrieveAndGenerateStreamResponseOutput.visit = (value, visitor) => {
778
- if (value.output !== undefined)
779
- return visitor.output(value.output);
780
- if (value.citation !== undefined)
781
- return visitor.citation(value.citation);
782
- if (value.guardrail !== undefined)
783
- return visitor.guardrail(value.guardrail);
784
- if (value.internalServerException !== undefined)
785
- return visitor.internalServerException(value.internalServerException);
786
- if (value.validationException !== undefined)
787
- return visitor.validationException(value.validationException);
788
- if (value.resourceNotFoundException !== undefined)
789
- return visitor.resourceNotFoundException(value.resourceNotFoundException);
790
- if (value.serviceQuotaExceededException !== undefined)
791
- return visitor.serviceQuotaExceededException(value.serviceQuotaExceededException);
792
- if (value.throttlingException !== undefined)
793
- return visitor.throttlingException(value.throttlingException);
794
- if (value.accessDeniedException !== undefined)
795
- return visitor.accessDeniedException(value.accessDeniedException);
796
- if (value.conflictException !== undefined)
797
- return visitor.conflictException(value.conflictException);
798
- if (value.dependencyFailedException !== undefined)
799
- return visitor.dependencyFailedException(value.dependencyFailedException);
800
- if (value.badGatewayException !== undefined)
801
- return visitor.badGatewayException(value.badGatewayException);
802
- return visitor._(value.$unknown[0], value.$unknown[1]);
803
- };
804
- })(RetrieveAndGenerateStreamResponseOutput || (RetrieveAndGenerateStreamResponseOutput = {}));
805
- export const SessionStatus = {
806
- ACTIVE: "ACTIVE",
807
- ENDED: "ENDED",
808
- EXPIRED: "EXPIRED",
809
- };
810
- export const ImageFormat = {
811
- GIF: "gif",
812
- JPEG: "jpeg",
813
- PNG: "png",
814
- WEBP: "webp",
815
- };
816
- export var ImageSource;
817
- (function (ImageSource) {
818
- ImageSource.visit = (value, visitor) => {
819
- if (value.bytes !== undefined)
820
- return visitor.bytes(value.bytes);
821
- if (value.s3Location !== undefined)
822
- return visitor.s3Location(value.s3Location);
823
- return visitor._(value.$unknown[0], value.$unknown[1]);
824
- };
825
- })(ImageSource || (ImageSource = {}));
826
- export var BedrockSessionContentBlock;
827
- (function (BedrockSessionContentBlock) {
828
- BedrockSessionContentBlock.visit = (value, visitor) => {
829
- if (value.text !== undefined)
830
- return visitor.text(value.text);
831
- if (value.image !== undefined)
832
- return visitor.image(value.image);
833
- return visitor._(value.$unknown[0], value.$unknown[1]);
834
- };
835
- })(BedrockSessionContentBlock || (BedrockSessionContentBlock = {}));
836
- export var InvocationStepPayload;
837
- (function (InvocationStepPayload) {
838
- InvocationStepPayload.visit = (value, visitor) => {
839
- if (value.contentBlocks !== undefined)
840
- return visitor.contentBlocks(value.contentBlocks);
841
- return visitor._(value.$unknown[0], value.$unknown[1]);
842
- };
843
- })(InvocationStepPayload || (InvocationStepPayload = {}));
844
836
  export const ActionGroupInvocationInputFilterSensitiveLog = (obj) => ({
845
837
  ...obj,
846
838
  ...(obj.actionGroupName && { actionGroupName: SENSITIVE_STRING }),
@@ -951,6 +943,87 @@ export const AgentCollaboratorInvocationOutputFilterSensitiveLog = (obj) => ({
951
943
  ...(obj.output && { output: AgentCollaboratorOutputPayloadFilterSensitiveLog(obj.output) }),
952
944
  ...(obj.metadata && { metadata: SENSITIVE_STRING }),
953
945
  });
946
+ export const SatisfiedConditionFilterSensitiveLog = (obj) => ({
947
+ ...obj,
948
+ });
949
+ export const ConditionResultEventFilterSensitiveLog = (obj) => ({
950
+ ...obj,
951
+ ...(obj.satisfiedConditions && { satisfiedConditions: SENSITIVE_STRING }),
952
+ });
953
+ export const FlowFailureEventFilterSensitiveLog = (obj) => ({
954
+ ...obj,
955
+ });
956
+ export const FlowExecutionContentFilterSensitiveLog = (obj) => {
957
+ if (obj.document !== undefined)
958
+ return { document: obj.document };
959
+ if (obj.$unknown !== undefined)
960
+ return { [obj.$unknown[0]]: "UNKNOWN" };
961
+ };
962
+ export const FlowInputFieldFilterSensitiveLog = (obj) => ({
963
+ ...obj,
964
+ ...(obj.content && { content: SENSITIVE_STRING }),
965
+ });
966
+ export const FlowExecutionInputEventFilterSensitiveLog = (obj) => ({
967
+ ...obj,
968
+ ...(obj.fields && { fields: SENSITIVE_STRING }),
969
+ });
970
+ export const FlowOutputFieldFilterSensitiveLog = (obj) => ({
971
+ ...obj,
972
+ ...(obj.content && { content: SENSITIVE_STRING }),
973
+ });
974
+ export const FlowExecutionOutputEventFilterSensitiveLog = (obj) => ({
975
+ ...obj,
976
+ ...(obj.fields && { fields: SENSITIVE_STRING }),
977
+ });
978
+ export const NodeFailureEventFilterSensitiveLog = (obj) => ({
979
+ ...obj,
980
+ });
981
+ export const NodeExecutionContentFilterSensitiveLog = (obj) => {
982
+ if (obj.document !== undefined)
983
+ return { document: obj.document };
984
+ if (obj.$unknown !== undefined)
985
+ return { [obj.$unknown[0]]: "UNKNOWN" };
986
+ };
987
+ export const NodeInputFieldFilterSensitiveLog = (obj) => ({
988
+ ...obj,
989
+ ...(obj.content && { content: SENSITIVE_STRING }),
990
+ });
991
+ export const NodeInputEventFilterSensitiveLog = (obj) => ({
992
+ ...obj,
993
+ ...(obj.fields && { fields: SENSITIVE_STRING }),
994
+ });
995
+ export const NodeOutputFieldFilterSensitiveLog = (obj) => ({
996
+ ...obj,
997
+ ...(obj.content && { content: SENSITIVE_STRING }),
998
+ });
999
+ export const NodeOutputEventFilterSensitiveLog = (obj) => ({
1000
+ ...obj,
1001
+ ...(obj.fields && { fields: SENSITIVE_STRING }),
1002
+ });
1003
+ export const FlowExecutionEventFilterSensitiveLog = (obj) => {
1004
+ if (obj.flowInputEvent !== undefined)
1005
+ return { flowInputEvent: SENSITIVE_STRING };
1006
+ if (obj.flowOutputEvent !== undefined)
1007
+ return { flowOutputEvent: SENSITIVE_STRING };
1008
+ if (obj.nodeInputEvent !== undefined)
1009
+ return { nodeInputEvent: SENSITIVE_STRING };
1010
+ if (obj.nodeOutputEvent !== undefined)
1011
+ return { nodeOutputEvent: SENSITIVE_STRING };
1012
+ if (obj.conditionResultEvent !== undefined)
1013
+ return { conditionResultEvent: SENSITIVE_STRING };
1014
+ if (obj.nodeFailureEvent !== undefined)
1015
+ return { nodeFailureEvent: SENSITIVE_STRING };
1016
+ if (obj.flowFailureEvent !== undefined)
1017
+ return { flowFailureEvent: SENSITIVE_STRING };
1018
+ if (obj.$unknown !== undefined)
1019
+ return { [obj.$unknown[0]]: "UNKNOWN" };
1020
+ };
1021
+ export const ListFlowExecutionEventsResponseFilterSensitiveLog = (obj) => ({
1022
+ ...obj,
1023
+ ...(obj.flowExecutionEvents && {
1024
+ flowExecutionEvents: obj.flowExecutionEvents.map((item) => FlowExecutionEventFilterSensitiveLog(item)),
1025
+ }),
1026
+ });
954
1027
  export const FlowInputContentFilterSensitiveLog = (obj) => {
955
1028
  if (obj.document !== undefined)
956
1029
  return { document: obj.document };
@@ -961,6 +1034,10 @@ export const FlowInputFilterSensitiveLog = (obj) => ({
961
1034
  ...obj,
962
1035
  ...(obj.content && { content: SENSITIVE_STRING }),
963
1036
  });
1037
+ export const StartFlowExecutionRequestFilterSensitiveLog = (obj) => ({
1038
+ ...obj,
1039
+ ...(obj.inputs && { inputs: obj.inputs.map((item) => FlowInputFilterSensitiveLog(item)) }),
1040
+ });
964
1041
  export const InvokeFlowRequestFilterSensitiveLog = (obj) => ({
965
1042
  ...obj,
966
1043
  ...(obj.inputs && { inputs: obj.inputs.map((item) => FlowInputFilterSensitiveLog(item)) }),
@@ -1666,74 +1743,3 @@ export const CitationEventFilterSensitiveLog = (obj) => ({
1666
1743
  export const RetrieveAndGenerateOutputEventFilterSensitiveLog = (obj) => ({
1667
1744
  ...obj,
1668
1745
  });
1669
- export const RetrieveAndGenerateStreamResponseOutputFilterSensitiveLog = (obj) => {
1670
- if (obj.output !== undefined)
1671
- return { output: SENSITIVE_STRING };
1672
- if (obj.citation !== undefined)
1673
- return { citation: CitationEventFilterSensitiveLog(obj.citation) };
1674
- if (obj.guardrail !== undefined)
1675
- return { guardrail: obj.guardrail };
1676
- if (obj.internalServerException !== undefined)
1677
- return { internalServerException: obj.internalServerException };
1678
- if (obj.validationException !== undefined)
1679
- return { validationException: obj.validationException };
1680
- if (obj.resourceNotFoundException !== undefined)
1681
- return { resourceNotFoundException: obj.resourceNotFoundException };
1682
- if (obj.serviceQuotaExceededException !== undefined)
1683
- return { serviceQuotaExceededException: obj.serviceQuotaExceededException };
1684
- if (obj.throttlingException !== undefined)
1685
- return { throttlingException: obj.throttlingException };
1686
- if (obj.accessDeniedException !== undefined)
1687
- return { accessDeniedException: obj.accessDeniedException };
1688
- if (obj.conflictException !== undefined)
1689
- return { conflictException: obj.conflictException };
1690
- if (obj.dependencyFailedException !== undefined)
1691
- return { dependencyFailedException: obj.dependencyFailedException };
1692
- if (obj.badGatewayException !== undefined)
1693
- return { badGatewayException: obj.badGatewayException };
1694
- if (obj.$unknown !== undefined)
1695
- return { [obj.$unknown[0]]: "UNKNOWN" };
1696
- };
1697
- export const RetrieveAndGenerateStreamResponseFilterSensitiveLog = (obj) => ({
1698
- ...obj,
1699
- ...(obj.stream && { stream: "STREAMING_CONTENT" }),
1700
- });
1701
- export const KnowledgeBaseQueryFilterSensitiveLog = (obj) => ({
1702
- ...obj,
1703
- });
1704
- export const KnowledgeBaseRetrievalResultFilterSensitiveLog = (obj) => ({
1705
- ...obj,
1706
- ...(obj.content && { content: SENSITIVE_STRING }),
1707
- ...(obj.location && { location: SENSITIVE_STRING }),
1708
- ...(obj.metadata && { metadata: SENSITIVE_STRING }),
1709
- });
1710
- export const RetrieveResponseFilterSensitiveLog = (obj) => ({
1711
- ...obj,
1712
- ...(obj.retrievalResults && { retrievalResults: SENSITIVE_STRING }),
1713
- });
1714
- export const BedrockSessionContentBlockFilterSensitiveLog = (obj) => {
1715
- if (obj.text !== undefined)
1716
- return { text: obj.text };
1717
- if (obj.image !== undefined)
1718
- return { image: obj.image };
1719
- if (obj.$unknown !== undefined)
1720
- return { [obj.$unknown[0]]: "UNKNOWN" };
1721
- };
1722
- export const InvocationStepPayloadFilterSensitiveLog = (obj) => {
1723
- if (obj.contentBlocks !== undefined)
1724
- return { contentBlocks: SENSITIVE_STRING };
1725
- if (obj.$unknown !== undefined)
1726
- return { [obj.$unknown[0]]: "UNKNOWN" };
1727
- };
1728
- export const InvocationStepFilterSensitiveLog = (obj) => ({
1729
- ...obj,
1730
- ...(obj.payload && { payload: InvocationStepPayloadFilterSensitiveLog(obj.payload) }),
1731
- });
1732
- export const GetInvocationStepResponseFilterSensitiveLog = (obj) => ({
1733
- ...obj,
1734
- ...(obj.invocationStep && { invocationStep: InvocationStepFilterSensitiveLog(obj.invocationStep) }),
1735
- });
1736
- export const PutInvocationStepRequestFilterSensitiveLog = (obj) => ({
1737
- ...obj,
1738
- ...(obj.payload && { payload: InvocationStepPayloadFilterSensitiveLog(obj.payload) }),
1739
- });
@@ -1,5 +1,74 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
- import { AgentActionGroupFilterSensitiveLog, CollaboratorConfigurationFilterSensitiveLog, ConversationHistoryFilterSensitiveLog, ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog, GenerationConfigurationFilterSensitiveLog, ImplicitFilterConfigurationFilterSensitiveLog, InlineSessionStateFilterSensitiveLog, InputFileFilterSensitiveLog, InvocationResultMemberFilterSensitiveLog, OrchestrationConfigurationFilterSensitiveLog, VectorSearchRerankingConfigurationFilterSensitiveLog, } from "./models_0";
2
+ import { AgentActionGroupFilterSensitiveLog, CitationEventFilterSensitiveLog, CollaboratorConfigurationFilterSensitiveLog, ConversationHistoryFilterSensitiveLog, ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog, GenerationConfigurationFilterSensitiveLog, ImplicitFilterConfigurationFilterSensitiveLog, InlineSessionStateFilterSensitiveLog, InputFileFilterSensitiveLog, InvocationResultMemberFilterSensitiveLog, OrchestrationConfigurationFilterSensitiveLog, VectorSearchRerankingConfigurationFilterSensitiveLog, } from "./models_0";
3
+ export var RetrieveAndGenerateStreamResponseOutput;
4
+ (function (RetrieveAndGenerateStreamResponseOutput) {
5
+ RetrieveAndGenerateStreamResponseOutput.visit = (value, visitor) => {
6
+ if (value.output !== undefined)
7
+ return visitor.output(value.output);
8
+ if (value.citation !== undefined)
9
+ return visitor.citation(value.citation);
10
+ if (value.guardrail !== undefined)
11
+ return visitor.guardrail(value.guardrail);
12
+ if (value.internalServerException !== undefined)
13
+ return visitor.internalServerException(value.internalServerException);
14
+ if (value.validationException !== undefined)
15
+ return visitor.validationException(value.validationException);
16
+ if (value.resourceNotFoundException !== undefined)
17
+ return visitor.resourceNotFoundException(value.resourceNotFoundException);
18
+ if (value.serviceQuotaExceededException !== undefined)
19
+ return visitor.serviceQuotaExceededException(value.serviceQuotaExceededException);
20
+ if (value.throttlingException !== undefined)
21
+ return visitor.throttlingException(value.throttlingException);
22
+ if (value.accessDeniedException !== undefined)
23
+ return visitor.accessDeniedException(value.accessDeniedException);
24
+ if (value.conflictException !== undefined)
25
+ return visitor.conflictException(value.conflictException);
26
+ if (value.dependencyFailedException !== undefined)
27
+ return visitor.dependencyFailedException(value.dependencyFailedException);
28
+ if (value.badGatewayException !== undefined)
29
+ return visitor.badGatewayException(value.badGatewayException);
30
+ return visitor._(value.$unknown[0], value.$unknown[1]);
31
+ };
32
+ })(RetrieveAndGenerateStreamResponseOutput || (RetrieveAndGenerateStreamResponseOutput = {}));
33
+ export const SessionStatus = {
34
+ ACTIVE: "ACTIVE",
35
+ ENDED: "ENDED",
36
+ EXPIRED: "EXPIRED",
37
+ };
38
+ export const ImageFormat = {
39
+ GIF: "gif",
40
+ JPEG: "jpeg",
41
+ PNG: "png",
42
+ WEBP: "webp",
43
+ };
44
+ export var ImageSource;
45
+ (function (ImageSource) {
46
+ ImageSource.visit = (value, visitor) => {
47
+ if (value.bytes !== undefined)
48
+ return visitor.bytes(value.bytes);
49
+ if (value.s3Location !== undefined)
50
+ return visitor.s3Location(value.s3Location);
51
+ return visitor._(value.$unknown[0], value.$unknown[1]);
52
+ };
53
+ })(ImageSource || (ImageSource = {}));
54
+ export var BedrockSessionContentBlock;
55
+ (function (BedrockSessionContentBlock) {
56
+ BedrockSessionContentBlock.visit = (value, visitor) => {
57
+ if (value.text !== undefined)
58
+ return visitor.text(value.text);
59
+ if (value.image !== undefined)
60
+ return visitor.image(value.image);
61
+ return visitor._(value.$unknown[0], value.$unknown[1]);
62
+ };
63
+ })(BedrockSessionContentBlock || (BedrockSessionContentBlock = {}));
64
+ export var InvocationStepPayload;
65
+ (function (InvocationStepPayload) {
66
+ InvocationStepPayload.visit = (value, visitor) => {
67
+ if (value.contentBlocks !== undefined)
68
+ return visitor.contentBlocks(value.contentBlocks);
69
+ return visitor._(value.$unknown[0], value.$unknown[1]);
70
+ };
71
+ })(InvocationStepPayload || (InvocationStepPayload = {}));
3
72
  export var RetrievalFilter;
4
73
  (function (RetrievalFilter) {
5
74
  RetrievalFilter.visit = (value, visitor) => {
@@ -32,6 +101,77 @@ export var RetrievalFilter;
32
101
  return visitor._(value.$unknown[0], value.$unknown[1]);
33
102
  };
34
103
  })(RetrievalFilter || (RetrievalFilter = {}));
104
+ export const RetrieveAndGenerateStreamResponseOutputFilterSensitiveLog = (obj) => {
105
+ if (obj.output !== undefined)
106
+ return { output: SENSITIVE_STRING };
107
+ if (obj.citation !== undefined)
108
+ return { citation: CitationEventFilterSensitiveLog(obj.citation) };
109
+ if (obj.guardrail !== undefined)
110
+ return { guardrail: obj.guardrail };
111
+ if (obj.internalServerException !== undefined)
112
+ return { internalServerException: obj.internalServerException };
113
+ if (obj.validationException !== undefined)
114
+ return { validationException: obj.validationException };
115
+ if (obj.resourceNotFoundException !== undefined)
116
+ return { resourceNotFoundException: obj.resourceNotFoundException };
117
+ if (obj.serviceQuotaExceededException !== undefined)
118
+ return { serviceQuotaExceededException: obj.serviceQuotaExceededException };
119
+ if (obj.throttlingException !== undefined)
120
+ return { throttlingException: obj.throttlingException };
121
+ if (obj.accessDeniedException !== undefined)
122
+ return { accessDeniedException: obj.accessDeniedException };
123
+ if (obj.conflictException !== undefined)
124
+ return { conflictException: obj.conflictException };
125
+ if (obj.dependencyFailedException !== undefined)
126
+ return { dependencyFailedException: obj.dependencyFailedException };
127
+ if (obj.badGatewayException !== undefined)
128
+ return { badGatewayException: obj.badGatewayException };
129
+ if (obj.$unknown !== undefined)
130
+ return { [obj.$unknown[0]]: "UNKNOWN" };
131
+ };
132
+ export const RetrieveAndGenerateStreamResponseFilterSensitiveLog = (obj) => ({
133
+ ...obj,
134
+ ...(obj.stream && { stream: "STREAMING_CONTENT" }),
135
+ });
136
+ export const KnowledgeBaseQueryFilterSensitiveLog = (obj) => ({
137
+ ...obj,
138
+ });
139
+ export const KnowledgeBaseRetrievalResultFilterSensitiveLog = (obj) => ({
140
+ ...obj,
141
+ ...(obj.content && { content: SENSITIVE_STRING }),
142
+ ...(obj.location && { location: SENSITIVE_STRING }),
143
+ ...(obj.metadata && { metadata: SENSITIVE_STRING }),
144
+ });
145
+ export const RetrieveResponseFilterSensitiveLog = (obj) => ({
146
+ ...obj,
147
+ ...(obj.retrievalResults && { retrievalResults: SENSITIVE_STRING }),
148
+ });
149
+ export const BedrockSessionContentBlockFilterSensitiveLog = (obj) => {
150
+ if (obj.text !== undefined)
151
+ return { text: obj.text };
152
+ if (obj.image !== undefined)
153
+ return { image: obj.image };
154
+ if (obj.$unknown !== undefined)
155
+ return { [obj.$unknown[0]]: "UNKNOWN" };
156
+ };
157
+ export const InvocationStepPayloadFilterSensitiveLog = (obj) => {
158
+ if (obj.contentBlocks !== undefined)
159
+ return { contentBlocks: SENSITIVE_STRING };
160
+ if (obj.$unknown !== undefined)
161
+ return { [obj.$unknown[0]]: "UNKNOWN" };
162
+ };
163
+ export const InvocationStepFilterSensitiveLog = (obj) => ({
164
+ ...obj,
165
+ ...(obj.payload && { payload: InvocationStepPayloadFilterSensitiveLog(obj.payload) }),
166
+ });
167
+ export const GetInvocationStepResponseFilterSensitiveLog = (obj) => ({
168
+ ...obj,
169
+ ...(obj.invocationStep && { invocationStep: InvocationStepFilterSensitiveLog(obj.invocationStep) }),
170
+ });
171
+ export const PutInvocationStepRequestFilterSensitiveLog = (obj) => ({
172
+ ...obj,
173
+ ...(obj.payload && { payload: InvocationStepPayloadFilterSensitiveLog(obj.payload) }),
174
+ });
35
175
  export const RetrievalFilterFilterSensitiveLog = (obj) => {
36
176
  if (obj.equals !== undefined)
37
177
  return { equals: obj.equals };
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { BedrockAgentRuntimeClient } from "../BedrockAgentRuntimeClient";
3
+ import { ListFlowExecutionEventsCommand, } from "../commands/ListFlowExecutionEventsCommand";
4
+ export const paginateListFlowExecutionEvents = createPaginator(BedrockAgentRuntimeClient, ListFlowExecutionEventsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { BedrockAgentRuntimeClient } from "../BedrockAgentRuntimeClient";
3
+ import { ListFlowExecutionsCommand, } from "../commands/ListFlowExecutionsCommand";
4
+ export const paginateListFlowExecutions = createPaginator(BedrockAgentRuntimeClient, ListFlowExecutionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,5 +1,7 @@
1
1
  export * from "./GetAgentMemoryPaginator";
2
2
  export * from "./Interfaces";
3
+ export * from "./ListFlowExecutionEventsPaginator";
4
+ export * from "./ListFlowExecutionsPaginator";
3
5
  export * from "./ListInvocationStepsPaginator";
4
6
  export * from "./ListInvocationsPaginator";
5
7
  export * from "./ListSessionsPaginator";