@aws-sdk/client-bedrock-agent 3.810.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 +1 -1
package/dist-cjs/index.js CHANGED
@@ -46,6 +46,7 @@ __export(index_exports, {
46
46
  CachePointType: () => CachePointType,
47
47
  ChatPromptTemplateConfigurationFilterSensitiveLog: () => ChatPromptTemplateConfigurationFilterSensitiveLog,
48
48
  ChunkingStrategy: () => ChunkingStrategy,
49
+ ConcurrencyType: () => ConcurrencyType,
49
50
  ConditionFlowNodeConfigurationFilterSensitiveLog: () => ConditionFlowNodeConfigurationFilterSensitiveLog,
50
51
  ConflictException: () => ConflictException,
51
52
  ConfluenceAuthType: () => ConfluenceAuthType,
@@ -119,6 +120,7 @@ __export(index_exports, {
119
120
  FlowNodeConfigurationFilterSensitiveLog: () => FlowNodeConfigurationFilterSensitiveLog,
120
121
  FlowNodeFilterSensitiveLog: () => FlowNodeFilterSensitiveLog,
121
122
  FlowNodeIODataType: () => FlowNodeIODataType,
123
+ FlowNodeInputCategory: () => FlowNodeInputCategory,
122
124
  FlowNodeInputFilterSensitiveLog: () => FlowNodeInputFilterSensitiveLog,
123
125
  FlowNodeType: () => FlowNodeType,
124
126
  FlowStatus: () => FlowStatus,
@@ -152,6 +154,7 @@ __export(index_exports, {
152
154
  GetPromptCommand: () => GetPromptCommand,
153
155
  GetPromptResponseFilterSensitiveLog: () => GetPromptResponseFilterSensitiveLog,
154
156
  IncludeExclude: () => IncludeExclude,
157
+ IncompatibleLoopNodeType: () => IncompatibleLoopNodeType,
155
158
  IngestKnowledgeBaseDocumentsCommand: () => IngestKnowledgeBaseDocumentsCommand,
156
159
  IngestKnowledgeBaseDocumentsRequestFilterSensitiveLog: () => IngestKnowledgeBaseDocumentsRequestFilterSensitiveLog,
157
160
  IngestionJobFilterAttribute: () => IngestionJobFilterAttribute,
@@ -165,6 +168,9 @@ __export(index_exports, {
165
168
  KnowledgeBaseConfigurationFilterSensitiveLog: () => KnowledgeBaseConfigurationFilterSensitiveLog,
166
169
  KnowledgeBaseDocumentFilterSensitiveLog: () => KnowledgeBaseDocumentFilterSensitiveLog,
167
170
  KnowledgeBaseFilterSensitiveLog: () => KnowledgeBaseFilterSensitiveLog,
171
+ KnowledgeBaseFlowNodeConfigurationFilterSensitiveLog: () => KnowledgeBaseFlowNodeConfigurationFilterSensitiveLog,
172
+ KnowledgeBaseOrchestrationConfigurationFilterSensitiveLog: () => KnowledgeBaseOrchestrationConfigurationFilterSensitiveLog,
173
+ KnowledgeBasePromptTemplateFilterSensitiveLog: () => KnowledgeBasePromptTemplateFilterSensitiveLog,
168
174
  KnowledgeBaseState: () => KnowledgeBaseState,
169
175
  KnowledgeBaseStatus: () => KnowledgeBaseStatus,
170
176
  KnowledgeBaseStorageType: () => KnowledgeBaseStorageType,
@@ -185,10 +191,13 @@ __export(index_exports, {
185
191
  ListKnowledgeBasesCommand: () => ListKnowledgeBasesCommand,
186
192
  ListPromptsCommand: () => ListPromptsCommand,
187
193
  ListTagsForResourceCommand: () => ListTagsForResourceCommand,
194
+ LoopControllerFlowNodeConfigurationFilterSensitiveLog: () => LoopControllerFlowNodeConfigurationFilterSensitiveLog,
195
+ LoopFlowNodeConfigurationFilterSensitiveLog: () => LoopFlowNodeConfigurationFilterSensitiveLog,
188
196
  MemoryType: () => MemoryType,
189
197
  MessageFilterSensitiveLog: () => MessageFilterSensitiveLog,
190
198
  MetadataAttributeFilterSensitiveLog: () => MetadataAttributeFilterSensitiveLog,
191
199
  MetadataAttributeValueFilterSensitiveLog: () => MetadataAttributeValueFilterSensitiveLog,
200
+ MetadataConfigurationForRerankingFilterSensitiveLog: () => MetadataConfigurationForRerankingFilterSensitiveLog,
192
201
  MetadataSourceType: () => MetadataSourceType,
193
202
  MetadataValueType: () => MetadataValueType,
194
203
  NeptuneAnalyticsConfigurationFilterSensitiveLog: () => NeptuneAnalyticsConfigurationFilterSensitiveLog,
@@ -199,6 +208,7 @@ __export(index_exports, {
199
208
  ParsingStrategy: () => ParsingStrategy,
200
209
  PatternObjectFilterConfigurationFilterSensitiveLog: () => PatternObjectFilterConfigurationFilterSensitiveLog,
201
210
  PatternObjectFilterFilterSensitiveLog: () => PatternObjectFilterFilterSensitiveLog,
211
+ PerformanceConfigLatency: () => PerformanceConfigLatency,
202
212
  PrepareAgentCommand: () => PrepareAgentCommand,
203
213
  PrepareFlowCommand: () => PrepareFlowCommand,
204
214
  PromptAgentResourceFilterSensitiveLog: () => PromptAgentResourceFilterSensitiveLog,
@@ -228,6 +238,9 @@ __export(index_exports, {
228
238
  RedshiftServerlessAuthType: () => RedshiftServerlessAuthType,
229
239
  RelayConversationHistory: () => RelayConversationHistory,
230
240
  RequireConfirmation: () => RequireConfirmation,
241
+ RerankingMetadataSelectionMode: () => RerankingMetadataSelectionMode,
242
+ RerankingMetadataSelectiveModeConfiguration: () => RerankingMetadataSelectiveModeConfiguration,
243
+ RerankingMetadataSelectiveModeConfigurationFilterSensitiveLog: () => RerankingMetadataSelectiveModeConfigurationFilterSensitiveLog,
231
244
  ResourceNotFoundException: () => ResourceNotFoundException,
232
245
  RetrievalFlowNodeServiceConfiguration: () => RetrievalFlowNodeServiceConfiguration,
233
246
  S3DataSourceConfigurationFilterSensitiveLog: () => S3DataSourceConfigurationFilterSensitiveLog,
@@ -289,6 +302,9 @@ __export(index_exports, {
289
302
  ValidateFlowDefinitionRequestFilterSensitiveLog: () => ValidateFlowDefinitionRequestFilterSensitiveLog,
290
303
  ValidateFlowDefinitionResponseFilterSensitiveLog: () => ValidateFlowDefinitionResponseFilterSensitiveLog,
291
304
  ValidationException: () => ValidationException,
305
+ VectorSearchBedrockRerankingConfigurationFilterSensitiveLog: () => VectorSearchBedrockRerankingConfigurationFilterSensitiveLog,
306
+ VectorSearchRerankingConfigurationFilterSensitiveLog: () => VectorSearchRerankingConfigurationFilterSensitiveLog,
307
+ VectorSearchRerankingConfigurationType: () => VectorSearchRerankingConfigurationType,
292
308
  WebCrawlerConfigurationFilterSensitiveLog: () => WebCrawlerConfigurationFilterSensitiveLog,
293
309
  WebDataSourceConfigurationFilterSensitiveLog: () => WebDataSourceConfigurationFilterSensitiveLog,
294
310
  WebScopeType: () => WebScopeType,
@@ -804,6 +820,25 @@ var PromptInferenceConfiguration;
804
820
  return visitor._(value.$unknown[0], value.$unknown[1]);
805
821
  }, "visit");
806
822
  })(PromptInferenceConfiguration || (PromptInferenceConfiguration = {}));
823
+ var PerformanceConfigLatency = {
824
+ OPTIMIZED: "optimized",
825
+ STANDARD: "standard"
826
+ };
827
+ var RerankingMetadataSelectionMode = {
828
+ ALL: "ALL",
829
+ SELECTIVE: "SELECTIVE"
830
+ };
831
+ var RerankingMetadataSelectiveModeConfiguration;
832
+ ((RerankingMetadataSelectiveModeConfiguration3) => {
833
+ RerankingMetadataSelectiveModeConfiguration3.visit = /* @__PURE__ */ __name((value, visitor) => {
834
+ if (value.fieldsToInclude !== void 0) return visitor.fieldsToInclude(value.fieldsToInclude);
835
+ if (value.fieldsToExclude !== void 0) return visitor.fieldsToExclude(value.fieldsToExclude);
836
+ return visitor._(value.$unknown[0], value.$unknown[1]);
837
+ }, "visit");
838
+ })(RerankingMetadataSelectiveModeConfiguration || (RerankingMetadataSelectiveModeConfiguration = {}));
839
+ var VectorSearchRerankingConfigurationType = {
840
+ BEDROCK_RERANKING_MODEL: "BEDROCK_RERANKING_MODEL"
841
+ };
807
842
  var CachePointType = {
808
843
  DEFAULT: "default"
809
844
  };
@@ -885,25 +920,11 @@ var StorageFlowNodeServiceConfiguration;
885
920
  return visitor._(value.$unknown[0], value.$unknown[1]);
886
921
  }, "visit");
887
922
  })(StorageFlowNodeServiceConfiguration || (StorageFlowNodeServiceConfiguration = {}));
888
- var FlowNodeConfiguration;
889
- ((FlowNodeConfiguration2) => {
890
- FlowNodeConfiguration2.visit = /* @__PURE__ */ __name((value, visitor) => {
891
- if (value.input !== void 0) return visitor.input(value.input);
892
- if (value.output !== void 0) return visitor.output(value.output);
893
- if (value.knowledgeBase !== void 0) return visitor.knowledgeBase(value.knowledgeBase);
894
- if (value.condition !== void 0) return visitor.condition(value.condition);
895
- if (value.lex !== void 0) return visitor.lex(value.lex);
896
- if (value.prompt !== void 0) return visitor.prompt(value.prompt);
897
- if (value.lambdaFunction !== void 0) return visitor.lambdaFunction(value.lambdaFunction);
898
- if (value.storage !== void 0) return visitor.storage(value.storage);
899
- if (value.agent !== void 0) return visitor.agent(value.agent);
900
- if (value.retrieval !== void 0) return visitor.retrieval(value.retrieval);
901
- if (value.iterator !== void 0) return visitor.iterator(value.iterator);
902
- if (value.collector !== void 0) return visitor.collector(value.collector);
903
- if (value.inlineCode !== void 0) return visitor.inlineCode(value.inlineCode);
904
- return visitor._(value.$unknown[0], value.$unknown[1]);
905
- }, "visit");
906
- })(FlowNodeConfiguration || (FlowNodeConfiguration = {}));
923
+ var FlowNodeInputCategory = {
924
+ EXIT_LOOP: "ExitLoop",
925
+ LOOP_CONDITION: "LoopCondition",
926
+ RETURN_VALUE_TO_LOOP_START: "ReturnValueToLoopStart"
927
+ };
907
928
  var FlowNodeIODataType = {
908
929
  ARRAY: "Array",
909
930
  BOOLEAN: "Boolean",
@@ -921,6 +942,9 @@ var FlowNodeType = {
921
942
  KNOWLEDGE_BASE: "KnowledgeBase",
922
943
  LAMBDA_FUNCTION: "LambdaFunction",
923
944
  LEX: "Lex",
945
+ LOOP: "Loop",
946
+ LOOP_CONTROLLER: "LoopController",
947
+ LOOP_INPUT: "LoopInput",
924
948
  OUTPUT: "Output",
925
949
  PROMPT: "Prompt",
926
950
  RETRIEVAL: "Retrieval",
@@ -932,6 +956,16 @@ var FlowStatus = {
932
956
  PREPARED: "Prepared",
933
957
  PREPARING: "Preparing"
934
958
  };
959
+ var ConcurrencyType = {
960
+ AUTOMATIC: "Automatic",
961
+ MANUAL: "Manual"
962
+ };
963
+ var IncompatibleLoopNodeType = {
964
+ COLLECTOR: "Collector",
965
+ CONDITION: "Condition",
966
+ INPUT: "Input",
967
+ ITERATOR: "Iterator"
968
+ };
935
969
  var FlowValidationDetails;
936
970
  ((FlowValidationDetails2) => {
937
971
  FlowValidationDetails2.visit = /* @__PURE__ */ __name((value, visitor) => {
@@ -978,6 +1012,15 @@ var FlowValidationDetails;
978
1012
  if (value.unspecified !== void 0) return visitor.unspecified(value.unspecified);
979
1013
  if (value.unknownNodeInput !== void 0) return visitor.unknownNodeInput(value.unknownNodeInput);
980
1014
  if (value.unknownNodeOutput !== void 0) return visitor.unknownNodeOutput(value.unknownNodeOutput);
1015
+ if (value.missingLoopInputNode !== void 0) return visitor.missingLoopInputNode(value.missingLoopInputNode);
1016
+ if (value.missingLoopControllerNode !== void 0)
1017
+ return visitor.missingLoopControllerNode(value.missingLoopControllerNode);
1018
+ if (value.multipleLoopInputNodes !== void 0) return visitor.multipleLoopInputNodes(value.multipleLoopInputNodes);
1019
+ if (value.multipleLoopControllerNodes !== void 0)
1020
+ return visitor.multipleLoopControllerNodes(value.multipleLoopControllerNodes);
1021
+ if (value.loopIncompatibleNodeType !== void 0)
1022
+ return visitor.loopIncompatibleNodeType(value.loopIncompatibleNodeType);
1023
+ if (value.invalidLoopBoundary !== void 0) return visitor.invalidLoopBoundary(value.invalidLoopBoundary);
981
1024
  return visitor._(value.$unknown[0], value.$unknown[1]);
982
1025
  }, "visit");
983
1026
  })(FlowValidationDetails || (FlowValidationDetails = {}));
@@ -990,6 +1033,8 @@ var FlowValidationType = {
990
1033
  DUPLICATE_CONDITION_EXPRESSION: "DuplicateConditionExpression",
991
1034
  DUPLICATE_CONNECTIONS: "DuplicateConnections",
992
1035
  INCOMPATIBLE_CONNECTION_DATA_TYPE: "IncompatibleConnectionDataType",
1036
+ INVALID_LOOP_BOUNDARY: "InvalidLoopBoundary",
1037
+ LOOP_INCOMPATIBLE_NODE_TYPE: "LoopIncompatibleNodeType",
993
1038
  MALFORMED_CONDITION_EXPRESSION: "MalformedConditionExpression",
994
1039
  MALFORMED_NODE_INPUT_EXPRESSION: "MalformedNodeInputExpression",
995
1040
  MISMATCHED_NODE_INPUT_TYPE: "MismatchedNodeInputType",
@@ -997,10 +1042,14 @@ var FlowValidationType = {
997
1042
  MISSING_CONNECTION_CONFIGURATION: "MissingConnectionConfiguration",
998
1043
  MISSING_DEFAULT_CONDITION: "MissingDefaultCondition",
999
1044
  MISSING_ENDING_NODES: "MissingEndingNodes",
1045
+ MISSING_LOOP_CONTROLLER_NODE: "MissingLoopControllerNode",
1046
+ MISSING_LOOP_INPUT_NODE: "MissingLoopInputNode",
1000
1047
  MISSING_NODE_CONFIGURATION: "MissingNodeConfiguration",
1001
1048
  MISSING_NODE_INPUT: "MissingNodeInput",
1002
1049
  MISSING_NODE_OUTPUT: "MissingNodeOutput",
1003
1050
  MISSING_STARTING_NODES: "MissingStartingNodes",
1051
+ MULTIPLE_LOOP_CONTROLLER_NODES: "MultipleLoopControllerNodes",
1052
+ MULTIPLE_LOOP_INPUT_NODES: "MultipleLoopInputNodes",
1004
1053
  MULTIPLE_NODE_INPUT_CONNECTIONS: "MultipleNodeInputConnections",
1005
1054
  UNFULFILLED_NODE_INPUT: "UnfulfilledNodeInput",
1006
1055
  UNKNOWN_CONNECTION_CONDITION: "UnknownConnectionCondition",
@@ -1022,20 +1071,6 @@ var IngestionJobStatus = {
1022
1071
  STOPPED: "STOPPED",
1023
1072
  STOPPING: "STOPPING"
1024
1073
  };
1025
- var IngestionJobFilterAttribute = {
1026
- STATUS: "STATUS"
1027
- };
1028
- var IngestionJobFilterOperator = {
1029
- EQ: "EQ"
1030
- };
1031
- var IngestionJobSortByAttribute = {
1032
- STARTED_AT: "STARTED_AT",
1033
- STATUS: "STATUS"
1034
- };
1035
- var SortOrder = {
1036
- ASCENDING: "ASCENDING",
1037
- DESCENDING: "DESCENDING"
1038
- };
1039
1074
  var APISchemaFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1040
1075
  if (obj.s3 !== void 0) return { s3: obj.s3 };
1041
1076
  if (obj.payload !== void 0) return { payload: import_smithy_client.SENSITIVE_STRING };
@@ -1277,6 +1312,59 @@ var InlineCodeFlowNodeConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((
1277
1312
  ...obj,
1278
1313
  ...obj.code && { code: import_smithy_client.SENSITIVE_STRING }
1279
1314
  }), "InlineCodeFlowNodeConfigurationFilterSensitiveLog");
1315
+ var KnowledgeBasePromptTemplateFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1316
+ ...obj,
1317
+ ...obj.textPromptTemplate && { textPromptTemplate: import_smithy_client.SENSITIVE_STRING }
1318
+ }), "KnowledgeBasePromptTemplateFilterSensitiveLog");
1319
+ var KnowledgeBaseOrchestrationConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1320
+ ...obj,
1321
+ ...obj.promptTemplate && { promptTemplate: KnowledgeBasePromptTemplateFilterSensitiveLog(obj.promptTemplate) },
1322
+ ...obj.inferenceConfig && { inferenceConfig: obj.inferenceConfig }
1323
+ }), "KnowledgeBaseOrchestrationConfigurationFilterSensitiveLog");
1324
+ var RerankingMetadataSelectiveModeConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1325
+ if (obj.fieldsToInclude !== void 0) return { fieldsToInclude: import_smithy_client.SENSITIVE_STRING };
1326
+ if (obj.fieldsToExclude !== void 0) return { fieldsToExclude: import_smithy_client.SENSITIVE_STRING };
1327
+ if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
1328
+ }, "RerankingMetadataSelectiveModeConfigurationFilterSensitiveLog");
1329
+ var MetadataConfigurationForRerankingFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1330
+ ...obj,
1331
+ ...obj.selectiveModeConfiguration && {
1332
+ selectiveModeConfiguration: RerankingMetadataSelectiveModeConfigurationFilterSensitiveLog(
1333
+ obj.selectiveModeConfiguration
1334
+ )
1335
+ }
1336
+ }), "MetadataConfigurationForRerankingFilterSensitiveLog");
1337
+ var VectorSearchBedrockRerankingConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1338
+ ...obj,
1339
+ ...obj.metadataConfiguration && {
1340
+ metadataConfiguration: MetadataConfigurationForRerankingFilterSensitiveLog(obj.metadataConfiguration)
1341
+ }
1342
+ }), "VectorSearchBedrockRerankingConfigurationFilterSensitiveLog");
1343
+ var VectorSearchRerankingConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1344
+ ...obj,
1345
+ ...obj.bedrockRerankingConfiguration && {
1346
+ bedrockRerankingConfiguration: VectorSearchBedrockRerankingConfigurationFilterSensitiveLog(
1347
+ obj.bedrockRerankingConfiguration
1348
+ )
1349
+ }
1350
+ }), "VectorSearchRerankingConfigurationFilterSensitiveLog");
1351
+ var KnowledgeBaseFlowNodeConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1352
+ ...obj,
1353
+ ...obj.promptTemplate && { promptTemplate: KnowledgeBasePromptTemplateFilterSensitiveLog(obj.promptTemplate) },
1354
+ ...obj.inferenceConfiguration && { inferenceConfiguration: obj.inferenceConfiguration },
1355
+ ...obj.rerankingConfiguration && {
1356
+ rerankingConfiguration: VectorSearchRerankingConfigurationFilterSensitiveLog(obj.rerankingConfiguration)
1357
+ },
1358
+ ...obj.orchestrationConfiguration && {
1359
+ orchestrationConfiguration: KnowledgeBaseOrchestrationConfigurationFilterSensitiveLog(
1360
+ obj.orchestrationConfiguration
1361
+ )
1362
+ }
1363
+ }), "KnowledgeBaseFlowNodeConfigurationFilterSensitiveLog");
1364
+ var LoopControllerFlowNodeConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1365
+ ...obj,
1366
+ ...obj.continueCondition && { continueCondition: FlowConditionFilterSensitiveLog(obj.continueCondition) }
1367
+ }), "LoopControllerFlowNodeConfigurationFilterSensitiveLog");
1280
1368
  var ContentBlockFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1281
