@alicloud/bailian20231229 2.8.0 → 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/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,10 +649,18 @@ 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
  }
655
659
 
660
+ if (!$dara.isNull(request.connectId)) {
661
+ query["connectId"] = request.connectId;
662
+ }
663
+
656
664
  if (!$dara.isNull(request.database)) {
657
665
  query["database"] = request.database;
658
666
  }
@@ -665,6 +673,10 @@ export default class Client extends OpenApi {
665
673
  query["enableHeaders"] = request.enableHeaders;
666
674
  }
667
675
 
676
+ if (!$dara.isNull(request.knowledgeScene)) {
677
+ query["knowledgeScene"] = request.knowledgeScene;
678
+ }
679
+
668
680
  if (!$dara.isNull(request.metaExtractColumnsShrink)) {
669
681
  query["metaExtractColumns"] = request.metaExtractColumnsShrink;
670
682
  }
@@ -900,7 +912,7 @@ export default class Client extends OpenApi {
900
912
  }
901
913
 
902
914
  /**
903
- * 删除类目
915
+ * Deletes a specified category permanently.
904
916
  *
905
917
  * @param headers - map
906
918
  * @param runtime - runtime options for this request RuntimeOptions
@@ -925,7 +937,7 @@ export default class Client extends OpenApi {
925
937
  }
926
938
 
927
939
  /**
928
- * 删除类目
940
+ * Deletes a specified category permanently.
929
941
  * @returns DeleteCategoryResponse
930
942
  */
