@alicloud/adb20211201 5.5.1 → 5.6.0

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.
Files changed (44) hide show
  1. package/dist/client.d.ts +30 -0
  2. package/dist/client.js +99 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AddKnowledgeTagsRequest.d.ts +4 -1
  5. package/dist/models/AddKnowledgeTagsRequest.js.map +1 -1
  6. package/dist/models/AddKnowledgeTagsResponseBody.d.ts +2 -2
  7. package/dist/models/ForkKnowledgeFileRequest.d.ts +55 -0
  8. package/dist/models/ForkKnowledgeFileRequest.js +66 -0
  9. package/dist/models/ForkKnowledgeFileRequest.js.map +1 -0
  10. package/dist/models/ForkKnowledgeFileResponse.d.ts +19 -0
  11. package/dist/models/ForkKnowledgeFileResponse.js +69 -0
  12. package/dist/models/ForkKnowledgeFileResponse.js.map +1 -0
  13. package/dist/models/ForkKnowledgeFileResponseBody.d.ts +94 -0
  14. package/dist/models/ForkKnowledgeFileResponseBody.js +94 -0
  15. package/dist/models/ForkKnowledgeFileResponseBody.js.map +1 -0
  16. package/dist/models/ListKnowledgeFilesRequest.d.ts +12 -4
  17. package/dist/models/ListKnowledgeFilesRequest.js +2 -0
  18. package/dist/models/ListKnowledgeFilesRequest.js.map +1 -1
  19. package/dist/models/ListKnowledgeFilesResponseBody.d.ts +8 -8
  20. package/dist/models/TriggerKnowledgeFileParseRequest.d.ts +39 -0
  21. package/dist/models/TriggerKnowledgeFileParseRequest.js +62 -0
  22. package/dist/models/TriggerKnowledgeFileParseRequest.js.map +1 -0
  23. package/dist/models/TriggerKnowledgeFileParseResponse.d.ts +19 -0
  24. package/dist/models/TriggerKnowledgeFileParseResponse.js +69 -0
  25. package/dist/models/TriggerKnowledgeFileParseResponse.js.map +1 -0
  26. package/dist/models/TriggerKnowledgeFileParseResponseBody.d.ts +78 -0
  27. package/dist/models/TriggerKnowledgeFileParseResponseBody.js +90 -0
  28. package/dist/models/TriggerKnowledgeFileParseResponseBody.js.map +1 -0
  29. package/dist/models/model.d.ts +8 -0
  30. package/dist/models/model.js +36 -20
  31. package/dist/models/model.js.map +1 -1
  32. package/package.json +1 -1
  33. package/src/client.ts +112 -0
  34. package/src/models/AddKnowledgeTagsRequest.ts +4 -1
  35. package/src/models/AddKnowledgeTagsResponseBody.ts +2 -2
  36. package/src/models/ForkKnowledgeFileRequest.ts +76 -0
  37. package/src/models/ForkKnowledgeFileResponse.ts +40 -0
  38. package/src/models/ForkKnowledgeFileResponseBody.ts +134 -0
  39. package/src/models/ListKnowledgeFilesRequest.ts +14 -4
  40. package/src/models/ListKnowledgeFilesResponseBody.ts +8 -8
  41. package/src/models/TriggerKnowledgeFileParseRequest.ts +56 -0
  42. package/src/models/TriggerKnowledgeFileParseResponse.ts +40 -0
  43. package/src/models/TriggerKnowledgeFileParseResponseBody.ts +114 -0
  44. package/src/models/model.ts +8 -0
package/src/client.ts CHANGED
@@ -11114,6 +11114,64 @@ export default class Client extends OpenApi {
11114
11114
  return await this.existRunningSQLEngineWithOptions(request, runtime);
11115
11115
  }
11116
11116
 
