@alicloud/polardb20170801 8.2.5 → 8.3.1

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 (45) hide show
  1. package/dist/client.d.ts +21 -6
  2. package/dist/client.js +57 -6
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DescribeApplicationsRequest.d.ts +14 -13
  5. package/dist/models/DescribeApplicationsRequest.js.map +1 -1
  6. package/dist/models/DescribeApplicationsResponseBody.d.ts +8 -7
  7. package/dist/models/DescribeApplicationsResponseBody.js +2 -0
  8. package/dist/models/DescribeApplicationsResponseBody.js.map +1 -1
  9. package/dist/models/DescribeKbsyncLinksRequest.d.ts +16 -0
  10. package/dist/models/DescribeKbsyncLinksRequest.js +4 -0
  11. package/dist/models/DescribeKbsyncLinksRequest.js.map +1 -1
  12. package/dist/models/DescribeKbsyncLinksResponseBody.d.ts +25 -1
  13. package/dist/models/DescribeKbsyncLinksResponseBody.js +6 -0
  14. package/dist/models/DescribeKbsyncLinksResponseBody.js.map +1 -1
  15. package/dist/models/ModifyDbclusterEndpointRequest.d.ts +59 -87
  16. package/dist/models/ModifyDbclusterEndpointRequest.js.map +1 -1
  17. package/dist/models/RegisterKnowledgeBaseFileRequest.d.ts +43 -0
  18. package/dist/models/RegisterKnowledgeBaseFileRequest.js +62 -0
  19. package/dist/models/RegisterKnowledgeBaseFileRequest.js.map +1 -0
  20. package/dist/models/RegisterKnowledgeBaseFileResponse.d.ts +19 -0
  21. package/dist/models/RegisterKnowledgeBaseFileResponse.js +69 -0
  22. package/dist/models/RegisterKnowledgeBaseFileResponse.js.map +1 -0
  23. package/dist/models/RegisterKnowledgeBaseFileResponseBody.d.ts +63 -0
  24. package/dist/models/RegisterKnowledgeBaseFileResponseBody.js +68 -0
  25. package/dist/models/RegisterKnowledgeBaseFileResponseBody.js.map +1 -0
  26. package/dist/models/RetrievalKnowledgeBaseRequest.d.ts +2 -2
  27. package/dist/models/RetrievalKnowledgeBaseResponseBody.d.ts +73 -6
  28. package/dist/models/RetrievalKnowledgeBaseResponseBody.js +43 -1
  29. package/dist/models/RetrievalKnowledgeBaseResponseBody.js.map +1 -1
  30. package/dist/models/model.d.ts +4 -0
  31. package/dist/models/model.js +41 -33
  32. package/dist/models/model.js.map +1 -1
  33. package/package.json +1 -1
  34. package/src/client.ts +64 -6
  35. package/src/models/DescribeApplicationsRequest.ts +14 -13
  36. package/src/models/DescribeApplicationsResponseBody.ts +10 -7
  37. package/src/models/DescribeKbsyncLinksRequest.ts +20 -0
  38. package/src/models/DescribeKbsyncLinksResponseBody.ts +31 -1
  39. package/src/models/ModifyDbclusterEndpointRequest.ts +59 -87
  40. package/src/models/RegisterKnowledgeBaseFileRequest.ts +60 -0
  41. package/src/models/RegisterKnowledgeBaseFileResponse.ts +40 -0
  42. package/src/models/RegisterKnowledgeBaseFileResponseBody.ts +86 -0
  43. package/src/models/RetrievalKnowledgeBaseRequest.ts +2 -2
  44. package/src/models/RetrievalKnowledgeBaseResponseBody.ts +106 -6
  45. package/src/models/model.ts +4 -0
