@wildix/wim-knowledge-base-client 0.0.40 → 0.0.41

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SearchStrategy = exports.SyncLogLevel = exports.DownloadDocumentType = exports.DocumentStatus = exports.DataSourceType = exports.SyncDataSourceStatus = exports.SyncDataSourceMode = exports.ScheduleConfiguration = exports.DataSourceConfig = exports.ProxyMethod = exports.KnowledgeBaseNotFoundException = exports.DocumentNotFoundException = exports.DataSourceNotFoundException = exports.UnauthorizedException = exports.ForbiddenException = exports.ValidationException = void 0;
3
+ exports.SearchHistoryMode = exports.SearchStrategy = exports.SyncLogLevel = exports.DownloadDocumentType = exports.DocumentStatus = exports.DataSourceType = exports.SyncDataSourceStatus = exports.SyncDataSourceMode = exports.ScheduleConfiguration = exports.DataSourceConfig = exports.ProxyMethod = exports.KnowledgeBaseNotFoundException = exports.DocumentNotFoundException = exports.DataSourceNotFoundException = exports.UnauthorizedException = exports.ForbiddenException = exports.ValidationException = void 0;
4
4
  const KnowledgeBaseServiceException_1 = require("./KnowledgeBaseServiceException");
5
5
  class ValidationException extends KnowledgeBaseServiceException_1.KnowledgeBaseServiceException {
6
6
  name = "ValidationException";
@@ -144,3 +144,7 @@ exports.SearchStrategy = {
144
144
  HYBRID: "hybrid",
145
145
  VECTOR: "vector",
146
146
  };
147
+ exports.SearchHistoryMode = {
148
+ AI_ANSWER: "ai_answer",
149
+ SEARCH: "search",
150
+ };
@@ -410,6 +410,7 @@ const se_SearchHistoryCommand = async (input, context) => {
410
410
  let body;
411
411
  body = JSON.stringify((0, smithy_client_1.take)(input, {
412
412
  'filter': _ => (0, smithy_client_1._json)(_),
413
+ 'search': [],
413
414
  }));
414
415
  b.m("POST")
415
416
  .h(headers)
@@ -135,3 +135,7 @@ export const SearchStrategy = {
135
135
  HYBRID: "hybrid",
136
136
  VECTOR: "vector",
137
137
  };
138
+ export const SearchHistoryMode = {
139
+ AI_ANSWER: "ai_answer",
140
+ SEARCH: "search",
141
+ };
@@ -385,6 +385,7 @@ export const se_SearchHistoryCommand = async (input, context) => {
385
385
  let body;
386
386
  body = JSON.stringify(take(input, {
387
387
  'filter': _ => _json(_),
388
+ 'search': [],
388
389
  }));
389
390
  b.m("POST")
390
391
  .h(headers)
@@ -45,7 +45,9 @@ declare const SearchHistoryCommand_base: {
45
45
  * sessionId: "STRING_VALUE",
46
46
  * externalSessionId: "STRING_VALUE",
47
47
  * searchUser: "STRING_VALUE",
48
+ * mode: "search" || "ai_answer",
48
49
  * },
50
+ * search: "STRING_VALUE", // required
49
51
  * };
50
52
  * const command = new SearchHistoryCommand(input);
51
53
  * const response = await client.send(command);
@@ -1495,35 +1495,52 @@ export interface QueryKnowledgeBaseOutput {
1495
1495
  metadata: __DocumentType;
1496
1496
  sources: __DocumentType;
1497
1497
  }
1498
+ /**
1499
+ * @public
1500
+ * @enum
1501
+ */
1502
+ export declare const SearchHistoryMode: {
1503
+ readonly AI_ANSWER: "ai_answer";
1504
+ readonly SEARCH: "search";
1505
+ };
1506
+ /**
1507
+ * @public
1508
+ */
1509
+ export type SearchHistoryMode = typeof SearchHistoryMode[keyof typeof SearchHistoryMode];
1498
1510
  /**
1499
1511
  * @public
1500
1512
  */
1501
1513
  export interface SearchHistoryFilter {
1502
1514
  /**
1503
- * Unique identifier of the knowledge base
1515
+ * Filter history by the knowledge base ID.
1504
1516
  * @public
1505
1517
  */
1506
1518
  knowledgeBaseId?: string | undefined;
1507
1519
  /**
1508
- * Unique identifier of the data source
1520
+ * Filter history by the data source ID.
1509
1521
  * @public
1510
1522
  */
1511
1523
  dataSourceId?: string | undefined;
1512
1524
  /**
1513
- * The internal session ID. Used for tracking and analytics purposes.
1525
+ * Filter history by the internal session ID.
1514
1526
  * @public
1515
1527
  */
1516
1528
  sessionId?: string | undefined;
1517
1529
  /**
1518
- * The external session ID from the client.
1530
+ * Filter history by the external session ID from the client.
1519
1531
  * @public
1520
1532
  */
1521
1533
  externalSessionId?: string | undefined;
1522
1534
  /**
1523
- * The user who performs the search in the knowledge base. Example: user@example.com
1535
+ * Filter history by the user who performs the search in the knowledge base. Example: user@example.com
1524
1536
  * @public
1525
1537
  */
1526
1538
  searchUser?: string | undefined;
1539
+ /**
1540
+ * Filter history by the mode of the search. Can by 'search' or 'ai_answer'.
1541
+ * @public
1542
+ */
1543
+ mode?: SearchHistoryMode | undefined;
1527
1544
  }
1528
1545
  /**
1529
1546
  * @public
@@ -1546,6 +1563,11 @@ export interface SearchHistoryInput {
1546
1563
  * @public
1547
1564
  */
1548
1565
  filter: SearchHistoryFilter;
1566
+ /**
1567
+ * The search query string for filtering the history results.
1568
+ * @public
1569
+ */
1570
+ search: string;
1549
1571
  }
1550
1572
  /**
1551
1573
  * @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.40",
4
+ "version": "0.0.41",
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",