@wildix/wim-knowledge-base-client 0.0.52 → 0.0.54

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.
@@ -216,7 +216,7 @@ const se_GenerateSearchAnswerCommand = async (input, context) => {
216
216
  'maxOutputTokens': [],
217
217
  'model': [],
218
218
  'searchQuery': [],
219
- 'searchResults': _ => se_SearchKnowledgeBaseResults(_, context),
219
+ 'searchResults': _ => se_SearchKnowledgeBaseResultsList(_, context),
220
220
  'systemPrompt': [],
221
221
  'temperature': _ => (0, smithy_client_1.serializeFloat)(_),
222
222
  }));
@@ -765,7 +765,7 @@ const de_GenerateSearchAnswerCommand = async (output, context) => {
765
765
  const doc = (0, smithy_client_1.take)(data, {
766
766
  'answer': smithy_client_1.expectString,
767
767
  'metadata': smithy_client_1._json,
768
- 'sources': _ => de_SearchKnowledgeBaseResults(_, context),
768
+ 'sources': _ => de_SearchKnowledgeBaseResultsList(_, context),
769
769
  });
770
770
  Object.assign(contents, doc);
771
771
  return contents;
@@ -996,7 +996,7 @@ const de_ListSearchQueriesHistoryCommand = async (output, context) => {
996
996
  });
997
997
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
998
998
  const doc = (0, smithy_client_1.take)(data, {
999
- 'results': _ => de_SearchHistoryResultsList(_, context),
999
+ 'history': _ => de_SearchHistoryList(_, context),
1000
1000
  });
1001
1001
  Object.assign(contents, doc);
1002
1002
  return contents;
@@ -1012,7 +1012,7 @@ const de_SearchKnowledgeBaseCommand = async (output, context) => {
1012
1012
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1013
1013
  const doc = (0, smithy_client_1.take)(data, {
1014
1014
  'metadata': smithy_client_1._json,
1015
- 'results': _ => de_SearchKnowledgeBaseResults(_, context),
1015
+ 'results': _ => de_SearchKnowledgeBaseResultsList(_, context),
1016
1016
  });
1017
1017
  Object.assign(contents, doc);
1018
1018
  return contents;
@@ -1217,8 +1217,9 @@ const se_DescribeDataSourceParameters = (input, context) => {
1217
1217
  'proxy': _ => se_Document(_, context),
1218
1218
  });
1219
1219
  };
