@wildix/wim-knowledge-base-client 0.0.45 → 0.0.47

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.
@@ -298,6 +298,8 @@ const se_GetSyncLogsCommand = async (input, context) => {
298
298
  [_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
299
299
  [_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
300
300
  [_s]: [, input[_s]],
301
+ [_lL]: [, input[_lL]],
302
+ [_se]: [, input[_se]],
301
303
  });
302
304
  let body;
303
305
  b.m("GET")
@@ -1091,7 +1093,6 @@ const se_LlmConfig = (input, context) => {
1091
1093
  return (0, smithy_client_1.take)(input, {
1092
1094
  'maxOutputTokens': [],
1093
1095
  'model': [],
1094
- 'provider': [],
1095
1096
  'systemPrompt': [],
1096
1097
  'temperature': smithy_client_1.serializeFloat,
1097
1098
  });
@@ -1197,14 +1198,12 @@ const de_SearchHistoryResults = (output, context) => {
1197
1198
  };
1198
1199
  const de_SearchKnowledgeBaseResult = (output, context) => {
1199
1200
  return (0, smithy_client_1.take)(output, {
1200
- 'bm25Score': smithy_client_1.limitedParseDouble,
1201
1201
  'content': smithy_client_1.expectString,
1202
1202
  'dataSourceId': smithy_client_1.expectString,
1203
1203
  'dataSourceType': smithy_client_1.expectString,
1204
1204
  'documentId': smithy_client_1.expectString,
1205
1205
  'documentTitle': smithy_client_1.expectString,
1206
1206
  'documentUrl': smithy_client_1.expectString,
1207
- 'knnScore': smithy_client_1.limitedParseDouble,
1208
1207
  'score': smithy_client_1.limitedParseDouble,
1209
1208
  });
1210
1209
  };
@@ -1226,10 +1225,12 @@ const _cI = "companyId";
1226
1225
  const _dT = "documentType";
1227
1226
  const _eSI = "externalSessionId";
1228
1227
  const _l = "limit";
1228
+ const _lL = "logLevel";
1229
1229
  const _o = "offset";
1230
1230
  const _s = "sort";
1231
1231
  const _sT = "syncType";
1232
1232
  const _sU = "searchUser";
1233
+ const _se = "search";
1233
1234
  const _wC = "withContent";
1234
1235
  const _wCi = "withChunks";
1235
1236
  const _xesi = "x-external-session-id";
@@ -279,6 +279,8 @@ export const se_GetSyncLogsCommand = async (input, context) => {
279
279
  [_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
280
280
  [_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
281
281
  [_s]: [, input[_s]],
282
+ [_lL]: [, input[_lL]],
283
+ [_se]: [, input[_se]],
282
284
  });
283
285
  let body;
284
286
  b.m("GET")
@@ -1031,7 +1033,6 @@ const se_LlmConfig = (input, context) => {
1031
1033
  return take(input, {
1032
1034
  'maxOutputTokens': [],
1033
1035
  'model': [],
1034
- 'provider': [],
1035
1036
  'systemPrompt': [],
1036
1037
  'temperature': __serializeFloat,
1037
1038
  });
@@ -1137,14 +1138,12 @@ const de_SearchHistoryResults = (output, context) => {
1137
1138
  };
1138
1139
  const de_SearchKnowledgeBaseResult = (output, context) => {
1139
1140
  return take(output, {
1140
- 'bm25Score': __limitedParseDouble,
1141
1141
  'content': __expectString,
1142
1142
  'dataSourceId': __expectString,
1143
1143
  'dataSourceType': __expectString,
1144
1144
  'documentId': __expectString,
1145
1145
  'documentTitle': __expectString,
1146
1146
  'documentUrl': __expectString,
1147
- 'knnScore': __limitedParseDouble,
1148
1147
  'score': __limitedParseDouble,
1149
1148
  });
1150
1149
  };
@@ -1166,10 +1165,12 @@ const _cI = "companyId";
1166
1165
  const _dT = "documentType";
1167
1166
  const _eSI = "externalSessionId";
1168
1167
  const _l = "limit";
1168
+ const _lL = "logLevel";
1169
1169
  const _o = "offset";
1170
1170
  const _s = "sort";
1171
1171
  const _sT = "syncType";
1172
1172
  const _sU = "searchUser";
1173
+ const _se = "search";
1173
1174
  const _wC = "withContent";
1174
1175
  const _wCi = "withChunks";
1175
1176
  const _xesi = "x-external-session-id";
@@ -40,6 +40,8 @@ declare const GetSyncLogsCommand_base: {
40
40
  * offset: Number("int"),
41
41
  * sort: "STRING_VALUE",
42
42
  * dataSourceId: "STRING_VALUE", // required
43
+ * logLevel: "debug" || "info" || "warn" || "error",
44
+ * search: "STRING_VALUE",
43
45
  * };
44
46
  * const command = new GetSyncLogsCommand(input);
45
47
  * const response = await client.send(command);
@@ -46,7 +46,6 @@ declare const QueryKnowledgeBaseCommand_base: {
46
46
  * extendMetadata: true || false,
47
47
  * },
48
48
  * llmConfig: { // LlmConfig
49
- * provider: "STRING_VALUE",
50
49
  * model: "STRING_VALUE",
51
50
  * temperature: Number("double"),
52
51
  * maxOutputTokens: Number("int"),
@@ -61,8 +61,6 @@ declare const SearchKnowledgeBaseCommand_base: {
61
61
  * // dataSourceType: "files" || "confluence" || "gdrive" || "proxy", // required
62
62
  * // content: "STRING_VALUE", // required
63
63
  * // score: Number("double"), // required
64
- * // knnScore: Number("double"),
65
- * // bm25Score: Number("double"),
66
64
  * // },
67
65
  * // ],
68
66
  * // metadata: "DOCUMENT_VALUE",
@@ -1218,6 +1218,20 @@ export interface GetKnowledgeBaseInput {
1218
1218
  export interface GetKnowledgeBaseOutput {
1219
1219
  knowledgeBase: KnowledgeBaseItem;
1220
1220
  }
1221
+ /**
1222
+ * @public
1223
+ * @enum
1224
+ */
1225
+ export declare const SyncLogLevel: {
1226
+ readonly DEBUG: "debug";
1227
+ readonly ERROR: "error";
1228
+ readonly INFO: "info";
1229
+ readonly WARN: "warn";
1230
+ };
1231
+ /**
1232
+ * @public
1233
+ */
1234
+ export type SyncLogLevel = typeof SyncLogLevel[keyof typeof SyncLogLevel];
1221
1235
  /**
1222
1236
  * @public
1223
1237
  */
@@ -1239,21 +1253,17 @@ export interface GetSyncLogsInput {
1239
1253
  * @public
1240
1254
  */
1241
1255
  dataSourceId: string;
1256
+ /**
1257
+ * The log level to filter the sync logs by. Possible values: 'debug', 'info', 'warn', 'error'.
1258
+ * @public
1259
+ */
1260
+ logLevel?: SyncLogLevel | undefined;
1261
+ /**
1262
+ * The search query string for filtering the history results.
1263
+ * @public
1264
+ */
1265
+ search?: string | undefined;
1242
1266
  }
1243
- /**
1244
- * @public
1245
- * @enum
1246
- */
1247
- export declare const SyncLogLevel: {
1248
- readonly DEBUG: "debug";
1249
- readonly ERROR: "error";
1250
- readonly INFO: "info";
1251
- readonly WARN: "warn";
1252
- };
1253
- /**
1254
- * @public
1255
- */
1256
- export type SyncLogLevel = typeof SyncLogLevel[keyof typeof SyncLogLevel];
1257
1267
  /**
1258
1268
  * @public
1259
1269
  */
@@ -1376,12 +1386,7 @@ export interface ListKnowledgeBasesOutput {
1376
1386
  */
1377
1387
  export interface LlmConfig {
1378
1388
  /**
1379
- * The LLM provider to use for generating answers. Common values: 'openai', 'anthropic', 'google', 'aws', 'azure', etc. Must match a configured provider in your environment
1380
- * @public
1381
- */
1382
- provider?: string | undefined;
1383
- /**
1384
- * The specific model identifier from the selected provider. Examples: 'gpt-4o' or 'gpt-4o-mini' for OpenAI, 'claude-3-opus' for Anthropic. Check provider documentation for available models
1389
+ * 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
1385
1390
  * @public
1386
1391
  */
1387
1392
  model?: string | undefined;
@@ -1635,16 +1640,6 @@ export interface SearchKnowledgeBaseResult {
1635
1640
  * @public
1636
1641
  */
1637
1642
  score: number;
1638
- /**
1639
- * The score of semantic search.
1640
- * @public
1641
- */
1642
- knnScore?: number | undefined;
1643
- /**
1644
- * The score of the result from the full-text search.
1645
- * @public
1646
- */
1647
- bm25Score?: number | undefined;
1648
1643
  }
1649
1644
  /**
1650
1645
  * @public
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.45",
4
+ "version": "0.0.47",
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",