@alicloud/cams20200606 2.1.0 → 2.2.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 (158) hide show
  1. package/dist/client.d.ts +120 -0
  2. package/dist/client.js +498 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AddChatGroupInviteLinkRequest.d.ts +45 -0
  5. package/dist/models/AddChatGroupInviteLinkRequest.js +70 -0
  6. package/dist/models/AddChatGroupInviteLinkRequest.js.map +1 -0
  7. package/dist/models/AddChatGroupInviteLinkResponse.d.ts +19 -0
  8. package/dist/models/AddChatGroupInviteLinkResponse.js +69 -0
  9. package/dist/models/AddChatGroupInviteLinkResponse.js.map +1 -0
  10. package/dist/models/AddChatGroupInviteLinkResponseBody.d.ts +39 -0
  11. package/dist/models/AddChatGroupInviteLinkResponseBody.js +68 -0
  12. package/dist/models/AddChatGroupInviteLinkResponseBody.js.map +1 -0
  13. package/dist/models/AddChatGroupRequest.d.ts +50 -0
  14. package/dist/models/AddChatGroupRequest.js +72 -0
  15. package/dist/models/AddChatGroupRequest.js.map +1 -0
  16. package/dist/models/AddChatGroupResponse.d.ts +19 -0
  17. package/dist/models/AddChatGroupResponse.js +69 -0
  18. package/dist/models/AddChatGroupResponse.js.map +1 -0
  19. package/dist/models/AddChatGroupResponseBody.d.ts +39 -0
  20. package/dist/models/AddChatGroupResponseBody.js +68 -0
  21. package/dist/models/AddChatGroupResponseBody.js.map +1 -0
  22. package/dist/models/ChatappMigrationVerifiedRequest.d.ts +1 -1
  23. package/dist/models/ChatappMigrationVerifiedResponseBody.d.ts +8 -1
  24. package/dist/models/ChatappMigrationVerifiedResponseBody.js.map +1 -1
  25. package/dist/models/DeleteChatGroupInviteLinkRequest.d.ts +45 -0
  26. package/dist/models/DeleteChatGroupInviteLinkRequest.js +70 -0
  27. package/dist/models/DeleteChatGroupInviteLinkRequest.js.map +1 -0
  28. package/dist/models/DeleteChatGroupInviteLinkResponse.d.ts +19 -0
  29. package/dist/models/DeleteChatGroupInviteLinkResponse.js +69 -0
  30. package/dist/models/DeleteChatGroupInviteLinkResponse.js.map +1 -0
  31. package/dist/models/DeleteChatGroupInviteLinkResponseBody.d.ts +39 -0
  32. package/dist/models/DeleteChatGroupInviteLinkResponseBody.js +68 -0
  33. package/dist/models/DeleteChatGroupInviteLinkResponseBody.js.map +1 -0
  34. package/dist/models/DeleteChatGroupParticipantsRequest.d.ts +47 -0
  35. package/dist/models/DeleteChatGroupParticipantsRequest.js +76 -0
  36. package/dist/models/DeleteChatGroupParticipantsRequest.js.map +1 -0
  37. package/dist/models/DeleteChatGroupParticipantsRequestList.d.ts +18 -0
  38. package/dist/models/DeleteChatGroupParticipantsRequestList.js +58 -0
  39. package/dist/models/DeleteChatGroupParticipantsRequestList.js.map +1 -0
  40. package/dist/models/DeleteChatGroupParticipantsResponse.d.ts +19 -0
  41. package/dist/models/DeleteChatGroupParticipantsResponse.js +69 -0
  42. package/dist/models/DeleteChatGroupParticipantsResponse.js.map +1 -0
  43. package/dist/models/DeleteChatGroupParticipantsResponseBody.d.ts +39 -0
  44. package/dist/models/DeleteChatGroupParticipantsResponseBody.js +68 -0
  45. package/dist/models/DeleteChatGroupParticipantsResponseBody.js.map +1 -0
  46. package/dist/models/DeleteChatGroupParticipantsShrinkRequest.d.ts +46 -0
  47. package/dist/models/DeleteChatGroupParticipantsShrinkRequest.js +72 -0
  48. package/dist/models/DeleteChatGroupParticipantsShrinkRequest.js.map +1 -0
  49. package/dist/models/DeleteChatGroupRequest.d.ts +45 -0
  50. package/dist/models/DeleteChatGroupRequest.js +70 -0
  51. package/dist/models/DeleteChatGroupRequest.js.map +1 -0
  52. package/dist/models/DeleteChatGroupResponse.d.ts +19 -0
  53. package/dist/models/DeleteChatGroupResponse.js +69 -0
  54. package/dist/models/DeleteChatGroupResponse.js.map +1 -0
  55. package/dist/models/DeleteChatGroupResponseBody.d.ts +39 -0
  56. package/dist/models/DeleteChatGroupResponseBody.js +68 -0
  57. package/dist/models/DeleteChatGroupResponseBody.js.map +1 -0
  58. package/dist/models/ListChatGroupParticipantsRequest.d.ts +47 -0
  59. package/dist/models/ListChatGroupParticipantsRequest.js +76 -0
  60. package/dist/models/ListChatGroupParticipantsRequest.js.map +1 -0
  61. package/dist/models/ListChatGroupParticipantsRequestPage.d.ts +23 -0
  62. package/dist/models/ListChatGroupParticipantsRequestPage.js +60 -0
  63. package/dist/models/ListChatGroupParticipantsRequestPage.js.map +1 -0
  64. package/dist/models/ListChatGroupParticipantsResponse.d.ts +19 -0
  65. package/dist/models/ListChatGroupParticipantsResponse.js +69 -0
  66. package/dist/models/ListChatGroupParticipantsResponse.js.map +1 -0
  67. package/dist/models/ListChatGroupParticipantsResponseBody.d.ts +36 -0
  68. package/dist/models/ListChatGroupParticipantsResponseBody.js +72 -0
  69. package/dist/models/ListChatGroupParticipantsResponseBody.js.map +1 -0
  70. package/dist/models/ListChatGroupParticipantsResponseBodyData.d.ts +20 -0
  71. package/dist/models/ListChatGroupParticipantsResponseBodyData.js +64 -0
  72. package/dist/models/ListChatGroupParticipantsResponseBodyData.js.map +1 -0
  73. package/dist/models/ListChatGroupParticipantsResponseBodyDataList.d.ts +18 -0
  74. package/dist/models/ListChatGroupParticipantsResponseBodyDataList.js +58 -0
  75. package/dist/models/ListChatGroupParticipantsResponseBodyDataList.js.map +1 -0
  76. package/dist/models/ListChatGroupParticipantsShrinkRequest.d.ts +46 -0
  77. package/dist/models/ListChatGroupParticipantsShrinkRequest.js +72 -0
  78. package/dist/models/ListChatGroupParticipantsShrinkRequest.js.map +1 -0
  79. package/dist/models/ListChatGroupRequest.d.ts +53 -0
  80. package/dist/models/ListChatGroupRequest.js +78 -0
  81. package/dist/models/ListChatGroupRequest.js.map +1 -0
  82. package/dist/models/ListChatGroupRequestPage.d.ts +29 -0
  83. package/dist/models/ListChatGroupRequestPage.js +60 -0
  84. package/dist/models/ListChatGroupRequestPage.js.map +1 -0
  85. package/dist/models/ListChatGroupResponse.d.ts +19 -0
  86. package/dist/models/ListChatGroupResponse.js +69 -0
  87. package/dist/models/ListChatGroupResponse.js.map +1 -0
  88. package/dist/models/ListChatGroupResponseBody.d.ts +36 -0
  89. package/dist/models/ListChatGroupResponseBody.js +72 -0
  90. package/dist/models/ListChatGroupResponseBody.js.map +1 -0
  91. package/dist/models/ListChatGroupResponseBodyData.d.ts +20 -0
  92. package/dist/models/ListChatGroupResponseBodyData.js +64 -0
  93. package/dist/models/ListChatGroupResponseBodyData.js.map +1 -0
  94. package/dist/models/ListChatGroupResponseBodyDataList.d.ts +48 -0
  95. package/dist/models/ListChatGroupResponseBodyDataList.js +70 -0
  96. package/dist/models/ListChatGroupResponseBodyDataList.js.map +1 -0
  97. package/dist/models/ListChatGroupShrinkRequest.d.ts +52 -0
  98. package/dist/models/ListChatGroupShrinkRequest.js +74 -0
  99. package/dist/models/ListChatGroupShrinkRequest.js.map +1 -0
  100. package/dist/models/SendChatappMessageRequest.d.ts +1 -0
  101. package/dist/models/SendChatappMessageRequest.js +2 -0
  102. package/dist/models/SendChatappMessageRequest.js.map +1 -1
  103. package/dist/models/SendChatappMessageShrinkRequest.d.ts +1 -0
  104. package/dist/models/SendChatappMessageShrinkRequest.js +2 -0
  105. package/dist/models/SendChatappMessageShrinkRequest.js.map +1 -1
  106. package/dist/models/UpdateChatGroupRequest.d.ts +60 -0
  107. package/dist/models/UpdateChatGroupRequest.js +76 -0
  108. package/dist/models/UpdateChatGroupRequest.js.map +1 -0
  109. package/dist/models/UpdateChatGroupResponse.d.ts +19 -0
  110. package/dist/models/UpdateChatGroupResponse.js +69 -0
  111. package/dist/models/UpdateChatGroupResponse.js.map +1 -0
  112. package/dist/models/UpdateChatGroupResponseBody.d.ts +39 -0
  113. package/dist/models/UpdateChatGroupResponseBody.js +68 -0
  114. package/dist/models/UpdateChatGroupResponseBody.js.map +1 -0
  115. package/dist/models/model.d.ts +34 -0
  116. package/dist/models/model.js +75 -6
  117. package/dist/models/model.js.map +1 -1
  118. package/package.json +1 -1
  119. package/src/client.ts +582 -0
  120. package/src/models/AddChatGroupInviteLinkRequest.ts +70 -0
  121. package/src/models/AddChatGroupInviteLinkResponse.ts +40 -0
  122. package/src/models/AddChatGroupInviteLinkResponseBody.ts +62 -0
  123. package/src/models/AddChatGroupRequest.ts +77 -0
  124. package/src/models/AddChatGroupResponse.ts +40 -0
  125. package/src/models/AddChatGroupResponseBody.ts +62 -0
  126. package/src/models/ChatappMigrationVerifiedRequest.ts +1 -1
  127. package/src/models/ChatappMigrationVerifiedResponseBody.ts +8 -1
  128. package/src/models/DeleteChatGroupInviteLinkRequest.ts +70 -0
  129. package/src/models/DeleteChatGroupInviteLinkResponse.ts +40 -0
  130. package/src/models/DeleteChatGroupInviteLinkResponseBody.ts +62 -0
  131. package/src/models/DeleteChatGroupParticipantsRequest.ts +77 -0
  132. package/src/models/DeleteChatGroupParticipantsRequestList.ts +31 -0
  133. package/src/models/DeleteChatGroupParticipantsResponse.ts +40 -0
  134. package/src/models/DeleteChatGroupParticipantsResponseBody.ts +62 -0
  135. package/src/models/DeleteChatGroupParticipantsShrinkRequest.ts +73 -0
  136. package/src/models/DeleteChatGroupRequest.ts +70 -0
  137. package/src/models/DeleteChatGroupResponse.ts +40 -0
  138. package/src/models/DeleteChatGroupResponseBody.ts +62 -0
  139. package/src/models/ListChatGroupParticipantsRequest.ts +77 -0
  140. package/src/models/ListChatGroupParticipantsRequestPage.ts +38 -0
  141. package/src/models/ListChatGroupParticipantsResponse.ts +40 -0
  142. package/src/models/ListChatGroupParticipantsResponseBody.ts +62 -0
  143. package/src/models/ListChatGroupParticipantsResponseBodyData.ts +38 -0
  144. package/src/models/ListChatGroupParticipantsResponseBodyDataList.ts +31 -0
  145. package/src/models/ListChatGroupParticipantsShrinkRequest.ts +73 -0
  146. package/src/models/ListChatGroupRequest.ts +85 -0
  147. package/src/models/ListChatGroupRequestPage.ts +44 -0
  148. package/src/models/ListChatGroupResponse.ts +40 -0
  149. package/src/models/ListChatGroupResponseBody.ts +62 -0
  150. package/src/models/ListChatGroupResponseBodyData.ts +38 -0
  151. package/src/models/ListChatGroupResponseBodyDataList.ts +73 -0
  152. package/src/models/ListChatGroupShrinkRequest.ts +81 -0
  153. package/src/models/SendChatappMessageRequest.ts +3 -0
  154. package/src/models/SendChatappMessageShrinkRequest.ts +3 -0
  155. package/src/models/UpdateChatGroupRequest.ts +91 -0
  156. package/src/models/UpdateChatGroupResponse.ts +40 -0
  157. package/src/models/UpdateChatGroupResponseBody.ts +62 -0
  158. package/src/models/model.ts +34 -0
