@alicloud/bailian20231229 2.8.1 → 2.8.3

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.
@@ -3,117 +3,62 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class CreateIndexRequestColumns extends $dara.Model {
6
- column?: string;
7
- isRecall?: boolean;
8
- isSearch?: boolean;
9
- name?: string;
10
- type?: string;
11
- static names(): { [key: string]: string } {
12
- return {
13
- column: 'Column',
14
- isRecall: 'IsRecall',
15
- isSearch: 'IsSearch',
16
- name: 'Name',
17
- type: 'Type',
18
- };
19
- }
20
-
21
- static types(): { [key: string]: any } {
22
- return {
23
- column: 'string',
24
- isRecall: 'boolean',
25
- isSearch: 'boolean',
26
- name: 'string',
27
- type: 'string',
28
- };
29
- }
30
-
31
- validate() {
32
- super.validate();
33
- }
34
-
35
- constructor(map?: { [key: string]: any }) {
36
- super(map);
37
- }
38
- }
39
-
40
- export class CreateIndexRequestDataSource extends $dara.Model {
41
- /**
42
- * @remarks
43
- * > This parameter is not available. Do not specify this parameter.
44
- */
45
- credentialId?: string;
46
- /**
47
- * @remarks
48
- * > This parameter is not available. Do not specify this parameter.
49
- */
50
- credentialKey?: string;
51
- /**
52
- * @remarks
53
- * > This parameter is not available. Do not specify this parameter.
54
- */
55
- database?: string;
56
- /**
57
- * @remarks
58
- * > This parameter is not available. Do not specify this parameter.
59
- */
60
- endpoint?: string;
61
6
  /**
62
7
  * @remarks
63
- * > This parameter is not available. Do not specify this parameter.
64
- */
65
- isPrivateLink?: boolean;
66
- /**
67
- * @remarks
68
- * > This parameter is not available. Do not specify this parameter.
8
+ * > This parameter is not available. Do not specify this parameter.
9
+ *
10
+ * @example
11
+ * source_column_name1
69
12
  */
70
- region?: string;
13
+ column?: string;
71
14
  /**
72
15
  * @remarks
73
- * > This parameter is not available. Do not specify this parameter.
16
+ * > This parameter is not available. Do not specify this parameter.
17
+ *
18
+ * @example
19
+ * true
74
20
  */
75
- subPath?: string;
21
+ isRecall?: boolean;
76
22
  /**
77
23
  * @remarks
78
- * > This parameter is not available. Do not specify this parameter.
24
+ * > This parameter is not available. Do not specify this parameter.
25
+ *
26
+ * @example
27
+ * true
79
28
  */
80
- subType?: string;
29
+ isSearch?: boolean;
81
30
  /**
82
31
  * @remarks
83
- * > This parameter is not available. Do not specify this parameter.
32
+ * > This parameter is not available. Do not specify this parameter.
33
+ *
34
+ * @example
35
+ * index_column_name1
84
36
  */
85
- table?: string;
37
+ name?: string;
86
38
  /**
87
39
  * @remarks
88
- * > This parameter is not available. Do not specify this parameter.
40
+ * > This parameter is not available. Do not specify this parameter.
41
+ *
42
+ * @example
43
+ * string
89
44
  */
90
45
  type?: string;
91
46
  static names(): { [key: string]: string } {
92
47
  return {
93
- credentialId: 'CredentialId',
94
- credentialKey: 'CredentialKey',
95
- database: 'Database',
96
- endpoint: 'Endpoint',
97
- isPrivateLink: 'IsPrivateLink',
98
- region: 'Region',
99
- subPath: 'SubPath',
100
- subType: 'SubType',
101
- table: 'Table',
48
+ column: 'Column',
49
+ isRecall: 'IsRecall',
50
+ isSearch: 'IsSearch',
51
+ name: 'Name',
102
52
  type: 'Type',
103
53
  };
104
54
  }
105
55
 
106
56
  static types(): { [key: string]: any } {
107
57
  return {
108
- credentialId: 'string',
109
- credentialKey: 'string',
110
- database: 'string',
111
- endpoint: 'string',
112
- isPrivateLink: 'boolean',
113
- region: 'string',
114
- subPath: 'string',
115
- subType: 'string',
116
- table: 'string',
58
+ column: 'string',
59
+ isRecall: 'boolean',
60
+ isSearch: 'boolean',
61
+ name: 'string',
117
62
  type: 'string',
118
63
  };
119
64
  }
@@ -249,17 +194,16 @@ export class CreateIndexRequest extends $dara.Model {
249
194
  * 128
250
195
  */
251
196
  chunkSize?: number;
252
- columns?: CreateIndexRequestColumns[];
253
197
  /**
254
198
  * @remarks
255
199
  * > This parameter is not available. Do not specify this parameter.
256
200
  */
257
- createIndexType?: string;
201
+ columns?: CreateIndexRequestColumns[];
258
202
  /**
259
203
  * @remarks
260
- * > This parameter is not available. Do not specify this parameter.
204
+ * > This parameter is not available. Do not specify this parameter.
261
205
  */
262
- dataSource?: CreateIndexRequestDataSource;
206
+ createIndexType?: string;
263
207
  /**
264
208
  * @remarks
265
209
  * The description of the knowledge base. The description must be 0 to 1,000 characters in length. This parameter is empty by default.
@@ -417,6 +361,11 @@ export class CreateIndexRequest extends $dara.Model {
417
361
  * > This parameter is not available. Do not specify this parameter.
418
362
  */
419
363
  tableIds?: string[];
364
+ /**
365
+ * @example
366
+ * connector
367
+ */
368
+ channelType?: string;
420
369
  /**
421
370
  * @remarks
422
371
  * > This parameter is not available. Do not specify this parameter.
@@ -425,6 +374,10 @@ export class CreateIndexRequest extends $dara.Model {
425
374
  * regex
426
375
  */
427
376
  chunkMode?: string;
377
+ /**
378
+ * @example
379
+ * conn_mysql_xxx_xxx
380
+ */
428
381
  connectId?: string;
429
382
  database?: string;
430
383
  datasourceCode?: string;
@@ -446,6 +399,7 @@ export class CreateIndexRequest extends $dara.Model {
446
399
  */
447
400
  enableHeaders?: boolean;
448
401
  knowledgeScene?: string;
402
+ knowledgeType?: string;
449
403
  /**
450
404
  * @remarks
451
405
  * 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).
@@ -473,7 +427,6 @@ export class CreateIndexRequest extends $dara.Model {
473
427
  chunkSize: 'ChunkSize',
474
428
  columns: 'Columns',
475
429
  createIndexType: 'CreateIndexType',
476
- dataSource: 'DataSource',
477
430
  description: 'Description',
478
431
  documentIds: 'DocumentIds',
479
432
  embeddingModelName: 'EmbeddingModelName',
@@ -489,12 +442,14 @@ export class CreateIndexRequest extends $dara.Model {
489
442
  sourceType: 'SourceType',
490
443
  structureType: 'StructureType',
491
444
  tableIds: 'TableIds',
445
+ channelType: 'channelType',
492
446
  chunkMode: 'chunkMode',
493
447
  connectId: 'connectId',
494
448
  database: 'database',
495
449
  datasourceCode: 'datasourceCode',
496
450
  enableHeaders: 'enableHeaders',
497
451
  knowledgeScene: 'knowledgeScene',
452
+ knowledgeType: 'knowledgeType',
498
453
  metaExtractColumns: 'metaExtractColumns',
499
454
  pipelineCommercialCu: 'pipelineCommercialCu',
500
455
  pipelineCommercialType: 'pipelineCommercialType',
@@ -509,7 +464,6 @@ export class CreateIndexRequest extends $dara.Model {
509
464
  chunkSize: 'number',
510
465
  columns: { 'type': 'array', 'itemType': CreateIndexRequestColumns },
511
466
  createIndexType: 'string',
512
- dataSource: CreateIndexRequestDataSource,
513
467
  description: 'string',
514
468
  documentIds: { 'type': 'array', 'itemType': 'string' },
515
469
  embeddingModelName: 'string',
@@ -525,12 +479,14 @@ export class CreateIndexRequest extends $dara.Model {
525
479
  sourceType: 'string',
526
480
  structureType: 'string',
527
481
  tableIds: { 'type': 'array', 'itemType': 'string' },
482
+ channelType: 'string',
528
483
  chunkMode: 'string',
529
484
  connectId: 'string',
530
485
  database: 'string',
531
486
  datasourceCode: 'string',
532
487
  enableHeaders: 'boolean',
533
488
  knowledgeScene: 'string',
489
+ knowledgeType: 'string',
534
490
  metaExtractColumns: { 'type': 'array', 'itemType': CreateIndexRequestMetaExtractColumns },
535
491
  pipelineCommercialCu: 'number',
536
492
  pipelineCommercialType: 'string',
@@ -546,9 +502,6 @@ export class CreateIndexRequest extends $dara.Model {
546
502
  if(Array.isArray(this.columns)) {
547
503
  $dara.Model.validateArray(this.columns);
548
504
  }
549
- if(this.dataSource && typeof (this.dataSource as any).validate === 'function') {
550
- (this.dataSource as any).validate();
551
- }
552
505
  if(Array.isArray(this.documentIds)) {
553
506
  $dara.Model.validateArray(this.documentIds);
554
507
  }
@@ -20,17 +20,16 @@ export class CreateIndexShrinkRequest extends $dara.Model {
20
20
  * 128
21
21
  */
22
22
  chunkSize?: number;
23
- columnsShrink?: string;
24
23
  /**
25
24
  * @remarks
26
25
  * > This parameter is not available. Do not specify this parameter.
27
26
  */
28
- createIndexType?: string;
27
+ columnsShrink?: string;
29
28
  /**
30
29
  * @remarks
31
- * > This parameter is not available. Do not specify this parameter.
30
+ * > This parameter is not available. Do not specify this parameter.
32
31
  */
33
- dataSourceShrink?: string;
32
+ createIndexType?: string;
34
33
  /**
35
34
  * @remarks
36
35
  * The description of the knowledge base. The description must be 0 to 1,000 characters in length. This parameter is empty by default.
@@ -188,6 +187,11 @@ export class CreateIndexShrinkRequest extends $dara.Model {
188
187
  * > This parameter is not available. Do not specify this parameter.
189
188
  */
190
189
  tableIdsShrink?: string;
190
+ /**
191
+ * @example
192
+ * connector
193
+ */
194
+ channelType?: string;
191
195
  /**
192
196
  * @remarks
193
197
  * > This parameter is not available. Do not specify this parameter.
@@ -196,6 +200,10 @@ export class CreateIndexShrinkRequest extends $dara.Model {
196
200
  * regex
197
201
  */
198
202
  chunkMode?: string;
203
+ /**
204
+ * @example
205
+ * conn_mysql_xxx_xxx
206
+ */
199
207
  connectId?: string;
200
208
  database?: string;
201
209
  datasourceCode?: string;
@@ -217,6 +225,7 @@ export class CreateIndexShrinkRequest extends $dara.Model {
217
225
  */
218
226
  enableHeaders?: boolean;
219
227
  knowledgeScene?: string;
228
+ knowledgeType?: string;
220
229
  /**
221
230
  * @remarks
222
231
  * 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).
@@ -244,7 +253,6 @@ export class CreateIndexShrinkRequest extends $dara.Model {
244
253
  chunkSize: 'ChunkSize',
245
254
  columnsShrink: 'Columns',
246
255
  createIndexType: 'CreateIndexType',
247
- dataSourceShrink: 'DataSource',
248
256
  description: 'Description',
249
257
  documentIdsShrink: 'DocumentIds',
250
258
  embeddingModelName: 'EmbeddingModelName',
@@ -260,12 +268,14 @@ export class CreateIndexShrinkRequest extends $dara.Model {
260
268
  sourceType: 'SourceType',
261
269
  structureType: 'StructureType',
262
270
  tableIdsShrink: 'TableIds',
271
+ channelType: 'channelType',
263
272
  chunkMode: 'chunkMode',
264
273
  connectId: 'connectId',
265
274
  database: 'database',
266
275
  datasourceCode: 'datasourceCode',
267
276
  enableHeaders: 'enableHeaders',
268
277
  knowledgeScene: 'knowledgeScene',
278
+ knowledgeType: 'knowledgeType',
269
279
  metaExtractColumnsShrink: 'metaExtractColumns',
270
280
  pipelineCommercialCu: 'pipelineCommercialCu',
271
281
  pipelineCommercialType: 'pipelineCommercialType',
@@ -280,7 +290,6 @@ export class CreateIndexShrinkRequest extends $dara.Model {
280
290
  chunkSize: 'number',
281
291
  columnsShrink: 'string',
282
292
  createIndexType: 'string',
283
- dataSourceShrink: 'string',
284
293
  description: 'string',
285
294
  documentIdsShrink: 'string',
286
295
  embeddingModelName: 'string',
@@ -296,12 +305,14 @@ export class CreateIndexShrinkRequest extends $dara.Model {
296
305
  sourceType: 'string',
297
306
  structureType: 'string',
298
307
  tableIdsShrink: 'string',
308
+ channelType: 'string',
299
309
  chunkMode: 'string',
300
310
  connectId: 'string',
301
311
  database: 'string',
302
312
  datasourceCode: 'string',
303
313
  enableHeaders: 'boolean',
304
314
  knowledgeScene: 'string',
315
+ knowledgeType: 'string',
305
316
  metaExtractColumnsShrink: 'string',
306
317
  pipelineCommercialCu: 'number',
307
318
  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
  /**
@@ -19,7 +19,6 @@ export { CreateAndPulishAgentRequestApplicationConfigWorkFlows } from './CreateA
19
19
  export { CreateAndPulishAgentRequestApplicationConfig } from './CreateAndPulishAgentRequest';
20
20
  export { CreateAndPulishAgentRequestSampleLibrary } from './CreateAndPulishAgentRequest';
21
21
  export { CreateIndexRequestColumns } from './CreateIndexRequest';
22
- export { CreateIndexRequestDataSource } from './CreateIndexRequest';
23
22
  export { CreateIndexRequestMetaExtractColumns } from './CreateIndexRequest';
24
23
  export { CreateIndexResponseBodyData } from './CreateIndexResponseBody';
25
24
  export { DeleteCategoryResponseBodyData } from './DeleteCategoryResponseBody';