@aws-sdk/client-bedrock-agent 3.1163.0 → 3.1164.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1162.0";
72
+ var version = "3.1163.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -607,6 +607,8 @@ const _MC = "MemoryConfiguration";
607
607
  const _MCCFVD = "MissingConnectionConfigurationFlowValidationDetails";
608
608
  const _MCEFVD = "MalformedConditionExpressionFlowValidationDetails";
609
609
  const _MCFR = "MetadataConfigurationForReranking";
610
+ const _MCe = "MetadataConfiguration";
611
+ const _MCet = "MetadataConfigurations";
610
612
  const _MDAC = "MongoDbAtlasConfiguration";
611
613
  const _MDAFM = "MongoDbAtlasFieldMapping";
612
614
  const _MDCFVD = "MissingDefaultConditionFlowValidationDetails";
@@ -614,6 +616,7 @@ const _MEC = "MediaExtractionConfiguration";
614
616
  const _MENFVD = "MissingEndingNodesFlowValidationDetails";
615
617
  const _MKBC = "ManagedKnowledgeBaseConfiguration";
616
618
  const _MKBCC = "ManagedKnowledgeBaseConnectorConfiguration";
619
+ const _MKN = "MetadataKeyName";
617
620
  const _MLCNFVD = "MissingLoopControllerNodeFlowValidationDetails";
618
621
  const _MLCNFVDu = "MultipleLoopControllerNodesFlowValidationDetails";
619
622
  const _MLINFVD = "MissingLoopInputNodeFlowValidationDetails";
@@ -1097,7 +1100,8 @@ const _mC = "memoryConfiguration";
1097
1100
  const _mCC = "missingConnectionConfiguration";
1098
1101
  const _mCE = "malformedConditionExpression";
1099
1102
  const _mCa = "maxConcurrency";
1100
- const _mCe = "metadataConfiguration";
1103
+ const _mCe = "metadataConfigurations";
1104
+ const _mCet = "metadataConfiguration";
1101
1105
  const _mCo = "modelConfiguration";
1102
1106
  const _mDAC = "mongoDbAtlasConfiguration";
1103
1107
  const _mDC = "missingDefaultCondition";
@@ -1263,6 +1267,7 @@ const _sVC = "s3VectorsConfiguration";
1263
1267
  const _s_ = "s3";
1264
1268
  const _sc = "scope";
1265
1269
  const _se = "server";
1270
+ const _sea = "searchability";
1266
1271
  const _sev = "severity";
1267
1272
  const _so = "source";
1268
1273
  const _sq = "sql";
@@ -1403,6 +1408,7 @@ var InlineCode = [0, n0, _IC, 8, 0];
1403
1408
  var Instruction = [0, n0, _I, 8, 0];
1404
1409
  var Key = [0, n0, _K, 8, 0];
1405
1410
  var KnowledgeBaseTextPrompt = [0, n0, _KBTP, 8, 0];
1411
+ var MetadataKeyName = [0, n0, _MKN, 8, 0];
1406
1412
  var NumberValue = [0, n0, _NV, 8, 1];
1407
1413
  var OpenSearchManagedClusterIndexName = [0, n0, _OSMCIN, 8, 0];
1408
1414
  var Payload = [0, n0, _P, 8, 0];
@@ -2365,8 +2371,8 @@ var KendraKnowledgeBaseConfiguration$ = [3, n0, _KKBC,
2365
2371
  ];
2366
2372
  var KnowledgeBase$ = [3, n0, _KB,
2367
2373
  0,
2368
- [_kBI, _n, _kBA, _rAo, _kBC, _st, _cA, _uA, _d, _sCt, _fR],
2369
- [0, 0, 0, 0, [() => KnowledgeBaseConfiguration$, 0], 0, 5, 5, 0, [() => StorageConfiguration$, 0], 64 | 0], 8
2374
+ [_kBI, _n, _kBA, _rAo, _kBC, _st, _cA, _uA, _d, _sCt, _fR, _mCe],
2375
+ [0, 0, 0, 0, [() => KnowledgeBaseConfiguration$, 0], 0, 5, 5, 0, [() => StorageConfiguration$, 0], 64 | 0, [() => MetadataConfigurations, 0]], 8
2370
2376
  ];