1369
  if (obj.text !== void 0) return { text: obj.text };
1282
1370
  if (obj.cachePoint !== void 0) return { cachePoint: obj.cachePoint };
@@ -1337,54 +1425,10 @@ var PromptFlowNodeConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj)
1337
1425
  sourceConfiguration: PromptFlowNodeSourceConfigurationFilterSensitiveLog(obj.sourceConfiguration)
1338
1426
  }
1339
1427
  }), "PromptFlowNodeConfigurationFilterSensitiveLog");
1340
- var FlowNodeConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1341
- if (obj.input !== void 0) return { input: obj.input };
1342
- if (obj.output !== void 0) return { output: obj.output };
1343
- if (obj.knowledgeBase !== void 0) return { knowledgeBase: obj.knowledgeBase };
1344
- if (obj.condition !== void 0)
1345
- return { condition: ConditionFlowNodeConfigurationFilterSensitiveLog(obj.condition) };
1346
- if (obj.lex !== void 0) return { lex: obj.lex };
1347
- if (obj.prompt !== void 0) return { prompt: PromptFlowNodeConfigurationFilterSensitiveLog(obj.prompt) };
1348
- if (obj.lambdaFunction !== void 0) return { lambdaFunction: obj.lambdaFunction };
1349
- if (obj.storage !== void 0) return { storage: obj.storage };
1350
- if (obj.agent !== void 0) return { agent: obj.agent };
1351
- if (obj.retrieval !== void 0) return { retrieval: obj.retrieval };
1352
- if (obj.iterator !== void 0) return { iterator: obj.iterator };
1353
- if (obj.collector !== void 0) return { collector: obj.collector };
1354
- if (obj.inlineCode !== void 0)
1355
- return { inlineCode: InlineCodeFlowNodeConfigurationFilterSensitiveLog(obj.inlineCode) };
1356
- if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
1357
- }, "FlowNodeConfigurationFilterSensitiveLog");
1358
1428
  var FlowNodeInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1359
1429
  ...obj,
1360
1430
  ...obj.expression && { expression: import_smithy_client.SENSITIVE_STRING }
1361
1431
  }), "FlowNodeInputFilterSensitiveLog");
1362
- var FlowNodeFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1363
- ...obj,
1364
- ...obj.configuration && { configuration: FlowNodeConfigurationFilterSensitiveLog(obj.configuration) },
1365
- ...obj.inputs && { inputs: obj.inputs.map((item) => FlowNodeInputFilterSensitiveLog(item)) }
1366
- }), "FlowNodeFilterSensitiveLog");
1367
- var FlowDefinitionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1368
- ...obj,
1369
- ...obj.nodes && { nodes: obj.nodes.map((item) => FlowNodeFilterSensitiveLog(item)) },
1370
- ...obj.connections && { connections: obj.connections.map((item) => item) }
1371
- }), "FlowDefinitionFilterSensitiveLog");
1372
- var CreateFlowRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1373
- ...obj,
1374
- ...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING }
1375
- }), "CreateFlowRequestFilterSensitiveLog");
1376
- var CreateFlowResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1377
- ...obj,
1378
- ...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING }
1379
- }), "CreateFlowResponseFilterSensitiveLog");
1380
- var CreateFlowVersionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1381
- ...obj,
1382
- ...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING }
1383
- }), "CreateFlowVersionResponseFilterSensitiveLog");
1384
- var GetFlowVersionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1385
- ...obj,
1386
- ...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING }
1387
- }), "GetFlowVersionResponseFilterSensitiveLog");
1388
1432
  var DuplicateConditionExpressionFlowValidationDetailsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1389
1433
  ...obj,
1390
1434
  ...obj.expression && { expression: import_smithy_client.SENSITIVE_STRING }
@@ -1431,172 +1475,556 @@ var FlowValidationDetailsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1431
1475
  if (obj.unspecified !== void 0) return { unspecified: obj.unspecified };
1432
1476
  if (obj.unknownNodeInput !== void 0) return { unknownNodeInput: obj.unknownNodeInput };
1433
1477
  if (obj.unknownNodeOutput !== void 0) return { unknownNodeOutput: obj.unknownNodeOutput };
1478
+ if (obj.missingLoopInputNode !== void 0) return { missingLoopInputNode: obj.missingLoopInputNode };
1479
+ if (obj.missingLoopControllerNode !== void 0) return { missingLoopControllerNode: obj.missingLoopControllerNode };
1480
+ if (obj.multipleLoopInputNodes !== void 0) return { multipleLoopInputNodes: obj.multipleLoopInputNodes };
1481
+ if (obj.multipleLoopControllerNodes !== void 0)
1482
+ return { multipleLoopControllerNodes: obj.multipleLoopControllerNodes };
1483
+ if (obj.loopIncompatibleNodeType !== void 0) return { loopIncompatibleNodeType: obj.loopIncompatibleNodeType };
1484
+ if (obj.invalidLoopBoundary !== void 0) return { invalidLoopBoundary: obj.invalidLoopBoundary };
1434
1485
  if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
1435
1486
  }, "FlowValidationDetailsFilterSensitiveLog");
1436
1487
  var FlowValidationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1437
1488
  ...obj,
1438
1489
  ...obj.details && { details: FlowValidationDetailsFilterSensitiveLog(obj.details) }
1439
1490
  }), "FlowValidationFilterSensitiveLog");
1440
- var GetFlowResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1441
- ...obj,
1442
- ...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING },
1443
- ...obj.validations && { validations: obj.validations.map((item) => FlowValidationFilterSensitiveLog(item)) }
1444
- }), "GetFlowResponseFilterSensitiveLog");
1445
- var UpdateFlowRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1446
- ...obj,
1447
- ...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING }
1448
- }), "UpdateFlowRequestFilterSensitiveLog");
1449
- var UpdateFlowResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1450
- ...obj,
1451
- ...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING }
1452
- }), "UpdateFlowResponseFilterSensitiveLog");
1453
1491
 
1454
1492
  // src/protocols/Aws_restJson1.ts
1455
1493
  var import_core2 = require("@aws-sdk/core");
1456
1494
 
1457
1495
 
1458
1496
  var import_uuid = require("uuid");
