@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/src/client.ts CHANGED
@@ -29,6 +29,142 @@ export default class Client extends OpenApi {
29
29
  return OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
30
30
  }
31
31
 
32
+ /**
33
+ * AddChatGroup
34
+ *
35
+ * @param request - AddChatGroupRequest
36
+ * @param runtime - runtime options for this request RuntimeOptions
37
+ * @returns AddChatGroupResponse
38
+ */
39
+ async addChatGroupWithOptions(request: $_model.AddChatGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.AddChatGroupResponse> {
40
+ request.validate();
41
+ let query = { };
42
+ if (!$dara.isNull(request.businessNumber)) {
43
+ query["BusinessNumber"] = request.businessNumber;
44
+ }
45
+
46
+ if (!$dara.isNull(request.channelType)) {
47
+ query["ChannelType"] = request.channelType;
48
+ }
49
+
50
+ if (!$dara.isNull(request.custSpaceId)) {
51
+ query["CustSpaceId"] = request.custSpaceId;
52
+ }
53
+
54
+ if (!$dara.isNull(request.description)) {
55
+ query["Description"] = request.description;
56
+ }
57
+
58
+ if (!$dara.isNull(request.ownerId)) {
59
+ query["OwnerId"] = request.ownerId;
60
+ }
61
+
62
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
63
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
64
+ }
65
+
66
+ if (!$dara.isNull(request.resourceOwnerId)) {
67
+ query["ResourceOwnerId"] = request.resourceOwnerId;
68
+ }
69
+
70
+ if (!$dara.isNull(request.subject)) {
71
+ query["Subject"] = request.subject;
72
+ }
73
+
74
+ let req = new $OpenApiUtil.OpenApiRequest({
75
+ query: OpenApiUtil.query(query),
76
+ });
77
+ let params = new $OpenApiUtil.Params({
78
+ action: "AddChatGroup",
79
+ version: "2020-06-06",
80
+ protocol: "HTTPS",
81
+ pathname: "/",
82
+ method: "POST",
83
+ authType: "AK",
84
+ style: "RPC",
85
+ reqBodyType: "formData",
86
+ bodyType: "json",
87
+ });
88
+ return $dara.cast<$_model.AddChatGroupResponse>(await this.callApi(params, req, runtime), new $_model.AddChatGroupResponse({}));
89
+ }
90
+
91
+ /**
92
+ * AddChatGroup
93
+ *
94
+ * @param request - AddChatGroupRequest
95
+ * @returns AddChatGroupResponse
96
+ */
97
+ async addChatGroup(request: $_model.AddChatGroupRequest): Promise<$_model.AddChatGroupResponse> {
98
+ let runtime = new $dara.RuntimeOptions({ });
99
+ return await this.addChatGroupWithOptions(request, runtime);
100
+ }
101
+
102
+ /**
103
+ * AddChatGroupInviteLink
104
+ *
105
+ * @param request - AddChatGroupInviteLinkRequest
106
+ * @param runtime - runtime options for this request RuntimeOptions
107
+ * @returns AddChatGroupInviteLinkResponse
108
+ */
109
+ async addChatGroupInviteLinkWithOptions(request: $_model.AddChatGroupInviteLinkRequest, runtime: $dara.RuntimeOptions): Promise<$_model.AddChatGroupInviteLinkResponse> {
110
+ request.validate();
111
+ let query = { };
112
+ if (!$dara.isNull(request.businessNumber)) {
113
+ query["BusinessNumber"] = request.businessNumber;
114
+ }
115
+
116
+ if (!$dara.isNull(request.channelType)) {
117
+ query["ChannelType"] = request.channelType;
118
+ }
119
+
120
+ if (!$dara.isNull(request.custSpaceId)) {
121
+ query["CustSpaceId"] = request.custSpaceId;
122
+ }
123
+
124
+ if (!$dara.isNull(request.groupId)) {
125
+ query["GroupId"] = request.groupId;
126
+ }
127
+
128
+ if (!$dara.isNull(request.ownerId)) {
129
+ query["OwnerId"] = request.ownerId;
130
+ }
131
+
132
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
133
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
134
+ }
135
+
136
+ if (!$dara.isNull(request.resourceOwnerId)) {
137
+ query["ResourceOwnerId"] = request.resourceOwnerId;
138
+ }
139
+
140
+ let req = new $OpenApiUtil.OpenApiRequest({
141
+ query: OpenApiUtil.query(query),
142
+ });
143
+ let params = new $OpenApiUtil.Params({
144
+ action: "AddChatGroupInviteLink",
145
+ version: "2020-06-06",
146
+ protocol: "HTTPS",
147
+ pathname: "/",
148
+ method: "POST",
149
+ authType: "AK",
150
+ style: "RPC",
151
+ reqBodyType: "formData",
152
+ bodyType: "json",
153
+ });
154
+ return $dara.cast<$_model.AddChatGroupInviteLinkResponse>(await this.callApi(params, req, runtime), new $_model.AddChatGroupInviteLinkResponse({}));
155
+ }
156
+
157
+ /**
158
+ * AddChatGroupInviteLink
159
+ *
160
+ * @param request - AddChatGroupInviteLinkRequest
161
+ * @returns AddChatGroupInviteLinkResponse
162
+ */
163
+ async addChatGroupInviteLink(request: $_model.AddChatGroupInviteLinkRequest): Promise<$_model.AddChatGroupInviteLinkResponse> {
164
+ let runtime = new $dara.RuntimeOptions({ });
165
+ return await this.addChatGroupInviteLinkWithOptions(request, runtime);
166
+ }
167
+
32
168
  /**
33
169
  * Adds a phone number for a WhatsApp Business account (WABA).
34
170
  *
@@ -1015,6 +1151,214 @@ export default class Client extends OpenApi {
1015
1151
  return await this.createPhoneMessageQrdlWithOptions(request, runtime);
1016
1152
  }
1017
1153
 
1154
+ /**
1155
+ * DeleteChatGroup
1156
+ *
1157
+ * @param request - DeleteChatGroupRequest
1158
+ * @param runtime - runtime options for this request RuntimeOptions
1159
+ * @returns DeleteChatGroupResponse
1160
+ */
1161
+ async deleteChatGroupWithOptions(request: $_model.DeleteChatGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteChatGroupResponse> {
1162
+ request.validate();
1163
+ let query = { };
1164
+ if (!$dara.isNull(request.businessNumber)) {
1165
+ query["BusinessNumber"] = request.businessNumber;
1166
+ }
1167
+
1168
+ if (!$dara.isNull(request.channelType)) {
1169
+ query["ChannelType"] = request.channelType;
1170
+ }
1171
+
1172
+ if (!$dara.isNull(request.custSpaceId)) {
1173
+ query["CustSpaceId"] = request.custSpaceId;
1174
+ }
1175
+
1176
+ if (!$dara.isNull(request.groupId)) {
1177
+ query["GroupId"] = request.groupId;
1178
+ }
1179
+
1180
+ if (!$dara.isNull(request.ownerId)) {
1181
+ query["OwnerId"] = request.ownerId;
1182
+ }
1183
+
1184
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
1185
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
1186
+ }
1187
+
1188
+ if (!$dara.isNull(request.resourceOwnerId)) {
1189
+ query["ResourceOwnerId"] = request.resourceOwnerId;
1190
+ }
1191
+
1192
+ let req = new $OpenApiUtil.OpenApiRequest({
1193
+ query: OpenApiUtil.query(query),
1194
+ });
1195
+ let params = new $OpenApiUtil.Params({
1196
+ action: "DeleteChatGroup",
1197
+ version: "2020-06-06",
1198
+ protocol: "HTTPS",
1199
+ pathname: "/",
1200
+ method: "POST",
1201
+ authType: "AK",
1202
+ style: "RPC",
1203
+ reqBodyType: "formData",
1204
+ bodyType: "json",
1205
+ });
1206
+ return $dara.cast<$_model.DeleteChatGroupResponse>(await this.callApi(params, req, runtime), new $_model.DeleteChatGroupResponse({}));
1207
+ }
1208
+
1209
+ /**
1210
+ * DeleteChatGroup
1211
+ *
1212
+ * @param request - DeleteChatGroupRequest
1213
+ * @returns DeleteChatGroupResponse
1214
+ */
1215
+ async deleteChatGroup(request: $_model.DeleteChatGroupRequest): Promise<$_model.DeleteChatGroupResponse> {
1216
+ let runtime = new $dara.RuntimeOptions({ });
1217
+ return await this.deleteChatGroupWithOptions(request, runtime);
1218
+ }
1219
+
1220
+ /**
1221
+ * DeleteChatGroupInviteLink
1222
+ *
1223
+ * @param request - DeleteChatGroupInviteLinkRequest
1224
+ * @param runtime - runtime options for this request RuntimeOptions
1225
+ * @returns DeleteChatGroupInviteLinkResponse
1226
+ */
1227
+ async deleteChatGroupInviteLinkWithOptions(request: $_model.DeleteChatGroupInviteLinkRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteChatGroupInviteLinkResponse> {
1228
+ request.validate();
1229
+ let query = { };
1230
+ if (!$dara.isNull(request.businessNumber)) {
1231
+ query["BusinessNumber"] = request.businessNumber;
1232
+ }
1233
+
1234
+ if (!$dara.isNull(request.channelType)) {
1235
+ query["ChannelType"] = request.channelType;
1236
+ }
1237
+
1238
+ if (!$dara.isNull(request.custSpaceId)) {
1239
+ query["CustSpaceId"] = request.custSpaceId;
1240
+ }
1241
+
1242
+ if (!$dara.isNull(request.groupId)) {
1243
+ query["GroupId"] = request.groupId;
1244
+ }
1245
+
1246
+ if (!$dara.isNull(request.ownerId)) {
1247
+ query["OwnerId"] = request.ownerId;
1248
+ }
1249
+
1250
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
1251
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
1252
+ }
1253
+
1254
+ if (!$dara.isNull(request.resourceOwnerId)) {
1255
+ query["ResourceOwnerId"] = request.resourceOwnerId;
1256
+ }
1257
+
1258
+ let req = new $OpenApiUtil.OpenApiRequest({
1259
+ query: OpenApiUtil.query(query),
1260
+ });
1261
+ let params = new $OpenApiUtil.Params({
1262
+ action: "DeleteChatGroupInviteLink",
1263
+ version: "2020-06-06",
1264
+ protocol: "HTTPS",
1265
+ pathname: "/",
1266
+ method: "POST",
1267
+ authType: "AK",
1268
+ style: "RPC",
1269
+ reqBodyType: "formData",
1270
+ bodyType: "json",
1271
+ });
1272
+ return $dara.cast<$_model.DeleteChatGroupInviteLinkResponse>(await this.callApi(params, req, runtime), new $_model.DeleteChatGroupInviteLinkResponse({}));
1273
+ }
1274
+
1275
+ /**
1276
+ * DeleteChatGroupInviteLink
1277
+ *
1278
+ * @param request - DeleteChatGroupInviteLinkRequest
1279
+ * @returns DeleteChatGroupInviteLinkResponse
1280
+ */
1281
+ async deleteChatGroupInviteLink(request: $_model.DeleteChatGroupInviteLinkRequest): Promise<$_model.DeleteChatGroupInviteLinkResponse> {
1282
+ let runtime = new $dara.RuntimeOptions({ });
1283
+ return await this.deleteChatGroupInviteLinkWithOptions(request, runtime);
1284
+ }
1285
+
1286
+ /**
1287
+ * DeleteChatGroupParticipants
1288
+ *
1289
+ * @param tmpReq - DeleteChatGroupParticipantsRequest
1290
+ * @param runtime - runtime options for this request RuntimeOptions
1291
+ * @returns DeleteChatGroupParticipantsResponse
1292
+ */
1293
+ async deleteChatGroupParticipantsWithOptions(tmpReq: $_model.DeleteChatGroupParticipantsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteChatGroupParticipantsResponse> {
1294
+ tmpReq.validate();
1295
+ let request = new $_model.DeleteChatGroupParticipantsShrinkRequest({ });
1296
+ OpenApiUtil.convert(tmpReq, request);
1297
+ if (!$dara.isNull(tmpReq.list)) {
1298
+ request.listShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.list, "List", "json");
1299
+ }
1300
+
1301
+ let query = { };
1302
+ if (!$dara.isNull(request.businessNumber)) {
1303
+ query["BusinessNumber"] = request.businessNumber;
1304
+ }
1305
+
1306
+ if (!$dara.isNull(request.channelType)) {
1307
+ query["ChannelType"] = request.channelType;
1308
+ }
1309
+
1310
+ if (!$dara.isNull(request.custSpaceId)) {
1311
+ query["CustSpaceId"] = request.custSpaceId;
1312
+ }
1313
+
1314
+ if (!$dara.isNull(request.groupId)) {
1315
+ query["GroupId"] = request.groupId;
1316
+ }
1317
+
1318
+ if (!$dara.isNull(request.listShrink)) {
1319
+ query["List"] = request.listShrink;
1320
+ }
1321
+
1322
+ if (!$dara.isNull(request.ownerId)) {
1323
+ query["OwnerId"] = request.ownerId;
1324
+ }
1325
+
1326
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
1327
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
1328
+ }
1329
+
1330
+ if (!$dara.isNull(request.resourceOwnerId)) {
1331
+ query["ResourceOwnerId"] = request.resourceOwnerId;
1332
+ }
1333
+
1334
+ let req = new $OpenApiUtil.OpenApiRequest({
1335
+ query: OpenApiUtil.query(query),
1336
+ });
1337
+ let params = new $OpenApiUtil.Params({
1338
+ action: "DeleteChatGroupParticipants",
1339
+ version: "2020-06-06",
1340
+ protocol: "HTTPS",
1341
+ pathname: "/",
1342
+ method: "POST",
1343
+ authType: "AK",
1344
+ style: "RPC",
1345
+ reqBodyType: "formData",
1346
+ bodyType: "json",
1347
+ });
1348
+ return $dara.cast<$_model.DeleteChatGroupParticipantsResponse>(await this.callApi(params, req, runtime), new $_model.DeleteChatGroupParticipantsResponse({}));
1349
+ }
1350
+
1351
+ /**
1352
+ * DeleteChatGroupParticipants
1353
+ *
1354
+ * @param request - DeleteChatGroupParticipantsRequest
1355
+ * @returns DeleteChatGroupParticipantsResponse
1356
+ */
1357
+ async deleteChatGroupParticipants(request: $_model.DeleteChatGroupParticipantsRequest): Promise<$_model.DeleteChatGroupParticipantsResponse> {
1358
+ let runtime = new $dara.RuntimeOptions({ });
1359
+ return await this.deleteChatGroupParticipantsWithOptions(request, runtime);
1360
+ }
1361
+
1018
1362
  /**
1019
1363
  * Deletes a message template.
1020
1364
  *
@@ -2387,6 +2731,162 @@ export default class Client extends OpenApi {
2387
2731
  return await this.isvGetAppIdWithOptions(request, runtime);
2388
2732
  }
2389
2733
 
2734
+ /**
2735
+ * ListChatGroup
2736
+ *
2737
+ * @param tmpReq - ListChatGroupRequest
2738
+ * @param runtime - runtime options for this request RuntimeOptions
2739
+ * @returns ListChatGroupResponse
2740
+ */
2741
+ async listChatGroupWithOptions(tmpReq: $_model.ListChatGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListChatGroupResponse> {
2742
+ tmpReq.validate();
2743
+ let request = new $_model.ListChatGroupShrinkRequest({ });
2744
+ OpenApiUtil.convert(tmpReq, request);
2745
+ if (!$dara.isNull(tmpReq.page)) {
2746
+ request.pageShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.page, "Page", "json");
2747
+ }
2748
+
2749
+ let query = { };
2750
+ if (!$dara.isNull(request.businessNumber)) {
2751
+ query["BusinessNumber"] = request.businessNumber;
2752
+ }
2753
+
2754
+ if (!$dara.isNull(request.channelType)) {
2755
+ query["ChannelType"] = request.channelType;
2756
+ }
2757
+
2758
+ if (!$dara.isNull(request.custSpaceId)) {
2759
+ query["CustSpaceId"] = request.custSpaceId;
2760
+ }
2761
+
2762
+ if (!$dara.isNull(request.groupStatus)) {
2763
+ query["GroupStatus"] = request.groupStatus;
2764
+ }
2765
+
2766
+ if (!$dara.isNull(request.ownerId)) {
2767
+ query["OwnerId"] = request.ownerId;
2768
+ }
2769
+
2770
+ if (!$dara.isNull(request.pageShrink)) {
2771
+ query["Page"] = request.pageShrink;
2772
+ }
2773
+
2774
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
2775
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
2776
+ }
2777
+
2778
+ if (!$dara.isNull(request.resourceOwnerId)) {
2779
+ query["ResourceOwnerId"] = request.resourceOwnerId;
2780
+ }
2781
+
2782
+ if (!$dara.isNull(request.subject)) {
2783
+ query["Subject"] = request.subject;
2784
+ }
2785
+
2786
+ let req = new $OpenApiUtil.OpenApiRequest({
2787
+ query: OpenApiUtil.query(query),
2788
+ });
2789
+ let params = new $OpenApiUtil.Params({
2790
+ action: "ListChatGroup",
2791
+ version: "2020-06-06",
2792
+ protocol: "HTTPS",
2793
+ pathname: "/",
2794
+ method: "POST",
2795
+ authType: "AK",
2796
+ style: "RPC",
2797
+ reqBodyType: "formData",
2798
+ bodyType: "json",
2799
+ });
2800
+ return $dara.cast<$_model.ListChatGroupResponse>(await this.callApi(params, req, runtime), new $_model.ListChatGroupResponse({}));
2801
+ }
2802
+
2803
+ /**
2804
+ * ListChatGroup
2805
+ *
2806
+ * @param request - ListChatGroupRequest
2807
+ * @returns ListChatGroupResponse
2808
+ */
2809
+ async listChatGroup(request: $_model.ListChatGroupRequest): Promise<$_model.ListChatGroupResponse> {
2810
+ let runtime = new $dara.RuntimeOptions({ });
2811
+ return await this.listChatGroupWithOptions(request, runtime);
2812
+ }
2813
+
2814
+ /**
2815
+ * ListChatGroupParticipants
2816
+ *
2817
+ * @param tmpReq - ListChatGroupParticipantsRequest
2818
+ * @param runtime - runtime options for this request RuntimeOptions
2819
+ * @returns ListChatGroupParticipantsResponse
2820
+ */
2821
+ async listChatGroupParticipantsWithOptions(tmpReq: $_model.ListChatGroupParticipantsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListChatGroupParticipantsResponse> {
2822
+ tmpReq.validate();
2823
+ let request = new $_model.ListChatGroupParticipantsShrinkRequest({ });
2824
+ OpenApiUtil.convert(tmpReq, request);
2825
+ if (!$dara.isNull(tmpReq.page)) {
2826
+ request.pageShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.page, "Page", "json");
2827
+ }
2828
+
2829
+ let query = { };
2830
+ if (!$dara.isNull(request.businessNumber)) {
2831
+ query["BusinessNumber"] = request.businessNumber;
2832
+ }
2833
+
2834
+ if (!$dara.isNull(request.channelType)) {
2835
+ query["ChannelType"] = request.channelType;
2836
+ }
2837
+
2838
+ if (!$dara.isNull(request.custSpaceId)) {
2839
+ query["CustSpaceId"] = request.custSpaceId;
2840
+ }
2841
+
2842
+ if (!$dara.isNull(request.groupId)) {
2843
+ query["GroupId"] = request.groupId;
2844
+ }
2845
+
2846
+ if (!$dara.isNull(request.ownerId)) {
2847
+ query["OwnerId"] = request.ownerId;
2848
+ }
2849
+
2850
+ if (!$dara.isNull(request.pageShrink)) {
2851
+ query["Page"] = request.pageShrink;
2852
+ }
2853
+
2854
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
2855
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
2856
+ }
2857
+
2858
+ if (!$dara.isNull(request.resourceOwnerId)) {
2859
+ query["ResourceOwnerId"] = request.resourceOwnerId;
2860
+ }
2861
+
2862
+ let req = new $OpenApiUtil.OpenApiRequest({
2863
+ query: OpenApiUtil.query(query),
2864
+ });
2865
+ let params = new $OpenApiUtil.Params({
2866
+ action: "ListChatGroupParticipants",
2867
+ version: "2020-06-06",
2868
+ protocol: "HTTPS",
2869
+ pathname: "/",
2870
+ method: "POST",
2871
+ authType: "AK",
2872
+ style: "RPC",
2873
+ reqBodyType: "formData",
2874
+ bodyType: "json",
2875
+ });
2876
+ return $dara.cast<$_model.ListChatGroupParticipantsResponse>(await this.callApi(params, req, runtime), new $_model.ListChatGroupParticipantsResponse({}));
2877
+ }
2878
+
2879
+ /**
2880
+ * ListChatGroupParticipants
2881
+ *
2882
+ * @param request - ListChatGroupParticipantsRequest
2883
+ * @returns ListChatGroupParticipantsResponse
2884
+ */
2885
+ async listChatGroupParticipants(request: $_model.ListChatGroupParticipantsRequest): Promise<$_model.ListChatGroupParticipantsResponse> {
2886
+ let runtime = new $dara.RuntimeOptions({ });
2887
+ return await this.listChatGroupParticipantsWithOptions(request, runtime);
2888
+ }
2889
+
2390
2890
  /**
2391
2891
  * Queries message templates.
2392
2892
  *
@@ -3635,6 +4135,10 @@ export default class Client extends OpenApi {
3635
4135
  body["ProductAction"] = request.productActionShrink;
3636
4136
  }
3637
4137
 
4138
+ if (!$dara.isNull(request.recipientType)) {
4139
+ body["RecipientType"] = request.recipientType;
4140
+ }
4141
+
3638
4142
  if (!$dara.isNull(request.tag)) {
3639
4143
  body["Tag"] = request.tag;
3640
4144
  }
@@ -3923,6 +4427,84 @@ export default class Client extends OpenApi {
3923
4427
  return await this.updateAccountWebhookWithOptions(request, runtime);
3924
4428
  }
3925
4429
 
4430
+ /**
4431
+ * UpdateChatGroup
4432
+ *
4433
+ * @param request - UpdateChatGroupRequest
4434
+ * @param runtime - runtime options for this request RuntimeOptions
4435
+ * @returns UpdateChatGroupResponse
4436
+ */
4437
+ async updateChatGroupWithOptions(request: $_model.UpdateChatGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateChatGroupResponse> {
4438
+ request.validate();
4439
+ let query = { };
4440
+ if (!$dara.isNull(request.businessNumber)) {
4441
+ query["BusinessNumber"] = request.businessNumber;
4442
+ }
4443
+
4444
+ if (!$dara.isNull(request.channelType)) {
4445
+ query["ChannelType"] = request.channelType;
4446
+ }
4447
+
4448
+ if (!$dara.isNull(request.custSpaceId)) {
4449
+ query["CustSpaceId"] = request.custSpaceId;
4450
+ }
4451
+
4452
+ if (!$dara.isNull(request.description)) {
4453
+ query["Description"] = request.description;
4454
+ }
4455
+
4456
+ if (!$dara.isNull(request.groupId)) {
4457
+ query["GroupId"] = request.groupId;
4458
+ }
4459
+
4460
+ if (!$dara.isNull(request.ownerId)) {
4461
+ query["OwnerId"] = request.ownerId;
4462
+ }
4463
+
4464
+ if (!$dara.isNull(request.profilePictureFile)) {
4465
+ query["ProfilePictureFile"] = request.profilePictureFile;
4466
+ }
4467
+
4468
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
4469
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
4470
+ }
4471
+
4472
+ if (!$dara.isNull(request.resourceOwnerId)) {
4473
+ query["ResourceOwnerId"] = request.resourceOwnerId;
4474
+ }
4475
+
4476
+ if (!$dara.isNull(request.subject)) {
4477
+ query["Subject"] = request.subject;
4478
+ }
4479
+
4480
+ let req = new $OpenApiUtil.OpenApiRequest({
4481
+ query: OpenApiUtil.query(query),
4482
+ });
4483
+ let params = new $OpenApiUtil.Params({
4484
+ action: "UpdateChatGroup",
4485
+ version: "2020-06-06",
4486
+ protocol: "HTTPS",
4487
+ pathname: "/",
4488
+ method: "POST",
4489
+ authType: "AK",
4490
+ style: "RPC",
4491
+ reqBodyType: "formData",
4492
+ bodyType: "json",
4493
+ });
4494
+ return $dara.cast<$_model.UpdateChatGroupResponse>(await this.callApi(params, req, runtime), new $_model.UpdateChatGroupResponse({}));
4495
+ }
4496
+
4497
+ /**
4498
+ * UpdateChatGroup
4499
+ *
4500
+ * @param request - UpdateChatGroupRequest
4501
+ * @returns UpdateChatGroupResponse
4502
+ */
4503
+ async updateChatGroup(request: $_model.UpdateChatGroupRequest): Promise<$_model.UpdateChatGroupResponse> {
4504
+ let runtime = new $dara.RuntimeOptions({ });
4505
+ return await this.updateChatGroupWithOptions(request, runtime);
4506
+ }
4507
+
3926
4508
  /**
3927
4509
  * Modifies the business settings of a phone number.
3928
4510
  *
@@ -0,0 +1,70 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class AddChatGroupInviteLinkRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * This parameter is required.
9
+ *
10
+ * @example
11
+ * 8613800***
12
+ */
13
+ businessNumber?: string;
14
+ /**
15
+ * @example
16
+ * WHATSAPP
17
+ */
18
+ channelType?: string;
19
+ /**
20
+ * @remarks
21
+ * This parameter is required.
22
+ *
23
+ * @example
24
+ * cams-x***
25
+ */
26
+ custSpaceId?: string;
27
+ /**
28
+ * @remarks
29
+ * This parameter is required.
30
+ *
31
+ * @example
32
+ * E93kdk****
33
+ */
34
+ groupId?: string;
35
+ ownerId?: number;
36
+ resourceOwnerAccount?: string;
37
+ resourceOwnerId?: number;
38
+ static names(): { [key: string]: string } {
39
+ return {
40
+ businessNumber: 'BusinessNumber',
41
+ channelType: 'ChannelType',
42
+ custSpaceId: 'CustSpaceId',
43
+ groupId: 'GroupId',
44
+ ownerId: 'OwnerId',
45
+ resourceOwnerAccount: 'ResourceOwnerAccount',
46
+ resourceOwnerId: 'ResourceOwnerId',
47
+ };
48
+ }
49
+
50
+ static types(): { [key: string]: any } {
51
+ return {
52
+ businessNumber: 'string',
53
+ channelType: 'string',
54
+ custSpaceId: 'string',
55
+ groupId: 'string',
56
+ ownerId: 'number',
57
+ resourceOwnerAccount: 'string',
58
+ resourceOwnerId: 'number',
59
+ };
60
+ }
61
+
62
+ validate() {
63
+ super.validate();
64
+ }
65
+
66
+ constructor(map?: { [key: string]: any }) {
67
+ super(map);
68
+ }
69
+ }
70
+