@alicloud/cms20240330 4.2.0 → 5.0.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.js +3 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateChatResponseBody.d.ts +8 -1
- package/dist/models/CreateChatResponseBody.js +13 -1
- package/dist/models/CreateChatResponseBody.js.map +1 -1
- package/dist/models/CreateDigitalEmployeeRequest.d.ts +3 -0
- package/dist/models/CreateDigitalEmployeeRequest.js +5 -0
- package/dist/models/CreateDigitalEmployeeRequest.js.map +1 -1
- package/dist/models/Evaluator.d.ts +26 -0
- package/dist/models/Evaluator.js +79 -0
- package/dist/models/Evaluator.js.map +1 -0
- package/dist/models/GetDigitalEmployeeResponseBody.d.ts +3 -0
- package/dist/models/GetDigitalEmployeeResponseBody.js +5 -0
- package/dist/models/GetDigitalEmployeeResponseBody.js.map +1 -1
- package/dist/models/GetThreadDataResponseBody.d.ts +34 -57
- package/dist/models/GetThreadDataResponseBody.js +68 -33
- package/dist/models/GetThreadDataResponseBody.js.map +1 -1
- package/dist/models/ListDigitalEmployeesRequest.d.ts +1 -0
- package/dist/models/ListDigitalEmployeesRequest.js +2 -0
- package/dist/models/ListDigitalEmployeesRequest.js.map +1 -1
- package/dist/models/ListDigitalEmployeesResponseBody.d.ts +3 -0
- package/dist/models/ListDigitalEmployeesResponseBody.js +5 -0
- package/dist/models/ListDigitalEmployeesResponseBody.js.map +1 -1
- package/dist/models/UpdateDigitalEmployeeRequest.d.ts +3 -0
- package/dist/models/UpdateDigitalEmployeeRequest.js +5 -0
- package/dist/models/UpdateDigitalEmployeeRequest.js.map +1 -1
- package/dist/models/model.d.ts +3 -1
- package/dist/models/model.js +17 -13
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +4 -0
- package/src/models/CreateChatResponseBody.ts +17 -2
- package/src/models/CreateDigitalEmployeeRequest.ts +6 -0
- package/src/models/Evaluator.ts +54 -0
- package/src/models/GetDigitalEmployeeResponseBody.ts +6 -0
- package/src/models/GetThreadDataResponseBody.ts +84 -87
- package/src/models/ListDigitalEmployeesRequest.ts +3 -0
- package/src/models/ListDigitalEmployeesResponseBody.ts +6 -0
- package/src/models/UpdateDigitalEmployeeRequest.ts +6 -0
- package/src/models/model.ts +3 -1
|
@@ -2,106 +2,103 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
export class
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
* test
|
|
14
|
-
*/
|
|
15
|
-
digitalEmployeeName?: string;
|
|
16
|
-
items?: { [key: string]: any }[];
|
|
17
|
-
/**
|
|
18
|
-
* @example
|
|
19
|
-
* 7F0000012B1B668BC3D59A7EF8A00063
|
|
20
|
-
*/
|
|
21
|
-
messageId?: string;
|
|
22
|
-
/**
|
|
23
|
-
* @example
|
|
24
|
-
* 1560138499250147
|
|
25
|
-
*/
|
|
26
|
-
ownerUid?: string;
|
|
27
|
-
/**
|
|
28
|
-
* @example
|
|
29
|
-
* xxxx
|
|
30
|
-
*/
|
|
31
|
-
parentMessageId?: string;
|
|
32
|
-
/**
|
|
33
|
-
* @example
|
|
34
|
-
* cn-qingdao
|
|
35
|
-
*/
|
|
36
|
-
region?: string;
|
|
37
|
-
/**
|
|
38
|
-
* @example
|
|
39
|
-
* user
|
|
40
|
-
*/
|
|
5
|
+
export class GetThreadDataResponseBodyDataMessages extends $dara.Model {
|
|
6
|
+
agents?: { [key: string]: any }[];
|
|
7
|
+
artifacts?: { [key: string]: any }[];
|
|
8
|
+
callId?: string;
|
|
9
|
+
contents?: { [key: string]: any }[];
|
|
10
|
+
detail?: string;
|
|
11
|
+
events?: { [key: string]: any }[];
|
|
12
|
+
parentCallId?: string;
|
|
41
13
|
role?: string;
|
|
42
|
-
|
|
43
|
-
* @example
|
|
44
|
-
* jr-c2b000da0e41b543
|
|
45
|
-
*/
|
|
46
|
-
runId?: string;
|
|
47
|
-
/**
|
|
48
|
-
* @example
|
|
49
|
-
* 98958d65-6cdb-4f40-8f46-f5e49f13c860
|
|
50
|
-
*/
|
|
51
|
-
threadId?: string;
|
|
52
|
-
/**
|
|
53
|
-
* @example
|
|
54
|
-
* 1765359068
|
|
55
|
-
*/
|
|
14
|
+
seq?: number;
|
|
56
15
|
timestamp?: string;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
*/
|
|
61
|
-
traceId?: string;
|
|
62
|
-
variables?: { [key: string]: string };
|
|
16
|
+
tools?: { [key: string]: any }[];
|
|
17
|
+
type?: string;
|
|
18
|
+
version?: string;
|
|
63
19
|
static names(): { [key: string]: string } {
|
|
64
20
|
return {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
21
|
+
agents: 'agents',
|
|
22
|
+
artifacts: 'artifacts',
|
|
23
|
+
callId: 'callId',
|
|
24
|
+
contents: 'contents',
|
|
25
|
+
detail: 'detail',
|
|
26
|
+
events: 'events',
|
|
27
|
+
parentCallId: 'parentCallId',
|
|
72
28
|
role: 'role',
|
|
73
|
-
|
|
74
|
-
threadId: 'threadId',
|
|
29
|
+
seq: 'seq',
|
|
75
30
|
timestamp: 'timestamp',
|
|
76
|
-
|
|
77
|
-
|
|
31
|
+
tools: 'tools',
|
|
32
|
+
type: 'type',
|
|
33
|
+
version: 'version',
|
|
78
34
|
};
|
|
79
35
|
}
|
|
80
36
|
|
|
81
37
|
static types(): { [key: string]: any } {
|
|
82
38
|
return {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
39
|
+
agents: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
|
|
40
|
+
artifacts: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
|
|
41
|
+
callId: 'string',
|
|
42
|
+
contents: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
|
|
43
|
+
detail: 'string',
|
|
44
|
+
events: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
|
|
45
|
+
parentCallId: 'string',
|
|
90
46
|
role: 'string',
|
|
91
|
-
|
|
92
|
-
threadId: 'string',
|
|
47
|
+
seq: 'number',
|
|
93
48
|
timestamp: 'string',
|
|
94
|
-
|
|
95
|
-
|
|
49
|
+
tools: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
|
|
50
|
+
type: 'string',
|
|
51
|
+
version: 'string',
|
|
96
52
|
};
|
|
97
53
|
}
|
|
98
54
|
|
|
99
55
|
validate() {
|
|
100
|
-
if(Array.isArray(this.
|
|
101
|
-
$dara.Model.validateArray(this.
|
|
56
|
+
if(Array.isArray(this.agents)) {
|
|
57
|
+
$dara.Model.validateArray(this.agents);
|
|
58
|
+
}
|
|
59
|
+
if(Array.isArray(this.artifacts)) {
|
|
60
|
+
$dara.Model.validateArray(this.artifacts);
|
|
102
61
|
}
|
|
103
|
-
if(this.
|
|
104
|
-
$dara.Model.
|
|
62
|
+
if(Array.isArray(this.contents)) {
|
|
63
|
+
$dara.Model.validateArray(this.contents);
|
|
64
|
+
}
|
|
65
|
+
if(Array.isArray(this.events)) {
|
|
66
|
+
$dara.Model.validateArray(this.events);
|
|
67
|
+
}
|
|
68
|
+
if(Array.isArray(this.tools)) {
|
|
69
|
+
$dara.Model.validateArray(this.tools);
|
|
70
|
+
}
|
|
71
|
+
super.validate();
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
constructor(map?: { [key: string]: any }) {
|
|
75
|
+
super(map);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export class GetThreadDataResponseBodyData extends $dara.Model {
|
|
80
|
+
messages?: GetThreadDataResponseBodyDataMessages[];
|
|
81
|
+
requestId?: string;
|
|
82
|
+
traceId?: string;
|
|
83
|
+
static names(): { [key: string]: string } {
|
|
84
|
+
return {
|
|
85
|
+
messages: 'messages',
|
|
86
|
+
requestId: 'requestId',
|
|
87
|
+
traceId: 'traceId',
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
static types(): { [key: string]: any } {
|
|
92
|
+
return {
|
|
93
|
+
messages: { 'type': 'array', 'itemType': GetThreadDataResponseBodyDataMessages },
|
|
94
|
+
requestId: 'string',
|
|
95
|
+
traceId: 'string',
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
validate() {
|
|
100
|
+
if(Array.isArray(this.messages)) {
|
|
101
|
+
$dara.Model.validateArray(this.messages);
|
|
105
102
|
}
|
|
106
103
|
super.validate();
|
|
107
104
|
}
|
|
@@ -112,6 +109,7 @@ export class GetThreadDataResponseBodyMessages extends $dara.Model {
|
|
|
112
109
|
}
|
|
113
110
|
|
|
114
111
|
export class GetThreadDataResponseBody extends $dara.Model {
|
|
112
|
+
data?: GetThreadDataResponseBodyData[];
|
|
115
113
|
/**
|
|
116
114
|
* @example
|
|
117
115
|
* test
|
|
@@ -122,7 +120,6 @@ export class GetThreadDataResponseBody extends $dara.Model {
|
|
|
122
120
|
* 2
|
|
123
121
|
*/
|
|
124
122
|
maxResults?: number;
|
|
125
|
-
messages?: GetThreadDataResponseBodyMessages[];
|
|
126
123
|
/**
|
|
127
124
|
* @example
|
|
128
125
|
* xxxxxxxxx
|
|
@@ -143,9 +140,9 @@ export class GetThreadDataResponseBody extends $dara.Model {
|
|
|
143
140
|
threadId?: string;
|
|
144
141
|
static names(): { [key: string]: string } {
|
|
145
142
|
return {
|
|
143
|
+
data: 'data',
|
|
146
144
|
digitalEmployeeName: 'digitalEmployeeName',
|
|
147
145
|
maxResults: 'maxResults',
|
|
148
|
-
messages: 'messages',
|
|
149
146
|
nextToken: 'nextToken',
|
|
150
147
|
requestId: 'requestId',
|
|
151
148
|
threadId: 'threadId',
|
|
@@ -154,9 +151,9 @@ export class GetThreadDataResponseBody extends $dara.Model {
|
|
|
154
151
|
|
|
155
152
|
static types(): { [key: string]: any } {
|
|
156
153
|
return {
|
|
154
|
+
data: { 'type': 'array', 'itemType': GetThreadDataResponseBodyData },
|
|
157
155
|
digitalEmployeeName: 'string',
|
|
158
156
|
maxResults: 'number',
|
|
159
|
-
messages: { 'type': 'array', 'itemType': GetThreadDataResponseBodyMessages },
|
|
160
157
|
nextToken: 'string',
|
|
161
158
|
requestId: 'string',
|
|
162
159
|
threadId: 'string',
|
|
@@ -164,8 +161,8 @@ export class GetThreadDataResponseBody extends $dara.Model {
|
|
|
164
161
|
}
|
|
165
162
|
|
|
166
163
|
validate() {
|
|
167
|
-
if(Array.isArray(this.
|
|
168
|
-
$dara.Model.validateArray(this.
|
|
164
|
+
if(Array.isArray(this.data)) {
|
|
165
|
+
$dara.Model.validateArray(this.data);
|
|
169
166
|
}
|
|
170
167
|
super.validate();
|
|
171
168
|
}
|
|
@@ -3,6 +3,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class ListDigitalEmployeesRequest extends $dara.Model {
|
|
6
|
+
displayName?: string;
|
|
6
7
|
employeeType?: string;
|
|
7
8
|
/**
|
|
8
9
|
* @example
|
|
@@ -21,6 +22,7 @@ export class ListDigitalEmployeesRequest extends $dara.Model {
|
|
|
21
22
|
nextToken?: string;
|
|
22
23
|
static names(): { [key: string]: string } {
|
|
23
24
|
return {
|
|
25
|
+
displayName: 'displayName',
|
|
24
26
|
employeeType: 'employeeType',
|
|
25
27
|
maxResults: 'maxResults',
|
|
26
28
|
name: 'name',
|
|
@@ -30,6 +32,7 @@ export class ListDigitalEmployeesRequest extends $dara.Model {
|
|
|
30
32
|
|
|
31
33
|
static types(): { [key: string]: any } {
|
|
32
34
|
return {
|
|
35
|
+
displayName: 'string',
|
|
33
36
|
employeeType: 'string',
|
|
34
37
|
maxResults: 'number',
|
|
35
38
|
name: 'string',
|
|
@@ -52,15 +52,18 @@ export class ListDigitalEmployeesResponseBodyDigitalEmployeesKnowledgesBailian e
|
|
|
52
52
|
|
|
53
53
|
export class ListDigitalEmployeesResponseBodyDigitalEmployeesKnowledges extends $dara.Model {
|
|
54
54
|
bailian?: ListDigitalEmployeesResponseBodyDigitalEmployeesKnowledgesBailian[];
|
|
55
|
+
sop?: { [key: string]: any }[];
|
|
55
56
|
static names(): { [key: string]: string } {
|
|
56
57
|
return {
|
|
57
58
|
bailian: 'bailian',
|
|
59
|
+
sop: 'sop',
|
|
58
60
|
};
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
static types(): { [key: string]: any } {
|
|
62
64
|
return {
|
|
63
65
|
bailian: { 'type': 'array', 'itemType': ListDigitalEmployeesResponseBodyDigitalEmployeesKnowledgesBailian },
|
|
66
|
+
sop: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
|
|
64
67
|
};
|
|
65
68
|
}
|
|
66
69
|
|
|
@@ -68,6 +71,9 @@ export class ListDigitalEmployeesResponseBodyDigitalEmployeesKnowledges extends
|
|
|
68
71
|
if(Array.isArray(this.bailian)) {
|
|
69
72
|
$dara.Model.validateArray(this.bailian);
|
|
70
73
|
}
|
|
74
|
+
if(Array.isArray(this.sop)) {
|
|
75
|
+
$dara.Model.validateArray(this.sop);
|
|
76
|
+
}
|
|
71
77
|
super.validate();
|
|
72
78
|
}
|
|
73
79
|
|
|
@@ -52,15 +52,18 @@ export class UpdateDigitalEmployeeRequestKnowledgesBailian extends $dara.Model {
|
|
|
52
52
|
|
|
53
53
|
export class UpdateDigitalEmployeeRequestKnowledges extends $dara.Model {
|
|
54
54
|
bailian?: UpdateDigitalEmployeeRequestKnowledgesBailian[];
|
|
55
|
+
sop?: { [key: string]: any }[];
|
|
55
56
|
static names(): { [key: string]: string } {
|
|
56
57
|
return {
|
|
57
58
|
bailian: 'bailian',
|
|
59
|
+
sop: 'sop',
|
|
58
60
|
};
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
static types(): { [key: string]: any } {
|
|
62
64
|
return {
|
|
63
65
|
bailian: { 'type': 'array', 'itemType': UpdateDigitalEmployeeRequestKnowledgesBailian },
|
|
66
|
+
sop: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
|
|
64
67
|
};
|
|
65
68
|
}
|
|
66
69
|
|
|
@@ -68,6 +71,9 @@ export class UpdateDigitalEmployeeRequestKnowledges extends $dara.Model {
|
|
|
68
71
|
if(Array.isArray(this.bailian)) {
|
|
69
72
|
$dara.Model.validateArray(this.bailian);
|
|
70
73
|
}
|
|
74
|
+
if(Array.isArray(this.sop)) {
|
|
75
|
+
$dara.Model.validateArray(this.sop);
|
|
76
|
+
}
|
|
71
77
|
super.validate();
|
|
72
78
|
}
|
|
73
79
|
|
package/src/models/model.ts
CHANGED
|
@@ -116,7 +116,8 @@ export { GetServiceResponseBodyServiceTags } from './GetServiceResponseBody';
|
|
|
116
116
|
export { GetServiceResponseBodyService } from './GetServiceResponseBody';
|
|
117
117
|
export { GetServiceObservabilityResponseBodyEntryPointInfo } from './GetServiceObservabilityResponseBody';
|
|
118
118
|
export { GetThreadResponseBodyVariables } from './GetThreadResponseBody';
|
|
119
|
-
export {
|
|
119
|
+
export { GetThreadDataResponseBodyDataMessages } from './GetThreadDataResponseBody';
|
|
120
|
+
export { GetThreadDataResponseBodyData } from './GetThreadDataResponseBody';
|
|
120
121
|
export { GetUmodelResponseBodyCommonSchemaRef } from './GetUmodelResponseBody';
|
|
121
122
|
export { GetUmodelCommonSchemaRefResponseBodyCommonSchemaRef } from './GetUmodelCommonSchemaRefResponseBody';
|
|
122
123
|
export { GetUmodelDataResponseBodyErrors } from './GetUmodelDataResponseBody';
|
|
@@ -226,6 +227,7 @@ export { DataStorageItem } from './DataStorageItem';
|
|
|
226
227
|
export { EffectTimeRange } from './EffectTimeRange';
|
|
227
228
|
export { EntityDiscoverRule } from './EntityDiscoverRule';
|
|
228
229
|
export { EntityGroupBase } from './EntityGroupBase';
|
|
230
|
+
export { Evaluator } from './Evaluator';
|
|
229
231
|
export { EventResourceForEventView } from './EventResourceForEventView';
|
|
230
232
|
export { EventResourceForIncidentView } from './EventResourceForIncidentView';
|
|
231
233
|
export { FilterSetting } from './FilterSetting';
|