@alicloud/cs20151215 7.2.5 → 7.3.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.
- package/dist/client.d.ts +110 -72
- package/dist/client.js +259 -72
- package/dist/client.js.map +1 -1
- package/dist/models/AttachInstancesToNodePoolRequest.d.ts +3 -13
- package/dist/models/AttachInstancesToNodePoolRequest.js.map +1 -1
- package/dist/models/CleanClusterUserPermissionsRequest.d.ts +1 -1
- package/dist/models/CleanUserPermissionsRequest.d.ts +2 -2
- package/dist/models/CleanUserPermissionsShrinkRequest.d.ts +2 -2
- package/dist/models/CreateClusterRequest.d.ts +305 -392
- package/dist/models/CreateClusterRequest.js.map +1 -1
- package/dist/models/DeleteClusterNodesRequest.d.ts +15 -7
- package/dist/models/DeleteClusterNodesRequest.js +2 -0
- package/dist/models/DeleteClusterNodesRequest.js.map +1 -1
- package/dist/models/DescribeClusterAttachScriptsRequest.d.ts +9 -17
- package/dist/models/DescribeClusterAttachScriptsRequest.js.map +1 -1
- package/dist/models/DescribeClusterDetailResponseBody.d.ts +80 -77
- package/dist/models/DescribeClusterDetailResponseBody.js.map +1 -1
- package/dist/models/DescribeClustersForRegionRequest.d.ts +14 -14
- package/dist/models/DescribeClustersForRegionResponseBody.d.ts +18 -12
- package/dist/models/DescribeClustersForRegionResponseBody.js.map +1 -1
- package/dist/models/DescribeKubernetesVersionMetadataRequest.d.ts +22 -15
- package/dist/models/DescribeKubernetesVersionMetadataRequest.js.map +1 -1
- package/dist/models/DescribeKubernetesVersionMetadataResponse.d.ts +23 -17
- package/dist/models/DescribeKubernetesVersionMetadataResponse.js.map +1 -1
- package/dist/models/InvokeAgentRequest.d.ts +296 -0
- package/dist/models/InvokeAgentRequest.js +279 -0
- package/dist/models/InvokeAgentRequest.js.map +1 -0
- package/dist/models/InvokeAgentResponse.d.ts +21 -0
- package/dist/models/InvokeAgentResponse.js +73 -0
- package/dist/models/InvokeAgentResponse.js.map +1 -0
- package/dist/models/InvokeAgentResponseBody.d.ts +178 -0
- package/dist/models/InvokeAgentResponseBody.js +152 -0
- package/dist/models/InvokeAgentResponseBody.js.map +1 -0
- package/dist/models/ListUserKubeConfigStatesRequest.d.ts +3 -3
- package/dist/models/ListUserKubeConfigStatesResponseBody.d.ts +4 -5
- package/dist/models/ListUserKubeConfigStatesResponseBody.js.map +1 -1
- package/dist/models/ModifyClusterRequest.d.ts +106 -99
- package/dist/models/ModifyClusterRequest.js.map +1 -1
- package/dist/models/ModifyClusterResponseBody.d.ts +2 -2
- package/dist/models/RemoveNodePoolNodesRequest.d.ts +18 -11
- package/dist/models/RemoveNodePoolNodesRequest.js +2 -0
- package/dist/models/RemoveNodePoolNodesRequest.js.map +1 -1
- package/dist/models/RemoveNodePoolNodesShrinkRequest.d.ts +18 -11
- package/dist/models/RemoveNodePoolNodesShrinkRequest.js +2 -0
- package/dist/models/RemoveNodePoolNodesShrinkRequest.js.map +1 -1
- package/dist/models/UpdateClusterAuditLogConfigRequest.d.ts +4 -3
- package/dist/models/UpdateClusterAuditLogConfigRequest.js.map +1 -1
- package/dist/models/UpdateUserPermissionsRequest.d.ts +22 -22
- package/dist/models/UpdateUserPermissionsRequest.js.map +1 -1
- package/dist/models/model.d.ts +12 -0
- package/dist/models/model.js +34 -10
- package/dist/models/model.js.map +1 -1
- package/package.json +2 -1
- package/src/client.ts +249 -72
- package/src/models/AttachInstancesToNodePoolRequest.ts +3 -13
- package/src/models/CleanClusterUserPermissionsRequest.ts +1 -1
- package/src/models/CleanUserPermissionsRequest.ts +2 -2
- package/src/models/CleanUserPermissionsShrinkRequest.ts +2 -2
- package/src/models/CreateClusterRequest.ts +305 -392
- package/src/models/DeleteClusterNodesRequest.ts +17 -7
- package/src/models/DescribeClusterAttachScriptsRequest.ts +9 -17
- package/src/models/DescribeClusterDetailResponseBody.ts +80 -77
- package/src/models/DescribeClustersForRegionRequest.ts +14 -14
- package/src/models/DescribeClustersForRegionResponseBody.ts +18 -12
- package/src/models/DescribeKubernetesVersionMetadataRequest.ts +22 -15
- package/src/models/DescribeKubernetesVersionMetadataResponse.ts +23 -17
- package/src/models/InvokeAgentRequest.ts +461 -0
- package/src/models/InvokeAgentResponse.ts +46 -0
- package/src/models/InvokeAgentResponseBody.ts +263 -0
- package/src/models/ListUserKubeConfigStatesRequest.ts +3 -3
- package/src/models/ListUserKubeConfigStatesResponseBody.ts +4 -5
- package/src/models/ModifyClusterRequest.ts +106 -99
- package/src/models/ModifyClusterResponseBody.ts +2 -2
- package/src/models/RemoveNodePoolNodesRequest.ts +20 -11
- package/src/models/RemoveNodePoolNodesShrinkRequest.ts +20 -11
- package/src/models/UpdateClusterAuditLogConfigRequest.ts +4 -3
- package/src/models/UpdateUserPermissionsRequest.ts +22 -22
- package/src/models/model.ts +12 -0
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class InvokeAgentResponseBodyOutcomeInterrupts extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 2026-11-04T00:00:00Z
|
|
9
|
+
*/
|
|
10
|
+
expiresAt?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* This parameter is required.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* i-1
|
|
17
|
+
*/
|
|
18
|
+
id?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @example
|
|
21
|
+
* 是否执行?
|
|
22
|
+
*/
|
|
23
|
+
message?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @example
|
|
26
|
+
* {}
|
|
27
|
+
*/
|
|
28
|
+
metadata?: { [key: string]: any };
|
|
29
|
+
/**
|
|
30
|
+
* @remarks
|
|
31
|
+
* This parameter is required.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* tool_call_approve
|
|
35
|
+
*/
|
|
36
|
+
reason?: string;
|
|
37
|
+
/**
|
|
38
|
+
* @example
|
|
39
|
+
* {"type":"object","properties":{"decision":{"type":"string","enum":["yes","no"]}},"required":["decision"]}
|
|
40
|
+
*/
|
|
41
|
+
responseSchema?: { [key: string]: any };
|
|
42
|
+
/**
|
|
43
|
+
* @example
|
|
44
|
+
* call-1
|
|
45
|
+
*/
|
|
46
|
+
toolCallId?: string;
|
|
47
|
+
static names(): { [key: string]: string } {
|
|
48
|
+
return {
|
|
49
|
+
expiresAt: 'expiresAt',
|
|
50
|
+
id: 'id',
|
|
51
|
+
message: 'message',
|
|
52
|
+
metadata: 'metadata',
|
|
53
|
+
reason: 'reason',
|
|
54
|
+
responseSchema: 'responseSchema',
|
|
55
|
+
toolCallId: 'toolCallId',
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
static types(): { [key: string]: any } {
|
|
60
|
+
return {
|
|
61
|
+
expiresAt: 'string',
|
|
62
|
+
id: 'string',
|
|
63
|
+
message: 'string',
|
|
64
|
+
metadata: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
65
|
+
reason: 'string',
|
|
66
|
+
responseSchema: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
67
|
+
toolCallId: 'string',
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
validate() {
|
|
72
|
+
if(this.metadata) {
|
|
73
|
+
$dara.Model.validateMap(this.metadata);
|
|
74
|
+
}
|
|
75
|
+
if(this.responseSchema) {
|
|
76
|
+
$dara.Model.validateMap(this.responseSchema);
|
|
77
|
+
}
|
|
78
|
+
super.validate();
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
constructor(map?: { [key: string]: any }) {
|
|
82
|
+
super(map);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export class InvokeAgentResponseBodyOutcome extends $dara.Model {
|
|
87
|
+
/**
|
|
88
|
+
* @example
|
|
89
|
+
* [{"id":"i-1","reason":"tool_call_approve","toolCallId":"call-1"}]
|
|
90
|
+
*/
|
|
91
|
+
interrupts?: InvokeAgentResponseBodyOutcomeInterrupts[];
|
|
92
|
+
/**
|
|
93
|
+
* @remarks
|
|
94
|
+
* This parameter is required.
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* interrupt
|
|
98
|
+
*/
|
|
99
|
+
type?: string;
|
|
100
|
+
static names(): { [key: string]: string } {
|
|
101
|
+
return {
|
|
102
|
+
interrupts: 'interrupts',
|
|
103
|
+
type: 'type',
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
static types(): { [key: string]: any } {
|
|
108
|
+
return {
|
|
109
|
+
interrupts: { 'type': 'array', 'itemType': InvokeAgentResponseBodyOutcomeInterrupts },
|
|
110
|
+
type: 'string',
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
validate() {
|
|
115
|
+
if(Array.isArray(this.interrupts)) {
|
|
116
|
+
$dara.Model.validateArray(this.interrupts);
|
|
117
|
+
}
|
|
118
|
+
super.validate();
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
constructor(map?: { [key: string]: any }) {
|
|
122
|
+
super(map);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export class InvokeAgentResponseBody extends $dara.Model {
|
|
127
|
+
/**
|
|
128
|
+
* @example
|
|
129
|
+
* InternalError
|
|
130
|
+
*/
|
|
131
|
+
code?: string;
|
|
132
|
+
/**
|
|
133
|
+
* @example
|
|
134
|
+
* done
|
|
135
|
+
*/
|
|
136
|
+
content?: string;
|
|
137
|
+
/**
|
|
138
|
+
* @example
|
|
139
|
+
* 你好
|
|
140
|
+
*/
|
|
141
|
+
delta?: string;
|
|
142
|
+
/**
|
|
143
|
+
* @example
|
|
144
|
+
* 请求失败
|
|
145
|
+
*/
|
|
146
|
+
message?: string;
|
|
147
|
+
/**
|
|
148
|
+
* @example
|
|
149
|
+
* m-1
|
|
150
|
+
*/
|
|
151
|
+
messageId?: string;
|
|
152
|
+
/**
|
|
153
|
+
* @example
|
|
154
|
+
* analysis_result
|
|
155
|
+
*/
|
|
156
|
+
name?: string;
|
|
157
|
+
/**
|
|
158
|
+
* @example
|
|
159
|
+
* {"type":"success"}
|
|
160
|
+
*/
|
|
161
|
+
outcome?: InvokeAgentResponseBodyOutcome;
|
|
162
|
+
/**
|
|
163
|
+
* @example
|
|
164
|
+
* m-1
|
|
165
|
+
*/
|
|
166
|
+
parentMessageId?: string;
|
|
167
|
+
/**
|
|
168
|
+
* @example
|
|
169
|
+
* assistant
|
|
170
|
+
*/
|
|
171
|
+
role?: string;
|
|
172
|
+
/**
|
|
173
|
+
* @example
|
|
174
|
+
* r-1
|
|
175
|
+
*/
|
|
176
|
+
runId?: string;
|
|
177
|
+
/**
|
|
178
|
+
* @example
|
|
179
|
+
* {"sessionId":"abcdef0123456789abcdef0123456789","requestId":"req-1"}
|
|
180
|
+
*/
|
|
181
|
+
snapshot?: any;
|
|
182
|
+
/**
|
|
183
|
+
* @example
|
|
184
|
+
* abcdef0123456789abcdef0123456789
|
|
185
|
+
*/
|
|
186
|
+
threadId?: string;
|
|
187
|
+
/**
|
|
188
|
+
* @example
|
|
189
|
+
* call-1
|
|
190
|
+
*/
|
|
191
|
+
toolCallId?: string;
|
|
192
|
+
/**
|
|
193
|
+
* @example
|
|
194
|
+
* example_tool
|
|
195
|
+
*/
|
|
196
|
+
toolCallName?: string;
|
|
197
|
+
/**
|
|
198
|
+
* @remarks
|
|
199
|
+
* This parameter is required.
|
|
200
|
+
*
|
|
201
|
+
* @example
|
|
202
|
+
* RUN_STARTED
|
|
203
|
+
*/
|
|
204
|
+
type?: string;
|
|
205
|
+
/**
|
|
206
|
+
* @example
|
|
207
|
+
* {"reference":null,"actions":[],"messageId":null}
|
|
208
|
+
*/
|
|
209
|
+
value?: any;
|
|
210
|
+
static names(): { [key: string]: string } {
|
|
211
|
+
return {
|
|
212
|
+
code: 'code',
|
|
213
|
+
content: 'content',
|
|
214
|
+
delta: 'delta',
|
|
215
|
+
message: 'message',
|
|
216
|
+
messageId: 'messageId',
|
|
217
|
+
name: 'name',
|
|
218
|
+
outcome: 'outcome',
|
|
219
|
+
parentMessageId: 'parentMessageId',
|
|
220
|
+
role: 'role',
|
|
221
|
+
runId: 'runId',
|
|
222
|
+
snapshot: 'snapshot',
|
|
223
|
+
threadId: 'threadId',
|
|
224
|
+
toolCallId: 'toolCallId',
|
|
225
|
+
toolCallName: 'toolCallName',
|
|
226
|
+
type: 'type',
|
|
227
|
+
value: 'value',
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
static types(): { [key: string]: any } {
|
|
232
|
+
return {
|
|
233
|
+
code: 'string',
|
|
234
|
+
content: 'string',
|
|
235
|
+
delta: 'string',
|
|
236
|
+
message: 'string',
|
|
237
|
+
messageId: 'string',
|
|
238
|
+
name: 'string',
|
|
239
|
+
outcome: InvokeAgentResponseBodyOutcome,
|
|
240
|
+
parentMessageId: 'string',
|
|
241
|
+
role: 'string',
|
|
242
|
+
runId: 'string',
|
|
243
|
+
snapshot: 'any',
|
|
244
|
+
threadId: 'string',
|
|
245
|
+
toolCallId: 'string',
|
|
246
|
+
toolCallName: 'string',
|
|
247
|
+
type: 'string',
|
|
248
|
+
value: 'any',
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
validate() {
|
|
253
|
+
if(this.outcome && typeof (this.outcome as any).validate === 'function') {
|
|
254
|
+
(this.outcome as any).validate();
|
|
255
|
+
}
|
|
256
|
+
super.validate();
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
constructor(map?: { [key: string]: any }) {
|
|
260
|
+
super(map);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
@@ -5,9 +5,9 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ListUserKubeConfigStatesRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The page number.
|
|
8
|
+
* The current page number.
|
|
9
9
|
*
|
|
10
|
-
* - Valid values: greater than or equal to 1.
|
|
10
|
+
* - Valid values: an integer greater than or equal to 1.
|
|
11
11
|
*
|
|
12
12
|
* - Default value: 1.
|
|
13
13
|
*
|
|
@@ -17,7 +17,7 @@ export class ListUserKubeConfigStatesRequest extends $dara.Model {
|
|
|
17
17
|
pageNumber?: number;
|
|
18
18
|
/**
|
|
19
19
|
* @remarks
|
|
20
|
-
* The number of
|
|
20
|
+
* The number of results to return per page.
|
|
21
21
|
*
|
|
22
22
|
* - Valid values: 1 to 100.
|
|
23
23
|
*
|
|
@@ -21,7 +21,7 @@ export class ListUserKubeConfigStatesResponseBodyPage extends $dara.Model {
|
|
|
21
21
|
pageSize?: number;
|
|
22
22
|
/**
|
|
23
23
|
* @remarks
|
|
24
|
-
* The total number of
|
|
24
|
+
* The total number of results.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* 100
|
|
@@ -55,7 +55,7 @@ export class ListUserKubeConfigStatesResponseBodyPage extends $dara.Model {
|
|
|
55
55
|
export class ListUserKubeConfigStatesResponseBodyStates extends $dara.Model {
|
|
56
56
|
/**
|
|
57
57
|
* @remarks
|
|
58
|
-
* The expiration time of the KubeConfig certificate. The time is
|
|
58
|
+
* The expiration time of the KubeConfig certificate. The time is in UTC and follows the RFC 3339 format.
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
61
61
|
* 2028-04-09T06:20:47Z
|
|
@@ -68,7 +68,7 @@ export class ListUserKubeConfigStatesResponseBodyStates extends $dara.Model {
|
|
|
68
68
|
* - Unexpired: The certificate has not expired.
|
|
69
69
|
* - Unissued: The certificate has not been issued.
|
|
70
70
|
* - Unknown: The status is unknown.
|
|
71
|
-
* - Removed: The certificate has been removed
|
|
71
|
+
* - Removed: The certificate has been removed, but an issuance record exists.
|
|
72
72
|
*
|
|
73
73
|
* @example
|
|
74
74
|
* Unissued
|
|
@@ -93,7 +93,6 @@ export class ListUserKubeConfigStatesResponseBodyStates extends $dara.Model {
|
|
|
93
93
|
/**
|
|
94
94
|
* @remarks
|
|
95
95
|
* The running status of the cluster. Valid values:
|
|
96
|
-
*
|
|
97
96
|
* - `initial`: The cluster is being created.
|
|
98
97
|
* - `failed`: The cluster failed to be created.
|
|
99
98
|
* - `running`: The cluster is running.
|
|
@@ -146,7 +145,7 @@ export class ListUserKubeConfigStatesResponseBody extends $dara.Model {
|
|
|
146
145
|
page?: ListUserKubeConfigStatesResponseBodyPage;
|
|
147
146
|
/**
|
|
148
147
|
* @remarks
|
|
149
|
-
* The KubeConfig status details
|
|
148
|
+
* The KubeConfig status details for the user.
|
|
150
149
|
*/
|
|
151
150
|
states?: ListUserKubeConfigStatesResponseBodyStates[];
|
|
152
151
|
static names(): { [key: string]: string } {
|