@aws-sdk/client-bedrock-agent 3.808.0 → 3.811.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 (37) hide show
  1. package/dist-cjs/index.js +995 -703
  2. package/dist-es/commands/CreateFlowCommand.js +1 -1
  3. package/dist-es/commands/CreateFlowVersionCommand.js +1 -1
  4. package/dist-es/commands/GetFlowCommand.js +1 -1
  5. package/dist-es/commands/GetFlowVersionCommand.js +1 -1
  6. package/dist-es/commands/UpdateFlowCommand.js +1 -1
  7. package/dist-es/models/models_0.js +119 -115
  8. package/dist-es/models/models_1.js +136 -5
  9. package/dist-es/protocols/Aws_restJson1.js +140 -3
  10. package/dist-types/commands/CreateFlowAliasCommand.d.ts +8 -0
  11. package/dist-types/commands/CreateFlowCommand.d.ts +575 -41
  12. package/dist-types/commands/CreateFlowVersionCommand.d.ts +289 -21
  13. package/dist-types/commands/GetFlowAliasCommand.d.ts +4 -0
  14. package/dist-types/commands/GetFlowCommand.d.ts +312 -22
  15. package/dist-types/commands/GetFlowVersionCommand.d.ts +289 -21
  16. package/dist-types/commands/GetIngestionJobCommand.d.ts +2 -1
  17. package/dist-types/commands/ListFlowAliasesCommand.d.ts +4 -0
  18. package/dist-types/commands/ListIngestionJobsCommand.d.ts +1 -1
  19. package/dist-types/commands/StartIngestionJobCommand.d.ts +1 -1
  20. package/dist-types/commands/StopIngestionJobCommand.d.ts +1 -2
  21. package/dist-types/commands/UpdateFlowAliasCommand.d.ts +8 -0
  22. package/dist-types/commands/UpdateFlowCommand.d.ts +575 -41
  23. package/dist-types/commands/ValidateFlowDefinitionCommand.d.ts +310 -21
  24. package/dist-types/models/models_0.d.ts +1133 -1313
  25. package/dist-types/models/models_1.d.ts +1263 -20
  26. package/dist-types/ts3.4/commands/CreateFlowCommand.d.ts +1 -1
  27. package/dist-types/ts3.4/commands/CreateFlowVersionCommand.d.ts +2 -4
  28. package/dist-types/ts3.4/commands/GetFlowCommand.d.ts +2 -1
  29. package/dist-types/ts3.4/commands/GetFlowVersionCommand.d.ts +2 -4
  30. package/dist-types/ts3.4/commands/GetIngestionJobCommand.d.ts +2 -4
  31. package/dist-types/ts3.4/commands/ListIngestionJobsCommand.d.ts +1 -1
  32. package/dist-types/ts3.4/commands/StartIngestionJobCommand.d.ts +1 -1
  33. package/dist-types/ts3.4/commands/StopIngestionJobCommand.d.ts +4 -2
  34. package/dist-types/ts3.4/commands/UpdateFlowCommand.d.ts +1 -1
  35. package/dist-types/ts3.4/models/models_0.d.ts +603 -471
  36. package/dist-types/ts3.4/models/models_1.d.ts +597 -8
  37. package/package.json +12 -12