11117
+ /**
11118
+ * Creates a reference record for a knowledge base file.
11119
+ *
11120
+ * @param request - ForkKnowledgeFileRequest
11121
+ * @param runtime - runtime options for this request RuntimeOptions
11122
+ * @returns ForkKnowledgeFileResponse
11123
+ */
11124
+ async forkKnowledgeFileWithOptions(request: $_model.ForkKnowledgeFileRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ForkKnowledgeFileResponse> {
11125
+ request.validate();
11126
+ let query = { };
11127
+ if (!$dara.isNull(request.DBClusterId)) {
11128
+ query["DBClusterId"] = request.DBClusterId;
11129
+ }
11130
+
11131
+ if (!$dara.isNull(request.fileId)) {
11132
+ query["FileId"] = request.fileId;
11133
+ }
11134
+
11135
+ if (!$dara.isNull(request.fileLocation)) {
11136
+ query["FileLocation"] = request.fileLocation;
11137
+ }
11138
+
11139
+ if (!$dara.isNull(request.tags)) {
11140
+ query["Tags"] = request.tags;
11141
+ }
11142
+
11143
+ if (!$dara.isNull(request.uploadUser)) {
11144
+ query["UploadUser"] = request.uploadUser;
11145
+ }
11146
+
11147
+ let req = new $OpenApiUtil.OpenApiRequest({
11148
+ query: OpenApiUtil.query(query),
11149
+ });
11150
+ let params = new $OpenApiUtil.Params({
11151
+ action: "ForkKnowledgeFile",
11152
+ version: "2021-12-01",
11153
+ protocol: "HTTPS",
11154
+ pathname: "/",
11155
+ method: "POST",
11156
+ authType: "AK",
11157
+ style: "RPC",
11158
+ reqBodyType: "formData",
11159
+ bodyType: "json",
11160
+ });
11161
+ return $dara.cast<$_model.ForkKnowledgeFileResponse>(await this.callApi(params, req, runtime), new $_model.ForkKnowledgeFileResponse({}));
11162
+ }
11163
+
11164
+ /**
11165
+ * Creates a reference record for a knowledge base file.
11166
+ *
11167
+ * @param request - ForkKnowledgeFileRequest
11168
+ * @returns ForkKnowledgeFileResponse
11169
+ */
11170
+ async forkKnowledgeFile(request: $_model.ForkKnowledgeFileRequest): Promise<$_model.ForkKnowledgeFileResponse> {
11171
+ let runtime = new $dara.RuntimeOptions({ });
11172
+ return await this.forkKnowledgeFileWithOptions(request, runtime);
11173
+ }
11174
+
11117
11175
  /**
11118
11176
  * Generates an executable SQL statement from a semantic SQL statement.
11119
11177
  *
@@ -13278,6 +13336,10 @@ export default class Client extends OpenApi {
13278
13336
  query["FileIds"] = request.fileIds;
13279
13337
  }
13280
13338
 
13339
+ if (!$dara.isNull(request.fileLocation)) {
13340
+ query["FileLocation"] = request.fileLocation;
13341
+ }
13342
+
13281
13343
  if (!$dara.isNull(request.page)) {
13282
13344
  query["Page"] = request.page;
13283
13345
  }
@@ -17391,6 +17453,56 @@ export default class Client extends OpenApi {
17391
17453
  return await this.suspendApsJobWithOptions(request, runtime);
17392
17454
  }
17393
17455
 
17456
+ /**
17457
+ * Submits a reparse task for a knowledge base file.
17458
+ *
17459
+ * @param request - TriggerKnowledgeFileParseRequest
17460
+ * @param runtime - runtime options for this request RuntimeOptions
17461
+ * @returns TriggerKnowledgeFileParseResponse
17462
+ */
17463
+ async triggerKnowledgeFileParseWithOptions(request: $_model.TriggerKnowledgeFileParseRequest, runtime: $dara.RuntimeOptions): Promise<$_model.TriggerKnowledgeFileParseResponse> {
17464
+ request.validate();
17465
+ let query = { };
17466
+ if (!$dara.isNull(request.DBClusterId)) {
17467
+ query["DBClusterId"] = request.DBClusterId;
17468
+ }
17469
+
17470
+ if (!$dara.isNull(request.fileId)) {
17471
+ query["FileId"] = request.fileId;
17472
+ }
17473
+
17474
+ if (!$dara.isNull(request.fileLocation)) {
17475
+ query["FileLocation"] = request.fileLocation;
17476
+ }
17477
+
17478
+ let req = new $OpenApiUtil.OpenApiRequest({
17479
+ query: OpenApiUtil.query(query),
17480
+ });
17481
+ let params = new $OpenApiUtil.Params({
17482
+ action: "TriggerKnowledgeFileParse",
17483
+ version: "2021-12-01",
17484
+ protocol: "HTTPS",
17485
+ pathname: "/",
17486
+ method: "POST",
17487
+ authType: "AK",
17488
+ style: "RPC",
17489
+ reqBodyType: "formData",
17490
+ bodyType: "json",
17491
+ });
17492
+ return $dara.cast<$_model.TriggerKnowledgeFileParseResponse>(await this.callApi(params, req, runtime), new $_model.TriggerKnowledgeFileParseResponse({}));
17493
+ }
17494
+
17495
+ /**
17496
+ * Submits a reparse task for a knowledge base file.
17497
+ *
17498
+ * @param request - TriggerKnowledgeFileParseRequest
17499
+ * @returns TriggerKnowledgeFileParseResponse
17500
+ */
17501
+ async triggerKnowledgeFileParse(request: $_model.TriggerKnowledgeFileParseRequest): Promise<$_model.TriggerKnowledgeFileParseResponse> {
17502
+ let runtime = new $dara.RuntimeOptions({ });
17503
+ return await this.triggerKnowledgeFileParseWithOptions(request, runtime);
17504
+ }
17505
+
17394
17506
  /**
17395
17507
  * Disassociates a standard account of an AnalyticDB for MySQL cluster from a Resource Access Management (RAM) user.
17396
17508
  *
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class AddKnowledgeTagsRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The database cluster ID.
8
+ * The ID of the database cluster.
9
9
  *
10
10
  * This parameter is required.
11
11
  *
@@ -14,6 +14,9 @@ export class AddKnowledgeTagsRequest extends $dara.Model {
14
14
  */
15
15
  DBClusterId?: string;
16
16
  /**
17
+ * @remarks
18
+ * The ID of the file.
19
+ *
17
20
  * @example
18
21
  * 21321
19
22
  */
@@ -71,7 +71,7 @@ export class AddKnowledgeTagsResponseBodyData extends $dara.Model {
71
71
  message?: string;
72
72
  /**
73
73
  * @remarks
74
- * The number of tags that were successfully updated.
74
+ * The number of tags that were successfully modified.
75
75
  *
76
76
  * @example
77
77
  * 1
@@ -84,7 +84,7 @@ export class AddKnowledgeTagsResponseBodyData extends $dara.Model {
84
84
  skipped?: AddKnowledgeTagsResponseBodyDataSkipped[];
85
85
  /**
86
86
  * @remarks
87
- * Indicates whether the request was successful. Valid values:
87
+ * Specifies whether the request was successful. Valid values:
88
88
  * - **true**: The request was successful.
89
89
  * - **false**: The request failed.
90
90
  *
@@ -0,0 +1,76 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ForkKnowledgeFileRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The ADB instance ID.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * am-bp19aaaaaa****
14
+ */
15
+ DBClusterId?: string;
16
+ /**
17
+ * @remarks
18
+ * The ID of the knowledge base file. You must specify either this parameter or FileLocation, but not both. Use a decimal positive integer string without leading zeros. Valid values: 1 to 9223372036854775807.
19
+ *
20
+ * @example
21
+ * 123
22
+ */
23
+ fileId?: string;
24
+ /**
25
+ * @remarks
26
+ * The address of a single file in the knowledge base. You must specify either this parameter or FileId, but not both. You cannot specify a directory. The address must uniquely locate an active file.
27
+ *
28
+ * @example
29
+ * oss://bucket/doc.pdf
30
+ */
31
+ fileLocation?: string;
32
+ /**
33
+ * @remarks
34
+ * The initial business tags for the new record. Use a JSON string of a JSON object or an array of tag_key/tag_value objects. If omitted, the source tags are not inherited.
35
+ *
36
+ * @example
37
+ * {"biz.game":"yys"}
38
+ */
39
+ tags?: string;
40
+ /**
41
+ * @remarks
42
+ * The initial authorized user for the new record. You can pass a JSON string of a single user identifier or a user array. If omitted, no initial user authorization is applied, and the source authorization is not inherited.
43
+ *
44
+ * @example
45
+ * ["alice","bob"]
46
+ */
47
+ uploadUser?: string;
48
+ static names(): { [key: string]: string } {
49
+ return {
50
+ DBClusterId: 'DBClusterId',
51
+ fileId: 'FileId',
52
+ fileLocation: 'FileLocation',
53
+ tags: 'Tags',
54
+ uploadUser: 'UploadUser',
55
+ };
56
+ }
57
+
58
+ static types(): { [key: string]: any } {
59
+ return {
60
+ DBClusterId: 'string',
61
+ fileId: 'string',
62
+ fileLocation: 'string',
63
+ tags: 'string',
64
+ uploadUser: 'string',
65
+ };
66
+ }
67
+
68
+ validate() {
69
+ super.validate();
70
+ }
71
+
72
+ constructor(map?: { [key: string]: any }) {
73
+ super(map);
74
+ }
75
+ }
76
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ForkKnowledgeFileResponseBody } from "./ForkKnowledgeFileResponseBody";
4
+
5
+
6
+ export class ForkKnowledgeFileResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ForkKnowledgeFileResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: ForkKnowledgeFileResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,134 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ForkKnowledgeFileResponseBodyData extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The ID of the newly created reference record, represented as a decimal string. Use this ID for subsequent management of the record. This parameter is returned only when the operation is successful.
9
+ *
10
+ * @example
11
+ * 456
12
+ */
13
+ fileId?: string;
14
+ /**
15
+ * @remarks
16
+ * The address of the new reference record, in the format of fork://<source file ID>/<new file ID>. This parameter is returned only when the operation is successful.
17
+ *
18
+ * @example
19
+ * fork://123/456
20
+ */
21
+ fileLocation?: string;
22
+ /**
23
+ * @remarks
24
+ * The description of the operation result. If the business operation fails, this parameter indicates the cause or the security error code.
25
+ *
26
+ * @example
27
+ * Fork succeeded
28
+ */
29
+ message?: string;
30
+ /**
31
+ * @remarks
32
+ * The ID of the content host file, represented as a decimal string. Currently, this value is the same as the source file ID. This parameter is returned only when the operation is successful.
33
+ *
34
+ * @example
35
+ * 123
36
+ */
37
+ ownerFileId?: string;
38
+ /**
39
+ * @remarks
40
+ * The status of the new reference record. The value is fixed to DUPLICATED. This parameter is returned only when the operation is successful.
41
+ *
42
+ * @example
43
+ * DUPLICATED
44
+ */
45
+ processStatus?: string;
46
+ /**
47
+ * @remarks
48
+ * The ID of the source file, represented as a decimal string. This parameter is returned only when the operation is successful.
49
+ *
50
+ * @example
51
+ * 123
52
+ */
53
+ sourceFileId?: string;
54
+ /**
55
+ * @remarks
56
+ * Indicates whether the business operation is successful. If the operation fails, the Data parameter contains only Success and Message.
57
+ *
58
+ * @example
59
+ * true
60
+ */
61
+ success?: boolean;
62
+ static names(): { [key: string]: string } {
63
+ return {
64
+ fileId: 'FileId',
65
+ fileLocation: 'FileLocation',
66
+ message: 'Message',
67
+ ownerFileId: 'OwnerFileId',
68
+ processStatus: 'ProcessStatus',
69
+ sourceFileId: 'SourceFileId',
70
+ success: 'Success',
71
+ };
72
+ }
73
+
74
+ static types(): { [key: string]: any } {
75
+ return {
76
+ fileId: 'string',
77
+ fileLocation: 'string',
78
+ message: 'string',
79
+ ownerFileId: 'string',
80
+ processStatus: 'string',
81
+ sourceFileId: 'string',
82
+ success: 'boolean',
83
+ };
84
+ }
85
+
86
+ validate() {
87
+ super.validate();
88
+ }
89
+
90
+ constructor(map?: { [key: string]: any }) {
91
+ super(map);
92
+ }
93
+ }
94
+
95
+ export class ForkKnowledgeFileResponseBody extends $dara.Model {
96
+ /**
97
+ * @remarks
98
+ * The returned data.
99
+ */
100
+ data?: ForkKnowledgeFileResponseBodyData;
101
+ /**
102
+ * @remarks
103
+ * Id of the request
104
+ *
105
+ * @example
106
+ * 1AD222E9-E606-4A42-BF6D-8A4442913CEF
107
+ */
108
+ requestId?: string;
109
+ static names(): { [key: string]: string } {
110
+ return {
111
+ data: 'Data',
112
+ requestId: 'RequestId',
113
+ };
114
+ }
115
+
116
+ static types(): { [key: string]: any } {
117
+ return {
118
+ data: ForkKnowledgeFileResponseBodyData,
119
+ requestId: 'string',
120
+ };
121
+ }
122
+
123
+ validate() {
124
+ if(this.data && typeof (this.data as any).validate === 'function') {
125
+ (this.data as any).validate();
126
+ }
127
+ super.validate();
128
+ }
129
+
130
+ constructor(map?: { [key: string]: any }) {
131
+ super(map);
132
+ }
133
+ }
134
+
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ListKnowledgeFilesRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The ADB instance ID.
8
+ * The ID of the ADB instance.
9
9
  *
