@wildix/wim-knowledge-base-client 0.0.54 → 0.0.55
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.
|
@@ -10,7 +10,7 @@ const smithy_client_1 = require("@smithy/smithy-client");
|
|
|
10
10
|
const se_CleanDataSourceCommand = async (input, context) => {
|
|
11
11
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
12
12
|
const headers = {};
|
|
13
|
-
b.bp("/api/v1/
|
|
13
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/clean");
|
|
14
14
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
15
15
|
const query = (0, smithy_client_1.map)({
|
|
16
16
|
[_c]: [, input[_cI]],
|
|
@@ -26,7 +26,7 @@ exports.se_CleanDataSourceCommand = se_CleanDataSourceCommand;
|
|
|
26
26
|
const se_CloneDataSourceCommand = async (input, context) => {
|
|
27
27
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
28
28
|
const headers = {};
|
|
29
|
-
b.bp("/api/v1/
|
|
29
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/clone");
|
|
30
30
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
31
31
|
const query = (0, smithy_client_1.map)({
|
|
32
32
|
[_c]: [, input[_cI]],
|
|
@@ -44,7 +44,7 @@ const se_ConfigureDataSourceCommand = async (input, context) => {
|
|
|
44
44
|
const headers = {
|
|
45
45
|
'content-type': 'application/json',
|
|
46
46
|
};
|
|
47
|
-
b.bp("/api/v1/
|
|
47
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/configure");
|
|
48
48
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
49
49
|
const query = (0, smithy_client_1.map)({
|
|
50
50
|
[_c]: [, input[_cI]],
|
|
@@ -66,7 +66,7 @@ const se_CreateDataSourceCommand = async (input, context) => {
|
|
|
66
66
|
const headers = {
|
|
67
67
|
'content-type': 'application/json',
|
|
68
68
|
};
|
|
69
|
-
b.bp("/api/v1/
|
|
69
|
+
b.bp("/api/v1/data-sources");
|
|
70
70
|
const query = (0, smithy_client_1.map)({
|
|
71
71
|
[_c]: [, input[_cI]],
|
|
72
72
|
});
|
|
@@ -88,7 +88,7 @@ const se_CreateDocumentCommand = async (input, context) => {
|
|
|
88
88
|
const headers = {
|
|
89
89
|
'content-type': 'application/json',
|
|
90
90
|
};
|
|
91
|
-
b.bp("/api/v1/
|
|
91
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/documents");
|
|
92
92
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
93
93
|
const query = (0, smithy_client_1.map)({
|
|
94
94
|
[_c]: [, input[_cI]],
|
|
@@ -135,7 +135,7 @@ exports.se_CreateKnowledgeBaseCommand = se_CreateKnowledgeBaseCommand;
|
|
|
135
135
|
const se_DeleteDataSourceCommand = async (input, context) => {
|
|
136
136
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
137
137
|
const headers = {};
|
|
138
|
-
b.bp("/api/v1/
|
|
138
|
+
b.bp("/api/v1/data-sources/{dataSourceId}");
|
|
139
139
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
140
140
|
const query = (0, smithy_client_1.map)({
|
|
141
141
|
[_c]: [, input[_cI]],
|
|
@@ -151,7 +151,7 @@ exports.se_DeleteDataSourceCommand = se_DeleteDataSourceCommand;
|
|
|
151
151
|
const se_DeleteDocumentCommand = async (input, context) => {
|
|
152
152
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
153
153
|
const headers = {};
|
|
154
|
-
b.bp("/api/v1/
|
|
154
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/documents/{documentId}");
|
|
155
155
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
156
156
|
b.p('documentId', () => input.documentId, '{documentId}', false);
|
|
157
157
|
const query = (0, smithy_client_1.map)({
|
|
@@ -186,7 +186,7 @@ const se_DescribeDataSourceCommand = async (input, context) => {
|
|
|
186
186
|
const headers = {
|
|
187
187
|
'content-type': 'application/json',
|
|
188
188
|
};
|
|
189
|
-
b.bp("/api/v1/
|
|
189
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/describe");
|
|
190
190
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
191
191
|
const query = (0, smithy_client_1.map)({
|
|
192
192
|
[_c]: [, input[_cI]],
|
|
@@ -230,7 +230,7 @@ exports.se_GenerateSearchAnswerCommand = se_GenerateSearchAnswerCommand;
|
|
|
230
230
|
const se_GetDataSourceCommand = async (input, context) => {
|
|
231
231
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
232
232
|
const headers = {};
|
|
233
|
-
b.bp("/api/v1/
|
|
233
|
+
b.bp("/api/v1/data-sources/{dataSourceId}");
|
|
234
234
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
235
235
|
const query = (0, smithy_client_1.map)({
|
|
236
236
|
[_c]: [, input[_cI]],
|
|
@@ -246,7 +246,7 @@ exports.se_GetDataSourceCommand = se_GetDataSourceCommand;
|
|
|
246
246
|
const se_GetDataSourceSyncStatusCommand = async (input, context) => {
|
|
247
247
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
248
248
|
const headers = {};
|
|
249
|
-
b.bp("/api/v1/
|
|
249
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/sync-status");
|
|
250
250
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
251
251
|
const query = (0, smithy_client_1.map)({
|
|
252
252
|
[_c]: [, input[_cI]],
|
|
@@ -262,7 +262,7 @@ exports.se_GetDataSourceSyncStatusCommand = se_GetDataSourceSyncStatusCommand;
|
|
|
262
262
|
const se_GetDocumentCommand = async (input, context) => {
|
|
263
263
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
264
264
|
const headers = {};
|
|
265
|
-
b.bp("/api/v1/
|
|
265
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/documents/{documentId}");
|
|
266
266
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
267
267
|
b.p('documentId', () => input.documentId, '{documentId}', false);
|
|
268
268
|
const query = (0, smithy_client_1.map)({
|
|
@@ -279,7 +279,7 @@ exports.se_GetDocumentCommand = se_GetDocumentCommand;
|
|
|
279
279
|
const se_GetDocumentChunksCommand = async (input, context) => {
|
|
280
280
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
281
281
|
const headers = {};
|
|
282
|
-
b.bp("/api/v1/
|
|
282
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/documents/{documentId}/chunks");
|
|
283
283
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
284
284
|
b.p('documentId', () => input.documentId, '{documentId}', false);
|
|
285
285
|
const query = (0, smithy_client_1.map)({
|
|
@@ -296,7 +296,7 @@ exports.se_GetDocumentChunksCommand = se_GetDocumentChunksCommand;
|
|
|
296
296
|
const se_GetDocumentDownloadUrlCommand = async (input, context) => {
|
|
297
297
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
298
298
|
const headers = {};
|
|
299
|
-
b.bp("/api/v1/
|
|
299
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/documents/{documentId}/download-url");
|
|
300
300
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
301
301
|
b.p('documentId', () => input.documentId, '{documentId}', false);
|
|
302
302
|
const query = (0, smithy_client_1.map)({
|
|
@@ -313,7 +313,7 @@ exports.se_GetDocumentDownloadUrlCommand = se_GetDocumentDownloadUrlCommand;
|
|
|
313
313
|
const se_GetDocumentMarkdownCommand = async (input, context) => {
|
|
314
314
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
315
315
|
const headers = {};
|
|
316
|
-
b.bp("/api/v1/
|
|
316
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/documents/{documentId}/markdown");
|
|
317
317
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
318
318
|
b.p('documentId', () => input.documentId, '{documentId}', false);
|
|
319
319
|
const query = (0, smithy_client_1.map)({
|
|
@@ -330,7 +330,7 @@ exports.se_GetDocumentMarkdownCommand = se_GetDocumentMarkdownCommand;
|
|
|
330
330
|
const se_GetDocumentUploadUrlCommand = async (input, context) => {
|
|
331
331
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
332
332
|
const headers = {};
|
|
333
|
-
b.bp("/api/v1/
|
|
333
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/documents/{documentId}/upload-url");
|
|
334
334
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
335
335
|
b.p('documentId', () => input.documentId, '{documentId}', false);
|
|
336
336
|
const query = (0, smithy_client_1.map)({
|
|
@@ -347,7 +347,7 @@ exports.se_GetDocumentUploadUrlCommand = se_GetDocumentUploadUrlCommand;
|
|
|
347
347
|
const se_GetDocumentWithContentAndChunksCommand = async (input, context) => {
|
|
348
348
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
349
349
|
const headers = {};
|
|
350
|
-
b.bp("/api/v1/
|
|
350
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/documents/{documentId}/with-content-and-chunks");
|
|
351
351
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
352
352
|
b.p('documentId', () => input.documentId, '{documentId}', false);
|
|
353
353
|
const query = (0, smithy_client_1.map)({
|
|
@@ -380,7 +380,7 @@ exports.se_GetKnowledgeBaseCommand = se_GetKnowledgeBaseCommand;
|
|
|
380
380
|
const se_ListDataSourcesCommand = async (input, context) => {
|
|
381
381
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
382
382
|
const headers = {};
|
|
383
|
-
b.bp("/api/v1/
|
|
383
|
+
b.bp("/api/v1/data-sources");
|
|
384
384
|
const query = (0, smithy_client_1.map)({
|
|
385
385
|
[_c]: [, input[_cI]],
|
|
386
386
|
});
|
|
@@ -395,7 +395,7 @@ exports.se_ListDataSourcesCommand = se_ListDataSourcesCommand;
|
|
|
395
395
|
const se_ListDataSourceStatisticsCommand = async (input, context) => {
|
|
396
396
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
397
397
|
const headers = {};
|
|
398
|
-
b.bp("/api/v1/
|
|
398
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/statistics");
|
|
399
399
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
400
400
|
const query = (0, smithy_client_1.map)({
|
|
401
401
|
[_c]: [, input[_cI]],
|
|
@@ -411,7 +411,7 @@ exports.se_ListDataSourceStatisticsCommand = se_ListDataSourceStatisticsCommand;
|
|
|
411
411
|
const se_ListDataSourceSynchronizationLogsCommand = async (input, context) => {
|
|
412
412
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
413
413
|
const headers = {};
|
|
414
|
-
b.bp("/api/v1/
|
|
414
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/sync-logs");
|
|
415
415
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
416
416
|
const query = (0, smithy_client_1.map)({
|
|
417
417
|
[_c]: [, input[_cI]],
|
|
@@ -432,7 +432,7 @@ exports.se_ListDataSourceSynchronizationLogsCommand = se_ListDataSourceSynchroni
|
|
|
432
432
|
const se_ListDocumentsCommand = async (input, context) => {
|
|
433
433
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
434
434
|
const headers = {};
|
|
435
|
-
b.bp("/api/v1/
|
|
435
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/documents");
|
|
436
436
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
437
437
|
const query = (0, smithy_client_1.map)({
|
|
438
438
|
[_c]: [, input[_cI]],
|
|
@@ -518,7 +518,7 @@ exports.se_SearchKnowledgeBaseCommand = se_SearchKnowledgeBaseCommand;
|
|
|
518
518
|
const se_StartSyncDataSourceCommand = async (input, context) => {
|
|
519
519
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
520
520
|
const headers = {};
|
|
521
|
-
b.bp("/api/v1/
|
|
521
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/start-sync");
|
|
522
522
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
523
523
|
const query = (0, smithy_client_1.map)({
|
|
524
524
|
[_c]: [, input[_cI]],
|
|
@@ -535,7 +535,7 @@ exports.se_StartSyncDataSourceCommand = se_StartSyncDataSourceCommand;
|
|
|
535
535
|
const se_StopSyncDataSourceCommand = async (input, context) => {
|
|
536
536
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
537
537
|
const headers = {};
|
|
538
|
-
b.bp("/api/v1/
|
|
538
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/stop-sync");
|
|
539
539
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
540
540
|
const query = (0, smithy_client_1.map)({
|
|
541
541
|
[_c]: [, input[_cI]],
|
|
@@ -553,7 +553,7 @@ const se_UpdateDataSourceCommand = async (input, context) => {
|
|
|
553
553
|
const headers = {
|
|
554
554
|
'content-type': 'application/json',
|
|
555
555
|
};
|
|
556
|
-
b.bp("/api/v1/
|
|
556
|
+
b.bp("/api/v1/data-sources/{dataSourceId}");
|
|
557
557
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
558
558
|
const query = (0, smithy_client_1.map)({
|
|
559
559
|
[_c]: [, input[_cI]],
|
|
@@ -575,7 +575,7 @@ const se_UpdateDocumentCommand = async (input, context) => {
|
|
|
575
575
|
const headers = {
|
|
576
576
|
'content-type': 'application/json',
|
|
577
577
|
};
|
|
578
|
-
b.bp("/api/v1/
|
|
578
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/documents/{documentId}");
|
|
579
579
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
580
580
|
b.p('documentId', () => input.documentId, '{documentId}', false);
|
|
581
581
|
const query = (0, smithy_client_1.map)({
|
|
@@ -6,7 +6,7 @@ import { decorateServiceException as __decorateServiceException, expectInt32 as
|
|
|
6
6
|
export const se_CleanDataSourceCommand = async (input, context) => {
|
|
7
7
|
const b = rb(input, context);
|
|
8
8
|
const headers = {};
|
|
9
|
-
b.bp("/api/v1/
|
|
9
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/clean");
|
|
10
10
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
11
11
|
const query = map({
|
|
12
12
|
[_c]: [, input[_cI]],
|
|
@@ -21,7 +21,7 @@ export const se_CleanDataSourceCommand = async (input, context) => {
|
|
|
21
21
|
export const se_CloneDataSourceCommand = async (input, context) => {
|
|
22
22
|
const b = rb(input, context);
|
|
23
23
|
const headers = {};
|
|
24
|
-
b.bp("/api/v1/
|
|
24
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/clone");
|
|
25
25
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
26
26
|
const query = map({
|
|
27
27
|
[_c]: [, input[_cI]],
|
|
@@ -38,7 +38,7 @@ export const se_ConfigureDataSourceCommand = async (input, context) => {
|
|
|
38
38
|
const headers = {
|
|
39
39
|
'content-type': 'application/json',
|
|
40
40
|
};
|
|
41
|
-
b.bp("/api/v1/
|
|
41
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/configure");
|
|
42
42
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
43
43
|
const query = map({
|
|
44
44
|
[_c]: [, input[_cI]],
|
|
@@ -59,7 +59,7 @@ export const se_CreateDataSourceCommand = async (input, context) => {
|
|
|
59
59
|
const headers = {
|
|
60
60
|
'content-type': 'application/json',
|
|
61
61
|
};
|
|
62
|
-
b.bp("/api/v1/
|
|
62
|
+
b.bp("/api/v1/data-sources");
|
|
63
63
|
const query = map({
|
|
64
64
|
[_c]: [, input[_cI]],
|
|
65
65
|
});
|
|
@@ -80,7 +80,7 @@ export const se_CreateDocumentCommand = async (input, context) => {
|
|
|
80
80
|
const headers = {
|
|
81
81
|
'content-type': 'application/json',
|
|
82
82
|
};
|
|
83
|
-
b.bp("/api/v1/
|
|
83
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/documents");
|
|
84
84
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
85
85
|
const query = map({
|
|
86
86
|
[_c]: [, input[_cI]],
|
|
@@ -125,7 +125,7 @@ export const se_CreateKnowledgeBaseCommand = async (input, context) => {
|
|
|
125
125
|
export const se_DeleteDataSourceCommand = async (input, context) => {
|
|
126
126
|
const b = rb(input, context);
|
|
127
127
|
const headers = {};
|
|
128
|
-
b.bp("/api/v1/
|
|
128
|
+
b.bp("/api/v1/data-sources/{dataSourceId}");
|
|
129
129
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
130
130
|
const query = map({
|
|
131
131
|
[_c]: [, input[_cI]],
|
|
@@ -140,7 +140,7 @@ export const se_DeleteDataSourceCommand = async (input, context) => {
|
|
|
140
140
|
export const se_DeleteDocumentCommand = async (input, context) => {
|
|
141
141
|
const b = rb(input, context);
|
|
142
142
|
const headers = {};
|
|
143
|
-
b.bp("/api/v1/
|
|
143
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/documents/{documentId}");
|
|
144
144
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
145
145
|
b.p('documentId', () => input.documentId, '{documentId}', false);
|
|
146
146
|
const query = map({
|
|
@@ -173,7 +173,7 @@ export const se_DescribeDataSourceCommand = async (input, context) => {
|
|
|
173
173
|
const headers = {
|
|
174
174
|
'content-type': 'application/json',
|
|
175
175
|
};
|
|
176
|
-
b.bp("/api/v1/
|
|
176
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/describe");
|
|
177
177
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
178
178
|
const query = map({
|
|
179
179
|
[_c]: [, input[_cI]],
|
|
@@ -215,7 +215,7 @@ export const se_GenerateSearchAnswerCommand = async (input, context) => {
|
|
|
215
215
|
export const se_GetDataSourceCommand = async (input, context) => {
|
|
216
216
|
const b = rb(input, context);
|
|
217
217
|
const headers = {};
|
|
218
|
-
b.bp("/api/v1/
|
|
218
|
+
b.bp("/api/v1/data-sources/{dataSourceId}");
|
|
219
219
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
220
220
|
const query = map({
|
|
221
221
|
[_c]: [, input[_cI]],
|
|
@@ -230,7 +230,7 @@ export const se_GetDataSourceCommand = async (input, context) => {
|
|
|
230
230
|
export const se_GetDataSourceSyncStatusCommand = async (input, context) => {
|
|
231
231
|
const b = rb(input, context);
|
|
232
232
|
const headers = {};
|
|
233
|
-
b.bp("/api/v1/
|
|
233
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/sync-status");
|
|
234
234
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
235
235
|
const query = map({
|
|
236
236
|
[_c]: [, input[_cI]],
|
|
@@ -245,7 +245,7 @@ export const se_GetDataSourceSyncStatusCommand = async (input, context) => {
|
|
|
245
245
|
export const se_GetDocumentCommand = async (input, context) => {
|
|
246
246
|
const b = rb(input, context);
|
|
247
247
|
const headers = {};
|
|
248
|
-
b.bp("/api/v1/
|
|
248
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/documents/{documentId}");
|
|
249
249
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
250
250
|
b.p('documentId', () => input.documentId, '{documentId}', false);
|
|
251
251
|
const query = map({
|
|
@@ -261,7 +261,7 @@ export const se_GetDocumentCommand = async (input, context) => {
|
|
|
261
261
|
export const se_GetDocumentChunksCommand = async (input, context) => {
|
|
262
262
|
const b = rb(input, context);
|
|
263
263
|
const headers = {};
|
|
264
|
-
b.bp("/api/v1/
|
|
264
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/documents/{documentId}/chunks");
|
|
265
265
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
266
266
|
b.p('documentId', () => input.documentId, '{documentId}', false);
|
|
267
267
|
const query = map({
|
|
@@ -277,7 +277,7 @@ export const se_GetDocumentChunksCommand = async (input, context) => {
|
|
|
277
277
|
export const se_GetDocumentDownloadUrlCommand = async (input, context) => {
|
|
278
278
|
const b = rb(input, context);
|
|
279
279
|
const headers = {};
|
|
280
|
-
b.bp("/api/v1/
|
|
280
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/documents/{documentId}/download-url");
|
|
281
281
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
282
282
|
b.p('documentId', () => input.documentId, '{documentId}', false);
|
|
283
283
|
const query = map({
|
|
@@ -293,7 +293,7 @@ export const se_GetDocumentDownloadUrlCommand = async (input, context) => {
|
|
|
293
293
|
export const se_GetDocumentMarkdownCommand = async (input, context) => {
|
|
294
294
|
const b = rb(input, context);
|
|
295
295
|
const headers = {};
|
|
296
|
-
b.bp("/api/v1/
|
|
296
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/documents/{documentId}/markdown");
|
|
297
297
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
298
298
|
b.p('documentId', () => input.documentId, '{documentId}', false);
|
|
299
299
|
const query = map({
|
|
@@ -309,7 +309,7 @@ export const se_GetDocumentMarkdownCommand = async (input, context) => {
|
|
|
309
309
|
export const se_GetDocumentUploadUrlCommand = async (input, context) => {
|
|
310
310
|
const b = rb(input, context);
|
|
311
311
|
const headers = {};
|
|
312
|
-
b.bp("/api/v1/
|
|
312
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/documents/{documentId}/upload-url");
|
|
313
313
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
314
314
|
b.p('documentId', () => input.documentId, '{documentId}', false);
|
|
315
315
|
const query = map({
|
|
@@ -325,7 +325,7 @@ export const se_GetDocumentUploadUrlCommand = async (input, context) => {
|
|
|
325
325
|
export const se_GetDocumentWithContentAndChunksCommand = async (input, context) => {
|
|
326
326
|
const b = rb(input, context);
|
|
327
327
|
const headers = {};
|
|
328
|
-
b.bp("/api/v1/
|
|
328
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/documents/{documentId}/with-content-and-chunks");
|
|
329
329
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
330
330
|
b.p('documentId', () => input.documentId, '{documentId}', false);
|
|
331
331
|
const query = map({
|
|
@@ -356,7 +356,7 @@ export const se_GetKnowledgeBaseCommand = async (input, context) => {
|
|
|
356
356
|
export const se_ListDataSourcesCommand = async (input, context) => {
|
|
357
357
|
const b = rb(input, context);
|
|
358
358
|
const headers = {};
|
|
359
|
-
b.bp("/api/v1/
|
|
359
|
+
b.bp("/api/v1/data-sources");
|
|
360
360
|
const query = map({
|
|
361
361
|
[_c]: [, input[_cI]],
|
|
362
362
|
});
|
|
@@ -370,7 +370,7 @@ export const se_ListDataSourcesCommand = async (input, context) => {
|
|
|
370
370
|
export const se_ListDataSourceStatisticsCommand = async (input, context) => {
|
|
371
371
|
const b = rb(input, context);
|
|
372
372
|
const headers = {};
|
|
373
|
-
b.bp("/api/v1/
|
|
373
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/statistics");
|
|
374
374
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
375
375
|
const query = map({
|
|
376
376
|
[_c]: [, input[_cI]],
|
|
@@ -385,7 +385,7 @@ export const se_ListDataSourceStatisticsCommand = async (input, context) => {
|
|
|
385
385
|
export const se_ListDataSourceSynchronizationLogsCommand = async (input, context) => {
|
|
386
386
|
const b = rb(input, context);
|
|
387
387
|
const headers = {};
|
|
388
|
-
b.bp("/api/v1/
|
|
388
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/sync-logs");
|
|
389
389
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
390
390
|
const query = map({
|
|
391
391
|
[_c]: [, input[_cI]],
|
|
@@ -405,7 +405,7 @@ export const se_ListDataSourceSynchronizationLogsCommand = async (input, context
|
|
|
405
405
|
export const se_ListDocumentsCommand = async (input, context) => {
|
|
406
406
|
const b = rb(input, context);
|
|
407
407
|
const headers = {};
|
|
408
|
-
b.bp("/api/v1/
|
|
408
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/documents");
|
|
409
409
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
410
410
|
const query = map({
|
|
411
411
|
[_c]: [, input[_cI]],
|
|
@@ -487,7 +487,7 @@ export const se_SearchKnowledgeBaseCommand = async (input, context) => {
|
|
|
487
487
|
export const se_StartSyncDataSourceCommand = async (input, context) => {
|
|
488
488
|
const b = rb(input, context);
|
|
489
489
|
const headers = {};
|
|
490
|
-
b.bp("/api/v1/
|
|
490
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/start-sync");
|
|
491
491
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
492
492
|
const query = map({
|
|
493
493
|
[_c]: [, input[_cI]],
|
|
@@ -503,7 +503,7 @@ export const se_StartSyncDataSourceCommand = async (input, context) => {
|
|
|
503
503
|
export const se_StopSyncDataSourceCommand = async (input, context) => {
|
|
504
504
|
const b = rb(input, context);
|
|
505
505
|
const headers = {};
|
|
506
|
-
b.bp("/api/v1/
|
|
506
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/stop-sync");
|
|
507
507
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
508
508
|
const query = map({
|
|
509
509
|
[_c]: [, input[_cI]],
|
|
@@ -520,7 +520,7 @@ export const se_UpdateDataSourceCommand = async (input, context) => {
|
|
|
520
520
|
const headers = {
|
|
521
521
|
'content-type': 'application/json',
|
|
522
522
|
};
|
|
523
|
-
b.bp("/api/v1/
|
|
523
|
+
b.bp("/api/v1/data-sources/{dataSourceId}");
|
|
524
524
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
525
525
|
const query = map({
|
|
526
526
|
[_c]: [, input[_cI]],
|
|
@@ -541,7 +541,7 @@ export const se_UpdateDocumentCommand = async (input, context) => {
|
|
|
541
541
|
const headers = {
|
|
542
542
|
'content-type': 'application/json',
|
|
543
543
|
};
|
|
544
|
-
b.bp("/api/v1/
|
|
544
|
+
b.bp("/api/v1/data-sources/{dataSourceId}/documents/{documentId}");
|
|
545
545
|
b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
|
|
546
546
|
b.p('documentId', () => input.documentId, '{documentId}', false);
|
|
547
547
|
const query = map({
|
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.
|
|
4
|
+
"version": "0.0.55",
|
|
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",
|