@@ -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 { CreateFlowRequestFilterSensitiveLog, CreateFlowResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { CreateFlowRequestFilterSensitiveLog, CreateFlowResponseFilterSensitiveLog, } from "../models/models_1";
6
6
  import { de_CreateFlowCommand, se_CreateFlowCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
8
  export class CreateFlowCommand extends $Command
@@ -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 { CreateFlowVersionResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { CreateFlowVersionResponseFilterSensitiveLog } from "../models/models_1";
6
6
  import { de_CreateFlowVersionCommand, se_CreateFlowVersionCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
8
  export class CreateFlowVersionCommand extends $Command
@@ -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 { GetFlowResponseFilterSensitiveLog } from "../models/models_0";
5
+ import { GetFlowResponseFilterSensitiveLog } from "../models/models_1";
6
6
  import { de_GetFlowCommand, se_GetFlowCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
8
  export class GetFlowCommand extends $Command
@@ -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 { GetFlowVersionResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { GetFlowVersionResponseFilterSensitiveLog } from "../models/models_1";
6
6
  import { de_GetFlowVersionCommand, se_GetFlowVersionCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
8
  export class GetFlowVersionCommand extends $Command
@@ -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 { UpdateFlowRequestFilterSensitiveLog, UpdateFlowResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { UpdateFlowRequestFilterSensitiveLog, UpdateFlowResponseFilterSensitiveLog, } from "../models/models_1";
6
6
  import { de_UpdateFlowCommand, se_UpdateFlowCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
8
  export class UpdateFlowCommand extends $Command
@@ -289,6 +289,27 @@ export var PromptInferenceConfiguration;
289
289
  return visitor._(value.$unknown[0], value.$unknown[1]);
290
290
  };
291
291
  })(PromptInferenceConfiguration || (PromptInferenceConfiguration = {}));
292
+ export const PerformanceConfigLatency = {
293
+ OPTIMIZED: "optimized",
294
+ STANDARD: "standard",
295
+ };
296
+ export const RerankingMetadataSelectionMode = {
297
+ ALL: "ALL",
298
+ SELECTIVE: "SELECTIVE",
299
+ };
300
+ export var RerankingMetadataSelectiveModeConfiguration;
301
+ (function (RerankingMetadataSelectiveModeConfiguration) {
302
+ RerankingMetadataSelectiveModeConfiguration.visit = (value, visitor) => {
303
+ if (value.fieldsToInclude !== undefined)
304
+ return visitor.fieldsToInclude(value.fieldsToInclude);
305
+ if (value.fieldsToExclude !== undefined)
306
+ return visitor.fieldsToExclude(value.fieldsToExclude);
307
+ return visitor._(value.$unknown[0], value.$unknown[1]);
308
+ };
309
+ })(RerankingMetadataSelectiveModeConfiguration || (RerankingMetadataSelectiveModeConfiguration = {}));
310
+ export const VectorSearchRerankingConfigurationType = {
311
+ BEDROCK_RERANKING_MODEL: "BEDROCK_RERANKING_MODEL",
312
+ };
292
313
  export const CachePointType = {
293
314
  DEFAULT: "default",
294
315
  };
@@ -386,38 +407,11 @@ export var StorageFlowNodeServiceConfiguration;
386
407
  return visitor._(value.$unknown[0], value.$unknown[1]);
387
408
  };
388
409
  })(StorageFlowNodeServiceConfiguration || (StorageFlowNodeServiceConfiguration = {}));
389
- export var FlowNodeConfiguration;
390
- (function (FlowNodeConfiguration) {
391
- FlowNodeConfiguration.visit = (value, visitor) => {
392
- if (value.input !== undefined)
393
- return visitor.input(value.input);
394
- if (value.output !== undefined)
395
- return visitor.output(value.output);
396
- if (value.knowledgeBase !== undefined)
397
- return visitor.knowledgeBase(value.knowledgeBase);
398
- if (value.condition !== undefined)
399
- return visitor.condition(value.condition);
400
- if (value.lex !== undefined)
401
- return visitor.lex(value.lex);
402
- if (value.prompt !== undefined)
403
- return visitor.prompt(value.prompt);
404
- if (value.lambdaFunction !== undefined)
405
- return visitor.lambdaFunction(value.lambdaFunction);
406
- if (value.storage !== undefined)
407
- return visitor.storage(value.storage);
408
- if (value.agent !== undefined)
409
- return visitor.agent(value.agent);
410
- if (value.retrieval !== undefined)
411
- return visitor.retrieval(value.retrieval);
412
- if (value.iterator !== undefined)
413
- return visitor.iterator(value.iterator);
414
- if (value.collector !== undefined)
415
- return visitor.collector(value.collector);
416
- if (value.inlineCode !== undefined)
417
- return visitor.inlineCode(value.inlineCode);
418
- return visitor._(value.$unknown[0], value.$unknown[1]);
419
- };
420
- })(FlowNodeConfiguration || (FlowNodeConfiguration = {}));
410
+ export const FlowNodeInputCategory = {
411
+ EXIT_LOOP: "ExitLoop",
412
+ LOOP_CONDITION: "LoopCondition",
413
+ RETURN_VALUE_TO_LOOP_START: "ReturnValueToLoopStart",
414
+ };
421
415
  export const FlowNodeIODataType = {
422
416
  ARRAY: "Array",
423
417
  BOOLEAN: "Boolean",
@@ -435,6 +429,9 @@ export const FlowNodeType = {
435
429
  KNOWLEDGE_BASE: "KnowledgeBase",
436
430
  LAMBDA_FUNCTION: "LambdaFunction",
437
431
  LEX: "Lex",
432
+ LOOP: "Loop",
433
+ LOOP_CONTROLLER: "LoopController",
434
+ LOOP_INPUT: "LoopInput",
438
435
  OUTPUT: "Output",
439
436
  PROMPT: "Prompt",
440
437
  RETRIEVAL: "Retrieval",
@@ -446,6 +443,16 @@ export const FlowStatus = {
446
443
  PREPARED: "Prepared",
447
444
  PREPARING: "Preparing",
448
445
  };
446
+ export const ConcurrencyType = {
447
+ AUTOMATIC: "Automatic",
448
+ MANUAL: "Manual",
449
+ };
450
+ export const IncompatibleLoopNodeType = {
451
+ COLLECTOR: "Collector",
452
+ CONDITION: "Condition",
453
+ INPUT: "Input",
454
+ ITERATOR: "Iterator",
455
+ };
449
456
  export var FlowValidationDetails;
450
457
  (function (FlowValidationDetails) {
451
458
  FlowValidationDetails.visit = (value, visitor) => {
@@ -503,6 +510,18 @@ export var FlowValidationDetails;
503
510
  return visitor.unknownNodeInput(value.unknownNodeInput);
504
511
  if (value.unknownNodeOutput !== undefined)
505
512
  return visitor.unknownNodeOutput(value.unknownNodeOutput);
513
+ if (value.missingLoopInputNode !== undefined)
514
+ return visitor.missingLoopInputNode(value.missingLoopInputNode);
515
+ if (value.missingLoopControllerNode !== undefined)
516
+ return visitor.missingLoopControllerNode(value.missingLoopControllerNode);
517
+ if (value.multipleLoopInputNodes !== undefined)
518
+ return visitor.multipleLoopInputNodes(value.multipleLoopInputNodes);
519
+ if (value.multipleLoopControllerNodes !== undefined)
520
+ return visitor.multipleLoopControllerNodes(value.multipleLoopControllerNodes);
521
+ if (value.loopIncompatibleNodeType !== undefined)
522
+ return visitor.loopIncompatibleNodeType(value.loopIncompatibleNodeType);
523
+ if (value.invalidLoopBoundary !== undefined)
524
+ return visitor.invalidLoopBoundary(value.invalidLoopBoundary);
506
525
  return visitor._(value.$unknown[0], value.$unknown[1]);
507
526
  };
508
527
  })(FlowValidationDetails || (FlowValidationDetails = {}));
@@ -515,6 +534,8 @@ export const FlowValidationType = {
515
534
  DUPLICATE_CONDITION_EXPRESSION: "DuplicateConditionExpression",
516
535
  DUPLICATE_CONNECTIONS: "DuplicateConnections",
517
536
  INCOMPATIBLE_CONNECTION_DATA_TYPE: "IncompatibleConnectionDataType",
537
+ INVALID_LOOP_BOUNDARY: "InvalidLoopBoundary",
538
+ LOOP_INCOMPATIBLE_NODE_TYPE: "LoopIncompatibleNodeType",
518
539
  MALFORMED_CONDITION_EXPRESSION: "MalformedConditionExpression",
519
540
  MALFORMED_NODE_INPUT_EXPRESSION: "MalformedNodeInputExpression",
520
541
  MISMATCHED_NODE_INPUT_TYPE: "MismatchedNodeInputType",
@@ -522,10 +543,14 @@ export const FlowValidationType = {
522
543
  MISSING_CONNECTION_CONFIGURATION: "MissingConnectionConfiguration",
523
544
  MISSING_DEFAULT_CONDITION: "MissingDefaultCondition",
524
545
  MISSING_ENDING_NODES: "MissingEndingNodes",
546
+ MISSING_LOOP_CONTROLLER_NODE: "MissingLoopControllerNode",
547
+ MISSING_LOOP_INPUT_NODE: "MissingLoopInputNode",
525
548
  MISSING_NODE_CONFIGURATION: "MissingNodeConfiguration",
526
549
  MISSING_NODE_INPUT: "MissingNodeInput",
527
550
  MISSING_NODE_OUTPUT: "MissingNodeOutput",
528
551
  MISSING_STARTING_NODES: "MissingStartingNodes",
552
+ MULTIPLE_LOOP_CONTROLLER_NODES: "MultipleLoopControllerNodes",
553
+ MULTIPLE_LOOP_INPUT_NODES: "MultipleLoopInputNodes",
529
554
  MULTIPLE_NODE_INPUT_CONNECTIONS: "MultipleNodeInputConnections",
530
555
  UNFULFILLED_NODE_INPUT: "UnfulfilledNodeInput",
531
556
  UNKNOWN_CONNECTION_CONDITION: "UnknownConnectionCondition",
@@ -547,20 +572,6 @@ export const IngestionJobStatus = {
547
572
  STOPPED: "STOPPED",
548
573
  STOPPING: "STOPPING",
549
574
  };
550
- export const IngestionJobFilterAttribute = {
551
- STATUS: "STATUS",
552
- };
553
- export const IngestionJobFilterOperator = {
554
- EQ: "EQ",
555
- };
556
- export const IngestionJobSortByAttribute = {
557
- STARTED_AT: "STARTED_AT",
558
- STATUS: "STATUS",
559
- };
560
- export const SortOrder = {
561
- ASCENDING: "ASCENDING",
562
- DESCENDING: "DESCENDING",
563
- };
564
575
  export const APISchemaFilterSensitiveLog = (obj) => {
565
576
  if (obj.s3 !== undefined)
566
577
  return { s3: obj.s3 };
@@ -803,6 +814,56 @@ export const InlineCodeFlowNodeConfigurationFilterSensitiveLog = (obj) => ({
803
814
  ...obj,
804
815
  ...(obj.code && { code: SENSITIVE_STRING }),
805
816
  });
817
+ export const KnowledgeBasePromptTemplateFilterSensitiveLog = (obj) => ({
818
+ ...obj,
819
+ ...(obj.textPromptTemplate && { textPromptTemplate: SENSITIVE_STRING }),
820
+ });
821
+ export const KnowledgeBaseOrchestrationConfigurationFilterSensitiveLog = (obj) => ({
822
+ ...obj,
823
+ ...(obj.promptTemplate && { promptTemplate: KnowledgeBasePromptTemplateFilterSensitiveLog(obj.promptTemplate) }),
824
+ ...(obj.inferenceConfig && { inferenceConfig: obj.inferenceConfig }),
825
+ });
826
+ export const RerankingMetadataSelectiveModeConfigurationFilterSensitiveLog = (obj) => {
827
+ if (obj.fieldsToInclude !== undefined)
828
+ return { fieldsToInclude: SENSITIVE_STRING };
829
+ if (obj.fieldsToExclude !== undefined)
830
+ return { fieldsToExclude: SENSITIVE_STRING };
831
+ if (obj.$unknown !== undefined)
832
+ return { [obj.$unknown[0]]: "UNKNOWN" };
833
+ };
834
+ export const MetadataConfigurationForRerankingFilterSensitiveLog = (obj) => ({
835
+ ...obj,
836
+ ...(obj.selectiveModeConfiguration && {
837
+ selectiveModeConfiguration: RerankingMetadataSelectiveModeConfigurationFilterSensitiveLog(obj.selectiveModeConfiguration),
838
+ }),
839
+ });
840
+ export const VectorSearchBedrockRerankingConfigurationFilterSensitiveLog = (obj) => ({
841
+ ...obj,
842
+ ...(obj.metadataConfiguration && {
843
+ metadataConfiguration: MetadataConfigurationForRerankingFilterSensitiveLog(obj.metadataConfiguration),
844
+ }),
845
+ });
846
+ export const VectorSearchRerankingConfigurationFilterSensitiveLog = (obj) => ({
847
+ ...obj,
848
+ ...(obj.bedrockRerankingConfiguration && {
849
+ bedrockRerankingConfiguration: VectorSearchBedrockRerankingConfigurationFilterSensitiveLog(obj.bedrockRerankingConfiguration),
850
+ }),
851
+ });
852
+ export const KnowledgeBaseFlowNodeConfigurationFilterSensitiveLog = (obj) => ({
853
+ ...obj,
854
+ ...(obj.promptTemplate && { promptTemplate: KnowledgeBasePromptTemplateFilterSensitiveLog(obj.promptTemplate) }),
855
+ ...(obj.inferenceConfiguration && { inferenceConfiguration: obj.inferenceConfiguration }),
856
+ ...(obj.rerankingConfiguration && {
857
+ rerankingConfiguration: VectorSearchRerankingConfigurationFilterSensitiveLog(obj.rerankingConfiguration),
858
+ }),
859
+ ...(obj.orchestrationConfiguration && {
860
+ orchestrationConfiguration: KnowledgeBaseOrchestrationConfigurationFilterSensitiveLog(obj.orchestrationConfiguration),
861
+ }),
862
+ });
863
+ export const LoopControllerFlowNodeConfigurationFilterSensitiveLog = (obj) => ({
864
+ ...obj,
865
+ ...(obj.continueCondition && { continueCondition: FlowConditionFilterSensitiveLog(obj.continueCondition) }),
866
+ });
806
867
  export const ContentBlockFilterSensitiveLog = (obj) => {
807
868
  if (obj.text !== undefined)
808
869
  return { text: obj.text };
@@ -879,66 +940,10 @@ export const PromptFlowNodeConfigurationFilterSensitiveLog = (obj) => ({
879
940
  sourceConfiguration: PromptFlowNodeSourceConfigurationFilterSensitiveLog(obj.sourceConfiguration),
880
941
  }),
881
942
  });
882
- export const FlowNodeConfigurationFilterSensitiveLog = (obj) => {
883
- if (obj.input !== undefined)
884
- return { input: obj.input };
885
- if (obj.output !== undefined)
886
- return { output: obj.output };
887
- if (obj.knowledgeBase !== undefined)
888
- return { knowledgeBase: obj.knowledgeBase };
889
- if (obj.condition !== undefined)
890
- return { condition: ConditionFlowNodeConfigurationFilterSensitiveLog(obj.condition) };
891
- if (obj.lex !== undefined)
892
- return { lex: obj.lex };
893
- if (obj.prompt !== undefined)
894
- return { prompt: PromptFlowNodeConfigurationFilterSensitiveLog(obj.prompt) };
895
- if (obj.lambdaFunction !== undefined)
896
- return { lambdaFunction: obj.lambdaFunction };
897
- if (obj.storage !== undefined)
898
- return { storage: obj.storage };
899
- if (obj.agent !== undefined)
900
- return { agent: obj.agent };
901
- if (obj.retrieval !== undefined)
902
- return { retrieval: obj.retrieval };
903
- if (obj.iterator !== undefined)
904
- return { iterator: obj.iterator };
905
- if (obj.collector !== undefined)
906
- return { collector: obj.collector };
907
- if (obj.inlineCode !== undefined)
908
- return { inlineCode: InlineCodeFlowNodeConfigurationFilterSensitiveLog(obj.inlineCode) };
909
- if (obj.$unknown !== undefined)
910
- return { [obj.$unknown[0]]: "UNKNOWN" };
911
- };
912
943
  export const FlowNodeInputFilterSensitiveLog = (obj) => ({
913
944
  ...obj,
914
945
  ...(obj.expression && { expression: SENSITIVE_STRING }),
915
946
  });
916
- export const FlowNodeFilterSensitiveLog = (obj) => ({
917
- ...obj,
918
- ...(obj.configuration && { configuration: FlowNodeConfigurationFilterSensitiveLog(obj.configuration) }),
919
- ...(obj.inputs && { inputs: obj.inputs.map((item) => FlowNodeInputFilterSensitiveLog(item)) }),
920
- });
921
- export const FlowDefinitionFilterSensitiveLog = (obj) => ({
922
- ...obj,
923
- ...(obj.nodes && { nodes: obj.nodes.map((item) => FlowNodeFilterSensitiveLog(item)) }),
924
- ...(obj.connections && { connections: obj.connections.map((item) => item) }),
925
- });
926
- export const CreateFlowRequestFilterSensitiveLog = (obj) => ({
927
- ...obj,
928
- ...(obj.definition && { definition: SENSITIVE_STRING }),
929
- });
930
- export const CreateFlowResponseFilterSensitiveLog = (obj) => ({
931
- ...obj,
932
- ...(obj.definition && { definition: SENSITIVE_STRING }),
933
- });
934
- export const CreateFlowVersionResponseFilterSensitiveLog = (obj) => ({
935
- ...obj,
936
- ...(obj.definition && { definition: SENSITIVE_STRING }),
937
- });
938
- export const GetFlowVersionResponseFilterSensitiveLog = (obj) => ({
939
- ...obj,
940
- ...(obj.definition && { definition: SENSITIVE_STRING }),
941
- });
942
947
  export const DuplicateConditionExpressionFlowValidationDetailsFilterSensitiveLog = (obj) => ({
943
948
  ...obj,
944
949
  ...(obj.expression && { expression: SENSITIVE_STRING }),
@@ -1000,6 +1005,18 @@ export const FlowValidationDetailsFilterSensitiveLog = (obj) => {
1000
1005
  return { unknownNodeInput: obj.unknownNodeInput };
1001
1006
  if (obj.unknownNodeOutput !== undefined)
1002
1007
  return { unknownNodeOutput: obj.unknownNodeOutput };
1008
+ if (obj.missingLoopInputNode !== undefined)
1009
+ return { missingLoopInputNode: obj.missingLoopInputNode };
1010
+ if (obj.missingLoopControllerNode !== undefined)
1011
+ return { missingLoopControllerNode: obj.missingLoopControllerNode };
1012
+ if (obj.multipleLoopInputNodes !== undefined)
1013
+ return { multipleLoopInputNodes: obj.multipleLoopInputNodes };
1014
+ if (obj.multipleLoopControllerNodes !== undefined)
1015
+ return { multipleLoopControllerNodes: obj.multipleLoopControllerNodes };
1016
+ if (obj.loopIncompatibleNodeType !== undefined)
1017
+ return { loopIncompatibleNodeType: obj.loopIncompatibleNodeType };
1018
+ if (obj.invalidLoopBoundary !== undefined)
1019
+ return { invalidLoopBoundary: obj.invalidLoopBoundary };
1003
1020
  if (obj.$unknown !== undefined)
1004
1021
  return { [obj.$unknown[0]]: "UNKNOWN" };
1005
1022
  };
@@ -1007,16 +1024,3 @@ export const FlowValidationFilterSensitiveLog = (obj) => ({
1007
1024
  ...obj,
1008
1025
  ...(obj.details && { details: FlowValidationDetailsFilterSensitiveLog(obj.details) }),
1009
1026
  });
1010
- export const GetFlowResponseFilterSensitiveLog = (obj) => ({
1011
- ...obj,
1012
- ...(obj.definition && { definition: SENSITIVE_STRING }),
1013
- ...(obj.validations && { validations: obj.validations.map((item) => FlowValidationFilterSensitiveLog(item)) }),
1014
- });
1015
- export const UpdateFlowRequestFilterSensitiveLog = (obj) => ({
1016
- ...obj,
1017
- ...(obj.definition && { definition: SENSITIVE_STRING }),
1018
- });
1019
- export const UpdateFlowResponseFilterSensitiveLog = (obj) => ({
1020
- ...obj,
1021
- ...(obj.definition && { definition: SENSITIVE_STRING }),
1022
- });
@@ -1,5 +1,19 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
- import { AgentVersionFilterSensitiveLog, FlowValidationFilterSensitiveLog, PromptTemplateConfigurationFilterSensitiveLog, } from "./models_0";
2
+ import { AgentVersionFilterSensitiveLog, ConditionFlowNodeConfigurationFilterSensitiveLog, FlowNodeInputFilterSensitiveLog, FlowValidationFilterSensitiveLog, InlineCodeFlowNodeConfigurationFilterSensitiveLog, KnowledgeBaseFlowNodeConfigurationFilterSensitiveLog, LoopControllerFlowNodeConfigurationFilterSensitiveLog, PromptFlowNodeConfigurationFilterSensitiveLog, PromptTemplateConfigurationFilterSensitiveLog, } from "./models_0";
3
+ export const IngestionJobFilterAttribute = {
4
+ STATUS: "STATUS",
5
+ };
6
+ export const IngestionJobFilterOperator = {
7
+ EQ: "EQ",
8
+ };
9
+ export const IngestionJobSortByAttribute = {
10
+ STARTED_AT: "STARTED_AT",
11
+ STATUS: "STATUS",
12
+ };
13
+ export const SortOrder = {
14
+ ASCENDING: "ASCENDING",
15
+ DESCENDING: "DESCENDING",
16
+ };
3
17
  export const ContentDataSourceType = {
4
18
  CUSTOM: "CUSTOM",
5
19
  S3: "S3",
@@ -97,6 +111,44 @@ export var PromptGenAiResource;
97
111
  return visitor._(value.$unknown[0], value.$unknown[1]);
98
112
  };
99
113
  })(PromptGenAiResource || (PromptGenAiResource = {}));
114
+ export var FlowNodeConfiguration;
115
+ (function (FlowNodeConfiguration) {
116
+ FlowNodeConfiguration.visit = (value, visitor) => {
117
+ if (value.input !== undefined)
118
+ return visitor.input(value.input);
119
+ if (value.output !== undefined)
120
+ return visitor.output(value.output);
121
+ if (value.knowledgeBase !== undefined)
122
+ return visitor.knowledgeBase(value.knowledgeBase);
123
+ if (value.condition !== undefined)
124
+ return visitor.condition(value.condition);
125
+ if (value.lex !== undefined)
126
+ return visitor.lex(value.lex);
127
+ if (value.prompt !== undefined)
128
+ return visitor.prompt(value.prompt);
129
+ if (value.lambdaFunction !== undefined)
130
+ return visitor.lambdaFunction(value.lambdaFunction);
131
+ if (value.storage !== undefined)
132
+ return visitor.storage(value.storage);
133
+ if (value.agent !== undefined)
134
+ return visitor.agent(value.agent);
135
+ if (value.retrieval !== undefined)
136
+ return visitor.retrieval(value.retrieval);
137
+ if (value.iterator !== undefined)
138
+ return visitor.iterator(value.iterator);
139
+ if (value.collector !== undefined)
140
+ return visitor.collector(value.collector);
141
+ if (value.inlineCode !== undefined)
142
+ return visitor.inlineCode(value.inlineCode);
143
+ if (value.loop !== undefined)
144
+ return visitor.loop(value.loop);
145
+ if (value.loopInput !== undefined)
146
+ return visitor.loopInput(value.loopInput);
147
+ if (value.loopController !== undefined)
148
+ return visitor.loopController(value.loopController);
149
+ return visitor._(value.$unknown[0], value.$unknown[1]);
150
+ };
151
+ })(FlowNodeConfiguration || (FlowNodeConfiguration = {}));
100
152
  export const ByteContentDocFilterSensitiveLog = (obj) => ({
101
153
  ...obj,
102
154
  ...(obj.data && { data: SENSITIVE_STRING }),
@@ -272,10 +324,6 @@ export const UpdatePromptResponseFilterSensitiveLog = (obj) => ({
272
324
  ...obj,
273
325
  ...(obj.variants && { variants: SENSITIVE_STRING }),
274
326
  });
275
- export const ValidateFlowDefinitionRequestFilterSensitiveLog = (obj) => ({
276
- ...obj,
277
- ...(obj.definition && { definition: SENSITIVE_STRING }),
278
- });
279
327
  export const ValidateFlowDefinitionResponseFilterSensitiveLog = (obj) => ({
280
328
  ...obj,
281
329
  ...(obj.validations && { validations: obj.validations.map((item) => FlowValidationFilterSensitiveLog(item)) }),
@@ -284,3 +332,86 @@ export const GetAgentVersionResponseFilterSensitiveLog = (obj) => ({
284
332
  ...obj,
285
333
  ...(obj.agentVersion && { agentVersion: AgentVersionFilterSensitiveLog(obj.agentVersion) }),
286
334
  });
335
+ export const FlowDefinitionFilterSensitiveLog = (obj) => ({
336
+ ...obj,
337
+ ...(obj.nodes && { nodes: obj.nodes.map((item) => FlowNodeFilterSensitiveLog(item)) }),
338
+ ...(obj.connections && { connections: obj.connections.map((item) => item) }),
339
+ });
340
+ export const FlowNodeFilterSensitiveLog = (obj) => ({
341
+ ...obj,
342
+ ...(obj.configuration && { configuration: FlowNodeConfigurationFilterSensitiveLog(obj.configuration) }),
343
+ ...(obj.inputs && { inputs: obj.inputs.map((item) => FlowNodeInputFilterSensitiveLog(item)) }),
344
+ });
345
+ export const FlowNodeConfigurationFilterSensitiveLog = (obj) => {
346
+ if (obj.input !== undefined)
347
+ return { input: obj.input };
348
+ if (obj.output !== undefined)
349
+ return { output: obj.output };
350
+ if (obj.knowledgeBase !== undefined)
351
+ return { knowledgeBase: KnowledgeBaseFlowNodeConfigurationFilterSensitiveLog(obj.knowledgeBase) };
352
+ if (obj.condition !== undefined)
353
+ return { condition: ConditionFlowNodeConfigurationFilterSensitiveLog(obj.condition) };
354
+ if (obj.lex !== undefined)
355
+ return { lex: obj.lex };
356
+ if (obj.prompt !== undefined)
357
+ return { prompt: PromptFlowNodeConfigurationFilterSensitiveLog(obj.prompt) };
358
+ if (obj.lambdaFunction !== undefined)
359
+ return { lambdaFunction: obj.lambdaFunction };
360
+ if (obj.storage !== undefined)
361
+ return { storage: obj.storage };
362
+ if (obj.agent !== undefined)
363
+ return { agent: obj.agent };
364
+ if (obj.retrieval !== undefined)
365
+ return { retrieval: obj.retrieval };
366
+ if (obj.iterator !== undefined)
367
+ return { iterator: obj.iterator };
368
+ if (obj.collector !== undefined)
369
+ return { collector: obj.collector };
370
+ if (obj.inlineCode !== undefined)
371
+ return { inlineCode: InlineCodeFlowNodeConfigurationFilterSensitiveLog(obj.inlineCode) };
372
+ if (obj.loop !== undefined)
373
+ return { loop: LoopFlowNodeConfigurationFilterSensitiveLog(obj.loop) };
374
+ if (obj.loopInput !== undefined)
375
+ return { loopInput: obj.loopInput };
376
+ if (obj.loopController !== undefined)
377
+ return { loopController: LoopControllerFlowNodeConfigurationFilterSensitiveLog(obj.loopController) };
378
+ if (obj.$unknown !== undefined)
379
+ return { [obj.$unknown[0]]: "UNKNOWN" };
380
+ };
381
+ export const LoopFlowNodeConfigurationFilterSensitiveLog = (obj) => ({
382
+ ...obj,
383
+ ...(obj.definition && { definition: SENSITIVE_STRING }),
384
+ });
385
+ export const CreateFlowRequestFilterSensitiveLog = (obj) => ({
386
+ ...obj,
387
+ ...(obj.definition && { definition: SENSITIVE_STRING }),
388
+ });
389
+ export const CreateFlowResponseFilterSensitiveLog = (obj) => ({
390
+ ...obj,
391
+ ...(obj.definition && { definition: SENSITIVE_STRING }),
392
+ });
393
+ export const CreateFlowVersionResponseFilterSensitiveLog = (obj) => ({
394
+ ...obj,
395
+ ...(obj.definition && { definition: SENSITIVE_STRING }),
396
+ });
397
+ export const GetFlowResponseFilterSensitiveLog = (obj) => ({
398
+ ...obj,
399
+ ...(obj.definition && { definition: SENSITIVE_STRING }),
400
+ ...(obj.validations && { validations: obj.validations.map((item) => FlowValidationFilterSensitiveLog(item)) }),
401
+ });
402
+ export const GetFlowVersionResponseFilterSensitiveLog = (obj) => ({
403
+ ...obj,
404
+ ...(obj.definition && { definition: SENSITIVE_STRING }),
405
+ });
406
+ export const UpdateFlowRequestFilterSensitiveLog = (obj) => ({
407
+ ...obj,
408
+ ...(obj.definition && { definition: SENSITIVE_STRING }),
409
+ });
410
+ export const UpdateFlowResponseFilterSensitiveLog = (obj) => ({
411
+ ...obj,
412
+ ...(obj.definition && { definition: SENSITIVE_STRING }),
413
+ });
414
+ export const ValidateFlowDefinitionRequestFilterSensitiveLog = (obj) => ({
415
+ ...obj,
416
+ ...(obj.definition && { definition: SENSITIVE_STRING }),
417
+ });