@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
|
@@ -22,18 +22,27 @@ export class GetMessagesRequest extends $dara.Model {
|
|
|
22
22
|
firstId?: string;
|
|
23
23
|
/**
|
|
24
24
|
* @remarks
|
|
25
|
-
* The number of entries per page
|
|
25
|
+
* The number of entries per page for a paged query. Valid values: 1 to 100. Default value: 100.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* 10
|
|
29
29
|
*/
|
|
30
30
|
limit?: number;
|
|
31
|
+
/**
|
|
32
|
+
* @remarks
|
|
33
|
+
* The ContextDB workspace ID.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* 00000000-0000-4000-8000-000000000001
|
|
37
|
+
*/
|
|
38
|
+
workspaceId?: string;
|
|
31
39
|
static names(): { [key: string]: string } {
|
|
32
40
|
return {
|
|
33
41
|
conversationId: 'ConversationId',
|
|
34
42
|
eventMode: 'EventMode',
|
|
35
43
|
firstId: 'FirstId',
|
|
36
44
|
limit: 'Limit',
|
|
45
|
+
workspaceId: 'WorkspaceId',
|
|
37
46
|
};
|
|
38
47
|
}
|
|
39
48
|
|
|
@@ -43,6 +52,7 @@ export class GetMessagesRequest extends $dara.Model {
|
|
|
43
52
|
eventMode: 'string',
|
|
44
53
|
firstId: 'string',
|
|
45
54
|
limit: 'number',
|
|
55
|
+
workspaceId: 'string',
|
|
46
56
|
};
|
|
47
57
|
}
|
|
48
58
|
|
|
@@ -3,10 +3,79 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class GetMessagesResponseBodyDataEvents extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The approval status of the tool calling.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* pending
|
|
12
|
+
*/
|
|
13
|
+
approvalStatus?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The tool calling ID.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* call-example
|
|
20
|
+
*/
|
|
21
|
+
callId?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The session ID.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* conversation-example
|
|
28
|
+
*/
|
|
29
|
+
conversationId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The description of the tool calling.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* Search ContextDB records
|
|
36
|
+
*/
|
|
37
|
+
description?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The message ID.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* message-example
|
|
44
|
+
*/
|
|
45
|
+
messageId?: string;
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The tool approval round ID.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* round-example
|
|
52
|
+
*/
|
|
53
|
+
roundId?: string;
|
|
54
|
+
/**
|
|
55
|
+
* @remarks
|
|
56
|
+
* The parameters of the tool calling.
|
|
57
|
+
*/
|
|
58
|
+
toolArguments?: { [key: string]: any };
|
|
59
|
+
/**
|
|
60
|
+
* @remarks
|
|
61
|
+
* The tool name.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* contextdb.search
|
|
65
|
+
*/
|
|
66
|
+
toolName?: string;
|
|
6
67
|
answer?: string;
|
|
7
68
|
event?: string;
|
|
8
69
|
static names(): { [key: string]: string } {
|
|
9
70
|
return {
|
|
71
|
+
approvalStatus: 'ApprovalStatus',
|
|
72
|
+
callId: 'CallId',
|
|
73
|
+
conversationId: 'ConversationId',
|
|
74
|
+
description: 'Description',
|
|
75
|
+
messageId: 'MessageId',
|
|
76
|
+
roundId: 'RoundId',
|
|
77
|
+
toolArguments: 'ToolArguments',
|
|
78
|
+
toolName: 'ToolName',
|
|
10
79
|
answer: 'answer',
|
|
11
80
|
event: 'event',
|
|
12
81
|
};
|
|
@@ -14,12 +83,23 @@ export class GetMessagesResponseBodyDataEvents extends $dara.Model {
|
|
|
14
83
|
|
|
15
84
|
static types(): { [key: string]: any } {
|
|
16
85
|
return {
|
|
86
|
+
approvalStatus: 'string',
|
|
87
|
+
callId: 'string',
|
|
88
|
+
conversationId: 'string',
|
|
89
|
+
description: 'string',
|
|
90
|
+
messageId: 'string',
|
|
91
|
+
roundId: 'string',
|
|
92
|
+
toolArguments: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
93
|
+
toolName: 'string',
|
|
17
94
|
answer: 'string',
|
|
18
95
|
event: 'string',
|
|
19
96
|
};
|
|
20
97
|
}
|
|
21
98
|
|
|
22
99
|
validate() {
|
|
100
|
+
if(this.toolArguments) {
|
|
101
|
+
$dara.Model.validateMap(this.toolArguments);
|
|
102
|
+
}
|
|
23
103
|
super.validate();
|
|
24
104
|
}
|
|
25
105
|
|
|
@@ -32,11 +112,20 @@ export class GetMessagesResponseBodyDataMessageFiles extends $dara.Model {
|
|
|
32
112
|
id?: string;
|
|
33
113
|
previewUrl?: string;
|
|
34
114
|
type?: string;
|
|
115
|
+
/**
|
|
116
|
+
* @remarks
|
|
117
|
+
* The upload file ID.
|
|
118
|
+
*
|
|
119
|
+
* @example
|
|
120
|
+
* file-example
|
|
121
|
+
*/
|
|
122
|
+
uploadFileId?: string;
|
|
35
123
|
static names(): { [key: string]: string } {
|
|
36
124
|
return {
|
|
37
125
|
id: 'Id',
|
|
38
126
|
previewUrl: 'PreviewUrl',
|
|
39
127
|
type: 'Type',
|
|
128
|
+
uploadFileId: 'UploadFileId',
|
|
40
129
|
};
|
|
41
130
|
}
|
|
42
131
|
|
|
@@ -45,6 +134,7 @@ export class GetMessagesResponseBodyDataMessageFiles extends $dara.Model {
|
|
|
45
134
|
id: 'string',
|
|
46
135
|
previewUrl: 'string',
|
|
47
136
|
type: 'string',
|
|
137
|
+
uploadFileId: 'string',
|
|
48
138
|
};
|
|
49
139
|
}
|
|
50
140
|
|
|
@@ -63,12 +153,12 @@ export class GetMessagesResponseBodyData extends $dara.Model {
|
|
|
63
153
|
* The answer.
|
|
64
154
|
*
|
|
65
155
|
* @example
|
|
66
|
-
* The disk usage of instance rm-bp14as9914vd3**** is 23%, and
|
|
156
|
+
* The disk usage of the instance rm-bp14as9914vd3**** you queried is 23%, and no capacity expansion is needed at this time. If you need to view the detailed configurations or performance monitoring of a specific instance, or perform other operations, let me know your specific requirements!
|
|
67
157
|
*/
|
|
68
158
|
answer?: string;
|
|
69
159
|
/**
|
|
70
160
|
* @remarks
|
|
71
|
-
* The
|
|
161
|
+
* The session ID.
|
|
72
162
|
*
|
|
73
163
|
* @example
|
|
74
164
|
* 9cbbe885-b240-4803-9d15-6781a3fd****
|
|
@@ -109,7 +199,7 @@ export class GetMessagesResponseBodyData extends $dara.Model {
|
|
|
109
199
|
* The query statement.
|
|
110
200
|
*
|
|
111
201
|
* @example
|
|
112
|
-
*
|
|
202
|
+
* Disk usage of instance rm-bp14as9914vd3****, is capacity expansion needed
|
|
113
203
|
*/
|
|
114
204
|
query?: string;
|
|
115
205
|
/**
|
|
@@ -5,12 +5,11 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class GetSkillRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The
|
|
9
|
-
*
|
|
10
|
-
* *
|
|
11
|
-
* *
|
|
12
|
-
* *
|
|
13
|
-
* * ja-JP: Japanese
|
|
8
|
+
* The supported languages. Valid values:
|
|
9
|
+
* * zh-CN: Simplified Chinese
|
|
10
|
+
* * zh-TW: Traditional Chinese
|
|
11
|
+
* * en-US: English
|
|
12
|
+
* * ja-JP: Japanese
|
|
14
13
|
*
|
|
15
14
|
* @example
|
|
16
15
|
* zh-CN
|
|
@@ -18,7 +17,7 @@ export class GetSkillRequest extends $dara.Model {
|
|
|
18
17
|
language?: string;
|
|
19
18
|
/**
|
|
20
19
|
* @remarks
|
|
21
|
-
* The unique identifier of the
|
|
20
|
+
* The unique identifier of the Skill.
|
|
22
21
|
*
|
|
23
22
|
* This parameter is required.
|
|
24
23
|
*
|
|
@@ -26,10 +25,19 @@ export class GetSkillRequest extends $dara.Model {
|
|
|
26
25
|
* 550e8400-e29b-41d4-a716-44665544****
|
|
27
26
|
*/
|
|
28
27
|
skillId?: string;
|
|
28
|
+
/**
|
|
29
|
+
* @remarks
|
|
30
|
+
* The ContextDB workspace ID.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* 00000000-0000-4000-8000-000000000001
|
|
34
|
+
*/
|
|
35
|
+
workspaceId?: string;
|
|
29
36
|
static names(): { [key: string]: string } {
|
|
30
37
|
return {
|
|
31
38
|
language: 'Language',
|
|
32
39
|
skillId: 'SkillId',
|
|
40
|
+
workspaceId: 'WorkspaceId',
|
|
33
41
|
};
|
|
34
42
|
}
|
|
35
43
|
|
|
@@ -37,6 +45,7 @@ export class GetSkillRequest extends $dara.Model {
|
|
|
37
45
|
return {
|
|
38
46
|
language: 'string',
|
|
39
47
|
skillId: 'string',
|
|
48
|
+
workspaceId: 'string',
|
|
40
49
|
};
|
|
41
50
|
}
|
|
42
51
|
|
|
@@ -2,18 +2,171 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
export class GetSkillResponseBodyVersions extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The activation time of the Skill version.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 2026-09-15T10:00:00Z
|
|
12
|
+
*/
|
|
13
|
+
activatedAt?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The creation time of the Skill version.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 2026-09-15T10:00:00Z
|
|
20
|
+
*/
|
|
21
|
+
createdAt?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* Indicates whether the Skill requires a credential.
|
|
25
|
+
*/
|
|
26
|
+
credentialRequired?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* @remarks
|
|
29
|
+
* The Skill version ID.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* version-example
|
|
33
|
+
*/
|
|
34
|
+
id?: string;
|
|
35
|
+
/**
|
|
36
|
+
* @remarks
|
|
37
|
+
* The Skill package size, in bytes.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* 1024
|
|
41
|
+
*/
|
|
42
|
+
packageSize?: number;
|
|
43
|
+
/**
|
|
44
|
+
* @remarks
|
|
45
|
+
* The reason for revoking the Skill version.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* Replaced by a newer version
|
|
49
|
+
*/
|
|
50
|
+
revokeReason?: string;
|
|
51
|
+
/**
|
|
52
|
+
* @remarks
|
|
53
|
+
* The revocation time of the Skill version.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* 2026-09-15T11:00:00Z
|
|
57
|
+
*/
|
|
58
|
+
revokedAt?: string;
|
|
59
|
+
/**
|
|
60
|
+
* @remarks
|
|
61
|
+
* The SHA-256 digest of the Skill package.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
|
|
65
|
+
*/
|
|
66
|
+
sha256?: string;
|
|
67
|
+
/**
|
|
68
|
+
* @remarks
|
|
69
|
+
* The ID of the Skill to which this version belongs.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* skill-example
|
|
73
|
+
*/
|
|
74
|
+
skillId?: string;
|
|
75
|
+
/**
|
|
76
|
+
* @remarks
|
|
77
|
+
* The Markdown content of the Skill.
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* # Example Skill
|
|
81
|
+
*/
|
|
82
|
+
skillMarkdown?: string;
|
|
83
|
+
/**
|
|
84
|
+
* @remarks
|
|
85
|
+
* The status of the Skill version.
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* ACTIVE
|
|
89
|
+
*/
|
|
90
|
+
status?: string;
|
|
91
|
+
/**
|
|
92
|
+
* @remarks
|
|
93
|
+
* The version number of the Skill.
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* 1.0.0
|
|
97
|
+
*/
|
|
98
|
+
version?: string;
|
|
99
|
+
static names(): { [key: string]: string } {
|
|
100
|
+
return {
|
|
101
|
+
activatedAt: 'ActivatedAt',
|
|
102
|
+
createdAt: 'CreatedAt',
|
|
103
|
+
credentialRequired: 'CredentialRequired',
|
|
104
|
+
id: 'Id',
|
|
105
|
+
packageSize: 'PackageSize',
|
|
106
|
+
revokeReason: 'RevokeReason',
|
|
107
|
+
revokedAt: 'RevokedAt',
|
|
108
|
+
sha256: 'Sha256',
|
|
109
|
+
skillId: 'SkillId',
|
|
110
|
+
skillMarkdown: 'SkillMarkdown',
|
|
111
|
+
status: 'Status',
|
|
112
|
+
version: 'Version',
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
static types(): { [key: string]: any } {
|
|
117
|
+
return {
|
|
118
|
+
activatedAt: 'string',
|
|
119
|
+
createdAt: 'string',
|
|
120
|
+
credentialRequired: 'boolean',
|
|
121
|
+
id: 'string',
|
|
122
|
+
packageSize: 'number',
|
|
123
|
+
revokeReason: 'string',
|
|
124
|
+
revokedAt: 'string',
|
|
125
|
+
sha256: 'string',
|
|
126
|
+
skillId: 'string',
|
|
127
|
+
skillMarkdown: 'string',
|
|
128
|
+
status: 'string',
|
|
129
|
+
version: 'string',
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
validate() {
|
|
134
|
+
super.validate();
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
constructor(map?: { [key: string]: any }) {
|
|
138
|
+
super(map);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
5
142
|
export class GetSkillResponseBody extends $dara.Model {
|
|
6
143
|
/**
|
|
7
144
|
* @remarks
|
|
8
|
-
* The
|
|
145
|
+
* The currently active version ID.
|
|
146
|
+
*
|
|
147
|
+
* @example
|
|
148
|
+
* version-example
|
|
149
|
+
*/
|
|
150
|
+
activeVersionId?: string;
|
|
151
|
+
/**
|
|
152
|
+
* @remarks
|
|
153
|
+
* The Skill category.
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* productivity
|
|
157
|
+
*/
|
|
158
|
+
category?: string;
|
|
159
|
+
/**
|
|
160
|
+
* @remarks
|
|
161
|
+
* The content.
|
|
9
162
|
*
|
|
10
163
|
* @example
|
|
11
|
-
* {"MySQL": "MySQL
|
|
164
|
+
* {"MySQL": "MySQL optimization guide...","PostgreSQL": "PostgreSQL optimization guide..."}
|
|
12
165
|
*/
|
|
13
166
|
content?: { [key: string]: any };
|
|
14
167
|
/**
|
|
15
168
|
* @remarks
|
|
16
|
-
* The creation time
|
|
169
|
+
* The creation time.
|
|
17
170
|
*
|
|
18
171
|
* @example
|
|
19
172
|
* 2025-06-04T02:25:43Z
|
|
@@ -21,20 +174,39 @@ export class GetSkillResponseBody extends $dara.Model {
|
|
|
21
174
|
createdAt?: string;
|
|
22
175
|
/**
|
|
23
176
|
* @remarks
|
|
24
|
-
* The list of database
|
|
177
|
+
* The list of database types.
|
|
25
178
|
*/
|
|
26
179
|
dbtypes?: string[];
|
|
27
180
|
/**
|
|
28
181
|
* @remarks
|
|
29
|
-
* The description
|
|
182
|
+
* The Skill description, up to 1000 characters.
|
|
30
183
|
*
|
|
31
184
|
* @example
|
|
32
|
-
* SQL
|
|
185
|
+
* SQL Review Expert: Comprehensively reviews SQL for security, performance, and compliance, identifies risks, and provides optimization suggestions. Activated immediately when a user submits SQL or asks about "SQL review", "SQL Review", "any risks", or "how to optimize"
|
|
33
186
|
*/
|
|
34
187
|
description?: string;
|
|
35
188
|
/**
|
|
36
189
|
* @remarks
|
|
37
|
-
* The
|
|
190
|
+
* The Skill display name.
|
|
191
|
+
*
|
|
192
|
+
* @example
|
|
193
|
+
* Example Skill
|
|
194
|
+
*/
|
|
195
|
+
displayName?: string;
|
|
196
|
+
/**
|
|
197
|
+
* @remarks
|
|
198
|
+
* The public HTTPS URL of the current icon. This value is empty if no icon is configured.
|
|
199
|
+
*
|
|
200
|
+
* @example
|
|
201
|
+
* https://example.com/skill-icon.png
|
|
202
|
+
*
|
|
203
|
+
* **if can be null:**
|
|
204
|
+
* true
|
|
205
|
+
*/
|
|
206
|
+
icon?: string;
|
|
207
|
+
/**
|
|
208
|
+
* @remarks
|
|
209
|
+
* The unique identifier of the Skill.
|
|
38
210
|
*
|
|
39
211
|
* @example
|
|
40
212
|
* d1b7d639-f34e-44c7-8231-987da14d****
|
|
@@ -42,7 +214,12 @@ export class GetSkillResponseBody extends $dara.Model {
|
|
|
42
214
|
id?: string;
|
|
43
215
|
/**
|
|
44
216
|
* @remarks
|
|
45
|
-
*
|
|
217
|
+
* Indicates whether the Skill is deleted.
|
|
218
|
+
*/
|
|
219
|
+
isDeleted?: boolean;
|
|
220
|
+
/**
|
|
221
|
+
* @remarks
|
|
222
|
+
* The Skill name. The name can contain only lowercase letters, digits, and hyphens.
|
|
46
223
|
*
|
|
47
224
|
* @example
|
|
48
225
|
* sql-optimization
|
|
@@ -50,7 +227,7 @@ export class GetSkillResponseBody extends $dara.Model {
|
|
|
50
227
|
name?: string;
|
|
51
228
|
/**
|
|
52
229
|
* @remarks
|
|
53
|
-
* The request
|
|
230
|
+
* The unique identifier of the request.
|
|
54
231
|
*
|
|
55
232
|
* @example
|
|
56
233
|
* FE9C65D7-930F-57A5-A207-8C396329****
|
|
@@ -58,7 +235,15 @@ export class GetSkillResponseBody extends $dara.Model {
|
|
|
58
235
|
requestId?: string;
|
|
59
236
|
/**
|
|
60
237
|
* @remarks
|
|
61
|
-
* The
|
|
238
|
+
* The visibility scope of the Skill.
|
|
239
|
+
*
|
|
240
|
+
* @example
|
|
241
|
+
* PRIVATE
|
|
242
|
+
*/
|
|
243
|
+
scope?: string;
|
|
244
|
+
/**
|
|
245
|
+
* @remarks
|
|
246
|
+
* The Skill type.
|
|
62
247
|
*
|
|
63
248
|
* @example
|
|
64
249
|
* user
|
|
@@ -66,37 +251,66 @@ export class GetSkillResponseBody extends $dara.Model {
|
|
|
66
251
|
skillType?: string;
|
|
67
252
|
/**
|
|
68
253
|
* @remarks
|
|
69
|
-
* The
|
|
254
|
+
* The stable identifier of a private Skill.
|
|
255
|
+
*
|
|
256
|
+
* @example
|
|
257
|
+
* example-skill
|
|
258
|
+
*/
|
|
259
|
+
slug?: string;
|
|
260
|
+
/**
|
|
261
|
+
* @remarks
|
|
262
|
+
* The update time.
|
|
70
263
|
*
|
|
71
264
|
* @example
|
|
72
265
|
* 2026-02-04T21:14:45Z
|
|
73
266
|
*/
|
|
74
267
|
updatedAt?: string;
|
|
268
|
+
/**
|
|
269
|
+
* @remarks
|
|
270
|
+
* The list of versions visible to the current principal.
|
|
271
|
+
*/
|
|
272
|
+
versions?: GetSkillResponseBodyVersions[];
|
|
75
273
|
static names(): { [key: string]: string } {
|
|
76
274
|
return {
|
|
275
|
+
activeVersionId: 'ActiveVersionId',
|
|
276
|
+
category: 'Category',
|
|
77
277
|
content: 'Content',
|
|
78
278
|
createdAt: 'CreatedAt',
|
|
79
279
|
dbtypes: 'Dbtypes',
|
|
80
280
|
description: 'Description',
|
|
281
|
+
displayName: 'DisplayName',
|
|
282
|
+
icon: 'Icon',
|
|
81
283
|
id: 'Id',
|
|
284
|
+
isDeleted: 'IsDeleted',
|
|
82
285
|
name: 'Name',
|
|
83
286
|
requestId: 'RequestId',
|
|
287
|
+
scope: 'Scope',
|
|
84
288
|
skillType: 'SkillType',
|
|
289
|
+
slug: 'Slug',
|
|
85
290
|
updatedAt: 'UpdatedAt',
|
|
291
|
+
versions: 'Versions',
|
|
86
292
|
};
|
|
87
293
|
}
|
|
88
294
|
|
|
89
295
|
static types(): { [key: string]: any } {
|
|
90
296
|
return {
|
|
297
|
+
activeVersionId: 'string',
|
|
298
|
+
category: 'string',
|
|
91
299
|
content: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
92
300
|
createdAt: 'string',
|
|
93
301
|
dbtypes: { 'type': 'array', 'itemType': 'string' },
|
|
94
302
|
description: 'string',
|
|
303
|
+
displayName: 'string',
|
|
304
|
+
icon: 'string',
|
|
95
305
|
id: 'string',
|
|
306
|
+
isDeleted: 'boolean',
|
|
96
307
|
name: 'string',
|
|
97
308
|
requestId: 'string',
|
|
309
|
+
scope: 'string',
|
|
98
310
|
skillType: 'string',
|
|
311
|
+
slug: 'string',
|
|
99
312
|
updatedAt: 'string',
|
|
313
|
+
versions: { 'type': 'array', 'itemType': GetSkillResponseBodyVersions },
|
|
100
314
|
};
|
|
101
315
|
}
|
|
102
316
|
|
|
@@ -107,6 +321,9 @@ export class GetSkillResponseBody extends $dara.Model {
|
|
|
107
321
|
if(Array.isArray(this.dbtypes)) {
|
|
108
322
|
$dara.Model.validateArray(this.dbtypes);
|
|
109
323
|
}
|
|
324
|
+
if(Array.isArray(this.versions)) {
|
|
325
|
+
$dara.Model.validateArray(this.versions);
|
|
326
|
+
}
|
|
110
327
|
super.validate();
|
|
111
328
|
}
|
|
112
329
|
|
|
@@ -5,12 +5,12 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ListSkillRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The
|
|
8
|
+
* The supported languages. Valid values:
|
|
9
9
|
*
|
|
10
|
-
* *
|
|
11
|
-
* *
|
|
12
|
-
* *
|
|
13
|
-
* *
|
|
10
|
+
* * zh-CN: Simplified Chinese
|
|
11
|
+
* * zh-TW: Traditional Chinese
|
|
12
|
+
* * en-US: English
|
|
13
|
+
* * ja-JP: Japanese
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* zh-CN
|
|
@@ -18,7 +18,7 @@ export class ListSkillRequest extends $dara.Model {
|
|
|
18
18
|
language?: string;
|
|
19
19
|
/**
|
|
20
20
|
* @remarks
|
|
21
|
-
* The page number. Pages start from
|
|
21
|
+
* The page number. Pages start from 1. Default value: 1.
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* 1
|
|
@@ -26,17 +26,26 @@ export class ListSkillRequest extends $dara.Model {
|
|
|
26
26
|
pageNumber?: number;
|
|
27
27
|
/**
|
|
28
28
|
* @remarks
|
|
29
|
-
* The number of
|
|
29
|
+
* The number of entries per page. Default value: 20. Maximum value: 100.
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
32
|
* 30
|
|
33
33
|
*/
|
|
34
34
|
pageSize?: number;
|
|
35
|
+
/**
|
|
36
|
+
* @remarks
|
|
37
|
+
* The ContextDB workspace ID.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* 00000000-0000-4000-8000-000000000001
|
|
41
|
+
*/
|
|
42
|
+
workspaceId?: string;
|
|
35
43
|
static names(): { [key: string]: string } {
|
|
36
44
|
return {
|
|
37
45
|
language: 'Language',
|
|
38
46
|
pageNumber: 'PageNumber',
|
|
39
47
|
pageSize: 'PageSize',
|
|
48
|
+
workspaceId: 'WorkspaceId',
|
|
40
49
|
};
|
|
41
50
|
}
|
|
42
51
|
|
|
@@ -45,6 +54,7 @@ export class ListSkillRequest extends $dara.Model {
|
|
|
45
54
|
language: 'string',
|
|
46
55
|
pageNumber: 'number',
|
|
47
56
|
pageSize: 'number',
|
|
57
|
+
workspaceId: 'string',
|
|
48
58
|
};
|
|
49
59
|
}
|
|
50
60
|
|