@alicloud/cms20240330 7.0.2 → 7.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 (57) hide show
  1. package/dist/client.d.ts +54 -0
  2. package/dist/client.js +195 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/ListAlertRobotsRequest.d.ts +31 -0
  5. package/dist/models/ListAlertRobotsRequest.js +74 -0
  6. package/dist/models/ListAlertRobotsRequest.js.map +1 -0
  7. package/dist/models/ListAlertRobotsResponse.d.ts +19 -0
  8. package/dist/models/ListAlertRobotsResponse.js +69 -0
  9. package/dist/models/ListAlertRobotsResponse.js.map +1 -0
  10. package/dist/models/ListAlertRobotsResponseBody.d.ts +76 -0
  11. package/dist/models/ListAlertRobotsResponseBody.js +100 -0
  12. package/dist/models/ListAlertRobotsResponseBody.js.map +1 -0
  13. package/dist/models/ListAlertRobotsShrinkRequest.d.ts +31 -0
  14. package/dist/models/ListAlertRobotsShrinkRequest.js +68 -0
  15. package/dist/models/ListAlertRobotsShrinkRequest.js.map +1 -0
  16. package/dist/models/ListContactGroupsRequest.d.ts +30 -0
  17. package/dist/models/ListContactGroupsRequest.js +69 -0
  18. package/dist/models/ListContactGroupsRequest.js.map +1 -0
  19. package/dist/models/ListContactGroupsResponse.d.ts +19 -0
  20. package/dist/models/ListContactGroupsResponse.js +69 -0
  21. package/dist/models/ListContactGroupsResponse.js.map +1 -0
  22. package/dist/models/ListContactGroupsResponseBody.d.ts +61 -0
  23. package/dist/models/ListContactGroupsResponseBody.js +97 -0
  24. package/dist/models/ListContactGroupsResponseBody.js.map +1 -0
  25. package/dist/models/ListContactGroupsShrinkRequest.d.ts +30 -0
  26. package/dist/models/ListContactGroupsShrinkRequest.js +66 -0
  27. package/dist/models/ListContactGroupsShrinkRequest.js.map +1 -0
  28. package/dist/models/ListContactsRequest.d.ts +46 -0
  29. package/dist/models/ListContactsRequest.js +77 -0
  30. package/dist/models/ListContactsRequest.js.map +1 -0
  31. package/dist/models/ListContactsResponse.d.ts +19 -0
  32. package/dist/models/ListContactsResponse.js +69 -0
  33. package/dist/models/ListContactsResponse.js.map +1 -0
  34. package/dist/models/ListContactsResponseBody.d.ts +94 -0
  35. package/dist/models/ListContactsResponseBody.js +114 -0
  36. package/dist/models/ListContactsResponseBody.js.map +1 -0
  37. package/dist/models/ListContactsShrinkRequest.d.ts +46 -0
  38. package/dist/models/ListContactsShrinkRequest.js +74 -0
  39. package/dist/models/ListContactsShrinkRequest.js.map +1 -0
  40. package/dist/models/model.d.ts +15 -0
  41. package/dist/models/model.js +43 -13
  42. package/dist/models/model.js.map +1 -1
  43. package/package.json +1 -1
  44. package/src/client.ts +225 -0
  45. package/src/models/ListAlertRobotsRequest.ts +60 -0
  46. package/src/models/ListAlertRobotsResponse.ts +40 -0
  47. package/src/models/ListAlertRobotsResponseBody.ts +122 -0
  48. package/src/models/ListAlertRobotsShrinkRequest.ts +54 -0
  49. package/src/models/ListContactGroupsRequest.ts +54 -0
  50. package/src/models/ListContactGroupsResponse.ts +40 -0
  51. package/src/models/ListContactGroupsResponseBody.ts +104 -0
  52. package/src/models/ListContactGroupsShrinkRequest.ts +51 -0
  53. package/src/models/ListContactsRequest.ts +78 -0
  54. package/src/models/ListContactsResponse.ts +40 -0
  55. package/src/models/ListContactsResponseBody.ts +152 -0
  56. package/src/models/ListContactsShrinkRequest.ts +75 -0
  57. package/src/models/model.ts +15 -0
