@wildix/wim-knowledge-base-client 0.0.37 → 0.0.38

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.
@@ -374,6 +374,7 @@ const se_QueryKnowledgeBaseCommand = async (input, context) => {
374
374
  const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
375
375
  'content-type': 'application/json',
376
376
  [_xsu]: input[_sU],
377
+ [_xesi]: input[_eSI],
377
378
  });
378
379
  b.bp("/api/v1/knowledge-bases/{knowledgeBaseId}/query");
379
380
  b.p('knowledgeBaseId', () => input.knowledgeBaseId, '{knowledgeBaseId}', false);
@@ -1173,6 +1174,7 @@ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBo
1173
1174
  const _c = "company";
1174
1175
  const _cI = "companyId";
1175
1176
  const _dT = "documentType";
1177
+ const _eSI = "externalSessionId";
1176
1178
  const _l = "limit";
1177
1179
  const _o = "offset";
1178
1180
  const _q = "query";
@@ -1180,4 +1182,5 @@ const _sT = "syncType";
1180
1182
  const _sU = "searchUser";
1181
1183
  const _wC = "withContent";
1182
1184
  const _wCi = "withChunks";
1185
+ const _xesi = "x-external-session-id";
1183
1186
  const _xsu = "x-search-user";
@@ -350,6 +350,7 @@ export const se_QueryKnowledgeBaseCommand = async (input, context) => {
350
350
  const headers = map({}, isSerializableHeaderValue, {
351
351
  'content-type': 'application/json',
352
352
  [_xsu]: input[_sU],
353
+ [_xesi]: input[_eSI],
353
354
  });
354
355
  b.bp("/api/v1/knowledge-bases/{knowledgeBaseId}/query");
355
356
  b.p('knowledgeBaseId', () => input.knowledgeBaseId, '{knowledgeBaseId}', false);
@@ -1115,6 +1116,7 @@ const collectBodyString = (streamBody, context) => collectBody(streamBody, conte
1115
1116
  const _c = "company";
1116
1117
  const _cI = "companyId";
1117
1118
  const _dT = "documentType";
1119
+ const _eSI = "externalSessionId";
1118
1120
  const _l = "limit";
1119
1121
  const _o = "offset";
1120
1122
  const _q = "query";
@@ -1122,4 +1124,5 @@ const _sT = "syncType";
1122
1124
  const _sU = "searchUser";
1123
1125
  const _wC = "withContent";
1124
1126
  const _wCi = "withChunks";
1127
+ const _xesi = "x-external-session-id";
1125
1128
  const _xsu = "x-search-user";
@@ -53,6 +53,7 @@ declare const QueryKnowledgeBaseCommand_base: {
53
53
  * systemPrompt: "STRING_VALUE",
54
54
  * },
55
55
  * searchUser: "STRING_VALUE",
56
+ * externalSessionId: "STRING_VALUE",
56
57
  * };
57
58
  * const command = new QueryKnowledgeBaseCommand(input);
58
59
  * const response = await client.send(command);
@@ -1476,6 +1476,11 @@ export interface QueryKnowledgeBaseInput {
1476
1476
  * @public
1477
1477
  */
1478
1478
  searchUser?: string | undefined;
1479
+ /**
1480
+ * The external session ID. Used for tracking and analytics purposes.
1481
+ * @public
1482
+ */
1483
+ externalSessionId?: string | undefined;
1479
1484
  }
1480
1485
  /**
1481
1486
  * @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.37",
4
+ "version": "0.0.38",
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",