1459
- var se_AssociateAgentCollaboratorCommand = /* @__PURE__ */ __name(async (input, context) => {
1460
- const b = (0, import_core.requestBuilder)(input, context);
1461
- const headers = {
1462
- "content-type": "application/json"
1463
- };
1464
- b.bp("/agents/{agentId}/agentversions/{agentVersion}/agentcollaborators");
1465
- b.p("agentId", () => input.agentId, "{agentId}", false);
1466
- b.p("agentVersion", () => input.agentVersion, "{agentVersion}", false);
1467
- let body;
1468
- body = JSON.stringify(
1469
- (0, import_smithy_client.take)(input, {
1470
- agentDescriptor: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "agentDescriptor"),
1471
- clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1472
- collaborationInstruction: [],
1473
- collaboratorName: [],
1474
- relayConversationHistory: []
1475
- })
1476
- );
1477
- b.m("PUT").h(headers).b(body);
1478
- return b.build();
1479
- }, "se_AssociateAgentCollaboratorCommand");
1480
- var se_AssociateAgentKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
1481
- const b = (0, import_core.requestBuilder)(input, context);
1482
- const headers = {
1483
- "content-type": "application/json"
1484
- };
1485
- b.bp("/agents/{agentId}/agentversions/{agentVersion}/knowledgebases");
1486
- b.p("agentId", () => input.agentId, "{agentId}", false);
1487
- b.p("agentVersion", () => input.agentVersion, "{agentVersion}", false);
1488
- let body;
1489
- body = JSON.stringify(
1490
- (0, import_smithy_client.take)(input, {
1491
- description: [],
1492
- knowledgeBaseId: [],
1493
- knowledgeBaseState: []
1494
- })
1495
- );
1496
- b.m("PUT").h(headers).b(body);
1497
- return b.build();
1498
- }, "se_AssociateAgentKnowledgeBaseCommand");
1499
- var se_CreateAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
1500
- const b = (0, import_core.requestBuilder)(input, context);
1501
- const headers = {
1502
- "content-type": "application/json"
1503
- };
1504
- b.bp("/agents");
1505
- let body;
1506
- body = JSON.stringify(
1507
- (0, import_smithy_client.take)(input, {
1508
- agentCollaboration: [],
1509
- agentName: [],
1510
- agentResourceRoleArn: [],
1511
- clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1512
- customOrchestration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "customOrchestration"),
1513
- customerEncryptionKeyArn: [],
1514
- description: [],
1515
- foundationModel: [],
1516
- guardrailConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "guardrailConfiguration"),
1517
- idleSessionTTLInSeconds: [],
1518
- instruction: [],
1519
- memoryConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "memoryConfiguration"),
1520
- orchestrationType: [],
1521
- promptOverrideConfiguration: /* @__PURE__ */ __name((_) => se_PromptOverrideConfiguration(_, context), "promptOverrideConfiguration"),
1522
- tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
1523
- })
1524
- );
1525
- b.m("PUT").h(headers).b(body);
1526
- return b.build();
1527
- }, "se_CreateAgentCommand");
1528
- var se_CreateAgentActionGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
1529
- const b = (0, import_core.requestBuilder)(input, context);
1530
- const headers = {
1531
- "content-type": "application/json"
1532
- };
1533
- b.bp("/agents/{agentId}/agentversions/{agentVersion}/actiongroups");
1534
- b.p("agentId", () => input.agentId, "{agentId}", false);
1535
- b.p("agentVersion", () => input.agentVersion, "{agentVersion}", false);
1536
- let body;
1537
- body = JSON.stringify(
1538
- (0, import_smithy_client.take)(input, {
1539
- actionGroupExecutor: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "actionGroupExecutor"),
1540
- actionGroupName: [],
1541
- actionGroupState: [],
1542
- apiSchema: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "apiSchema"),
1543
- clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1544
- description: [],
1545
- functionSchema: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "functionSchema"),
1546
- parentActionGroupSignature: [],
1547
- parentActionGroupSignatureParams: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "parentActionGroupSignatureParams")
1548
- })
1549
- );
1550
- b.m("PUT").h(headers).b(body);
1551
- return b.build();
1552
- }, "se_CreateAgentActionGroupCommand");
1553
- var se_CreateAgentAliasCommand = /* @__PURE__ */ __name(async (input, context) => {
1554
- const b = (0, import_core.requestBuilder)(input, context);
1555
- const headers = {
1556
- "content-type": "application/json"
1557
- };
1558
- b.bp("/agents/{agentId}/agentaliases");
1559
- b.p("agentId", () => input.agentId, "{agentId}", false);
1560
- let body;
1561
- body = JSON.stringify(
1562
- (0, import_smithy_client.take)(input, {
1563
- agentAliasName: [],
1564
- clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1565
- description: [],
1566
- routingConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "routingConfiguration"),
1567
- tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
1568
- })
1569
- );
1570
- b.m("PUT").h(headers).b(body);
1571
- return b.build();
1572
- }, "se_CreateAgentAliasCommand");
1573
- var se_CreateDataSourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1574
- const b = (0, import_core.requestBuilder)(input, context);
1575
- const headers = {
1576
- "content-type": "application/json"
1577
- };
1578
- b.bp("/knowledgebases/{knowledgeBaseId}/datasources");
1579
- b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1580
- let body;
1581
- body = JSON.stringify(
1582
- (0, import_smithy_client.take)(input, {
1583
- clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1584
- dataDeletionPolicy: [],
1585
- dataSourceConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "dataSourceConfiguration"),
1586
- description: [],
1587
- name: [],
1588
- serverSideEncryptionConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "serverSideEncryptionConfiguration"),
1589
- vectorIngestionConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "vectorIngestionConfiguration")
1590
- })
1591
- );
1592
- b.m("PUT").h(headers).b(body);
1593
- return b.build();
1594
- }, "se_CreateDataSourceCommand");
1595
- var se_CreateFlowCommand = /* @__PURE__ */ __name(async (input, context) => {
1596
- const b = (0, import_core.requestBuilder)(input, context);
1597
- const headers = {
1598
- "content-type": "application/json"
1599
- };
1497
+
1498
+ // src/models/models_1.ts
1499
+
1500
+ var IngestionJobFilterAttribute = {
1501
+ STATUS: "STATUS"
1502
+ };
1503
+ var IngestionJobFilterOperator = {
1504
+ EQ: "EQ"
1505
+ };
1506
+ var IngestionJobSortByAttribute = {
1507
+ STARTED_AT: "STARTED_AT",
1508
+ STATUS: "STATUS"
1509
+ };
1510
+ var SortOrder = {
1511
+ ASCENDING: "ASCENDING",
1512
+ DESCENDING: "DESCENDING"
1513
+ };
1514
+ var ContentDataSourceType = {
1515
+ CUSTOM: "CUSTOM",
1516
+ S3: "S3"
1517
+ };
1518
+ var DocumentStatus = {
1519
+ DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
1520
+ DELETING: "DELETING",
1521
+ FAILED: "FAILED",
1522
+ IGNORED: "IGNORED",
1523
+ INDEXED: "INDEXED",
1524
+ IN_PROGRESS: "IN_PROGRESS",
1525
+ METADATA_PARTIALLY_INDEXED: "METADATA_PARTIALLY_INDEXED",
1526
+ METADATA_UPDATE_FAILED: "METADATA_UPDATE_FAILED",
1527
+ NOT_FOUND: "NOT_FOUND",
1528
+ PARTIALLY_INDEXED: "PARTIALLY_INDEXED",
1529
+ PENDING: "PENDING",
1530
+ STARTING: "STARTING"
1531
+ };
1532
+ var InlineContentType = {
1533
+ BYTE: "BYTE",
1534
+ TEXT: "TEXT"
1535
+ };
1536
+ var CustomSourceType = {
1537
+ IN_LINE: "IN_LINE",
1538
+ S3_LOCATION: "S3_LOCATION"
1539
+ };
1540
+ var MetadataValueType = {
1541
+ BOOLEAN: "BOOLEAN",
1542
+ NUMBER: "NUMBER",
1543
+ STRING: "STRING",
1544
+ STRING_LIST: "STRING_LIST"
1545
+ };
1546
+ var MetadataSourceType = {
1547
+ IN_LINE_ATTRIBUTE: "IN_LINE_ATTRIBUTE",
1548
+ S3_LOCATION: "S3_LOCATION"
1549
+ };
1550
+ var RedshiftProvisionedAuthType = {
1551
+ IAM: "IAM",
1552
+ USERNAME: "USERNAME",
1553
+ USERNAME_PASSWORD: "USERNAME_PASSWORD"
1554
+ };
1555
+ var RedshiftServerlessAuthType = {
1556
+ IAM: "IAM",
1557
+ USERNAME_PASSWORD: "USERNAME_PASSWORD"
1558
+ };
1559
+ var RedshiftQueryEngineType = {
1560
+ PROVISIONED: "PROVISIONED",
1561
+ SERVERLESS: "SERVERLESS"
1562
+ };
1563
+ var IncludeExclude = {
1564
+ EXCLUDE: "EXCLUDE",
1565
+ INCLUDE: "INCLUDE"
1566
+ };
1567
+ var RedshiftQueryEngineStorageType = {
1568
+ AWS_DATA_CATALOG: "AWS_DATA_CATALOG",
1569
+ REDSHIFT: "REDSHIFT"
1570
+ };
1571
+ var QueryEngineType = {
1572
+ REDSHIFT: "REDSHIFT"
1573
+ };
1574
+ var KnowledgeBaseType = {
1575
+ KENDRA: "KENDRA",
1576
+ SQL: "SQL",
1577
+ VECTOR: "VECTOR"
1578
+ };
1579
+ var EmbeddingDataType = {
1580
+ BINARY: "BINARY",
1581
+ FLOAT32: "FLOAT32"
1582
+ };
1583
+ var SupplementalDataStorageLocationType = {
1584
+ S3: "S3"
1585
+ };
1586
+ var KnowledgeBaseStorageType = {
1587
+ MONGO_DB_ATLAS: "MONGO_DB_ATLAS",
1588
+ NEPTUNE_ANALYTICS: "NEPTUNE_ANALYTICS",
1589
+ OPENSEARCH_MANAGED_CLUSTER: "OPENSEARCH_MANAGED_CLUSTER",
1590
+ OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS",
1591
+ PINECONE: "PINECONE",
1592
+ RDS: "RDS",
1593
+ REDIS_ENTERPRISE_CLOUD: "REDIS_ENTERPRISE_CLOUD"
1594
+ };
1595
+ var KnowledgeBaseStatus = {
1596
+ ACTIVE: "ACTIVE",
1597
+ CREATING: "CREATING",
1598
+ DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL",
1599
+ DELETING: "DELETING",
1600
+ FAILED: "FAILED",
1601
+ UPDATING: "UPDATING"
1602
+ };
1603
+ var PromptGenAiResource;
1604
+ ((PromptGenAiResource3) => {
1605
+ PromptGenAiResource3.visit = /* @__PURE__ */ __name((value, visitor) => {
1606
+ if (value.agent !== void 0) return visitor.agent(value.agent);
1607
+ return visitor._(value.$unknown[0], value.$unknown[1]);
1608
+ }, "visit");
1609
+ })(PromptGenAiResource || (PromptGenAiResource = {}));
1610
+ var FlowNodeConfiguration;
1611
+ ((FlowNodeConfiguration2) => {
1612
+ FlowNodeConfiguration2.visit = /* @__PURE__ */ __name((value, visitor) => {
1613
+ if (value.input !== void 0) return visitor.input(value.input);
1614
+ if (value.output !== void 0) return visitor.output(value.output);
1615
+ if (value.knowledgeBase !== void 0) return visitor.knowledgeBase(value.knowledgeBase);
1616
+ if (value.condition !== void 0) return visitor.condition(value.condition);
1617
+ if (value.lex !== void 0) return visitor.lex(value.lex);
1618
+ if (value.prompt !== void 0) return visitor.prompt(value.prompt);
1619
+ if (value.lambdaFunction !== void 0) return visitor.lambdaFunction(value.lambdaFunction);
1620
+ if (value.storage !== void 0) return visitor.storage(value.storage);
1621
+ if (value.agent !== void 0) return visitor.agent(value.agent);
1622
+ if (value.retrieval !== void 0) return visitor.retrieval(value.retrieval);
1623
+ if (value.iterator !== void 0) return visitor.iterator(value.iterator);
1624
+ if (value.collector !== void 0) return visitor.collector(value.collector);
1625
+ if (value.inlineCode !== void 0) return visitor.inlineCode(value.inlineCode);
1626
+ if (value.loop !== void 0) return visitor.loop(value.loop);
1627
+ if (value.loopInput !== void 0) return visitor.loopInput(value.loopInput);
1628
+ if (value.loopController !== void 0) return visitor.loopController(value.loopController);
1629
+ return visitor._(value.$unknown[0], value.$unknown[1]);
1630
+ }, "visit");
1631
+ })(FlowNodeConfiguration || (FlowNodeConfiguration = {}));
1632
+ var ByteContentDocFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1633
+ ...obj,
1634
+ ...obj.data && { data: import_smithy_client.SENSITIVE_STRING }
1635
+ }), "ByteContentDocFilterSensitiveLog");
1636
+ var TextContentDocFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1637
+ ...obj,
1638
+ ...obj.data && { data: import_smithy_client.SENSITIVE_STRING }
1639
+ }), "TextContentDocFilterSensitiveLog");
1640
+ var InlineContentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1641
+ ...obj,
1642
+ ...obj.byteContent && { byteContent: ByteContentDocFilterSensitiveLog(obj.byteContent) },
1643
+ ...obj.textContent && { textContent: TextContentDocFilterSensitiveLog(obj.textContent) }
1644
+ }), "InlineContentFilterSensitiveLog");
1645
+ var CustomContentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1646
+ ...obj,
1647
+ ...obj.inlineContent && { inlineContent: InlineContentFilterSensitiveLog(obj.inlineContent) }
1648
+ }), "CustomContentFilterSensitiveLog");
1649
+ var DocumentContentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1650
+ ...obj,
1651
+ ...obj.custom && { custom: CustomContentFilterSensitiveLog(obj.custom) }
1652
+ }), "DocumentContentFilterSensitiveLog");
1653
+ var MetadataAttributeValueFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1654
+ ...obj,
1655
+ ...obj.numberValue && { numberValue: import_smithy_client.SENSITIVE_STRING },
1656
+ ...obj.stringValue && { stringValue: import_smithy_client.SENSITIVE_STRING },
1657
+ ...obj.stringListValue && { stringListValue: import_smithy_client.SENSITIVE_STRING }
1658
+ }), "MetadataAttributeValueFilterSensitiveLog");
1659
+ var MetadataAttributeFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1660
+ ...obj,
1661
+ ...obj.key && { key: import_smithy_client.SENSITIVE_STRING },
1662
+ ...obj.value && { value: MetadataAttributeValueFilterSensitiveLog(obj.value) }
1663
+ }), "MetadataAttributeFilterSensitiveLog");
1664
+ var DocumentMetadataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1665
+ ...obj,
1666
+ ...obj.inlineAttributes && {
1667
+ inlineAttributes: obj.inlineAttributes.map((item) => MetadataAttributeFilterSensitiveLog(item))
1668
+ }
1669
+ }), "DocumentMetadataFilterSensitiveLog");
1670
+ var KnowledgeBaseDocumentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1671
+ ...obj,
1672
+ ...obj.metadata && { metadata: DocumentMetadataFilterSensitiveLog(obj.metadata) },
1673
+ ...obj.content && { content: DocumentContentFilterSensitiveLog(obj.content) }
1674
+ }), "KnowledgeBaseDocumentFilterSensitiveLog");
1675
+ var IngestKnowledgeBaseDocumentsRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1676
+ ...obj,
1677
+ ...obj.documents && { documents: obj.documents.map((item) => KnowledgeBaseDocumentFilterSensitiveLog(item)) }
1678
+ }), "IngestKnowledgeBaseDocumentsRequestFilterSensitiveLog");
1679
+ var QueryGenerationContextFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1680
+ ...obj
1681
+ }), "QueryGenerationContextFilterSensitiveLog");
1682
+ var QueryGenerationConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1683
+ ...obj,
1684
+ ...obj.generationContext && { generationContext: import_smithy_client.SENSITIVE_STRING }
1685
+ }), "QueryGenerationConfigurationFilterSensitiveLog");
1686
+ var RedshiftConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1687
+ ...obj,
1688
+ ...obj.queryGenerationConfiguration && {
1689
+ queryGenerationConfiguration: QueryGenerationConfigurationFilterSensitiveLog(obj.queryGenerationConfiguration)
1690
+ }
1691
+ }), "RedshiftConfigurationFilterSensitiveLog");
1692
+ var SqlKnowledgeBaseConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1693
+ ...obj,
1694
+ ...obj.redshiftConfiguration && {
1695
+ redshiftConfiguration: RedshiftConfigurationFilterSensitiveLog(obj.redshiftConfiguration)
1696
+ }
1697
+ }), "SqlKnowledgeBaseConfigurationFilterSensitiveLog");
1698
+ var KnowledgeBaseConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1699
+ ...obj,
1700
+ ...obj.sqlKnowledgeBaseConfiguration && {
1701
+ sqlKnowledgeBaseConfiguration: SqlKnowledgeBaseConfigurationFilterSensitiveLog(obj.sqlKnowledgeBaseConfiguration)
1702
+ }
1703
+ }), "KnowledgeBaseConfigurationFilterSensitiveLog");
1704
+ var NeptuneAnalyticsConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1705
+ ...obj,
1706
+ ...obj.graphArn && { graphArn: import_smithy_client.SENSITIVE_STRING }
1707
+ }), "NeptuneAnalyticsConfigurationFilterSensitiveLog");
1708
+ var OpenSearchManagedClusterConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1709
+ ...obj,
1710
+ ...obj.vectorIndexName && { vectorIndexName: import_smithy_client.SENSITIVE_STRING }
1711
+ }), "OpenSearchManagedClusterConfigurationFilterSensitiveLog");
1712
+ var StorageConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1713
+ ...obj,
1714
+ ...obj.opensearchManagedClusterConfiguration && {
1715
+ opensearchManagedClusterConfiguration: OpenSearchManagedClusterConfigurationFilterSensitiveLog(
1716
+ obj.opensearchManagedClusterConfiguration
1717
+ )
1718
+ },
1719
+ ...obj.neptuneAnalyticsConfiguration && {
1720
+ neptuneAnalyticsConfiguration: NeptuneAnalyticsConfigurationFilterSensitiveLog(obj.neptuneAnalyticsConfiguration)
1721
+ }
1722
+ }), "StorageConfigurationFilterSensitiveLog");
1723
+ var CreateKnowledgeBaseRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1724
+ ...obj,
1725
+ ...obj.knowledgeBaseConfiguration && {
1726
+ knowledgeBaseConfiguration: KnowledgeBaseConfigurationFilterSensitiveLog(obj.knowledgeBaseConfiguration)
1727
+ },
1728
+ ...obj.storageConfiguration && {
1729
+ storageConfiguration: StorageConfigurationFilterSensitiveLog(obj.storageConfiguration)
1730
+ }
1731
+ }), "CreateKnowledgeBaseRequestFilterSensitiveLog");
1732
+ var KnowledgeBaseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1733
+ ...obj,
1734
+ ...obj.knowledgeBaseConfiguration && {
1735
+ knowledgeBaseConfiguration: KnowledgeBaseConfigurationFilterSensitiveLog(obj.knowledgeBaseConfiguration)
1736
+ },
1737
+ ...obj.storageConfiguration && {
1738
+ storageConfiguration: StorageConfigurationFilterSensitiveLog(obj.storageConfiguration)
1739
+ }
1740
+ }), "KnowledgeBaseFilterSensitiveLog");
1741
+ var CreateKnowledgeBaseResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1742
+ ...obj,
1743
+ ...obj.knowledgeBase && { knowledgeBase: KnowledgeBaseFilterSensitiveLog(obj.knowledgeBase) }
1744
+ }), "CreateKnowledgeBaseResponseFilterSensitiveLog");
1745
+ var GetKnowledgeBaseResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1746
+ ...obj,
1747
+ ...obj.knowledgeBase && { knowledgeBase: KnowledgeBaseFilterSensitiveLog(obj.knowledgeBase) }
1748
+ }), "GetKnowledgeBaseResponseFilterSensitiveLog");
1749
+ var UpdateKnowledgeBaseRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1750
+ ...obj,
1751
+ ...obj.knowledgeBaseConfiguration && {
1752
+ knowledgeBaseConfiguration: KnowledgeBaseConfigurationFilterSensitiveLog(obj.knowledgeBaseConfiguration)
1753
+ },
1754
+ ...obj.storageConfiguration && {
1755
+ storageConfiguration: StorageConfigurationFilterSensitiveLog(obj.storageConfiguration)
1756
+ }
1757
+ }), "UpdateKnowledgeBaseRequestFilterSensitiveLog");
1758
+ var UpdateKnowledgeBaseResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1759
+ ...obj,
1760
+ ...obj.knowledgeBase && { knowledgeBase: KnowledgeBaseFilterSensitiveLog(obj.knowledgeBase) }
1761
+ }), "UpdateKnowledgeBaseResponseFilterSensitiveLog");
1762
+ var PromptAgentResourceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1763
+ ...obj
1764
+ }), "PromptAgentResourceFilterSensitiveLog");
1765
+ var PromptGenAiResourceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1766
+ if (obj.agent !== void 0) return { agent: import_smithy_client.SENSITIVE_STRING };
1767
+ if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
1768
+ }, "PromptGenAiResourceFilterSensitiveLog");
1769
+ var PromptMetadataEntryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1770
+ ...obj,
1771
+ ...obj.key && { key: import_smithy_client.SENSITIVE_STRING },
1772
+ ...obj.value && { value: import_smithy_client.SENSITIVE_STRING }
1773
+ }), "PromptMetadataEntryFilterSensitiveLog");
1774
+ var PromptVariantFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1775
+ ...obj,
1776
+ ...obj.templateConfiguration && {
1777
+ templateConfiguration: PromptTemplateConfigurationFilterSensitiveLog(obj.templateConfiguration)
1778
+ },
1779
+ ...obj.inferenceConfiguration && { inferenceConfiguration: obj.inferenceConfiguration },
1780
+ ...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING },
1781
+ ...obj.genAiResource && { genAiResource: import_smithy_client.SENSITIVE_STRING }
1782
+ }), "PromptVariantFilterSensitiveLog");
1783
+ var CreatePromptRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1784
+ ...obj,
1785
+ ...obj.variants && { variants: import_smithy_client.SENSITIVE_STRING }
1786
+ }), "CreatePromptRequestFilterSensitiveLog");
1787
+ var CreatePromptResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1788
+ ...obj,
1789
+ ...obj.variants && { variants: import_smithy_client.SENSITIVE_STRING }
1790
+ }), "CreatePromptResponseFilterSensitiveLog");
1791
+ var CreatePromptVersionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1792
+ ...obj,
1793
+ ...obj.variants && { variants: import_smithy_client.SENSITIVE_STRING }
1794
+ }), "CreatePromptVersionResponseFilterSensitiveLog");
1795
+ var GetPromptResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1796
+ ...obj,
1797
+ ...obj.variants && { variants: import_smithy_client.SENSITIVE_STRING }
1798
+ }), "GetPromptResponseFilterSensitiveLog");
1799
+ var UpdatePromptRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1800
+ ...obj,
1801
+ ...obj.variants && { variants: import_smithy_client.SENSITIVE_STRING }
1802
+ }), "UpdatePromptRequestFilterSensitiveLog");
1803
+ var UpdatePromptResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1804
+ ...obj,
1805
+ ...obj.variants && { variants: import_smithy_client.SENSITIVE_STRING }
1806
+ }), "UpdatePromptResponseFilterSensitiveLog");
1807
+ var ValidateFlowDefinitionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1808
+ ...obj,
1809
+ ...obj.validations && { validations: obj.validations.map((item) => FlowValidationFilterSensitiveLog(item)) }
1810
+ }), "ValidateFlowDefinitionResponseFilterSensitiveLog");
1811
+ var GetAgentVersionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1812
+ ...obj,
1813
+ ...obj.agentVersion && { agentVersion: AgentVersionFilterSensitiveLog(obj.agentVersion) }
1814
+ }), "GetAgentVersionResponseFilterSensitiveLog");
1815
+ var FlowDefinitionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1816
+ ...obj,
1817
+ ...obj.nodes && { nodes: obj.nodes.map((item) => FlowNodeFilterSensitiveLog(item)) },
1818
+ ...obj.connections && { connections: obj.connections.map((item) => item) }
1819
+ }), "FlowDefinitionFilterSensitiveLog");
1820
+ var FlowNodeFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1821
+ ...obj,
1822
+ ...obj.configuration && { configuration: FlowNodeConfigurationFilterSensitiveLog(obj.configuration) },
1823
+ ...obj.inputs && { inputs: obj.inputs.map((item) => FlowNodeInputFilterSensitiveLog(item)) }
1824
+ }), "FlowNodeFilterSensitiveLog");
1825
+ var FlowNodeConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1826
+ if (obj.input !== void 0) return { input: obj.input };
1827
+ if (obj.output !== void 0) return { output: obj.output };
1828
+ if (obj.knowledgeBase !== void 0)
1829
+ return { knowledgeBase: KnowledgeBaseFlowNodeConfigurationFilterSensitiveLog(obj.knowledgeBase) };
1830
+ if (obj.condition !== void 0)
1831
+ return { condition: ConditionFlowNodeConfigurationFilterSensitiveLog(obj.condition) };
1832
+ if (obj.lex !== void 0) return { lex: obj.lex };
1833
+ if (obj.prompt !== void 0) return { prompt: PromptFlowNodeConfigurationFilterSensitiveLog(obj.prompt) };
1834
+ if (obj.lambdaFunction !== void 0) return { lambdaFunction: obj.lambdaFunction };
1835
+ if (obj.storage !== void 0) return { storage: obj.storage };
1836
+ if (obj.agent !== void 0) return { agent: obj.agent };
1837
+ if (obj.retrieval !== void 0) return { retrieval: obj.retrieval };
1838
+ if (obj.iterator !== void 0) return { iterator: obj.iterator };
1839
+ if (obj.collector !== void 0) return { collector: obj.collector };
1840
+ if (obj.inlineCode !== void 0)
1841
+ return { inlineCode: InlineCodeFlowNodeConfigurationFilterSensitiveLog(obj.inlineCode) };
1842
+ if (obj.loop !== void 0) return { loop: LoopFlowNodeConfigurationFilterSensitiveLog(obj.loop) };
1843
+ if (obj.loopInput !== void 0) return { loopInput: obj.loopInput };
1844
+ if (obj.loopController !== void 0)
1845
+ return { loopController: LoopControllerFlowNodeConfigurationFilterSensitiveLog(obj.loopController) };
1846
+ if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
1847
+ }, "FlowNodeConfigurationFilterSensitiveLog");
1848
+ var LoopFlowNodeConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1849
+ ...obj,
1850
+ ...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING }
1851
+ }), "LoopFlowNodeConfigurationFilterSensitiveLog");
1852
+ var CreateFlowRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1853
+ ...obj,
1854
+ ...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING }
1855
+ }), "CreateFlowRequestFilterSensitiveLog");
1856
+ var CreateFlowResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1857
+ ...obj,
1858
+ ...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING }
1859
+ }), "CreateFlowResponseFilterSensitiveLog");
1860
+ var CreateFlowVersionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1861
+ ...obj,
1862
+ ...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING }
1863
+ }), "CreateFlowVersionResponseFilterSensitiveLog");
1864
+ var GetFlowResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1865
+ ...obj,
1866
+ ...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING },
1867
+ ...obj.validations && { validations: obj.validations.map((item) => FlowValidationFilterSensitiveLog(item)) }
1868
+ }), "GetFlowResponseFilterSensitiveLog");
1869
+ var GetFlowVersionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1870
+ ...obj,
1871
+ ...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING }
1872
+ }), "GetFlowVersionResponseFilterSensitiveLog");
1873
+ var UpdateFlowRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1874
+ ...obj,
1875
+ ...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING }
1876
+ }), "UpdateFlowRequestFilterSensitiveLog");
1877
+ var UpdateFlowResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1878
+ ...obj,
1879
+ ...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING }
1880
+ }), "UpdateFlowResponseFilterSensitiveLog");
1881
+ var ValidateFlowDefinitionRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1882
+ ...obj,
1883
+ ...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING }
1884
+ }), "ValidateFlowDefinitionRequestFilterSensitiveLog");
1885
+
1886
+ // src/protocols/Aws_restJson1.ts
1887
+ var se_AssociateAgentCollaboratorCommand = /* @__PURE__ */ __name(async (input, context) => {
1888
+ const b = (0, import_core.requestBuilder)(input, context);
1889
+ const headers = {
1890
+ "content-type": "application/json"
1891
+ };
1892
+ b.bp("/agents/{agentId}/agentversions/{agentVersion}/agentcollaborators");
1893
+ b.p("agentId", () => input.agentId, "{agentId}", false);
1894
+ b.p("agentVersion", () => input.agentVersion, "{agentVersion}", false);
1895
+ let body;
1896
+ body = JSON.stringify(
1897
+ (0, import_smithy_client.take)(input, {
1898
+ agentDescriptor: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "agentDescriptor"),
1899
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1900
+ collaborationInstruction: [],
1901
+ collaboratorName: [],
1902
+ relayConversationHistory: []
1903
+ })
1904
+ );
1905
+ b.m("PUT").h(headers).b(body);
1906
+ return b.build();
1907
+ }, "se_AssociateAgentCollaboratorCommand");
1908
+ var se_AssociateAgentKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
1909
+ const b = (0, import_core.requestBuilder)(input, context);
1910
+ const headers = {
1911
+ "content-type": "application/json"
1912
+ };
1913
+ b.bp("/agents/{agentId}/agentversions/{agentVersion}/knowledgebases");
1914
+ b.p("agentId", () => input.agentId, "{agentId}", false);
1915
+ b.p("agentVersion", () => input.agentVersion, "{agentVersion}", false);
1916
+ let body;
1917
+ body = JSON.stringify(
1918
+ (0, import_smithy_client.take)(input, {
1919
+ description: [],
1920
+ knowledgeBaseId: [],
1921
+ knowledgeBaseState: []
1922
+ })
1923
+ );
1924
+ b.m("PUT").h(headers).b(body);
1925
+ return b.build();
1926
+ }, "se_AssociateAgentKnowledgeBaseCommand");
1927
+ var se_CreateAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
1928
+ const b = (0, import_core.requestBuilder)(input, context);
1929
+ const headers = {
1930
+ "content-type": "application/json"
1931
+ };
1932
+ b.bp("/agents");
1933
+ let body;
1934
+ body = JSON.stringify(
1935
+ (0, import_smithy_client.take)(input, {
1936
+ agentCollaboration: [],
1937
+ agentName: [],
1938
+ agentResourceRoleArn: [],
1939
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1940
+ customOrchestration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "customOrchestration"),
1941
+ customerEncryptionKeyArn: [],
1942
+ description: [],
1943
+ foundationModel: [],
1944
+ guardrailConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "guardrailConfiguration"),
1945
+ idleSessionTTLInSeconds: [],
1946
+ instruction: [],
1947
+ memoryConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "memoryConfiguration"),
1948
+ orchestrationType: [],
1949
+ promptOverrideConfiguration: /* @__PURE__ */ __name((_) => se_PromptOverrideConfiguration(_, context), "promptOverrideConfiguration"),
1950
+ tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
1951
+ })
1952
+ );
1953
+ b.m("PUT").h(headers).b(body);
1954
+ return b.build();
1955
+ }, "se_CreateAgentCommand");
1956
+ var se_CreateAgentActionGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
1957
+ const b = (0, import_core.requestBuilder)(input, context);
1958
+ const headers = {
1959
+ "content-type": "application/json"
1960
+ };
1961
+ b.bp("/agents/{agentId}/agentversions/{agentVersion}/actiongroups");
1962
+ b.p("agentId", () => input.agentId, "{agentId}", false);
1963
+ b.p("agentVersion", () => input.agentVersion, "{agentVersion}", false);
1964
+ let body;
1965
+ body = JSON.stringify(
1966
+ (0, import_smithy_client.take)(input, {
1967
+ actionGroupExecutor: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "actionGroupExecutor"),
1968
+ actionGroupName: [],
1969
+ actionGroupState: [],
1970
+ apiSchema: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "apiSchema"),
1971
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1972
+ description: [],
1973
+ functionSchema: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "functionSchema"),
1974
+ parentActionGroupSignature: [],
1975
+ parentActionGroupSignatureParams: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "parentActionGroupSignatureParams")
1976
+ })
1977
+ );
1978
+ b.m("PUT").h(headers).b(body);
1979
+ return b.build();
1980
+ }, "se_CreateAgentActionGroupCommand");
1981
+ var se_CreateAgentAliasCommand = /* @__PURE__ */ __name(async (input, context) => {
1982
+ const b = (0, import_core.requestBuilder)(input, context);
1983
+ const headers = {
1984
+ "content-type": "application/json"
1985
+ };
1986
+ b.bp("/agents/{agentId}/agentaliases");
1987
+ b.p("agentId", () => input.agentId, "{agentId}", false);
1988
+ let body;
1989
+ body = JSON.stringify(
1990
+ (0, import_smithy_client.take)(input, {
1991
+ agentAliasName: [],
1992
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1993
+ description: [],
1994
+ routingConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "routingConfiguration"),
1995
+ tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
1996
+ })
1997
+ );
1998
+ b.m("PUT").h(headers).b(body);
1999
+ return b.build();
2000
+ }, "se_CreateAgentAliasCommand");
2001
+ var se_CreateDataSourceCommand = /* @__PURE__ */ __name(async (input, context) => {
2002
+ const b = (0, import_core.requestBuilder)(input, context);
2003
+ const headers = {
2004
+ "content-type": "application/json"
2005
+ };
2006
+ b.bp("/knowledgebases/{knowledgeBaseId}/datasources");
2007
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
2008
+ let body;
2009
+ body = JSON.stringify(
2010
+ (0, import_smithy_client.take)(input, {
2011
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
2012
+ dataDeletionPolicy: [],
2013
+ dataSourceConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "dataSourceConfiguration"),
2014
+ description: [],
2015
+ name: [],
2016
+ serverSideEncryptionConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "serverSideEncryptionConfiguration"),
2017
+ vectorIngestionConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "vectorIngestionConfiguration")
2018
+ })
2019
+ );
2020
+ b.m("PUT").h(headers).b(body);
2021
+ return b.build();
2022
+ }, "se_CreateDataSourceCommand");
2023
+ var se_CreateFlowCommand = /* @__PURE__ */ __name(async (input, context) => {
2024
+ const b = (0, import_core.requestBuilder)(input, context);
2025
+ const headers = {
2026
+ "content-type": "application/json"
2027
+ };
1600
2028
  b.bp("/flows");
1601
2029
  let body;
1602
2030
  body = JSON.stringify(
@@ -1624,6 +2052,7 @@ var se_CreateFlowAliasCommand = /* @__PURE__ */ __name(async (input, context) =>
1624
2052
  body = JSON.stringify(
1625
2053
  (0, import_smithy_client.take)(input, {
1626
2054
  clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
2055
+ concurrencyConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "concurrencyConfiguration"),
1627
2056
  description: [],
1628
2057
  name: [],
1629
2058
  routingConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "routingConfiguration"),
@@ -2508,6 +2937,7 @@ var se_UpdateFlowAliasCommand = /* @__PURE__ */ __name(async (input, context) =>
2508
2937
  let body;
2509
2938
  body = JSON.stringify(
2510
2939
  (0, import_smithy_client.take)(input, {
2940
+ concurrencyConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "concurrencyConfiguration"),
2511
2941
  description: [],
2512
2942
  name: [],
2513
2943
  routingConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "routingConfiguration")
@@ -2689,6 +3119,7 @@ var de_CreateFlowAliasCommand = /* @__PURE__ */ __name(async (output, context) =
2689
3119
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2690
3120
  const doc = (0, import_smithy_client.take)(data, {
2691
3121
  arn: import_smithy_client.expectString,
3122
+ concurrencyConfiguration: import_smithy_client._json,
2692
3123
  createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
2693
3124
  description: import_smithy_client.expectString,
2694
3125
  flowId: import_smithy_client.expectString,
@@ -3097,6 +3528,7 @@ var de_GetFlowAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
3097
3528
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
3098
3529
  const doc = (0, import_smithy_client.take)(data, {
3099
3530
  arn: import_smithy_client.expectString,
3531
+ concurrencyConfiguration: import_smithy_client._json,
3100
3532
  createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
3101
3533
  description: import_smithy_client.expectString,
3102
3534
  flowId: import_smithy_client.expectString,
@@ -3632,6 +4064,7 @@ var de_UpdateFlowAliasCommand = /* @__PURE__ */ __name(async (output, context) =
3632
4064
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
3633
4065
  const doc = (0, import_smithy_client.take)(data, {
3634
4066
  arn: import_smithy_client.expectString,
4067
+ concurrencyConfiguration: import_smithy_client._json,
3635
4068
  createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
3636
4069
  description: import_smithy_client.expectString,
3637
4070
  flowId: import_smithy_client.expectString,
@@ -3824,6 +4257,18 @@ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, cont
3824
4257
  });
3825
4258
  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3826
4259
  }, "de_ValidationExceptionRes");
4260
+ var se_AdditionalModelRequestFields = /* @__PURE__ */ __name((input, context) => {
4261
+ return Object.entries(input).reduce((acc, [key, value]) => {
4262
+ if (value === null) {
4263
+ return acc;
4264
+ }
4265
+ acc[key] = se_AdditionalModelRequestFieldsValue(value, context);
4266
+ return acc;
4267
+ }, {});
4268
+ }, "se_AdditionalModelRequestFields");
4269
+ var se_AdditionalModelRequestFieldsValue = /* @__PURE__ */ __name((input, context) => {
4270
+ return input;
4271
+ }, "se_AdditionalModelRequestFieldsValue");
3827
4272
  var se_ByteContentDoc = /* @__PURE__ */ __name((input, context) => {
3828
4273
  return (0, import_smithy_client.take)(input, {
3829
4274
  data: context.base64Encoder,
@@ -3883,9 +4328,12 @@ var se_FlowNodeConfiguration = /* @__PURE__ */ __name((input, context) => {
3883
4328
  inlineCode: /* @__PURE__ */ __name((value) => ({ inlineCode: (0, import_smithy_client._json)(value) }), "inlineCode"),
3884
4329
  input: /* @__PURE__ */ __name((value) => ({ input: (0, import_smithy_client._json)(value) }), "input"),
3885
4330
  iterator: /* @__PURE__ */ __name((value) => ({ iterator: (0, import_smithy_client._json)(value) }), "iterator"),
3886
- knowledgeBase: /* @__PURE__ */ __name((value) => ({ knowledgeBase: (0, import_smithy_client._json)(value) }), "knowledgeBase"),
4331
+ knowledgeBase: /* @__PURE__ */ __name((value) => ({ knowledgeBase: se_KnowledgeBaseFlowNodeConfiguration(value, context) }), "knowledgeBase"),
3887
4332
  lambdaFunction: /* @__PURE__ */ __name((value) => ({ lambdaFunction: (0, import_smithy_client._json)(value) }), "lambdaFunction"),
3888
4333
  lex: /* @__PURE__ */ __name((value) => ({ lex: (0, import_smithy_client._json)(value) }), "lex"),
4334
+ loop: /* @__PURE__ */ __name((value) => ({ loop: se_LoopFlowNodeConfiguration(value, context) }), "loop"),
4335
+ loopController: /* @__PURE__ */ __name((value) => ({ loopController: (0, import_smithy_client._json)(value) }), "loopController"),
4336
+ loopInput: /* @__PURE__ */ __name((value) => ({ loopInput: (0, import_smithy_client._json)(value) }), "loopInput"),
3889
4337
  output: /* @__PURE__ */ __name((value) => ({ output: (0, import_smithy_client._json)(value) }), "output"),
3890
4338
  prompt: /* @__PURE__ */ __name((value) => ({ prompt: se_PromptFlowNodeConfiguration(value, context) }), "prompt"),
3891
4339
  retrieval: /* @__PURE__ */ __name((value) => ({ retrieval: (0, import_smithy_client._json)(value) }), "retrieval"),
@@ -3925,6 +4373,31 @@ var se_KnowledgeBaseDocuments = /* @__PURE__ */ __name((input, context) => {
3925
4373
  return se_KnowledgeBaseDocument(entry, context);
3926
4374
  });
3927
4375
  }, "se_KnowledgeBaseDocuments");
4376
+ var se_KnowledgeBaseFlowNodeConfiguration = /* @__PURE__ */ __name((input, context) => {
4377
+ return (0, import_smithy_client.take)(input, {
4378
+ guardrailConfiguration: import_smithy_client._json,
4379
+ inferenceConfiguration: /* @__PURE__ */ __name((_) => se_PromptInferenceConfiguration(_, context), "inferenceConfiguration"),
4380
+ knowledgeBaseId: [],
4381
+ modelId: [],
4382
+ numberOfResults: [],
4383
+ orchestrationConfiguration: /* @__PURE__ */ __name((_) => se_KnowledgeBaseOrchestrationConfiguration(_, context), "orchestrationConfiguration"),
4384
+ promptTemplate: import_smithy_client._json,
4385
+ rerankingConfiguration: /* @__PURE__ */ __name((_) => se_VectorSearchRerankingConfiguration(_, context), "rerankingConfiguration")
4386
+ });
4387
+ }, "se_KnowledgeBaseFlowNodeConfiguration");
4388
+ var se_KnowledgeBaseOrchestrationConfiguration = /* @__PURE__ */ __name((input, context) => {
4389
+ return (0, import_smithy_client.take)(input, {
4390
+ additionalModelRequestFields: /* @__PURE__ */ __name((_) => se_AdditionalModelRequestFields(_, context), "additionalModelRequestFields"),
4391
+ inferenceConfig: /* @__PURE__ */ __name((_) => se_PromptInferenceConfiguration(_, context), "inferenceConfig"),
4392
+ performanceConfig: import_smithy_client._json,
4393
+ promptTemplate: import_smithy_client._json
4394
+ });
4395
+ }, "se_KnowledgeBaseOrchestrationConfiguration");
4396
+ var se_LoopFlowNodeConfiguration = /* @__PURE__ */ __name((input, context) => {
4397
+ return (0, import_smithy_client.take)(input, {
4398
+ definition: /* @__PURE__ */ __name((_) => se_FlowDefinition(_, context), "definition")
4399
+ });
4400
+ }, "se_LoopFlowNodeConfiguration");
3928
4401
  var se_MetadataAttribute = /* @__PURE__ */ __name((input, context) => {
3929
4402
  return (0, import_smithy_client.take)(input, {
3930
4403
  key: [],
@@ -4059,6 +4532,25 @@ var se_ToolSpecification = /* @__PURE__ */ __name((input, context) => {
4059
4532
  name: []
4060
4533
  });
4061
4534
  }, "se_ToolSpecification");
4535
+ var se_VectorSearchBedrockRerankingConfiguration = /* @__PURE__ */ __name((input, context) => {
4536
+ return (0, import_smithy_client.take)(input, {
4537
+ metadataConfiguration: import_smithy_client._json,
4538
+ modelConfiguration: /* @__PURE__ */ __name((_) => se_VectorSearchBedrockRerankingModelConfiguration(_, context), "modelConfiguration"),
4539
+ numberOfRerankedResults: []
4540
+ });
4541
+ }, "se_VectorSearchBedrockRerankingConfiguration");
4542
+ var se_VectorSearchBedrockRerankingModelConfiguration = /* @__PURE__ */ __name((input, context) => {
4543
+ return (0, import_smithy_client.take)(input, {
4544
+ additionalModelRequestFields: /* @__PURE__ */ __name((_) => se_AdditionalModelRequestFields(_, context), "additionalModelRequestFields"),
4545
+ modelArn: []
4546
+ });
4547
+ }, "se_VectorSearchBedrockRerankingModelConfiguration");
4548
+ var se_VectorSearchRerankingConfiguration = /* @__PURE__ */ __name((input, context) => {
4549
+ return (0, import_smithy_client.take)(input, {
4550
+ bedrockRerankingConfiguration: /* @__PURE__ */ __name((_) => se_VectorSearchBedrockRerankingConfiguration(_, context), "bedrockRerankingConfiguration"),
4551
+ type: []
4552
+ });
4553
+ }, "se_VectorSearchRerankingConfiguration");
4062
4554
  var se_Document = /* @__PURE__ */ __name((input, context) => {
4063
4555
  return input;
4064
4556
  }, "se_Document");
@@ -4077,6 +4569,18 @@ var de_ActionGroupSummary = /* @__PURE__ */ __name((output, context) => {
4077
4569
  updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updatedAt")
4078
4570
  });
4079
4571
  }, "de_ActionGroupSummary");
4572
+ var de_AdditionalModelRequestFields = /* @__PURE__ */ __name((output, context) => {
4573
+ return Object.entries(output).reduce((acc, [key, value]) => {
4574
+ if (value === null) {
4575
+ return acc;
4576
+ }
4577
+ acc[key] = de_AdditionalModelRequestFieldsValue(value, context);
4578
+ return acc;
4579
+ }, {});
4580
+ }, "de_AdditionalModelRequestFields");
4581
+ var de_AdditionalModelRequestFieldsValue = /* @__PURE__ */ __name((output, context) => {
4582
+ return output;
4583
+ }, "de_AdditionalModelRequestFieldsValue");
4080
4584
  var de_Agent = /* @__PURE__ */ __name((output, context) => {
4081
4585
  return (0, import_smithy_client.take)(output, {
4082
4586
  agentArn: import_smithy_client.expectString,
@@ -4332,6 +4836,7 @@ var de_FlowAliasSummaries = /* @__PURE__ */ __name((output, context) => {
4332
4836
  var de_FlowAliasSummary = /* @__PURE__ */ __name((output, context) => {
4333
4837
  return (0, import_smithy_client.take)(output, {
4334
4838
  arn: import_smithy_client.expectString,
4839
+ concurrencyConfiguration: import_smithy_client._json,
4335
4840
  createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
4336
4841
  description: import_smithy_client.expectString,
4337
4842
  flowId: import_smithy_client.expectString,
@@ -4389,7 +4894,7 @@ var de_FlowNodeConfiguration = /* @__PURE__ */ __name((output, context) => {
4389
4894
  }
4390
4895
  if (output.knowledgeBase != null) {
4391
4896
  return {
4392
- knowledgeBase: (0, import_smithy_client._json)(output.knowledgeBase)
4897
+ knowledgeBase: de_KnowledgeBaseFlowNodeConfiguration(output.knowledgeBase, context)
4393
4898
  };
4394
4899
  }
4395
4900
  if (output.lambdaFunction != null) {
@@ -4402,6 +4907,21 @@ var de_FlowNodeConfiguration = /* @__PURE__ */ __name((output, context) => {
4402
4907
  lex: (0, import_smithy_client._json)(output.lex)
4403
4908
  };
4404
4909
  }
4910
+ if (output.loop != null) {
4911
+ return {
4912
+ loop: de_LoopFlowNodeConfiguration(output.loop, context)
4913
+ };
4914
+ }
4915
+ if (output.loopController != null) {
4916
+ return {
4917
+ loopController: (0, import_smithy_client._json)(output.loopController)
4918
+ };
4919
+ }
4920
+ if (output.loopInput != null) {
4921
+ return {
4922
+ loopInput: (0, import_smithy_client._json)(output.loopInput)
4923
+ };
4924
+ }
4405
4925
  if (output.output != null) {
4406
4926
  return {
4407
4927
  output: (0, import_smithy_client._json)(output.output)
@@ -4534,6 +5054,26 @@ var de_KnowledgeBaseDocumentDetails = /* @__PURE__ */ __name((output, context) =
4534
5054
  });
4535
5055
  return retVal;
4536
5056
  }, "de_KnowledgeBaseDocumentDetails");
5057
+ var de_KnowledgeBaseFlowNodeConfiguration = /* @__PURE__ */ __name((output, context) => {
5058
+ return (0, import_smithy_client.take)(output, {
5059
+ guardrailConfiguration: import_smithy_client._json,
5060
+ inferenceConfiguration: /* @__PURE__ */ __name((_) => de_PromptInferenceConfiguration((0, import_core2.awsExpectUnion)(_), context), "inferenceConfiguration"),
5061
+ knowledgeBaseId: import_smithy_client.expectString,
5062
+ modelId: import_smithy_client.expectString,
5063
+ numberOfResults: import_smithy_client.expectInt32,
5064
+ orchestrationConfiguration: /* @__PURE__ */ __name((_) => de_KnowledgeBaseOrchestrationConfiguration(_, context), "orchestrationConfiguration"),
5065
+ promptTemplate: import_smithy_client._json,
5066
+ rerankingConfiguration: /* @__PURE__ */ __name((_) => de_VectorSearchRerankingConfiguration(_, context), "rerankingConfiguration")
5067
+ });
5068
+ }, "de_KnowledgeBaseFlowNodeConfiguration");
5069
+ var de_KnowledgeBaseOrchestrationConfiguration = /* @__PURE__ */ __name((output, context) => {
5070
+ return (0, import_smithy_client.take)(output, {
5071
+ additionalModelRequestFields: /* @__PURE__ */ __name((_) => de_AdditionalModelRequestFields(_, context), "additionalModelRequestFields"),
5072
+ inferenceConfig: /* @__PURE__ */ __name((_) => de_PromptInferenceConfiguration((0, import_core2.awsExpectUnion)(_), context), "inferenceConfig"),
5073
+ performanceConfig: import_smithy_client._json,
5074
+ promptTemplate: import_smithy_client._json
5075
+ });
5076
+ }, "de_KnowledgeBaseOrchestrationConfiguration");
4537
5077
  var de_KnowledgeBaseSummaries = /* @__PURE__ */ __name((output, context) => {
4538
5078
  const retVal = (output || []).filter((e) => e != null).map((entry) => {
4539
5079
  return de_KnowledgeBaseSummary(entry, context);
@@ -4549,6 +5089,11 @@ var de_KnowledgeBaseSummary = /* @__PURE__ */ __name((output, context) => {
4549
5089
  updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updatedAt")
4550
5090
  });
4551
5091
  }, "de_KnowledgeBaseSummary");
5092
+ var de_LoopFlowNodeConfiguration = /* @__PURE__ */ __name((output, context) => {
5093
+ return (0, import_smithy_client.take)(output, {
5094
+ definition: /* @__PURE__ */ __name((_) => de_FlowDefinition(_, context), "definition")
5095
+ });
5096
+ }, "de_LoopFlowNodeConfiguration");
4552
5097
  var de_PromptConfiguration = /* @__PURE__ */ __name((output, context) => {
4553
5098
  return (0, import_smithy_client.take)(output, {
4554
5099
  additionalModelRequestFields: /* @__PURE__ */ __name((_) => de_Document(_, context), "additionalModelRequestFields"),
@@ -4664,487 +5209,218 @@ var de_PromptVariantList = /* @__PURE__ */ __name((output, context) => {
4664
5209
  return de_PromptVariant(entry, context);
4665
5210
  });
4666
5211
  return retVal;
4667
- }, "de_PromptVariantList");
4668
- var de_Tool = /* @__PURE__ */ __name((output, context) => {
4669
- if (output.cachePoint != null) {
4670
- return {
4671
- cachePoint: (0, import_smithy_client._json)(output.cachePoint)
4672
- };
4673
- }
4674
- if (output.toolSpec != null) {
4675
- return {
4676
- toolSpec: de_ToolSpecification(output.toolSpec, context)
4677
- };
4678
- }
4679
- return { $unknown: Object.entries(output)[0] };
4680
- }, "de_Tool");
4681
- var de_ToolConfiguration = /* @__PURE__ */ __name((output, context) => {
4682
- return (0, import_smithy_client.take)(output, {
4683
- toolChoice: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "toolChoice"),
4684
- tools: /* @__PURE__ */ __name((_) => de_Tools(_, context), "tools")
4685
- });
4686
- }, "de_ToolConfiguration");
4687
- var de_ToolInputSchema = /* @__PURE__ */ __name((output, context) => {
4688
- if (output.json != null) {
4689
- return {
4690
- json: de_Document(output.json, context)
4691
- };
4692
- }
4693
- return { $unknown: Object.entries(output)[0] };
4694
- }, "de_ToolInputSchema");
4695
- var de_Tools = /* @__PURE__ */ __name((output, context) => {
4696
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
4697
- return de_Tool((0, import_core2.awsExpectUnion)(entry), context);
4698
- });
4699
- return retVal;
4700
- }, "de_Tools");
4701
- var de_ToolSpecification = /* @__PURE__ */ __name((output, context) => {
4702
- return (0, import_smithy_client.take)(output, {
4703
- description: import_smithy_client.expectString,
4704
- inputSchema: /* @__PURE__ */ __name((_) => de_ToolInputSchema((0, import_core2.awsExpectUnion)(_), context), "inputSchema"),
4705
- name: import_smithy_client.expectString
4706
- });
4707
- }, "de_ToolSpecification");
4708
- var de_Document = /* @__PURE__ */ __name((output, context) => {
4709
- return output;
4710
- }, "de_Document");
4711
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
4712
- httpStatusCode: output.statusCode,
4713
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
4714
- extendedRequestId: output.headers["x-amz-id-2"],
4715
- cfId: output.headers["x-amz-cf-id"]
4716
- }), "deserializeMetadata");
4717
- var _mR = "maxResults";
4718
- var _nT = "nextToken";
4719
- var _pI = "promptIdentifier";
4720
- var _pV = "promptVersion";
4721
- var _sRIUC = "skipResourceInUseCheck";
4722
- var _tK = "tagKeys";
4723
-
4724
- // src/commands/AssociateAgentCollaboratorCommand.ts
4725
- var AssociateAgentCollaboratorCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4726
- return [
4727
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4728
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4729
- ];
4730
- }).s("AmazonBedrockAgentBuildTimeLambda", "AssociateAgentCollaborator", {}).n("BedrockAgentClient", "AssociateAgentCollaboratorCommand").f(AssociateAgentCollaboratorRequestFilterSensitiveLog, AssociateAgentCollaboratorResponseFilterSensitiveLog).ser(se_AssociateAgentCollaboratorCommand).de(de_AssociateAgentCollaboratorCommand).build() {
4731
- static {
4732
- __name(this, "AssociateAgentCollaboratorCommand");
4733
- }
4734
- };
4735
-
4736
- // src/commands/AssociateAgentKnowledgeBaseCommand.ts
4737
-
4738
-
4739
-
4740
- var AssociateAgentKnowledgeBaseCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4741
- return [
4742
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4743
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4744
- ];
4745
- }).s("AmazonBedrockAgentBuildTimeLambda", "AssociateAgentKnowledgeBase", {}).n("BedrockAgentClient", "AssociateAgentKnowledgeBaseCommand").f(void 0, void 0).ser(se_AssociateAgentKnowledgeBaseCommand).de(de_AssociateAgentKnowledgeBaseCommand).build() {
4746
- static {
4747
- __name(this, "AssociateAgentKnowledgeBaseCommand");
4748
- }
4749
- };
4750
-
4751
- // src/commands/CreateAgentActionGroupCommand.ts
4752
-
4753
-
4754
-
4755
- var CreateAgentActionGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4756
- return [
4757
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4758
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4759
- ];
4760
- }).s("AmazonBedrockAgentBuildTimeLambda", "CreateAgentActionGroup", {}).n("BedrockAgentClient", "CreateAgentActionGroupCommand").f(CreateAgentActionGroupRequestFilterSensitiveLog, CreateAgentActionGroupResponseFilterSensitiveLog).ser(se_CreateAgentActionGroupCommand).de(de_CreateAgentActionGroupCommand).build() {
4761
- static {
4762
- __name(this, "CreateAgentActionGroupCommand");
4763
- }
4764
- };
4765
-
4766
- // src/commands/CreateAgentAliasCommand.ts
4767
-
4768
-
4769
-
4770
- var CreateAgentAliasCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4771
- return [
4772
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4773
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4774
- ];
4775
- }).s("AmazonBedrockAgentBuildTimeLambda", "CreateAgentAlias", {}).n("BedrockAgentClient", "CreateAgentAliasCommand").f(void 0, void 0).ser(se_CreateAgentAliasCommand).de(de_CreateAgentAliasCommand).build() {
4776
- static {
4777
- __name(this, "CreateAgentAliasCommand");
4778
- }
4779
- };
4780
-
4781
- // src/commands/CreateAgentCommand.ts
4782
-
4783
-
4784
-
4785
- var CreateAgentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4786
- return [
4787
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4788
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4789
- ];
4790
- }).s("AmazonBedrockAgentBuildTimeLambda", "CreateAgent", {}).n("BedrockAgentClient", "CreateAgentCommand").f(CreateAgentRequestFilterSensitiveLog, CreateAgentResponseFilterSensitiveLog).ser(se_CreateAgentCommand).de(de_CreateAgentCommand).build() {
4791
- static {
4792
- __name(this, "CreateAgentCommand");
4793
- }
4794
- };
4795
-
4796
- // src/commands/CreateDataSourceCommand.ts
4797
-
4798
-
4799
-
4800
- var CreateDataSourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4801
- return [
4802
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4803
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4804
- ];
4805
- }).s("AmazonBedrockAgentBuildTimeLambda", "CreateDataSource", {}).n("BedrockAgentClient", "CreateDataSourceCommand").f(CreateDataSourceRequestFilterSensitiveLog, CreateDataSourceResponseFilterSensitiveLog).ser(se_CreateDataSourceCommand).de(de_CreateDataSourceCommand).build() {
4806
- static {
4807
- __name(this, "CreateDataSourceCommand");
5212
+ }, "de_PromptVariantList");
5213
+ var de_Tool = /* @__PURE__ */ __name((output, context) => {
5214
+ if (output.cachePoint != null) {
5215
+ return {
5216
+ cachePoint: (0, import_smithy_client._json)(output.cachePoint)
5217
+ };
4808
5218
  }
4809
- };
4810
-
4811
- // src/commands/CreateFlowAliasCommand.ts
4812
-
4813
-
4814
-
4815
- var CreateFlowAliasCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4816
- return [
4817
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4818
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4819
- ];
4820
- }).s("AmazonBedrockAgentBuildTimeLambda", "CreateFlowAlias", {}).n("BedrockAgentClient", "CreateFlowAliasCommand").f(void 0, void 0).ser(se_CreateFlowAliasCommand).de(de_CreateFlowAliasCommand).build() {
4821
- static {
4822
- __name(this, "CreateFlowAliasCommand");
5219
+ if (output.toolSpec != null) {
5220
+ return {
5221
+ toolSpec: de_ToolSpecification(output.toolSpec, context)
5222
+ };
4823
5223
  }
4824
- };
4825
-
4826
- // src/commands/CreateFlowCommand.ts
4827
-
4828
-
5224
+ return { $unknown: Object.entries(output)[0] };
5225
+ }, "de_Tool");
5226
+ var de_ToolConfiguration = /* @__PURE__ */ __name((output, context) => {
5227
+ return (0, import_smithy_client.take)(output, {
5228
+ toolChoice: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "toolChoice"),
5229
+ tools: /* @__PURE__ */ __name((_) => de_Tools(_, context), "tools")
5230
+ });
5231
+ }, "de_ToolConfiguration");
5232
+ var de_ToolInputSchema = /* @__PURE__ */ __name((output, context) => {
5233
+ if (output.json != null) {
5234
+ return {
5235
+ json: de_Document(output.json, context)
5236
+ };
5237
+ }
5238
+ return { $unknown: Object.entries(output)[0] };
5239
+ }, "de_ToolInputSchema");
5240
+ var de_Tools = /* @__PURE__ */ __name((output, context) => {
5241
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
5242
+ return de_Tool((0, import_core2.awsExpectUnion)(entry), context);
5243
+ });
5244
+ return retVal;
5245
+ }, "de_Tools");
5246
+ var de_ToolSpecification = /* @__PURE__ */ __name((output, context) => {
5247
+ return (0, import_smithy_client.take)(output, {
5248
+ description: import_smithy_client.expectString,
5249
+ inputSchema: /* @__PURE__ */ __name((_) => de_ToolInputSchema((0, import_core2.awsExpectUnion)(_), context), "inputSchema"),
5250
+ name: import_smithy_client.expectString
5251
+ });
5252
+ }, "de_ToolSpecification");
5253
+ var de_VectorSearchBedrockRerankingConfiguration = /* @__PURE__ */ __name((output, context) => {
5254
+ return (0, import_smithy_client.take)(output, {
5255
+ metadataConfiguration: import_smithy_client._json,
5256
+ modelConfiguration: /* @__PURE__ */ __name((_) => de_VectorSearchBedrockRerankingModelConfiguration(_, context), "modelConfiguration"),
5257
+ numberOfRerankedResults: import_smithy_client.expectInt32
5258
+ });
5259
+ }, "de_VectorSearchBedrockRerankingConfiguration");
5260
+ var de_VectorSearchBedrockRerankingModelConfiguration = /* @__PURE__ */ __name((output, context) => {
5261
+ return (0, import_smithy_client.take)(output, {
5262
+ additionalModelRequestFields: /* @__PURE__ */ __name((_) => de_AdditionalModelRequestFields(_, context), "additionalModelRequestFields"),
5263
+ modelArn: import_smithy_client.expectString
5264
+ });
5265
+ }, "de_VectorSearchBedrockRerankingModelConfiguration");
5266
+ var de_VectorSearchRerankingConfiguration = /* @__PURE__ */ __name((output, context) => {
5267
+ return (0, import_smithy_client.take)(output, {
5268
+ bedrockRerankingConfiguration: /* @__PURE__ */ __name((_) => de_VectorSearchBedrockRerankingConfiguration(_, context), "bedrockRerankingConfiguration"),
5269
+ type: import_smithy_client.expectString
5270
+ });
5271
+ }, "de_VectorSearchRerankingConfiguration");
5272
+ var de_Document = /* @__PURE__ */ __name((output, context) => {
5273
+ return output;
5274
+ }, "de_Document");
5275
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
5276
+ httpStatusCode: output.statusCode,
5277
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
5278
+ extendedRequestId: output.headers["x-amz-id-2"],
5279
+ cfId: output.headers["x-amz-cf-id"]
5280
+ }), "deserializeMetadata");
5281
+ var _mR = "maxResults";
5282
+ var _nT = "nextToken";
5283
+ var _pI = "promptIdentifier";
5284
+ var _pV = "promptVersion";
5285
+ var _sRIUC = "skipResourceInUseCheck";
5286
+ var _tK = "tagKeys";
4829
5287
 
4830
- var CreateFlowCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
5288
+ // src/commands/AssociateAgentCollaboratorCommand.ts
5289
+ var AssociateAgentCollaboratorCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4831
5290
  return [
4832
5291
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4833
5292
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4834
5293
  ];
4835
- }).s("AmazonBedrockAgentBuildTimeLambda", "CreateFlow", {}).n("BedrockAgentClient", "CreateFlowCommand").f(CreateFlowRequestFilterSensitiveLog, CreateFlowResponseFilterSensitiveLog).ser(se_CreateFlowCommand).de(de_CreateFlowCommand).build() {
5294
+ }).s("AmazonBedrockAgentBuildTimeLambda", "AssociateAgentCollaborator", {}).n("BedrockAgentClient", "AssociateAgentCollaboratorCommand").f(AssociateAgentCollaboratorRequestFilterSensitiveLog, AssociateAgentCollaboratorResponseFilterSensitiveLog).ser(se_AssociateAgentCollaboratorCommand).de(de_AssociateAgentCollaboratorCommand).build() {
4836
5295
  static {
4837
- __name(this, "CreateFlowCommand");
5296
+ __name(this, "AssociateAgentCollaboratorCommand");
4838
5297
  }
4839
5298
  };
4840
5299
 
4841
- // src/commands/CreateFlowVersionCommand.ts
5300
+ // src/commands/AssociateAgentKnowledgeBaseCommand.ts
4842
5301
 
4843
5302
 
4844
5303
 
4845
- var CreateFlowVersionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
5304
+ var AssociateAgentKnowledgeBaseCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4846
5305
  return [
4847
5306
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4848
5307
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4849
5308
  ];
4850
- }).s("AmazonBedrockAgentBuildTimeLambda", "CreateFlowVersion", {}).n("BedrockAgentClient", "CreateFlowVersionCommand").f(void 0, CreateFlowVersionResponseFilterSensitiveLog).ser(se_CreateFlowVersionCommand).de(de_CreateFlowVersionCommand).build() {
5309
+ }).s("AmazonBedrockAgentBuildTimeLambda", "AssociateAgentKnowledgeBase", {}).n("BedrockAgentClient", "AssociateAgentKnowledgeBaseCommand").f(void 0, void 0).ser(se_AssociateAgentKnowledgeBaseCommand).de(de_AssociateAgentKnowledgeBaseCommand).build() {
4851
5310
  static {
4852
- __name(this, "CreateFlowVersionCommand");
4853
- }
4854
- };
4855
-
4856
- // src/commands/CreateKnowledgeBaseCommand.ts
4857
-
4858
-
4859
-
4860
-
4861
- // src/models/models_1.ts
4862
-
4863
- var ContentDataSourceType = {
4864
- CUSTOM: "CUSTOM",
4865
- S3: "S3"
4866
- };
4867
- var DocumentStatus = {
4868
- DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
4869
- DELETING: "DELETING",
4870
- FAILED: "FAILED",
4871
- IGNORED: "IGNORED",
4872
- INDEXED: "INDEXED",
4873
- IN_PROGRESS: "IN_PROGRESS",
4874
- METADATA_PARTIALLY_INDEXED: "METADATA_PARTIALLY_INDEXED",
4875
- METADATA_UPDATE_FAILED: "METADATA_UPDATE_FAILED",
4876
- NOT_FOUND: "NOT_FOUND",
4877
- PARTIALLY_INDEXED: "PARTIALLY_INDEXED",
4878
- PENDING: "PENDING",
4879
- STARTING: "STARTING"
4880
- };
4881
- var InlineContentType = {
4882
- BYTE: "BYTE",
4883
- TEXT: "TEXT"
4884
- };
4885
- var CustomSourceType = {
4886
- IN_LINE: "IN_LINE",
4887
- S3_LOCATION: "S3_LOCATION"
4888
- };
4889
- var MetadataValueType = {
4890
- BOOLEAN: "BOOLEAN",
4891
- NUMBER: "NUMBER",
4892
- STRING: "STRING",
4893
- STRING_LIST: "STRING_LIST"
4894
- };
4895
- var MetadataSourceType = {
4896
- IN_LINE_ATTRIBUTE: "IN_LINE_ATTRIBUTE",
4897
- S3_LOCATION: "S3_LOCATION"
4898
- };
4899
- var RedshiftProvisionedAuthType = {
4900
- IAM: "IAM",
4901
- USERNAME: "USERNAME",
4902
- USERNAME_PASSWORD: "USERNAME_PASSWORD"
4903
- };
4904
- var RedshiftServerlessAuthType = {
4905
- IAM: "IAM",
4906
- USERNAME_PASSWORD: "USERNAME_PASSWORD"
4907
- };
4908
- var RedshiftQueryEngineType = {
4909
- PROVISIONED: "PROVISIONED",
4910
- SERVERLESS: "SERVERLESS"
4911
- };
4912
- var IncludeExclude = {
4913
- EXCLUDE: "EXCLUDE",
4914
- INCLUDE: "INCLUDE"
4915
- };
4916
- var RedshiftQueryEngineStorageType = {
4917
- AWS_DATA_CATALOG: "AWS_DATA_CATALOG",
4918
- REDSHIFT: "REDSHIFT"
4919
- };
4920
- var QueryEngineType = {
4921
- REDSHIFT: "REDSHIFT"
4922
- };
4923
- var KnowledgeBaseType = {
4924
- KENDRA: "KENDRA",
4925
- SQL: "SQL",
4926
- VECTOR: "VECTOR"
4927
- };
4928
- var EmbeddingDataType = {
4929
- BINARY: "BINARY",
4930
- FLOAT32: "FLOAT32"
4931
- };
4932
- var SupplementalDataStorageLocationType = {
4933
- S3: "S3"
4934
- };
4935
- var KnowledgeBaseStorageType = {
4936
- MONGO_DB_ATLAS: "MONGO_DB_ATLAS",
4937
- NEPTUNE_ANALYTICS: "NEPTUNE_ANALYTICS",
4938
- OPENSEARCH_MANAGED_CLUSTER: "OPENSEARCH_MANAGED_CLUSTER",
4939
- OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS",
4940
- PINECONE: "PINECONE",
4941
- RDS: "RDS",
4942
- REDIS_ENTERPRISE_CLOUD: "REDIS_ENTERPRISE_CLOUD"
4943
- };
4944
- var KnowledgeBaseStatus = {
4945
- ACTIVE: "ACTIVE",
4946
- CREATING: "CREATING",
4947
- DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL",
4948
- DELETING: "DELETING",
4949
- FAILED: "FAILED",
4950
- UPDATING: "UPDATING"
4951
- };
4952
- var PromptGenAiResource;
4953
- ((PromptGenAiResource2) => {
4954
- PromptGenAiResource2.visit = /* @__PURE__ */ __name((value, visitor) => {
4955
- if (value.agent !== void 0) return visitor.agent(value.agent);
4956
- return visitor._(value.$unknown[0], value.$unknown[1]);
4957
- }, "visit");
4958
- })(PromptGenAiResource || (PromptGenAiResource = {}));
4959
- var ByteContentDocFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
4960
- ...obj,
4961
- ...obj.data && { data: import_smithy_client.SENSITIVE_STRING }
4962
- }), "ByteContentDocFilterSensitiveLog");
4963
- var TextContentDocFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
4964
- ...obj,
4965
- ...obj.data && { data: import_smithy_client.SENSITIVE_STRING }
4966
- }), "TextContentDocFilterSensitiveLog");
4967
- var InlineContentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
4968
- ...obj,
4969
- ...obj.byteContent && { byteContent: ByteContentDocFilterSensitiveLog(obj.byteContent) },
4970
- ...obj.textContent && { textContent: TextContentDocFilterSensitiveLog(obj.textContent) }
4971
- }), "InlineContentFilterSensitiveLog");
4972
- var CustomContentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
4973
- ...obj,
4974
- ...obj.inlineContent && { inlineContent: InlineContentFilterSensitiveLog(obj.inlineContent) }
4975
- }), "CustomContentFilterSensitiveLog");
4976
- var DocumentContentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
4977
- ...obj,
4978
- ...obj.custom && { custom: CustomContentFilterSensitiveLog(obj.custom) }
4979
- }), "DocumentContentFilterSensitiveLog");
4980
- var MetadataAttributeValueFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
4981
- ...obj,
4982
- ...obj.numberValue && { numberValue: import_smithy_client.SENSITIVE_STRING },
4983
- ...obj.stringValue && { stringValue: import_smithy_client.SENSITIVE_STRING },
4984
- ...obj.stringListValue && { stringListValue: import_smithy_client.SENSITIVE_STRING }
4985
- }), "MetadataAttributeValueFilterSensitiveLog");
4986
- var MetadataAttributeFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
4987
- ...obj,
4988
- ...obj.key && { key: import_smithy_client.SENSITIVE_STRING },
4989
- ...obj.value && { value: MetadataAttributeValueFilterSensitiveLog(obj.value) }
4990
- }), "MetadataAttributeFilterSensitiveLog");
4991
- var DocumentMetadataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
4992
- ...obj,
4993
- ...obj.inlineAttributes && {
4994
- inlineAttributes: obj.inlineAttributes.map((item) => MetadataAttributeFilterSensitiveLog(item))
4995
- }
4996
- }), "DocumentMetadataFilterSensitiveLog");
4997
- var KnowledgeBaseDocumentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
4998
- ...obj,
4999
- ...obj.metadata && { metadata: DocumentMetadataFilterSensitiveLog(obj.metadata) },
5000
- ...obj.content && { content: DocumentContentFilterSensitiveLog(obj.content) }
5001
- }), "KnowledgeBaseDocumentFilterSensitiveLog");
5002
- var IngestKnowledgeBaseDocumentsRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5003
- ...obj,
5004
- ...obj.documents && { documents: obj.documents.map((item) => KnowledgeBaseDocumentFilterSensitiveLog(item)) }
5005
- }), "IngestKnowledgeBaseDocumentsRequestFilterSensitiveLog");
5006
- var QueryGenerationContextFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5007
- ...obj
5008
- }), "QueryGenerationContextFilterSensitiveLog");
5009
- var QueryGenerationConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5010
- ...obj,
5011
- ...obj.generationContext && { generationContext: import_smithy_client.SENSITIVE_STRING }
5012
- }), "QueryGenerationConfigurationFilterSensitiveLog");
5013
- var RedshiftConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5014
- ...obj,
5015
- ...obj.queryGenerationConfiguration && {
5016
- queryGenerationConfiguration: QueryGenerationConfigurationFilterSensitiveLog(obj.queryGenerationConfiguration)
5311
+ __name(this, "AssociateAgentKnowledgeBaseCommand");
5017
5312
  }