@@ -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 ListContactGroupsRequest extends $dara.Model {
6
+ contactGroupIds?: string[];
7
+ /**
8
+ * @example
9
+ * test
10
+ */
11
+ name?: string;
12
+ /**
13
+ * @example
14
+ * 1
15
+ */
16
+ pageNumber?: number;
17
+ /**
18
+ * @example
19
+ * 20
20
+ */
21
+ pageSize?: number;
22
+ workspace?: string;
23
+ static names(): { [key: string]: string } {
24
+ return {
25
+ contactGroupIds: 'contactGroupIds',
26
+ name: 'name',
27
+ pageNumber: 'pageNumber',
28
+ pageSize: 'pageSize',
29
+ workspace: 'workspace',
30
+ };
31
+ }
32
+
33
+ static types(): { [key: string]: any } {
34
+ return {
35
+ contactGroupIds: { 'type': 'array', 'itemType': 'string' },
36
+ name: 'string',
37
+ pageNumber: 'number',
38
+ pageSize: 'number',
39
+ workspace: 'string',
40
+ };
41
+ }
42
+
43
+ validate() {
44
+ if(Array.isArray(this.contactGroupIds)) {
45
+ $dara.Model.validateArray(this.contactGroupIds);
46
+ }
47
+ super.validate();
48
+ }
49
+
50
+ constructor(map?: { [key: string]: any }) {
51
+ super(map);
52
+ }
53
+ }
54
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ListContactGroupsResponseBody } from "./ListContactGroupsResponseBody";
4
+
5
+
6
+ export class ListContactGroupsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ListContactGroupsResponseBody;
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: ListContactGroupsResponseBody,
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,104 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListContactGroupsResponseBodyContactGroups extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * test
9
+ */
10
+ contactGroupId?: string;
11
+ contactIds?: string[];
12
+ /**
13
+ * @example
14
+ * test
15
+ */
16
+ name?: string;
17
+ workspace?: string;
18
+ static names(): { [key: string]: string } {
19
+ return {
20
+ contactGroupId: 'contactGroupId',
21
+ contactIds: 'contactIds',
22
+ name: 'name',
23
+ workspace: 'workspace',
24
+ };
25
+ }
26
+
27
+ static types(): { [key: string]: any } {
28
+ return {
29
+ contactGroupId: 'string',
30
+ contactIds: { 'type': 'array', 'itemType': 'string' },
31
+ name: 'string',
32
+ workspace: 'string',
33
+ };
34
+ }
35
+
36
+ validate() {
37
+ if(Array.isArray(this.contactIds)) {
38
+ $dara.Model.validateArray(this.contactIds);
39
+ }
40
+ super.validate();
41
+ }
42
+
43
+ constructor(map?: { [key: string]: any }) {
44
+ super(map);
45
+ }
46
+ }
47
+
48
+ export class ListContactGroupsResponseBody extends $dara.Model {
49
+ contactGroups?: ListContactGroupsResponseBodyContactGroups[];
50
+ /**
51
+ * @example
52
+ * 1
53
+ */
54
+ pageNumber?: number;
55
+ /**
56
+ * @example
57
+ * 10
58
+ */
59
+ pageSize?: number;
60
+ /**
61
+ * @remarks
62
+ * Id of the request
63
+ *
64
+ * @example
65
+ * 8FDE2569-626B-5176-9844-28877A*****
66
+ */
67
+ requestId?: string;
68
+ /**
69
+ * @example
70
+ * 15
71
+ */
72
+ total?: number;
73
+ static names(): { [key: string]: string } {
74
+ return {
75
+ contactGroups: 'contactGroups',
76
+ pageNumber: 'pageNumber',
77
+ pageSize: 'pageSize',
78
+ requestId: 'requestId',
79
+ total: 'total',
80
+ };
81
+ }
82
+
83
+ static types(): { [key: string]: any } {
84
+ return {
85
+ contactGroups: { 'type': 'array', 'itemType': ListContactGroupsResponseBodyContactGroups },
86
+ pageNumber: 'number',
87
+ pageSize: 'number',
88
+ requestId: 'string',
89
+ total: 'number',
90
+ };
91
+ }
92
+
93
+ validate() {
94
+ if(Array.isArray(this.contactGroups)) {
95
+ $dara.Model.validateArray(this.contactGroups);
96
+ }
97
+ super.validate();
98
+ }
99
+
100
+ constructor(map?: { [key: string]: any }) {
101
+ super(map);
102
+ }
103
+ }
104
+
@@ -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 ListContactGroupsShrinkRequest extends $dara.Model {
6
+ contactGroupIdsShrink?: string;
7
+ /**
8
+ * @example
9
+ * test
10
+ */
11
+ name?: string;
12
+ /**
13
+ * @example
14
+ * 1
15
+ */
16
+ pageNumber?: number;
17
+ /**
18
+ * @example
19
+ * 20
20
+ */
21
+ pageSize?: number;
22
+ workspace?: string;
23
+ static names(): { [key: string]: string } {
24
+ return {
25
+ contactGroupIdsShrink: 'contactGroupIds',
26
+ name: 'name',
27
+ pageNumber: 'pageNumber',
28
+ pageSize: 'pageSize',
29
+ workspace: 'workspace',
30
+ };
31
+ }
32
+
33
+ static types(): { [key: string]: any } {
34
+ return {
35
+ contactGroupIdsShrink: 'string',
36
+ name: 'string',
37
+ pageNumber: 'number',
38
+ pageSize: 'number',
39
+ workspace: 'string',
40
+ };
41
+ }
42
+
43
+ validate() {
44
+ super.validate();
45
+ }
46
+
47
+ constructor(map?: { [key: string]: any }) {
48
+ super(map);
49
+ }
50
+ }
51
+
@@ -0,0 +1,78 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListContactsRequest extends $dara.Model {
6
+ contactIds?: string[];
7
+ /**
8
+ * @example
9
+ * test@aliyun.com
10
+ */
11
+ email?: string;
12
+ groupId?: string;
13
+ /**
14
+ * @example
15
+ * test
16
+ */
17
+ name?: string;
18
+ /**
19
+ * @example
20
+ * 1
21
+ */
22
+ pageNumber?: number;
23
+ /**
24
+ * @example
25
+ * 100
26
+ */
27
+ pageSize?: number;
28
+ /**
29
+ * @example
30
+ * 15012345678
31
+ */
32
+ phone?: string;
33
+ /**
34
+ * @example
35
+ * true
36
+ */
37
+ queryUngroupedContacts?: boolean;
38
+ workspace?: string;
39
+ static names(): { [key: string]: string } {
40
+ return {
41
+ contactIds: 'contactIds',
42
+ email: 'email',
43
+ groupId: 'groupId',
44
+ name: 'name',
45
+ pageNumber: 'pageNumber',
46
+ pageSize: 'pageSize',
47
+ phone: 'phone',
48
+ queryUngroupedContacts: 'queryUngroupedContacts',
49
+ workspace: 'workspace',
50
+ };
51
+ }
52
+
53
+ static types(): { [key: string]: any } {
54
+ return {
55
+ contactIds: { 'type': 'array', 'itemType': 'string' },
56
+ email: 'string',
57
+ groupId: 'string',
58
+ name: 'string',
59
+ pageNumber: 'number',
60
+ pageSize: 'number',
61
+ phone: 'string',
62
+ queryUngroupedContacts: 'boolean',
63
+ workspace: 'string',
64
+ };
65
+ }
66
+
67
+ validate() {
68
+ if(Array.isArray(this.contactIds)) {
69
+ $dara.Model.validateArray(this.contactIds);
70
+ }
71
+ super.validate();
72
+ }
73
+
74
+ constructor(map?: { [key: string]: any }) {
75
+ super(map);
76
+ }
77
+ }
78
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ListContactsResponseBody } from "./ListContactsResponseBody";
4
+
5
+
6
+ export class ListContactsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ListContactsResponseBody;
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: ListContactsResponseBody,
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,152 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListContactsResponseBodyContacts extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * test
9
+ */
10
+ contactId?: string;
11
+ /**
12
+ * @example
13
+ * test@aliyun.com
14
+ */
15
+ email?: string;
16
+ /**
17
+ * @example
18
+ * true
19
+ */
20
+ emailVerify?: boolean;
21
+ groupList?: string[];
22
+ imUserIds?: { [key: string]: string };
23
+ /**
24
+ * @example
25
+ * zh_CN
26
+ */
27
+ lang?: string;
28
+ /**
29
+ * @example
30
+ * test
31
+ */
32
+ name?: string;
33
+ /**
34
+ * @example
35
+ * 130123456789
36
+ */
37
+ phone?: string;
38
+ /**
39
+ * @example
40
+ * true
41
+ */
42
+ phoneVerify?: boolean;
43
+ /**
44
+ * @example
45
+ * 2024-10-22 02:21:51
46
+ */
47
+ updateTime?: string;
48
+ workspace?: string;
49
+ static names(): { [key: string]: string } {
50
+ return {
51
+ contactId: 'contactId',
52
+ email: 'email',
53
+ emailVerify: 'emailVerify',
54
+ groupList: 'groupList',
55
+ imUserIds: 'imUserIds',
56
+ lang: 'lang',
57
+ name: 'name',
58
+ phone: 'phone',
59
+ phoneVerify: 'phoneVerify',
60
+ updateTime: 'updateTime',
61
+ workspace: 'workspace',
62
+ };
63
+ }
64
+
65
+ static types(): { [key: string]: any } {
66
+ return {
67
+ contactId: 'string',
68
+ email: 'string',
69
+ emailVerify: 'boolean',
70
+ groupList: { 'type': 'array', 'itemType': 'string' },
71
+ imUserIds: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
72
+ lang: 'string',
73
+ name: 'string',
74
+ phone: 'string',
75
+ phoneVerify: 'boolean',
76
+ updateTime: 'string',
77
+ workspace: 'string',
78
+ };
79
+ }
80
+
81
+ validate() {
82
+ if(Array.isArray(this.groupList)) {
83
+ $dara.Model.validateArray(this.groupList);
84
+ }
85
+ if(this.imUserIds) {
86
+ $dara.Model.validateMap(this.imUserIds);
87
+ }
88
+ super.validate();
89
+ }
90
+
91
+ constructor(map?: { [key: string]: any }) {
92
+ super(map);
93
+ }
94
+ }
95
+
96
+ export class ListContactsResponseBody extends $dara.Model {
97
+ contacts?: ListContactsResponseBodyContacts[];
98
+ /**
99
+ * @example
100
+ * 1
101
+ */
102
+ pageNumber?: number;
103
+ /**
104
+ * @example
105
+ * 20
106
+ */
107
+ pageSize?: number;
108
+ /**
109
+ * @remarks
110
+ * Id of the request
111
+ *
112
+ * @example
113
+ * 8FDE2569-626B-5176-9844-28877A*****
114
+ */
115
+ requestId?: string;
116
+ /**
117
+ * @example
118
+ * 56
119
+ */
120
+ total?: number;
121
+ static names(): { [key: string]: string } {
122
+ return {
123
+ contacts: 'contacts',
124
+ pageNumber: 'pageNumber',
125
+ pageSize: 'pageSize',
126
+ requestId: 'requestId',
127
+ total: 'total',
128
+ };
129
+ }
130
+
131
+ static types(): { [key: string]: any } {
132
+ return {
133
+ contacts: { 'type': 'array', 'itemType': ListContactsResponseBodyContacts },
134
+ pageNumber: 'number',
135
+ pageSize: 'number',
136
+ requestId: 'string',
137
+ total: 'number',
138
+ };
139
+ }
140
+
141
+ validate() {
142
+ if(Array.isArray(this.contacts)) {
143
+ $dara.Model.validateArray(this.contacts);
144
+ }
145
+ super.validate();
146
+ }
147
+
148
+ constructor(map?: { [key: string]: any }) {
149
+ super(map);
150
+ }
151
+ }
152
+
@@ -0,0 +1,75 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListContactsShrinkRequest extends $dara.Model {
6
+ contactIdsShrink?: string;
7
+ /**
8
+ * @example
9
+ * test@aliyun.com
10
+ */
11
+ email?: string;
12
+ groupId?: string;
13
+ /**
14
+ * @example
15
+ * test
16
+ */
17
+ name?: string;
18
+ /**
19
+ * @example
20
+ * 1
21
+ */
22
+ pageNumber?: number;
23
+ /**
24
+ * @example
25
+ * 100
26
+ */
27
+ pageSize?: number;
28
+ /**
29
+ * @example
30
+ * 15012345678
31
+ */
32
+ phone?: string;
33
+ /**
34
+ * @example
35
+ * true
36
+ */
37
+ queryUngroupedContacts?: boolean;
38
+ workspace?: string;
39
+ static names(): { [key: string]: string } {
40
+ return {
41
+ contactIdsShrink: 'contactIds',
42
+ email: 'email',
43
+ groupId: 'groupId',
44
+ name: 'name',
45
+ pageNumber: 'pageNumber',
46
+ pageSize: 'pageSize',
47
+ phone: 'phone',
48
+ queryUngroupedContacts: 'queryUngroupedContacts',
49
+ workspace: 'workspace',
50
+ };
51
+ }
52
+
53
+ static types(): { [key: string]: any } {
54
+ return {
55
+ contactIdsShrink: 'string',
56
+ email: 'string',
57
+ groupId: 'string',
58
+ name: 'string',
59
+ pageNumber: 'number',
60
+ pageSize: 'number',
61
+ phone: 'string',
62
+ queryUngroupedContacts: 'boolean',
63
+ workspace: 'string',
64
+ };
65
+ }
66
+
67
+ validate() {
68
+ super.validate();
69
+ }
70
+
71
+ constructor(map?: { [key: string]: any }) {
72
+ super(map);
73
+ }
74
+ }
75
+
@@ -162,7 +162,10 @@ export { ListAlertActionsResponseBodyAlertActionsPagerDutyParam } from './ListAl
162
162
  export { ListAlertActionsResponseBodyAlertActionsSlsParam } from './ListAlertActionsResponseBody';