1220
- const se_SearchKnowledgeBaseResult = (input, context) => {
1220
+ const se_SearchKnowledgeBaseResultItem = (input, context) => {
1221
1221
  return (0, smithy_client_1.take)(input, {
1222
+ 'chunkId': [],
1222
1223
  'content': [],
1223
1224
  'dataSourceId': [],
1224
1225
  'dataSourceType': [],
@@ -1231,9 +1232,9 @@ const se_SearchKnowledgeBaseResult = (input, context) => {
1231
1232
  'semanticScore': smithy_client_1.serializeFloat,
1232
1233
  });
1233
1234
  };
1234
- const se_SearchKnowledgeBaseResults = (input, context) => {
1235
+ const se_SearchKnowledgeBaseResultsList = (input, context) => {
1235
1236
  return input.filter((e) => e != null).map(entry => {
1236
- return se_SearchKnowledgeBaseResult(entry, context);
1237
+ return se_SearchKnowledgeBaseResultItem(entry, context);
1237
1238
  });
1238
1239
  };
1239
1240
  const de_Document = (output, context) => {
@@ -1284,61 +1285,38 @@ const de_DescribeDataSourceResult = (output, context) => {
1284
1285
  'proxy': (_) => de_Document(_, context),
1285
1286
  });
1286
1287
  };
1287
- const de_SearchHistoryRequest = (output, context) => {
1288
- return (0, smithy_client_1.take)(output, {
1289
- 'externalSessionId': smithy_client_1.expectString,
1290
- 'knowledgeBaseId': smithy_client_1.expectString,
1291
- 'query': smithy_client_1.expectString,
1292
- 'searchLimit': smithy_client_1.expectInt32,
1293
- 'searchStrategy': smithy_client_1.expectString,
1294
- 'searchThreshold': smithy_client_1.limitedParseDouble,
1295
- 'user': smithy_client_1.expectString,
1296
- });
1297
- };
1298
- const de_SearchHistoryResponse = (output, context) => {
1299
- return (0, smithy_client_1.take)(output, {
1300
- 'results': (_) => de_SearchHistorySearchResults(_, context),
1301
- });
1302
- };
1303
- const de_SearchHistoryResult = (output, context) => {
1288
+ const de_SearchHistoryItem = (output, context) => {
1304
1289
  return (0, smithy_client_1.take)(output, {
1290
+ 'chunks': (_) => de_SearchKnowledgeBaseResultsList(_, context),
1291
+ 'chunksCount': smithy_client_1.expectInt32,
1305
1292
  'companyId': smithy_client_1.expectString,
1306
1293
  'createdAt': (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1307
1294
  'request': (_) => de_SearchHistoryRequest(_, context),
1308
- 'response': (_) => de_SearchHistoryResponse(_, context),
1309
- 'resultsCount': smithy_client_1.expectInt32,
1310
1295
  'sessionId': smithy_client_1.expectString,
1311
1296
  'stages': smithy_client_1._json,
1312
1297
  'totalDuration': smithy_client_1.expectInt32,
1313
1298
  });
1314
1299
  };
1315
- const de_SearchHistoryResultsList = (output, context) => {
1300
+ const de_SearchHistoryList = (output, context) => {
1316
1301
  const retVal = (output || []).filter((e) => e != null).map((entry) => {
1317
- return de_SearchHistoryResult(entry, context);
1302
+ return de_SearchHistoryItem(entry, context);
1318
1303
  });
1319
1304
  return retVal;
1320
1305
  };
1321
- const de_SearchHistorySearchResult = (output, context) => {
1306
+ const de_SearchHistoryRequest = (output, context) => {
1322
1307
  return (0, smithy_client_1.take)(output, {
1323
- 'bm25Score': smithy_client_1.limitedParseDouble,
1324
- 'chunkId': smithy_client_1.expectString,
1325
- 'dataSourceId': smithy_client_1.expectString,
1326
- 'dataSourceType': smithy_client_1.expectString,
1327
- 'documentId': smithy_client_1.expectString,
1328
- 'documentTitle': smithy_client_1.expectString,
1329
- 'documentUrl': smithy_client_1.expectString,
1330
- 'knnScore': smithy_client_1.limitedParseDouble,
1331
- 'score': smithy_client_1.limitedParseDouble,
1332
- });
1333
- };
1334
- const de_SearchHistorySearchResults = (output, context) => {
1335
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1336
- return de_SearchHistorySearchResult(entry, context);
1308
+ 'externalSessionId': smithy_client_1.expectString,
1309
+ 'knowledgeBaseId': smithy_client_1.expectString,
1310
+ 'query': smithy_client_1.expectString,
1311
+ 'searchLimit': smithy_client_1.expectInt32,
1312
+ 'searchStrategy': smithy_client_1.expectString,
1313
+ 'searchThreshold': smithy_client_1.limitedParseDouble,
1314
+ 'user': smithy_client_1.expectString,
1337
1315
  });
1338
- return retVal;
1339
1316
  };
1340
- const de_SearchKnowledgeBaseResult = (output, context) => {
1317
+ const de_SearchKnowledgeBaseResultItem = (output, context) => {
1341
1318
  return (0, smithy_client_1.take)(output, {
1319
+ 'chunkId': smithy_client_1.expectString,
1342
1320
  'content': smithy_client_1.expectString,
1343
1321
  'dataSourceId': smithy_client_1.expectString,
1344
1322
  'dataSourceType': smithy_client_1.expectString,
@@ -1351,9 +1329,9 @@ const de_SearchKnowledgeBaseResult = (output, context) => {
1351
1329
  'semanticScore': smithy_client_1.limitedParseDouble,
1352
1330
  });
1353
1331
  };
1354
- const de_SearchKnowledgeBaseResults = (output, context) => {
1332
+ const de_SearchKnowledgeBaseResultsList = (output, context) => {
1355
1333
  const retVal = (output || []).filter((e) => e != null).map((entry) => {
1356
- return de_SearchKnowledgeBaseResult(entry, context);
1334
+ return de_SearchKnowledgeBaseResultItem(entry, context);
1357
1335
  });
1358
1336
  return retVal;
1359
1337
  };
@@ -202,7 +202,7 @@ export const se_GenerateSearchAnswerCommand = async (input, context) => {
202
202
  'maxOutputTokens': [],
203
203
  'model': [],
204
204
  'searchQuery': [],
205
- 'searchResults': _ => se_SearchKnowledgeBaseResults(_, context),
205
+ 'searchResults': _ => se_SearchKnowledgeBaseResultsList(_, context),
206
206
  'systemPrompt': [],
207
207
  'temperature': _ => __serializeFloat(_),
208
208
  }));
@@ -719,7 +719,7 @@ export const de_GenerateSearchAnswerCommand = async (output, context) => {
719
719
  const doc = take(data, {
720
720
  'answer': __expectString,
721
721
  'metadata': _json,
722
- 'sources': _ => de_SearchKnowledgeBaseResults(_, context),
722
+ 'sources': _ => de_SearchKnowledgeBaseResultsList(_, context),
723
723
  });
724
724
  Object.assign(contents, doc);
725
725
  return contents;
@@ -935,7 +935,7 @@ export const de_ListSearchQueriesHistoryCommand = async (output, context) => {
935
935
  });
936
936
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
937
937
  const doc = take(data, {
938
- 'results': _ => de_SearchHistoryResultsList(_, context),
938
+ 'history': _ => de_SearchHistoryList(_, context),
939
939
  });
940
940
  Object.assign(contents, doc);
941
941
  return contents;
@@ -950,7 +950,7 @@ export const de_SearchKnowledgeBaseCommand = async (output, context) => {
950
950
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
951
951
  const doc = take(data, {
952
952
  'metadata': _json,
953
- 'results': _ => de_SearchKnowledgeBaseResults(_, context),
953
+ 'results': _ => de_SearchKnowledgeBaseResultsList(_, context),
954
954
  });
955
955
  Object.assign(contents, doc);
956
956
  return contents;
@@ -1149,8 +1149,9 @@ const se_DescribeDataSourceParameters = (input, context) => {
1149
1149
  'proxy': _ => se_Document(_, context),
1150
1150
  });
1151
1151
  };
1152
- const se_SearchKnowledgeBaseResult = (input, context) => {
1152
+ const se_SearchKnowledgeBaseResultItem = (input, context) => {
1153
1153
  return take(input, {
1154
+ 'chunkId': [],
1154
1155
  'content': [],
1155
1156
  'dataSourceId': [],
1156
1157
  'dataSourceType': [],
@@ -1163,9 +1164,9 @@ const se_SearchKnowledgeBaseResult = (input, context) => {
1163
1164
  'semanticScore': __serializeFloat,
1164
1165
  });
1165
1166
  };
1166
- const se_SearchKnowledgeBaseResults = (input, context) => {
1167
+ const se_SearchKnowledgeBaseResultsList = (input, context) => {
1167
1168
  return input.filter((e) => e != null).map(entry => {
1168
- return se_SearchKnowledgeBaseResult(entry, context);
1169
+ return se_SearchKnowledgeBaseResultItem(entry, context);
1169
1170
  });
1170
1171
  };
1171
1172
  const de_Document = (output, context) => {
@@ -1216,61 +1217,38 @@ const de_DescribeDataSourceResult = (output, context) => {
1216
1217
  'proxy': (_) => de_Document(_, context),
1217
1218
  });
1218
1219
  };
1219
- const de_SearchHistoryRequest = (output, context) => {
1220
- return take(output, {
1221
- 'externalSessionId': __expectString,
1222
- 'knowledgeBaseId': __expectString,
1223
- 'query': __expectString,
1224
- 'searchLimit': __expectInt32,
1225
- 'searchStrategy': __expectString,
1226
- 'searchThreshold': __limitedParseDouble,
1227
- 'user': __expectString,
1228
- });
1229
- };
1230
- const de_SearchHistoryResponse = (output, context) => {
1231
- return take(output, {
1232
- 'results': (_) => de_SearchHistorySearchResults(_, context),
1233
- });
1234
- };
1235
- const de_SearchHistoryResult = (output, context) => {
1220
+ const de_SearchHistoryItem = (output, context) => {
1236
1221
  return take(output, {
1222
+ 'chunks': (_) => de_SearchKnowledgeBaseResultsList(_, context),
1223
+ 'chunksCount': __expectInt32,
1237
1224
  'companyId': __expectString,
1238
1225
  'createdAt': (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1239
1226
  'request': (_) => de_SearchHistoryRequest(_, context),
1240
- 'response': (_) => de_SearchHistoryResponse(_, context),
1241
- 'resultsCount': __expectInt32,
1242
1227
  'sessionId': __expectString,
1243
1228
  'stages': _json,
1244
1229
  'totalDuration': __expectInt32,
1245
1230
  });
1246
1231
  };
1247
- const de_SearchHistoryResultsList = (output, context) => {
1232
+ const de_SearchHistoryList = (output, context) => {
1248
1233
  const retVal = (output || []).filter((e) => e != null).map((entry) => {
1249
- return de_SearchHistoryResult(entry, context);
1234
+ return de_SearchHistoryItem(entry, context);
1250
1235
  });
1251
1236
  return retVal;
1252
1237
  };
1253
- const de_SearchHistorySearchResult = (output, context) => {
1238
+ const de_SearchHistoryRequest = (output, context) => {
1254
1239
  return take(output, {
1255
- 'bm25Score': __limitedParseDouble,
1256
- 'chunkId': __expectString,
1257
- 'dataSourceId': __expectString,
1258
- 'dataSourceType': __expectString,
1259
- 'documentId': __expectString,
1260
- 'documentTitle': __expectString,
1261
- 'documentUrl': __expectString,
1262
- 'knnScore': __limitedParseDouble,
1263
- 'score': __limitedParseDouble,
1264
- });
1265
- };
1266
- const de_SearchHistorySearchResults = (output, context) => {
1267
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1268
- return de_SearchHistorySearchResult(entry, context);
1240
+ 'externalSessionId': __expectString,
1241
+ 'knowledgeBaseId': __expectString,
1242
+ 'query': __expectString,
1243
+ 'searchLimit': __expectInt32,
1244
+ 'searchStrategy': __expectString,
1245
+ 'searchThreshold': __limitedParseDouble,
1246
+ 'user': __expectString,
1269
1247
  });
1270
- return retVal;
1271
1248
  };
1272
- const de_SearchKnowledgeBaseResult = (output, context) => {
1249
+ const de_SearchKnowledgeBaseResultItem = (output, context) => {
1273
1250
  return take(output, {
1251
+ 'chunkId': __expectString,
1274
1252
  'content': __expectString,
1275
1253
  'dataSourceId': __expectString,
1276
1254
  'dataSourceType': __expectString,
@@ -1283,9 +1261,9 @@ const de_SearchKnowledgeBaseResult = (output, context) => {
1283
1261
  'semanticScore': __limitedParseDouble,
1284
1262
  });
1285
1263
  };
1286
- const de_SearchKnowledgeBaseResults = (output, context) => {
1264
+ const de_SearchKnowledgeBaseResultsList = (output, context) => {
1287
1265
  const retVal = (output || []).filter((e) => e != null).map((entry) => {
1288
- return de_SearchKnowledgeBaseResult(entry, context);
1266
+ return de_SearchKnowledgeBaseResultItem(entry, context);
1289
1267
  });
1290
1268
  return retVal;
1291
1269
  };
@@ -37,8 +37,9 @@ declare const GenerateSearchAnswerCommand_base: {
37
37
  * const input = { // GenerateSearchAnswerInput
38
38
  * companyId: "STRING_VALUE",
39
39
  * searchQuery: "STRING_VALUE", // required
40
- * searchResults: [ // SearchKnowledgeBaseResults // required
41
- * { // SearchKnowledgeBaseResult
40
+ * searchResults: [ // SearchKnowledgeBaseResultsList // required
41
+ * { // SearchKnowledgeBaseResultItem
42
+ * chunkId: "STRING_VALUE", // required
42
43
  * documentId: "STRING_VALUE", // required
43
44
  * documentTitle: "STRING_VALUE", // required
44
45
  * documentUrl: "STRING_VALUE", // required
@@ -68,8 +69,9 @@ declare const GenerateSearchAnswerCommand_base: {
68
69
  * // outputTokens: Number("int"), // required
69
70
  * // duration: Number("int"), // required
70
71
  * // },
71
- * // sources: [ // SearchKnowledgeBaseResults // required
72
- * // { // SearchKnowledgeBaseResult
72
+ * // sources: [ // SearchKnowledgeBaseResultsList // required
73
+ * // { // SearchKnowledgeBaseResultItem
74
+ * // chunkId: "STRING_VALUE", // required
73
75
  * // documentId: "STRING_VALUE", // required
74
76
  * // documentTitle: "STRING_VALUE", // required
75
77
  * // documentUrl: "STRING_VALUE", // required
@@ -51,8 +51,8 @@ declare const ListSearchQueriesHistoryCommand_base: {
51
51
  * const command = new ListSearchQueriesHistoryCommand(input);
52
52
  * const response = await client.send(command);
53
53
  * // { // ListSearchQueriesHistoryOutput
54
- * // results: [ // SearchHistoryResultsList // required
55
- * // { // SearchHistoryResult
54
+ * // history: [ // SearchHistoryList // required
55
+ * // { // SearchHistoryItem
56
56
  * // sessionId: "STRING_VALUE", // required
57
57
  * // companyId: "STRING_VALUE", // required
58
58
  * // request: { // SearchHistoryRequest
@@ -90,24 +90,26 @@ declare const ListSearchQueriesHistoryCommand_base: {
90
90
  * // duration: Number("int"), // required
91
91
  * // },
92
92
  * // },
93
- * // response: { // SearchHistoryResponse
94
- * // results: [ // SearchHistorySearchResults // required
95
- * // { // SearchHistorySearchResult
96
- * // chunkId: "STRING_VALUE", // required
97
- * // documentId: "STRING_VALUE", // required
98
- * // documentTitle: "STRING_VALUE", // required
99
- * // documentUrl: "STRING_VALUE", // required
100
- * // dataSourceId: "STRING_VALUE", // required
101
- * // dataSourceType: "files" || "confluence" || "gdrive", // required
102
- * // score: Number("double"), // required
103
- * // bm25Score: Number("double"),
104
- * // knnScore: Number("double"),
105
- * // },
106
- * // ],
107
- * // },
93
+ * // chunks: [ // SearchKnowledgeBaseResultsList // required
94
+ * // { // SearchKnowledgeBaseResultItem
95
+ * // chunkId: "STRING_VALUE", // required
96
+ * // documentId: "STRING_VALUE", // required
97
+ * // documentTitle: "STRING_VALUE", // required
98
+ * // documentUrl: "STRING_VALUE", // required
99
+ * // dataSourceId: "STRING_VALUE", // required
100
+ * // dataSourceType: "files" || "confluence" || "gdrive", // required
101
+ * // content: "STRING_VALUE", // required
102
+ * // score: Number("double"), // required
103
+ * // fullTextScore: Number("double"),
104
+ * // semanticScore: Number("double"),
105
+ * // documentHierarchy: [ // StringList
106
+ * // "STRING_VALUE",
107
+ * // ],
108
+ * // },
109
+ * // ],
108
110
  * // createdAt: new Date("TIMESTAMP"), // required
109
111
  * // totalDuration: Number("int"), // required
110
- * // resultsCount: Number("int"), // required
112
+ * // chunksCount: Number("int"), // required
111
113
  * // },
112
114
  * // ],
113
115
  * // };
@@ -48,8 +48,9 @@ declare const SearchKnowledgeBaseCommand_base: {
48
48
  * const command = new SearchKnowledgeBaseCommand(input);
49
49
  * const response = await client.send(command);
50
50
  * // { // SearchKnowledgeBaseOutput
51
- * // results: [ // SearchKnowledgeBaseResults // required
52
- * // { // SearchKnowledgeBaseResult
51
+ * // results: [ // SearchKnowledgeBaseResultsList // required
52
+ * // { // SearchKnowledgeBaseResultItem
53
+ * // chunkId: "STRING_VALUE", // required
53
54
  * // documentId: "STRING_VALUE", // required
54
55
  * // documentTitle: "STRING_VALUE", // required
55
56
  * // documentUrl: "STRING_VALUE", // required
@@ -944,7 +944,12 @@ export interface DescribeDataSourceOutput {
944
944
  /**
945
945
  * @public
946
946
  */
947
- export interface SearchKnowledgeBaseResult {
947
+ export interface SearchKnowledgeBaseResultItem {
948
+ /**
949
+ * The ID of the chunk. Example: 123e4567-e89b-12d3-a456-426614174000
950
+ * @public
951
+ */
952
+ chunkId: string;
948
953
  /**
949
954
  * Unique identifier of the document
950
955
  * @public
@@ -965,12 +970,12 @@ export interface SearchKnowledgeBaseResult {
965
970
  */
966
971
  score: number;
967
972
  /**
968
- * The score of the result, calculated from the full-text search score.
973
+ * The score of the result, calculated from the full-text bm25 search score.
969
974
  * @public
970
975
  */
971
976
  fullTextScore?: number | undefined;
972
977
  /**
973
- * The score of the result, calculated from the semantic search score.
978
+ * The score of the result, calculated from the semantic vector search score.
974
979
  * @public
975
980
  */
976
981
  semanticScore?: number | undefined;
@@ -998,7 +1003,7 @@ export interface GenerateSearchAnswerInput {
998
1003
  * The search results to be used to generate the answer. The LLM will use the search results to generate an answer based on the found results.
999
1004
  * @public
1000
1005
  */
1001
- searchResults: (SearchKnowledgeBaseResult)[];
1006
+ searchResults: (SearchKnowledgeBaseResultItem)[];
1002
1007
  /**
1003
1008
  * The specific provider and model identifier. Examples: 'openai/gpt-4o' or 'openai/gpt-4o-mini' for OpenAI, 'mistral/mistral-small-2506' for Mistral. Check provider documentation for available models
1004
1009
  * @public
@@ -1026,7 +1031,7 @@ export interface GenerateSearchAnswerInput {
1026
1031
  export interface GenerateSearchAnswerOutput {
1027
1032
  answer: string;
1028
1033
  metadata: AnswerMetadata;
1029
- sources: (SearchKnowledgeBaseResult)[];
1034
+ sources: (SearchKnowledgeBaseResultItem)[];
1030
1035
  }
1031
1036
  /**
1032
1037
  * @public
@@ -1511,38 +1516,6 @@ export interface SearchHistoryRequest {
1511
1516
  searchLimit: number;
1512
1517
  searchThreshold: number;
1513
1518
  }
1514
- /**
1515
- * @public
1516
- */
1517
- export interface SearchHistorySearchResult {
1518
- /**
1519
- * The ID of the chunk. Example: 123e4567-e89b-12d3-a456-426614174000
1520
- * @public
1521
- */
1522
- chunkId: string;
1523
- /**
1524
- * Unique identifier of the document
1525
- * @public
1526
- */
1527
- documentId: string;
1528
- documentTitle: string;
1529
- documentUrl: string;
1530
- /**
1531
- * Unique identifier of the data source
1532
- * @public
1533
- */
1534
- dataSourceId: string;
1535
- dataSourceType: DataSourceType;
1536
- score: number;
1537
- bm25Score?: number | undefined;
1538
- knnScore?: number | undefined;
1539
- }
1540
- /**
1541
- * @public
1542
- */
1543
- export interface SearchHistoryResponse {
1544
- results: (SearchHistorySearchResult)[];
1545
- }
1546
1519
  /**
1547
1520
  * @public
1548
1521
  */
@@ -1575,21 +1548,21 @@ export interface SearchHistoryStages {
1575
1548
  /**
1576
1549
  * @public
1577
1550
  */
1578
- export interface SearchHistoryResult {
1551
+ export interface SearchHistoryItem {
1579
1552
  sessionId: string;
1580
1553
  companyId: string;
1581
1554
  request: SearchHistoryRequest;
1582
1555
  stages: SearchHistoryStages;
1583
- response: SearchHistoryResponse;
1556
+ chunks: (SearchKnowledgeBaseResultItem)[];
1584
1557
  createdAt: Date;
1585
1558
  totalDuration: number;
1586
- resultsCount: number;
1559
+ chunksCount: number;
1587
1560
  }
1588
1561
  /**
1589
1562
  * @public
1590
1563
  */
1591
1564
  export interface ListSearchQueriesHistoryOutput {
1592
- results: (SearchHistoryResult)[];
1565
+ history: (SearchHistoryItem)[];
1593
1566
  }
1594
1567
  /**
1595
1568
  * @public
@@ -1665,7 +1638,7 @@ export interface SearchResultMetadata {
1665
1638
  * @public
1666
1639
  */
1667
1640
  export interface SearchKnowledgeBaseOutput {
1668
- results: (SearchKnowledgeBaseResult)[];
1641
+ results: (SearchKnowledgeBaseResultItem)[];
1669
1642
  metadata: SearchResultMetadata;
1670
1643
  }
1671
1644
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/wim-knowledge-base-client",
3
3
  "description": "@wildix/wim-knowledge-base-client client",
4
- "version": "0.0.52",
4
+ "version": "0.0.54",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",