5018
- }), "RedshiftConfigurationFilterSensitiveLog");
5019
- var SqlKnowledgeBaseConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5020
- ...obj,
5021
- ...obj.redshiftConfiguration && {
5022
- redshiftConfiguration: RedshiftConfigurationFilterSensitiveLog(obj.redshiftConfiguration)
5313
+ };
5314
+
5315
+ // src/commands/CreateAgentActionGroupCommand.ts
5316
+
5317
+
5318
+
5319
+ var CreateAgentActionGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
5320
+ return [
5321
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
5322
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
5323
+ ];
5324
+ }).s("AmazonBedrockAgentBuildTimeLambda", "CreateAgentActionGroup", {}).n("BedrockAgentClient", "CreateAgentActionGroupCommand").f(CreateAgentActionGroupRequestFilterSensitiveLog, CreateAgentActionGroupResponseFilterSensitiveLog).ser(se_CreateAgentActionGroupCommand).de(de_CreateAgentActionGroupCommand).build() {
5325
+ static {
5326
+ __name(this, "CreateAgentActionGroupCommand");
5023
5327
  }
5024
- }), "SqlKnowledgeBaseConfigurationFilterSensitiveLog");
5025
- var KnowledgeBaseConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5026
- ...obj,
5027
- ...obj.sqlKnowledgeBaseConfiguration && {
5028
- sqlKnowledgeBaseConfiguration: SqlKnowledgeBaseConfigurationFilterSensitiveLog(obj.sqlKnowledgeBaseConfiguration)
5328
+ };
5329
+
5330
+ // src/commands/CreateAgentAliasCommand.ts
5331
+
5332
+
5333
+
5334
+ var CreateAgentAliasCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
5335
+ return [
5336
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
5337
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
5338
+ ];
5339
+ }).s("AmazonBedrockAgentBuildTimeLambda", "CreateAgentAlias", {}).n("BedrockAgentClient", "CreateAgentAliasCommand").f(void 0, void 0).ser(se_CreateAgentAliasCommand).de(de_CreateAgentAliasCommand).build() {
5340
+ static {
5341
+ __name(this, "CreateAgentAliasCommand");
5029
5342
  }
5030
- }), "KnowledgeBaseConfigurationFilterSensitiveLog");
5031
- var NeptuneAnalyticsConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5032
- ...obj,
5033
- ...obj.graphArn && { graphArn: import_smithy_client.SENSITIVE_STRING }
5034
- }), "NeptuneAnalyticsConfigurationFilterSensitiveLog");
5035
- var OpenSearchManagedClusterConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5036
- ...obj,
5037
- ...obj.vectorIndexName && { vectorIndexName: import_smithy_client.SENSITIVE_STRING }
5038
- }), "OpenSearchManagedClusterConfigurationFilterSensitiveLog");
5039
- var StorageConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5040
- ...obj,
5041
- ...obj.opensearchManagedClusterConfiguration && {
5042
- opensearchManagedClusterConfiguration: OpenSearchManagedClusterConfigurationFilterSensitiveLog(
5043
- obj.opensearchManagedClusterConfiguration
5044
- )
5045
- },
5046
- ...obj.neptuneAnalyticsConfiguration && {
5047
- neptuneAnalyticsConfiguration: NeptuneAnalyticsConfigurationFilterSensitiveLog(obj.neptuneAnalyticsConfiguration)
5343
+ };
5344
+
5345
+ // src/commands/CreateAgentCommand.ts
5346
+
5347
+
5348
+
5349
+ var CreateAgentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
5350
+ return [
5351
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
5352
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
5353
+ ];
5354
+ }).s("AmazonBedrockAgentBuildTimeLambda", "CreateAgent", {}).n("BedrockAgentClient", "CreateAgentCommand").f(CreateAgentRequestFilterSensitiveLog, CreateAgentResponseFilterSensitiveLog).ser(se_CreateAgentCommand).de(de_CreateAgentCommand).build() {
5355
+ static {
5356
+ __name(this, "CreateAgentCommand");
5048
5357
  }
5049
- }), "StorageConfigurationFilterSensitiveLog");
5050
- var CreateKnowledgeBaseRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5051
- ...obj,
5052
- ...obj.knowledgeBaseConfiguration && {
5053
- knowledgeBaseConfiguration: KnowledgeBaseConfigurationFilterSensitiveLog(obj.knowledgeBaseConfiguration)
5054
- },
5055
- ...obj.storageConfiguration && {
5056
- storageConfiguration: StorageConfigurationFilterSensitiveLog(obj.storageConfiguration)
5358
+ };
5359
+
5360
+ // src/commands/CreateDataSourceCommand.ts
5361
+
5362
+
5363
+
5364
+ var CreateDataSourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
5365
+ return [
5366
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
5367
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
5368
+ ];
5369
+ }).s("AmazonBedrockAgentBuildTimeLambda", "CreateDataSource", {}).n("BedrockAgentClient", "CreateDataSourceCommand").f(CreateDataSourceRequestFilterSensitiveLog, CreateDataSourceResponseFilterSensitiveLog).ser(se_CreateDataSourceCommand).de(de_CreateDataSourceCommand).build() {
5370
+ static {
5371
+ __name(this, "CreateDataSourceCommand");
5057
5372
  }
5058
- }), "CreateKnowledgeBaseRequestFilterSensitiveLog");
5059
- var KnowledgeBaseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5060
- ...obj,
5061
- ...obj.knowledgeBaseConfiguration && {
5062
- knowledgeBaseConfiguration: KnowledgeBaseConfigurationFilterSensitiveLog(obj.knowledgeBaseConfiguration)
5063
- },
5064
- ...obj.storageConfiguration && {
5065
- storageConfiguration: StorageConfigurationFilterSensitiveLog(obj.storageConfiguration)
5373
+ };
5374
+
5375
+ // src/commands/CreateFlowAliasCommand.ts
5376
+
5377
+
5378
+
5379
+ var CreateFlowAliasCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
5380
+ return [
5381
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
5382
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
5383
+ ];
5384
+ }).s("AmazonBedrockAgentBuildTimeLambda", "CreateFlowAlias", {}).n("BedrockAgentClient", "CreateFlowAliasCommand").f(void 0, void 0).ser(se_CreateFlowAliasCommand).de(de_CreateFlowAliasCommand).build() {
5385
+ static {
5386
+ __name(this, "CreateFlowAliasCommand");
5066
5387
  }
5067
- }), "KnowledgeBaseFilterSensitiveLog");
5068
- var CreateKnowledgeBaseResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5069
- ...obj,
5070
- ...obj.knowledgeBase && { knowledgeBase: KnowledgeBaseFilterSensitiveLog(obj.knowledgeBase) }
5071
- }), "CreateKnowledgeBaseResponseFilterSensitiveLog");
5072
- var GetKnowledgeBaseResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5073
- ...obj,
5074
- ...obj.knowledgeBase && { knowledgeBase: KnowledgeBaseFilterSensitiveLog(obj.knowledgeBase) }
5075
- }), "GetKnowledgeBaseResponseFilterSensitiveLog");
5076
- var UpdateKnowledgeBaseRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5077
- ...obj,
5078
- ...obj.knowledgeBaseConfiguration && {
5079
- knowledgeBaseConfiguration: KnowledgeBaseConfigurationFilterSensitiveLog(obj.knowledgeBaseConfiguration)
5080
- },
5081
- ...obj.storageConfiguration && {
5082
- storageConfiguration: StorageConfigurationFilterSensitiveLog(obj.storageConfiguration)
5388
+ };
5389
+
5390
+ // src/commands/CreateFlowCommand.ts
5391
+
5392
+
5393
+
5394
+ var CreateFlowCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
5395
+ return [
5396
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
5397
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
5398
+ ];
5399
+ }).s("AmazonBedrockAgentBuildTimeLambda", "CreateFlow", {}).n("BedrockAgentClient", "CreateFlowCommand").f(CreateFlowRequestFilterSensitiveLog, CreateFlowResponseFilterSensitiveLog).ser(se_CreateFlowCommand).de(de_CreateFlowCommand).build() {
5400
+ static {
5401
+ __name(this, "CreateFlowCommand");
5083
5402
  }
5084
- }), "UpdateKnowledgeBaseRequestFilterSensitiveLog");
5085
- var UpdateKnowledgeBaseResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5086
- ...obj,
5087
- ...obj.knowledgeBase && { knowledgeBase: KnowledgeBaseFilterSensitiveLog(obj.knowledgeBase) }
5088
- }), "UpdateKnowledgeBaseResponseFilterSensitiveLog");
5089
- var PromptAgentResourceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5090
- ...obj
5091
- }), "PromptAgentResourceFilterSensitiveLog");
5092
- var PromptGenAiResourceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
5093
- if (obj.agent !== void 0) return { agent: import_smithy_client.SENSITIVE_STRING };
5094
- if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
5095
- }, "PromptGenAiResourceFilterSensitiveLog");
5096
- var PromptMetadataEntryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5097
- ...obj,
5098
- ...obj.key && { key: import_smithy_client.SENSITIVE_STRING },
5099
- ...obj.value && { value: import_smithy_client.SENSITIVE_STRING }
5100
- }), "PromptMetadataEntryFilterSensitiveLog");
5101
- var PromptVariantFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5102
- ...obj,
5103
- ...obj.templateConfiguration && {
5104
- templateConfiguration: PromptTemplateConfigurationFilterSensitiveLog(obj.templateConfiguration)
5105
- },
5106
- ...obj.inferenceConfiguration && { inferenceConfiguration: obj.inferenceConfiguration },
5107
- ...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING },
5108
- ...obj.genAiResource && { genAiResource: import_smithy_client.SENSITIVE_STRING }
5109
- }), "PromptVariantFilterSensitiveLog");
5110
- var CreatePromptRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5111
- ...obj,
5112
- ...obj.variants && { variants: import_smithy_client.SENSITIVE_STRING }
5113
- }), "CreatePromptRequestFilterSensitiveLog");
5114
- var CreatePromptResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5115
- ...obj,
5116
- ...obj.variants && { variants: import_smithy_client.SENSITIVE_STRING }
5117
- }), "CreatePromptResponseFilterSensitiveLog");
5118
- var CreatePromptVersionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5119
- ...obj,
5120
- ...obj.variants && { variants: import_smithy_client.SENSITIVE_STRING }
5121
- }), "CreatePromptVersionResponseFilterSensitiveLog");
5122
- var GetPromptResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5123
- ...obj,
5124
- ...obj.variants && { variants: import_smithy_client.SENSITIVE_STRING }
5125
- }), "GetPromptResponseFilterSensitiveLog");
5126
- var UpdatePromptRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5127
- ...obj,
5128
- ...obj.variants && { variants: import_smithy_client.SENSITIVE_STRING }
5129
- }), "UpdatePromptRequestFilterSensitiveLog");
5130
- var UpdatePromptResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5131
- ...obj,
5132
- ...obj.variants && { variants: import_smithy_client.SENSITIVE_STRING }
5133
- }), "UpdatePromptResponseFilterSensitiveLog");
5134
- var ValidateFlowDefinitionRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5135
- ...obj,
5136
- ...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING }
5137
- }), "ValidateFlowDefinitionRequestFilterSensitiveLog");
5138
- var ValidateFlowDefinitionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5139
- ...obj,
5140
- ...obj.validations && { validations: obj.validations.map((item) => FlowValidationFilterSensitiveLog(item)) }
5141
- }), "ValidateFlowDefinitionResponseFilterSensitiveLog");
5142
- var GetAgentVersionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5143
- ...obj,
5144
- ...obj.agentVersion && { agentVersion: AgentVersionFilterSensitiveLog(obj.agentVersion) }
5145
- }), "GetAgentVersionResponseFilterSensitiveLog");
5403
+ };
5404
+
5405
+ // src/commands/CreateFlowVersionCommand.ts
5406
+
5407
+
5408
+
5409
+ var CreateFlowVersionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
5410
+ return [
5411
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
5412
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
5413
+ ];
5414
+ }).s("AmazonBedrockAgentBuildTimeLambda", "CreateFlowVersion", {}).n("BedrockAgentClient", "CreateFlowVersionCommand").f(void 0, CreateFlowVersionResponseFilterSensitiveLog).ser(se_CreateFlowVersionCommand).de(de_CreateFlowVersionCommand).build() {
5415
+ static {
5416
+ __name(this, "CreateFlowVersionCommand");
5417
+ }
5418
+ };
5146
5419
 