10
10
  * This parameter is required.
11
11
  *
@@ -23,7 +23,15 @@ export class ListKnowledgeFilesRequest extends $dara.Model {
23
23
  fileIds?: string;
24
24
  /**
25
25
  * @remarks
26
- * The page number, starting from 1. If this parameter is not specified, the default value is 1.
26
+ * The URL of the knowledge base file.
27
+ *
28
+ * @example
29
+ * oss://bucket_name/path/to/file
30
+ */
31
+ fileLocation?: string;
32
+ /**
33
+ * @remarks
34
+ * The page number. Pages start from 1. If you do not specify this parameter, the default value is 1.
27
35
  *
28
36
  * @example
29
37
  * 1
@@ -31,7 +39,7 @@ export class ListKnowledgeFilesRequest extends $dara.Model {
31
39
  page?: string;
32
40
  /**
33
41
  * @remarks
34
- * The number of entries per page. Valid values: 1 to 100. If this parameter is not specified, the default value is 20.
42
+ * The number of entries per page. Valid values: 1 to 100. If you do not specify this parameter, the default value is 20.
35
43
  *
36
44
  * @example
37
45
  * 20
@@ -47,7 +55,7 @@ export class ListKnowledgeFilesRequest extends $dara.Model {
47
55
  status?: string;
48
56
  /**
49
57
  * @remarks
50
- * The stable ID of the authorized user. If this parameter is not specified, all files in the knowledge base can be queried.
58
+ * The stable ID of the authorized user. If you do not specify this parameter, all files in the knowledge base can be queried.
51
59
  *
52
60
  * @example
53
61
  * u123
@@ -57,6 +65,7 @@ export class ListKnowledgeFilesRequest extends $dara.Model {
57
65
  return {
58
66
  DBClusterId: 'DBClusterId',
59
67
  fileIds: 'FileIds',
68
+ fileLocation: 'FileLocation',
60
69
  page: 'Page',
61
70
  pageSize: 'PageSize',
62
71
  status: 'Status',
@@ -68,6 +77,7 @@ export class ListKnowledgeFilesRequest extends $dara.Model {
68
77
  return {
69
78
  DBClusterId: 'string',
70
79
  fileIds: 'string',
80
+ fileLocation: 'string',
71
81
  page: 'string',
72
82
  pageSize: 'string',
73
83
  status: 'string',
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ListKnowledgeFilesResponseBodyDataFiles extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The time when the file was added to the knowledge base. The format is yyyy-MM-dd HH:mm:ss.
8
+ * The time when the file was added to the knowledge base. The time is in the yyyy-MM-dd HH:mm:ss format.
9
9
  *
10
10
  * @example
11
11
  * 2026-06-09 10:27:35
@@ -53,7 +53,7 @@ export class ListKnowledgeFilesResponseBodyDataFiles extends $dara.Model {
53
53
  isDirectory?: boolean;
54
54
  /**
55
55
  * @remarks
56
- * The file_id of the content host.
56
+ * The `file_id` of the content host.
57
57
  *
58
58
  * @example
59
59
  * 122
@@ -69,7 +69,7 @@ export class ListKnowledgeFilesResponseBodyDataFiles extends $dara.Model {
69
69
  pageCount?: number;
70
70
  /**
71
71
  * @remarks
72
- * The processing information of the knowledge base file.
72
+ * The processing message of the knowledge base file.
73
73
  *
74
74
  * @example
75
75
  * successful
@@ -89,7 +89,7 @@ export class ListKnowledgeFilesResponseBodyDataFiles extends $dara.Model {
89
89
  processStatus?: string;
90
90
  /**
91
91
  * @remarks
92
- * The update time. The format is yyyy-MM-dd HH:mm:ss.
92
+ * The time when the file was updated. The time is in the yyyy-MM-dd HH:mm:ss format.
93
93
  *
94
94
  * @example
95
95
  * 2026-06-10 10:23:46
@@ -168,9 +168,9 @@ export class ListKnowledgeFilesResponseBodyData extends $dara.Model {
168
168
  pageSize?: number;
169
169
  /**
170
170
  * @remarks
171
- * Indicates whether the request was successful. Valid values:
172
- * - **true**: The request was successful.
173
- * - **false**: The request failed.
171
+ * Indicates whether the request is successful. Valid values:
172
+ * - **true**: The request is successful.
173
+ * - **false**: The request fails.
174
174
  *
175
175
  * @example
176
176
  * true
@@ -178,7 +178,7 @@ export class ListKnowledgeFilesResponseBodyData extends $dara.Model {
178
178
  success?: boolean;
179
179
  /**
180
180
  * @remarks
181
- * The total number of records.
181
+ * The total number of entries.
182
182
  *
183
183
  * @example
184
184
  * 100
@@ -0,0 +1,56 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class TriggerKnowledgeFileParseRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The ADB instance ID.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * am-bp19aaaaaa****
14
+ */
15
+ DBClusterId?: string;
16
+ /**
17
+ * @remarks
18
+ * The ID of the knowledge base file. You must specify either this parameter or FileLocation, but not both.
19
+ *
20
+ * @example
21
+ * 123
22
+ */
23
+ fileId?: string;
24
+ /**
25
+ * @remarks
26
+ * The URL of a single knowledge base file. You must specify either this parameter or FileId, but not both. You cannot specify a directory. The URL must uniquely point to an existing file.
27
+ *
28
+ * @example
29
+ * oss://bucket/doc.pdf
30
+ */
31
+ fileLocation?: string;
32
+ static names(): { [key: string]: string } {
33
+ return {
34
+ DBClusterId: 'DBClusterId',
35
+ fileId: 'FileId',
36
+ fileLocation: 'FileLocation',
37
+ };
38
+ }
39
+
40
+ static types(): { [key: string]: any } {
41
+ return {
42
+ DBClusterId: 'string',
43
+ fileId: 'string',
44
+ fileLocation: 'string',
45
+ };
46
+ }
47
+
48
+ validate() {
49
+ super.validate();
50
+ }
51
+
52
+ constructor(map?: { [key: string]: any }) {
53
+ super(map);
54
+ }
55
+ }
56
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { TriggerKnowledgeFileParseResponseBody } from "./TriggerKnowledgeFileParseResponseBody";
4
+
5
+
6
+ export class TriggerKnowledgeFileParseResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: TriggerKnowledgeFileParseResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: TriggerKnowledgeFileParseResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+