@alicloud/cms20240330 4.2.0 → 5.1.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 +72 -0
- package/dist/client.js +223 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateAlertWebhookRequest.d.ts +56 -0
- package/dist/models/CreateAlertWebhookRequest.js +73 -0
- package/dist/models/CreateAlertWebhookRequest.js.map +1 -0
- package/dist/models/CreateAlertWebhookResponse.d.ts +19 -0
- package/dist/models/CreateAlertWebhookResponse.js +69 -0
- package/dist/models/CreateAlertWebhookResponse.js.map +1 -0
- package/dist/models/CreateAlertWebhookResponseBody.d.ts +23 -0
- package/dist/models/CreateAlertWebhookResponseBody.js +60 -0
- package/dist/models/CreateAlertWebhookResponseBody.js.map +1 -0
- 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/DeleteAlertWebhooksRequest.d.ts +18 -0
- package/dist/models/DeleteAlertWebhooksRequest.js +61 -0
- package/dist/models/DeleteAlertWebhooksRequest.js.map +1 -0
- package/dist/models/DeleteAlertWebhooksResponse.d.ts +19 -0
- package/dist/models/DeleteAlertWebhooksResponse.js +69 -0
- package/dist/models/DeleteAlertWebhooksResponse.js.map +1 -0
- package/dist/models/DeleteAlertWebhooksResponseBody.d.ts +18 -0
- package/dist/models/DeleteAlertWebhooksResponseBody.js +58 -0
- package/dist/models/DeleteAlertWebhooksResponseBody.js.map +1 -0
- package/dist/models/DeleteAlertWebhooksShrinkRequest.d.ts +18 -0
- package/dist/models/DeleteAlertWebhooksShrinkRequest.js +58 -0
- package/dist/models/DeleteAlertWebhooksShrinkRequest.js.map +1 -0
- 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/ListAlertWebhooksRequest.d.ts +29 -0
- package/dist/models/ListAlertWebhooksRequest.js +67 -0
- package/dist/models/ListAlertWebhooksRequest.js.map +1 -0
- package/dist/models/ListAlertWebhooksResponse.d.ts +19 -0
- package/dist/models/ListAlertWebhooksResponse.js +69 -0
- package/dist/models/ListAlertWebhooksResponse.js.map +1 -0
- package/dist/models/ListAlertWebhooksResponseBody.d.ts +90 -0
- package/dist/models/ListAlertWebhooksResponseBody.js +103 -0
- package/dist/models/ListAlertWebhooksResponseBody.js.map +1 -0
- package/dist/models/ListAlertWebhooksShrinkRequest.d.ts +29 -0
- package/dist/models/ListAlertWebhooksShrinkRequest.js +64 -0
- package/dist/models/ListAlertWebhooksShrinkRequest.js.map +1 -0
- 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/UpdateAlertWebhookRequest.d.ts +45 -0
- package/dist/models/UpdateAlertWebhookRequest.js +71 -0
- package/dist/models/UpdateAlertWebhookRequest.js.map +1 -0
- package/dist/models/UpdateAlertWebhookResponse.d.ts +19 -0
- package/dist/models/UpdateAlertWebhookResponse.js +69 -0
- package/dist/models/UpdateAlertWebhookResponse.js.map +1 -0
- package/dist/models/UpdateAlertWebhookResponseBody.d.ts +18 -0
- package/dist/models/UpdateAlertWebhookResponseBody.js +58 -0
- package/dist/models/UpdateAlertWebhookResponseBody.js.map +1 -0
- 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 +18 -1
- package/dist/models/model.js +47 -13
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +252 -0
- package/src/models/CreateAlertWebhookRequest.ts +82 -0
- package/src/models/CreateAlertWebhookResponse.ts +40 -0
- package/src/models/CreateAlertWebhookResponseBody.ts +38 -0
- package/src/models/CreateChatResponseBody.ts +17 -2
- package/src/models/CreateDigitalEmployeeRequest.ts +6 -0
- package/src/models/DeleteAlertWebhooksRequest.ts +34 -0
- package/src/models/DeleteAlertWebhooksResponse.ts +40 -0
- package/src/models/DeleteAlertWebhooksResponseBody.ts +31 -0
- package/src/models/DeleteAlertWebhooksShrinkRequest.ts +31 -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/ListAlertWebhooksRequest.ts +51 -0
- package/src/models/ListAlertWebhooksResponse.ts +40 -0
- package/src/models/ListAlertWebhooksResponseBody.ts +137 -0
- package/src/models/ListAlertWebhooksShrinkRequest.ts +48 -0
- package/src/models/ListDigitalEmployeesRequest.ts +3 -0
- package/src/models/ListDigitalEmployeesResponseBody.ts +6 -0
- package/src/models/UpdateAlertWebhookRequest.ts +69 -0
- package/src/models/UpdateAlertWebhookResponse.ts +40 -0
- package/src/models/UpdateAlertWebhookResponseBody.ts +31 -0
- package/src/models/UpdateDigitalEmployeeRequest.ts +6 -0
- package/src/models/model.ts +18 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DeleteAlertWebhooksRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*/
|
|
10
|
+
webhookIds?: string[];
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
webhookIds: 'webhookIds',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
webhookIds: { 'type': 'array', 'itemType': 'string' },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
validate() {
|
|
24
|
+
if(Array.isArray(this.webhookIds)) {
|
|
25
|
+
$dara.Model.validateArray(this.webhookIds);
|
|
26
|
+
}
|
|
27
|
+
super.validate();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
constructor(map?: { [key: string]: any }) {
|
|
31
|
+
super(map);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DeleteAlertWebhooksResponseBody } from "./DeleteAlertWebhooksResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DeleteAlertWebhooksResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DeleteAlertWebhooksResponseBody;
|
|
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: DeleteAlertWebhooksResponseBody,
|
|
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,31 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DeleteAlertWebhooksResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* E5B1D3D4-BB28-5996-8AD2-***********
|
|
9
|
+
*/
|
|
10
|
+
requestId?: string;
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
requestId: 'requestId',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
requestId: 'string',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
validate() {
|
|
24
|
+
super.validate();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
constructor(map?: { [key: string]: any }) {
|
|
28
|
+
super(map);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DeleteAlertWebhooksShrinkRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*/
|
|
10
|
+
webhookIdsShrink?: string;
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
webhookIdsShrink: 'webhookIds',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
webhookIdsShrink: 'string',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
validate() {
|
|
24
|
+
super.validate();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
constructor(map?: { [key: string]: any }) {
|
|
28
|
+
super(map);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class Evaluator extends $dara.Model {
|
|
6
|
+
config?: { [key: string]: any };
|
|
7
|
+
dataScope?: string;
|
|
8
|
+
filters?: { [key: string]: string };
|
|
9
|
+
name?: string;
|
|
10
|
+
resultName?: string;
|
|
11
|
+
resultType?: string;
|
|
12
|
+
variableMapping?: { [key: string]: string };
|
|
13
|
+
static names(): { [key: string]: string } {
|
|
14
|
+
return {
|
|
15
|
+
config: 'config',
|
|
16
|
+
dataScope: 'dataScope',
|
|
17
|
+
filters: 'filters',
|
|
18
|
+
name: 'name',
|
|
19
|
+
resultName: 'resultName',
|
|
20
|
+
resultType: 'resultType',
|
|
21
|
+
variableMapping: 'variableMapping',
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
static types(): { [key: string]: any } {
|
|
26
|
+
return {
|
|
27
|
+
config: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
28
|
+
dataScope: 'string',
|
|
29
|
+
filters: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
30
|
+
name: 'string',
|
|
31
|
+
resultName: 'string',
|
|
32
|
+
resultType: 'string',
|
|
33
|
+
variableMapping: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
validate() {
|
|
38
|
+
if(this.config) {
|
|
39
|
+
$dara.Model.validateMap(this.config);
|
|
40
|
+
}
|
|
41
|
+
if(this.filters) {
|
|
42
|
+
$dara.Model.validateMap(this.filters);
|
|
43
|
+
}
|
|
44
|
+
if(this.variableMapping) {
|
|
45
|
+
$dara.Model.validateMap(this.variableMapping);
|
|
46
|
+
}
|
|
47
|
+
super.validate();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
constructor(map?: { [key: string]: any }) {
|
|
51
|
+
super(map);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -52,15 +52,18 @@ export class GetDigitalEmployeeResponseBodyKnowledgesBailian extends $dara.Model
|
|
|
52
52
|
|
|
53
53
|
export class GetDigitalEmployeeResponseBodyKnowledges extends $dara.Model {
|
|
54
54
|
bailian?: GetDigitalEmployeeResponseBodyKnowledgesBailian[];
|
|
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': GetDigitalEmployeeResponseBodyKnowledgesBailian },
|
|
66
|
+
sop: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
|
|
64
67
|
};
|
|
65
68
|
}
|
|
66
69
|
|
|
@@ -68,6 +71,9 @@ export class GetDigitalEmployeeResponseBodyKnowledges 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
|
|
|
@@ -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
|
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListAlertWebhooksRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* test
|
|
9
|
+
*/
|
|
10
|
+
name?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 1
|
|
14
|
+
*/
|
|
15
|
+
pageNumber?: number;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* 10
|
|
19
|
+
*/
|
|
20
|
+
pageSize?: number;
|
|
21
|
+
webhookIds?: string[];
|
|
22
|
+
static names(): { [key: string]: string } {
|
|
23
|
+
return {
|
|
24
|
+
name: 'name',
|
|
25
|
+
pageNumber: 'pageNumber',
|
|
26
|
+
pageSize: 'pageSize',
|
|
27
|
+
webhookIds: 'webhookIds',
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
static types(): { [key: string]: any } {
|
|
32
|
+
return {
|
|
33
|
+
name: 'string',
|
|
34
|
+
pageNumber: 'number',
|
|
35
|
+
pageSize: 'number',
|
|
36
|
+
webhookIds: { 'type': 'array', 'itemType': 'string' },
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
validate() {
|
|
41
|
+
if(Array.isArray(this.webhookIds)) {
|
|
42
|
+
$dara.Model.validateArray(this.webhookIds);
|
|
43
|
+
}
|
|
44
|
+
super.validate();
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
constructor(map?: { [key: string]: any }) {
|
|
48
|
+
super(map);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ListAlertWebhooksResponseBody } from "./ListAlertWebhooksResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ListAlertWebhooksResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ListAlertWebhooksResponseBody;
|
|
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: ListAlertWebhooksResponseBody,
|
|
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,137 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListAlertWebhooksResponseBodyWebhooks extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* JSON
|
|
9
|
+
*/
|
|
10
|
+
contentType?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* headers
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* key
|
|
17
|
+
*/
|
|
18
|
+
headers?: { [key: string]: any };
|
|
19
|
+
/**
|
|
20
|
+
* @example
|
|
21
|
+
* zh_CN
|
|
22
|
+
*/
|
|
23
|
+
lang?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @example
|
|
26
|
+
* GET
|
|
27
|
+
*/
|
|
28
|
+
method?: string;
|
|
29
|
+
/**
|
|
30
|
+
* @example
|
|
31
|
+
* test
|
|
32
|
+
*/
|
|
33
|
+
name?: string;
|
|
34
|
+
/**
|
|
35
|
+
* @example
|
|
36
|
+
* http://aliyun.com/test
|
|
37
|
+
*/
|
|
38
|
+
url?: string;
|
|
39
|
+
/**
|
|
40
|
+
* @example
|
|
41
|
+
* test
|
|
42
|
+
*/
|
|
43
|
+
webhookId?: string;
|
|
44
|
+
static names(): { [key: string]: string } {
|
|
45
|
+
return {
|
|
46
|
+
contentType: 'contentType',
|
|
47
|
+
headers: 'headers',
|
|
48
|
+
lang: 'lang',
|
|
49
|
+
method: 'method',
|
|
50
|
+
name: 'name',
|
|
51
|
+
url: 'url',
|
|
52
|
+
webhookId: 'webhookId',
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
static types(): { [key: string]: any } {
|
|
57
|
+
return {
|
|
58
|
+
contentType: 'string',
|
|
59
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
60
|
+
lang: 'string',
|
|
61
|
+
method: 'string',
|
|
62
|
+
name: 'string',
|
|
63
|
+
url: 'string',
|
|
64
|
+
webhookId: 'string',
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
validate() {
|
|
69
|
+
if(this.headers) {
|
|
70
|
+
$dara.Model.validateMap(this.headers);
|
|
71
|
+
}
|
|
72
|
+
super.validate();
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
constructor(map?: { [key: string]: any }) {
|
|
76
|
+
super(map);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export class ListAlertWebhooksResponseBody extends $dara.Model {
|
|
81
|
+
/**
|
|
82
|
+
* @example
|
|
83
|
+
* 1
|
|
84
|
+
*/
|
|
85
|
+
pageNumber?: number;
|
|
86
|
+
/**
|
|
87
|
+
* @example
|
|
88
|
+
* 10
|
|
89
|
+
*/
|
|
90
|
+
pageSize?: number;
|
|
91
|
+
/**
|
|
92
|
+
* @example
|
|
93
|
+
* 8A33DBEA-*****-*****-*****-*****
|
|
94
|
+
*/
|
|
95
|
+
requestId?: string;
|
|
96
|
+
/**
|
|
97
|
+
* @example
|
|
98
|
+
* 8
|
|
99
|
+
*/
|
|
100
|
+
total?: number;
|
|
101
|
+
/**
|
|
102
|
+
* @remarks
|
|
103
|
+
* webhooks
|
|
104
|
+
*/
|
|
105
|
+
webhooks?: ListAlertWebhooksResponseBodyWebhooks[];
|
|
106
|
+
static names(): { [key: string]: string } {
|
|
107
|
+
return {
|
|
108
|
+
pageNumber: 'pageNumber',
|
|
109
|
+
pageSize: 'pageSize',
|
|
110
|
+
requestId: 'requestId',
|
|
111
|
+
total: 'total',
|
|
112
|
+
webhooks: 'webhooks',
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
static types(): { [key: string]: any } {
|
|
117
|
+
return {
|
|
118
|
+
pageNumber: 'number',
|
|
119
|
+
pageSize: 'number',
|
|
120
|
+
requestId: 'string',
|
|
121
|
+
total: 'number',
|
|
122
|
+
webhooks: { 'type': 'array', 'itemType': ListAlertWebhooksResponseBodyWebhooks },
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
validate() {
|
|
127
|
+
if(Array.isArray(this.webhooks)) {
|
|
128
|
+
$dara.Model.validateArray(this.webhooks);
|
|
129
|
+
}
|
|
130
|
+
super.validate();
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
constructor(map?: { [key: string]: any }) {
|
|
134
|
+
super(map);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|