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

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.
@@ -382,11 +382,11 @@ const se_QueryKnowledgeBaseCommand = async (input, context) => {
382
382
  b.p('knowledgeBaseId', () => input.knowledgeBaseId, '{knowledgeBaseId}', false);
383
383
  const query = (0, smithy_client_1.map)({
384
384
  [_c]: [, input[_cI]],
385
- [_q]: [, (0, smithy_client_1.expectNonNull)(input[_q], `query`)],
386
385
  });
387
386
  let body;
388
387
  body = JSON.stringify((0, smithy_client_1.take)(input, {
389
388
  'llmConfig': _ => se_LlmConfig(_, context),
389
+ 'query': [],
390
390
  'searchConfig': _ => se_SearchConfig(_, context),
391
391
  }));
392
392
  b.m("POST")
@@ -431,10 +431,10 @@ const se_SearchKnowledgeBaseCommand = async (input, context) => {
431
431
  b.p('knowledgeBaseId', () => input.knowledgeBaseId, '{knowledgeBaseId}', false);
432
432
  const query = (0, smithy_client_1.map)({
433
433
  [_c]: [, input[_cI]],
434
- [_q]: [, (0, smithy_client_1.expectNonNull)(input[_q], `query`)],
435
434
  });
436
435
  let body;
437
436
  body = JSON.stringify((0, smithy_client_1.take)(input, {
437
+ 'query': [],
438
438
  'searchConfig': _ => se_SearchConfig(_, context),
439
439
  'withMetadata': [],
440
440
  }));
@@ -1227,7 +1227,6 @@ const _dT = "documentType";
1227
1227
  const _eSI = "externalSessionId";
1228
1228
  const _l = "limit";
1229
1229
  const _o = "offset";
1230
- const _q = "query";
1231
1230
  const _s = "sort";
1232
1231
  const _sT = "syncType";
1233
1232
  const _sU = "searchUser";
@@ -358,11 +358,11 @@ export const se_QueryKnowledgeBaseCommand = async (input, context) => {
358
358
  b.p('knowledgeBaseId', () => input.knowledgeBaseId, '{knowledgeBaseId}', false);
359
359
  const query = map({
360
360
  [_c]: [, input[_cI]],
361
- [_q]: [, __expectNonNull(input[_q], `query`)],
362
361
  });
363
362
  let body;
364
363
  body = JSON.stringify(take(input, {
365
364
  'llmConfig': _ => se_LlmConfig(_, context),
365
+ 'query': [],
366
366
  'searchConfig': _ => se_SearchConfig(_, context),
367
367
  }));
368
368
  b.m("POST")
@@ -405,10 +405,10 @@ export const se_SearchKnowledgeBaseCommand = async (input, context) => {
405
405
  b.p('knowledgeBaseId', () => input.knowledgeBaseId, '{knowledgeBaseId}', false);
406
406
  const query = map({
407
407
  [_c]: [, input[_cI]],
408
- [_q]: [, __expectNonNull(input[_q], `query`)],
409
408
  });
410
409
  let body;
411
410
  body = JSON.stringify(take(input, {
411
+ 'query': [],
412
412
  'searchConfig': _ => se_SearchConfig(_, context),
413
413
  'withMetadata': [],
414
414
  }));
@@ -1167,7 +1167,6 @@ const _dT = "documentType";
1167
1167
  const _eSI = "externalSessionId";
1168
1168
  const _l = "limit";
1169
1169
  const _o = "offset";
1170
- const _q = "query";
1171
1170
  const _s = "sort";
1172
1171
  const _sT = "syncType";
1173
1172
  const _sU = "searchUser";
@@ -61,8 +61,8 @@ 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"), // required
65
- * // bm25Score: Number("double"), // required
64
+ * // knnScore: Number("double"),
65
+ * // bm25Score: Number("double"),
66
66
  * // },
67
67
  * // ],
68
68
  * // metadata: "DOCUMENT_VALUE",
@@ -1639,12 +1639,12 @@ export interface SearchKnowledgeBaseResult {
1639
1639
  * The score of semantic search.
1640
1640
  * @public
1641
1641
  */
1642
- knnScore: number;
1642
+ knnScore?: number | undefined;
1643
1643
  /**
1644
1644
  * The score of the result from the full-text search.
1645
1645
  * @public
1646
1646
  */
1647
- bm25Score: number;
1647
+ bm25Score?: number | undefined;
1648
1648
  }
1649
1649
  /**
1650
1650
  * @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.44",
4
+ "version": "0.0.45",
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",