2371
2377
  var KnowledgeBaseConfiguration$ = [3, n0, _KBC,
2372
2378
  0,
@@ -2663,6 +2669,11 @@ var MetadataAttributeValue$ = [3, n0, _MAV,
2663
2669
  [_t, _nV, _bV, _sV, _sLV],
2664
2670
  [0, [() => NumberValue, 0], 2, [() => StringValue, 0], [() => StringListValue, 0]], 1
2665
2671
  ];
2672
+ var MetadataConfiguration$ = [3, n0, _MCe,
2673
+ 0,
2674
+ [_n, _t, _sea],
2675
+ [[() => MetadataKeyName, 0], 0, 0], 3
2676
+ ];
2666
2677
  var MetadataConfigurationForReranking$ = [3, n0, _MCFR,
2667
2678
  0,
2668
2679
  [_sM, _sMC],
@@ -3350,8 +3361,8 @@ var UpdateFlowResponse$ = [3, n0, _UFRp,
3350
3361
  ];
3351
3362
  var UpdateKnowledgeBaseRequest$ = [3, n0, _UKBR,
3352
3363
  0,
3353
- [_kBI, _n, _rAo, _kBC, _d, _sCt],
3354
- [[0, 1], 0, 0, [() => KnowledgeBaseConfiguration$, 0], 0, [() => StorageConfiguration$, 0]], 4
3364
+ [_kBI, _n, _rAo, _kBC, _d, _sCt, _mCe],
3365
+ [[0, 1], 0, 0, [() => KnowledgeBaseConfiguration$, 0], 0, [() => StorageConfiguration$, 0], [() => MetadataConfigurations, 0]], 4
3355
3366
  ];
3356
3367
  var UpdateKnowledgeBaseResponse$ = [3, n0, _UKBRp,
3357
3368
  0,
@@ -3410,7 +3421,7 @@ var VectorKnowledgeBaseConfiguration$ = [3, n0, _VKBC,
3410
3421
  ];
3411
3422
  var VectorSearchBedrockRerankingConfiguration$ = [3, n0, _VSBRC,
3412
3423
  0,
3413
- [_mCo, _nORR, _mCe],
3424
+ [_mCo, _nORR, _mCet],
3414
3425
  [() => VectorSearchBedrockRerankingModelConfiguration$, 1, [() => MetadataConfigurationForReranking$, 0]], 1
3415
3426
  ];
3416
3427
  var VectorSearchBedrockRerankingModelConfiguration$ = [3, n0, _VSBRMC,
@@ -3589,6 +3600,10 @@ var MetadataAttributes = [1, n0, _MAe,
3589
3600
  0, [() => MetadataAttribute$,
3590
3601
  0]
3591
3602
  ];
3603
+ var MetadataConfigurations = [1, n0, _MCet,
3604
+ 0, [() => MetadataConfiguration$,
3605
+ 0]
3606
+ ];
3592
3607
  var PatternObjectFilterList = [1, n0, _POFL,
3593
3608
  8, [() => PatternObjectFilter$,
3594
3609
  0]
@@ -4999,6 +5014,14 @@ const KnowledgeBaseStorageType = {
4999
5014
  REDIS_ENTERPRISE_CLOUD: "REDIS_ENTERPRISE_CLOUD",
5000
5015
  S3_VECTORS: "S3_VECTORS",
5001
5016
  };
5017
+ const SearchableStatus = {
5018
+ DISABLED: "DISABLED",
5019
+ ENABLED: "ENABLED",
5020
+ };
5021
+ const FieldType = {
5022
+ STRING: "STRING",
5023
+ STRING_LIST: "STRING_LIST",
5024
+ };
5002
5025
  const KnowledgeBaseStatus = {
5003
5026
  ACTIVE: "ACTIVE",
5004
5027
  CREATING: "CREATING",
@@ -5254,6 +5277,7 @@ exports.EnabledOrDisabledState = EnabledOrDisabledState;
5254
5277
  exports.EnrichmentStrategyConfiguration$ = EnrichmentStrategyConfiguration$;
5255
5278
  exports.EnrichmentStrategyMethod = EnrichmentStrategyMethod;
5256
5279
  exports.FieldForReranking$ = FieldForReranking$;
5280
+ exports.FieldType = FieldType;
5257
5281
  exports.FixedSizeChunkingConfiguration$ = FixedSizeChunkingConfiguration$;
5258
5282
  exports.FlowAliasConcurrencyConfiguration$ = FlowAliasConcurrencyConfiguration$;
5259
5283
  exports.FlowAliasRoutingConfigurationListItem$ = FlowAliasRoutingConfigurationListItem$;
@@ -5482,6 +5506,7 @@ exports.MemoryType = MemoryType;
5482
5506
  exports.Message$ = Message$;
5483
5507
  exports.MetadataAttribute$ = MetadataAttribute$;
5484
5508
  exports.MetadataAttributeValue$ = MetadataAttributeValue$;
5509
+ exports.MetadataConfiguration$ = MetadataConfiguration$;
5485
5510
  exports.MetadataConfigurationForReranking$ = MetadataConfigurationForReranking$;
5486
5511
  exports.MetadataSourceType = MetadataSourceType;
5487
5512
  exports.MetadataValueType = MetadataValueType;
@@ -5600,6 +5625,7 @@ exports.SalesforceAuthType = SalesforceAuthType;
5600
5625
  exports.SalesforceCrawlerConfiguration$ = SalesforceCrawlerConfiguration$;
5601
5626
  exports.SalesforceDataSourceConfiguration$ = SalesforceDataSourceConfiguration$;
5602
5627
  exports.SalesforceSourceConfiguration$ = SalesforceSourceConfiguration$;
5628
+ exports.SearchableStatus = SearchableStatus;
5603
5629
  exports.SeedUrl$ = SeedUrl$;
5604
5630
  exports.SemanticChunkingConfiguration$ = SemanticChunkingConfiguration$;
5605
5631
  exports.ServerSideEncryptionConfiguration$ = ServerSideEncryptionConfiguration$;
@@ -412,6 +412,14 @@ export const KnowledgeBaseStorageType = {
412
412
  REDIS_ENTERPRISE_CLOUD: "REDIS_ENTERPRISE_CLOUD",
413
413
  S3_VECTORS: "S3_VECTORS",
414
414
  };
415
+ export const SearchableStatus = {
416
+ DISABLED: "DISABLED",
417
+ ENABLED: "ENABLED",
418
+ };
419
+ export const FieldType = {
420
+ STRING: "STRING",
421
+ STRING_LIST: "STRING_LIST",
422
+ };
415
423
  export const KnowledgeBaseStatus = {
416
424
  ACTIVE: "ACTIVE",
417
425
  CREATING: "CREATING",
@@ -372,6 +372,8 @@ const _MC = "MemoryConfiguration";
372
372
  const _MCCFVD = "MissingConnectionConfigurationFlowValidationDetails";
373
373
  const _MCEFVD = "MalformedConditionExpressionFlowValidationDetails";
374
374
  const _MCFR = "MetadataConfigurationForReranking";
375
+ const _MCe = "MetadataConfiguration";
376
+ const _MCet = "MetadataConfigurations";
375
377
  const _MDAC = "MongoDbAtlasConfiguration";
376
378
  const _MDAFM = "MongoDbAtlasFieldMapping";
377
379
  const _MDCFVD = "MissingDefaultConditionFlowValidationDetails";
@@ -379,6 +381,7 @@ const _MEC = "MediaExtractionConfiguration";
379
381
  const _MENFVD = "MissingEndingNodesFlowValidationDetails";
380
382
  const _MKBC = "ManagedKnowledgeBaseConfiguration";
381
383
  const _MKBCC = "ManagedKnowledgeBaseConnectorConfiguration";
384
+ const _MKN = "MetadataKeyName";
382
385
  const _MLCNFVD = "MissingLoopControllerNodeFlowValidationDetails";
383
386
  const _MLCNFVDu = "MultipleLoopControllerNodesFlowValidationDetails";
384
387
  const _MLINFVD = "MissingLoopInputNodeFlowValidationDetails";
@@ -862,7 +865,8 @@ const _mC = "memoryConfiguration";
862
865
  const _mCC = "missingConnectionConfiguration";
863
866
  const _mCE = "malformedConditionExpression";
864
867
  const _mCa = "maxConcurrency";
865
- const _mCe = "metadataConfiguration";
868
+ const _mCe = "metadataConfigurations";
869
+ const _mCet = "metadataConfiguration";
866
870
  const _mCo = "modelConfiguration";
867
871
  const _mDAC = "mongoDbAtlasConfiguration";
868
872
  const _mDC = "missingDefaultCondition";
@@ -1028,6 +1032,7 @@ const _sVC = "s3VectorsConfiguration";
1028
1032
  const _s_ = "s3";
1029
1033
  const _sc = "scope";
1030
1034
  const _se = "server";
1035
+ const _sea = "searchability";
1031
1036
  const _sev = "severity";
1032
1037
  const _so = "source";
1033
1038
  const _sq = "sql";
@@ -1171,6 +1176,7 @@ var InlineCode = [0, n0, _IC, 8, 0];
1171
1176
  var Instruction = [0, n0, _I, 8, 0];
1172
1177
  var Key = [0, n0, _K, 8, 0];
1173
1178
  var KnowledgeBaseTextPrompt = [0, n0, _KBTP, 8, 0];
1179
+ var MetadataKeyName = [0, n0, _MKN, 8, 0];
1174
1180
  var NumberValue = [0, n0, _NV, 8, 1];
1175
1181
  var OpenSearchManagedClusterIndexName = [0, n0, _OSMCIN, 8, 0];
1176
1182
  var Payload = [0, n0, _P, 8, 0];
@@ -2133,8 +2139,8 @@ export var KendraKnowledgeBaseConfiguration$ = [3, n0, _KKBC,
2133
2139
  ];
2134
2140
  export var KnowledgeBase$ = [3, n0, _KB,
2135
2141
  0,
2136
- [_kBI, _n, _kBA, _rAo, _kBC, _st, _cA, _uA, _d, _sCt, _fR],
2137
- [0, 0, 0, 0, [() => KnowledgeBaseConfiguration$, 0], 0, 5, 5, 0, [() => StorageConfiguration$, 0], 64 | 0], 8
2142
+ [_kBI, _n, _kBA, _rAo, _kBC, _st, _cA, _uA, _d, _sCt, _fR, _mCe],
2143
+ [0, 0, 0, 0, [() => KnowledgeBaseConfiguration$, 0], 0, 5, 5, 0, [() => StorageConfiguration$, 0], 64 | 0, [() => MetadataConfigurations, 0]], 8
2138
2144
  ];
2139
2145
  export var KnowledgeBaseConfiguration$ = [3, n0, _KBC,
2140
2146
  0,
@@ -2431,6 +2437,11 @@ export var MetadataAttributeValue$ = [3, n0, _MAV,
2431
2437
  [_t, _nV, _bV, _sV, _sLV],
2432
2438
  [0, [() => NumberValue, 0], 2, [() => StringValue, 0], [() => StringListValue, 0]], 1
2433
2439
  ];
2440
+ export var MetadataConfiguration$ = [3, n0, _MCe,
2441
+ 0,
2442
+ [_n, _t, _sea],
2443
+ [[() => MetadataKeyName, 0], 0, 0], 3
2444
+ ];
2434
2445
  export var MetadataConfigurationForReranking$ = [3, n0, _MCFR,
2435
2446
  0,
2436
2447
  [_sM, _sMC],
@@ -3118,8 +3129,8 @@ export var UpdateFlowResponse$ = [3, n0, _UFRp,
3118
3129
  ];
3119
3130
  export var UpdateKnowledgeBaseRequest$ = [3, n0, _UKBR,
3120
3131
  0,
3121
- [_kBI, _n, _rAo, _kBC, _d, _sCt],
3122
- [[0, 1], 0, 0, [() => KnowledgeBaseConfiguration$, 0], 0, [() => StorageConfiguration$, 0]], 4
3132
+ [_kBI, _n, _rAo, _kBC, _d, _sCt, _mCe],
3133
+ [[0, 1], 0, 0, [() => KnowledgeBaseConfiguration$, 0], 0, [() => StorageConfiguration$, 0], [() => MetadataConfigurations, 0]], 4
3123
3134
  ];
3124
3135
  export var UpdateKnowledgeBaseResponse$ = [3, n0, _UKBRp,
3125
3136
  0,
@@ -3178,7 +3189,7 @@ export var VectorKnowledgeBaseConfiguration$ = [3, n0, _VKBC,
3178
3189
  ];
3179
3190
  export var VectorSearchBedrockRerankingConfiguration$ = [3, n0, _VSBRC,
3180
3191
  0,
3181
- [_mCo, _nORR, _mCe],
3192
+ [_mCo, _nORR, _mCet],
3182
3193
  [() => VectorSearchBedrockRerankingModelConfiguration$, 1, [() => MetadataConfigurationForReranking$, 0]], 1
3183
3194
  ];
3184
3195
  export var VectorSearchBedrockRerankingModelConfiguration$ = [3, n0, _VSBRMC,
@@ -3361,6 +3372,10 @@ var MetadataAttributes = [1, n0, _MAe,
3361
3372
  0, [() => MetadataAttribute$,
3362
3373
  0]
3363
3374
  ];
3375
+ var MetadataConfigurations = [1, n0, _MCet,
3376
+ 0, [() => MetadataConfiguration$,
3377
+ 0]
3378
+ ];
3364
3379
  var PatternObjectFilterList = [1, n0, _POFL,
3365
3380
  8, [() => PatternObjectFilter$,
3366
3381
  0]
@@ -495,6 +495,13 @@ declare const CreateKnowledgeBaseCommand_base: {
495
495
  * // failureReasons: [ // FailureReasons
496
496
  * // "STRING_VALUE",
497
497
  * // ],
498
+ * // metadataConfigurations: [ // MetadataConfigurations
499
+ * // { // MetadataConfiguration
500
+ * // name: "STRING_VALUE", // required
501
+ * // type: "STRING" || "STRING_LIST", // required
502
+ * // searchability: "ENABLED" || "DISABLED", // required
503
+ * // },
504
+ * // ],
498
505
  * // },
499
506
  * // };
500
507
  *
@@ -270,6 +270,13 @@ declare const GetKnowledgeBaseCommand_base: {
270
270
  * // failureReasons: [ // FailureReasons
271
271
  * // "STRING_VALUE",
272
272
  * // ],
273
+ * // metadataConfigurations: [ // MetadataConfigurations
274
+ * // { // MetadataConfiguration
275
+ * // name: "STRING_VALUE", // required
276
+ * // type: "STRING" || "STRING_LIST", // required
277
+ * // searchability: "ENABLED" || "DISABLED", // required
278
+ * // },
279
+ * // ],
273
280
  * // },
274
281
  * // };
275
282
  *
@@ -257,6 +257,13 @@ declare const UpdateKnowledgeBaseCommand_base: {
257
257
  * indexName: "STRING_VALUE",
258
258
  * },
259
259
  * },
260
+ * metadataConfigurations: [ // MetadataConfigurations
261
+ * { // MetadataConfiguration
262
+ * name: "STRING_VALUE", // required
263
+ * type: "STRING" || "STRING_LIST", // required
264
+ * searchability: "ENABLED" || "DISABLED", // required
265
+ * },
266
+ * ],
260
267
  * };
261
268
  * const command = new UpdateKnowledgeBaseCommand(input);
262
269
  * const response = await client.send(command);
@@ -492,6 +499,13 @@ declare const UpdateKnowledgeBaseCommand_base: {
492
499
  * // failureReasons: [ // FailureReasons
493
500
  * // "STRING_VALUE",
494
501
  * // ],
502
+ * // metadataConfigurations: [ // MetadataConfigurations
503
+ * // { // MetadataConfiguration
504
+ * // name: "STRING_VALUE", // required
505
+ * // type: "STRING" || "STRING_LIST", // required
506
+ * // searchability: "ENABLED" || "DISABLED", // required
507
+ * // },
508
+ * // ],
495
509
  * // },
496
510
  * // };
497
511
  *
@@ -1042,6 +1042,30 @@ export declare const KnowledgeBaseStorageType: {
1042
1042
  * @public
1043
1043
  */
1044
1044
  export type KnowledgeBaseStorageType = (typeof KnowledgeBaseStorageType)[keyof typeof KnowledgeBaseStorageType];
1045
+ /**
1046
+ * @public
1047
+ * @enum
1048
+ */
1049
+ export declare const SearchableStatus: {
1050
+ readonly DISABLED: "DISABLED";
1051
+ readonly ENABLED: "ENABLED";
1052
+ };
1053
+ /**
1054
+ * @public
1055
+ */
1056
+ export type SearchableStatus = (typeof SearchableStatus)[keyof typeof SearchableStatus];
1057
+ /**
1058
+ * @public
1059
+ * @enum
1060
+ */
1061
+ export declare const FieldType: {
1062
+ readonly STRING: "STRING";
1063
+ readonly STRING_LIST: "STRING_LIST";
1064
+ };
1065
+ /**
1066
+ * @public
1067
+ */
1068
+ export type FieldType = (typeof FieldType)[keyof typeof FieldType];
1045
1069
  /**
1046
1070
  * @public
1047
1071
  * @enum
@@ -1,6 +1,6 @@
1
1
  import { AutomaticJsonStringConversion as __AutomaticJsonStringConversion } from "@smithy/core/serde";
2
2
  import type { DocumentType as __DocumentType } from "@smithy/types";
3
- import type { AgentStatus, EmbeddingDataType, EmbeddingModelType, FlowNodeType, FlowStatus, IncludedData, IncludeExclude, KnowledgeBaseState, KnowledgeBaseStatus, KnowledgeBaseStorageType, KnowledgeBaseType, PromptTemplateType, QueryEngineType, RedshiftProvisionedAuthType, RedshiftQueryEngineStorageType, RedshiftQueryEngineType, RedshiftServerlessAuthType, RetrievalInstructionFailureReasonCode, RetrievalInstructionFieldName, RetrievalInstructionLastTransitionStatus, RetrievalInstructionStatus, SupplementalDataStorageLocationType, VpcConfigurationStatus, VpcProtocol, VpcResolutionMode } from "./enums";
3
+ import type { AgentStatus, EmbeddingDataType, EmbeddingModelType, FieldType, FlowNodeType, FlowStatus, IncludedData, IncludeExclude, KnowledgeBaseState, KnowledgeBaseStatus, KnowledgeBaseStorageType, KnowledgeBaseType, PromptTemplateType, QueryEngineType, RedshiftProvisionedAuthType, RedshiftQueryEngineStorageType, RedshiftQueryEngineType, RedshiftServerlessAuthType, RetrievalInstructionFailureReasonCode, RetrievalInstructionFieldName, RetrievalInstructionLastTransitionStatus, RetrievalInstructionStatus, SearchableStatus, SupplementalDataStorageLocationType, VpcConfigurationStatus, VpcProtocol, VpcResolutionMode } from "./enums";
4
4
  import type { AgentFlowNodeConfiguration, AgentKnowledgeBase, AgentKnowledgeBaseSummary, AgentVersion, AgentVersionSummary, CollectorFlowNodeConfiguration, ConditionFlowNodeConfiguration, FlowConnection, FlowNodeInput, FlowNodeOutput, FlowValidation, InlineCodeFlowNodeConfiguration, InputFlowNodeConfiguration, IteratorFlowNodeConfiguration, KnowledgeBaseDocumentDetail, KnowledgeBaseFlowNodeConfiguration, LambdaFunctionFlowNodeConfiguration, LexFlowNodeConfiguration, LoopControllerFlowNodeConfiguration, LoopInputFlowNodeConfiguration, OutputFlowNodeConfiguration, PromptFlowNodeConfiguration, PromptInferenceConfiguration, PromptTemplateConfiguration, RetrievalFlowNodeConfiguration, S3Location, ServerSideEncryptionConfiguration, StorageFlowNodeConfiguration } from "./models_0";
5
5
  /**
6
6
  * @public
@@ -1009,6 +1009,27 @@ export interface CreateKnowledgeBaseRequest {
1009
1009
  */
1010
1010
  tags?: Record<string, string> | undefined;
1011
1011
  }
1012
+ /**
1013
+ * <p>Contains the configuration of a single custom metadata field in a knowledge base, including its name, data type, and whether the field is searchable.</p>
1014
+ * @public
1015
+ */
1016
+ export interface MetadataConfiguration {
1017
+ /**
1018
+ * <p>The name of the custom metadata field.</p>
1019
+ * @public
1020
+ */
1021
+ name: string | undefined;
1022
+ /**
1023
+ * <p>The data type of the custom metadata field. Valid values are <code>STRING</code> and <code>STRING_LIST</code>.</p>
1024
+ * @public
1025
+ */
1026
+ type: FieldType | undefined;
1027
+ /**
1028
+ * <p>Specifies whether the custom metadata field is searchable. Valid values:</p> <ul> <li> <p> <code>ENABLED</code> – The field is searchable.</p> </li> <li> <p> <code>DISABLED</code> – The field is not searchable.</p> </li> </ul>
1029
+ * @public
1030
+ */
1031
+ searchability: SearchableStatus | undefined;
1032
+ }
1012
1033
  /**
1013
1034
  * <p>Contains information about a knowledge base.</p>
1014
1035
  * @public
@@ -1069,6 +1090,11 @@ export interface KnowledgeBase {
1069
1090
  * @public
1070
1091
  */
1071
1092
  failureReasons?: string[] | undefined;
1093
+ /**
1094
+ * <p>The custom metadata field configurations of the knowledge base. Each configuration specifies whether its field is searchable (<code>ENABLED</code> or <code>DISABLED</code>).</p> <p>If the update fails, the knowledge base status becomes <code>UPDATE_UNSUCCESSFUL</code>, the field configurations revert to their previous values, and <code>failureReasons</code> describes the cause. You can retry the update from <code>UPDATE_UNSUCCESSFUL</code>.</p>
1095
+ * @public
1096
+ */
1097
+ metadataConfigurations?: MetadataConfiguration[] | undefined;
1072
1098
  }
1073
1099
  /**
1074
1100
  * @public
@@ -1355,6 +1381,11 @@ export interface UpdateKnowledgeBaseRequest {
1355
1381
  * @public
1356
1382
  */
1357
1383
  storageConfiguration?: StorageConfiguration | undefined;
1384
+ /**
1385
+ * <p>Specifies up to 30 custom metadata field configurations for a managed knowledge base.</p> <p>The list that you specify replaces the existing configurations. The update removes any configuration that you leave out, and its field is no longer searchable. An empty list removes all configurations. If you don't specify a list, the existing configurations don't change.</p>
1386
+ * @public
1387
+ */
1388
+ metadataConfigurations?: MetadataConfiguration[] | undefined;
1358
1389
  }
1359
1390
  /**
1360
1391
  * @public
@@ -263,6 +263,7 @@ export declare var MemoryConfiguration$: StaticStructureSchema;
263
263
  export declare var Message$: StaticStructureSchema;
264
264
  export declare var MetadataAttribute$: StaticStructureSchema;
265
265
  export declare var MetadataAttributeValue$: StaticStructureSchema;
266
+ export declare var MetadataConfiguration$: StaticStructureSchema;
266
267
  export declare var MetadataConfigurationForReranking$: StaticStructureSchema;
267
268
  export declare var MismatchedNodeInputTypeFlowValidationDetails$: StaticStructureSchema;
268
269
  export declare var MismatchedNodeOutputTypeFlowValidationDetails$: StaticStructureSchema;
@@ -513,6 +513,16 @@ export declare const KnowledgeBaseStorageType: {
513
513
  };
514
514
  export type KnowledgeBaseStorageType =
515
515
  (typeof KnowledgeBaseStorageType)[keyof typeof KnowledgeBaseStorageType];
516
+ export declare const SearchableStatus: {
517
+ readonly DISABLED: "DISABLED";
518
+ readonly ENABLED: "ENABLED";
519
+ };
520
+ export type SearchableStatus = (typeof SearchableStatus)[keyof typeof SearchableStatus];
521
+ export declare const FieldType: {
522
+ readonly STRING: "STRING";
523
+ readonly STRING_LIST: "STRING_LIST";
524
+ };
525
+ export type FieldType = (typeof FieldType)[keyof typeof FieldType];
516
526
  export declare const KnowledgeBaseStatus: {
517
527
  readonly ACTIVE: "ACTIVE";
518
528
  readonly CREATING: "CREATING";
@@ -4,6 +4,7 @@ import {
4
4
  AgentStatus,
5
5
  EmbeddingDataType,
6
6
  EmbeddingModelType,
7
+ FieldType,
7
8
  FlowNodeType,
8
9
  FlowStatus,
9
10
  IncludedData,
@@ -22,6 +23,7 @@ import {
22
23
  RetrievalInstructionFieldName,
23
24
  RetrievalInstructionLastTransitionStatus,
24
25
  RetrievalInstructionStatus,
26
+ SearchableStatus,
25
27
  SupplementalDataStorageLocationType,
26
28
  VpcConfigurationStatus,
27
29
  VpcProtocol,
@@ -297,6 +299,11 @@ export interface CreateKnowledgeBaseRequest {
297
299
  storageConfiguration?: StorageConfiguration | undefined;
298
300
  tags?: Record<string, string> | undefined;
299
301
  }
302
+ export interface MetadataConfiguration {
303
+ name: string | undefined;
304
+ type: FieldType | undefined;
305
+ searchability: SearchableStatus | undefined;
306
+ }
300
307
  export interface KnowledgeBase {
301
308
  knowledgeBaseId: string | undefined;
302
309
  name: string | undefined;
@@ -309,6 +316,7 @@ export interface KnowledgeBase {
309
316
  createdAt: Date | undefined;
310
317
  updatedAt: Date | undefined;
311
318
  failureReasons?: string[] | undefined;
319
+ metadataConfigurations?: MetadataConfiguration[] | undefined;
312
320
  }
313
321
  export interface CreateKnowledgeBaseResponse {
314
322
  knowledgeBase: KnowledgeBase | undefined;
@@ -382,6 +390,7 @@ export interface UpdateKnowledgeBaseRequest {
382
390
  roleArn: string | undefined;
383
391
  knowledgeBaseConfiguration: KnowledgeBaseConfiguration | undefined;
384
392
  storageConfiguration?: StorageConfiguration | undefined;
393
+ metadataConfigurations?: MetadataConfiguration[] | undefined;
385
394
  }
386
395
  export interface UpdateKnowledgeBaseResponse {
387
396
  knowledgeBase: KnowledgeBase | undefined;
@@ -263,6 +263,7 @@ export declare var MemoryConfiguration$: StaticStructureSchema;
263
263
  export declare var Message$: StaticStructureSchema;
264
264
  export declare var MetadataAttribute$: StaticStructureSchema;
265
265
  export declare var MetadataAttributeValue$: StaticStructureSchema;
266
+ export declare var MetadataConfiguration$: StaticStructureSchema;
266
267
  export declare var MetadataConfigurationForReranking$: StaticStructureSchema;
267
268
  export declare var MismatchedNodeInputTypeFlowValidationDetails$: StaticStructureSchema;
268
269
  export declare var MismatchedNodeOutputTypeFlowValidationDetails$: StaticStructureSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock-agent",
3
- "version": "3.1163.0",
3
+ "version": "3.1164.0",
4
4
  "description": "AWS SDK for JavaScript Bedrock Agent Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-bedrock-agent",
6
6
  "license": "Apache-2.0",
@@ -46,8 +46,8 @@
46
46
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.980.0",
50
- "@aws-sdk/credential-provider-node": "^3.972.93",
49
+ "@aws-sdk/core": "^3.980.1",
50
+ "@aws-sdk/credential-provider-node": "^3.972.94",
51
51
  "@aws-sdk/types": "^3.975.0",
52
52
  "@smithy/core": "^3.38.0",
53
53
  "@smithy/fetch-http-handler": "^5.8.0",