163
163
  export { ListAlertActionsResponseBodyAlertActionsWebhookParam } from './ListAlertActionsResponseBody';
164
164
  export { ListAlertActionsResponseBodyAlertActions } from './ListAlertActionsResponseBody';
165
+ export { ListAlertRobotsResponseBodyRobots } from './ListAlertRobotsResponseBody';
165
166
  export { ListAlertWebhooksResponseBodyWebhooks } from './ListAlertWebhooksResponseBody';
167
+ export { ListContactGroupsResponseBodyContactGroups } from './ListContactGroupsResponseBody';
168
+ export { ListContactsResponseBodyContacts } from './ListContactsResponseBody';
166
169
  export { ListDatasetsResponseBodyDatasets } from './ListDatasetsResponseBody';
167
170
  export { ListDeliveryTasksRequestTag } from './ListDeliveryTasksRequest';
168
171
  export { ListDeliveryTasksResponseBodyDeliveryTasksExtraInfo } from './ListDeliveryTasksResponseBody';
@@ -593,6 +596,10 @@ export { ListAlertActionsRequest } from './ListAlertActionsRequest';
593
596
  export { ListAlertActionsShrinkRequest } from './ListAlertActionsShrinkRequest';
594
597
  export { ListAlertActionsResponseBody } from './ListAlertActionsResponseBody';
