@alicloud/rdsai20250507 3.9.2 → 3.9.4
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 +14 -14
- package/dist/client.js +44 -14
- package/dist/client.js.map +1 -1
- package/dist/models/ChatMessagesRequest.d.ts +27 -5
- package/dist/models/ChatMessagesRequest.js +6 -0
- package/dist/models/ChatMessagesRequest.js.map +1 -1
- package/dist/models/ChatMessagesResponseBody.d.ts +49 -2
- package/dist/models/ChatMessagesResponseBody.js +15 -0
- package/dist/models/ChatMessagesResponseBody.js.map +1 -1
- package/dist/models/ChatMessagesShrinkRequest.d.ts +3 -5
- package/dist/models/ChatMessagesShrinkRequest.js.map +1 -1
- package/dist/models/ChatMessagesTaskStopRequest.d.ts +9 -3
- package/dist/models/ChatMessagesTaskStopRequest.js +2 -0
- package/dist/models/ChatMessagesTaskStopRequest.js.map +1 -1
- package/dist/models/ChatMessagesTaskStopResponseBody.d.ts +1 -1
- package/dist/models/CreateCustomAgentRequest.d.ts +6 -2
- package/dist/models/CreateCustomAgentRequest.js.map +1 -1
- package/dist/models/CreateCustomAgentResponseBody.d.ts +2 -2
- package/dist/models/CreateCustomAgentShrinkRequest.d.ts +6 -2
- package/dist/models/CreateCustomAgentShrinkRequest.js.map +1 -1
- package/dist/models/CreateSkillRequest.d.ts +30 -12
- package/dist/models/CreateSkillRequest.js +6 -0
- package/dist/models/CreateSkillRequest.js.map +1 -1
- package/dist/models/CreateSkillResponseBody.d.ts +225 -10
- package/dist/models/CreateSkillResponseBody.js +91 -1
- package/dist/models/CreateSkillResponseBody.js.map +1 -1
- package/dist/models/CreateSkillShrinkRequest.d.ts +30 -12
- package/dist/models/CreateSkillShrinkRequest.js +6 -0
- package/dist/models/CreateSkillShrinkRequest.js.map +1 -1
- package/dist/models/DeleteCustomAgentRequest.d.ts +1 -1
- package/dist/models/DeleteCustomAgentResponseBody.d.ts +1 -1
- package/dist/models/DeleteSkillRequest.d.ts +9 -3
- package/dist/models/DeleteSkillRequest.js +2 -0
- package/dist/models/DeleteSkillRequest.js.map +1 -1
- package/dist/models/DeleteSkillResponseBody.d.ts +23 -2
- package/dist/models/DeleteSkillResponseBody.js +6 -0
- package/dist/models/DeleteSkillResponseBody.js.map +1 -1
- package/dist/models/GetConversationsRequest.d.ts +9 -1
- package/dist/models/GetConversationsRequest.js +2 -0
- package/dist/models/GetConversationsRequest.js.map +1 -1
- package/dist/models/GetConversationsResponseBody.d.ts +17 -4
- package/dist/models/GetConversationsResponseBody.js +2 -0
- package/dist/models/GetConversationsResponseBody.js.map +1 -1
- package/dist/models/GetMessagesRequest.d.ts +9 -1
- package/dist/models/GetMessagesRequest.js +2 -0
- package/dist/models/GetMessagesRequest.js.map +1 -1
- package/dist/models/GetMessagesResponseBody.d.ts +74 -3
- package/dist/models/GetMessagesResponseBody.js +21 -0
- package/dist/models/GetMessagesResponseBody.js.map +1 -1
- package/dist/models/GetSkillRequest.d.ts +14 -7
- package/dist/models/GetSkillRequest.js +2 -0
- package/dist/models/GetSkillRequest.js.map +1 -1
- package/dist/models/GetSkillResponseBody.d.ts +177 -11
- package/dist/models/GetSkillResponseBody.js +61 -1
- package/dist/models/GetSkillResponseBody.js.map +1 -1
- package/dist/models/ListSkillRequest.d.ts +15 -7
- package/dist/models/ListSkillRequest.js +2 -0
- package/dist/models/ListSkillRequest.js.map +1 -1
- package/dist/models/ListSkillResponseBody.d.ts +69 -13
- package/dist/models/ListSkillResponseBody.js +14 -0
- package/dist/models/ListSkillResponseBody.js.map +1 -1
- package/dist/models/ModifyMessagesFeedbacksRequest.d.ts +12 -9
- package/dist/models/ModifyMessagesFeedbacksRequest.js +2 -0
- package/dist/models/ModifyMessagesFeedbacksRequest.js.map +1 -1
- package/dist/models/ModifyMessagesFeedbacksResponseBody.d.ts +1 -1
- package/dist/models/UpdateCustomAgentRequest.d.ts +5 -5
- package/dist/models/UpdateCustomAgentResponseBody.d.ts +10 -6
- package/dist/models/UpdateCustomAgentResponseBody.js.map +1 -1
- package/dist/models/UpdateCustomAgentShrinkRequest.d.ts +5 -5
- package/dist/models/UpdateSkillRequest.d.ts +6 -6
- package/dist/models/UpdateSkillResponseBody.d.ts +8 -8
- package/dist/models/UpdateSkillShrinkRequest.d.ts +6 -6
- package/dist/models/model.d.ts +3 -0
- package/dist/models/model.js +18 -12
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +54 -14
- package/src/models/ChatMessagesRequest.ts +33 -5
- package/src/models/ChatMessagesResponseBody.ts +62 -2
- package/src/models/ChatMessagesShrinkRequest.ts +3 -5
- package/src/models/ChatMessagesTaskStopRequest.ts +11 -3
- package/src/models/ChatMessagesTaskStopResponseBody.ts +1 -1
- package/src/models/CreateCustomAgentRequest.ts +6 -2
- package/src/models/CreateCustomAgentResponseBody.ts +2 -2
- package/src/models/CreateCustomAgentShrinkRequest.ts +6 -2
- package/src/models/CreateSkillRequest.ts +36 -12
- package/src/models/CreateSkillResponseBody.ts +297 -10
- package/src/models/CreateSkillShrinkRequest.ts +36 -12
- package/src/models/DeleteCustomAgentRequest.ts +1 -1
- package/src/models/DeleteCustomAgentResponseBody.ts +1 -1
- package/src/models/DeleteSkillRequest.ts +11 -3
- package/src/models/DeleteSkillResponseBody.ts +29 -2
- package/src/models/GetConversationsRequest.ts +11 -1
- package/src/models/GetConversationsResponseBody.ts +19 -4
- package/src/models/GetMessagesRequest.ts +11 -1
- package/src/models/GetMessagesResponseBody.ts +93 -3
- package/src/models/GetSkillRequest.ts +16 -7
- package/src/models/GetSkillResponseBody.ts +228 -11
- package/src/models/ListSkillRequest.ts +17 -7
- package/src/models/ListSkillResponseBody.ts +83 -13
- package/src/models/ModifyMessagesFeedbacksRequest.ts +14 -9
- package/src/models/ModifyMessagesFeedbacksResponseBody.ts +1 -1
- package/src/models/UpdateCustomAgentRequest.ts +5 -5
- package/src/models/UpdateCustomAgentResponseBody.ts +10 -6
- package/src/models/UpdateCustomAgentShrinkRequest.ts +5 -5
- package/src/models/UpdateSkillRequest.ts +6 -6
- package/src/models/UpdateSkillResponseBody.ts +8 -8
- package/src/models/UpdateSkillShrinkRequest.ts +6 -6
- package/src/models/model.ts +3 -0
|
@@ -2,18 +2,283 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
export class CreateSkillResponseBodySkill extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The ID of the currently active version.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* version-example
|
|
12
|
+
*/
|
|
13
|
+
activeVersionId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The Skill category.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* productivity
|
|
20
|
+
*/
|
|
21
|
+
category?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The Skill creation time.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* 2026-09-15T10:00:00Z
|
|
28
|
+
*/
|
|
29
|
+
createdAt?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The Skill description.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* An example ContextDB Skill
|
|
36
|
+
*/
|
|
37
|
+
description?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The Skill display name.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* Example Skill
|
|
44
|
+
*/
|
|
45
|
+
displayName?: string;
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The public HTTPS URL of the current icon. This value is empty if no icon is configured.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* https://example.com/skill-icon.png
|
|
52
|
+
*
|
|
53
|
+
* **if can be null:**
|
|
54
|
+
* true
|
|
55
|
+
*/
|
|
56
|
+
icon?: string;
|
|
57
|
+
/**
|
|
58
|
+
* @remarks
|
|
59
|
+
* Skill ID
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* skill-example
|
|
63
|
+
*/
|
|
64
|
+
id?: string;
|
|
65
|
+
/**
|
|
66
|
+
* @remarks
|
|
67
|
+
* Indicates whether the Skill is deleted.
|
|
68
|
+
*/
|
|
69
|
+
isDeleted?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* @remarks
|
|
72
|
+
* The visibility scope of the Skill.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* PRIVATE
|
|
76
|
+
*/
|
|
77
|
+
scope?: string;
|
|
78
|
+
/**
|
|
79
|
+
* @remarks
|
|
80
|
+
* The stable identifier of the Skill.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* example-skill
|
|
84
|
+
*/
|
|
85
|
+
slug?: string;
|
|
86
|
+
/**
|
|
87
|
+
* @remarks
|
|
88
|
+
* The Skill update time.
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* 2026-09-15T10:00:00Z
|
|
92
|
+
*/
|
|
93
|
+
updatedAt?: string;
|
|
94
|
+
static names(): { [key: string]: string } {
|
|
95
|
+
return {
|
|
96
|
+
activeVersionId: 'ActiveVersionId',
|
|
97
|
+
category: 'Category',
|
|
98
|
+
createdAt: 'CreatedAt',
|
|
99
|
+
description: 'Description',
|
|
100
|
+
displayName: 'DisplayName',
|
|
101
|
+
icon: 'Icon',
|
|
102
|
+
id: 'Id',
|
|
103
|
+
isDeleted: 'IsDeleted',
|
|
104
|
+
scope: 'Scope',
|
|
105
|
+
slug: 'Slug',
|
|
106
|
+
updatedAt: 'UpdatedAt',
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
static types(): { [key: string]: any } {
|
|
111
|
+
return {
|
|
112
|
+
activeVersionId: 'string',
|
|
113
|
+
category: 'string',
|
|
114
|
+
createdAt: 'string',
|
|
115
|
+
description: 'string',
|
|
116
|
+
displayName: 'string',
|
|
117
|
+
icon: 'string',
|
|
118
|
+
id: 'string',
|
|
119
|
+
isDeleted: 'boolean',
|
|
120
|
+
scope: 'string',
|
|
121
|
+
slug: 'string',
|
|
122
|
+
updatedAt: 'string',
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
validate() {
|
|
127
|
+
super.validate();
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
constructor(map?: { [key: string]: any }) {
|
|
131
|
+
super(map);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export class CreateSkillResponseBodyVersion extends $dara.Model {
|
|
136
|
+
/**
|
|
137
|
+
* @remarks
|
|
138
|
+
* The activation time of the Skill version.
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* 2026-09-15T10:00:00Z
|
|
142
|
+
*/
|
|
143
|
+
activatedAt?: string;
|
|
144
|
+
/**
|
|
145
|
+
* @remarks
|
|
146
|
+
* The creation time of the Skill version.
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
* 2026-09-15T10:00:00Z
|
|
150
|
+
*/
|
|
151
|
+
createdAt?: string;
|
|
152
|
+
/**
|
|
153
|
+
* @remarks
|
|
154
|
+
* Indicates whether the Skill requires a credential.
|
|
155
|
+
*/
|
|
156
|
+
credentialRequired?: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* @remarks
|
|
159
|
+
* The Skill version ID.
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* version-example
|
|
163
|
+
*/
|
|
164
|
+
id?: string;
|
|
165
|
+
/**
|
|
166
|
+
* @remarks
|
|
167
|
+
* The Skill package size, in bytes.
|
|
168
|
+
*
|
|
169
|
+
* @example
|
|
170
|
+
* 1024
|
|
171
|
+
*/
|
|
172
|
+
packageSize?: number;
|
|
173
|
+
/**
|
|
174
|
+
* @remarks
|
|
175
|
+
* The revocation reason of the Skill version.
|
|
176
|
+
*
|
|
177
|
+
* @example
|
|
178
|
+
* Replaced by a newer version
|
|
179
|
+
*/
|
|
180
|
+
revokeReason?: string;
|
|
181
|
+
/**
|
|
182
|
+
* @remarks
|
|
183
|
+
* The revocation time of the Skill version.
|
|
184
|
+
*
|
|
185
|
+
* @example
|
|
186
|
+
* 2026-09-15T11:00:00Z
|
|
187
|
+
*/
|
|
188
|
+
revokedAt?: string;
|
|
189
|
+
/**
|
|
190
|
+
* @remarks
|
|
191
|
+
* The SHA-256 digest of the Skill package.
|
|
192
|
+
*
|
|
193
|
+
* @example
|
|
194
|
+
* 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
|
|
195
|
+
*/
|
|
196
|
+
sha256?: string;
|
|
197
|
+
/**
|
|
198
|
+
* @remarks
|
|
199
|
+
* The ID of the parent Skill.
|
|
200
|
+
*
|
|
201
|
+
* @example
|
|
202
|
+
* skill-example
|
|
203
|
+
*/
|
|
204
|
+
skillId?: string;
|
|
205
|
+
/**
|
|
206
|
+
* @remarks
|
|
207
|
+
* The status of the Skill version.
|
|
208
|
+
*
|
|
209
|
+
* @example
|
|
210
|
+
* ACTIVE
|
|
211
|
+
*/
|
|
212
|
+
status?: string;
|
|
213
|
+
/**
|
|
214
|
+
* @remarks
|
|
215
|
+
* The Skill version number.
|
|
216
|
+
*
|
|
217
|
+
* @example
|
|
218
|
+
* 1.0.0
|
|
219
|
+
*/
|
|
220
|
+
version?: string;
|
|
221
|
+
static names(): { [key: string]: string } {
|
|
222
|
+
return {
|
|
223
|
+
activatedAt: 'ActivatedAt',
|
|
224
|
+
createdAt: 'CreatedAt',
|
|
225
|
+
credentialRequired: 'CredentialRequired',
|
|
226
|
+
id: 'Id',
|
|
227
|
+
packageSize: 'PackageSize',
|
|
228
|
+
revokeReason: 'RevokeReason',
|
|
229
|
+
revokedAt: 'RevokedAt',
|
|
230
|
+
sha256: 'Sha256',
|
|
231
|
+
skillId: 'SkillId',
|
|
232
|
+
status: 'Status',
|
|
233
|
+
version: 'Version',
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
static types(): { [key: string]: any } {
|
|
238
|
+
return {
|
|
239
|
+
activatedAt: 'string',
|
|
240
|
+
createdAt: 'string',
|
|
241
|
+
credentialRequired: 'boolean',
|
|
242
|
+
id: 'string',
|
|
243
|
+
packageSize: 'number',
|
|
244
|
+
revokeReason: 'string',
|
|
245
|
+
revokedAt: 'string',
|
|
246
|
+
sha256: 'string',
|
|
247
|
+
skillId: 'string',
|
|
248
|
+
status: 'string',
|
|
249
|
+
version: 'string',
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
validate() {
|
|
254
|
+
super.validate();
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
constructor(map?: { [key: string]: any }) {
|
|
258
|
+
super(map);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
5
262
|
export class CreateSkillResponseBody extends $dara.Model {
|
|
6
263
|
/**
|
|
7
264
|
* @remarks
|
|
8
|
-
* The
|
|
265
|
+
* The Skill catalog revision number.
|
|
9
266
|
*
|
|
10
267
|
* @example
|
|
11
|
-
*
|
|
268
|
+
* 1
|
|
269
|
+
*/
|
|
270
|
+
catalogRevision?: number;
|
|
271
|
+
/**
|
|
272
|
+
* @remarks
|
|
273
|
+
* The content grouped by database type.
|
|
274
|
+
*
|
|
275
|
+
* @example
|
|
276
|
+
* {"MySQL": "MySQL optimization guide...","PostgreSQL": "PostgreSQL optimization guide..."}
|
|
12
277
|
*/
|
|
13
278
|
content?: { [key: string]: any };
|
|
14
279
|
/**
|
|
15
280
|
* @remarks
|
|
16
|
-
* The creation time
|
|
281
|
+
* The creation time.
|
|
17
282
|
*
|
|
18
283
|
* @example
|
|
19
284
|
* 2026-02-04T21:14:45Z
|
|
@@ -21,20 +286,20 @@ export class CreateSkillResponseBody extends $dara.Model {
|
|
|
21
286
|
createdAt?: string;
|
|
22
287
|
/**
|
|
23
288
|
* @remarks
|
|
24
|
-
* The list of database
|
|
289
|
+
* The list of database types.
|
|
25
290
|
*/
|
|
26
291
|
dbtypes?: string[];
|
|
27
292
|
/**
|
|
28
293
|
* @remarks
|
|
29
|
-
* The description
|
|
294
|
+
* The Skill description.
|
|
30
295
|
*
|
|
31
296
|
* @example
|
|
32
|
-
* SQL
|
|
297
|
+
* SQL query optimization skill
|
|
33
298
|
*/
|
|
34
299
|
description?: string;
|
|
35
300
|
/**
|
|
36
301
|
* @remarks
|
|
37
|
-
* The unique identifier of the
|
|
302
|
+
* The unique identifier of the Skill.
|
|
38
303
|
*
|
|
39
304
|
* @example
|
|
40
305
|
* 82cf3d62-0add-47bd-869f-877131f7****
|
|
@@ -42,7 +307,7 @@ export class CreateSkillResponseBody extends $dara.Model {
|
|
|
42
307
|
id?: string;
|
|
43
308
|
/**
|
|
44
309
|
* @remarks
|
|
45
|
-
* The name
|
|
310
|
+
* The Skill name.
|
|
46
311
|
*
|
|
47
312
|
* @example
|
|
48
313
|
* query-optimization
|
|
@@ -50,7 +315,7 @@ export class CreateSkillResponseBody extends $dara.Model {
|
|
|
50
315
|
name?: string;
|
|
51
316
|
/**
|
|
52
317
|
* @remarks
|
|
53
|
-
* The request
|
|
318
|
+
* The unique request identifier.
|
|
54
319
|
*
|
|
55
320
|
* @example
|
|
56
321
|
* FE9C65D7-930F-57A5-A207-8C396329****
|
|
@@ -58,14 +323,25 @@ export class CreateSkillResponseBody extends $dara.Model {
|
|
|
58
323
|
requestId?: string;
|
|
59
324
|
/**
|
|
60
325
|
* @remarks
|
|
61
|
-
* The
|
|
326
|
+
* The created Skill.
|
|
327
|
+
*/
|
|
328
|
+
skill?: CreateSkillResponseBodySkill;
|
|
329
|
+
/**
|
|
330
|
+
* @remarks
|
|
331
|
+
* The Skill type.
|
|
62
332
|
*
|
|
63
333
|
* @example
|
|
64
334
|
* user
|
|
65
335
|
*/
|
|
66
336
|
skillType?: string;
|
|
337
|
+
/**
|
|
338
|
+
* @remarks
|
|
339
|
+
* The created Skill version.
|
|
340
|
+
*/
|
|
341
|
+
version?: CreateSkillResponseBodyVersion;
|
|
67
342
|
static names(): { [key: string]: string } {
|
|
68
343
|
return {
|
|
344
|
+
catalogRevision: 'CatalogRevision',
|
|
69
345
|
content: 'Content',
|
|
70
346
|
createdAt: 'CreatedAt',
|
|
71
347
|
dbtypes: 'Dbtypes',
|
|
@@ -73,12 +349,15 @@ export class CreateSkillResponseBody extends $dara.Model {
|
|
|
73
349
|
id: 'Id',
|
|
74
350
|
name: 'Name',
|
|
75
351
|
requestId: 'RequestId',
|
|
352
|
+
skill: 'Skill',
|
|
76
353
|
skillType: 'SkillType',
|
|
354
|
+
version: 'Version',
|
|
77
355
|
};
|
|
78
356
|
}
|
|
79
357
|
|
|
80
358
|
static types(): { [key: string]: any } {
|
|
81
359
|
return {
|
|
360
|
+
catalogRevision: 'number',
|
|
82
361
|
content: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
83
362
|
createdAt: 'string',
|
|
84
363
|
dbtypes: { 'type': 'array', 'itemType': 'string' },
|
|
@@ -86,7 +365,9 @@ export class CreateSkillResponseBody extends $dara.Model {
|
|
|
86
365
|
id: 'string',
|
|
87
366
|
name: 'string',
|
|
88
367
|
requestId: 'string',
|
|
368
|
+
skill: CreateSkillResponseBodySkill,
|
|
89
369
|
skillType: 'string',
|
|
370
|
+
version: CreateSkillResponseBodyVersion,
|
|
90
371
|
};
|
|
91
372
|
}
|
|
92
373
|
|
|
@@ -97,6 +378,12 @@ export class CreateSkillResponseBody extends $dara.Model {
|
|
|
97
378
|
if(Array.isArray(this.dbtypes)) {
|
|
98
379
|
$dara.Model.validateArray(this.dbtypes);
|
|
99
380
|
}
|
|
381
|
+
if(this.skill && typeof (this.skill as any).validate === 'function') {
|
|
382
|
+
(this.skill as any).validate();
|
|
383
|
+
}
|
|
384
|
+
if(this.version && typeof (this.version as any).validate === 'function') {
|
|
385
|
+
(this.version as any).validate();
|
|
386
|
+
}
|
|
100
387
|
super.validate();
|
|
101
388
|
}
|
|
102
389
|
|
|
@@ -5,45 +5,66 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class CreateSkillShrinkRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The content
|
|
8
|
+
* The content.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
|
-
* {"MySQL": "MySQL
|
|
11
|
+
* {"MySQL": "MySQL optimization guide...","PostgreSQL": "PostgreSQL optimization guide..."}
|
|
12
12
|
*/
|
|
13
13
|
contentShrink?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The list of database
|
|
17
|
-
*
|
|
18
|
-
* This parameter is required.
|
|
16
|
+
* The list of database types.
|
|
19
17
|
*/
|
|
20
18
|
dbtypesShrink?: string;
|
|
21
19
|
/**
|
|
22
20
|
* @remarks
|
|
23
|
-
* The description
|
|
24
|
-
*
|
|
25
|
-
* This parameter is required.
|
|
21
|
+
* The Skill description. The description can be up to 1000 characters in length.
|
|
26
22
|
*
|
|
27
23
|
* @example
|
|
28
|
-
* SQL
|
|
24
|
+
* SQL query optimization skill
|
|
29
25
|
*/
|
|
30
26
|
description?: string;
|
|
31
27
|
/**
|
|
32
28
|
* @remarks
|
|
33
|
-
* The name
|
|
34
|
-
*
|
|
35
|
-
* This parameter is required.
|
|
29
|
+
* The Skill name. The name can contain only lowercase letters, digits, and hyphens.
|
|
36
30
|
*
|
|
37
31
|
* @example
|
|
38
32
|
* query-optimization
|
|
39
33
|
*/
|
|
40
34
|
name?: string;
|
|
35
|
+
/**
|
|
36
|
+
* @remarks
|
|
37
|
+
* The Skill upload session ID.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* upload-example
|
|
41
|
+
*/
|
|
42
|
+
uploadId?: string;
|
|
43
|
+
/**
|
|
44
|
+
* @remarks
|
|
45
|
+
* The Skill upload session token.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* token-example
|
|
49
|
+
*/
|
|
50
|
+
uploadToken?: string;
|
|
51
|
+
/**
|
|
52
|
+
* @remarks
|
|
53
|
+
* The ContextDB workspace ID.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* 00000000-0000-4000-8000-000000000001
|
|
57
|
+
*/
|
|
58
|
+
workspaceId?: string;
|
|
41
59
|
static names(): { [key: string]: string } {
|
|
42
60
|
return {
|
|
43
61
|
contentShrink: 'Content',
|
|
44
62
|
dbtypesShrink: 'Dbtypes',
|
|
45
63
|
description: 'Description',
|
|
46
64
|
name: 'Name',
|
|
65
|
+
uploadId: 'UploadId',
|
|
66
|
+
uploadToken: 'UploadToken',
|
|
67
|
+
workspaceId: 'WorkspaceId',
|
|
47
68
|
};
|
|
48
69
|
}
|
|
49
70
|
|
|
@@ -53,6 +74,9 @@ export class CreateSkillShrinkRequest extends $dara.Model {
|
|
|
53
74
|
dbtypesShrink: 'string',
|
|
54
75
|
description: 'string',
|
|
55
76
|
name: 'string',
|
|
77
|
+
uploadId: 'string',
|
|
78
|
+
uploadToken: 'string',
|
|
79
|
+
workspaceId: 'string',
|
|
56
80
|
};
|
|
57
81
|
}
|
|
58
82
|
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class DeleteCustomAgentRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
*
|
|
8
|
+
* AgentId。
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* ebe44453-3b41-4c74-94d1-01d088d7****
|
|
@@ -5,23 +5,31 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class DeleteSkillRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The unique identifier of the
|
|
9
|
-
*
|
|
10
|
-
* This parameter is required.
|
|
8
|
+
* The unique identifier of the Skill.
|
|
11
9
|
*
|
|
12
10
|
* @example
|
|
13
11
|
* 1fbb6d8b-8845-4e65-871e-48bc6830****
|
|
14
12
|
*/
|
|
15
13
|
skillId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The ContextDB workspace ID.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 00000000-0000-4000-8000-000000000001
|
|
20
|
+
*/
|
|
21
|
+
workspaceId?: string;
|
|
16
22
|
static names(): { [key: string]: string } {
|
|
17
23
|
return {
|
|
18
24
|
skillId: 'SkillId',
|
|
25
|
+
workspaceId: 'WorkspaceId',
|
|
19
26
|
};
|
|
20
27
|
}
|
|
21
28
|
|
|
22
29
|
static types(): { [key: string]: any } {
|
|
23
30
|
return {
|
|
24
31
|
skillId: 'string',
|
|
32
|
+
workspaceId: 'string',
|
|
25
33
|
};
|
|
26
34
|
}
|
|
27
35
|
|
|
@@ -5,7 +5,20 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class DeleteSkillResponseBody extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The
|
|
8
|
+
* The Skill catalog revision number.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 1
|
|
12
|
+
*/
|
|
13
|
+
catalogRevision?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* Indicates whether the Skill is deleted.
|
|
17
|
+
*/
|
|
18
|
+
deleted?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* @remarks
|
|
21
|
+
* The unique identifier of the request.
|
|
9
22
|
*
|
|
10
23
|
* @example
|
|
11
24
|
* FE9C65D7-930F-57A5-A207-8C396329****
|
|
@@ -13,23 +26,37 @@ export class DeleteSkillResponseBody extends $dara.Model {
|
|
|
13
26
|
requestId?: string;
|
|
14
27
|
/**
|
|
15
28
|
* @remarks
|
|
16
|
-
* The returned
|
|
29
|
+
* The returned result.
|
|
17
30
|
*
|
|
18
31
|
* @example
|
|
19
32
|
* success
|
|
20
33
|
*/
|
|
21
34
|
result?: string;
|
|
35
|
+
/**
|
|
36
|
+
* @remarks
|
|
37
|
+
* The ID of the deleted Skill.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* skill-example
|
|
41
|
+
*/
|
|
42
|
+
skillId?: string;
|
|
22
43
|
static names(): { [key: string]: string } {
|
|
23
44
|
return {
|
|
45
|
+
catalogRevision: 'CatalogRevision',
|
|
46
|
+
deleted: 'Deleted',
|
|
24
47
|
requestId: 'RequestId',
|
|
25
48
|
result: 'Result',
|
|
49
|
+
skillId: 'SkillId',
|
|
26
50
|
};
|
|
27
51
|
}
|
|
28
52
|
|
|
29
53
|
static types(): { [key: string]: any } {
|
|
30
54
|
return {
|
|
55
|
+
catalogRevision: 'number',
|
|
56
|
+
deleted: 'boolean',
|
|
31
57
|
requestId: 'string',
|
|
32
58
|
result: 'string',
|
|
59
|
+
skillId: 'string',
|
|
33
60
|
};
|
|
34
61
|
}
|
|
35
62
|
|
|
@@ -21,7 +21,7 @@ export class GetConversationsRequest extends $dara.Model {
|
|
|
21
21
|
limit?: string;
|
|
22
22
|
/**
|
|
23
23
|
* @remarks
|
|
24
|
-
* The
|
|
24
|
+
* The pinned bookmark flag for the application.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* true
|
|
@@ -35,12 +35,21 @@ export class GetConversationsRequest extends $dara.Model {
|
|
|
35
35
|
* CreatedAt
|
|
36
36
|
*/
|
|
37
37
|
sortBy?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The ContextDB workspace ID.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* 00000000-0000-4000-8000-000000000001
|
|
44
|
+
*/
|
|
45
|
+
workspaceId?: string;
|
|
38
46
|
static names(): { [key: string]: string } {
|
|
39
47
|
return {
|
|
40
48
|
lastId: 'LastId',
|
|
41
49
|
limit: 'Limit',
|
|
42
50
|
pinned: 'Pinned',
|
|
43
51
|
sortBy: 'SortBy',
|
|
52
|
+
workspaceId: 'WorkspaceId',
|
|
44
53
|
};
|
|
45
54
|
}
|
|
46
55
|
|
|
@@ -50,6 +59,7 @@ export class GetConversationsRequest extends $dara.Model {
|
|
|
50
59
|
limit: 'string',
|
|
51
60
|
pinned: 'string',
|
|
52
61
|
sortBy: 'string',
|
|
62
|
+
workspaceId: 'string',
|
|
53
63
|
};
|
|
54
64
|
}
|
|
55
65
|
|
|
@@ -13,7 +13,7 @@ export class GetConversationsResponseBodyData extends $dara.Model {
|
|
|
13
13
|
createdAt?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The
|
|
16
|
+
* The historical conversation ID.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* 60b335ca-124d-4ee1-864b-de554987****
|
|
@@ -24,18 +24,31 @@ export class GetConversationsResponseBodyData extends $dara.Model {
|
|
|
24
24
|
* The conversation introduction.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
|
-
*
|
|
27
|
+
* Test searching for RDS resources
|
|
28
28
|
*/
|
|
29
29
|
introduction?: string;
|
|
30
30
|
isRunning?: boolean;
|
|
31
31
|
/**
|
|
32
32
|
* @remarks
|
|
33
|
-
* The
|
|
33
|
+
* The historical conversation name.
|
|
34
34
|
*
|
|
35
35
|
* @example
|
|
36
|
-
*
|
|
36
|
+
* Search for RDS resources
|
|
37
37
|
*/
|
|
38
38
|
name?: string;
|
|
39
|
+
/**
|
|
40
|
+
* @remarks
|
|
41
|
+
* The session status. Valid values:
|
|
42
|
+
* - idle: The session is idle.
|
|
43
|
+
* - running: The session is generating a response.
|
|
44
|
+
* - pending_approval: The session is waiting for approval or manual review.
|
|
45
|
+
*
|
|
46
|
+
* If both pending_approval and running conditions are met, pending_approval is returned.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* idle
|
|
50
|
+
*/
|
|
51
|
+
status?: string;
|
|
39
52
|
updatedAt?: string;
|
|
40
53
|
static names(): { [key: string]: string } {
|
|
41
54
|
return {
|
|
@@ -44,6 +57,7 @@ export class GetConversationsResponseBodyData extends $dara.Model {
|
|
|
44
57
|
introduction: 'Introduction',
|
|
45
58
|
isRunning: 'IsRunning',
|
|
46
59
|
name: 'Name',
|
|
60
|
+
status: 'Status',
|
|
47
61
|
updatedAt: 'UpdatedAt',
|
|
48
62
|
};
|
|
49
63
|
}
|
|
@@ -55,6 +69,7 @@ export class GetConversationsResponseBodyData extends $dara.Model {
|
|
|
55
69
|
introduction: 'string',
|
|
56
70
|
isRunning: 'boolean',
|
|
57
71
|
name: 'string',
|
|
72
|
+
status: 'string',
|
|
58
73
|
updatedAt: 'string',
|
|
59
74
|
};
|
|
60
75
|
}
|