@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
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class AddKnowledgeTagsRequest extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * The database cluster ID.
5
+ * The ID of the database cluster.
6
6
  *
7
7
  * This parameter is required.
8
8
  *
@@ -11,6 +11,9 @@ export declare class AddKnowledgeTagsRequest extends $dara.Model {
11
11
  */
12
12
  DBClusterId?: string;
13
13
  /**
14
+ * @remarks
15
+ * The ID of the file.
16
+ *
14
17
  * @example
15
18
  * 21321
16
19
  */
@@ -1 +1 @@
1
- {"version":3,"file":"AddKnowledgeTagsRequest.js","sourceRoot":"","sources":["../../src/models/AddKnowledgeTagsRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uBAAwB,SAAQ,KAAK,CAAC,KAAK;IAgCtD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,MAAM,EAAE,QAAQ;YAChB,YAAY,EAAE,cAAc;YAC5B,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,MAAM,EAAE,QAAQ;YAChB,YAAY,EAAE,QAAQ;YACtB,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzDD,0DAyDC"}
1
+ {"version":3,"file":"AddKnowledgeTagsRequest.js","sourceRoot":"","sources":["../../src/models/AddKnowledgeTagsRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uBAAwB,SAAQ,KAAK,CAAC,KAAK;IAmCtD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,MAAM,EAAE,QAAQ;YAChB,YAAY,EAAE,cAAc;YAC5B,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,MAAM,EAAE,QAAQ;YAChB,YAAY,EAAE,QAAQ;YACtB,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5DD,0DA4DC"}
@@ -54,7 +54,7 @@ export declare class AddKnowledgeTagsResponseBodyData extends $dara.Model {
54
54
  message?: string;
55
55
  /**
56
56
  * @remarks
57
- * The number of tags that were successfully updated.
57
+ * The number of tags that were successfully modified.
58
58
  *
59
59
  * @example
60
60
  * 1
@@ -67,7 +67,7 @@ export declare class AddKnowledgeTagsResponseBodyData extends $dara.Model {
67
67
  skipped?: AddKnowledgeTagsResponseBodyDataSkipped[];
68
68
  /**
69
69
  * @remarks
70
- * Indicates whether the request was successful. Valid values:
70
+ * Specifies whether the request was successful. Valid values:
71
71
  * - **true**: The request was successful.
72
72
  * - **false**: The request failed.
73
73
  *
@@ -0,0 +1,55 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class ForkKnowledgeFileRequest extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * The ADB instance ID.
6
+ *
7
+ * This parameter is required.
8
+ *
9
+ * @example
10
+ * am-bp19aaaaaa****
11
+ */
12
+ DBClusterId?: string;
13
+ /**
14
+ * @remarks
15
+ * 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.
16
+ *
17
+ * @example
18
+ * 123
19
+ */
20
+ fileId?: string;
21
+ /**
22
+ * @remarks
23
+ * 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.
24
+ *
25
+ * @example
26
+ * oss://bucket/doc.pdf
27
+ */
28
+ fileLocation?: string;
29
+ /**
30
+ * @remarks
31
+ * 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.
32
+ *
33
+ * @example
34
+ * {"biz.game":"yys"}
35
+ */
36
+ tags?: string;
37
+ /**
38
+ * @remarks
39
+ * 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.
40
+ *
41
+ * @example
42
+ * ["alice","bob"]
43
+ */
44
+ uploadUser?: string;
45
+ static names(): {
46
+ [key: string]: string;
47
+ };
48
+ static types(): {
49
+ [key: string]: any;
50
+ };
51
+ validate(): void;
52
+ constructor(map?: {
53
+ [key: string]: any;
54
+ });
55
+ }
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.ForkKnowledgeFileRequest = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class ForkKnowledgeFileRequest extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ DBClusterId: 'DBClusterId',
43
+ fileId: 'FileId',
44
+ fileLocation: 'FileLocation',
45
+ tags: 'Tags',
46
+ uploadUser: 'UploadUser',
47
+ };
48
+ }
49
+ static types() {
50
+ return {
51
+ DBClusterId: 'string',
52
+ fileId: 'string',
53
+ fileLocation: 'string',
54
+ tags: 'string',
55
+ uploadUser: 'string',
56
+ };
57
+ }
58
+ validate() {
59
+ super.validate();
60
+ }
61
+ constructor(map) {
62
+ super(map);
63
+ }
64
+ }
65
+ exports.ForkKnowledgeFileRequest = ForkKnowledgeFileRequest;
66
+ //# sourceMappingURL=ForkKnowledgeFileRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ForkKnowledgeFileRequest.js","sourceRoot":"","sources":["../../src/models/ForkKnowledgeFileRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wBAAyB,SAAQ,KAAK,CAAC,KAAK;IA2CvD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,MAAM,EAAE,QAAQ;YAChB,YAAY,EAAE,cAAc;YAC5B,IAAI,EAAE,MAAM;YACZ,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,MAAM,EAAE,QAAQ;YAChB,YAAY,EAAE,QAAQ;YACtB,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,QAAQ;SACrB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtED,4DAsEC"}
@@ -0,0 +1,19 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ import { ForkKnowledgeFileResponseBody } from "./ForkKnowledgeFileResponseBody";
3
+ export declare class ForkKnowledgeFileResponse extends $dara.Model {
4
+ headers?: {
5
+ [key: string]: string;
6
+ };
7
+ statusCode?: number;
8
+ body?: ForkKnowledgeFileResponseBody;
9
+ static names(): {
10
+ [key: string]: string;
11
+ };
12
+ static types(): {
13
+ [key: string]: any;
14
+ };
15
+ validate(): void;
16
+ constructor(map?: {
17
+ [key: string]: any;
18
+ });
19
+ }
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.ForkKnowledgeFileResponse = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ const ForkKnowledgeFileResponseBody_1 = require("./ForkKnowledgeFileResponseBody");
40
+ class ForkKnowledgeFileResponse extends $dara.Model {
41
+ static names() {
42
+ return {
43
+ headers: 'headers',
44
+ statusCode: 'statusCode',
45
+ body: 'body',
46
+ };
47
+ }
48
+ static types() {
49
+ return {
50
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
51
+ statusCode: 'number',
52
+ body: ForkKnowledgeFileResponseBody_1.ForkKnowledgeFileResponseBody,
53
+ };
54
+ }
55
+ validate() {
56
+ if (this.headers) {
57
+ $dara.Model.validateMap(this.headers);
58
+ }
59
+ if (this.body && typeof this.body.validate === 'function') {
60
+ this.body.validate();
61
+ }
62
+ super.validate();
63
+ }
64
+ constructor(map) {
65
+ super(map);
66
+ }
67
+ }
68
+ exports.ForkKnowledgeFileResponse = ForkKnowledgeFileResponse;
69
+ //# sourceMappingURL=ForkKnowledgeFileResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ForkKnowledgeFileResponse.js","sourceRoot":"","sources":["../../src/models/ForkKnowledgeFileResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,mFAAgF;AAGhF,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IAIxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,6DAA6B;SACpC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,8DAiCC"}
@@ -0,0 +1,94 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class ForkKnowledgeFileResponseBodyData extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * 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.
6
+ *
7
+ * @example
8
+ * 456
9
+ */
10
+ fileId?: string;
11
+ /**
12
+ * @remarks
13
+ * 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.
14
+ *
15
+ * @example
16
+ * fork://123/456
17
+ */
18
+ fileLocation?: string;
19
+ /**
20
+ * @remarks
21
+ * The description of the operation result. If the business operation fails, this parameter indicates the cause or the security error code.
22
+ *
23
+ * @example
24
+ * Fork succeeded
25
+ */
26
+ message?: string;
27
+ /**
28
+ * @remarks
29
+ * 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.
30
+ *
31
+ * @example
32
+ * 123
33
+ */
34
+ ownerFileId?: string;
35
+ /**
36
+ * @remarks
37
+ * The status of the new reference record. The value is fixed to DUPLICATED. This parameter is returned only when the operation is successful.
38
+ *
39
+ * @example
40
+ * DUPLICATED
41
+ */
42
+ processStatus?: string;
43
+ /**
44
+ * @remarks
45
+ * The ID of the source file, represented as a decimal string. This parameter is returned only when the operation is successful.
46
+ *
47
+ * @example
48
+ * 123
49
+ */
50
+ sourceFileId?: string;
51
+ /**
52
+ * @remarks
53
+ * Indicates whether the business operation is successful. If the operation fails, the Data parameter contains only Success and Message.
54
+ *
55
+ * @example
56
+ * true
57
+ */
58
+ success?: boolean;
59
+ static names(): {
60
+ [key: string]: string;
61
+ };
62
+ static types(): {
63
+ [key: string]: any;
64
+ };
65
+ validate(): void;
66
+ constructor(map?: {
67
+ [key: string]: any;
68
+ });
69
+ }
70
+ export declare class ForkKnowledgeFileResponseBody extends $dara.Model {
71
+ /**
72
+ * @remarks
73
+ * The returned data.
74
+ */
75
+ data?: ForkKnowledgeFileResponseBodyData;
76
+ /**
77
+ * @remarks
78
+ * Id of the request
79
+ *
80
+ * @example
81
+ * 1AD222E9-E606-4A42-BF6D-8A4442913CEF
82
+ */
83
+ requestId?: string;
84
+ static names(): {
85
+ [key: string]: string;
86
+ };
87
+ static types(): {
88
+ [key: string]: any;
89
+ };
90
+ validate(): void;
91
+ constructor(map?: {
92
+ [key: string]: any;
93
+ });
94
+ }
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.ForkKnowledgeFileResponseBody = exports.ForkKnowledgeFileResponseBodyData = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class ForkKnowledgeFileResponseBodyData extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ fileId: 'FileId',
43
+ fileLocation: 'FileLocation',
44
+ message: 'Message',
45
+ ownerFileId: 'OwnerFileId',
46
+ processStatus: 'ProcessStatus',
47
+ sourceFileId: 'SourceFileId',
48
+ success: 'Success',
49
+ };
50
+ }
51
+ static types() {
52
+ return {
53
+ fileId: 'string',
54
+ fileLocation: 'string',
55
+ message: 'string',
56
+ ownerFileId: 'string',
57
+ processStatus: 'string',
58
+ sourceFileId: 'string',
59
+ success: 'boolean',
60
+ };
61
+ }
62
+ validate() {
63
+ super.validate();
64
+ }
65
+ constructor(map) {
66
+ super(map);
67
+ }
68
+ }
69
+ exports.ForkKnowledgeFileResponseBodyData = ForkKnowledgeFileResponseBodyData;
70
+ class ForkKnowledgeFileResponseBody extends $dara.Model {
71
+ static names() {
72
+ return {
73
+ data: 'Data',
74
+ requestId: 'RequestId',
75
+ };
76
+ }
77
+ static types() {
78
+ return {
79
+ data: ForkKnowledgeFileResponseBodyData,
80
+ requestId: 'string',
81
+ };
82
+ }
83
+ validate() {
84
+ if (this.data && typeof this.data.validate === 'function') {
85
+ this.data.validate();
86
+ }
87
+ super.validate();
88
+ }
89
+ constructor(map) {
90
+ super(map);
91
+ }
92
+ }
93
+ exports.ForkKnowledgeFileResponseBody = ForkKnowledgeFileResponseBody;
94
+ //# sourceMappingURL=ForkKnowledgeFileResponseBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ForkKnowledgeFileResponseBody.js","sourceRoot":"","sources":["../../src/models/ForkKnowledgeFileResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;IAyDhE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,YAAY,EAAE,cAAc;YAC5B,OAAO,EAAE,SAAS;YAClB,WAAW,EAAE,aAAa;YAC1B,aAAa,EAAE,eAAe;YAC9B,YAAY,EAAE,cAAc;YAC5B,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,YAAY,EAAE,QAAQ;YACtB,OAAO,EAAE,QAAQ;YACjB,WAAW,EAAE,QAAQ;YACrB,aAAa,EAAE,QAAQ;YACvB,YAAY,EAAE,QAAQ;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxFD,8EAwFC;AAED,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAc5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,iCAAiC;YACvC,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtCD,sEAsCC"}
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class ListKnowledgeFilesRequest extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * The ADB instance ID.
5
+ * The ID of the ADB instance.
6
6
  *