595
598
  export { ListAlertActionsResponse } from './ListAlertActionsResponse';
599
+ export { ListAlertRobotsRequest } from './ListAlertRobotsRequest';
600
+ export { ListAlertRobotsShrinkRequest } from './ListAlertRobotsShrinkRequest';
601
+ export { ListAlertRobotsResponseBody } from './ListAlertRobotsResponseBody';
602
+ export { ListAlertRobotsResponse } from './ListAlertRobotsResponse';
596
603
  export { ListAlertWebhooksRequest } from './ListAlertWebhooksRequest';
597
604
  export { ListAlertWebhooksShrinkRequest } from './ListAlertWebhooksShrinkRequest';
598
605
  export { ListAlertWebhooksResponseBody } from './ListAlertWebhooksResponseBody';
@@ -600,6 +607,14 @@ export { ListAlertWebhooksResponse } from './ListAlertWebhooksResponse';
600
607
  export { ListBizTracesRequest } from './ListBizTracesRequest';
601
608
  export { ListBizTracesResponseBody } from './ListBizTracesResponseBody';
602
609
  export { ListBizTracesResponse } from './ListBizTracesResponse';
610
+ export { ListContactGroupsRequest } from './ListContactGroupsRequest';
611
+ export { ListContactGroupsShrinkRequest } from './ListContactGroupsShrinkRequest';
612
+ export { ListContactGroupsResponseBody } from './ListContactGroupsResponseBody';
613
+ export { ListContactGroupsResponse } from './ListContactGroupsResponse';
614
+ export { ListContactsRequest } from './ListContactsRequest';
615
+ export { ListContactsShrinkRequest } from './ListContactsShrinkRequest';
616
+ export { ListContactsResponseBody } from './ListContactsResponseBody';
617
+ export { ListContactsResponse } from './ListContactsResponse';
603
618
  export { ListDatasetsRequest } from './ListDatasetsRequest';
604
619
  export { ListDatasetsResponseBody } from './ListDatasetsResponseBody';
605
620
  export { ListDatasetsResponse } from './ListDatasetsResponse';