@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.
Files changed (97) hide show
  1. package/dist/client.d.ts +72 -0
  2. package/dist/client.js +223 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateAlertWebhookRequest.d.ts +56 -0
  5. package/dist/models/CreateAlertWebhookRequest.js +73 -0
  6. package/dist/models/CreateAlertWebhookRequest.js.map +1 -0
  7. package/dist/models/CreateAlertWebhookResponse.d.ts +19 -0
  8. package/dist/models/CreateAlertWebhookResponse.js +69 -0
  9. package/dist/models/CreateAlertWebhookResponse.js.map +1 -0
  10. package/dist/models/CreateAlertWebhookResponseBody.d.ts +23 -0
  11. package/dist/models/CreateAlertWebhookResponseBody.js +60 -0
  12. package/dist/models/CreateAlertWebhookResponseBody.js.map +1 -0
  13. package/dist/models/CreateChatResponseBody.d.ts +8 -1
  14. package/dist/models/CreateChatResponseBody.js +13 -1
  15. package/dist/models/CreateChatResponseBody.js.map +1 -1
  16. package/dist/models/CreateDigitalEmployeeRequest.d.ts +3 -0
  17. package/dist/models/CreateDigitalEmployeeRequest.js +5 -0
  18. package/dist/models/CreateDigitalEmployeeRequest.js.map +1 -1
  19. package/dist/models/DeleteAlertWebhooksRequest.d.ts +18 -0
  20. package/dist/models/DeleteAlertWebhooksRequest.js +61 -0
  21. package/dist/models/DeleteAlertWebhooksRequest.js.map +1 -0
  22. package/dist/models/DeleteAlertWebhooksResponse.d.ts +19 -0
  23. package/dist/models/DeleteAlertWebhooksResponse.js +69 -0
  24. package/dist/models/DeleteAlertWebhooksResponse.js.map +1 -0
  25. package/dist/models/DeleteAlertWebhooksResponseBody.d.ts +18 -0
  26. package/dist/models/DeleteAlertWebhooksResponseBody.js +58 -0
  27. package/dist/models/DeleteAlertWebhooksResponseBody.js.map +1 -0
  28. package/dist/models/DeleteAlertWebhooksShrinkRequest.d.ts +18 -0
  29. package/dist/models/DeleteAlertWebhooksShrinkRequest.js +58 -0
  30. package/dist/models/DeleteAlertWebhooksShrinkRequest.js.map +1 -0
  31. package/dist/models/Evaluator.d.ts +26 -0
  32. package/dist/models/Evaluator.js +79 -0
  33. package/dist/models/Evaluator.js.map +1 -0
  34. package/dist/models/GetDigitalEmployeeResponseBody.d.ts +3 -0
  35. package/dist/models/GetDigitalEmployeeResponseBody.js +5 -0
  36. package/dist/models/GetDigitalEmployeeResponseBody.js.map +1 -1
  37. package/dist/models/GetThreadDataResponseBody.d.ts +34 -57
  38. package/dist/models/GetThreadDataResponseBody.js +68 -33
  39. package/dist/models/GetThreadDataResponseBody.js.map +1 -1
  40. package/dist/models/ListAlertWebhooksRequest.d.ts +29 -0
  41. package/dist/models/ListAlertWebhooksRequest.js +67 -0
  42. package/dist/models/ListAlertWebhooksRequest.js.map +1 -0
  43. package/dist/models/ListAlertWebhooksResponse.d.ts +19 -0
  44. package/dist/models/ListAlertWebhooksResponse.js +69 -0
  45. package/dist/models/ListAlertWebhooksResponse.js.map +1 -0
  46. package/dist/models/ListAlertWebhooksResponseBody.d.ts +90 -0
  47. package/dist/models/ListAlertWebhooksResponseBody.js +103 -0
  48. package/dist/models/ListAlertWebhooksResponseBody.js.map +1 -0
  49. package/dist/models/ListAlertWebhooksShrinkRequest.d.ts +29 -0
  50. package/dist/models/ListAlertWebhooksShrinkRequest.js +64 -0
  51. package/dist/models/ListAlertWebhooksShrinkRequest.js.map +1 -0
  52. package/dist/models/ListDigitalEmployeesRequest.d.ts +1 -0
  53. package/dist/models/ListDigitalEmployeesRequest.js +2 -0
  54. package/dist/models/ListDigitalEmployeesRequest.js.map +1 -1
  55. package/dist/models/ListDigitalEmployeesResponseBody.d.ts +3 -0
  56. package/dist/models/ListDigitalEmployeesResponseBody.js +5 -0
  57. package/dist/models/ListDigitalEmployeesResponseBody.js.map +1 -1
  58. package/dist/models/UpdateAlertWebhookRequest.d.ts +45 -0
  59. package/dist/models/UpdateAlertWebhookRequest.js +71 -0
  60. package/dist/models/UpdateAlertWebhookRequest.js.map +1 -0
  61. package/dist/models/UpdateAlertWebhookResponse.d.ts +19 -0
  62. package/dist/models/UpdateAlertWebhookResponse.js +69 -0
  63. package/dist/models/UpdateAlertWebhookResponse.js.map +1 -0
  64. package/dist/models/UpdateAlertWebhookResponseBody.d.ts +18 -0
  65. package/dist/models/UpdateAlertWebhookResponseBody.js +58 -0
  66. package/dist/models/UpdateAlertWebhookResponseBody.js.map +1 -0
  67. package/dist/models/UpdateDigitalEmployeeRequest.d.ts +3 -0
  68. package/dist/models/UpdateDigitalEmployeeRequest.js +5 -0
  69. package/dist/models/UpdateDigitalEmployeeRequest.js.map +1 -1
  70. package/dist/models/model.d.ts +18 -1
  71. package/dist/models/model.js +47 -13
  72. package/dist/models/model.js.map +1 -1
  73. package/package.json +1 -1
  74. package/src/client.ts +252 -0
  75. package/src/models/CreateAlertWebhookRequest.ts +82 -0
  76. package/src/models/CreateAlertWebhookResponse.ts +40 -0
  77. package/src/models/CreateAlertWebhookResponseBody.ts +38 -0
  78. package/src/models/CreateChatResponseBody.ts +17 -2
  79. package/src/models/CreateDigitalEmployeeRequest.ts +6 -0
  80. package/src/models/DeleteAlertWebhooksRequest.ts +34 -0
  81. package/src/models/DeleteAlertWebhooksResponse.ts +40 -0
  82. package/src/models/DeleteAlertWebhooksResponseBody.ts +31 -0
  83. package/src/models/DeleteAlertWebhooksShrinkRequest.ts +31 -0
  84. package/src/models/Evaluator.ts +54 -0
  85. package/src/models/GetDigitalEmployeeResponseBody.ts +6 -0
  86. package/src/models/GetThreadDataResponseBody.ts +84 -87
  87. package/src/models/ListAlertWebhooksRequest.ts +51 -0
  88. package/src/models/ListAlertWebhooksResponse.ts +40 -0
  89. package/src/models/ListAlertWebhooksResponseBody.ts +137 -0
  90. package/src/models/ListAlertWebhooksShrinkRequest.ts +48 -0
  91. package/src/models/ListDigitalEmployeesRequest.ts +3 -0
  92. package/src/models/ListDigitalEmployeesResponseBody.ts +6 -0
  93. package/src/models/UpdateAlertWebhookRequest.ts +69 -0
  94. package/src/models/UpdateAlertWebhookResponse.ts +40 -0
  95. package/src/models/UpdateAlertWebhookResponseBody.ts +31 -0
  96. package/src/models/UpdateDigitalEmployeeRequest.ts +6 -0
  97. 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 GetThreadDataResponseBodyMessages extends $dara.Model {
6
- /**
7
- * @example
8
- * 205190712643664705
9
- */
10
- callerUid?: string;
11
- /**
12
- * @example
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
- * @example
59
- * 3b5287ba17572104610774286d0096
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
- callerUid: 'callerUid',
66
- digitalEmployeeName: 'digitalEmployeeName',
67
- items: 'items',
68
- messageId: 'messageId',
69
- ownerUid: 'ownerUid',
70
- parentMessageId: 'parentMessageId',
71
- region: 'region',
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
- runId: 'runId',
74
- threadId: 'threadId',
29
+ seq: 'seq',
75
30
  timestamp: 'timestamp',
76
- traceId: 'traceId',
77
- variables: 'variables',
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
- callerUid: 'string',
84
- digitalEmployeeName: 'string',
85
- items: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
86
- messageId: 'string',
87
- ownerUid: 'string',
88
- parentMessageId: 'string',
89
- region: 'string',
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
- runId: 'string',
92
- threadId: 'string',
47
+ seq: 'number',
93
48
  timestamp: 'string',
94
- traceId: 'string',
95
- variables: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
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.items)) {
101
- $dara.Model.validateArray(this.items);
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.variables) {
104
- $dara.Model.validateMap(this.variables);
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.messages)) {
168
- $dara.Model.validateArray(this.messages);
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
+