@alicloud/bailian20231229 2.8.1 → 2.8.2
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/client.d.ts +22 -22
- package/dist/client.js +25 -22
- package/dist/client.js.map +1 -1
- package/dist/models/CreateIndexRequest.d.ts +48 -0
- package/dist/models/CreateIndexRequest.js +2 -0
- package/dist/models/CreateIndexRequest.js.map +1 -1
- package/dist/models/CreateIndexShrinkRequest.d.ts +13 -0
- package/dist/models/CreateIndexShrinkRequest.js +2 -0
- package/dist/models/CreateIndexShrinkRequest.js.map +1 -1
- package/dist/models/HighCodeDeployResponseBody.d.ts +1 -1
- package/package.json +1 -1
- package/src/client.ts +26 -22
- package/src/models/CreateIndexRequest.ts +50 -0
- package/src/models/CreateIndexShrinkRequest.ts +15 -0
- package/src/models/HighCodeDeployResponseBody.ts +1 -1
package/src/client.ts
CHANGED
|
@@ -261,7 +261,7 @@ export default class Client extends OpenApi {
|
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
/**
|
|
264
|
-
* Applies for a document upload lease to upload a document.
|
|
264
|
+
* Applies for a document upload lease to upload a document. You cannot use the API to upload structured documents. Use the console instead.
|
|
265
265
|
*
|
|
266
266
|
* @remarks
|
|
267
267
|
* This operation returns an HTTP URL that can be used to upload an unstructured document (the lease) and parameters required for the upload. Structured documents are not supported.
|
|
@@ -316,7 +316,7 @@ export default class Client extends OpenApi {
|
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
/**
|
|
319
|
-
* Applies for a document upload lease to upload a document.
|
|
319
|
+
* Applies for a document upload lease to upload a document. You cannot use the API to upload structured documents. Use the console instead.
|
|
320
320
|
*
|
|
321
321
|
* @remarks
|
|
322
322
|
* This operation returns an HTTP URL that can be used to upload an unstructured document (the lease) and parameters required for the upload. Structured documents are not supported.
|
|
@@ -649,6 +649,10 @@ export default class Client extends OpenApi {
|
|
|
649
649
|
query["TableIds"] = request.tableIdsShrink;
|
|
650
650
|
}
|
|
651
651
|
|
|
652
|
+
if (!$dara.isNull(request.channelType)) {
|
|
653
|
+
query["channelType"] = request.channelType;
|
|
654
|
+
}
|
|
655
|
+
|
|
652
656
|
if (!$dara.isNull(request.chunkMode)) {
|
|
653
657
|
query["chunkMode"] = request.chunkMode;
|
|
654
658
|
}
|
|
@@ -908,7 +912,7 @@ export default class Client extends OpenApi {
|
|
|
908
912
|
}
|
|
909
913
|
|
|
910
914
|
/**
|
|
911
|
-
*
|
|
915
|
+
* Deletes a specified category permanently.
|
|
912
916
|
*
|
|
913
917
|
* @param headers - map
|
|
914
918
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -933,7 +937,7 @@ export default class Client extends OpenApi {
|
|
|
933
937
|
}
|
|
934
938
|
|
|
935
939
|
/**
|
|
936
|
-
*
|
|
940
|
+
* Deletes a specified category permanently.
|
|
937
941
|
* @returns DeleteCategoryResponse
|
|
938
942
|
*/
|
|
939
943
|
async deleteCategory(CategoryId: string, WorkspaceId: string): Promise<$_model.DeleteCategoryResponse> {
|
|
@@ -1020,7 +1024,7 @@ export default class Client extends OpenApi {
|
|
|
1020
1024
|
}
|
|
1021
1025
|
|
|
1022
1026
|
/**
|
|
1023
|
-
*
|
|
1027
|
+
* Deletes a specified unstructured document permanently. You cannot use the API to delete structured documents, see the Usage notes section of this topic.
|
|
1024
1028
|
*
|
|
1025
1029
|
* @param headers - map
|
|
1026
1030
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1045,7 +1049,7 @@ export default class Client extends OpenApi {
|
|
|
1045
1049
|
}
|
|
1046
1050
|
|
|
1047
1051
|
/**
|
|
1048
|
-
*
|
|
1052
|
+
* Deletes a specified unstructured document permanently. You cannot use the API to delete structured documents, see the Usage notes section of this topic.
|
|
1049
1053
|
* @returns DeleteFileResponse
|
|
1050
1054
|
*/
|
|
1051
1055
|
async deleteFile(FileId: string, WorkspaceId: string): Promise<$_model.DeleteFileResponse> {
|
|
@@ -1114,7 +1118,7 @@ export default class Client extends OpenApi {
|
|
|
1114
1118
|
}
|
|
1115
1119
|
|
|
1116
1120
|
/**
|
|
1117
|
-
* Deletes one or more documents from a specified unstructured knowledge base permanently.
|
|
1121
|
+
* Deletes one or more documents from a specified unstructured knowledge base permanently. You cannot use the API to delete structured documents, see the Usage notes section of this topic.
|
|
1118
1122
|
*
|
|
1119
1123
|
* @remarks
|
|
1120
1124
|
* Before you call this operation, make sure that your knowledge base is created and is not deleted. That is, the primary key ID of the knowledge base `IndexId` is valid.
|
|
@@ -1164,7 +1168,7 @@ export default class Client extends OpenApi {
|
|
|
1164
1168
|
}
|
|
1165
1169
|
|
|
1166
1170
|
/**
|
|
1167
|
-
* Deletes one or more documents from a specified unstructured knowledge base permanently.
|
|
1171
|
+
* Deletes one or more documents from a specified unstructured knowledge base permanently. You cannot use the API to delete structured documents, see the Usage notes section of this topic.
|
|
1168
1172
|
*
|
|
1169
1173
|
* @remarks
|
|
1170
1174
|
* Before you call this operation, make sure that your knowledge base is created and is not deleted. That is, the primary key ID of the knowledge base `IndexId` is valid.
|
|
@@ -1288,7 +1292,7 @@ export default class Client extends OpenApi {
|
|
|
1288
1292
|
}
|
|
1289
1293
|
|
|
1290
1294
|
/**
|
|
1291
|
-
*
|
|
1295
|
+
* Obtains the basic information of a document, including the document name, type, and status.
|
|
1292
1296
|
*
|
|
1293
1297
|
* @remarks
|
|
1294
1298
|
* Before you call this API, make sure that your document is uploaded to the [Data Management](https://bailian.console.aliyun.com/knowledge-base#/data-center) page of Alibaba Cloud Model Studio.
|
|
@@ -1319,7 +1323,7 @@ export default class Client extends OpenApi {
|
|
|
1319
1323
|
}
|
|
1320
1324
|
|
|
1321
1325
|
/**
|
|
1322
|
-
*
|
|
1326
|
+
* Obtains the basic information of a document, including the document name, type, and status.
|
|
1323
1327
|
*
|
|
1324
1328
|
* @remarks
|
|
1325
1329
|
* Before you call this API, make sure that your document is uploaded to the [Data Management](https://bailian.console.aliyun.com/knowledge-base#/data-center) page of Alibaba Cloud Model Studio.
|
|
@@ -1545,7 +1549,7 @@ export default class Client extends OpenApi {
|
|
|
1545
1549
|
}
|
|
1546
1550
|
|
|
1547
1551
|
/**
|
|
1548
|
-
*
|
|
1552
|
+
* \\<props="intl">Currently, this API is not supported.\\
|
|
1549
1553
|
*
|
|
1550
1554
|
* @param request - GetIndexMonitorRequest
|
|
1551
1555
|
* @param headers - map
|
|
@@ -1586,7 +1590,7 @@ export default class Client extends OpenApi {
|
|
|
1586
1590
|
}
|
|
1587
1591
|
|
|
1588
1592
|
/**
|
|
1589
|
-
*
|
|
1593
|
+
* \\<props="intl">Currently, this API is not supported.\\
|
|
1590
1594
|
*
|
|
1591
1595
|
* @param request - GetIndexMonitorRequest
|
|
1592
1596
|
* @returns GetIndexMonitorResponse
|
|
@@ -1848,7 +1852,7 @@ export default class Client extends OpenApi {
|
|
|
1848
1852
|
}
|
|
1849
1853
|
|
|
1850
1854
|
/**
|
|
1851
|
-
*
|
|
1855
|
+
* Lists the details about the next or multiple categories in a specified workspace.
|
|
1852
1856
|
*
|
|
1853
1857
|
* @param request - ListCategoryRequest
|
|
1854
1858
|
* @param headers - map
|
|
@@ -1897,7 +1901,7 @@ export default class Client extends OpenApi {
|
|
|
1897
1901
|
}
|
|
1898
1902
|
|
|
1899
1903
|
/**
|
|
1900
|
-
*
|
|
1904
|
+
* Lists the details about the next or multiple categories in a specified workspace.
|
|
1901
1905
|
*
|
|
1902
1906
|
* @param request - ListCategoryRequest
|
|
1903
1907
|
* @returns ListCategoryResponse
|
|
@@ -2189,7 +2193,7 @@ export default class Client extends OpenApi {
|
|
|
2189
2193
|
}
|
|
2190
2194
|
|
|
2191
2195
|
/**
|
|
2192
|
-
* Lists knowledge bases in a specified workspace.
|
|
2196
|
+
* Lists the details about the next or multiple knowledge bases in a specified workspace.
|
|
2193
2197
|
*
|
|
2194
2198
|
* @remarks
|
|
2195
2199
|
* This interface is idempotent.
|
|
@@ -2233,7 +2237,7 @@ export default class Client extends OpenApi {
|
|
|
2233
2237
|
}
|
|
2234
2238
|
|
|
2235
2239
|
/**
|
|
2236
|
-
* Lists knowledge bases in a specified workspace.
|
|
2240
|
+
* Lists the details about the next or multiple knowledge bases in a specified workspace.
|
|
2237
2241
|
*
|
|
2238
2242
|
* @remarks
|
|
2239
2243
|
* This interface is idempotent.
|
|
@@ -2581,7 +2585,7 @@ export default class Client extends OpenApi {
|
|
|
2581
2585
|
}
|
|
2582
2586
|
|
|
2583
2587
|
/**
|
|
2584
|
-
* Adds parsed documents to an unstructured knowledge base.
|
|
2588
|
+
* Adds parsed documents to an unstructured knowledge base. You cannot use the API to add knowledge to structured knowledge bases, see the Usage notes section of this topic.
|
|
2585
2589
|
*
|
|
2586
2590
|
* @remarks
|
|
2587
2591
|
* You must first upload documents to [Data Management](https://bailian.console.aliyun.com/#/data-center) and obtain the `FileId`. The documents are the knowledge source of the knowledge base. For more information, see [Import Data](https://www.alibabacloud.com/help/en/model-studio/user-guide/data-import-instructions).
|
|
@@ -2662,7 +2666,7 @@ export default class Client extends OpenApi {
|
|
|
2662
2666
|
}
|
|
2663
2667
|
|
|
2664
2668
|
/**
|
|
2665
|
-
* Adds parsed documents to an unstructured knowledge base.
|
|
2669
|
+
* Adds parsed documents to an unstructured knowledge base. You cannot use the API to add knowledge to structured knowledge bases, see the Usage notes section of this topic.
|
|
2666
2670
|
*
|
|
2667
2671
|
* @remarks
|
|
2668
2672
|
* You must first upload documents to [Data Management](https://bailian.console.aliyun.com/#/data-center) and obtain the `FileId`. The documents are the knowledge source of the knowledge base. For more information, see [Import Data](https://www.alibabacloud.com/help/en/model-studio/user-guide/data-import-instructions).
|
|
@@ -2964,7 +2968,7 @@ export default class Client extends OpenApi {
|
|
|
2964
2968
|
}
|
|
2965
2969
|
|
|
2966
2970
|
/**
|
|
2967
|
-
*
|
|
2971
|
+
* Updates the tags of a specified document.
|
|
2968
2972
|
*
|
|
2969
2973
|
* @param tmpReq - UpdateFileTagRequest
|
|
2970
2974
|
* @param headers - map
|
|
@@ -3003,7 +3007,7 @@ export default class Client extends OpenApi {
|
|
|
3003
3007
|
}
|
|
3004
3008
|
|
|
3005
3009
|
/**
|
|
3006
|
-
*
|
|
3010
|
+
* Updates the tags of a specified document.
|
|
3007
3011
|
*
|
|
3008
3012
|
* @param request - UpdateFileTagRequest
|
|
3009
3013
|
* @returns UpdateFileTagResponse
|
|
@@ -3015,7 +3019,7 @@ export default class Client extends OpenApi {
|
|
|
3015
3019
|
}
|
|
3016
3020
|
|
|
3017
3021
|
/**
|
|
3018
|
-
*
|
|
3022
|
+
* \\<props="intl">Currently, this API is not supported.\\
|
|
3019
3023
|
*
|
|
3020
3024
|
* @param request - UpdateIndexRequest
|
|
3021
3025
|
* @param headers - map
|
|
@@ -3076,7 +3080,7 @@ export default class Client extends OpenApi {
|
|
|
3076
3080
|
}
|
|
3077
3081
|
|
|
3078
3082
|
/**
|
|
3079
|
-
*
|
|
3083
|
+
* \\<props="intl">Currently, this API is not supported.\\
|
|
3080
3084
|
*
|
|
3081
3085
|
* @param request - UpdateIndexRequest
|
|
3082
3086
|
* @returns UpdateIndexResponse
|
|
@@ -3,10 +3,45 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class CreateIndexRequestColumns extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* > This parameter is not available. Do not specify this parameter.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* source_column_name1
|
|
12
|
+
*/
|
|
6
13
|
column?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* > This parameter is not available. Do not specify this parameter.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* true
|
|
20
|
+
*/
|
|
7
21
|
isRecall?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* > This parameter is not available. Do not specify this parameter.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* true
|
|
28
|
+
*/
|
|
8
29
|
isSearch?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* > This parameter is not available. Do not specify this parameter.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* index_column_name1
|
|
36
|
+
*/
|
|
9
37
|
name?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* > This parameter is not available. Do not specify this parameter.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* string
|
|
44
|
+
*/
|
|
10
45
|
type?: string;
|
|
11
46
|
static names(): { [key: string]: string } {
|
|
12
47
|
return {
|
|
@@ -249,6 +284,10 @@ export class CreateIndexRequest extends $dara.Model {
|
|
|
249
284
|
* 128
|
|
250
285
|
*/
|
|
251
286
|
chunkSize?: number;
|
|
287
|
+
/**
|
|
288
|
+
* @remarks
|
|
289
|
+
* > This parameter is not available. Do not specify this parameter.
|
|
290
|
+
*/
|
|
252
291
|
columns?: CreateIndexRequestColumns[];
|
|
253
292
|
/**
|
|
254
293
|
* @remarks
|
|
@@ -417,6 +456,11 @@ export class CreateIndexRequest extends $dara.Model {
|
|
|
417
456
|
* > This parameter is not available. Do not specify this parameter.
|
|
418
457
|
*/
|
|
419
458
|
tableIds?: string[];
|
|
459
|
+
/**
|
|
460
|
+
* @example
|
|
461
|
+
* connector
|
|
462
|
+
*/
|
|
463
|
+
channelType?: string;
|
|
420
464
|
/**
|
|
421
465
|
* @remarks
|
|
422
466
|
* > This parameter is not available. Do not specify this parameter.
|
|
@@ -425,6 +469,10 @@ export class CreateIndexRequest extends $dara.Model {
|
|
|
425
469
|
* regex
|
|
426
470
|
*/
|
|
427
471
|
chunkMode?: string;
|
|
472
|
+
/**
|
|
473
|
+
* @example
|
|
474
|
+
* conn_mysql_xxx_xxx
|
|
475
|
+
*/
|
|
428
476
|
connectId?: string;
|
|
429
477
|
database?: string;
|
|
430
478
|
datasourceCode?: string;
|
|
@@ -489,6 +537,7 @@ export class CreateIndexRequest extends $dara.Model {
|
|
|
489
537
|
sourceType: 'SourceType',
|
|
490
538
|
structureType: 'StructureType',
|
|
491
539
|
tableIds: 'TableIds',
|
|
540
|
+
channelType: 'channelType',
|
|
492
541
|
chunkMode: 'chunkMode',
|
|
493
542
|
connectId: 'connectId',
|
|
494
543
|
database: 'database',
|
|
@@ -525,6 +574,7 @@ export class CreateIndexRequest extends $dara.Model {
|
|
|
525
574
|
sourceType: 'string',
|
|
526
575
|
structureType: 'string',
|
|
527
576
|
tableIds: { 'type': 'array', 'itemType': 'string' },
|
|
577
|
+
channelType: 'string',
|
|
528
578
|
chunkMode: 'string',
|
|
529
579
|
connectId: 'string',
|
|
530
580
|
database: 'string',
|
|
@@ -20,6 +20,10 @@ export class CreateIndexShrinkRequest extends $dara.Model {
|
|
|
20
20
|
* 128
|
|
21
21
|
*/
|
|
22
22
|
chunkSize?: number;
|
|
23
|
+
/**
|
|
24
|
+
* @remarks
|
|
25
|
+
* > This parameter is not available. Do not specify this parameter.
|
|
26
|
+
*/
|
|
23
27
|
columnsShrink?: string;
|
|
24
28
|
/**
|
|
25
29
|
* @remarks
|
|
@@ -188,6 +192,11 @@ export class CreateIndexShrinkRequest extends $dara.Model {
|
|
|
188
192
|
* > This parameter is not available. Do not specify this parameter.
|
|
189
193
|
*/
|
|
190
194
|
tableIdsShrink?: string;
|
|
195
|
+
/**
|
|
196
|
+
* @example
|
|
197
|
+
* connector
|
|
198
|
+
*/
|
|
199
|
+
channelType?: string;
|
|
191
200
|
/**
|
|
192
201
|
* @remarks
|
|
193
202
|
* > This parameter is not available. Do not specify this parameter.
|
|
@@ -196,6 +205,10 @@ export class CreateIndexShrinkRequest extends $dara.Model {
|
|
|
196
205
|
* regex
|
|
197
206
|
*/
|
|
198
207
|
chunkMode?: string;
|
|
208
|
+
/**
|
|
209
|
+
* @example
|
|
210
|
+
* conn_mysql_xxx_xxx
|
|
211
|
+
*/
|
|
199
212
|
connectId?: string;
|
|
200
213
|
database?: string;
|
|
201
214
|
datasourceCode?: string;
|
|
@@ -260,6 +273,7 @@ export class CreateIndexShrinkRequest extends $dara.Model {
|
|
|
260
273
|
sourceType: 'SourceType',
|
|
261
274
|
structureType: 'StructureType',
|
|
262
275
|
tableIdsShrink: 'TableIds',
|
|
276
|
+
channelType: 'channelType',
|
|
263
277
|
chunkMode: 'chunkMode',
|
|
264
278
|
connectId: 'connectId',
|
|
265
279
|
database: 'database',
|
|
@@ -296,6 +310,7 @@ export class CreateIndexShrinkRequest extends $dara.Model {
|
|
|
296
310
|
sourceType: 'string',
|
|
297
311
|
structureType: 'string',
|
|
298
312
|
tableIdsShrink: 'string',
|
|
313
|
+
channelType: 'string',
|
|
299
314
|
chunkMode: 'string',
|
|
300
315
|
connectId: 'string',
|
|
301
316
|
database: 'string',
|