@wildix/wim-knowledge-base-client 0.0.48 → 0.0.50
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.
- package/dist-cjs/KnowledgeBase.js +16 -8
- package/dist-cjs/commands/{QueryKnowledgeBaseCommand.js → GenerateSearchAnswerCommand.js} +7 -7
- package/dist-cjs/commands/{SearchHistoryCommand.js → GetDataSourceSyncStatusCommand.js} +7 -7
- package/dist-cjs/commands/{GetSyncLogsCommand.js → GetDocumentChunksCommand.js} +7 -7
- package/dist-cjs/commands/{GetSyncStatusCommand.js → GetDocumentMarkdownCommand.js} +7 -7
- package/dist-cjs/commands/GetDocumentWithContentAndChunksCommand.js +21 -0
- package/dist-cjs/commands/ListDataSourceStatisticsCommand.js +21 -0
- package/dist-cjs/commands/ListDataSourceSynchronizationLogsCommand.js +21 -0
- package/dist-cjs/commands/ListSearchQueriesHistoryCommand.js +21 -0
- package/dist-cjs/commands/index.js +8 -4
- package/dist-cjs/models/models_0.js +15 -22
- package/dist-cjs/protocols/Aws_restJson1.js +229 -140
- package/dist-es/KnowledgeBase.js +16 -8
- package/dist-es/commands/GenerateSearchAnswerCommand.js +17 -0
- package/dist-es/commands/GetDataSourceSyncStatusCommand.js +17 -0
- package/dist-es/commands/GetDocumentChunksCommand.js +17 -0
- package/dist-es/commands/GetDocumentMarkdownCommand.js +17 -0
- package/dist-es/commands/GetDocumentWithContentAndChunksCommand.js +17 -0
- package/dist-es/commands/ListDataSourceStatisticsCommand.js +17 -0
- package/dist-es/commands/ListDataSourceSynchronizationLogsCommand.js +17 -0
- package/dist-es/commands/ListSearchQueriesHistoryCommand.js +17 -0
- package/dist-es/commands/index.js +8 -4
- package/dist-es/models/models_0.js +14 -21
- package/dist-es/protocols/Aws_restJson1.js +204 -123
- package/dist-types/KnowledgeBase.d.ts +54 -26
- package/dist-types/KnowledgeBaseClient.d.ts +10 -6
- package/dist-types/commands/ConfigureDataSourceCommand.d.ts +1 -36
- package/dist-types/commands/CreateDataSourceCommand.d.ts +2 -22
- package/dist-types/commands/GenerateSearchAnswerCommand.d.ts +105 -0
- package/dist-types/commands/GetDataSourceCommand.d.ts +1 -21
- package/dist-types/commands/GetDataSourceSyncStatusCommand.d.ts +88 -0
- package/dist-types/commands/GetDocumentChunksCommand.d.ts +94 -0
- package/dist-types/commands/GetDocumentCommand.d.ts +0 -2
- package/dist-types/commands/GetDocumentMarkdownCommand.d.ts +86 -0
- package/dist-types/commands/GetDocumentWithContentAndChunksCommand.d.ts +113 -0
- package/dist-types/commands/ListDataSourceStatisticsCommand.d.ts +86 -0
- package/dist-types/commands/ListDataSourceSynchronizationLogsCommand.d.ts +96 -0
- package/dist-types/commands/ListDataSourcesCommand.d.ts +1 -21
- package/dist-types/commands/ListSearchQueriesHistoryCommand.d.ts +97 -0
- package/dist-types/commands/SearchKnowledgeBaseCommand.d.ts +8 -9
- package/dist-types/commands/StartSyncDataSourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +1 -21
- package/dist-types/commands/index.d.ts +8 -4
- package/dist-types/models/models_0.d.ts +269 -334
- package/dist-types/protocols/Aws_restJson1.d.ts +64 -28
- package/package.json +1 -1
- package/dist-es/commands/GetSyncLogsCommand.js +0 -17
- package/dist-es/commands/GetSyncStatusCommand.js +0 -17
- package/dist-es/commands/QueryKnowledgeBaseCommand.js +0 -17
- package/dist-es/commands/SearchHistoryCommand.js +0 -17
- package/dist-types/commands/GetSyncLogsCommand.d.ts +0 -96
- package/dist-types/commands/GetSyncStatusCommand.d.ts +0 -94
- package/dist-types/commands/QueryKnowledgeBaseCommand.d.ts +0 -103
- package/dist-types/commands/SearchHistoryCommand.d.ts +0 -98
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.de_UpdateKnowledgeBaseCommand = exports.de_UpdateDocumentCommand = exports.de_UpdateDataSourceCommand = exports.de_StopSyncDataSourceCommand = exports.de_StartSyncDataSourceCommand = exports.de_SearchKnowledgeBaseCommand = void 0;
|
|
3
|
+
exports.de_GetDocumentUploadUrlCommand = exports.de_GetDocumentMarkdownCommand = exports.de_GetDocumentDownloadUrlCommand = exports.de_GetDocumentChunksCommand = exports.de_GetDocumentCommand = exports.de_GetDataSourceSyncStatusCommand = exports.de_GetDataSourceCommand = exports.de_GenerateSearchAnswerCommand = exports.de_DescribeDataSourceCommand = exports.de_DeleteKnowledgeBaseCommand = exports.de_DeleteDocumentCommand = exports.de_DeleteDataSourceCommand = exports.de_CreateKnowledgeBaseCommand = exports.de_CreateDocumentCommand = exports.de_CreateDataSourceCommand = exports.de_ConfigureDataSourceCommand = exports.de_CloneDataSourceCommand = exports.de_CleanDataSourceCommand = exports.se_UpdateKnowledgeBaseCommand = exports.se_UpdateDocumentCommand = exports.se_UpdateDataSourceCommand = exports.se_StopSyncDataSourceCommand = exports.se_StartSyncDataSourceCommand = exports.se_SearchKnowledgeBaseCommand = exports.se_ListSearchQueriesHistoryCommand = exports.se_ListKnowledgeBasesCommand = exports.se_ListDocumentsCommand = exports.se_ListDataSourceSynchronizationLogsCommand = exports.se_ListDataSourceStatisticsCommand = exports.se_ListDataSourcesCommand = exports.se_GetKnowledgeBaseCommand = exports.se_GetDocumentWithContentAndChunksCommand = exports.se_GetDocumentUploadUrlCommand = exports.se_GetDocumentMarkdownCommand = exports.se_GetDocumentDownloadUrlCommand = exports.se_GetDocumentChunksCommand = exports.se_GetDocumentCommand = exports.se_GetDataSourceSyncStatusCommand = exports.se_GetDataSourceCommand = exports.se_GenerateSearchAnswerCommand = exports.se_DescribeDataSourceCommand = exports.se_DeleteKnowledgeBaseCommand = exports.se_DeleteDocumentCommand = exports.se_DeleteDataSourceCommand = exports.se_CreateKnowledgeBaseCommand = exports.se_CreateDocumentCommand = exports.se_CreateDataSourceCommand = exports.se_ConfigureDataSourceCommand = exports.se_CloneDataSourceCommand = exports.se_CleanDataSourceCommand = void 0;
|
|
4
|
+
exports.de_UpdateKnowledgeBaseCommand = exports.de_UpdateDocumentCommand = exports.de_UpdateDataSourceCommand = exports.de_StopSyncDataSourceCommand = exports.de_StartSyncDataSourceCommand = exports.de_SearchKnowledgeBaseCommand = exports.de_ListSearchQueriesHistoryCommand = exports.de_ListKnowledgeBasesCommand = exports.de_ListDocumentsCommand = exports.de_ListDataSourceSynchronizationLogsCommand = exports.de_ListDataSourceStatisticsCommand = exports.de_ListDataSourcesCommand = exports.de_GetKnowledgeBaseCommand = exports.de_GetDocumentWithContentAndChunksCommand = void 0;
|
|
5
5
|
const KnowledgeBaseServiceException_1 = require("../models/KnowledgeBaseServiceException");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const core_1 = require("@aws-sdk/core");
|
|
@@ -202,6 +202,31 @@ const se_DescribeDataSourceCommand = async (input, context) => {
|
|
|
202
202
|
return b.build();
|
|
203
203
|
};
|
|
204
204
|
exports.se_DescribeDataSourceCommand = se_DescribeDataSourceCommand;
|
|
205
|
+
const se_GenerateSearchAnswerCommand = async (input, context) => {
|
|
206
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
207
|
+
const headers = {
|
|
208
|
+
'content-type': 'application/json',
|
|
209
|
+
};
|
|
210
|
+
b.bp("/api/v1/knowledge-bases/generate-answer");
|
|
211
|
+
const query = (0, smithy_client_1.map)({
|
|
212
|
+
[_c]: [, input[_cI]],
|
|
213
|
+
});
|
|
214
|
+
let body;
|
|
215
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
216
|
+
'maxOutputTokens': [],
|
|
217
|
+
'model': [],
|
|
218
|
+
'searchQuery': [],
|
|
219
|
+
'searchResults': _ => se_SearchKnowledgeBaseResults(_, context),
|
|
220
|
+
'systemPrompt': [],
|
|
221
|
+
'temperature': _ => (0, smithy_client_1.serializeFloat)(_),
|
|
222
|
+
}));
|
|
223
|
+
b.m("POST")
|
|
224
|
+
.h(headers)
|
|
225
|
+
.q(query)
|
|
226
|
+
.b(body);
|
|
227
|
+
return b.build();
|
|
228
|
+
};
|
|
229
|
+
exports.se_GenerateSearchAnswerCommand = se_GenerateSearchAnswerCommand;
|
|
205
230
|
const se_GetDataSourceCommand = async (input, context) => {
|
|
206
231
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
207
232
|
const headers = {};
|
|
@@ -218,6 +243,22 @@ const se_GetDataSourceCommand = async (input, context) => {
|
|
|
218
243
|
return b.build();
|
|
219
244
|
};
|
|
220
245
|
exports.se_GetDataSourceCommand = se_GetDataSourceCommand;
|
|
246
|
+
const se_GetDataSourceSyncStatusCommand = async (input, context) => {
|
|
247
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
248
|
+
const headers = {};
|
|
249
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/sync-status");
|
|
250
|
+
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
251
|
+
const query = (0, smithy_client_1.map)({
|
|
252
|
+
[_c]: [, input[_cI]],
|
|
253
|
+
});
|
|
254
|
+
let body;
|
|
255
|
+
b.m("GET")
|
|
256
|
+
.h(headers)
|
|
257
|
+
.q(query)
|
|
258
|
+
.b(body);
|
|
259
|
+
return b.build();
|
|
260
|
+
};
|
|
261
|
+
exports.se_GetDataSourceSyncStatusCommand = se_GetDataSourceSyncStatusCommand;
|
|
221
262
|
const se_GetDocumentCommand = async (input, context) => {
|
|
222
263
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
223
264
|
const headers = {};
|
|
@@ -226,8 +267,7 @@ const se_GetDocumentCommand = async (input, context) => {
|
|
|
226
267
|
b.p('documentId', () => input.documentId, '{documentId}', false);
|
|
227
268
|
const query = (0, smithy_client_1.map)({
|
|
228
269
|
[_c]: [, input[_cI]],
|
|
229
|
-
[_wC]: [() => input.
|
|
230
|
-
[_wCi]: [() => input.withChunks !== void 0, () => (input[_wCi].toString())],
|
|
270
|
+
[_wC]: [() => input.withChunks !== void 0, () => (input[_wC].toString())],
|
|
231
271
|
});
|
|
232
272
|
let body;
|
|
233
273
|
b.m("GET")
|
|
@@ -237,6 +277,23 @@ const se_GetDocumentCommand = async (input, context) => {
|
|
|
237
277
|
return b.build();
|
|
238
278
|
};
|
|
239
279
|
exports.se_GetDocumentCommand = se_GetDocumentCommand;
|
|
280
|
+
const se_GetDocumentChunksCommand = async (input, context) => {
|
|
281
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
282
|
+
const headers = {};
|
|
283
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/documents/{documentId}/chunks");
|
|
284
|
+
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
285
|
+
b.p('documentId', () => input.documentId, '{documentId}', false);
|
|
286
|
+
const query = (0, smithy_client_1.map)({
|
|
287
|
+
[_c]: [, input[_cI]],
|
|
288
|
+
});
|
|
289
|
+
let body;
|
|
290
|
+
b.m("GET")
|
|
291
|
+
.h(headers)
|
|
292
|
+
.q(query)
|
|
293
|
+
.b(body);
|
|
294
|
+
return b.build();
|
|
295
|
+
};
|
|
296
|
+
exports.se_GetDocumentChunksCommand = se_GetDocumentChunksCommand;
|
|
240
297
|
const se_GetDocumentDownloadUrlCommand = async (input, context) => {
|
|
241
298
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
242
299
|
const headers = {};
|
|
@@ -255,10 +312,10 @@ const se_GetDocumentDownloadUrlCommand = async (input, context) => {
|
|
|
255
312
|
return b.build();
|
|
256
313
|
};
|
|
257
314
|
exports.se_GetDocumentDownloadUrlCommand = se_GetDocumentDownloadUrlCommand;
|
|
258
|
-
const
|
|
315
|
+
const se_GetDocumentMarkdownCommand = async (input, context) => {
|
|
259
316
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
260
317
|
const headers = {};
|
|
261
|
-
b.bp("/api/v1/data-sources/{dataSourceId}/documents/{documentId}/
|
|
318
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/documents/{documentId}/markdown");
|
|
262
319
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
263
320
|
b.p('documentId', () => input.documentId, '{documentId}', false);
|
|
264
321
|
const query = (0, smithy_client_1.map)({
|
|
@@ -271,12 +328,13 @@ const se_GetDocumentUploadUrlCommand = async (input, context) => {
|
|
|
271
328
|
.b(body);
|
|
272
329
|
return b.build();
|
|
273
330
|
};
|
|
274
|
-
exports.
|
|
275
|
-
const
|
|
331
|
+
exports.se_GetDocumentMarkdownCommand = se_GetDocumentMarkdownCommand;
|
|
332
|
+
const se_GetDocumentUploadUrlCommand = async (input, context) => {
|
|
276
333
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
277
334
|
const headers = {};
|
|
278
|
-
b.bp("/api/v1/
|
|
279
|
-
b.p('
|
|
335
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/documents/{documentId}/upload_url");
|
|
336
|
+
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
337
|
+
b.p('documentId', () => input.documentId, '{documentId}', false);
|
|
280
338
|
const query = (0, smithy_client_1.map)({
|
|
281
339
|
[_c]: [, input[_cI]],
|
|
282
340
|
});
|
|
@@ -287,19 +345,15 @@ const se_GetKnowledgeBaseCommand = async (input, context) => {
|
|
|
287
345
|
.b(body);
|
|
288
346
|
return b.build();
|
|
289
347
|
};
|
|
290
|
-
exports.
|
|
291
|
-
const
|
|
348
|
+
exports.se_GetDocumentUploadUrlCommand = se_GetDocumentUploadUrlCommand;
|
|
349
|
+
const se_GetDocumentWithContentAndChunksCommand = async (input, context) => {
|
|
292
350
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
293
351
|
const headers = {};
|
|
294
|
-
b.bp("/api/v1/data-sources/{dataSourceId}/
|
|
352
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/documents/{documentId}/with-content-and-chunks");
|
|
295
353
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
354
|
+
b.p('documentId', () => input.documentId, '{documentId}', false);
|
|
296
355
|
const query = (0, smithy_client_1.map)({
|
|
297
356
|
[_c]: [, input[_cI]],
|
|
298
|
-
[_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
|
|
299
|
-
[_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
|
|
300
|
-
[_s]: [, input[_s]],
|
|
301
|
-
[_lL]: [, input[_lL]],
|
|
302
|
-
[_se]: [, input[_se]],
|
|
303
357
|
});
|
|
304
358
|
let body;
|
|
305
359
|
b.m("GET")
|
|
@@ -308,12 +362,12 @@ const se_GetSyncLogsCommand = async (input, context) => {
|
|
|
308
362
|
.b(body);
|
|
309
363
|
return b.build();
|
|
310
364
|
};
|
|
311
|
-
exports.
|
|
312
|
-
const
|
|
365
|
+
exports.se_GetDocumentWithContentAndChunksCommand = se_GetDocumentWithContentAndChunksCommand;
|
|
366
|
+
const se_GetKnowledgeBaseCommand = async (input, context) => {
|
|
313
367
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
314
368
|
const headers = {};
|
|
315
|
-
b.bp("/api/v1/
|
|
316
|
-
b.p('
|
|
369
|
+
b.bp("/api/v1/knowledge-bases/{knowledgeBaseId}");
|
|
370
|
+
b.p('knowledgeBaseId', () => input.knowledgeBaseId, '{knowledgeBaseId}', false);
|
|
317
371
|
const query = (0, smithy_client_1.map)({
|
|
318
372
|
[_c]: [, input[_cI]],
|
|
319
373
|
});
|
|
@@ -324,7 +378,7 @@ const se_GetSyncStatusCommand = async (input, context) => {
|
|
|
324
378
|
.b(body);
|
|
325
379
|
return b.build();
|
|
326
380
|
};
|
|
327
|
-
exports.
|
|
381
|
+
exports.se_GetKnowledgeBaseCommand = se_GetKnowledgeBaseCommand;
|
|
328
382
|
const se_ListDataSourcesCommand = async (input, context) => {
|
|
329
383
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
330
384
|
const headers = {};
|
|
@@ -340,15 +394,34 @@ const se_ListDataSourcesCommand = async (input, context) => {
|
|
|
340
394
|
return b.build();
|
|
341
395
|
};
|
|
342
396
|
exports.se_ListDataSourcesCommand = se_ListDataSourcesCommand;
|
|
343
|
-
const
|
|
397
|
+
const se_ListDataSourceStatisticsCommand = async (input, context) => {
|
|
344
398
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
345
399
|
const headers = {};
|
|
346
|
-
b.bp("/api/v1/data-sources/{dataSourceId}/
|
|
400
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/statistics");
|
|
401
|
+
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
402
|
+
const query = (0, smithy_client_1.map)({
|
|
403
|
+
[_c]: [, input[_cI]],
|
|
404
|
+
});
|
|
405
|
+
let body;
|
|
406
|
+
b.m("GET")
|
|
407
|
+
.h(headers)
|
|
408
|
+
.q(query)
|
|
409
|
+
.b(body);
|
|
410
|
+
return b.build();
|
|
411
|
+
};
|
|
412
|
+
exports.se_ListDataSourceStatisticsCommand = se_ListDataSourceStatisticsCommand;
|
|
413
|
+
const se_ListDataSourceSynchronizationLogsCommand = async (input, context) => {
|
|
414
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
415
|
+
const headers = {};
|
|
416
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/sync-logs");
|
|
347
417
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
348
418
|
const query = (0, smithy_client_1.map)({
|
|
349
419
|
[_c]: [, input[_cI]],
|
|
350
420
|
[_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
|
|
351
421
|
[_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
|
|
422
|
+
[_s]: [, input[_s]],
|
|
423
|
+
[_lL]: [, input[_lL]],
|
|
424
|
+
[_se]: [, input[_se]],
|
|
352
425
|
});
|
|
353
426
|
let body;
|
|
354
427
|
b.m("GET")
|
|
@@ -357,13 +430,16 @@ const se_ListDocumentsCommand = async (input, context) => {
|
|
|
357
430
|
.b(body);
|
|
358
431
|
return b.build();
|
|
359
432
|
};
|
|
360
|
-
exports.
|
|
361
|
-
const
|
|
433
|
+
exports.se_ListDataSourceSynchronizationLogsCommand = se_ListDataSourceSynchronizationLogsCommand;
|
|
434
|
+
const se_ListDocumentsCommand = async (input, context) => {
|
|
362
435
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
363
436
|
const headers = {};
|
|
364
|
-
b.bp("/api/v1/
|
|
437
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/documents");
|
|
438
|
+
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
365
439
|
const query = (0, smithy_client_1.map)({
|
|
366
440
|
[_c]: [, input[_cI]],
|
|
441
|
+
[_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
|
|
442
|
+
[_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
|
|
367
443
|
});
|
|
368
444
|
let body;
|
|
369
445
|
b.m("GET")
|
|
@@ -372,38 +448,28 @@ const se_ListKnowledgeBasesCommand = async (input, context) => {
|
|
|
372
448
|
.b(body);
|
|
373
449
|
return b.build();
|
|
374
450
|
};
|
|
375
|
-
exports.
|
|
376
|
-
const
|
|
451
|
+
exports.se_ListDocumentsCommand = se_ListDocumentsCommand;
|
|
452
|
+
const se_ListKnowledgeBasesCommand = async (input, context) => {
|
|
377
453
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
378
|
-
const headers =
|
|
379
|
-
|
|
380
|
-
[_xsu]: input[_sU],
|
|
381
|
-
[_xesi]: input[_eSI],
|
|
382
|
-
});
|
|
383
|
-
b.bp("/api/v1/knowledge-bases/{knowledgeBaseId}/query");
|
|
384
|
-
b.p('knowledgeBaseId', () => input.knowledgeBaseId, '{knowledgeBaseId}', false);
|
|
454
|
+
const headers = {};
|
|
455
|
+
b.bp("/api/v1/knowledge-bases");
|
|
385
456
|
const query = (0, smithy_client_1.map)({
|
|
386
457
|
[_c]: [, input[_cI]],
|
|
387
458
|
});
|
|
388
459
|
let body;
|
|
389
|
-
|
|
390
|
-
'llmConfig': _ => se_LlmConfig(_, context),
|
|
391
|
-
'query': [],
|
|
392
|
-
'searchConfig': _ => se_SearchConfig(_, context),
|
|
393
|
-
}));
|
|
394
|
-
b.m("POST")
|
|
460
|
+
b.m("GET")
|
|
395
461
|
.h(headers)
|
|
396
462
|
.q(query)
|
|
397
463
|
.b(body);
|
|
398
464
|
return b.build();
|
|
399
465
|
};
|
|
400
|
-
exports.
|
|
401
|
-
const
|
|
466
|
+
exports.se_ListKnowledgeBasesCommand = se_ListKnowledgeBasesCommand;
|
|
467
|
+
const se_ListSearchQueriesHistoryCommand = async (input, context) => {
|
|
402
468
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
403
469
|
const headers = {
|
|
404
470
|
'content-type': 'application/json',
|
|
405
471
|
};
|
|
406
|
-
b.bp("/api/v1/history/search");
|
|
472
|
+
b.bp("/api/v1/history/search-queries");
|
|
407
473
|
const query = (0, smithy_client_1.map)({
|
|
408
474
|
[_c]: [, input[_cI]],
|
|
409
475
|
[_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
|
|
@@ -421,14 +487,12 @@ const se_SearchHistoryCommand = async (input, context) => {
|
|
|
421
487
|
.b(body);
|
|
422
488
|
return b.build();
|
|
423
489
|
};
|
|
424
|
-
exports.
|
|
490
|
+
exports.se_ListSearchQueriesHistoryCommand = se_ListSearchQueriesHistoryCommand;
|
|
425
491
|
const se_SearchKnowledgeBaseCommand = async (input, context) => {
|
|
426
492
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
427
|
-
const headers =
|
|
493
|
+
const headers = {
|
|
428
494
|
'content-type': 'application/json',
|
|
429
|
-
|
|
430
|
-
[_xesi]: input[_eSI],
|
|
431
|
-
});
|
|
495
|
+
};
|
|
432
496
|
b.bp("/api/v1/knowledge-bases/{knowledgeBaseId}/search");
|
|
433
497
|
b.p('knowledgeBaseId', () => input.knowledgeBaseId, '{knowledgeBaseId}', false);
|
|
434
498
|
const query = (0, smithy_client_1.map)({
|
|
@@ -436,9 +500,13 @@ const se_SearchKnowledgeBaseCommand = async (input, context) => {
|
|
|
436
500
|
});
|
|
437
501
|
let body;
|
|
438
502
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
503
|
+
'externalSessionId': [],
|
|
439
504
|
'query': [],
|
|
440
|
-
'
|
|
441
|
-
'
|
|
505
|
+
'searchLimit': [],
|
|
506
|
+
'searchStrategy': [],
|
|
507
|
+
'searchThreshold': [],
|
|
508
|
+
'searchUser': [],
|
|
509
|
+
'useQueryOptimization': [],
|
|
442
510
|
}));
|
|
443
511
|
b.m("POST")
|
|
444
512
|
.h(headers)
|
|
@@ -454,7 +522,7 @@ const se_StartSyncDataSourceCommand = async (input, context) => {
|
|
|
454
522
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
455
523
|
const query = (0, smithy_client_1.map)({
|
|
456
524
|
[_c]: [, input[_cI]],
|
|
457
|
-
[_sT]: [,
|
|
525
|
+
[_sT]: [, input[_sT]],
|
|
458
526
|
});
|
|
459
527
|
let body;
|
|
460
528
|
b.m("POST")
|
|
@@ -686,6 +754,23 @@ const de_DescribeDataSourceCommand = async (output, context) => {
|
|
|
686
754
|
return contents;
|
|
687
755
|
};
|
|
688
756
|
exports.de_DescribeDataSourceCommand = de_DescribeDataSourceCommand;
|
|
757
|
+
const de_GenerateSearchAnswerCommand = async (output, context) => {
|
|
758
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
759
|
+
return de_CommandError(output, context);
|
|
760
|
+
}
|
|
761
|
+
const contents = (0, smithy_client_1.map)({
|
|
762
|
+
$metadata: deserializeMetadata(output),
|
|
763
|
+
});
|
|
764
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
765
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
766
|
+
'answer': smithy_client_1.expectString,
|
|
767
|
+
'metadata': _ => de_Document(_, context),
|
|
768
|
+
'sources': _ => de_Document(_, context),
|
|
769
|
+
});
|
|
770
|
+
Object.assign(contents, doc);
|
|
771
|
+
return contents;
|
|
772
|
+
};
|
|
773
|
+
exports.de_GenerateSearchAnswerCommand = de_GenerateSearchAnswerCommand;
|
|
689
774
|
const de_GetDataSourceCommand = async (output, context) => {
|
|
690
775
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
691
776
|
return de_CommandError(output, context);
|
|
@@ -701,6 +786,24 @@ const de_GetDataSourceCommand = async (output, context) => {
|
|
|
701
786
|
return contents;
|
|
702
787
|
};
|
|
703
788
|
exports.de_GetDataSourceCommand = de_GetDataSourceCommand;
|
|
789
|
+
const de_GetDataSourceSyncStatusCommand = async (output, context) => {
|
|
790
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
791
|
+
return de_CommandError(output, context);
|
|
792
|
+
}
|
|
793
|
+
const contents = (0, smithy_client_1.map)({
|
|
794
|
+
$metadata: deserializeMetadata(output),
|
|
795
|
+
});
|
|
796
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
797
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
798
|
+
'lastSyncErrorMessage': smithy_client_1.expectString,
|
|
799
|
+
'lastSyncMode': smithy_client_1.expectString,
|
|
800
|
+
'lastSyncedAt': smithy_client_1.expectString,
|
|
801
|
+
'syncStatus': smithy_client_1.expectString,
|
|
802
|
+
});
|
|
803
|
+
Object.assign(contents, doc);
|
|
804
|
+
return contents;
|
|
805
|
+
};
|
|
806
|
+
exports.de_GetDataSourceSyncStatusCommand = de_GetDataSourceSyncStatusCommand;
|
|
704
807
|
const de_GetDocumentCommand = async (output, context) => {
|
|
705
808
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
706
809
|
return de_CommandError(output, context);
|
|
@@ -711,13 +814,27 @@ const de_GetDocumentCommand = async (output, context) => {
|
|
|
711
814
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
712
815
|
const doc = (0, smithy_client_1.take)(data, {
|
|
713
816
|
'chunks': smithy_client_1._json,
|
|
714
|
-
'content': smithy_client_1.expectString,
|
|
715
817
|
'document': smithy_client_1._json,
|
|
716
818
|
});
|
|
717
819
|
Object.assign(contents, doc);
|
|
718
820
|
return contents;
|
|
719
821
|
};
|
|
720
822
|
exports.de_GetDocumentCommand = de_GetDocumentCommand;
|
|
823
|
+
const de_GetDocumentChunksCommand = async (output, context) => {
|
|
824
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
825
|
+
return de_CommandError(output, context);
|
|
826
|
+
}
|
|
827
|
+
const contents = (0, smithy_client_1.map)({
|
|
828
|
+
$metadata: deserializeMetadata(output),
|
|
829
|
+
});
|
|
830
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
831
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
832
|
+
'chunks': smithy_client_1._json,
|
|
833
|
+
});
|
|
834
|
+
Object.assign(contents, doc);
|
|
835
|
+
return contents;
|
|
836
|
+
};
|
|
837
|
+
exports.de_GetDocumentChunksCommand = de_GetDocumentChunksCommand;
|
|
721
838
|
const de_GetDocumentDownloadUrlCommand = async (output, context) => {
|
|
722
839
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
723
840
|
return de_CommandError(output, context);
|
|
@@ -733,7 +850,7 @@ const de_GetDocumentDownloadUrlCommand = async (output, context) => {
|
|
|
733
850
|
return contents;
|
|
734
851
|
};
|
|
735
852
|
exports.de_GetDocumentDownloadUrlCommand = de_GetDocumentDownloadUrlCommand;
|
|
736
|
-
const
|
|
853
|
+
const de_GetDocumentMarkdownCommand = async (output, context) => {
|
|
737
854
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
738
855
|
return de_CommandError(output, context);
|
|
739
856
|
}
|
|
@@ -742,13 +859,13 @@ const de_GetDocumentUploadUrlCommand = async (output, context) => {
|
|
|
742
859
|
});
|
|
743
860
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
744
861
|
const doc = (0, smithy_client_1.take)(data, {
|
|
745
|
-
'
|
|
862
|
+
'markdown': smithy_client_1.expectString,
|
|
746
863
|
});
|
|
747
864
|
Object.assign(contents, doc);
|
|
748
865
|
return contents;
|
|
749
866
|
};
|
|
750
|
-
exports.
|
|
751
|
-
const
|
|
867
|
+
exports.de_GetDocumentMarkdownCommand = de_GetDocumentMarkdownCommand;
|
|
868
|
+
const de_GetDocumentUploadUrlCommand = async (output, context) => {
|
|
752
869
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
753
870
|
return de_CommandError(output, context);
|
|
754
871
|
}
|
|
@@ -757,13 +874,13 @@ const de_GetKnowledgeBaseCommand = async (output, context) => {
|
|
|
757
874
|
});
|
|
758
875
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
759
876
|
const doc = (0, smithy_client_1.take)(data, {
|
|
760
|
-
'
|
|
877
|
+
'uploadUrl': smithy_client_1.expectString,
|
|
761
878
|
});
|
|
762
879
|
Object.assign(contents, doc);
|
|
763
880
|
return contents;
|
|
764
881
|
};
|
|
765
|
-
exports.
|
|
766
|
-
const
|
|
882
|
+
exports.de_GetDocumentUploadUrlCommand = de_GetDocumentUploadUrlCommand;
|
|
883
|
+
const de_GetDocumentWithContentAndChunksCommand = async (output, context) => {
|
|
767
884
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
768
885
|
return de_CommandError(output, context);
|
|
769
886
|
}
|
|
@@ -772,13 +889,15 @@ const de_GetSyncLogsCommand = async (output, context) => {
|
|
|
772
889
|
});
|
|
773
890
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
774
891
|
const doc = (0, smithy_client_1.take)(data, {
|
|
775
|
-
'
|
|
892
|
+
'chunks': smithy_client_1._json,
|
|
893
|
+
'content': smithy_client_1.expectString,
|
|
894
|
+
'document': smithy_client_1._json,
|
|
776
895
|
});
|
|
777
896
|
Object.assign(contents, doc);
|
|
778
897
|
return contents;
|
|
779
898
|
};
|
|
780
|
-
exports.
|
|
781
|
-
const
|
|
899
|
+
exports.de_GetDocumentWithContentAndChunksCommand = de_GetDocumentWithContentAndChunksCommand;
|
|
900
|
+
const de_GetKnowledgeBaseCommand = async (output, context) => {
|
|
782
901
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
783
902
|
return de_CommandError(output, context);
|
|
784
903
|
}
|
|
@@ -787,15 +906,12 @@ const de_GetSyncStatusCommand = async (output, context) => {
|
|
|
787
906
|
});
|
|
788
907
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
789
908
|
const doc = (0, smithy_client_1.take)(data, {
|
|
790
|
-
'
|
|
791
|
-
'progress': smithy_client_1.expectInt32,
|
|
792
|
-
'syncErrorMessage': smithy_client_1.expectString,
|
|
793
|
-
'syncStatus': smithy_client_1.expectString,
|
|
909
|
+
'knowledgeBase': smithy_client_1._json,
|
|
794
910
|
});
|
|
795
911
|
Object.assign(contents, doc);
|
|
796
912
|
return contents;
|
|
797
913
|
};
|
|
798
|
-
exports.
|
|
914
|
+
exports.de_GetKnowledgeBaseCommand = de_GetKnowledgeBaseCommand;
|
|
799
915
|
const de_ListDataSourcesCommand = async (output, context) => {
|
|
800
916
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
801
917
|
return de_CommandError(output, context);
|
|
@@ -811,7 +927,7 @@ const de_ListDataSourcesCommand = async (output, context) => {
|
|
|
811
927
|
return contents;
|
|
812
928
|
};
|
|
813
929
|
exports.de_ListDataSourcesCommand = de_ListDataSourcesCommand;
|
|
814
|
-
const
|
|
930
|
+
const de_ListDataSourceStatisticsCommand = async (output, context) => {
|
|
815
931
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
816
932
|
return de_CommandError(output, context);
|
|
817
933
|
}
|
|
@@ -820,13 +936,14 @@ const de_ListDocumentsCommand = async (output, context) => {
|
|
|
820
936
|
});
|
|
821
937
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
822
938
|
const doc = (0, smithy_client_1.take)(data, {
|
|
823
|
-
'
|
|
939
|
+
'chunksCount': smithy_client_1.expectInt32,
|
|
940
|
+
'documentsCount': smithy_client_1.expectInt32,
|
|
824
941
|
});
|
|
825
942
|
Object.assign(contents, doc);
|
|
826
943
|
return contents;
|
|
827
944
|
};
|
|
828
|
-
exports.
|
|
829
|
-
const
|
|
945
|
+
exports.de_ListDataSourceStatisticsCommand = de_ListDataSourceStatisticsCommand;
|
|
946
|
+
const de_ListDataSourceSynchronizationLogsCommand = async (output, context) => {
|
|
830
947
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
831
948
|
return de_CommandError(output, context);
|
|
832
949
|
}
|
|
@@ -835,13 +952,13 @@ const de_ListKnowledgeBasesCommand = async (output, context) => {
|
|
|
835
952
|
});
|
|
836
953
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
837
954
|
const doc = (0, smithy_client_1.take)(data, {
|
|
838
|
-
'
|
|
955
|
+
'logs': smithy_client_1._json,
|
|
839
956
|
});
|
|
840
957
|
Object.assign(contents, doc);
|
|
841
958
|
return contents;
|
|
842
959
|
};
|
|
843
|
-
exports.
|
|
844
|
-
const
|
|
960
|
+
exports.de_ListDataSourceSynchronizationLogsCommand = de_ListDataSourceSynchronizationLogsCommand;
|
|
961
|
+
const de_ListDocumentsCommand = async (output, context) => {
|
|
845
962
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
846
963
|
return de_CommandError(output, context);
|
|
847
964
|
}
|
|
@@ -850,15 +967,13 @@ const de_QueryKnowledgeBaseCommand = async (output, context) => {
|
|
|
850
967
|
});
|
|
851
968
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
852
969
|
const doc = (0, smithy_client_1.take)(data, {
|
|
853
|
-
'
|
|
854
|
-
'metadata': _ => de_Document(_, context),
|
|
855
|
-
'sources': _ => de_Document(_, context),
|
|
970
|
+
'documents': smithy_client_1._json,
|
|
856
971
|
});
|
|
857
972
|
Object.assign(contents, doc);
|
|
858
973
|
return contents;
|
|
859
974
|
};
|
|
860
|
-
exports.
|
|
861
|
-
const
|
|
975
|
+
exports.de_ListDocumentsCommand = de_ListDocumentsCommand;
|
|
976
|
+
const de_ListKnowledgeBasesCommand = async (output, context) => {
|
|
862
977
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
863
978
|
return de_CommandError(output, context);
|
|
864
979
|
}
|
|
@@ -867,12 +982,27 @@ const de_SearchHistoryCommand = async (output, context) => {
|
|
|
867
982
|
});
|
|
868
983
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
869
984
|
const doc = (0, smithy_client_1.take)(data, {
|
|
870
|
-
'
|
|
985
|
+
'knowledgeBases': smithy_client_1._json,
|
|
871
986
|
});
|
|
872
987
|
Object.assign(contents, doc);
|
|
873
988
|
return contents;
|
|
874
989
|
};
|
|
875
|
-
exports.
|
|
990
|
+
exports.de_ListKnowledgeBasesCommand = de_ListKnowledgeBasesCommand;
|
|
991
|
+
const de_ListSearchQueriesHistoryCommand = async (output, context) => {
|
|
992
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
993
|
+
return de_CommandError(output, context);
|
|
994
|
+
}
|
|
995
|
+
const contents = (0, smithy_client_1.map)({
|
|
996
|
+
$metadata: deserializeMetadata(output),
|
|
997
|
+
});
|
|
998
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
999
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1000
|
+
'results': _ => de_SearchHistoryResultsList(_, context),
|
|
1001
|
+
});
|
|
1002
|
+
Object.assign(contents, doc);
|
|
1003
|
+
return contents;
|
|
1004
|
+
};
|
|
1005
|
+
exports.de_ListSearchQueriesHistoryCommand = de_ListSearchQueriesHistoryCommand;
|
|
876
1006
|
const de_SearchKnowledgeBaseCommand = async (output, context) => {
|
|
877
1007
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
878
1008
|
return de_CommandError(output, context);
|
|
@@ -1077,7 +1207,6 @@ const se_DataSourceConfig = (input, context) => {
|
|
|
1077
1207
|
confluence: value => ({ "confluence": (0, smithy_client_1._json)(value) }),
|
|
1078
1208
|
files: value => ({ "files": se_Document(value, context) }),
|
|
1079
1209
|
gdrive: value => ({ "gdrive": (0, smithy_client_1._json)(value) }),
|
|
1080
|
-
proxy: value => ({ "proxy": se_ProxyConfig(value, context) }),
|
|
1081
1210
|
_: (name, value) => ({ [name]: value })
|
|
1082
1211
|
});
|
|
1083
1212
|
};
|
|
@@ -1089,34 +1218,21 @@ const se_DescribeDataSourceParameters = (input, context) => {
|
|
|
1089
1218
|
'proxy': _ => se_Document(_, context),
|
|
1090
1219
|
});
|
|
1091
1220
|
};
|
|
1092
|
-
const
|
|
1093
|
-
return (0, smithy_client_1.take)(input, {
|
|
1094
|
-
'maxOutputTokens': [],
|
|
1095
|
-
'model': [],
|
|
1096
|
-
'systemPrompt': [],
|
|
1097
|
-
'temperature': smithy_client_1.serializeFloat,
|
|
1098
|
-
});
|
|
1099
|
-
};
|
|
1100
|
-
const se_ProxyConfig = (input, context) => {
|
|
1221
|
+
const se_SearchKnowledgeBaseResult = (input, context) => {
|
|
1101
1222
|
return (0, smithy_client_1.take)(input, {
|
|
1102
|
-
'
|
|
1103
|
-
'
|
|
1104
|
-
'
|
|
1105
|
-
'
|
|
1106
|
-
'
|
|
1107
|
-
'
|
|
1108
|
-
'
|
|
1109
|
-
'
|
|
1110
|
-
'username': [],
|
|
1223
|
+
'content': [],
|
|
1224
|
+
'dataSourceId': [],
|
|
1225
|
+
'dataSourceType': [],
|
|
1226
|
+
'documentHierarchy': smithy_client_1._json,
|
|
1227
|
+
'documentId': [],
|
|
1228
|
+
'documentTitle': [],
|
|
1229
|
+
'documentUrl': [],
|
|
1230
|
+
'score': smithy_client_1.serializeFloat,
|
|
1111
1231
|
});
|
|
1112
1232
|
};
|
|
1113
|
-
const
|
|
1114
|
-
return (
|
|
1115
|
-
|
|
1116
|
-
'searchStrategy': [],
|
|
1117
|
-
'threshold': smithy_client_1.serializeFloat,
|
|
1118
|
-
'topK': [],
|
|
1119
|
-
'useQueryOptimization': [],
|
|
1233
|
+
const se_SearchKnowledgeBaseResults = (input, context) => {
|
|
1234
|
+
return input.filter((e) => e != null).map(entry => {
|
|
1235
|
+
return se_SearchKnowledgeBaseResult(entry, context);
|
|
1120
1236
|
});
|
|
1121
1237
|
};
|
|
1122
1238
|
const de_Document = (output, context) => {
|
|
@@ -1138,11 +1254,6 @@ const de_DataSourceConfig = (output, context) => {
|
|
|
1138
1254
|
gdrive: (0, smithy_client_1._json)(output.gdrive)
|
|
1139
1255
|
};
|
|
1140
1256
|
}
|
|
1141
|
-
if (output.proxy != null) {
|
|
1142
|
-
return {
|
|
1143
|
-
proxy: de_ProxyConfig(output.proxy, context)
|
|
1144
|
-
};
|
|
1145
|
-
}
|
|
1146
1257
|
return { $unknown: Object.entries(output)[0] };
|
|
1147
1258
|
};
|
|
1148
1259
|
const de_DataSourceItem = (output, context) => {
|
|
@@ -1151,14 +1262,9 @@ const de_DataSourceItem = (output, context) => {
|
|
|
1151
1262
|
'config': (_) => de_DataSourceConfig((0, core_1.awsExpectUnion)(_), context),
|
|
1152
1263
|
'createdAt': smithy_client_1.expectString,
|
|
1153
1264
|
'description': smithy_client_1.expectString,
|
|
1154
|
-
'documentsCount': smithy_client_1.expectInt32,
|
|
1155
1265
|
'id': smithy_client_1.expectString,
|
|
1156
|
-
'lastSyncErrorMessage': smithy_client_1.expectString,
|
|
1157
|
-
'lastSyncMode': smithy_client_1.expectString,
|
|
1158
|
-
'lastSyncedAt': smithy_client_1.expectString,
|
|
1159
1266
|
'name': smithy_client_1.expectString,
|
|
1160
1267
|
'syncSchedule': smithy_client_1.expectString,
|
|
1161
|
-
'syncStatus': smithy_client_1.expectString,
|
|
1162
1268
|
'type': smithy_client_1.expectString,
|
|
1163
1269
|
'updatedAt': smithy_client_1.expectString,
|
|
1164
1270
|
});
|
|
@@ -1177,20 +1283,7 @@ const de_DescribeDataSourceResult = (output, context) => {
|
|
|
1177
1283
|
'proxy': (_) => de_Document(_, context),
|
|
1178
1284
|
});
|
|
1179
1285
|
};
|
|
1180
|
-
const
|
|
1181
|
-
return (0, smithy_client_1.take)(output, {
|
|
1182
|
-
'body': (_) => de_Document(_, context),
|
|
1183
|
-
'headers': smithy_client_1._json,
|
|
1184
|
-
'method': smithy_client_1.expectString,
|
|
1185
|
-
'password': smithy_client_1.expectString,
|
|
1186
|
-
'responseMapping': smithy_client_1._json,
|
|
1187
|
-
'timeoutMs': smithy_client_1.expectInt32,
|
|
1188
|
-
'token': smithy_client_1.expectString,
|
|
1189
|
-
'url': smithy_client_1.expectString,
|
|
1190
|
-
'username': smithy_client_1.expectString,
|
|
1191
|
-
});
|
|
1192
|
-
};
|
|
1193
|
-
const de_SearchHistoryResults = (output, context) => {
|
|
1286
|
+
const de_SearchHistoryResultsList = (output, context) => {
|
|
1194
1287
|
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1195
1288
|
return de_Document(entry, context);
|
|
1196
1289
|
});
|
|
@@ -1201,6 +1294,7 @@ const de_SearchKnowledgeBaseResult = (output, context) => {
|
|
|
1201
1294
|
'content': smithy_client_1.expectString,
|
|
1202
1295
|
'dataSourceId': smithy_client_1.expectString,
|
|
1203
1296
|
'dataSourceType': smithy_client_1.expectString,
|
|
1297
|
+
'documentHierarchy': smithy_client_1._json,
|
|
1204
1298
|
'documentId': smithy_client_1.expectString,
|
|
1205
1299
|
'documentTitle': smithy_client_1.expectString,
|
|
1206
1300
|
'documentUrl': smithy_client_1.expectString,
|
|
@@ -1223,15 +1317,10 @@ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBo
|
|
|
1223
1317
|
const _c = "company";
|
|
1224
1318
|
const _cI = "companyId";
|
|
1225
1319
|
const _dT = "documentType";
|
|
1226
|
-
const _eSI = "externalSessionId";
|
|
1227
1320
|
const _l = "limit";
|
|
1228
1321
|
const _lL = "logLevel";
|
|
1229
1322
|
const _o = "offset";
|
|
1230
1323
|
const _s = "sort";
|
|
1231
1324
|
const _sT = "syncType";
|
|
1232
|
-
const _sU = "searchUser";
|
|
1233
1325
|
const _se = "search";
|
|
1234
|
-
const _wC = "
|
|
1235
|
-
const _wCi = "withChunks";
|
|
1236
|
-
const _xesi = "x-external-session-id";
|
|
1237
|
-
const _xsu = "x-search-user";
|
|
1326
|
+
const _wC = "withChunks";
|