5147
5420
  // src/commands/CreateKnowledgeBaseCommand.ts
5421
+
5422
+
5423
+
5148
5424
  var CreateKnowledgeBaseCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
5149
5425
  return [
5150
5426
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -6363,6 +6639,10 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
6363
6639
  FlowConnectionType,
6364
6640
  SupportedLanguages,
6365
6641
  PromptInferenceConfiguration,
6642
+ PerformanceConfigLatency,
6643
+ RerankingMetadataSelectionMode,
6644
+ RerankingMetadataSelectiveModeConfiguration,
6645
+ VectorSearchRerankingConfigurationType,
6366
6646
  CachePointType,
6367
6647
  ContentBlock,
6368
6648
  ConversationRole,
@@ -6375,18 +6655,16 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
6375
6655
  PromptFlowNodeSourceConfiguration,
6376
6656
  RetrievalFlowNodeServiceConfiguration,
6377
6657
  StorageFlowNodeServiceConfiguration,
6378
- FlowNodeConfiguration,
6658
+ FlowNodeInputCategory,
6379
6659
  FlowNodeIODataType,
6380
6660
  FlowNodeType,
6381
6661
  FlowStatus,
6662
+ ConcurrencyType,
6663
+ IncompatibleLoopNodeType,
6382
6664
  FlowValidationDetails,
6383
6665
  FlowValidationSeverity,
6384
6666
  FlowValidationType,
6385
6667
  IngestionJobStatus,
6386
- IngestionJobFilterAttribute,
6387
- IngestionJobFilterOperator,
6388
- IngestionJobSortByAttribute,
6389
- SortOrder,
6390
6668
  APISchemaFilterSensitiveLog,
6391
6669
  CreateAgentActionGroupRequestFilterSensitiveLog,
6392
6670
  AgentActionGroupFilterSensitiveLog,
@@ -6433,6 +6711,14 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
6433
6711
  FlowConditionFilterSensitiveLog,
6434
6712
  ConditionFlowNodeConfigurationFilterSensitiveLog,
6435
6713
  InlineCodeFlowNodeConfigurationFilterSensitiveLog,
6714
+ KnowledgeBasePromptTemplateFilterSensitiveLog,
6715
+ KnowledgeBaseOrchestrationConfigurationFilterSensitiveLog,
6716
+ RerankingMetadataSelectiveModeConfigurationFilterSensitiveLog,
6717
+ MetadataConfigurationForRerankingFilterSensitiveLog,
6718
+ VectorSearchBedrockRerankingConfigurationFilterSensitiveLog,
6719
+ VectorSearchRerankingConfigurationFilterSensitiveLog,
6720
+ KnowledgeBaseFlowNodeConfigurationFilterSensitiveLog,
6721
+ LoopControllerFlowNodeConfigurationFilterSensitiveLog,
6436
6722
  ContentBlockFilterSensitiveLog,
6437
6723
  MessageFilterSensitiveLog,
6438
6724
  SystemContentBlockFilterSensitiveLog,
@@ -6444,20 +6730,14 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
6444
6730
  PromptFlowNodeInlineConfigurationFilterSensitiveLog,
6445
6731
  PromptFlowNodeSourceConfigurationFilterSensitiveLog,
6446
6732
  PromptFlowNodeConfigurationFilterSensitiveLog,
6447
- FlowNodeConfigurationFilterSensitiveLog,
6448
6733
  FlowNodeInputFilterSensitiveLog,
6449
- FlowNodeFilterSensitiveLog,
6450
- FlowDefinitionFilterSensitiveLog,
6451
- CreateFlowRequestFilterSensitiveLog,
6452
- CreateFlowResponseFilterSensitiveLog,
6453
- CreateFlowVersionResponseFilterSensitiveLog,
6454
- GetFlowVersionResponseFilterSensitiveLog,
6455
6734
  DuplicateConditionExpressionFlowValidationDetailsFilterSensitiveLog,
6456
6735
  FlowValidationDetailsFilterSensitiveLog,
6457
6736
  FlowValidationFilterSensitiveLog,
6458
- GetFlowResponseFilterSensitiveLog,
6459
- UpdateFlowRequestFilterSensitiveLog,
6460
- UpdateFlowResponseFilterSensitiveLog,
6737
+ IngestionJobFilterAttribute,
6738
+ IngestionJobFilterOperator,
6739
+ IngestionJobSortByAttribute,
6740
+ SortOrder,
6461
6741
  ContentDataSourceType,
6462
6742
  DocumentStatus,
6463
6743
  InlineContentType,
@@ -6476,6 +6756,7 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
6476
6756
  KnowledgeBaseStorageType,
6477
6757
  KnowledgeBaseStatus,
6478
6758
  PromptGenAiResource,
6759
+ FlowNodeConfiguration,
6479
6760
  ByteContentDocFilterSensitiveLog,
6480
6761
  TextContentDocFilterSensitiveLog,
6481
6762
  InlineContentFilterSensitiveLog,
@@ -6510,8 +6791,19 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
6510
6791
  GetPromptResponseFilterSensitiveLog,
6511
6792
  UpdatePromptRequestFilterSensitiveLog,
6512
6793
  UpdatePromptResponseFilterSensitiveLog,
6513
- ValidateFlowDefinitionRequestFilterSensitiveLog,
6514
6794
  ValidateFlowDefinitionResponseFilterSensitiveLog,
6515
- GetAgentVersionResponseFilterSensitiveLog
6795
+ GetAgentVersionResponseFilterSensitiveLog,
6796
+ FlowDefinitionFilterSensitiveLog,
6797
+ FlowNodeFilterSensitiveLog,
6798
+ FlowNodeConfigurationFilterSensitiveLog,
6799
+ LoopFlowNodeConfigurationFilterSensitiveLog,
6800
+ CreateFlowRequestFilterSensitiveLog,
6801
+ CreateFlowResponseFilterSensitiveLog,
6802
+ CreateFlowVersionResponseFilterSensitiveLog,
6803
+ GetFlowResponseFilterSensitiveLog,
6804
+ GetFlowVersionResponseFilterSensitiveLog,
6805
+ UpdateFlowRequestFilterSensitiveLog,
6806
+ UpdateFlowResponseFilterSensitiveLog,
6807
+ ValidateFlowDefinitionRequestFilterSensitiveLog
6516
6808
  });
6517
6809