@wildix/wim-knowledge-base-client 0.0.48 → 0.0.49
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 -27
- package/dist-cjs/protocols/Aws_restJson1.js +228 -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 -26
- package/dist-es/protocols/Aws_restJson1.js +203 -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 +7 -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 +253 -336
- 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,12 @@ 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
|
+
'searchThreshold': [],
|
|
507
|
+
'searchUser': [],
|
|
508
|
+
'useQueryOptimization': [],
|
|
442
509
|
}));
|
|
443
510
|
b.m("POST")
|
|
444
511
|
.h(headers)
|
|
@@ -454,7 +521,7 @@ const se_StartSyncDataSourceCommand = async (input, context) => {
|
|
|
454
521
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
455
522
|
const query = (0, smithy_client_1.map)({
|
|
456
523
|
[_c]: [, input[_cI]],
|
|
457
|
-
[_sT]: [,
|
|
524
|
+
[_sT]: [, input[_sT]],
|
|
458
525
|
});
|
|
459
526
|
let body;
|
|
460
527
|
b.m("POST")
|
|
@@ -686,6 +753,23 @@ const de_DescribeDataSourceCommand = async (output, context) => {
|
|
|
686
753
|
return contents;
|
|
687
754
|
};
|
|
688
755
|
exports.de_DescribeDataSourceCommand = de_DescribeDataSourceCommand;
|
|
756
|
+
const de_GenerateSearchAnswerCommand = async (output, context) => {
|
|
757
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
758
|
+
return de_CommandError(output, context);
|
|
759
|
+
}
|
|
760
|
+
const contents = (0, smithy_client_1.map)({
|
|
761
|
+
$metadata: deserializeMetadata(output),
|
|
762
|
+
});
|
|
763
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
764
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
765
|
+
'answer': smithy_client_1.expectString,
|
|
766
|
+
'metadata': _ => de_Document(_, context),
|
|
767
|
+
'sources': _ => de_Document(_, context),
|
|
768
|
+
});
|
|
769
|
+
Object.assign(contents, doc);
|
|
770
|
+
return contents;
|
|
771
|
+
};
|
|
772
|
+
exports.de_GenerateSearchAnswerCommand = de_GenerateSearchAnswerCommand;
|
|
689
773
|
const de_GetDataSourceCommand = async (output, context) => {
|
|
690
774
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
691
775
|
return de_CommandError(output, context);
|
|
@@ -701,6 +785,24 @@ const de_GetDataSourceCommand = async (output, context) => {
|
|
|
701
785
|
return contents;
|
|
702
786
|
};
|
|
703
787
|
exports.de_GetDataSourceCommand = de_GetDataSourceCommand;
|
|
788
|
+
const de_GetDataSourceSyncStatusCommand = async (output, context) => {
|
|
789
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
790
|
+
return de_CommandError(output, context);
|
|
791
|
+
}
|
|
792
|
+
const contents = (0, smithy_client_1.map)({
|
|
793
|
+
$metadata: deserializeMetadata(output),
|
|
794
|
+
});
|
|
795
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
796
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
797
|
+
'lastSyncErrorMessage': smithy_client_1.expectString,
|
|
798
|
+
'lastSyncMode': smithy_client_1.expectString,
|
|
799
|
+
'lastSyncedAt': smithy_client_1.expectString,
|
|
800
|
+
'syncStatus': smithy_client_1.expectString,
|
|
801
|
+
});
|
|
802
|
+
Object.assign(contents, doc);
|
|
803
|
+
return contents;
|
|
804
|
+
};
|
|
805
|
+
exports.de_GetDataSourceSyncStatusCommand = de_GetDataSourceSyncStatusCommand;
|
|
704
806
|
const de_GetDocumentCommand = async (output, context) => {
|
|
705
807
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
706
808
|
return de_CommandError(output, context);
|
|
@@ -711,13 +813,27 @@ const de_GetDocumentCommand = async (output, context) => {
|
|
|
711
813
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
712
814
|
const doc = (0, smithy_client_1.take)(data, {
|
|
713
815
|
'chunks': smithy_client_1._json,
|
|
714
|
-
'content': smithy_client_1.expectString,
|
|
715
816
|
'document': smithy_client_1._json,
|
|
716
817
|
});
|
|
717
818
|
Object.assign(contents, doc);
|
|
718
819
|
return contents;
|
|
719
820
|
};
|
|
720
821
|
exports.de_GetDocumentCommand = de_GetDocumentCommand;
|
|
822
|
+
const de_GetDocumentChunksCommand = async (output, context) => {
|
|
823
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
824
|
+
return de_CommandError(output, context);
|
|
825
|
+
}
|
|
826
|
+
const contents = (0, smithy_client_1.map)({
|
|
827
|
+
$metadata: deserializeMetadata(output),
|
|
828
|
+
});
|
|
829
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
830
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
831
|
+
'chunks': smithy_client_1._json,
|
|
832
|
+
});
|
|
833
|
+
Object.assign(contents, doc);
|
|
834
|
+
return contents;
|
|
835
|
+
};
|
|
836
|
+
exports.de_GetDocumentChunksCommand = de_GetDocumentChunksCommand;
|
|
721
837
|
const de_GetDocumentDownloadUrlCommand = async (output, context) => {
|
|
722
838
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
723
839
|
return de_CommandError(output, context);
|
|
@@ -733,7 +849,7 @@ const de_GetDocumentDownloadUrlCommand = async (output, context) => {
|
|
|
733
849
|
return contents;
|
|
734
850
|
};
|
|
735
851
|
exports.de_GetDocumentDownloadUrlCommand = de_GetDocumentDownloadUrlCommand;
|
|
736
|
-
const
|
|
852
|
+
const de_GetDocumentMarkdownCommand = async (output, context) => {
|
|
737
853
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
738
854
|
return de_CommandError(output, context);
|
|
739
855
|
}
|
|
@@ -742,13 +858,13 @@ const de_GetDocumentUploadUrlCommand = async (output, context) => {
|
|
|
742
858
|
});
|
|
743
859
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
744
860
|
const doc = (0, smithy_client_1.take)(data, {
|
|
745
|
-
'
|
|
861
|
+
'markdown': smithy_client_1.expectString,
|
|
746
862
|
});
|
|
747
863
|
Object.assign(contents, doc);
|
|
748
864
|
return contents;
|
|
749
865
|
};
|
|
750
|
-
exports.
|
|
751
|
-
const
|
|
866
|
+
exports.de_GetDocumentMarkdownCommand = de_GetDocumentMarkdownCommand;
|
|
867
|
+
const de_GetDocumentUploadUrlCommand = async (output, context) => {
|
|
752
868
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
753
869
|
return de_CommandError(output, context);
|
|
754
870
|
}
|
|
@@ -757,13 +873,13 @@ const de_GetKnowledgeBaseCommand = async (output, context) => {
|
|
|
757
873
|
});
|
|
758
874
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
759
875
|
const doc = (0, smithy_client_1.take)(data, {
|
|
760
|
-
'
|
|
876
|
+
'uploadUrl': smithy_client_1.expectString,
|
|
761
877
|
});
|
|
762
878
|
Object.assign(contents, doc);
|
|
763
879
|
return contents;
|
|
764
880
|
};
|
|
765
|
-
exports.
|
|
766
|
-
const
|
|
881
|
+
exports.de_GetDocumentUploadUrlCommand = de_GetDocumentUploadUrlCommand;
|
|
882
|
+
const de_GetDocumentWithContentAndChunksCommand = async (output, context) => {
|
|
767
883
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
768
884
|
return de_CommandError(output, context);
|
|
769
885
|
}
|
|
@@ -772,13 +888,15 @@ const de_GetSyncLogsCommand = async (output, context) => {
|
|
|
772
888
|
});
|
|
773
889
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
774
890
|
const doc = (0, smithy_client_1.take)(data, {
|
|
775
|
-
'
|
|
891
|
+
'chunks': smithy_client_1._json,
|
|
892
|
+
'content': smithy_client_1.expectString,
|
|
893
|
+
'document': smithy_client_1._json,
|
|
776
894
|
});
|
|
777
895
|
Object.assign(contents, doc);
|
|
778
896
|
return contents;
|
|
779
897
|
};
|
|
780
|
-
exports.
|
|
781
|
-
const
|
|
898
|
+
exports.de_GetDocumentWithContentAndChunksCommand = de_GetDocumentWithContentAndChunksCommand;
|
|
899
|
+
const de_GetKnowledgeBaseCommand = async (output, context) => {
|
|
782
900
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
783
901
|
return de_CommandError(output, context);
|
|
784
902
|
}
|
|
@@ -787,15 +905,12 @@ const de_GetSyncStatusCommand = async (output, context) => {
|
|
|
787
905
|
});
|
|
788
906
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
789
907
|
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,
|
|
908
|
+
'knowledgeBase': smithy_client_1._json,
|
|
794
909
|
});
|
|
795
910
|
Object.assign(contents, doc);
|
|
796
911
|
return contents;
|
|
797
912
|
};
|
|
798
|
-
exports.
|
|
913
|
+
exports.de_GetKnowledgeBaseCommand = de_GetKnowledgeBaseCommand;
|
|
799
914
|
const de_ListDataSourcesCommand = async (output, context) => {
|
|
800
915
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
801
916
|
return de_CommandError(output, context);
|
|
@@ -811,7 +926,7 @@ const de_ListDataSourcesCommand = async (output, context) => {
|
|
|
811
926
|
return contents;
|
|
812
927
|
};
|
|
813
928
|
exports.de_ListDataSourcesCommand = de_ListDataSourcesCommand;
|
|
814
|
-
const
|
|
929
|
+
const de_ListDataSourceStatisticsCommand = async (output, context) => {
|
|
815
930
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
816
931
|
return de_CommandError(output, context);
|
|
817
932
|
}
|
|
@@ -820,13 +935,14 @@ const de_ListDocumentsCommand = async (output, context) => {
|
|
|
820
935
|
});
|
|
821
936
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
822
937
|
const doc = (0, smithy_client_1.take)(data, {
|
|
823
|
-
'
|
|
938
|
+
'chunksCount': smithy_client_1.expectInt32,
|
|
939
|
+
'documentsCount': smithy_client_1.expectInt32,
|
|
824
940
|
});
|
|
825
941
|
Object.assign(contents, doc);
|
|
826
942
|
return contents;
|
|
827
943
|
};
|
|
828
|
-
exports.
|
|
829
|
-
const
|
|
944
|
+
exports.de_ListDataSourceStatisticsCommand = de_ListDataSourceStatisticsCommand;
|
|
945
|
+
const de_ListDataSourceSynchronizationLogsCommand = async (output, context) => {
|
|
830
946
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
831
947
|
return de_CommandError(output, context);
|
|
832
948
|
}
|
|
@@ -835,13 +951,13 @@ const de_ListKnowledgeBasesCommand = async (output, context) => {
|
|
|
835
951
|
});
|
|
836
952
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
837
953
|
const doc = (0, smithy_client_1.take)(data, {
|
|
838
|
-
'
|
|
954
|
+
'logs': smithy_client_1._json,
|
|
839
955
|
});
|
|
840
956
|
Object.assign(contents, doc);
|
|
841
957
|
return contents;
|
|
842
958
|
};
|
|
843
|
-
exports.
|
|
844
|
-
const
|
|
959
|
+
exports.de_ListDataSourceSynchronizationLogsCommand = de_ListDataSourceSynchronizationLogsCommand;
|
|
960
|
+
const de_ListDocumentsCommand = async (output, context) => {
|
|
845
961
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
846
962
|
return de_CommandError(output, context);
|
|
847
963
|
}
|
|
@@ -850,15 +966,28 @@ const de_QueryKnowledgeBaseCommand = async (output, context) => {
|
|
|
850
966
|
});
|
|
851
967
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
852
968
|
const doc = (0, smithy_client_1.take)(data, {
|
|
853
|
-
'
|
|
854
|
-
|
|
855
|
-
|
|
969
|
+
'documents': smithy_client_1._json,
|
|
970
|
+
});
|
|
971
|
+
Object.assign(contents, doc);
|
|
972
|
+
return contents;
|
|
973
|
+
};
|
|
974
|
+
exports.de_ListDocumentsCommand = de_ListDocumentsCommand;
|
|
975
|
+
const de_ListKnowledgeBasesCommand = async (output, context) => {
|
|
976
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
977
|
+
return de_CommandError(output, context);
|
|
978
|
+
}
|
|
979
|
+
const contents = (0, smithy_client_1.map)({
|
|
980
|
+
$metadata: deserializeMetadata(output),
|
|
981
|
+
});
|
|
982
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
983
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
984
|
+
'knowledgeBases': smithy_client_1._json,
|
|
856
985
|
});
|
|
857
986
|
Object.assign(contents, doc);
|
|
858
987
|
return contents;
|
|
859
988
|
};
|
|
860
|
-
exports.
|
|
861
|
-
const
|
|
989
|
+
exports.de_ListKnowledgeBasesCommand = de_ListKnowledgeBasesCommand;
|
|
990
|
+
const de_ListSearchQueriesHistoryCommand = async (output, context) => {
|
|
862
991
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
863
992
|
return de_CommandError(output, context);
|
|
864
993
|
}
|
|
@@ -867,12 +996,12 @@ const de_SearchHistoryCommand = async (output, context) => {
|
|
|
867
996
|
});
|
|
868
997
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
869
998
|
const doc = (0, smithy_client_1.take)(data, {
|
|
870
|
-
'results': _ =>
|
|
999
|
+
'results': _ => de_SearchHistoryResultsList(_, context),
|
|
871
1000
|
});
|
|
872
1001
|
Object.assign(contents, doc);
|
|
873
1002
|
return contents;
|
|
874
1003
|
};
|
|
875
|
-
exports.
|
|
1004
|
+
exports.de_ListSearchQueriesHistoryCommand = de_ListSearchQueriesHistoryCommand;
|
|
876
1005
|
const de_SearchKnowledgeBaseCommand = async (output, context) => {
|
|
877
1006
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
878
1007
|
return de_CommandError(output, context);
|
|
@@ -1077,7 +1206,6 @@ const se_DataSourceConfig = (input, context) => {
|
|
|
1077
1206
|
confluence: value => ({ "confluence": (0, smithy_client_1._json)(value) }),
|
|
1078
1207
|
files: value => ({ "files": se_Document(value, context) }),
|
|
1079
1208
|
gdrive: value => ({ "gdrive": (0, smithy_client_1._json)(value) }),
|
|
1080
|
-
proxy: value => ({ "proxy": se_ProxyConfig(value, context) }),
|
|
1081
1209
|
_: (name, value) => ({ [name]: value })
|
|
1082
1210
|
});
|
|
1083
1211
|
};
|
|
@@ -1089,34 +1217,21 @@ const se_DescribeDataSourceParameters = (input, context) => {
|
|
|
1089
1217
|
'proxy': _ => se_Document(_, context),
|
|
1090
1218
|
});
|
|
1091
1219
|
};
|
|
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) => {
|
|
1220
|
+
const se_SearchKnowledgeBaseResult = (input, context) => {
|
|
1101
1221
|
return (0, smithy_client_1.take)(input, {
|
|
1102
|
-
'
|
|
1103
|
-
'
|
|
1104
|
-
'
|
|
1105
|
-
'
|
|
1106
|
-
'
|
|
1107
|
-
'
|
|
1108
|
-
'
|
|
1109
|
-
'
|
|
1110
|
-
'username': [],
|
|
1222
|
+
'content': [],
|
|
1223
|
+
'dataSourceId': [],
|
|
1224
|
+
'dataSourceType': [],
|
|
1225
|
+
'documentHierarchy': smithy_client_1._json,
|
|
1226
|
+
'documentId': [],
|
|
1227
|
+
'documentTitle': [],
|
|
1228
|
+
'documentUrl': [],
|
|
1229
|
+
'score': smithy_client_1.serializeFloat,
|
|
1111
1230
|
});
|
|
1112
1231
|
};
|
|
1113
|
-
const
|
|
1114
|
-
return (
|
|
1115
|
-
|
|
1116
|
-
'searchStrategy': [],
|
|
1117
|
-
'threshold': smithy_client_1.serializeFloat,
|
|
1118
|
-
'topK': [],
|
|
1119
|
-
'useQueryOptimization': [],
|
|
1232
|
+
const se_SearchKnowledgeBaseResults = (input, context) => {
|
|
1233
|
+
return input.filter((e) => e != null).map(entry => {
|
|
1234
|
+
return se_SearchKnowledgeBaseResult(entry, context);
|
|
1120
1235
|
});
|
|
1121
1236
|
};
|
|
1122
1237
|
const de_Document = (output, context) => {
|
|
@@ -1138,11 +1253,6 @@ const de_DataSourceConfig = (output, context) => {
|
|
|
1138
1253
|
gdrive: (0, smithy_client_1._json)(output.gdrive)
|
|
1139
1254
|
};
|
|
1140
1255
|
}
|
|
1141
|
-
if (output.proxy != null) {
|
|
1142
|
-
return {
|
|
1143
|
-
proxy: de_ProxyConfig(output.proxy, context)
|
|
1144
|
-
};
|
|
1145
|
-
}
|
|
1146
1256
|
return { $unknown: Object.entries(output)[0] };
|
|
1147
1257
|
};
|
|
1148
1258
|
const de_DataSourceItem = (output, context) => {
|
|
@@ -1151,14 +1261,9 @@ const de_DataSourceItem = (output, context) => {
|
|
|
1151
1261
|
'config': (_) => de_DataSourceConfig((0, core_1.awsExpectUnion)(_), context),
|
|
1152
1262
|
'createdAt': smithy_client_1.expectString,
|
|
1153
1263
|
'description': smithy_client_1.expectString,
|
|
1154
|
-
'documentsCount': smithy_client_1.expectInt32,
|
|
1155
1264
|
'id': smithy_client_1.expectString,
|
|
1156
|
-
'lastSyncErrorMessage': smithy_client_1.expectString,
|
|
1157
|
-
'lastSyncMode': smithy_client_1.expectString,
|
|
1158
|
-
'lastSyncedAt': smithy_client_1.expectString,
|
|
1159
1265
|
'name': smithy_client_1.expectString,
|
|
1160
1266
|
'syncSchedule': smithy_client_1.expectString,
|
|
1161
|
-
'syncStatus': smithy_client_1.expectString,
|
|
1162
1267
|
'type': smithy_client_1.expectString,
|
|
1163
1268
|
'updatedAt': smithy_client_1.expectString,
|
|
1164
1269
|
});
|
|
@@ -1177,20 +1282,7 @@ const de_DescribeDataSourceResult = (output, context) => {
|
|
|
1177
1282
|
'proxy': (_) => de_Document(_, context),
|
|
1178
1283
|
});
|
|
1179
1284
|
};
|
|
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) => {
|
|
1285
|
+
const de_SearchHistoryResultsList = (output, context) => {
|
|
1194
1286
|
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1195
1287
|
return de_Document(entry, context);
|
|
1196
1288
|
});
|
|
@@ -1201,6 +1293,7 @@ const de_SearchKnowledgeBaseResult = (output, context) => {
|
|
|
1201
1293
|
'content': smithy_client_1.expectString,
|
|
1202
1294
|
'dataSourceId': smithy_client_1.expectString,
|
|
1203
1295
|
'dataSourceType': smithy_client_1.expectString,
|
|
1296
|
+
'documentHierarchy': smithy_client_1._json,
|
|
1204
1297
|
'documentId': smithy_client_1.expectString,
|
|
1205
1298
|
'documentTitle': smithy_client_1.expectString,
|
|
1206
1299
|
'documentUrl': smithy_client_1.expectString,
|
|
@@ -1223,15 +1316,10 @@ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBo
|
|
|
1223
1316
|
const _c = "company";
|
|
1224
1317
|
const _cI = "companyId";
|
|
1225
1318
|
const _dT = "documentType";
|
|
1226
|
-
const _eSI = "externalSessionId";
|
|
1227
1319
|
const _l = "limit";
|
|
1228
1320
|
const _lL = "logLevel";
|
|
1229
1321
|
const _o = "offset";
|
|
1230
1322
|
const _s = "sort";
|
|
1231
1323
|
const _sT = "syncType";
|
|
1232
|
-
const _sU = "searchUser";
|
|
1233
1324
|
const _se = "search";
|
|
1234
|
-
const _wC = "
|
|
1235
|
-
const _wCi = "withChunks";
|
|
1236
|
-
const _xesi = "x-external-session-id";
|
|
1237
|
-
const _xsu = "x-search-user";
|
|
1325
|
+
const _wC = "withChunks";
|