@@ -21,6 +21,22 @@ export class DescribeKBSyncLinksRequest extends $dara.Model {
21
21
  * pkb-xxxxx
22
22
  */
23
23
  knowledgeBaseId?: string;
24
+ /**
25
+ * @remarks
26
+ * The page number of the query results. Default value: 1.
27
+ *
28
+ * @example
29
+ * 1
30
+ */
31
+ pageNumber?: number;
32
+ /**
33
+ * @remarks
34
+ * The number of synchronization links returned per page. Valid values: 10, 20, 30, 50, 100, 200, and 500. Default value: 30.
35
+ *
36
+ * @example
37
+ * 30
38
+ */
39
+ pageSize?: number;
24
40
  /**
25
41
  * @remarks
26
42
  * The region ID.
@@ -35,6 +51,8 @@ export class DescribeKBSyncLinksRequest extends $dara.Model {
35
51
  return {
36
52
  imPlatform: 'ImPlatform',
37
53
  knowledgeBaseId: 'KnowledgeBaseId',
54
+ pageNumber: 'PageNumber',
55
+ pageSize: 'PageSize',
38
56
  regionId: 'RegionId',
39
57
  };
40
58
  }
@@ -43,6 +61,8 @@ export class DescribeKBSyncLinksRequest extends $dara.Model {
43
61
  return {
44
62
  imPlatform: 'string',
45
63
  knowledgeBaseId: 'string',
64
+ pageNumber: 'number',
65
+ pageSize: 'number',
46
66
  regionId: 'string',
47
67
  };
48
68
  }
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class DescribeKBSyncLinksResponseBodyItems extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The client identifier.
8
+ * The client ID.
9
9
  *
10
10
  * @example
11
11
  * cli_xxxxxxbe8
@@ -122,6 +122,22 @@ export class DescribeKBSyncLinksResponseBody extends $dara.Model {
122
122
  * The list of synchronization links.
123
123
  */
124
124
  items?: DescribeKBSyncLinksResponseBodyItems[];
125
+ /**
126
+ * @remarks
127
+ * The page number of the current results.
128
+ *
129
+ * @example
130
+ * 1
131
+ */
132
+ pageNumber?: number;
133
+ /**
134
+ * @remarks
135
+ * The number of records per page in the current results.
136
+ *
137
+ * @example
138
+ * 30
139
+ */
140
+ pageSize?: number;
125
141
  /**
126
142
  * @remarks
127
143
  * Id of the request
@@ -130,17 +146,31 @@ export class DescribeKBSyncLinksResponseBody extends $dara.Model {
130
146
  * EB07CFF0-D8A4-5C76-AED7-D00E26FC2***
131
147
  */
132
148
  requestId?: string;
149
+ /**
150
+ * @remarks
151
+ * The total number of synchronization links that match the query conditions.
152
+ *
153
+ * @example
154
+ * 1
155
+ */
156
+ totalRecordCount?: number;
133
157
  static names(): { [key: string]: string } {
134
158
  return {
135
159
  items: 'Items',
160
+ pageNumber: 'PageNumber',
161
+ pageSize: 'PageSize',
136
162
  requestId: 'RequestId',
163
+ totalRecordCount: 'TotalRecordCount',
137
164
  };
138
165
  }
139
166
 
140
167
  static types(): { [key: string]: any } {
141
168
  return {
142
169
  items: { 'type': 'array', 'itemType': DescribeKBSyncLinksResponseBodyItems },
170
+ pageNumber: 'number',
171
+ pageSize: 'number',
143
172
  requestId: 'string',
173
+ totalRecordCount: 'number',
144
174
  };
145
175
  }
146
176
 
@@ -5,11 +5,10 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ModifyDBClusterEndpointRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * Specifies whether to automatically add new nodes to the endpoint. Valid values:
8
+ * Specifies whether new nodes are automatically added to the endpoint. Valid values:
9
9
  *
10
- * - **Enable**: Automatically adds new nodes.
11
- *
12
- * - **Disable**: Does not automatically add new nodes. This is the default value.
10
+ * - **Enable**: New nodes are automatically added.
11
+ * - **Disable**: New nodes are not automatically added. (Default)
13
12
  *
14
13
  * @example
15
14
  * Enable
@@ -35,7 +34,7 @@ export class ModifyDBClusterEndpointRequest extends $dara.Model {
35
34
  DBEndpointDescription?: string;
36
35
  /**
37
36
  * @remarks
38
- * The ID of the cluster endpoint.
37
+ * The cluster endpoint ID.
39
38
  *
40
39
  * This parameter is required.
41
40
  *
@@ -45,83 +44,60 @@ export class ModifyDBClusterEndpointRequest extends $dara.Model {
45
44
  DBEndpointId?: string;
46
45
  /**
47
46
  * @remarks
48
- * The advanced configurations of the cluster endpoint in JSON format. You can set the consistency level, transaction splitting, whether the primary node accepts read requests, the connection pool, and other settings.
49
- *
50
- * - Sets the load balancing policy. Format: `{\\"LoadBalancePolicy\\":\\"policy\\"}`. Valid values:
51
- *
52
- * - **0**: Connections-based load balancing (default)
53
- *
54
- * - **1**: Active requests-based load balancing
55
- *
56
- * - Specifies whether the primary node accepts read requests. Format: `{\\"MasterAcceptReads\\":\\"value\\"}`. Valid values:
57
- *
58
- * - **on**: The primary node accepts read requests (default).
59
- *
60
- * - **off**: The primary node does not accept read requests.
61
- *
62
- * - Enables or disables transaction splitting. Format: `{\\"DistributedTransaction\\":\\"value\\"}`. Valid values:
63
- *
64
- * - **on**: Enables transaction splitting (default).
65
- *
66
- * - **off**: Disables transaction splitting.
67
- *
68
- * - Sets the consistency level. Format: `{\\"ConsistLevel\\":\\"level\\"}`. Valid values:
47
+ * The advanced configuration of the cluster endpoint in JSON format. You can configure the consistency level, transaction splitting, whether the primary node accepts read requests, and connection pooling.
69
48
  *
70
- * - **0**: Eventual consistency (weak)
49
+ * * To set the load balancing policy, use the format `{\\"LoadBalancePolicy\\":\\"Load balancing policy\\"}`. Valid values:
50
+ * * **0**: connection-based load balancing (default)
51
+ * * **1**: active-request-based load balancing
71
52
  *
72
- * - **1**: Session consistency (medium) (default)
53
+ * * To set whether the primary node accepts read requests, use the format `{\\"MasterAcceptReads\\":\\"Whether the primary node accepts reads\\"}`. Valid values:
54
+ * * **on**: The primary node accepts read requests. (Default)
55
+ * * **off**: The primary node does not accept read requests.
73
56
  *
74
- * - **2**: Global consistency (strong)
57
+ * * To set transaction splitting, use the format `{\\"DistributedTransaction\\":\\"Transaction splitting\\"}`. Valid values:
58
+ * * **on**: Transaction splitting is enabled. (Default)
59
+ * * **off**: Transaction splitting is disabled.
75
60
  *
76
- * - Sets the timeout period for a global consistency read. Format: `{\\"ConsistTimeout\\":\\"timeout\\"}`. Valid values: 0 to 60000. Default value: 20. Unit: ms.
61
+ * * To set the consistency level, use the format `{\\"ConsistLevel\\":\\"Consistency level\\"}`. Valid values:
62
+ * * **0**: eventual consistency (weak)
63
+ * * **1**: session consistency (medium) (default)
64
+ * * **2**: global consistency (strong)
77
65
  *
78
- * - Sets the timeout period for a session consistency read. Format: `{\\"ConsistSessionTimeout\\":\\"timeout\\"}`. Valid values: 0 to 60000. Default value: 0. Unit: ms.
66
+ * * To set the global consistency read timeout period, use the format `{\\"ConsistTimeout\\":\\"Global consistency read timeout\\"}`. Valid values: 0 to 60000. Default value: 20. Unit: ms.
79
67
  *
80
- * - Sets the policy for handling timeouts of global or session consistency reads. Format: `{\\"ConsistTimeoutAction\\":\\"policy\\"}`. Valid values:
68
+ * * To set the session consistency read timeout period, use the format `{\\"ConsistSessionTimeout\\":\\"Session consistency read timeout\\"}`. Valid values: 0 to 60000. Default value: 0. Unit: ms.
81
69
  *
82
- * - **0**: Forwards read requests to the primary node (default).
70
+ * * To set the global (or session) consistency read timeout policy, use the format `{\\"ConsistTimeoutAction\\":\\"Global consistency read timeout policy\\"}`. Valid values:
71
+ * * **0**: Forward the read request to the primary node. (Default)
72
+ * * **1**: The proxy returns the error message `wait replication complete timeout, please retry` to the application.
83
73
  *
84
- * - **1**: The proxy returns the error message \\`wait replication complete timeout, please retry\\` to the application.
74
+ * * To set the connection pool, use the format `{\\"ConnectionPersist\\":\\"Connection pool\\"}`. Valid values:
75
+ * * **off**: The connection pool is disabled. (Default)
76
+ * * **Session**: The session-level connection pool is enabled.
77
+ * * **Transaction**: The transaction-level connection pooling is enabled.
85
78
  *
86
- * - Sets the connection pool type. Format: `{\\"ConnectionPersist\\":\\"type\\"}`. Valid values:
79
+ * * To set parallel query, use the format `{\\"MaxParallelDegree\\":\\"Parallel query\\"}`. Valid values:
80
+ * * **on**: Parallel query is enabled.
81
+ * * **off**: Parallel query is disabled. (Default)
87
82
  *
88
- * - **off**: Disables the connection pool (default).
83
+ * * To set automatic request distribution among row offload reads from primary nodes, use the format `{\\"EnableHtapImci\\":\\"Automatic request distribution among row store and column store\\"}`. Valid values:
84
+ * * **on**: Automatic request distribution among row offload reads from primary nodes is enabled.
85
+ * * **off**: Automatic request distribution among row offload reads from primary nodes is disabled. (Default)
89
86
  *
90
- * - **Session**: Enables the session-level connection pool.
91
87
  *
92
- * - **Transaction**: Enables the transaction-level connection pool.
88
+ * * To set whether to enable overload protection, use the format `{\\"EnableOverloadThrottle\\":\\"Whether to enable overload protection\\"}`. Valid values:
89
+ * * **on**: Overload protection is enabled.
90
+ * * **off**: Overload protection is disabled. (Default)
93
91
  *
94
- * - Enables or disables parallel query. Format: `{\\"MaxParallelDegree\\":\\"value\\"}`. Valid values:
92
+ * * To set node weights, use the format `{\\"NodesWeight\\":{\\"Node ID\\":\\"Weight value\\"}}`.
95
93
  *
96
- * - **on**: Enables parallel query.
97
- *
98
- * - **off**: Disables parallel query (default).
99
- *
100
- * - Enables or disables automatic routing of requests to the row store or column store. Format: `{\\"EnableHtapImci\\":\\"value\\"}`. Valid values:
101
- *
102
- * - **on**: Enables automatic routing.
103
- *
104
- * - **off**: Disables automatic routing (default).
105
- *
106
- * - Enables or disables overload protection. Format: `{\\"EnableOverloadThrottle\\":\\"value\\"}`. Valid values:
107
- *
108
- * - **on**: Enables overload protection.
109
- *
110
- * - **off**: Disables overload protection (default).
111
- *
112
- * > * You can set transaction splitting, whether the primary node accepts read requests, the connection pool, and overload protection only when the read/write mode of the cluster endpoint for PolarDB for MySQL is set to ReadWrite (automatic read/write splitting).
113
- * >
114
- * > * If the read/write mode of a cluster endpoint for PolarDB for MySQL is **ReadOnly**, both **connections-based** and **active requests-based** load balancing policies are supported. If the read/write mode is **ReadWrite** (automatic read/write splitting), only the **active requests-based** load balancing policy is supported.
115
- * >
116
- * > * You can enable automatic routing to the row store or column store if the read/write mode of the cluster endpoint for PolarDB for MySQL is **ReadWrite** (automatic read/write splitting), or if the read/write mode is **ReadOnly** and the load balancing policy is **active requests-based**.
117
- * >
118
- * > * Only PolarDB for MySQL supports global consistency.
119
- * >
120
- * > * If you set the **ReadWriteMode** parameter to **ReadOnly**, you can only set the consistency level to **0**.
121
- * >
122
- * > * You can set the consistency level, transaction splitting, whether the primary node accepts read requests, and the connection pool at the same time. For example: `{\\"ConsistLevel\\":\\"1\\",\\"DistributedTransaction\\":\\"on\\",\\"ConnectionPersist\\":\\"Session\\",\\"MasterAcceptReads\\":\\"on\\"}`.
123
- * >
124
- * > * The transaction splitting setting is constrained by the consistency level. For example, you cannot enable transaction splitting if the consistency level is **0** (eventual consistency). You can enable transaction splitting if the consistency level is **1** (session consistency) or **2** (global consistency).
94
+ * > * Transaction splitting, whether the primary node accepts read requests, connection pooling, and overload protection can be configured only when the read/write mode of the PolarDB for MySQL cluster endpoint is **ReadWrite (automatic read/write splitting)**.
95
+ * > * When the read/write mode of the PolarDB for MySQL cluster endpoint is **ReadOnly**, both **connection-based load balancing** and **active-request-based load balancing** policies are supported. The **ReadWrite (automatic read/write splitting)** mode supports only the **active-request-based load balancing** policy.
96
+ * > * Automatic request distribution among row offload reads from primary nodes can be configured when the read/write mode of the PolarDB for MySQL cluster endpoint is **ReadWrite (automatic read/write splitting)**, or when the read/write mode is **ReadOnly** and the load balancing policy is **active-request-based load balancing**.
97
+ * > * Only PolarDB for MySQL supports setting the consistency level to global consistency.
98
+ * > * If **ReadWriteMode** is set to **ReadOnly**, the consistency level can only be set to **0**.
99
+ * > * You can configure the consistency level, transaction splitting, whether the primary node accepts read requests, and connection pooling at the same time. Example: `{\\"ConsistLevel\\":\\"1\\",\\"DistributedTransaction\\":\\"on\\",\\"ConnectionPersist\\":\\"Session\\",\\"MasterAcceptReads\\":\\"on\\"}`.
100
+ * > * Transaction splitting is constrained by the consistency level. For example, transaction splitting cannot be enabled when the consistency level is **0**. Transaction splitting can be enabled when the consistency level is **1** or **2**.
125
101
  *
126
102
  * @example
127
103
  * {"ConsistLevel":"1","DistributedTransaction":"on","MasterAcceptReads":"off","ConnectionPersist": "on"}
@@ -129,17 +105,14 @@ export class ModifyDBClusterEndpointRequest extends $dara.Model {
129
105
  endpointConfig?: string;
130
106
  /**
131
107
  * @remarks
132
- * The nodes to be added to the endpoint for read request distribution. Separate multiple node IDs with commas (,). The original nodes are used by default.
133
- *
134
- * > - For PolarDB for MySQL, specify the node IDs.
135
- * >
136
- * > - For PolarDB for PostgreSQL and PolarDB for PostgreSQL (Oracle Compatible), specify the node roles, such as `Writer,Reader1,Reader2`.
137
- * >
138
- * > - If you set **ReadWriteMode** to **ReadOnly**, you can attach only one node. However, if this node fails, the endpoint may be unavailable for up to one hour. Do not use this configuration in a production environment. Select at least two nodes to improve availability.
139
- * >
140
- * > - If you set **ReadWriteMode** to **ReadWrite**, you must select at least two nodes.
141
- * > \\* For PolarDB for MySQL, you can select any two nodes. If both nodes are read-only nodes, write requests are sent to the primary node.
142
- * > \\* For PolarDB for PostgreSQL and PolarDB for PostgreSQL (Oracle Compatible), you must include the primary node.
108
+ * The read load nodes to add to the endpoint. Separate multiple nodes with commas (,). Default value: the existing nodes.
109
+ *
110
+ * > * For PolarDB for MySQL, specify node IDs.
111
+ * > * For PolarDB for PostgreSQL and PolarDB for PostgreSQL (Compatible with Oracle), specify node role names, such as `Writer,Reader1,Reader2`.
112
+ * > * If **ReadWriteMode** is set to **ReadOnly**, you can mount only one node. However, if this node fails, the endpoint may be unavailable for up to 1 hour. Do not use this configuration in production environments. Select at least 2 nodes to improve availability.
113
+ * > * If **ReadWriteMode** is set to **ReadWrite**, select at least 2 nodes.
114
+ * * PolarDB for MySQL allows you to select any two nodes. If both nodes are read-only nodes, write requests are forwarded to the primary node.
115
+ * * PolarDB for PostgreSQL and PolarDB for PostgreSQL (Compatible with Oracle) require the primary node to be included.
143
116
  *
144
117
  * @example
145
118
  * pi-**************,pi-*************
@@ -149,11 +122,11 @@ export class ModifyDBClusterEndpointRequest extends $dara.Model {
149
122
  ownerId?: number;
150
123
  /**
151
124
  * @remarks
152
- * The policy for handling global consistency timeouts. Valid values:
125
+ * The timeout policy for global consistency. Valid values:
153
126
  *
154
- * - **0**: Forwards the request to the primary node.
127
+ * - **0**: Send the request to the primary node.
155
128
  *
156
- * - **2**: Degrades the request. If a global consistency read times out, the query is automatically degraded to a regular request. The client does not receive an error message.
129
+ * - **2**: Timeout degradation. When the global consistency read times out, the query is automatically degraded to regular requests, and the client does not receive an error message.
157
130
  *
158
131
  * @example
159
132
  * 0
@@ -171,9 +144,8 @@ export class ModifyDBClusterEndpointRequest extends $dara.Model {
171
144
  * @remarks
172
145
  * The read/write mode. Valid values:
173
146
  *
174
- * - **ReadWrite**: Read/write (automatic read/write splitting)
175
- *
176
- * - **ReadOnly**: Read-only
147
+ * - **ReadWrite**: read/write (automatic read/write splitting)
148
+ * - **ReadOnly**: read-only
177
149
  *
178
150
  * @example
179
151
  * ReadWrite
@@ -185,9 +157,9 @@ export class ModifyDBClusterEndpointRequest extends $dara.Model {
185
157
  * @remarks
186
158
  * Specifies whether to enable the global consistency (high-performance mode) feature for the node. Valid values:
187
159
  *
188
- * - **ON**: Enable
160
+ * - **ON**: Enabled.
189
161
  *
190
- * - **OFF**: Disable
162
+ * - **OFF**: Disabled.
191
163
  *
192
164
  * @example
193
165
  * on
@@ -0,0 +1,60 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class RegisterKnowledgeBaseFileRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The OSS object key of the uploaded file, excluding the oss://BucketName/ prefix.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * pks-2ze123456789abcd/pkb-2ze123456789abcd/example.pdf
14
+ */
15
+ filePath?: string;
16
+ /**
17
+ * @remarks
18
+ * The knowledge base ID.
19
+ *
20
+ * This parameter is required.
21
+ *
22
+ * @example
23
+ * pkb-2ze123456789abcd
24
+ */
25
+ knowledgeBaseId?: string;
26
+ /**
27
+ * @remarks
28
+ * The ID of the region where the knowledge base resides.
29
+ *
30
+ * This parameter is required.
31
+ *
32
+ * @example
33
+ * cn-beijing
34
+ */
35
+ regionId?: string;
36
+ static names(): { [key: string]: string } {
37
+ return {
38
+ filePath: 'FilePath',
39
+ knowledgeBaseId: 'KnowledgeBaseId',
40
+ regionId: 'RegionId',
41
+ };
42
+ }
43
+
44
+ static types(): { [key: string]: any } {
45
+ return {
46
+ filePath: 'string',
47
+ knowledgeBaseId: 'string',
48
+ regionId: 'string',
49
+ };
50
+ }
51
+
52
+ validate() {
53
+ super.validate();
54
+ }
55
+
56
+ constructor(map?: { [key: string]: any }) {
57
+ super(map);
58
+ }
59
+ }
60
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { RegisterKnowledgeBaseFileResponseBody } from "./RegisterKnowledgeBaseFileResponseBody";
4
+
5
+
6
+ export class RegisterKnowledgeBaseFileResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: RegisterKnowledgeBaseFileResponseBody;
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: RegisterKnowledgeBaseFileResponseBody,
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,86 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class RegisterKnowledgeBaseFileResponseBody extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The file ID, which is generated by the server based on the ETL rules for native OSS files.
9
+ *
10
+ * @example
11
+ * 3566626f-3cc5-57a3-904c-e777b39baa3d
12
+ */
13
+ fileId?: string;
14
+ /**
15
+ * @remarks
16
+ * The file name.
17
+ *
18
+ * @example
19
+ * example.pdf
20
+ */
21
+ fileName?: string;
22
+ /**
23
+ * @remarks
24
+ * The OSS object key of the registered file.
25
+ *
26
+ * @example
27
+ * pks-2ze123456789abcd/pkb-2ze123456789abcd/example.pdf
28
+ */
29
+ filePath?: string;
30
+ /**
31
+ * @remarks
32
+ * Indicates whether an existing idempotent record is matched. Valid values:
33
+ * - true: An existing idempotent record is matched.
34
+ * - false: No existing idempotent record is matched.
35
+ *
36
+ * @example
37
+ * false
38
+ */
39
+ idempotent?: boolean;
40
+ /**
41
+ * @remarks
42
+ * The request ID.
43
+ *
44
+ * @example
45
+ * 9C3E5A7B-12D4-4F68-9A01-2B3C4D5E6F70
46
+ */
47
+ requestId?: string;
48
+ /**
49
+ * @remarks
50
+ * The file processing status.
51
+ *
52
+ * @example
53
+ * DISPATCHED
54
+ */
55
+ status?: string;
56
+ static names(): { [key: string]: string } {
57
+ return {
58
+ fileId: 'FileId',
59
+ fileName: 'FileName',
60
+ filePath: 'FilePath',
61
+ idempotent: 'Idempotent',
62
+ requestId: 'RequestId',
63
+ status: 'Status',
64
+ };
65
+ }
66
+
67
+ static types(): { [key: string]: any } {
68
+ return {
69
+ fileId: 'string',
70
+ fileName: 'string',
71
+ filePath: 'string',
72
+ idempotent: 'boolean',
73
+ requestId: 'string',
74
+ status: 'string',
75
+ };
76
+ }
77
+
78
+ validate() {
79
+ super.validate();
80
+ }
81
+
82
+ constructor(map?: { [key: string]: any }) {
83
+ super(map);
84
+ }
85
+ }
86
+
@@ -5,12 +5,12 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class RetrievalKnowledgeBaseRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The unique ID of the knowledge base.
8
+ * The unique identifier of the knowledge base. You can specify multiple knowledge bases separated by commas. A maximum of 50 knowledge bases can be specified.
9
9
  *
10
10
  * This parameter is required.
11
11
  *
12
12
  * @example
13
- * pkb-xxxxx
13
+ * pkb-1xxxxx,pkb-2xxxxx
14
14
  */
15
15
  knowledgeBaseId?: string;
16
16
  /**