@wildix/wim-knowledge-base-client 0.0.36 → 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.
@@ -371,9 +371,11 @@ const se_ListKnowledgeBasesCommand = async (input, context) => {
371
371
  exports.se_ListKnowledgeBasesCommand = se_ListKnowledgeBasesCommand;
372
372
  const se_QueryKnowledgeBaseCommand = async (input, context) => {
373
373
  const b = (0, core_2.requestBuilder)(input, context);
374
- const headers = {
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],
378
+ });
377
379
  b.bp("/api/v1/knowledge-bases/{knowledgeBaseId}/query");
378
380
  b.p('knowledgeBaseId', () => input.knowledgeBaseId, '{knowledgeBaseId}', false);
379
381
  const query = (0, smithy_client_1.map)({
@@ -394,9 +396,10 @@ const se_QueryKnowledgeBaseCommand = async (input, context) => {
394
396
  exports.se_QueryKnowledgeBaseCommand = se_QueryKnowledgeBaseCommand;
395
397
  const se_SearchKnowledgeBaseCommand = async (input, context) => {
396
398
  const b = (0, core_2.requestBuilder)(input, context);
397
- const headers = {
399
+ const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
398
400
  'content-type': 'application/json',
399
- };
401
+ [_xsu]: input[_sU],
402
+ });
400
403
  b.bp("/api/v1/knowledge-bases/{knowledgeBaseId}/search");
401
404
  b.p('knowledgeBaseId', () => input.knowledgeBaseId, '{knowledgeBaseId}', false);
402
405
  const query = (0, smithy_client_1.map)({
@@ -1171,9 +1174,13 @@ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBo
1171
1174
  const _c = "company";
1172
1175
  const _cI = "companyId";
1173
1176
  const _dT = "documentType";
1177
+ const _eSI = "externalSessionId";
1174
1178
  const _l = "limit";
1175
1179
  const _o = "offset";
1176
1180
  const _q = "query";
1177
1181
  const _sT = "syncType";
1182
+ const _sU = "searchUser";
1178
1183
  const _wC = "withContent";
1179
1184
  const _wCi = "withChunks";
1185
+ const _xesi = "x-external-session-id";
1186
+ const _xsu = "x-search-user";
@@ -2,7 +2,7 @@ import { KnowledgeBaseServiceException as __BaseException } from "../models/Know
2
2
  import { DataSourceConfig, DataSourceNotFoundException, DocumentNotFoundException, ForbiddenException, KnowledgeBaseNotFoundException, UnauthorizedException, ValidationException, } from "../models/models_0";
3
3
  import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
4
4
  import { requestBuilder as rb } from "@smithy/core";
5
- import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
5
+ import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, _json, collectBody, isSerializableHeaderValue, map, take, withBaseException, } from "@smithy/smithy-client";
6
6
  export const se_CleanDataSourceCommand = async (input, context) => {
7
7
  const b = rb(input, context);
8
8
  const headers = {};
@@ -347,9 +347,11 @@ export const se_ListKnowledgeBasesCommand = async (input, context) => {
347
347
  };
348
348
  export const se_QueryKnowledgeBaseCommand = async (input, context) => {
349
349
  const b = rb(input, context);
350
- const headers = {
350
+ const headers = map({}, isSerializableHeaderValue, {
351
351
  'content-type': 'application/json',
352
- };
352
+ [_xsu]: input[_sU],
353
+ [_xesi]: input[_eSI],
354
+ });
353
355
  b.bp("/api/v1/knowledge-bases/{knowledgeBaseId}/query");
354
356
  b.p('knowledgeBaseId', () => input.knowledgeBaseId, '{knowledgeBaseId}', false);
355
357
  const query = map({
@@ -369,9 +371,10 @@ export const se_QueryKnowledgeBaseCommand = async (input, context) => {
369
371
  };
370
372
  export const se_SearchKnowledgeBaseCommand = async (input, context) => {
371
373
  const b = rb(input, context);
372
- const headers = {
374
+ const headers = map({}, isSerializableHeaderValue, {
373
375
  'content-type': 'application/json',
374
- };
376
+ [_xsu]: input[_sU],
377
+ });
375
378
  b.bp("/api/v1/knowledge-bases/{knowledgeBaseId}/search");
376
379
  b.p('knowledgeBaseId', () => input.knowledgeBaseId, '{knowledgeBaseId}', false);
377
380
  const query = map({
@@ -1113,9 +1116,13 @@ const collectBodyString = (streamBody, context) => collectBody(streamBody, conte
1113
1116
  const _c = "company";
1114
1117
  const _cI = "companyId";
1115
1118
  const _dT = "documentType";
1119
+ const _eSI = "externalSessionId";
1116
1120
  const _l = "limit";
1117
1121
  const _o = "offset";
1118
1122
  const _q = "query";
1119
1123
  const _sT = "syncType";
1124
+ const _sU = "searchUser";
1120
1125
  const _wC = "withContent";
1121
1126
  const _wCi = "withChunks";
1127
+ const _xesi = "x-external-session-id";
1128
+ const _xsu = "x-search-user";
@@ -52,6 +52,8 @@ declare const QueryKnowledgeBaseCommand_base: {
52
52
  * maxOutputTokens: Number("int"),
53
53
  * systemPrompt: "STRING_VALUE",
54
54
  * },
55
+ * searchUser: "STRING_VALUE",
56
+ * externalSessionId: "STRING_VALUE",
55
57
  * };
56
58
  * const command = new QueryKnowledgeBaseCommand(input);
57
59
  * const response = await client.send(command);
@@ -46,6 +46,7 @@ declare const SearchKnowledgeBaseCommand_base: {
46
46
  * extendMetadata: true || false,
47
47
  * },
48
48
  * withMetadata: true || false,
49
+ * searchUser: "STRING_VALUE",
49
50
  * };
50
51
  * const command = new SearchKnowledgeBaseCommand(input);
51
52
  * const response = await client.send(command);