7
7
  * This parameter is required.
8
8
  *
@@ -20,7 +20,15 @@ export declare class ListKnowledgeFilesRequest extends $dara.Model {
20
20
  fileIds?: string;
21
21
  /**
22
22
  * @remarks
23
- * The page number, starting from 1. If this parameter is not specified, the default value is 1.
23
+ * The URL of the knowledge base file.
24
+ *
25
+ * @example
26
+ * oss://bucket_name/path/to/file
27
+ */
28
+ fileLocation?: string;
29
+ /**
30
+ * @remarks
31
+ * The page number. Pages start from 1. If you do not specify this parameter, the default value is 1.
24
32
  *
25
33
  * @example
26
34
  * 1
@@ -28,7 +36,7 @@ export declare class ListKnowledgeFilesRequest extends $dara.Model {
28
36
  page?: string;
29
37
  /**
30
38
  * @remarks
31
- * The number of entries per page. Valid values: 1 to 100. If this parameter is not specified, the default value is 20.
39
+ * The number of entries per page. Valid values: 1 to 100. If you do not specify this parameter, the default value is 20.
32
40
  *
33
41
  * @example
34
42
  * 20
@@ -44,7 +52,7 @@ export declare class ListKnowledgeFilesRequest extends $dara.Model {
44
52
  status?: string;
45
53
  /**
46
54
  * @remarks
47
- * The stable ID of the authorized user. If this parameter is not specified, all files in the knowledge base can be queried.
55
+ * The stable ID of the authorized user. If you do not specify this parameter, all files in the knowledge base can be queried.
48
56
  *
49
57
  * @example
50
58
  * u123
@@ -41,6 +41,7 @@ class ListKnowledgeFilesRequest extends $dara.Model {
41
41
  return {
42
42
  DBClusterId: 'DBClusterId',
43
43
  fileIds: 'FileIds',
44
+ fileLocation: 'FileLocation',
44
45
  page: 'Page',
45
46
  pageSize: 'PageSize',
46
47
  status: 'Status',
@@ -51,6 +52,7 @@ class ListKnowledgeFilesRequest extends $dara.Model {
51
52
  return {
52
53
  DBClusterId: 'string',
53
54
  fileIds: 'string',
55
+ fileLocation: 'string',
54
56
  page: 'string',
55
57
  pageSize: 'string',
56
58
  status: 'string',
@@ -1 +1 @@
1
- {"version":3,"file":"ListKnowledgeFilesRequest.js","sourceRoot":"","sources":["../../src/models/ListKnowledgeFilesRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IAmDxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,OAAO,EAAE,SAAS;YAClB,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,OAAO,EAAE,QAAQ;YACjB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,QAAQ;YAClB,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhFD,8DAgFC"}
1
+ {"version":3,"file":"ListKnowledgeFilesRequest.js","sourceRoot":"","sources":["../../src/models/ListKnowledgeFilesRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IA2DxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,cAAc;YAC5B,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,OAAO,EAAE,QAAQ;YACjB,YAAY,EAAE,QAAQ;YACtB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,QAAQ;YAClB,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA1FD,8DA0FC"}
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class ListKnowledgeFilesResponseBodyDataFiles extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * The time when the file was added to the knowledge base. The format is yyyy-MM-dd HH:mm:ss.
5
+ * The time when the file was added to the knowledge base. The time is in the yyyy-MM-dd HH:mm:ss format.
6
6
  *
7
7
  * @example
8
8
  * 2026-06-09 10:27:35
@@ -50,7 +50,7 @@ export declare class ListKnowledgeFilesResponseBodyDataFiles extends $dara.Model
50
50
  isDirectory?: boolean;
51
51
  /**
52
52
  * @remarks
53
- * The file_id of the content host.
53
+ * The `file_id` of the content host.
54
54
  *
55
55
  * @example
56
56
  * 122
@@ -66,7 +66,7 @@ export declare class ListKnowledgeFilesResponseBodyDataFiles extends $dara.Model
66
66
  pageCount?: number;
67
67
  /**
68
68
  * @remarks
69
- * The processing information of the knowledge base file.
69
+ * The processing message of the knowledge base file.
70
70
  *
71
71
  * @example
72
72
  * successful
@@ -86,7 +86,7 @@ export declare class ListKnowledgeFilesResponseBodyDataFiles extends $dara.Model
86
86
  processStatus?: string;
87
87
  /**
88
88
  * @remarks
89
- * The update time. The format is yyyy-MM-dd HH:mm:ss.
89
+ * The time when the file was updated. The time is in the yyyy-MM-dd HH:mm:ss format.
90
90
  *
91
91
  * @example
92
92
  * 2026-06-10 10:23:46
@@ -135,9 +135,9 @@ export declare class ListKnowledgeFilesResponseBodyData extends $dara.Model {
135
135
  pageSize?: number;
136
136
  /**
137
137
  * @remarks
138
- * Indicates whether the request was successful. Valid values:
139
- * - **true**: The request was successful.
140
- * - **false**: The request failed.
138
+ * Indicates whether the request is successful. Valid values:
139
+ * - **true**: The request is successful.
140
+ * - **false**: The request fails.
141
141
  *
142
142
  * @example
143
143
  * true
@@ -145,7 +145,7 @@ export declare class ListKnowledgeFilesResponseBodyData extends $dara.Model {
145
145
  success?: boolean;
146
146
  /**
147
147
  * @remarks
148
- * The total number of records.
148
+ * The total number of entries.
149
149
  *
150
150
  * @example
151
151
  * 100
@@ -0,0 +1,39 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class TriggerKnowledgeFileParseRequest extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * The ADB instance ID.
6
+ *
7
+ * This parameter is required.
8
+ *
9
+ * @example
10
+ * am-bp19aaaaaa****
11
+ */
12
+ DBClusterId?: string;
13
+ /**
14
+ * @remarks
15
+ * The ID of the knowledge base file. You must specify either this parameter or FileLocation, but not both.
16
+ *
17
+ * @example
18
+ * 123
19
+ */
20
+ fileId?: string;
21
+ /**
22
+ * @remarks
23
+ * 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.
24
+ *
25
+ * @example
26
+ * oss://bucket/doc.pdf
27
+ */
28
+ fileLocation?: string;
29
+ static names(): {
30
+ [key: string]: string;
31
+ };
32
+ static types(): {
33
+ [key: string]: any;
34
+ };
35
+ validate(): void;
36
+ constructor(map?: {
37
+ [key: string]: any;
38
+ });
39
+ }