@alicloud/cams20200606 5.4.0 → 5.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +48 -46
- package/dist/client.js +57 -46
- package/dist/client.js.map +1 -1
- package/dist/models/AddChatGroupRequest.d.ts +5 -5
- package/dist/models/AddChatGroupResponseBody.d.ts +3 -3
- package/dist/models/ChatappBindWabaRequest.d.ts +8 -0
- package/dist/models/ChatappBindWabaRequest.js +2 -0
- package/dist/models/ChatappBindWabaRequest.js.map +1 -1
- package/dist/models/ChatappBindWabaResponseBody.d.ts +3 -3
- package/dist/models/CreateChatFlowByImportResponseBody.d.ts +3 -0
- package/dist/models/CreateChatFlowByImportResponseBody.js.map +1 -1
- package/dist/models/CreateChatFlowLogSettingResponseBody.d.ts +3 -0
- package/dist/models/CreateChatFlowLogSettingResponseBody.js.map +1 -1
- package/dist/models/CreateChatFlowResponseBody.d.ts +6 -0
- package/dist/models/CreateChatFlowResponseBody.js.map +1 -1
- package/dist/models/CreateChatappTemplateRequest.d.ts +99 -183
- package/dist/models/CreateChatappTemplateRequest.js.map +1 -1
- package/dist/models/CreateChatappTemplateResponseBody.d.ts +7 -5
- package/dist/models/CreateChatappTemplateResponseBody.js.map +1 -1
- package/dist/models/CreateChatappTemplateShrinkRequest.d.ts +35 -36
- package/dist/models/CreateChatappTemplateShrinkRequest.js.map +1 -1
- package/dist/models/CreateFlowVersionResponseBody.d.ts +3 -0
- package/dist/models/CreateFlowVersionResponseBody.js.map +1 -1
- package/dist/models/DeleteChatFlowResponseBody.d.ts +3 -0
- package/dist/models/DeleteChatFlowResponseBody.js.map +1 -1
- package/dist/models/GetAutoGeneratedTemplateRequest.d.ts +1 -1
- package/dist/models/GetChatFlowMetricResponseBody.d.ts +3 -0
- package/dist/models/GetChatFlowMetricResponseBody.js.map +1 -1
- package/dist/models/GetChatFlowTemplateResponseBody.d.ts +3 -0
- package/dist/models/GetChatFlowTemplateResponseBody.js.map +1 -1
- package/dist/models/GetChatappTemplateDetailResponseBody.d.ts +1 -1
- package/dist/models/GetInstagramUserInfoRequest.d.ts +1 -1
- package/dist/models/GetInstagramUserInfoResponseBody.d.ts +5 -5
- package/dist/models/GetMessageCampaignInsightsResponseBody.d.ts +1 -1
- package/dist/models/GetMessengerUserInfoResponseBody.d.ts +1 -1
- package/dist/models/GetPhoneEncryptionPublicKeyRequest.d.ts +2 -7
- package/dist/models/GetPhoneEncryptionPublicKeyRequest.js.map +1 -1
- package/dist/models/GetPhoneEncryptionPublicKeyResponseBody.d.ts +8 -4
- package/dist/models/GetPhoneEncryptionPublicKeyResponseBody.js.map +1 -1
- package/dist/models/ListChatFlowResponseBody.d.ts +3 -0
- package/dist/models/ListChatFlowResponseBody.js.map +1 -1
- package/dist/models/ListChatFlowTemplateResponseBody.d.ts +3 -0
- package/dist/models/ListChatFlowTemplateResponseBody.js.map +1 -1
- package/dist/models/ListChatappMessageRequest.d.ts +5 -0
- package/dist/models/ListChatappMessageRequest.js +2 -0
- package/dist/models/ListChatappMessageRequest.js.map +1 -1
- package/dist/models/ListChatappMessageShrinkRequest.d.ts +5 -0
- package/dist/models/ListChatappMessageShrinkRequest.js +2 -0
- package/dist/models/ListChatappMessageShrinkRequest.js.map +1 -1
- package/dist/models/ListFlowNodePrototypeV2responseBody.d.ts +1 -1
- package/dist/models/ListFlowVersionResponseBody.d.ts +3 -0
- package/dist/models/ListFlowVersionResponseBody.js.map +1 -1
- package/dist/models/ListInstanceRequest.d.ts +3 -0
- package/dist/models/ListInstanceRequest.js.map +1 -1
- package/dist/models/ListMessengerSubscriptionTokenResponseBody.d.ts +2 -2
- package/dist/models/ModifyChatappTemplateRequest.d.ts +36 -27
- package/dist/models/ModifyChatappTemplateRequest.js.map +1 -1
- package/dist/models/ModifyChatappTemplateResponseBody.d.ts +5 -7
- package/dist/models/ModifyChatappTemplateResponseBody.js.map +1 -1
- package/dist/models/ModifyChatappTemplateShrinkRequest.d.ts +19 -10
- package/dist/models/ModifyChatappTemplateShrinkRequest.js.map +1 -1
- package/dist/models/MoveContactToGroupResponseBody.d.ts +3 -0
- package/dist/models/MoveContactToGroupResponseBody.js.map +1 -1
- package/dist/models/OfflineFlowVersionResponseBody.d.ts +3 -0
- package/dist/models/OfflineFlowVersionResponseBody.js.map +1 -1
- package/dist/models/OnlineFlowVersionResponseBody.d.ts +3 -0
- package/dist/models/OnlineFlowVersionResponseBody.js.map +1 -1
- package/dist/models/QueryChatappBindWabaRequest.d.ts +1 -1
- package/dist/models/QueryChatappBindWabaResponseBody.d.ts +21 -13
- package/dist/models/QueryChatappBindWabaResponseBody.js +2 -0
- package/dist/models/QueryChatappBindWabaResponseBody.js.map +1 -1
- package/dist/models/ReadChatFlowLogSettingResponseBody.d.ts +3 -0
- package/dist/models/ReadChatFlowLogSettingResponseBody.js.map +1 -1
- package/dist/models/ReadChatFlowResponseBody.d.ts +3 -0
- package/dist/models/ReadChatFlowResponseBody.js.map +1 -1
- package/dist/models/ReadFlowVersionResponseBody.d.ts +3 -0
- package/dist/models/ReadFlowVersionResponseBody.js.map +1 -1
- package/dist/models/SendChatappMassMessageRequest.d.ts +4 -4
- package/dist/models/SendChatappMassMessageShrinkRequest.d.ts +1 -1
- package/dist/models/TriggerChatFlowRequest.d.ts +3 -3
- package/dist/models/TriggerChatFlowResponseBody.d.ts +2 -2
- package/dist/models/TriggerChatFlowShrinkRequest.d.ts +3 -3
- package/dist/models/UpdateChatFlowLogSettingResponseBody.d.ts +3 -0
- package/dist/models/UpdateChatFlowLogSettingResponseBody.js.map +1 -1
- package/dist/models/UpdateChatFlowResponseBody.d.ts +3 -0
- package/dist/models/UpdateChatFlowResponseBody.js.map +1 -1
- package/dist/models/UpdatePhoneEncryptionPublicKeyRequest.d.ts +8 -4
- package/dist/models/UpdatePhoneEncryptionPublicKeyRequest.js.map +1 -1
- package/dist/models/WhatsappCallRequest.d.ts +10 -2
- package/dist/models/WhatsappCallRequest.js +2 -0
- package/dist/models/WhatsappCallRequest.js.map +1 -1
- package/dist/models/WhatsappCallResponseBody.d.ts +5 -5
- package/dist/models/WhatsappCallShrinkRequest.d.ts +9 -1
- package/dist/models/WhatsappCallShrinkRequest.js +2 -0
- package/dist/models/WhatsappCallShrinkRequest.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +60 -46
- package/src/models/AddChatGroupRequest.ts +5 -5
- package/src/models/AddChatGroupResponseBody.ts +3 -3
- package/src/models/ChatappBindWabaRequest.ts +10 -0
- package/src/models/ChatappBindWabaResponseBody.ts +3 -3
- package/src/models/CreateChatFlowByImportResponseBody.ts +3 -0
- package/src/models/CreateChatFlowLogSettingResponseBody.ts +3 -0
- package/src/models/CreateChatFlowResponseBody.ts +6 -0
- package/src/models/CreateChatappTemplateRequest.ts +101 -185
- package/src/models/CreateChatappTemplateResponseBody.ts +7 -5
- package/src/models/CreateChatappTemplateShrinkRequest.ts +37 -38
- package/src/models/CreateFlowVersionResponseBody.ts +3 -0
- package/src/models/DeleteChatFlowResponseBody.ts +3 -0
- package/src/models/GetAutoGeneratedTemplateRequest.ts +1 -1
- package/src/models/GetChatFlowMetricResponseBody.ts +3 -0
- package/src/models/GetChatFlowTemplateResponseBody.ts +3 -0
- package/src/models/GetChatappTemplateDetailResponseBody.ts +1 -1
- package/src/models/GetInstagramUserInfoRequest.ts +1 -1
- package/src/models/GetInstagramUserInfoResponseBody.ts +5 -5
- package/src/models/GetMessageCampaignInsightsResponseBody.ts +1 -1
- package/src/models/GetMessengerUserInfoResponseBody.ts +1 -1
- package/src/models/GetPhoneEncryptionPublicKeyRequest.ts +2 -7
- package/src/models/GetPhoneEncryptionPublicKeyResponseBody.ts +8 -4
- package/src/models/ListChatFlowResponseBody.ts +3 -0
- package/src/models/ListChatFlowTemplateResponseBody.ts +3 -0
- package/src/models/ListChatappMessageRequest.ts +7 -0
- package/src/models/ListChatappMessageShrinkRequest.ts +7 -0
- package/src/models/ListFlowNodePrototypeV2responseBody.ts +1 -1
- package/src/models/ListFlowVersionResponseBody.ts +3 -0
- package/src/models/ListInstanceRequest.ts +3 -0
- package/src/models/ListMessengerSubscriptionTokenResponseBody.ts +2 -2
- package/src/models/ModifyChatappTemplateRequest.ts +36 -27
- package/src/models/ModifyChatappTemplateResponseBody.ts +5 -7
- package/src/models/ModifyChatappTemplateShrinkRequest.ts +19 -10
- package/src/models/MoveContactToGroupResponseBody.ts +3 -0
- package/src/models/OfflineFlowVersionResponseBody.ts +3 -0
- package/src/models/OnlineFlowVersionResponseBody.ts +3 -0
- package/src/models/QueryChatappBindWabaRequest.ts +1 -1
- package/src/models/QueryChatappBindWabaResponseBody.ts +23 -13
- package/src/models/ReadChatFlowLogSettingResponseBody.ts +3 -0
- package/src/models/ReadChatFlowResponseBody.ts +3 -0
- package/src/models/ReadFlowVersionResponseBody.ts +3 -0
- package/src/models/SendChatappMassMessageRequest.ts +4 -4
- package/src/models/SendChatappMassMessageShrinkRequest.ts +1 -1
- package/src/models/TriggerChatFlowRequest.ts +3 -3
- package/src/models/TriggerChatFlowResponseBody.ts +2 -2
- package/src/models/TriggerChatFlowShrinkRequest.ts +3 -3
- package/src/models/UpdateChatFlowLogSettingResponseBody.ts +3 -0
- package/src/models/UpdateChatFlowResponseBody.ts +3 -0
- package/src/models/UpdatePhoneEncryptionPublicKeyRequest.ts +8 -4
- package/src/models/WhatsappCallRequest.ts +12 -2
- package/src/models/WhatsappCallResponseBody.ts +5 -5
- package/src/models/WhatsappCallShrinkRequest.ts +11 -1
package/src/client.ts
CHANGED
|
@@ -173,10 +173,11 @@ export default class Client extends OpenApi {
|
|
|
173
173
|
* Creates an IM group.
|
|
174
174
|
*
|
|
175
175
|
* @remarks
|
|
176
|
-
* >
|
|
177
|
-
* - You can
|
|
176
|
+
* <notice>The feature to create an IM group by calling API operations is available only to customers with an official Meta business account (OBA).</notice>
|
|
177
|
+
* - You can obtain your OBA information from the [Meta official documentation](https://developers.facebook.com/documentation/business-messaging/whatsapp/groups).
|
|
178
|
+
* - You can call this operation to create an IM group. Currently, you can create an IM group only by calling API operations.
|
|
178
179
|
* - After the group is created, you can call the [AddChatGroupInviteLink](https://help.aliyun.com/document_detail/3019211.html) operation to add an invitation link and invite members to join the IM group.
|
|
179
|
-
* -
|
|
180
|
+
* - For a group whose channel type is WhatsApp, the maximum number of members is 8.
|
|
180
181
|
*
|
|
181
182
|
* @param request - AddChatGroupRequest
|
|
182
183
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -242,10 +243,11 @@ export default class Client extends OpenApi {
|
|
|
242
243
|
* Creates an IM group.
|
|
243
244
|
*
|
|
244
245
|
* @remarks
|
|
245
|
-
* >
|
|
246
|
-
* - You can
|
|
246
|
+
* <notice>The feature to create an IM group by calling API operations is available only to customers with an official Meta business account (OBA).</notice>
|
|
247
|
+
* - You can obtain your OBA information from the [Meta official documentation](https://developers.facebook.com/documentation/business-messaging/whatsapp/groups).
|
|
248
|
+
* - You can call this operation to create an IM group. Currently, you can create an IM group only by calling API operations.
|
|
247
249
|
* - After the group is created, you can call the [AddChatGroupInviteLink](https://help.aliyun.com/document_detail/3019211.html) operation to add an invitation link and invite members to join the IM group.
|
|
248
|
-
* -
|
|
250
|
+
* - For a group whose channel type is WhatsApp, the maximum number of members is 8.
|
|
249
251
|
*
|
|
250
252
|
* @param request - AddChatGroupRequest
|
|
251
253
|
* @returns AddChatGroupResponse
|
|
@@ -1109,7 +1111,7 @@ export default class Client extends OpenApi {
|
|
|
1109
1111
|
* Binds a WABA to the northbound interface.
|
|
1110
1112
|
*
|
|
1111
1113
|
* @remarks
|
|
1112
|
-
* The queries per second (QPS)
|
|
1114
|
+
* The rate limit for this API operation is 10 queries per second (QPS) per user. Exceeding this limit triggers throttling, which may affect your services. Call this API operation at a reasonable frequency.
|
|
1113
1115
|
*
|
|
1114
1116
|
* @param request - ChatappBindWabaRequest
|
|
1115
1117
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1118,6 +1120,10 @@ export default class Client extends OpenApi {
|
|
|
1118
1120
|
async chatappBindWabaWithOptions(request: $_model.ChatappBindWabaRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ChatappBindWabaResponse> {
|
|
1119
1121
|
request.validate();
|
|
1120
1122
|
let query = { };
|
|
1123
|
+
if (!$dara.isNull(request.currency)) {
|
|
1124
|
+
query["Currency"] = request.currency;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1121
1127
|
if (!$dara.isNull(request.ownerId)) {
|
|
1122
1128
|
query["OwnerId"] = request.ownerId;
|
|
1123
1129
|
}
|
|
@@ -1155,7 +1161,7 @@ export default class Client extends OpenApi {
|
|
|
1155
1161
|
* Binds a WABA to the northbound interface.
|
|
1156
1162
|
*
|
|
1157
1163
|
* @remarks
|
|
1158
|
-
* The queries per second (QPS)
|
|
1164
|
+
* The rate limit for this API operation is 10 queries per second (QPS) per user. Exceeding this limit triggers throttling, which may affect your services. Call this API operation at a reasonable frequency.
|
|
1159
1165
|
*
|
|
1160
1166
|
* @param request - ChatappBindWabaRequest
|
|
1161
1167
|
* @returns ChatappBindWabaResponse
|
|
@@ -2012,11 +2018,11 @@ export default class Client extends OpenApi {
|
|
|
2012
2018
|
}
|
|
2013
2019
|
|
|
2014
2020
|
/**
|
|
2015
|
-
* Creates a message template.
|
|
2021
|
+
* Creates a message template. Messages can be sent after the template is approved.
|
|
2016
2022
|
*
|
|
2017
2023
|
* @remarks
|
|
2018
2024
|
* ### QPS limit
|
|
2019
|
-
* The QPS limit for a single user calling this API operation is 50. If the limit is exceeded, API calls are throttled, which may affect your business. Call this API operation at a reasonable rate.
|
|
2025
|
+
* The QPS limit for a single user calling this API operation is 50 calls per second. If the limit is exceeded, API calls are throttled, which may affect your business. Call this API operation at a reasonable rate.
|
|
2020
2026
|
* ### Status changes
|
|
2021
2027
|
* You can listen for template status and quality changes by using MNS or HTTP. For more information, see [Message receipts](https://help.aliyun.com/document_detail/421545.html).
|
|
2022
2028
|
*
|
|
@@ -2107,11 +2113,11 @@ export default class Client extends OpenApi {
|
|
|
2107
2113
|
}
|
|
2108
2114
|
|
|
2109
2115
|
/**
|
|
2110
|
-
* Creates a message template.
|
|
2116
|
+
* Creates a message template. Messages can be sent after the template is approved.
|
|
2111
2117
|
*
|
|
2112
2118
|
* @remarks
|
|
2113
2119
|
* ### QPS limit
|
|
2114
|
-
* The QPS limit for a single user calling this API operation is 50. If the limit is exceeded, API calls are throttled, which may affect your business. Call this API operation at a reasonable rate.
|
|
2120
|
+
* The QPS limit for a single user calling this API operation is 50 calls per second. If the limit is exceeded, API calls are throttled, which may affect your business. Call this API operation at a reasonable rate.
|
|
2115
2121
|
* ### Status changes
|
|
2116
2122
|
* You can listen for template status and quality changes by using MNS or HTTP. For more information, see [Message receipts](https://help.aliyun.com/document_detail/421545.html).
|
|
2117
2123
|
*
|
|
@@ -6133,10 +6139,10 @@ export default class Client extends OpenApi {
|
|
|
6133
6139
|
* Retrieves the encryption public key of a phone number.
|
|
6134
6140
|
*
|
|
6135
6141
|
* @remarks
|
|
6136
|
-
* - Before calling this operation, make sure that a phone number has been added
|
|
6137
|
-
* - If no phone number has been added
|
|
6142
|
+
* - Before calling this operation, make sure that a phone number has been added to your WhatsApp Business Account (WABA) and has passed phone number verification.
|
|
6143
|
+
* - If no phone number has been added to your WABA, call the [GetChatappVerifyCode](https://help.aliyun.com/document_detail/600746.html) and [ChatappVerifyAndRegister](https://help.aliyun.com/document_detail/600770.html) operations to obtain a verification code, verify the code, and register the phone number.
|
|
6138
6144
|
* #### QPS limit
|
|
6139
|
-
* The
|
|
6145
|
+
* The Queries Per Second (QPS) limit per user for this operation is 5. If the limit is exceeded, API calls are throttled, which may affect your business. Call this operation at a reasonable frequency.
|
|
6140
6146
|
*
|
|
6141
6147
|
* @param request - GetPhoneEncryptionPublicKeyRequest
|
|
6142
6148
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -6186,10 +6192,10 @@ export default class Client extends OpenApi {
|
|
|
6186
6192
|
* Retrieves the encryption public key of a phone number.
|
|
6187
6193
|
*
|
|
6188
6194
|
* @remarks
|
|
6189
|
-
* - Before calling this operation, make sure that a phone number has been added
|
|
6190
|
-
* - If no phone number has been added
|
|
6195
|
+
* - Before calling this operation, make sure that a phone number has been added to your WhatsApp Business Account (WABA) and has passed phone number verification.
|
|
6196
|
+
* - If no phone number has been added to your WABA, call the [GetChatappVerifyCode](https://help.aliyun.com/document_detail/600746.html) and [ChatappVerifyAndRegister](https://help.aliyun.com/document_detail/600770.html) operations to obtain a verification code, verify the code, and register the phone number.
|
|
6191
6197
|
* #### QPS limit
|
|
6192
|
-
* The
|
|
6198
|
+
* The Queries Per Second (QPS) limit per user for this operation is 5. If the limit is exceeded, API calls are throttled, which may affect your business. Call this operation at a reasonable frequency.
|
|
6193
6199
|
*
|
|
6194
6200
|
* @param request - GetPhoneEncryptionPublicKeyRequest
|
|
6195
6201
|
* @returns GetPhoneEncryptionPublicKeyResponse
|
|
@@ -7478,6 +7484,10 @@ export default class Client extends OpenApi {
|
|
|
7478
7484
|
query["GroupMessageId"] = request.groupMessageId;
|
|
7479
7485
|
}
|
|
7480
7486
|
|
|
7487
|
+
if (!$dara.isNull(request.messageItem)) {
|
|
7488
|
+
query["MessageItem"] = request.messageItem;
|
|
7489
|
+
}
|
|
7490
|
+
|
|
7481
7491
|
if (!$dara.isNull(request.messageStatus)) {
|
|
7482
7492
|
query["MessageStatus"] = request.messageStatus;
|
|
7483
7493
|
}
|
|
@@ -9042,13 +9052,13 @@ export default class Client extends OpenApi {
|
|
|
9042
9052
|
}
|
|
9043
9053
|
|
|
9044
9054
|
/**
|
|
9045
|
-
* Modifies a message template.
|
|
9055
|
+
* Modifies a message template. You can only modify templates that are pending review or have failed the review.
|
|
9046
9056
|
*
|
|
9047
9057
|
* @remarks
|
|
9048
9058
|
* ### QPS limit
|
|
9049
|
-
* The
|
|
9059
|
+
* The QPS limit for a single user is 50 calls per second. If the limit is exceeded, API calls are throttled, which may affect your business. Make API calls at a reasonable rate.
|
|
9050
9060
|
* ### Status changes
|
|
9051
|
-
* You can listen for template status and quality
|
|
9061
|
+
* You can listen for changes in template status and quality by using MNS or HTTP. For more information, see [Receipt messages](https://help.aliyun.com/document_detail/421545.html).
|
|
9052
9062
|
*
|
|
9053
9063
|
* @param tmpReq - ModifyChatappTemplateRequest
|
|
9054
9064
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -9137,13 +9147,13 @@ export default class Client extends OpenApi {
|
|
|
9137
9147
|
}
|
|
9138
9148
|
|
|
9139
9149
|
/**
|
|
9140
|
-
* Modifies a message template.
|
|
9150
|
+
* Modifies a message template. You can only modify templates that are pending review or have failed the review.
|
|
9141
9151
|
*
|
|
9142
9152
|
* @remarks
|
|
9143
9153
|
* ### QPS limit
|
|
9144
|
-
* The
|
|
9154
|
+
* The QPS limit for a single user is 50 calls per second. If the limit is exceeded, API calls are throttled, which may affect your business. Make API calls at a reasonable rate.
|
|
9145
9155
|
* ### Status changes
|
|
9146
|
-
* You can listen for template status and quality
|
|
9156
|
+
* You can listen for changes in template status and quality by using MNS or HTTP. For more information, see [Receipt messages](https://help.aliyun.com/document_detail/421545.html).
|
|
9147
9157
|
*
|
|
9148
9158
|
* @param request - ModifyChatappTemplateRequest
|
|
9149
9159
|
* @returns ModifyChatappTemplateResponse
|
|
@@ -9838,10 +9848,10 @@ export default class Client extends OpenApi {
|
|
|
9838
9848
|
}
|
|
9839
9849
|
|
|
9840
9850
|
/**
|
|
9841
|
-
* Queries the WABA
|
|
9851
|
+
* Queries the WABA associated with a customer.
|
|
9842
9852
|
*
|
|
9843
9853
|
* @remarks
|
|
9844
|
-
* The
|
|
9854
|
+
* The queries per second (QPS) limit per user for this API operation is 10. If you exceed this limit, API calls are throttled, which may affect your business. Call this API operation at a reasonable frequency.
|
|
9845
9855
|
*
|
|
9846
9856
|
* @param request - QueryChatappBindWabaRequest
|
|
9847
9857
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -9888,10 +9898,10 @@ export default class Client extends OpenApi {
|
|
|
9888
9898
|
}
|
|
9889
9899
|
|
|
9890
9900
|
/**
|
|
9891
|
-
* Queries the WABA
|
|
9901
|
+
* Queries the WABA associated with a customer.
|
|
9892
9902
|
*
|
|
9893
9903
|
* @remarks
|
|
9894
|
-
* The
|
|
9904
|
+
* The queries per second (QPS) limit per user for this API operation is 10. If you exceed this limit, API calls are throttled, which may affect your business. Call this API operation at a reasonable frequency.
|
|
9895
9905
|
*
|
|
9896
9906
|
* @param request - QueryChatappBindWabaRequest
|
|
9897
9907
|
* @returns QueryChatappBindWabaResponse
|
|
@@ -11218,13 +11228,13 @@ export default class Client extends OpenApi {
|
|
|
11218
11228
|
}
|
|
11219
11229
|
|
|
11220
11230
|
/**
|
|
11221
|
-
* Triggers an online flow version
|
|
11231
|
+
* Triggers an online flow version whose trigger type is manual.
|
|
11222
11232
|
*
|
|
11223
11233
|
* @remarks
|
|
11224
|
-
* - You can call this operation to trigger an online flow version
|
|
11225
|
-
* - Before calling this operation,
|
|
11226
|
-
* - If the flow with a manual trigger that you created does not have an online version, you can click the flow name in the [Flow Editor](https://chatapp.console.aliyun.com/ChatFlowBuilder) console to go to the canvas orchestration page and manually
|
|
11227
|
-
* - After
|
|
11234
|
+
* - You can call this operation to trigger an online flow version whose trigger type is manual. You can also trigger the flow in the [Marketing Activity Management](https://chatapp.console.aliyun.com/MarketingActivityManagement) console by using a flow with a manual trigger that is associated with a marketing activity.
|
|
11235
|
+
* - Before calling this operation, ensure that the flow you created has a manual trigger and is online.
|
|
11236
|
+
* - If the flow with a manual trigger that you created does not have an online version, you can click the flow name in the [Flow Editor](https://chatapp.console.aliyun.com/ChatFlowBuilder) console to go to the canvas orchestration page and manually bring the flow version online, or call the [OnlineFlowVersion](https://api.aliyun.com/document/cams/2020-06-06/OnlineFlowVersion) operation to bring the flow version online.
|
|
11237
|
+
* - After you trigger an online flow, if the flow contains components that incur fees for corresponding cloud services, such as message sending and function calling, ensure that you fully understand the billing methods and pricing of the related services before you use this operation.
|
|
11228
11238
|
*
|
|
11229
11239
|
* @param tmpReq - TriggerChatFlowRequest
|
|
11230
11240
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -11293,13 +11303,13 @@ export default class Client extends OpenApi {
|
|
|
11293
11303
|
}
|
|
11294
11304
|
|
|
11295
11305
|
/**
|
|
11296
|
-
* Triggers an online flow version
|
|
11306
|
+
* Triggers an online flow version whose trigger type is manual.
|
|
11297
11307
|
*
|
|
11298
11308
|
* @remarks
|
|
11299
|
-
* - You can call this operation to trigger an online flow version
|
|
11300
|
-
* - Before calling this operation,
|
|
11301
|
-
* - If the flow with a manual trigger that you created does not have an online version, you can click the flow name in the [Flow Editor](https://chatapp.console.aliyun.com/ChatFlowBuilder) console to go to the canvas orchestration page and manually
|
|
11302
|
-
* - After
|
|
11309
|
+
* - You can call this operation to trigger an online flow version whose trigger type is manual. You can also trigger the flow in the [Marketing Activity Management](https://chatapp.console.aliyun.com/MarketingActivityManagement) console by using a flow with a manual trigger that is associated with a marketing activity.
|
|
11310
|
+
* - Before calling this operation, ensure that the flow you created has a manual trigger and is online.
|
|
11311
|
+
* - If the flow with a manual trigger that you created does not have an online version, you can click the flow name in the [Flow Editor](https://chatapp.console.aliyun.com/ChatFlowBuilder) console to go to the canvas orchestration page and manually bring the flow version online, or call the [OnlineFlowVersion](https://api.aliyun.com/document/cams/2020-06-06/OnlineFlowVersion) operation to bring the flow version online.
|
|
11312
|
+
* - After you trigger an online flow, if the flow contains components that incur fees for corresponding cloud services, such as message sending and function calling, ensure that you fully understand the billing methods and pricing of the related services before you use this operation.
|
|
11303
11313
|
*
|
|
11304
11314
|
* @param request - TriggerChatFlowRequest
|
|
11305
11315
|
* @returns TriggerChatFlowResponse
|
|
@@ -12413,10 +12423,10 @@ export default class Client extends OpenApi {
|
|
|
12413
12423
|
* Updates the encryption public key of a phone number.
|
|
12414
12424
|
*
|
|
12415
12425
|
* @remarks
|
|
12416
|
-
* - Before
|
|
12417
|
-
* - If no phone number has been added
|
|
12426
|
+
* - Before you call this operation, make sure that a phone number has been added to your WhatsApp Business Account (WABA) and has passed phone number verification.
|
|
12427
|
+
* - If no phone number has been added to your WABA, call the [GetChatappVerifyCode](https://help.aliyun.com/document_detail/600746.html) and [ChatappVerifyAndRegister](https://help.aliyun.com/document_detail/600770.html) operations to obtain a verification code, verify the code, and register the phone number.
|
|
12418
12428
|
* #### QPS limit
|
|
12419
|
-
* The
|
|
12429
|
+
* The queries per second (QPS) limit per user is 5. If the limit is exceeded, API calls are throttled, which may affect your business. Call this operation at a reasonable frequency.
|
|
12420
12430
|
*
|
|
12421
12431
|
* @param request - UpdatePhoneEncryptionPublicKeyRequest
|
|
12422
12432
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -12470,10 +12480,10 @@ export default class Client extends OpenApi {
|
|
|
12470
12480
|
* Updates the encryption public key of a phone number.
|
|
12471
12481
|
*
|
|
12472
12482
|
* @remarks
|
|
12473
|
-
* - Before
|
|
12474
|
-
* - If no phone number has been added
|
|
12483
|
+
* - Before you call this operation, make sure that a phone number has been added to your WhatsApp Business Account (WABA) and has passed phone number verification.
|
|
12484
|
+
* - If no phone number has been added to your WABA, call the [GetChatappVerifyCode](https://help.aliyun.com/document_detail/600746.html) and [ChatappVerifyAndRegister](https://help.aliyun.com/document_detail/600770.html) operations to obtain a verification code, verify the code, and register the phone number.
|
|
12475
12485
|
* #### QPS limit
|
|
12476
|
-
* The
|
|
12486
|
+
* The queries per second (QPS) limit per user is 5. If the limit is exceeded, API calls are throttled, which may affect your business. Call this operation at a reasonable frequency.
|
|
12477
12487
|
*
|
|
12478
12488
|
* @param request - UpdatePhoneEncryptionPublicKeyRequest
|
|
12479
12489
|
* @returns UpdatePhoneEncryptionPublicKeyResponse
|
|
@@ -12764,7 +12774,7 @@ export default class Client extends OpenApi {
|
|
|
12764
12774
|
}
|
|
12765
12775
|
|
|
12766
12776
|
/**
|
|
12767
|
-
*
|
|
12777
|
+
* Initiates, answers, or hangs up WhatsApp voice calls. The WhatsApp voice call feature is currently available by invitation only. To use this feature, contact your account manager or customer service representative to request whitelist access. The feature is unavailable without whitelist access.
|
|
12768
12778
|
*
|
|
12769
12779
|
* @param tmpReq - WhatsappCallRequest
|
|
12770
12780
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -12799,6 +12809,10 @@ export default class Client extends OpenApi {
|
|
|
12799
12809
|
query["OwnerId"] = request.ownerId;
|
|
12800
12810
|
}
|
|
12801
12811
|
|
|
12812
|
+
if (!$dara.isNull(request.recipientType)) {
|
|
12813
|
+
query["RecipientType"] = request.recipientType;
|
|
12814
|
+
}
|
|
12815
|
+
|
|
12802
12816
|
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
12803
12817
|
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
12804
12818
|
}
|
|
@@ -12833,7 +12847,7 @@ export default class Client extends OpenApi {
|
|
|
12833
12847
|
}
|
|
12834
12848
|
|
|
12835
12849
|
/**
|
|
12836
|
-
*
|
|
12850
|
+
* Initiates, answers, or hangs up WhatsApp voice calls. The WhatsApp voice call feature is currently available by invitation only. To use this feature, contact your account manager or customer service representative to request whitelist access. The feature is unavailable without whitelist access.
|
|
12837
12851
|
*
|
|
12838
12852
|
* @param request - WhatsappCallRequest
|
|
12839
12853
|
* @returns WhatsappCallResponse
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class AddChatGroupRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The phone number.
|
|
8
|
+
* The mobile phone number.
|
|
9
9
|
*
|
|
10
10
|
* This parameter is required.
|
|
11
11
|
*
|
|
@@ -17,7 +17,7 @@ export class AddChatGroupRequest extends $dara.Model {
|
|
|
17
17
|
* @remarks
|
|
18
18
|
* The channel type. Valid values:
|
|
19
19
|
*
|
|
20
|
-
* - **WHATSAPP
|
|
20
|
+
* - **WHATSAPP**
|
|
21
21
|
*
|
|
22
22
|
*
|
|
23
23
|
* > Currently, only WhatsApp channel messages are supported.
|
|
@@ -28,7 +28,7 @@ export class AddChatGroupRequest extends $dara.Model {
|
|
|
28
28
|
channelType?: string;
|
|
29
29
|
/**
|
|
30
30
|
* @remarks
|
|
31
|
-
* The space ID or instance ID of the ISV sub-customer, which is the channel ID. You can view the channel ID on the [
|
|
31
|
+
* The space ID or instance ID of the ISV sub-customer, which is the channel ID. You can view the channel ID on the [Channel Management](https://chatapp.console.aliyun.com/ChannelsManagement) page.
|
|
32
32
|
*
|
|
33
33
|
* This parameter is required.
|
|
34
34
|
*
|
|
@@ -38,7 +38,7 @@ export class AddChatGroupRequest extends $dara.Model {
|
|
|
38
38
|
custSpaceId?: string;
|
|
39
39
|
/**
|
|
40
40
|
* @remarks
|
|
41
|
-
* The group
|
|
41
|
+
* The description of the group.
|
|
42
42
|
*
|
|
43
43
|
* @example
|
|
44
44
|
* This is a newly created group
|
|
@@ -57,7 +57,7 @@ export class AddChatGroupRequest extends $dara.Model {
|
|
|
57
57
|
resourceOwnerId?: number;
|
|
58
58
|
/**
|
|
59
59
|
* @remarks
|
|
60
|
-
* The group
|
|
60
|
+
* The title of the group.
|
|
61
61
|
*
|
|
62
62
|
* @example
|
|
63
63
|
* test
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class AddChatGroupResponseBody extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The access denial
|
|
8
|
+
* The details of the access denial.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* None
|
|
@@ -42,8 +42,8 @@ export class AddChatGroupResponseBody extends $dara.Model {
|
|
|
42
42
|
/**
|
|
43
43
|
* @remarks
|
|
44
44
|
* Indicates whether the call is successful. Valid values:
|
|
45
|
-
* - **true**: The call
|
|
46
|
-
* - **false**: The call
|
|
45
|
+
* - **true**: The call succeeded.
|
|
46
|
+
* - **false**: The call failed.
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
49
|
* true
|
|
@@ -3,6 +3,14 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class ChatappBindWabaRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The currency type.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* Sample value
|
|
12
|
+
*/
|
|
13
|
+
currency?: string;
|
|
6
14
|
ownerId?: number;
|
|
7
15
|
resourceOwnerAccount?: string;
|
|
8
16
|
resourceOwnerId?: number;
|
|
@@ -18,6 +26,7 @@ export class ChatappBindWabaRequest extends $dara.Model {
|
|
|
18
26
|
wabaId?: string;
|
|
19
27
|
static names(): { [key: string]: string } {
|
|
20
28
|
return {
|
|
29
|
+
currency: 'Currency',
|
|
21
30
|
ownerId: 'OwnerId',
|
|
22
31
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
23
32
|
resourceOwnerId: 'ResourceOwnerId',
|
|
@@ -27,6 +36,7 @@ export class ChatappBindWabaRequest extends $dara.Model {
|
|
|
27
36
|
|
|
28
37
|
static types(): { [key: string]: any } {
|
|
29
38
|
return {
|
|
39
|
+
currency: 'string',
|
|
30
40
|
ownerId: 'number',
|
|
31
41
|
resourceOwnerAccount: 'string',
|
|
32
42
|
resourceOwnerId: 'number',
|
|
@@ -45,7 +45,7 @@ export class ChatappBindWabaResponseBodyData extends $dara.Model {
|
|
|
45
45
|
export class ChatappBindWabaResponseBody extends $dara.Model {
|
|
46
46
|
/**
|
|
47
47
|
* @remarks
|
|
48
|
-
* The details
|
|
48
|
+
* The details of the access denial.
|
|
49
49
|
*
|
|
50
50
|
* @example
|
|
51
51
|
* None
|
|
@@ -53,7 +53,7 @@ export class ChatappBindWabaResponseBody extends $dara.Model {
|
|
|
53
53
|
accessDeniedDetail?: string;
|
|
54
54
|
/**
|
|
55
55
|
* @remarks
|
|
56
|
-
* The status code
|
|
56
|
+
* The request status code.
|
|
57
57
|
*
|
|
58
58
|
* - A value of OK indicates that the request is successful.
|
|
59
59
|
*
|
|
@@ -86,7 +86,7 @@ export class ChatappBindWabaResponseBody extends $dara.Model {
|
|
|
86
86
|
requestId?: string;
|
|
87
87
|
/**
|
|
88
88
|
* @remarks
|
|
89
|
-
* Indicates whether the call was successful.
|
|
89
|
+
* Indicates whether the call was successful.
|
|
90
90
|
* - **true**: The call was successful.
|
|
91
91
|
* - **false**: The call failed.
|
|
92
92
|
*
|
|
@@ -22,6 +22,9 @@ export class CreateChatFlowResponseBody extends $dara.Model {
|
|
|
22
22
|
/**
|
|
23
23
|
* @remarks
|
|
24
24
|
* The returned data object.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* {}
|
|
25
28
|
*/
|
|
26
29
|
data?: { [key: string]: any };
|
|
27
30
|
/**
|
|
@@ -43,6 +46,9 @@ export class CreateChatFlowResponseBody extends $dara.Model {
|
|
|
43
46
|
/**
|
|
44
47
|
* @remarks
|
|
45
48
|
* The response data.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* {}
|
|
46
52
|
*/
|
|
47
53
|
response?: { [key: string]: any };
|
|
48
54
|
/**
|