@wildix/wim-knowledge-base-client 0.0.66 → 0.1.1

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.
@@ -521,12 +521,12 @@ const se_SearchKnowledgeBaseCommand = async (input, context) => {
521
521
  });
522
522
  let body;
523
523
  body = JSON.stringify((0, smithy_client_1.take)(input, {
524
- 'externalSessionId': [],
525
524
  'query': [],
526
525
  'searchLimit': [],
527
526
  'searchStrategy': [],
528
527
  'searchThreshold': [],
529
- 'searchUser': [],
528
+ 'sessionUri': [],
529
+ 'sessionUser': [],
530
530
  'useQueryOptimization': [],
531
531
  }));
532
532
  b.m("POST")
@@ -1343,13 +1343,13 @@ const de_SearchHistoryList = (output, context) => {
1343
1343
  };
1344
1344
  const de_SearchHistoryRequest = (output, context) => {
1345
1345
  return (0, smithy_client_1.take)(output, {
1346
- 'externalSessionId': smithy_client_1.expectString,
1347
1346
  'knowledgeBaseId': smithy_client_1.expectString,
1348
1347
  'query': smithy_client_1.expectString,
1349
1348
  'searchLimit': smithy_client_1.expectInt32,
1350
1349
  'searchStrategy': smithy_client_1.expectString,
1351
1350
  'searchThreshold': smithy_client_1.limitedParseDouble,
1352
- 'user': smithy_client_1.expectString,
1351
+ 'sessionUri': smithy_client_1.expectString,
1352
+ 'sessionUser': smithy_client_1.expectString,
1353
1353
  });
1354
1354
  };
1355
1355
  const de_SearchHistoryResultItem = (output, context) => {
@@ -490,12 +490,12 @@ export const se_SearchKnowledgeBaseCommand = async (input, context) => {
490
490
  });
491
491
  let body;
492
492
  body = JSON.stringify(take(input, {
493
- 'externalSessionId': [],
494
493
  'query': [],
495
494
  'searchLimit': [],
496
495
  'searchStrategy': [],
497
496
  'searchThreshold': [],
498
- 'searchUser': [],
497
+ 'sessionUri': [],
498
+ 'sessionUser': [],
499
499
  'useQueryOptimization': [],
500
500
  }));
501
501
  b.m("POST")
@@ -1273,13 +1273,13 @@ const de_SearchHistoryList = (output, context) => {
1273
1273
  };
1274
1274
  const de_SearchHistoryRequest = (output, context) => {
1275
1275
  return take(output, {
1276
- 'externalSessionId': __expectString,
1277
1276
  'knowledgeBaseId': __expectString,
1278
1277
  'query': __expectString,
1279
1278
  'searchLimit': __expectInt32,
1280
1279
  'searchStrategy': __expectString,
1281
1280
  'searchThreshold': __limitedParseDouble,
1282
- 'user': __expectString,
1281
+ 'sessionUri': __expectString,
1282
+ 'sessionUser': __expectString,
1283
1283
  });
1284
1284
  };
1285
1285
  const de_SearchHistoryResultItem = (output, context) => {
@@ -43,8 +43,8 @@ declare const ListSearchQueriesHistoryCommand_base: {
43
43
  * knowledgeBaseId: "STRING_VALUE",
44
44
  * dataSourceId: "STRING_VALUE",
45
45
  * sessionId: "STRING_VALUE",
46
- * externalSessionId: "STRING_VALUE",
47
- * searchUser: "STRING_VALUE",
46
+ * sessionUri: "STRING_VALUE",
47
+ * sessionUser: "STRING_VALUE",
48
48
  * withEmptyResults: true || false,
49
49
  * },
50
50
  * search: "STRING_VALUE",
@@ -59,8 +59,8 @@ declare const ListSearchQueriesHistoryCommand_base: {
59
59
  * // companyId: "STRING_VALUE", // required
60
60
  * // request: { // SearchHistoryRequest
61
61
  * // query: "STRING_VALUE", // required
62
- * // user: "STRING_VALUE", // required
63
- * // externalSessionId: "STRING_VALUE", // required
62
+ * // sessionUser: "STRING_VALUE", // required
63
+ * // sessionUri: "STRING_VALUE", // required
64
64
  * // knowledgeBaseId: "STRING_VALUE", // required
65
65
  * // searchStrategy: "bm25" || "vector" || "hybrid", // required
66
66
  * // searchLimit: Number("int"), // required
@@ -42,8 +42,8 @@ declare const SearchKnowledgeBaseCommand_base: {
42
42
  * searchLimit: Number("int"),
43
43
  * searchThreshold: "low" || "medium" || "high",
44
44
  * useQueryOptimization: true || false,
45
- * searchUser: "STRING_VALUE",
46
- * externalSessionId: "STRING_VALUE",
45
+ * sessionUser: "STRING_VALUE",
46
+ * sessionUri: "STRING_VALUE",
47
47
  * };
48
48
  * const command = new SearchKnowledgeBaseCommand(input);
49
49
  * const response = await client.send(command);
@@ -1573,15 +1573,15 @@ export interface SearchHistoryFilter {
1573
1573
  */
1574
1574
  sessionId?: string | undefined;
1575
1575
  /**
1576
- * Filter history by the external session ID from the client.
1576
+ * Filter history by the session URI. Used for tracking and analytics purposes. Example: chatbots://\{agentId\}/id-of-chat-session/id-of-message
1577
1577
  * @public
1578
1578
  */
1579
- externalSessionId?: string | undefined;
1579
+ sessionUri?: string | undefined;
1580
1580
  /**
1581
1581
  * Filter history by the user who performs the search in the knowledge base. Example: user@example.com
1582
1582
  * @public
1583
1583
  */
1584
- searchUser?: string | undefined;
1584
+ sessionUser?: string | undefined;
1585
1585
  /**
1586
1586
  * Whether to include the history results with empty results.
1587
1587
  * @public
@@ -1638,8 +1638,8 @@ export type SearchStrategy = typeof SearchStrategy[keyof typeof SearchStrategy];
1638
1638
  */
1639
1639
  export interface SearchHistoryRequest {
1640
1640
  query: string;
1641
- user: string;
1642
- externalSessionId: string;
1641
+ sessionUser: string;
1642
+ sessionUri: string;
1643
1643
  /**
1644
1644
  * Unique identifier of the knowledge base
1645
1645
  * @public
@@ -1822,15 +1822,15 @@ export interface SearchKnowledgeBaseInput {
1822
1822
  */
1823
1823
  useQueryOptimization?: boolean | undefined;
1824
1824
  /**
1825
- * The user who performs the search in the knowledge base. Example: user@example.com
1825
+ * The user who performs the search in the knowledge base. Example: user@example.com or Jon Doe
1826
1826
  * @public
1827
1827
  */
1828
- searchUser?: string | undefined;
1828
+ sessionUser?: string | undefined;
1829
1829
  /**
1830
- * The external session ID. Used for tracking and analytics purposes. Example: 123e4567-e89b-12d3-a456-426614174000
1830
+ * The session URI. Used for tracking and analytics purposes. Example: chatbots://\{agentId\}/id-of-chat-session/id-of-message
1831
1831
  * @public
1832
1832
  */
1833
- externalSessionId?: string | undefined;
1833
+ sessionUri?: string | undefined;
1834
1834
  }
1835
1835
  /**
1836
1836
  * @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.66",
4
+ "version": "0.1.1",
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",