931
943
  async deleteCategory(CategoryId: string, WorkspaceId: string): Promise<$_model.DeleteCategoryResponse> {
@@ -1012,7 +1024,7 @@ export default class Client extends OpenApi {
1012
1024
  }
1013
1025
 
1014
1026
  /**
1015
- * 删除文档
1027
+ * Deletes a specified unstructured document permanently. You cannot use the API to delete structured documents, see the Usage notes section of this topic.
1016
1028
  *
1017
1029
  * @param headers - map
1018
1030
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1037,7 +1049,7 @@ export default class Client extends OpenApi {
1037
1049
  }
1038
1050
 
1039
1051
  /**
1040
- * 删除文档
1052
+ * Deletes a specified unstructured document permanently. You cannot use the API to delete structured documents, see the Usage notes section of this topic.
1041
1053
  * @returns DeleteFileResponse
1042
1054
  */
1043
1055
  async deleteFile(FileId: string, WorkspaceId: string): Promise<$_model.DeleteFileResponse> {
@@ -1106,7 +1118,7 @@ export default class Client extends OpenApi {
1106
1118
  }
1107
1119
 
1108
1120
  /**
1109
- * 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.
1110
1122
  *
1111
1123
  * @remarks
1112
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.
@@ -1156,7 +1168,7 @@ export default class Client extends OpenApi {
1156
1168
  }
1157
1169
 
1158
1170
  /**
1159
- * 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.
1160
1172
  *
1161
1173
  * @remarks
1162
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.
@@ -1280,7 +1292,7 @@ export default class Client extends OpenApi {
1280
1292
  }
1281
1293
 
1282
1294
  /**
1283
- * Queries the details of an unstructured document.
1295
+ * Obtains the basic information of a document, including the document name, type, and status.
1284
1296
  *
1285
1297
  * @remarks
1286
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.
@@ -1311,7 +1323,7 @@ export default class Client extends OpenApi {
1311
1323
  }
1312
1324
 
1313
1325
  /**
1314
- * Queries the details of an unstructured document.
1326
+ * Obtains the basic information of a document, including the document name, type, and status.
1315
1327
  *
1316
1328
  * @remarks
1317
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.
@@ -1537,7 +1549,7 @@ export default class Client extends OpenApi {
1537
1549
  }
1538
1550
 
1539
1551
  /**
1540
- * 获取索引监控情况
1552
+ * \\<props="intl">Currently, this API is not supported.\\
1541
1553
  *
1542
1554
  * @param request - GetIndexMonitorRequest
1543
1555
  * @param headers - map
@@ -1578,7 +1590,7 @@ export default class Client extends OpenApi {
1578
1590
  }
1579
1591
 
1580
1592
  /**
1581
- * 获取索引监控情况
1593
+ * \\<props="intl">Currently, this API is not supported.\\
1582
1594
  *
1583
1595
  * @param request - GetIndexMonitorRequest
1584
1596
  * @returns GetIndexMonitorResponse
@@ -1840,7 +1852,7 @@ export default class Client extends OpenApi {
1840
1852
  }
1841
1853
 
1842
1854
  /**
1843
- * ListCategory
1855
+ * Lists the details about the next or multiple categories in a specified workspace.
1844
1856
  *
1845
1857
  * @param request - ListCategoryRequest
1846
1858
  * @param headers - map
@@ -1889,7 +1901,7 @@ export default class Client extends OpenApi {
1889
1901
  }
1890
1902
 
1891
1903
  /**
1892
- * ListCategory
1904
+ * Lists the details about the next or multiple categories in a specified workspace.
1893
1905
  *
1894
1906
  * @param request - ListCategoryRequest
1895
1907
  * @returns ListCategoryResponse
@@ -2181,7 +2193,7 @@ export default class Client extends OpenApi {
2181
2193
  }
2182
2194
 
2183
2195
  /**
2184
- * Lists knowledge bases in a specified workspace.
2196
+ * Lists the details about the next or multiple knowledge bases in a specified workspace.
2185
2197
  *
2186
2198
  * @remarks
2187
2199
  * This interface is idempotent.
@@ -2225,7 +2237,7 @@ export default class Client extends OpenApi {
2225
2237
  }
2226
2238
 
2227
2239
  /**
2228
- * Lists knowledge bases in a specified workspace.
2240
+ * Lists the details about the next or multiple knowledge bases in a specified workspace.
2229
2241
  *
2230
2242
  * @remarks
2231
2243
  * This interface is idempotent.
@@ -2573,7 +2585,7 @@ export default class Client extends OpenApi {
2573
2585
  }
2574
2586
 
2575
2587
  /**
2576
- * 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.
2577
2589
  *
2578
2590
  * @remarks
2579
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).
@@ -2654,7 +2666,7 @@ export default class Client extends OpenApi {
2654
2666
  }
2655
2667
 
2656
2668
  /**
2657
- * 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.
2658
2670
  *
2659
2671
  * @remarks
2660
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).
@@ -2956,7 +2968,7 @@ export default class Client extends OpenApi {
2956
2968
  }
2957
2969
 
2958
2970
  /**
2959
- * 更新文档Tag
2971
+ * Updates the tags of a specified document.
2960
2972
  *
2961
2973
  * @param tmpReq - UpdateFileTagRequest
2962
2974
  * @param headers - map
@@ -2995,7 +3007,7 @@ export default class Client extends OpenApi {
2995
3007
  }
2996
3008
 
2997
3009
  /**
2998
- * 更新文档Tag
3010
+ * Updates the tags of a specified document.
2999
3011
  *
3000
3012
  * @param request - UpdateFileTagRequest
3001
3013
  * @returns UpdateFileTagResponse
@@ -3007,7 +3019,7 @@ export default class Client extends OpenApi {
3007
3019
  }
3008
3020
 
3009
3021
  /**
3010
- * 更新索引任务
3022
+ * \\<props="intl">Currently, this API is not supported.\\
3011
3023
  *
3012
3024
  * @param request - UpdateIndexRequest
3013
3025
  * @param headers - map
@@ -3068,7 +3080,7 @@ export default class Client extends OpenApi {
3068
3080
  }
3069
3081
 
3070
3082
  /**
3071
- * 更新索引任务
3083
+ * \\<props="intl">Currently, this API is not supported.\\
3072
3084
  *
3073
3085
  * @param request - UpdateIndexRequest
3074
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,11 @@ export class CreateIndexRequest extends $dara.Model {
425
469
  * regex
426
470
  */
427
471
  chunkMode?: string;
472
+ /**
473
+ * @example
474
+ * conn_mysql_xxx_xxx
475
+ */
476
+ connectId?: string;
428
477
  database?: string;
429
478
  datasourceCode?: string;
430
479
  /**
@@ -444,6 +493,7 @@ export class CreateIndexRequest extends $dara.Model {
444
493
  * false
445
494
  */
446
495
  enableHeaders?: boolean;
496
+ knowledgeScene?: string;
447
497
  /**
448
498
  * @remarks
449
499
  * The metadata extraction configurations. Metadata refers to a set of additional attributes associated with unstructured data, which are integrated into text chunks in key-value pairs. For more information, see [Knowledge base](https://help.aliyun.com/document_detail/2807740.html).
@@ -487,10 +537,13 @@ export class CreateIndexRequest extends $dara.Model {
487
537
  sourceType: 'SourceType',
488
538
  structureType: 'StructureType',
489
539
  tableIds: 'TableIds',
540
+ channelType: 'channelType',
490
541
  chunkMode: 'chunkMode',
542
+ connectId: 'connectId',
491
543
  database: 'database',
492
544
  datasourceCode: 'datasourceCode',
493
545
  enableHeaders: 'enableHeaders',
546
+ knowledgeScene: 'knowledgeScene',
494
547
  metaExtractColumns: 'metaExtractColumns',
495
548
  pipelineCommercialCu: 'pipelineCommercialCu',
496
549
  pipelineCommercialType: 'pipelineCommercialType',
@@ -521,10 +574,13 @@ export class CreateIndexRequest extends $dara.Model {
521
574
  sourceType: 'string',
522
575
  structureType: 'string',
523
576
  tableIds: { 'type': 'array', 'itemType': 'string' },
577
+ channelType: 'string',
524
578
  chunkMode: 'string',
579
+ connectId: 'string',
525
580
  database: 'string',
526
581
  datasourceCode: 'string',
527
582
  enableHeaders: 'boolean',
583
+ knowledgeScene: 'string',
528
584
  metaExtractColumns: { 'type': 'array', 'itemType': CreateIndexRequestMetaExtractColumns },
529
585
  pipelineCommercialCu: 'number',
530
586
  pipelineCommercialType: '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,11 @@ export class CreateIndexShrinkRequest extends $dara.Model {
196
205
  * regex
197
206
  */
198
207
  chunkMode?: string;
208
+ /**
209
+ * @example
210
+ * conn_mysql_xxx_xxx
211
+ */
212
+ connectId?: string;
199
213
  database?: string;
200
214
  datasourceCode?: string;
201
215
  /**
@@ -215,6 +229,7 @@ export class CreateIndexShrinkRequest extends $dara.Model {
215
229
  * false
216
230
  */
217
231
  enableHeaders?: boolean;
232
+ knowledgeScene?: string;
218
233
  /**
219
234
  * @remarks
220
235
  * The metadata extraction configurations. Metadata refers to a set of additional attributes associated with unstructured data, which are integrated into text chunks in key-value pairs. For more information, see [Knowledge base](https://help.aliyun.com/document_detail/2807740.html).
@@ -258,10 +273,13 @@ export class CreateIndexShrinkRequest extends $dara.Model {
258
273
  sourceType: 'SourceType',
259
274
  structureType: 'StructureType',
260
275
  tableIdsShrink: 'TableIds',
276
+ channelType: 'channelType',
261
277
  chunkMode: 'chunkMode',
278
+ connectId: 'connectId',
262
279
  database: 'database',
263
280
  datasourceCode: 'datasourceCode',
264
281
  enableHeaders: 'enableHeaders',
282
+ knowledgeScene: 'knowledgeScene',
265
283
  metaExtractColumnsShrink: 'metaExtractColumns',
266
284
  pipelineCommercialCu: 'pipelineCommercialCu',
267
285
  pipelineCommercialType: 'pipelineCommercialType',
@@ -292,10 +310,13 @@ export class CreateIndexShrinkRequest extends $dara.Model {
292
310
  sourceType: 'string',
293
311
  structureType: 'string',
294
312
  tableIdsShrink: 'string',
313
+ channelType: 'string',
295
314
  chunkMode: 'string',
315
+ connectId: 'string',
296
316
  database: 'string',
297
317
  datasourceCode: 'string',
298
318
  enableHeaders: 'boolean',
319
+ knowledgeScene: 'string',
299
320
  metaExtractColumnsShrink: 'string',
300
321
  pipelineCommercialCu: 'number',
301
322
  pipelineCommercialType: 'string',
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class HighCodeDeployResponseBody extends $dara.Model {
6
6
  /**
7
7
  * @example
8
- * {\"key\": \"value\"}
8
+ * {\\"key\\": \\"value\\"}
9
9
  */
10
10
  data?: string;
11
11
  /**