package/dist/client.d.ts CHANGED
@@ -8,6 +8,36 @@ export default class Client extends OpenApi {
8
8
  getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
9
9
  [key: string]: string;
10
10
  }, endpoint: string): string;
11
+ /**
12
+ * AddChatGroup
13
+ *
14
+ * @param request - AddChatGroupRequest
15
+ * @param runtime - runtime options for this request RuntimeOptions
16
+ * @returns AddChatGroupResponse
17
+ */
18
+ addChatGroupWithOptions(request: $_model.AddChatGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.AddChatGroupResponse>;
19
+ /**
20
+ * AddChatGroup
21
+ *
22
+ * @param request - AddChatGroupRequest
23
+ * @returns AddChatGroupResponse
24
+ */
25
+ addChatGroup(request: $_model.AddChatGroupRequest): Promise<$_model.AddChatGroupResponse>;
26
+ /**
27
+ * AddChatGroupInviteLink
28
+ *
29
+ * @param request - AddChatGroupInviteLinkRequest
30
+ * @param runtime - runtime options for this request RuntimeOptions
31
+ * @returns AddChatGroupInviteLinkResponse
32
+ */
33
+ addChatGroupInviteLinkWithOptions(request: $_model.AddChatGroupInviteLinkRequest, runtime: $dara.RuntimeOptions): Promise<$_model.AddChatGroupInviteLinkResponse>;
34
+ /**
35
+ * AddChatGroupInviteLink
36
+ *
37
+ * @param request - AddChatGroupInviteLinkRequest
38
+ * @returns AddChatGroupInviteLinkResponse
39
+ */
40
+ addChatGroupInviteLink(request: $_model.AddChatGroupInviteLinkRequest): Promise<$_model.AddChatGroupInviteLinkResponse>;
11
41
  /**
12
42
  * Adds a phone number for a WhatsApp Business account (WABA).
13
43
  *
@@ -317,6 +347,51 @@ export default class Client extends OpenApi {
317
347
  * @returns CreatePhoneMessageQrdlResponse
318
348
  */
319
349
  createPhoneMessageQrdl(request: $_model.CreatePhoneMessageQrdlRequest): Promise<$_model.CreatePhoneMessageQrdlResponse>;
350
+ /**
351
+ * DeleteChatGroup
352
+ *
353
+ * @param request - DeleteChatGroupRequest
354
+ * @param runtime - runtime options for this request RuntimeOptions
355
+ * @returns DeleteChatGroupResponse
356
+ */
357
+ deleteChatGroupWithOptions(request: $_model.DeleteChatGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteChatGroupResponse>;
358
+ /**
359
+ * DeleteChatGroup
360
+ *
361
+ * @param request - DeleteChatGroupRequest
362
+ * @returns DeleteChatGroupResponse
363
+ */
364
+ deleteChatGroup(request: $_model.DeleteChatGroupRequest): Promise<$_model.DeleteChatGroupResponse>;
365
+ /**
366
+ * DeleteChatGroupInviteLink
367
+ *
368
+ * @param request - DeleteChatGroupInviteLinkRequest
369
+ * @param runtime - runtime options for this request RuntimeOptions
370
+ * @returns DeleteChatGroupInviteLinkResponse
371
+ */
372
+ deleteChatGroupInviteLinkWithOptions(request: $_model.DeleteChatGroupInviteLinkRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteChatGroupInviteLinkResponse>;
373
+ /**
374
+ * DeleteChatGroupInviteLink
375
+ *
376
+ * @param request - DeleteChatGroupInviteLinkRequest
377
+ * @returns DeleteChatGroupInviteLinkResponse
378
+ */
379
+ deleteChatGroupInviteLink(request: $_model.DeleteChatGroupInviteLinkRequest): Promise<$_model.DeleteChatGroupInviteLinkResponse>;
380
+ /**
381
+ * DeleteChatGroupParticipants
382
+ *
383
+ * @param tmpReq - DeleteChatGroupParticipantsRequest
384
+ * @param runtime - runtime options for this request RuntimeOptions
385
+ * @returns DeleteChatGroupParticipantsResponse
386
+ */
387
+ deleteChatGroupParticipantsWithOptions(tmpReq: $_model.DeleteChatGroupParticipantsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteChatGroupParticipantsResponse>;
388
+ /**
389
+ * DeleteChatGroupParticipants
390
+ *
391
+ * @param request - DeleteChatGroupParticipantsRequest
392
+ * @returns DeleteChatGroupParticipantsResponse
393
+ */
394
+ deleteChatGroupParticipants(request: $_model.DeleteChatGroupParticipantsRequest): Promise<$_model.DeleteChatGroupParticipantsResponse>;
320
395
  /**
321
396
  * Deletes a message template.
322
397
  *
@@ -782,6 +857,36 @@ export default class Client extends OpenApi {
782
857
  * @returns IsvGetAppIdResponse
783
858
  */
784
859
  isvGetAppId(request: $_model.IsvGetAppIdRequest): Promise<$_model.IsvGetAppIdResponse>;
860
+ /**
861
+ * ListChatGroup
862
+ *
863
+ * @param tmpReq - ListChatGroupRequest
864
+ * @param runtime - runtime options for this request RuntimeOptions
865
+ * @returns ListChatGroupResponse
866
+ */
867
+ listChatGroupWithOptions(tmpReq: $_model.ListChatGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListChatGroupResponse>;
868
+ /**
869
+ * ListChatGroup
870
+ *
871
+ * @param request - ListChatGroupRequest
872
+ * @returns ListChatGroupResponse
873
+ */
874
+ listChatGroup(request: $_model.ListChatGroupRequest): Promise<$_model.ListChatGroupResponse>;
875
+ /**
876
+ * ListChatGroupParticipants
877
+ *
878
+ * @param tmpReq - ListChatGroupParticipantsRequest
879
+ * @param runtime - runtime options for this request RuntimeOptions
880
+ * @returns ListChatGroupParticipantsResponse
881
+ */
882
+ listChatGroupParticipantsWithOptions(tmpReq: $_model.ListChatGroupParticipantsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListChatGroupParticipantsResponse>;
883
+ /**
884
+ * ListChatGroupParticipants
885
+ *
886
+ * @param request - ListChatGroupParticipantsRequest
887
+ * @returns ListChatGroupParticipantsResponse
888
+ */
889
+ listChatGroupParticipants(request: $_model.ListChatGroupParticipantsRequest): Promise<$_model.ListChatGroupParticipantsResponse>;
785
890
  /**
786
891
  * Queries message templates.
787
892
  *
@@ -1175,6 +1280,21 @@ export default class Client extends OpenApi {
1175
1280
  * @returns UpdateAccountWebhookResponse
1176
1281
  */
1177
1282
  updateAccountWebhook(request: $_model.UpdateAccountWebhookRequest): Promise<$_model.UpdateAccountWebhookResponse>;
1283
+ /**
1284
+ * UpdateChatGroup
1285
+ *
1286
+ * @param request - UpdateChatGroupRequest
1287
+ * @param runtime - runtime options for this request RuntimeOptions
1288
+ * @returns UpdateChatGroupResponse
1289
+ */
1290
+ updateChatGroupWithOptions(request: $_model.UpdateChatGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateChatGroupResponse>;
1291
+ /**
1292
+ * UpdateChatGroup
1293
+ *
1294
+ * @param request - UpdateChatGroupRequest
1295
+ * @returns UpdateChatGroupResponse
1296
+ */
1297
+ updateChatGroup(request: $_model.UpdateChatGroupRequest): Promise<$_model.UpdateChatGroupResponse>;
1178
1298
  /**
1179
1299
  * Modifies the business settings of a phone number.
1180
1300
  *
package/dist/client.js CHANGED
@@ -61,6 +61,123 @@ class Client extends openapi_core_1.default {
61
61
  }
62
62
  return openapi_core_2.OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
63
63
  }
64
+ /**
65
+ * AddChatGroup
66
+ *
67
+ * @param request - AddChatGroupRequest
68
+ * @param runtime - runtime options for this request RuntimeOptions
69
+ * @returns AddChatGroupResponse
70
+ */
71
+ async addChatGroupWithOptions(request, runtime) {
72
+ request.validate();
73
+ let query = {};
74
+ if (!$dara.isNull(request.businessNumber)) {
75
+ query["BusinessNumber"] = request.businessNumber;
76
+ }
77
+ if (!$dara.isNull(request.channelType)) {
78
+ query["ChannelType"] = request.channelType;
79
+ }
80
+ if (!$dara.isNull(request.custSpaceId)) {
81
+ query["CustSpaceId"] = request.custSpaceId;
82
+ }
83
+ if (!$dara.isNull(request.description)) {
84
+ query["Description"] = request.description;
85
+ }
86
+ if (!$dara.isNull(request.ownerId)) {
87
+ query["OwnerId"] = request.ownerId;
88
+ }
89
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
90
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
91
+ }
92
+ if (!$dara.isNull(request.resourceOwnerId)) {
93
+ query["ResourceOwnerId"] = request.resourceOwnerId;
94
+ }
95
+ if (!$dara.isNull(request.subject)) {
96
+ query["Subject"] = request.subject;
97
+ }
98
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
99
+ query: openapi_core_2.OpenApiUtil.query(query),
100
+ });
101
+ let params = new openapi_core_2.$OpenApiUtil.Params({
102
+ action: "AddChatGroup",
103
+ version: "2020-06-06",
104
+ protocol: "HTTPS",
105
+ pathname: "/",
106
+ method: "POST",
107
+ authType: "AK",
108
+ style: "RPC",
109
+ reqBodyType: "formData",
110
+ bodyType: "json",
111
+ });
112
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.AddChatGroupResponse({}));
113
+ }
114
+ /**
115
+ * AddChatGroup
116
+ *
117
+ * @param request - AddChatGroupRequest
118
+ * @returns AddChatGroupResponse
119
+ */
120
+ async addChatGroup(request) {
121
+ let runtime = new $dara.RuntimeOptions({});
122
+ return await this.addChatGroupWithOptions(request, runtime);
123
+ }
124
+ /**
125
+ * AddChatGroupInviteLink
126
+ *
127
+ * @param request - AddChatGroupInviteLinkRequest
128
+ * @param runtime - runtime options for this request RuntimeOptions
129
+ * @returns AddChatGroupInviteLinkResponse
130
+ */
131
+ async addChatGroupInviteLinkWithOptions(request, runtime) {
132
+ request.validate();
133
+ let query = {};
134
+ if (!$dara.isNull(request.businessNumber)) {
135
+ query["BusinessNumber"] = request.businessNumber;
136
+ }
137
+ if (!$dara.isNull(request.channelType)) {
138
+ query["ChannelType"] = request.channelType;
139
+ }
140
+ if (!$dara.isNull(request.custSpaceId)) {
141
+ query["CustSpaceId"] = request.custSpaceId;
142
+ }
143
+ if (!$dara.isNull(request.groupId)) {
144
+ query["GroupId"] = request.groupId;
145
+ }
146
+ if (!$dara.isNull(request.ownerId)) {
147
+ query["OwnerId"] = request.ownerId;
148
+ }
149
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
150
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
151
+ }
152
+ if (!$dara.isNull(request.resourceOwnerId)) {
153
+ query["ResourceOwnerId"] = request.resourceOwnerId;
154
+ }
155
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
156
+ query: openapi_core_2.OpenApiUtil.query(query),
157
+ });
158
+ let params = new openapi_core_2.$OpenApiUtil.Params({
159
+ action: "AddChatGroupInviteLink",
160
+ version: "2020-06-06",
161
+ protocol: "HTTPS",
162
+ pathname: "/",
163
+ method: "POST",
164
+ authType: "AK",
165
+ style: "RPC",
166
+ reqBodyType: "formData",
167
+ bodyType: "json",
168
+ });
169
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.AddChatGroupInviteLinkResponse({}));
170
+ }
171
+ /**
172
+ * AddChatGroupInviteLink
173
+ *
174
+ * @param request - AddChatGroupInviteLinkRequest
175
+ * @returns AddChatGroupInviteLinkResponse
176
+ */
177
+ async addChatGroupInviteLink(request) {
178
+ let runtime = new $dara.RuntimeOptions({});
179
+ return await this.addChatGroupInviteLinkWithOptions(request, runtime);
180
+ }
64
181
  /**
65
182
  * Adds a phone number for a WhatsApp Business account (WABA).
66
183
  *
@@ -936,6 +1053,185 @@ class Client extends openapi_core_1.default {
936
1053
  let runtime = new $dara.RuntimeOptions({});
937
1054
  return await this.createPhoneMessageQrdlWithOptions(request, runtime);
938
1055
  }
1056
+ /**
1057
+ * DeleteChatGroup
1058
+ *
1059
+ * @param request - DeleteChatGroupRequest
1060
+ * @param runtime - runtime options for this request RuntimeOptions
1061
+ * @returns DeleteChatGroupResponse
1062
+ */
1063
+ async deleteChatGroupWithOptions(request, runtime) {
1064
+ request.validate();
1065
+ let query = {};
1066
+ if (!$dara.isNull(request.businessNumber)) {
1067
+ query["BusinessNumber"] = request.businessNumber;
1068
+ }
1069
+ if (!$dara.isNull(request.channelType)) {
1070
+ query["ChannelType"] = request.channelType;
1071
+ }
1072
+ if (!$dara.isNull(request.custSpaceId)) {
1073
+ query["CustSpaceId"] = request.custSpaceId;
1074
+ }
1075
+ if (!$dara.isNull(request.groupId)) {
1076
+ query["GroupId"] = request.groupId;
1077
+ }
1078
+ if (!$dara.isNull(request.ownerId)) {
1079
+ query["OwnerId"] = request.ownerId;
1080
+ }
1081
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
1082
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
1083
+ }
1084
+ if (!$dara.isNull(request.resourceOwnerId)) {
1085
+ query["ResourceOwnerId"] = request.resourceOwnerId;
1086
+ }
1087
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1088
+ query: openapi_core_2.OpenApiUtil.query(query),
1089
+ });
1090
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1091
+ action: "DeleteChatGroup",
1092
+ version: "2020-06-06",
1093
+ protocol: "HTTPS",
1094
+ pathname: "/",
1095
+ method: "POST",
1096
+ authType: "AK",
1097
+ style: "RPC",
1098
+ reqBodyType: "formData",
1099
+ bodyType: "json",
1100
+ });
1101
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteChatGroupResponse({}));
1102
+ }
1103
+ /**
1104
+ * DeleteChatGroup
1105
+ *
1106
+ * @param request - DeleteChatGroupRequest
1107
+ * @returns DeleteChatGroupResponse
1108
+ */
1109
+ async deleteChatGroup(request) {
1110
+ let runtime = new $dara.RuntimeOptions({});
1111
+ return await this.deleteChatGroupWithOptions(request, runtime);
1112
+ }
1113
+ /**
1114
+ * DeleteChatGroupInviteLink
1115
+ *
1116
+ * @param request - DeleteChatGroupInviteLinkRequest
1117
+ * @param runtime - runtime options for this request RuntimeOptions
1118
+ * @returns DeleteChatGroupInviteLinkResponse
1119
+ */
1120
+ async deleteChatGroupInviteLinkWithOptions(request, runtime) {
1121
+ request.validate();
1122
+ let query = {};
1123
+ if (!$dara.isNull(request.businessNumber)) {
1124
+ query["BusinessNumber"] = request.businessNumber;
1125
+ }
1126
+ if (!$dara.isNull(request.channelType)) {
1127
+ query["ChannelType"] = request.channelType;
1128
+ }
1129
+ if (!$dara.isNull(request.custSpaceId)) {
1130
+ query["CustSpaceId"] = request.custSpaceId;
1131
+ }
1132
+ if (!$dara.isNull(request.groupId)) {
1133
+ query["GroupId"] = request.groupId;
1134
+ }
1135
+ if (!$dara.isNull(request.ownerId)) {
1136
+ query["OwnerId"] = request.ownerId;
1137
+ }
1138
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
1139
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
1140
+ }
1141
+ if (!$dara.isNull(request.resourceOwnerId)) {
1142
+ query["ResourceOwnerId"] = request.resourceOwnerId;
1143
+ }
1144
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1145
+ query: openapi_core_2.OpenApiUtil.query(query),
1146
+ });
1147
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1148
+ action: "DeleteChatGroupInviteLink",
1149
+ version: "2020-06-06",
1150
+ protocol: "HTTPS",
1151
+ pathname: "/",
1152
+ method: "POST",
1153
+ authType: "AK",
1154
+ style: "RPC",
1155
+ reqBodyType: "formData",
1156
+ bodyType: "json",
1157
+ });
1158
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteChatGroupInviteLinkResponse({}));
1159
+ }
1160
+ /**
1161
+ * DeleteChatGroupInviteLink
1162
+ *
1163
+ * @param request - DeleteChatGroupInviteLinkRequest
1164
+ * @returns DeleteChatGroupInviteLinkResponse
1165
+ */
1166
+ async deleteChatGroupInviteLink(request) {
1167
+ let runtime = new $dara.RuntimeOptions({});
1168
+ return await this.deleteChatGroupInviteLinkWithOptions(request, runtime);
1169
+ }
1170
+ /**
1171
+ * DeleteChatGroupParticipants
1172
+ *
1173
+ * @param tmpReq - DeleteChatGroupParticipantsRequest
1174
+ * @param runtime - runtime options for this request RuntimeOptions
1175
+ * @returns DeleteChatGroupParticipantsResponse
1176
+ */
1177
+ async deleteChatGroupParticipantsWithOptions(tmpReq, runtime) {
1178
+ tmpReq.validate();
1179
+ let request = new $_model.DeleteChatGroupParticipantsShrinkRequest({});
1180
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
1181
+ if (!$dara.isNull(tmpReq.list)) {
1182
+ request.listShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.list, "List", "json");
1183
+ }
1184
+ let query = {};
1185
+ if (!$dara.isNull(request.businessNumber)) {
1186
+ query["BusinessNumber"] = request.businessNumber;
1187
+ }
1188
+ if (!$dara.isNull(request.channelType)) {
1189
+ query["ChannelType"] = request.channelType;
1190
+ }
1191
+ if (!$dara.isNull(request.custSpaceId)) {
1192
+ query["CustSpaceId"] = request.custSpaceId;
1193
+ }
1194
+ if (!$dara.isNull(request.groupId)) {
1195
+ query["GroupId"] = request.groupId;
1196
+ }
1197
+ if (!$dara.isNull(request.listShrink)) {
1198
+ query["List"] = request.listShrink;
1199
+ }
1200
+ if (!$dara.isNull(request.ownerId)) {
1201
+ query["OwnerId"] = request.ownerId;
1202
+ }
1203
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
1204
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
1205
+ }
1206
+ if (!$dara.isNull(request.resourceOwnerId)) {
1207
+ query["ResourceOwnerId"] = request.resourceOwnerId;
1208
+ }
1209
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1210
+ query: openapi_core_2.OpenApiUtil.query(query),
1211
+ });
1212
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1213
+ action: "DeleteChatGroupParticipants",
1214
+ version: "2020-06-06",
1215
+ protocol: "HTTPS",
1216
+ pathname: "/",
1217
+ method: "POST",
1218
+ authType: "AK",
1219
+ style: "RPC",
1220
+ reqBodyType: "formData",
1221
+ bodyType: "json",
1222
+ });
1223
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteChatGroupParticipantsResponse({}));
1224
+ }
1225
+ /**
1226
+ * DeleteChatGroupParticipants
1227
+ *
1228
+ * @param request - DeleteChatGroupParticipantsRequest
1229
+ * @returns DeleteChatGroupParticipantsResponse
1230
+ */
1231
+ async deleteChatGroupParticipants(request) {
1232
+ let runtime = new $dara.RuntimeOptions({});
1233
+ return await this.deleteChatGroupParticipantsWithOptions(request, runtime);
1234
+ }
939
1235
  /**
940
1236
  * Deletes a message template.
941
1237
  *
@@ -2168,6 +2464,139 @@ class Client extends openapi_core_1.default {
2168
2464
  let runtime = new $dara.RuntimeOptions({});
2169
2465
  return await this.isvGetAppIdWithOptions(request, runtime);
2170
2466
  }
2467
+ /**
2468
+ * ListChatGroup
2469
+ *
2470
+ * @param tmpReq - ListChatGroupRequest
2471
+ * @param runtime - runtime options for this request RuntimeOptions
2472
+ * @returns ListChatGroupResponse
2473
+ */
2474
+ async listChatGroupWithOptions(tmpReq, runtime) {
2475
+ tmpReq.validate();
2476
+ let request = new $_model.ListChatGroupShrinkRequest({});
2477
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
2478
+ if (!$dara.isNull(tmpReq.page)) {
2479
+ request.pageShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.page, "Page", "json");
2480
+ }
2481
+ let query = {};
2482
+ if (!$dara.isNull(request.businessNumber)) {
2483
+ query["BusinessNumber"] = request.businessNumber;
2484
+ }
2485
+ if (!$dara.isNull(request.channelType)) {
2486
+ query["ChannelType"] = request.channelType;
2487
+ }
2488
+ if (!$dara.isNull(request.custSpaceId)) {
2489
+ query["CustSpaceId"] = request.custSpaceId;
2490
+ }
2491
+ if (!$dara.isNull(request.groupStatus)) {
2492
+ query["GroupStatus"] = request.groupStatus;
2493
+ }
2494
+ if (!$dara.isNull(request.ownerId)) {
2495
+ query["OwnerId"] = request.ownerId;
2496
+ }
2497
+ if (!$dara.isNull(request.pageShrink)) {
2498
+ query["Page"] = request.pageShrink;
2499
+ }
2500
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
2501
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
2502
+ }
2503
+ if (!$dara.isNull(request.resourceOwnerId)) {
2504
+ query["ResourceOwnerId"] = request.resourceOwnerId;
2505
+ }
2506
+ if (!$dara.isNull(request.subject)) {
2507
+ query["Subject"] = request.subject;
2508
+ }
2509
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2510
+ query: openapi_core_2.OpenApiUtil.query(query),
2511
+ });
2512
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2513
+ action: "ListChatGroup",
2514
+ version: "2020-06-06",
2515
+ protocol: "HTTPS",
2516
+ pathname: "/",
2517
+ method: "POST",
2518
+ authType: "AK",
2519
+ style: "RPC",
2520
+ reqBodyType: "formData",
2521
+ bodyType: "json",
2522
+ });
2523
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListChatGroupResponse({}));
2524
+ }
2525
+ /**
2526
+ * ListChatGroup
2527
+ *
2528
+ * @param request - ListChatGroupRequest
2529
+ * @returns ListChatGroupResponse
2530
+ */
2531
+ async listChatGroup(request) {
2532
+ let runtime = new $dara.RuntimeOptions({});
2533
+ return await this.listChatGroupWithOptions(request, runtime);
2534
+ }
2535
+ /**
2536
+ * ListChatGroupParticipants
2537
+ *
2538
+ * @param tmpReq - ListChatGroupParticipantsRequest
2539
+ * @param runtime - runtime options for this request RuntimeOptions
2540
+ * @returns ListChatGroupParticipantsResponse
2541
+ */
2542
+ async listChatGroupParticipantsWithOptions(tmpReq, runtime) {
2543
+ tmpReq.validate();
2544
+ let request = new $_model.ListChatGroupParticipantsShrinkRequest({});
2545
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
2546
+ if (!$dara.isNull(tmpReq.page)) {
2547
+ request.pageShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.page, "Page", "json");
2548
+ }
2549
+ let query = {};
2550
+ if (!$dara.isNull(request.businessNumber)) {
2551
+ query["BusinessNumber"] = request.businessNumber;
2552
+ }
2553
+ if (!$dara.isNull(request.channelType)) {
2554
+ query["ChannelType"] = request.channelType;
2555
+ }
2556
+ if (!$dara.isNull(request.custSpaceId)) {
2557
+ query["CustSpaceId"] = request.custSpaceId;
2558
+ }
2559
+ if (!$dara.isNull(request.groupId)) {
2560
+ query["GroupId"] = request.groupId;
2561
+ }
2562
+ if (!$dara.isNull(request.ownerId)) {
2563
+ query["OwnerId"] = request.ownerId;
2564
+ }
2565
+ if (!$dara.isNull(request.pageShrink)) {
2566
+ query["Page"] = request.pageShrink;
2567
+ }
2568
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
2569
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
2570
+ }
2571
+ if (!$dara.isNull(request.resourceOwnerId)) {
2572
+ query["ResourceOwnerId"] = request.resourceOwnerId;
2573
+ }
2574
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2575
+ query: openapi_core_2.OpenApiUtil.query(query),
2576
+ });
2577
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2578
+ action: "ListChatGroupParticipants",
2579
+ version: "2020-06-06",
2580
+ protocol: "HTTPS",
2581
+ pathname: "/",
2582
+ method: "POST",
2583
+ authType: "AK",
2584
+ style: "RPC",
2585
+ reqBodyType: "formData",
2586
+ bodyType: "json",
2587
+ });
2588
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListChatGroupParticipantsResponse({}));
2589
+ }
2590
+ /**
2591
+ * ListChatGroupParticipants
2592
+ *
2593
+ * @param request - ListChatGroupParticipantsRequest
2594
+ * @returns ListChatGroupParticipantsResponse
2595
+ */
2596
+ async listChatGroupParticipants(request) {
2597
+ let runtime = new $dara.RuntimeOptions({});
2598
+ return await this.listChatGroupParticipantsWithOptions(request, runtime);
2599
+ }
2171
2600
  /**
2172
2601
  * Queries message templates.
2173
2602
  *
@@ -3244,6 +3673,9 @@ class Client extends openapi_core_1.default {
3244
3673
  if (!$dara.isNull(request.productActionShrink)) {
3245
3674
  body["ProductAction"] = request.productActionShrink;
3246
3675
  }
3676
+ if (!$dara.isNull(request.recipientType)) {
3677
+ body["RecipientType"] = request.recipientType;
3678
+ }
3247
3679
  if (!$dara.isNull(request.tag)) {
3248
3680
  body["Tag"] = request.tag;
3249
3681
  }
@@ -3494,6 +3926,72 @@ class Client extends openapi_core_1.default {
3494
3926
  let runtime = new $dara.RuntimeOptions({});
3495
3927
  return await this.updateAccountWebhookWithOptions(request, runtime);
3496
3928
  }
3929
+ /**
3930
+ * UpdateChatGroup
3931
+ *
3932
+ * @param request - UpdateChatGroupRequest
3933
+ * @param runtime - runtime options for this request RuntimeOptions
3934
+ * @returns UpdateChatGroupResponse
3935
+ */
3936
+ async updateChatGroupWithOptions(request, runtime) {
3937
+ request.validate();
3938
+ let query = {};
3939
+ if (!$dara.isNull(request.businessNumber)) {
3940
+ query["BusinessNumber"] = request.businessNumber;
3941
+ }
3942
+ if (!$dara.isNull(request.channelType)) {
3943
+ query["ChannelType"] = request.channelType;
3944
+ }
3945
+ if (!$dara.isNull(request.custSpaceId)) {
3946
+ query["CustSpaceId"] = request.custSpaceId;
3947
+ }
3948
+ if (!$dara.isNull(request.description)) {
3949
+ query["Description"] = request.description;
3950
+ }
3951
+ if (!$dara.isNull(request.groupId)) {
3952
+ query["GroupId"] = request.groupId;
3953
+ }
3954
+ if (!$dara.isNull(request.ownerId)) {
3955
+ query["OwnerId"] = request.ownerId;
3956
+ }
3957
+ if (!$dara.isNull(request.profilePictureFile)) {
3958
+ query["ProfilePictureFile"] = request.profilePictureFile;
3959
+ }
3960
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
3961
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
3962
+ }
3963
+ if (!$dara.isNull(request.resourceOwnerId)) {
3964
+ query["ResourceOwnerId"] = request.resourceOwnerId;
3965
+ }
3966
+ if (!$dara.isNull(request.subject)) {
3967
+ query["Subject"] = request.subject;
3968
+ }
3969
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3970
+ query: openapi_core_2.OpenApiUtil.query(query),
3971
+ });
3972
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3973
+ action: "UpdateChatGroup",
3974
+ version: "2020-06-06",
3975
+ protocol: "HTTPS",
3976
+ pathname: "/",
3977
+ method: "POST",
3978
+ authType: "AK",
3979
+ style: "RPC",
3980
+ reqBodyType: "formData",
3981
+ bodyType: "json",
3982
+ });
3983
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateChatGroupResponse({}));
3984
+ }
3985
+ /**
3986
+ * UpdateChatGroup
3987
+ *
3988
+ * @param request - UpdateChatGroupRequest
3989
+ * @returns UpdateChatGroupResponse
3990
+ */
3991
+ async updateChatGroup(request) {
3992
+ let runtime = new $dara.RuntimeOptions({});
3993
+ return await this.updateChatGroupWithOptions(request, runtime);
3994
+ }
3497
3995
  /**
3498
3996
  * Modifies the business settings of a phone number.
3499
3997
  *