@alicloud/polardb20170801 7.1.0 → 7.2.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 +128 -8
- package/dist/client.js +410 -8
- package/dist/client.js.map +1 -1
- package/dist/models/CreateDbnodesRequest.d.ts +34 -54
- package/dist/models/CreateDbnodesRequest.js.map +1 -1
- package/dist/models/CreateDbnodesResponseBody.d.ts +1 -1
- package/dist/models/DescribeApikeyAttributeRequest.d.ts +12 -0
- package/dist/models/DescribeApikeyAttributeRequest.js.map +1 -1
- package/dist/models/DescribeApikeyAttributeResponseBody.d.ts +81 -0
- package/dist/models/DescribeApikeyAttributeResponseBody.js.map +1 -1
- package/dist/models/DescribePolarClawAgentFileRequest.d.ts +43 -0
- package/dist/models/DescribePolarClawAgentFileRequest.js +62 -0
- package/dist/models/DescribePolarClawAgentFileRequest.js.map +1 -0
- package/dist/models/DescribePolarClawAgentFileResponse.d.ts +19 -0
- package/dist/models/DescribePolarClawAgentFileResponse.js +69 -0
- package/dist/models/DescribePolarClawAgentFileResponse.js.map +1 -0
- package/dist/models/DescribePolarClawAgentFileResponseBody.d.ts +126 -0
- package/dist/models/DescribePolarClawAgentFileResponseBody.js +102 -0
- package/dist/models/DescribePolarClawAgentFileResponseBody.js.map +1 -0
- package/dist/models/DescribePolarClawAgentToolsRequest.d.ts +41 -0
- package/dist/models/DescribePolarClawAgentToolsRequest.js +62 -0
- package/dist/models/DescribePolarClawAgentToolsRequest.js.map +1 -0
- package/dist/models/DescribePolarClawAgentToolsResponse.d.ts +19 -0
- package/dist/models/DescribePolarClawAgentToolsResponse.js +69 -0
- package/dist/models/DescribePolarClawAgentToolsResponse.js.map +1 -0
- package/dist/models/DescribePolarClawAgentToolsResponseBody.d.ts +221 -0
- package/dist/models/DescribePolarClawAgentToolsResponseBody.js +194 -0
- package/dist/models/DescribePolarClawAgentToolsResponseBody.js.map +1 -0
- package/dist/models/DescribePolarClawAgentsResponseBody.d.ts +42 -2
- package/dist/models/DescribePolarClawAgentsResponseBody.js.map +1 -1
- package/dist/models/DescribePolarClawSkillDetailRequest.d.ts +33 -0
- package/dist/models/DescribePolarClawSkillDetailRequest.js +60 -0
- package/dist/models/DescribePolarClawSkillDetailRequest.js.map +1 -0
- package/dist/models/DescribePolarClawSkillDetailResponse.d.ts +19 -0
- package/dist/models/DescribePolarClawSkillDetailResponse.js +69 -0
- package/dist/models/DescribePolarClawSkillDetailResponse.js.map +1 -0
- package/dist/models/DescribePolarClawSkillDetailResponseBody.d.ts +269 -0
- package/dist/models/DescribePolarClawSkillDetailResponseBody.js +193 -0
- package/dist/models/DescribePolarClawSkillDetailResponseBody.js.map +1 -0
- package/dist/models/InstallPolarClawSkillRequest.d.ts +63 -0
- package/dist/models/InstallPolarClawSkillRequest.js +68 -0
- package/dist/models/InstallPolarClawSkillRequest.js.map +1 -0
- package/dist/models/InstallPolarClawSkillResponse.d.ts +19 -0
- package/dist/models/InstallPolarClawSkillResponse.js +69 -0
- package/dist/models/InstallPolarClawSkillResponse.js.map +1 -0
- package/dist/models/InstallPolarClawSkillResponseBody.d.ts +77 -0
- package/dist/models/InstallPolarClawSkillResponseBody.js +72 -0
- package/dist/models/InstallPolarClawSkillResponseBody.js.map +1 -0
- package/dist/models/ModifyDbnodeClassRequest.d.ts +23 -32
- package/dist/models/ModifyDbnodeClassRequest.js.map +1 -1
- package/dist/models/ModifyDbnodeClassResponseBody.d.ts +1 -1
- package/dist/models/SearchPolarClawSkillsRequest.d.ts +39 -0
- package/dist/models/SearchPolarClawSkillsRequest.js +62 -0
- package/dist/models/SearchPolarClawSkillsRequest.js.map +1 -0
- package/dist/models/SearchPolarClawSkillsResponse.d.ts +19 -0
- package/dist/models/SearchPolarClawSkillsResponse.js +69 -0
- package/dist/models/SearchPolarClawSkillsResponse.js.map +1 -0
- package/dist/models/SearchPolarClawSkillsResponseBody.d.ts +110 -0
- package/dist/models/SearchPolarClawSkillsResponseBody.js +98 -0
- package/dist/models/SearchPolarClawSkillsResponseBody.js.map +1 -0
- package/dist/models/UpdatePolarClawAgentRequest.d.ts +16 -10
- package/dist/models/UpdatePolarClawAgentRequest.js.map +1 -1
- package/dist/models/UpdatePolarClawAgentResponseBody.d.ts +12 -12
- package/dist/models/UpdatePolarClawAgentShrinkRequest.d.ts +14 -8
- package/dist/models/UpdatePolarClawAgentShrinkRequest.js.map +1 -1
- package/dist/models/UpdatePolarClawAgentSkillsRequest.d.ts +41 -0
- package/dist/models/UpdatePolarClawAgentSkillsRequest.js +65 -0
- package/dist/models/UpdatePolarClawAgentSkillsRequest.js.map +1 -0
- package/dist/models/UpdatePolarClawAgentSkillsResponse.d.ts +19 -0
- package/dist/models/UpdatePolarClawAgentSkillsResponse.js +69 -0
- package/dist/models/UpdatePolarClawAgentSkillsResponse.js.map +1 -0
- package/dist/models/UpdatePolarClawAgentSkillsResponseBody.d.ts +66 -0
- package/dist/models/UpdatePolarClawAgentSkillsResponseBody.js +73 -0
- package/dist/models/UpdatePolarClawAgentSkillsResponseBody.js.map +1 -0
- package/dist/models/UpdatePolarClawAgentSkillsShrinkRequest.d.ts +41 -0
- package/dist/models/UpdatePolarClawAgentSkillsShrinkRequest.js +62 -0
- package/dist/models/UpdatePolarClawAgentSkillsShrinkRequest.js.map +1 -0
- package/dist/models/UpdatePolarClawAgentToolsRequest.d.ts +65 -0
- package/dist/models/UpdatePolarClawAgentToolsRequest.js +77 -0
- package/dist/models/UpdatePolarClawAgentToolsRequest.js.map +1 -0
- package/dist/models/UpdatePolarClawAgentToolsResponse.d.ts +19 -0
- package/dist/models/UpdatePolarClawAgentToolsResponse.js +69 -0
- package/dist/models/UpdatePolarClawAgentToolsResponse.js.map +1 -0
- package/dist/models/UpdatePolarClawAgentToolsResponseBody.d.ts +101 -0
- package/dist/models/UpdatePolarClawAgentToolsResponseBody.js +107 -0
- package/dist/models/UpdatePolarClawAgentToolsResponseBody.js.map +1 -0
- package/dist/models/UpdatePolarClawAgentToolsShrinkRequest.d.ts +65 -0
- package/dist/models/UpdatePolarClawAgentToolsShrinkRequest.js +68 -0
- package/dist/models/UpdatePolarClawAgentToolsShrinkRequest.js.map +1 -0
- package/dist/models/UpdatePolarClawSkillRequest.d.ts +59 -0
- package/dist/models/UpdatePolarClawSkillRequest.js +69 -0
- package/dist/models/UpdatePolarClawSkillRequest.js.map +1 -0
- package/dist/models/UpdatePolarClawSkillResponse.d.ts +19 -0
- package/dist/models/UpdatePolarClawSkillResponse.js +69 -0
- package/dist/models/UpdatePolarClawSkillResponse.js.map +1 -0
- package/dist/models/UpdatePolarClawSkillResponseBody.d.ts +93 -0
- package/dist/models/UpdatePolarClawSkillResponseBody.js +97 -0
- package/dist/models/UpdatePolarClawSkillResponseBody.js.map +1 -0
- package/dist/models/UpdatePolarClawSkillShrinkRequest.d.ts +57 -0
- package/dist/models/UpdatePolarClawSkillShrinkRequest.js +66 -0
- package/dist/models/UpdatePolarClawSkillShrinkRequest.js.map +1 -0
- package/dist/models/model.d.ts +39 -0
- package/dist/models/model.js +105 -27
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +462 -8
- package/src/models/CreateDbnodesRequest.ts +34 -54
- package/src/models/CreateDbnodesResponseBody.ts +1 -1
- package/src/models/DescribeApikeyAttributeRequest.ts +12 -0
- package/src/models/DescribeApikeyAttributeResponseBody.ts +81 -0
- package/src/models/DescribePolarClawAgentFileRequest.ts +60 -0
- package/src/models/DescribePolarClawAgentFileResponse.ts +40 -0
- package/src/models/DescribePolarClawAgentFileResponseBody.ts +174 -0
- package/src/models/DescribePolarClawAgentToolsRequest.ts +58 -0
- package/src/models/DescribePolarClawAgentToolsResponse.ts +40 -0
- package/src/models/DescribePolarClawAgentToolsResponseBody.ts +334 -0
- package/src/models/DescribePolarClawAgentsResponseBody.ts +42 -2
- package/src/models/DescribePolarClawSkillDetailRequest.ts +48 -0
- package/src/models/DescribePolarClawSkillDetailResponse.ts +40 -0
- package/src/models/DescribePolarClawSkillDetailResponseBody.ts +379 -0
- package/src/models/InstallPolarClawSkillRequest.ts +86 -0
- package/src/models/InstallPolarClawSkillResponse.ts +40 -0
- package/src/models/InstallPolarClawSkillResponseBody.ts +104 -0
- package/src/models/ModifyDbnodeClassRequest.ts +23 -32
- package/src/models/ModifyDbnodeClassResponseBody.ts +1 -1
- package/src/models/SearchPolarClawSkillsRequest.ts +56 -0
- package/src/models/SearchPolarClawSkillsResponse.ts +40 -0
- package/src/models/SearchPolarClawSkillsResponseBody.ts +154 -0
- package/src/models/UpdatePolarClawAgentRequest.ts +16 -10
- package/src/models/UpdatePolarClawAgentResponseBody.ts +12 -12
- package/src/models/UpdatePolarClawAgentShrinkRequest.ts +14 -8
- package/src/models/UpdatePolarClawAgentSkillsRequest.ts +61 -0
- package/src/models/UpdatePolarClawAgentSkillsResponse.ts +40 -0
- package/src/models/UpdatePolarClawAgentSkillsResponseBody.ts +94 -0
- package/src/models/UpdatePolarClawAgentSkillsShrinkRequest.ts +58 -0
- package/src/models/UpdatePolarClawAgentToolsRequest.ts +97 -0
- package/src/models/UpdatePolarClawAgentToolsResponse.ts +40 -0
- package/src/models/UpdatePolarClawAgentToolsResponseBody.ts +154 -0
- package/src/models/UpdatePolarClawAgentToolsShrinkRequest.ts +88 -0
- package/src/models/UpdatePolarClawSkillRequest.ts +81 -0
- package/src/models/UpdatePolarClawSkillResponse.ts +40 -0
- package/src/models/UpdatePolarClawSkillResponseBody.ts +134 -0
- package/src/models/UpdatePolarClawSkillShrinkRequest.ts +78 -0
- package/src/models/model.ts +39 -0
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribePolarClawAgentFileResponseBodyFile extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The file content.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* You are a helpful assistant.
|
|
12
|
+
*/
|
|
13
|
+
content?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* Indicates whether the file is missing.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* false
|
|
20
|
+
*/
|
|
21
|
+
missing?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The file name.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* SOUL.md
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The file path.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* /home/node/.openclaw/workspace-main/SOUL.md
|
|
36
|
+
*/
|
|
37
|
+
path?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The file size, in bytes.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* 1024
|
|
44
|
+
*/
|
|
45
|
+
size?: number;
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The last updated UNIX timestamp, in milliseconds.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* 1716000000000
|
|
52
|
+
*/
|
|
53
|
+
updatedAtMs?: number;
|
|
54
|
+
static names(): { [key: string]: string } {
|
|
55
|
+
return {
|
|
56
|
+
content: 'Content',
|
|
57
|
+
missing: 'Missing',
|
|
58
|
+
name: 'Name',
|
|
59
|
+
path: 'Path',
|
|
60
|
+
size: 'Size',
|
|
61
|
+
updatedAtMs: 'UpdatedAtMs',
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
static types(): { [key: string]: any } {
|
|
66
|
+
return {
|
|
67
|
+
content: 'string',
|
|
68
|
+
missing: 'boolean',
|
|
69
|
+
name: 'string',
|
|
70
|
+
path: 'string',
|
|
71
|
+
size: 'number',
|
|
72
|
+
updatedAtMs: 'number',
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
validate() {
|
|
77
|
+
super.validate();
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
constructor(map?: { [key: string]: any }) {
|
|
81
|
+
super(map);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export class DescribePolarClawAgentFileResponseBody extends $dara.Model {
|
|
86
|
+
/**
|
|
87
|
+
* @remarks
|
|
88
|
+
* Agent ID
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* main
|
|
92
|
+
*/
|
|
93
|
+
agentId?: string;
|
|
94
|
+
/**
|
|
95
|
+
* @remarks
|
|
96
|
+
* The application ID.
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* pa-xxx
|
|
100
|
+
*/
|
|
101
|
+
applicationId?: string;
|
|
102
|
+
/**
|
|
103
|
+
* @remarks
|
|
104
|
+
* The response status code.
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* 200
|
|
108
|
+
*/
|
|
109
|
+
code?: number;
|
|
110
|
+
/**
|
|
111
|
+
* @remarks
|
|
112
|
+
* The file details.
|
|
113
|
+
*/
|
|
114
|
+
file?: DescribePolarClawAgentFileResponseBodyFile;
|
|
115
|
+
/**
|
|
116
|
+
* @remarks
|
|
117
|
+
* The response message.
|
|
118
|
+
*
|
|
119
|
+
* @example
|
|
120
|
+
* success
|
|
121
|
+
*/
|
|
122
|
+
message?: string;
|
|
123
|
+
/**
|
|
124
|
+
* @remarks
|
|
125
|
+
* Id of the request
|
|
126
|
+
*
|
|
127
|
+
* @example
|
|
128
|
+
* F45FFACC-xxx
|
|
129
|
+
*/
|
|
130
|
+
requestId?: string;
|
|
131
|
+
/**
|
|
132
|
+
* @remarks
|
|
133
|
+
* The working directory path.
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* /home/node/.openclaw/workspace-main
|
|
137
|
+
*/
|
|
138
|
+
workspace?: string;
|
|
139
|
+
static names(): { [key: string]: string } {
|
|
140
|
+
return {
|
|
141
|
+
agentId: 'AgentId',
|
|
142
|
+
applicationId: 'ApplicationId',
|
|
143
|
+
code: 'Code',
|
|
144
|
+
file: 'File',
|
|
145
|
+
message: 'Message',
|
|
146
|
+
requestId: 'RequestId',
|
|
147
|
+
workspace: 'Workspace',
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
static types(): { [key: string]: any } {
|
|
152
|
+
return {
|
|
153
|
+
agentId: 'string',
|
|
154
|
+
applicationId: 'string',
|
|
155
|
+
code: 'number',
|
|
156
|
+
file: DescribePolarClawAgentFileResponseBodyFile,
|
|
157
|
+
message: 'string',
|
|
158
|
+
requestId: 'string',
|
|
159
|
+
workspace: 'string',
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
validate() {
|
|
164
|
+
if(this.file && typeof (this.file as any).validate === 'function') {
|
|
165
|
+
(this.file as any).validate();
|
|
166
|
+
}
|
|
167
|
+
super.validate();
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
constructor(map?: { [key: string]: any }) {
|
|
171
|
+
super(map);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribePolarClawAgentToolsRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Agent ID
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* main
|
|
14
|
+
*/
|
|
15
|
+
agentId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The application ID.
|
|
19
|
+
*
|
|
20
|
+
* This parameter is required.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* pa-xxx
|
|
24
|
+
*/
|
|
25
|
+
applicationId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @remarks
|
|
28
|
+
* Specifies whether to include plugin tools.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* true
|
|
32
|
+
*/
|
|
33
|
+
includePlugins?: boolean;
|
|
34
|
+
static names(): { [key: string]: string } {
|
|
35
|
+
return {
|
|
36
|
+
agentId: 'AgentId',
|
|
37
|
+
applicationId: 'ApplicationId',
|
|
38
|
+
includePlugins: 'IncludePlugins',
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
static types(): { [key: string]: any } {
|
|
43
|
+
return {
|
|
44
|
+
agentId: 'string',
|
|
45
|
+
applicationId: 'string',
|
|
46
|
+
includePlugins: 'boolean',
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
validate() {
|
|
51
|
+
super.validate();
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
constructor(map?: { [key: string]: any }) {
|
|
55
|
+
super(map);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DescribePolarClawAgentToolsResponseBody } from "./DescribePolarClawAgentToolsResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribePolarClawAgentToolsResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DescribePolarClawAgentToolsResponseBody;
|
|
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: DescribePolarClawAgentToolsResponseBody,
|
|
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,334 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribePolarClawAgentToolsResponseBodyCurrentConfig extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The list of explicitly allowed tools.
|
|
9
|
+
*/
|
|
10
|
+
allow?: string[];
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* The list of additionally allowed tools.
|
|
14
|
+
*/
|
|
15
|
+
alsoAllow?: string[];
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The list of denied tools.
|
|
19
|
+
*/
|
|
20
|
+
deny?: string[];
|
|
21
|
+
/**
|
|
22
|
+
* @remarks
|
|
23
|
+
* The tool profile.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* full
|
|
27
|
+
*/
|
|
28
|
+
profile?: string;
|
|
29
|
+
static names(): { [key: string]: string } {
|
|
30
|
+
return {
|
|
31
|
+
allow: 'Allow',
|
|
32
|
+
alsoAllow: 'AlsoAllow',
|
|
33
|
+
deny: 'Deny',
|
|
34
|
+
profile: 'Profile',
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
static types(): { [key: string]: any } {
|
|
39
|
+
return {
|
|
40
|
+
allow: { 'type': 'array', 'itemType': 'string' },
|
|
41
|
+
alsoAllow: { 'type': 'array', 'itemType': 'string' },
|
|
42
|
+
deny: { 'type': 'array', 'itemType': 'string' },
|
|
43
|
+
profile: 'string',
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
validate() {
|
|
48
|
+
if(Array.isArray(this.allow)) {
|
|
49
|
+
$dara.Model.validateArray(this.allow);
|
|
50
|
+
}
|
|
51
|
+
if(Array.isArray(this.alsoAllow)) {
|
|
52
|
+
$dara.Model.validateArray(this.alsoAllow);
|
|
53
|
+
}
|
|
54
|
+
if(Array.isArray(this.deny)) {
|
|
55
|
+
$dara.Model.validateArray(this.deny);
|
|
56
|
+
}
|
|
57
|
+
super.validate();
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
constructor(map?: { [key: string]: any }) {
|
|
61
|
+
super(map);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export class DescribePolarClawAgentToolsResponseBodyGroupsTools extends $dara.Model {
|
|
66
|
+
/**
|
|
67
|
+
* @remarks
|
|
68
|
+
* The list of profiles that include this tool by default.
|
|
69
|
+
*/
|
|
70
|
+
defaultProfiles?: string[];
|
|
71
|
+
/**
|
|
72
|
+
* @remarks
|
|
73
|
+
* The tool description.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* 读取指定文件内容
|
|
77
|
+
*/
|
|
78
|
+
description?: string;
|
|
79
|
+
/**
|
|
80
|
+
* @remarks
|
|
81
|
+
* The tool identifier.
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* read
|
|
85
|
+
*/
|
|
86
|
+
id?: string;
|
|
87
|
+
/**
|
|
88
|
+
* @remarks
|
|
89
|
+
* The tool name.
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* 读取文件
|
|
93
|
+
*/
|
|
94
|
+
label?: string;
|
|
95
|
+
/**
|
|
96
|
+
* @remarks
|
|
97
|
+
* The source.
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* core
|
|
101
|
+
*/
|
|
102
|
+
source?: string;
|
|
103
|
+
static names(): { [key: string]: string } {
|
|
104
|
+
return {
|
|
105
|
+
defaultProfiles: 'DefaultProfiles',
|
|
106
|
+
description: 'Description',
|
|
107
|
+
id: 'Id',
|
|
108
|
+
label: 'Label',
|
|
109
|
+
source: 'Source',
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
static types(): { [key: string]: any } {
|
|
114
|
+
return {
|
|
115
|
+
defaultProfiles: { 'type': 'array', 'itemType': 'string' },
|
|
116
|
+
description: 'string',
|
|
117
|
+
id: 'string',
|
|
118
|
+
label: 'string',
|
|
119
|
+
source: 'string',
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
validate() {
|
|
124
|
+
if(Array.isArray(this.defaultProfiles)) {
|
|
125
|
+
$dara.Model.validateArray(this.defaultProfiles);
|
|
126
|
+
}
|
|
127
|
+
super.validate();
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
constructor(map?: { [key: string]: any }) {
|
|
131
|
+
super(map);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export class DescribePolarClawAgentToolsResponseBodyGroups extends $dara.Model {
|
|
136
|
+
/**
|
|
137
|
+
* @remarks
|
|
138
|
+
* The group identifier.
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* file
|
|
142
|
+
*/
|
|
143
|
+
id?: string;
|
|
144
|
+
/**
|
|
145
|
+
* @remarks
|
|
146
|
+
* The group name.
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
* 文件操作
|
|
150
|
+
*/
|
|
151
|
+
label?: string;
|
|
152
|
+
/**
|
|
153
|
+
* @remarks
|
|
154
|
+
* The source, which is core or a plugin ID.
|
|
155
|
+
*
|
|
156
|
+
* @example
|
|
157
|
+
* core
|
|
158
|
+
*/
|
|
159
|
+
source?: string;
|
|
160
|
+
/**
|
|
161
|
+
* @remarks
|
|
162
|
+
* The list of tools.
|
|
163
|
+
*/
|
|
164
|
+
tools?: DescribePolarClawAgentToolsResponseBodyGroupsTools[];
|
|
165
|
+
static names(): { [key: string]: string } {
|
|
166
|
+
return {
|
|
167
|
+
id: 'Id',
|
|
168
|
+
label: 'Label',
|
|
169
|
+
source: 'Source',
|
|
170
|
+
tools: 'Tools',
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
static types(): { [key: string]: any } {
|
|
175
|
+
return {
|
|
176
|
+
id: 'string',
|
|
177
|
+
label: 'string',
|
|
178
|
+
source: 'string',
|
|
179
|
+
tools: { 'type': 'array', 'itemType': DescribePolarClawAgentToolsResponseBodyGroupsTools },
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
validate() {
|
|
184
|
+
if(Array.isArray(this.tools)) {
|
|
185
|
+
$dara.Model.validateArray(this.tools);
|
|
186
|
+
}
|
|
187
|
+
super.validate();
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
constructor(map?: { [key: string]: any }) {
|
|
191
|
+
super(map);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export class DescribePolarClawAgentToolsResponseBodyProfiles extends $dara.Model {
|
|
196
|
+
/**
|
|
197
|
+
* @remarks
|
|
198
|
+
* The profile identifier.
|
|
199
|
+
*
|
|
200
|
+
* @example
|
|
201
|
+
* full
|
|
202
|
+
*/
|
|
203
|
+
id?: string;
|
|
204
|
+
/**
|
|
205
|
+
* @remarks
|
|
206
|
+
* The display name.
|
|
207
|
+
*
|
|
208
|
+
* @example
|
|
209
|
+
* 全部工具
|
|
210
|
+
*/
|
|
211
|
+
label?: string;
|
|
212
|
+
static names(): { [key: string]: string } {
|
|
213
|
+
return {
|
|
214
|
+
id: 'Id',
|
|
215
|
+
label: 'Label',
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
static types(): { [key: string]: any } {
|
|
220
|
+
return {
|
|
221
|
+
id: 'string',
|
|
222
|
+
label: 'string',
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
validate() {
|
|
227
|
+
super.validate();
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
constructor(map?: { [key: string]: any }) {
|
|
231
|
+
super(map);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export class DescribePolarClawAgentToolsResponseBody extends $dara.Model {
|
|
236
|
+
/**
|
|
237
|
+
* @remarks
|
|
238
|
+
* Agent ID
|
|
239
|
+
*
|
|
240
|
+
* @example
|
|
241
|
+
* main
|
|
242
|
+
*/
|
|
243
|
+
agentId?: string;
|
|
244
|
+
/**
|
|
245
|
+
* @remarks
|
|
246
|
+
* The application ID.
|
|
247
|
+
*
|
|
248
|
+
* @example
|
|
249
|
+
* pa-xxx
|
|
250
|
+
*/
|
|
251
|
+
applicationId?: string;
|
|
252
|
+
/**
|
|
253
|
+
* @remarks
|
|
254
|
+
* The response status code.
|
|
255
|
+
*
|
|
256
|
+
* @example
|
|
257
|
+
* 200
|
|
258
|
+
*/
|
|
259
|
+
code?: number;
|
|
260
|
+
/**
|
|
261
|
+
* @remarks
|
|
262
|
+
* The current tool configuration.
|
|
263
|
+
*/
|
|
264
|
+
currentConfig?: DescribePolarClawAgentToolsResponseBodyCurrentConfig;
|
|
265
|
+
/**
|
|
266
|
+
* @remarks
|
|
267
|
+
* The list of tool groups.
|
|
268
|
+
*/
|
|
269
|
+
groups?: DescribePolarClawAgentToolsResponseBodyGroups[];
|
|
270
|
+
/**
|
|
271
|
+
* @remarks
|
|
272
|
+
* The response message.
|
|
273
|
+
*
|
|
274
|
+
* @example
|
|
275
|
+
* success
|
|
276
|
+
*/
|
|
277
|
+
message?: string;
|
|
278
|
+
/**
|
|
279
|
+
* @remarks
|
|
280
|
+
* The list of available profiles.
|
|
281
|
+
*/
|
|
282
|
+
profiles?: DescribePolarClawAgentToolsResponseBodyProfiles[];
|
|
283
|
+
/**
|
|
284
|
+
* @remarks
|
|
285
|
+
* Id of the request
|
|
286
|
+
*
|
|
287
|
+
* @example
|
|
288
|
+
* F45FFACC-xxx
|
|
289
|
+
*/
|
|
290
|
+
requestId?: string;
|
|
291
|
+
static names(): { [key: string]: string } {
|
|
292
|
+
return {
|
|
293
|
+
agentId: 'AgentId',
|
|
294
|
+
applicationId: 'ApplicationId',
|
|
295
|
+
code: 'Code',
|
|
296
|
+
currentConfig: 'CurrentConfig',
|
|
297
|
+
groups: 'Groups',
|
|
298
|
+
message: 'Message',
|
|
299
|
+
profiles: 'Profiles',
|
|
300
|
+
requestId: 'RequestId',
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
static types(): { [key: string]: any } {
|
|
305
|
+
return {
|
|
306
|
+
agentId: 'string',
|
|
307
|
+
applicationId: 'string',
|
|
308
|
+
code: 'number',
|
|
309
|
+
currentConfig: DescribePolarClawAgentToolsResponseBodyCurrentConfig,
|
|
310
|
+
groups: { 'type': 'array', 'itemType': DescribePolarClawAgentToolsResponseBodyGroups },
|
|
311
|
+
message: 'string',
|
|
312
|
+
profiles: { 'type': 'array', 'itemType': DescribePolarClawAgentToolsResponseBodyProfiles },
|
|
313
|
+
requestId: 'string',
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
validate() {
|
|
318
|
+
if(this.currentConfig && typeof (this.currentConfig as any).validate === 'function') {
|
|
319
|
+
(this.currentConfig as any).validate();
|
|
320
|
+
}
|
|
321
|
+
if(Array.isArray(this.groups)) {
|
|
322
|
+
$dara.Model.validateArray(this.groups);
|
|
323
|
+
}
|
|
324
|
+
if(Array.isArray(this.profiles)) {
|
|
325
|
+
$dara.Model.validateArray(this.profiles);
|
|
326
|
+
}
|
|
327
|
+
super.validate();
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
constructor(map?: { [key: string]: any }) {
|
|
331
|
+
super(map);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
@@ -4,26 +4,41 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class DescribePolarClawAgentsResponseBodyAgentsFiles extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Indicates whether the file is missing.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* false
|
|
9
12
|
*/
|
|
10
13
|
missing?: boolean;
|
|
11
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The file name.
|
|
17
|
+
*
|
|
12
18
|
* @example
|
|
13
19
|
* SOUL.md
|
|
14
20
|
*/
|
|
15
21
|
name?: string;
|
|
16
22
|
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The file path.
|
|
25
|
+
*
|
|
17
26
|
* @example
|
|
18
27
|
* /home/node/.openclaw/workspace-work/SOUL.md
|
|
19
28
|
*/
|
|
20
29
|
path?: string;
|
|
21
30
|
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The file size, in bytes.
|
|
33
|
+
*
|
|
22
34
|
* @example
|
|
23
35
|
* 1024
|
|
24
36
|
*/
|
|
25
37
|
size?: number;
|
|
26
38
|
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The last updated timestamp, in milliseconds.
|
|
41
|
+
*
|
|
27
42
|
* @example
|
|
28
43
|
* 1716000000000
|
|
29
44
|
*/
|
|
@@ -76,7 +91,7 @@ export class DescribePolarClawAgentsResponseBodyAgentsIdentity extends $dara.Mod
|
|
|
76
91
|
avatarUrl?: string;
|
|
77
92
|
/**
|
|
78
93
|
* @remarks
|
|
79
|
-
* The emoji identifier in Unicode
|
|
94
|
+
* The emoji identifier in Unicode format such as U+1F99E, or a direct emoji character.
|
|
80
95
|
*
|
|
81
96
|
* @example
|
|
82
97
|
* U+1F99E
|
|
@@ -128,8 +143,15 @@ export class DescribePolarClawAgentsResponseBodyAgentsIdentity extends $dara.Mod
|
|
|
128
143
|
}
|
|
129
144
|
|
|
130
145
|
export class DescribePolarClawAgentsResponseBodyAgentsModel extends $dara.Model {
|
|
146
|
+
/**
|
|
147
|
+
* @remarks
|
|
148
|
+
* The fallback model list.
|
|
149
|
+
*/
|
|
131
150
|
fallbacks?: string[];
|
|
132
151
|
/**
|
|
152
|
+
* @remarks
|
|
153
|
+
* The primary model.
|
|
154
|
+
*
|
|
133
155
|
* @example
|
|
134
156
|
* claude-sonnet-4-5
|
|
135
157
|
*/
|
|
@@ -162,10 +184,17 @@ export class DescribePolarClawAgentsResponseBodyAgentsModel extends $dara.Model
|
|
|
162
184
|
|
|
163
185
|
export class DescribePolarClawAgentsResponseBodyAgents extends $dara.Model {
|
|
164
186
|
/**
|
|
187
|
+
* @remarks
|
|
188
|
+
* Indicates whether this is the default agent.
|
|
189
|
+
*
|
|
165
190
|
* @example
|
|
166
191
|
* true
|
|
167
192
|
*/
|
|
168
193
|
default?: boolean;
|
|
194
|
+
/**
|
|
195
|
+
* @remarks
|
|
196
|
+
* The agent file list.
|
|
197
|
+
*/
|
|
169
198
|
files?: DescribePolarClawAgentsResponseBodyAgentsFiles[];
|
|
170
199
|
/**
|
|
171
200
|
* @remarks
|
|
@@ -180,17 +209,28 @@ export class DescribePolarClawAgentsResponseBodyAgents extends $dara.Model {
|
|
|
180
209
|
* The identity information.
|
|
181
210
|
*/
|
|
182
211
|
identity?: DescribePolarClawAgentsResponseBodyAgentsIdentity;
|
|
212
|
+
/**
|
|
213
|
+
* @remarks
|
|
214
|
+
* The model configuration.
|
|
215
|
+
*/
|
|
183
216
|
model?: DescribePolarClawAgentsResponseBodyAgentsModel;
|
|
184
217
|
/**
|
|
185
218
|
* @remarks
|
|
186
|
-
* The display name
|
|
219
|
+
* The agent display name.
|
|
187
220
|
*
|
|
188
221
|
* @example
|
|
189
222
|
* main
|
|
190
223
|
*/
|
|
191
224
|
name?: string;
|
|
225
|
+
/**
|
|
226
|
+
* @remarks
|
|
227
|
+
* The list of skills available to the agent.
|
|
228
|
+
*/
|
|
192
229
|
skills?: string[];
|
|
193
230
|
/**
|
|
231
|
+
* @remarks
|
|
232
|
+
* The working directory path.
|
|
233
|
+
*
|
|
194
234
|
* @example
|
|
195
235
|
* /home/node/.openclaw/workspace-work
|
|
196
236
|
*/
|