@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/dist/client.d.ts
CHANGED
|
@@ -42,10 +42,11 @@ export default class Client extends OpenApi {
|
|
|
42
42
|
* Creates an IM group.
|
|
43
43
|
*
|
|
44
44
|
* @remarks
|
|
45
|
-
* >
|
|
46
|
-
* - You can
|
|
45
|
+
* <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>
|
|
46
|
+
* - You can obtain your OBA information from the [Meta official documentation](https://developers.facebook.com/documentation/business-messaging/whatsapp/groups).
|
|
47
|
+
* - You can call this operation to create an IM group. Currently, you can create an IM group only by calling API operations.
|
|
47
48
|
* - 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.
|
|
48
|
-
* -
|
|
49
|
+
* - For a group whose channel type is WhatsApp, the maximum number of members is 8.
|
|
49
50
|
*
|
|
50
51
|
* @param request - AddChatGroupRequest
|
|
51
52
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -56,10 +57,11 @@ export default class Client extends OpenApi {
|
|
|
56
57
|
* Creates an IM group.
|
|
57
58
|
*
|
|
58
59
|
* @remarks
|
|
59
|
-
* >
|
|
60
|
-
* - You can
|
|
60
|
+
* <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>
|
|
61
|
+
* - You can obtain your OBA information from the [Meta official documentation](https://developers.facebook.com/documentation/business-messaging/whatsapp/groups).
|
|
62
|
+
* - You can call this operation to create an IM group. Currently, you can create an IM group only by calling API operations.
|
|
61
63
|
* - 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.
|
|
62
|
-
* -
|
|
64
|
+
* - For a group whose channel type is WhatsApp, the maximum number of members is 8.
|
|
63
65
|
*
|
|
64
66
|
* @param request - AddChatGroupRequest
|
|
65
67
|
* @returns AddChatGroupResponse
|
|
@@ -262,7 +264,7 @@ export default class Client extends OpenApi {
|
|
|
262
264
|
* Binds a WABA to the northbound interface.
|
|
263
265
|
*
|
|
264
266
|
* @remarks
|
|
265
|
-
* The queries per second (QPS)
|
|
267
|
+
* 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.
|
|
266
268
|
*
|
|
267
269
|
* @param request - ChatappBindWabaRequest
|
|
268
270
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -273,7 +275,7 @@ export default class Client extends OpenApi {
|
|
|
273
275
|
* Binds a WABA to the northbound interface.
|
|
274
276
|
*
|
|
275
277
|
* @remarks
|
|
276
|
-
* The queries per second (QPS)
|
|
278
|
+
* 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.
|
|
277
279
|
*
|
|
278
280
|
* @param request - ChatappBindWabaRequest
|
|
279
281
|
* @returns ChatappBindWabaResponse
|
|
@@ -532,11 +534,11 @@ export default class Client extends OpenApi {
|
|
|
532
534
|
*/
|
|
533
535
|
createChatappMigrationInitiate(request: $_model.CreateChatappMigrationInitiateRequest): Promise<$_model.CreateChatappMigrationInitiateResponse>;
|
|
534
536
|
/**
|
|
535
|
-
* Creates a message template.
|
|
537
|
+
* Creates a message template. Messages can be sent after the template is approved.
|
|
536
538
|
*
|
|
537
539
|
* @remarks
|
|
538
540
|
* ### QPS limit
|
|
539
|
-
* 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.
|
|
541
|
+
* 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.
|
|
540
542
|
* ### Status changes
|
|
541
543
|
* 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).
|
|
542
544
|
*
|
|
@@ -546,11 +548,11 @@ export default class Client extends OpenApi {
|
|
|
546
548
|
*/
|
|
547
549
|
createChatappTemplateWithOptions(tmpReq: $_model.CreateChatappTemplateRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateChatappTemplateResponse>;
|
|
548
550
|
/**
|
|
549
|
-
* Creates a message template.
|
|
551
|
+
* Creates a message template. Messages can be sent after the template is approved.
|
|
550
552
|
*
|
|
551
553
|
* @remarks
|
|
552
554
|
* ### QPS limit
|
|
553
|
-
* 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.
|
|
555
|
+
* 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.
|
|
554
556
|
* ### Status changes
|
|
555
557
|
* 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).
|
|
556
558
|
*
|
|
@@ -1735,10 +1737,10 @@ export default class Client extends OpenApi {
|
|
|
1735
1737
|
* Retrieves the encryption public key of a phone number.
|
|
1736
1738
|
*
|
|
1737
1739
|
* @remarks
|
|
1738
|
-
* - Before calling this operation, make sure that a phone number has been added
|
|
1739
|
-
* - If no phone number has been added
|
|
1740
|
+
* - 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.
|
|
1741
|
+
* - 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.
|
|
1740
1742
|
* #### QPS limit
|
|
1741
|
-
* The
|
|
1743
|
+
* 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.
|
|
1742
1744
|
*
|
|
1743
1745
|
* @param request - GetPhoneEncryptionPublicKeyRequest
|
|
1744
1746
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1749,10 +1751,10 @@ export default class Client extends OpenApi {
|
|
|
1749
1751
|
* Retrieves the encryption public key of a phone number.
|
|
1750
1752
|
*
|
|
1751
1753
|
* @remarks
|
|
1752
|
-
* - Before calling this operation, make sure that a phone number has been added
|
|
1753
|
-
* - If no phone number has been added
|
|
1754
|
+
* - 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.
|
|
1755
|
+
* - 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.
|
|
1754
1756
|
* #### QPS limit
|
|
1755
|
-
* The
|
|
1757
|
+
* 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.
|
|
1756
1758
|
*
|
|
1757
1759
|
* @param request - GetPhoneEncryptionPublicKeyRequest
|
|
1758
1760
|
* @returns GetPhoneEncryptionPublicKeyResponse
|
|
@@ -2519,13 +2521,13 @@ export default class Client extends OpenApi {
|
|
|
2519
2521
|
*/
|
|
2520
2522
|
listWhatAppTemplate(request: $_model.ListWhatAppTemplateRequest): Promise<$_model.ListWhatAppTemplateResponse>;
|
|
2521
2523
|
/**
|
|
2522
|
-
* Modifies a message template.
|
|
2524
|
+
* Modifies a message template. You can only modify templates that are pending review or have failed the review.
|
|
2523
2525
|
*
|
|
2524
2526
|
* @remarks
|
|
2525
2527
|
* ### QPS limit
|
|
2526
|
-
* The
|
|
2528
|
+
* 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.
|
|
2527
2529
|
* ### Status changes
|
|
2528
|
-
* You can listen for template status and quality
|
|
2530
|
+
* 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).
|
|
2529
2531
|
*
|
|
2530
2532
|
* @param tmpReq - ModifyChatappTemplateRequest
|
|
2531
2533
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2533,13 +2535,13 @@ export default class Client extends OpenApi {
|
|
|
2533
2535
|
*/
|
|
2534
2536
|
modifyChatappTemplateWithOptions(tmpReq: $_model.ModifyChatappTemplateRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyChatappTemplateResponse>;
|
|
2535
2537
|
/**
|
|
2536
|
-
* Modifies a message template.
|
|
2538
|
+
* Modifies a message template. You can only modify templates that are pending review or have failed the review.
|
|
2537
2539
|
*
|
|
2538
2540
|
* @remarks
|
|
2539
2541
|
* ### QPS limit
|
|
2540
|
-
* The
|
|
2542
|
+
* 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.
|
|
2541
2543
|
* ### Status changes
|
|
2542
|
-
* You can listen for template status and quality
|
|
2544
|
+
* 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).
|
|
2543
2545
|
*
|
|
2544
2546
|
* @param request - ModifyChatappTemplateRequest
|
|
2545
2547
|
* @returns ModifyChatappTemplateResponse
|
|
@@ -2729,10 +2731,10 @@ export default class Client extends OpenApi {
|
|
|
2729
2731
|
*/
|
|
2730
2732
|
publishFlow(request: $_model.PublishFlowRequest): Promise<$_model.PublishFlowResponse>;
|
|
2731
2733
|
/**
|
|
2732
|
-
* Queries the WABA
|
|
2734
|
+
* Queries the WABA associated with a customer.
|
|
2733
2735
|
*
|
|
2734
2736
|
* @remarks
|
|
2735
|
-
* The
|
|
2737
|
+
* 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.
|
|
2736
2738
|
*
|
|
2737
2739
|
* @param request - QueryChatappBindWabaRequest
|
|
2738
2740
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2740,10 +2742,10 @@ export default class Client extends OpenApi {
|
|
|
2740
2742
|
*/
|
|
2741
2743
|
queryChatappBindWabaWithOptions(request: $_model.QueryChatappBindWabaRequest, runtime: $dara.RuntimeOptions): Promise<$_model.QueryChatappBindWabaResponse>;
|
|
2742
2744
|
/**
|
|
2743
|
-
* Queries the WABA
|
|
2745
|
+
* Queries the WABA associated with a customer.
|
|
2744
2746
|
*
|
|
2745
2747
|
* @remarks
|
|
2746
|
-
* The
|
|
2748
|
+
* 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.
|
|
2747
2749
|
*
|
|
2748
2750
|
* @param request - QueryChatappBindWabaRequest
|
|
2749
2751
|
* @returns QueryChatappBindWabaResponse
|
|
@@ -3117,13 +3119,13 @@ export default class Client extends OpenApi {
|
|
|
3117
3119
|
*/
|
|
3118
3120
|
syncMessengerSubscriptionToken(request: $_model.SyncMessengerSubscriptionTokenRequest): Promise<$_model.SyncMessengerSubscriptionTokenResponse>;
|
|
3119
3121
|
/**
|
|
3120
|
-
* Triggers an online flow version
|
|
3122
|
+
* Triggers an online flow version whose trigger type is manual.
|
|
3121
3123
|
*
|
|
3122
3124
|
* @remarks
|
|
3123
|
-
* - You can call this operation to trigger an online flow version
|
|
3124
|
-
* - Before calling this operation,
|
|
3125
|
-
* - 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
|
|
3126
|
-
* - After
|
|
3125
|
+
* - 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.
|
|
3126
|
+
* - Before calling this operation, ensure that the flow you created has a manual trigger and is online.
|
|
3127
|
+
* - 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.
|
|
3128
|
+
* - 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.
|
|
3127
3129
|
*
|
|
3128
3130
|
* @param tmpReq - TriggerChatFlowRequest
|
|
3129
3131
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3131,13 +3133,13 @@ export default class Client extends OpenApi {
|
|
|
3131
3133
|
*/
|
|
3132
3134
|
triggerChatFlowWithOptions(tmpReq: $_model.TriggerChatFlowRequest, runtime: $dara.RuntimeOptions): Promise<$_model.TriggerChatFlowResponse>;
|
|
3133
3135
|
/**
|
|
3134
|
-
* Triggers an online flow version
|
|
3136
|
+
* Triggers an online flow version whose trigger type is manual.
|
|
3135
3137
|
*
|
|
3136
3138
|
* @remarks
|
|
3137
|
-
* - You can call this operation to trigger an online flow version
|
|
3138
|
-
* - Before calling this operation,
|
|
3139
|
-
* - 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
|
|
3140
|
-
* - After
|
|
3139
|
+
* - 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.
|
|
3140
|
+
* - Before calling this operation, ensure that the flow you created has a manual trigger and is online.
|
|
3141
|
+
* - 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.
|
|
3142
|
+
* - 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.
|
|
3141
3143
|
*
|
|
3142
3144
|
* @param request - TriggerChatFlowRequest
|
|
3143
3145
|
* @returns TriggerChatFlowResponse
|
|
@@ -3429,10 +3431,10 @@ export default class Client extends OpenApi {
|
|
|
3429
3431
|
* Updates the encryption public key of a phone number.
|
|
3430
3432
|
*
|
|
3431
3433
|
* @remarks
|
|
3432
|
-
* - Before
|
|
3433
|
-
* - If no phone number has been added
|
|
3434
|
+
* - 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.
|
|
3435
|
+
* - 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.
|
|
3434
3436
|
* #### QPS limit
|
|
3435
|
-
* The
|
|
3437
|
+
* 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.
|
|
3436
3438
|
*
|
|
3437
3439
|
* @param request - UpdatePhoneEncryptionPublicKeyRequest
|
|
3438
3440
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3443,10 +3445,10 @@ export default class Client extends OpenApi {
|
|
|
3443
3445
|
* Updates the encryption public key of a phone number.
|
|
3444
3446
|
*
|
|
3445
3447
|
* @remarks
|
|
3446
|
-
* - Before
|
|
3447
|
-
* - If no phone number has been added
|
|
3448
|
+
* - 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.
|
|
3449
|
+
* - 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.
|
|
3448
3450
|
* #### QPS limit
|
|
3449
|
-
* The
|
|
3451
|
+
* 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.
|
|
3450
3452
|
*
|
|
3451
3453
|
* @param request - UpdatePhoneEncryptionPublicKeyRequest
|
|
3452
3454
|
* @returns UpdatePhoneEncryptionPublicKeyResponse
|
|
@@ -3533,7 +3535,7 @@ export default class Client extends OpenApi {
|
|
|
3533
3535
|
*/
|
|
3534
3536
|
updateWhatsappUserName(request: $_model.UpdateWhatsappUserNameRequest): Promise<$_model.UpdateWhatsappUserNameResponse>;
|
|
3535
3537
|
/**
|
|
3536
|
-
*
|
|
3538
|
+
* 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.
|
|
3537
3539
|
*
|
|
3538
3540
|
* @param tmpReq - WhatsappCallRequest
|
|
3539
3541
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3541,7 +3543,7 @@ export default class Client extends OpenApi {
|
|
|
3541
3543
|
*/
|
|
3542
3544
|
whatsappCallWithOptions(tmpReq: $_model.WhatsappCallRequest, runtime: $dara.RuntimeOptions): Promise<$_model.WhatsappCallResponse>;
|
|
3543
3545
|
/**
|
|
3544
|
-
*
|
|
3546
|
+
* 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.
|
|
3545
3547
|
*
|
|
3546
3548
|
* @param request - WhatsappCallRequest
|
|
3547
3549
|
* @returns WhatsappCallResponse
|
package/dist/client.js
CHANGED
|
@@ -187,10 +187,11 @@ class Client extends openapi_core_1.default {
|
|
|
187
187
|
* Creates an IM group.
|
|
188
188
|
*
|
|
189
189
|
* @remarks
|
|
190
|
-
* >
|
|
191
|
-
* - You can
|
|
190
|
+
* <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>
|
|
191
|
+
* - You can obtain your OBA information from the [Meta official documentation](https://developers.facebook.com/documentation/business-messaging/whatsapp/groups).
|
|
192
|
+
* - You can call this operation to create an IM group. Currently, you can create an IM group only by calling API operations.
|
|
192
193
|
* - 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.
|
|
193
|
-
* -
|
|
194
|
+
* - For a group whose channel type is WhatsApp, the maximum number of members is 8.
|
|
194
195
|
*
|
|
195
196
|
* @param request - AddChatGroupRequest
|
|
196
197
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -246,10 +247,11 @@ class Client extends openapi_core_1.default {
|
|
|
246
247
|
* Creates an IM group.
|
|
247
248
|
*
|
|
248
249
|
* @remarks
|
|
249
|
-
* >
|
|
250
|
-
* - You can
|
|
250
|
+
* <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>
|
|
251
|
+
* - You can obtain your OBA information from the [Meta official documentation](https://developers.facebook.com/documentation/business-messaging/whatsapp/groups).
|
|
252
|
+
* - You can call this operation to create an IM group. Currently, you can create an IM group only by calling API operations.
|
|
251
253
|
* - 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.
|
|
252
|
-
* -
|
|
254
|
+
* - For a group whose channel type is WhatsApp, the maximum number of members is 8.
|
|
253
255
|
*
|
|
254
256
|
* @param request - AddChatGroupRequest
|
|
255
257
|
* @returns AddChatGroupResponse
|
|
@@ -992,7 +994,7 @@ class Client extends openapi_core_1.default {
|
|
|
992
994
|
* Binds a WABA to the northbound interface.
|
|
993
995
|
*
|
|
994
996
|
* @remarks
|
|
995
|
-
* The queries per second (QPS)
|
|
997
|
+
* 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.
|
|
996
998
|
*
|
|
997
999
|
* @param request - ChatappBindWabaRequest
|
|
998
1000
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1001,6 +1003,9 @@ class Client extends openapi_core_1.default {
|
|
|
1001
1003
|
async chatappBindWabaWithOptions(request, runtime) {
|
|
1002
1004
|
request.validate();
|
|
1003
1005
|
let query = {};
|
|
1006
|
+
if (!$dara.isNull(request.currency)) {
|
|
1007
|
+
query["Currency"] = request.currency;
|
|
1008
|
+
}
|
|
1004
1009
|
if (!$dara.isNull(request.ownerId)) {
|
|
1005
1010
|
query["OwnerId"] = request.ownerId;
|
|
1006
1011
|
}
|
|
@@ -1033,7 +1038,7 @@ class Client extends openapi_core_1.default {
|
|
|
1033
1038
|
* Binds a WABA to the northbound interface.
|
|
1034
1039
|
*
|
|
1035
1040
|
* @remarks
|
|
1036
|
-
* The queries per second (QPS)
|
|
1041
|
+
* 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.
|
|
1037
1042
|
*
|
|
1038
1043
|
* @param request - ChatappBindWabaRequest
|
|
1039
1044
|
* @returns ChatappBindWabaResponse
|
|
@@ -1787,11 +1792,11 @@ class Client extends openapi_core_1.default {
|
|
|
1787
1792
|
return await this.createChatappMigrationInitiateWithOptions(request, runtime);
|
|
1788
1793
|
}
|
|
1789
1794
|
/**
|
|
1790
|
-
* Creates a message template.
|
|
1795
|
+
* Creates a message template. Messages can be sent after the template is approved.
|
|
1791
1796
|
*
|
|
1792
1797
|
* @remarks
|
|
1793
1798
|
* ### QPS limit
|
|
1794
|
-
* 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.
|
|
1799
|
+
* 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.
|
|
1795
1800
|
* ### Status changes
|
|
1796
1801
|
* 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).
|
|
1797
1802
|
*
|
|
@@ -1866,11 +1871,11 @@ class Client extends openapi_core_1.default {
|
|
|
1866
1871
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateChatappTemplateResponse({}));
|
|
1867
1872
|
}
|
|
1868
1873
|
/**
|
|
1869
|
-
* Creates a message template.
|
|
1874
|
+
* Creates a message template. Messages can be sent after the template is approved.
|
|
1870
1875
|
*
|
|
1871
1876
|
* @remarks
|
|
1872
1877
|
* ### QPS limit
|
|
1873
|
-
* 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.
|
|
1878
|
+
* 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.
|
|
1874
1879
|
* ### Status changes
|
|
1875
1880
|
* 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).
|
|
1876
1881
|
*
|
|
@@ -5404,10 +5409,10 @@ class Client extends openapi_core_1.default {
|
|
|
5404
5409
|
* Retrieves the encryption public key of a phone number.
|
|
5405
5410
|
*
|
|
5406
5411
|
* @remarks
|
|
5407
|
-
* - Before calling this operation, make sure that a phone number has been added
|
|
5408
|
-
* - If no phone number has been added
|
|
5412
|
+
* - 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.
|
|
5413
|
+
* - 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.
|
|
5409
5414
|
* #### QPS limit
|
|
5410
|
-
* The
|
|
5415
|
+
* 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.
|
|
5411
5416
|
*
|
|
5412
5417
|
* @param request - GetPhoneEncryptionPublicKeyRequest
|
|
5413
5418
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -5451,10 +5456,10 @@ class Client extends openapi_core_1.default {
|
|
|
5451
5456
|
* Retrieves the encryption public key of a phone number.
|
|
5452
5457
|
*
|
|
5453
5458
|
* @remarks
|
|
5454
|
-
* - Before calling this operation, make sure that a phone number has been added
|
|
5455
|
-
* - If no phone number has been added
|
|
5459
|
+
* - 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.
|
|
5460
|
+
* - 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.
|
|
5456
5461
|
* #### QPS limit
|
|
5457
|
-
* The
|
|
5462
|
+
* 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.
|
|
5458
5463
|
*
|
|
5459
5464
|
* @param request - GetPhoneEncryptionPublicKeyRequest
|
|
5460
5465
|
* @returns GetPhoneEncryptionPublicKeyResponse
|
|
@@ -6588,6 +6593,9 @@ class Client extends openapi_core_1.default {
|
|
|
6588
6593
|
if (!$dara.isNull(request.groupMessageId)) {
|
|
6589
6594
|
query["GroupMessageId"] = request.groupMessageId;
|
|
6590
6595
|
}
|
|
6596
|
+
if (!$dara.isNull(request.messageItem)) {
|
|
6597
|
+
query["MessageItem"] = request.messageItem;
|
|
6598
|
+
}
|
|
6591
6599
|
if (!$dara.isNull(request.messageStatus)) {
|
|
6592
6600
|
query["MessageStatus"] = request.messageStatus;
|
|
6593
6601
|
}
|
|
@@ -7941,13 +7949,13 @@ class Client extends openapi_core_1.default {
|
|
|
7941
7949
|
return await this.listWhatAppTemplateWithOptions(request, runtime);
|
|
7942
7950
|
}
|
|
7943
7951
|
/**
|
|
7944
|
-
* Modifies a message template.
|
|
7952
|
+
* Modifies a message template. You can only modify templates that are pending review or have failed the review.
|
|
7945
7953
|
*
|
|
7946
7954
|
* @remarks
|
|
7947
7955
|
* ### QPS limit
|
|
7948
|
-
* The
|
|
7956
|
+
* 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.
|
|
7949
7957
|
* ### Status changes
|
|
7950
|
-
* You can listen for template status and quality
|
|
7958
|
+
* 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).
|
|
7951
7959
|
*
|
|
7952
7960
|
* @param tmpReq - ModifyChatappTemplateRequest
|
|
7953
7961
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -8020,13 +8028,13 @@ class Client extends openapi_core_1.default {
|
|
|
8020
8028
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyChatappTemplateResponse({}));
|
|
8021
8029
|
}
|
|
8022
8030
|
/**
|
|
8023
|
-
* Modifies a message template.
|
|
8031
|
+
* Modifies a message template. You can only modify templates that are pending review or have failed the review.
|
|
8024
8032
|
*
|
|
8025
8033
|
* @remarks
|
|
8026
8034
|
* ### QPS limit
|
|
8027
|
-
* The
|
|
8035
|
+
* 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.
|
|
8028
8036
|
* ### Status changes
|
|
8029
|
-
* You can listen for template status and quality
|
|
8037
|
+
* 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).
|
|
8030
8038
|
*
|
|
8031
8039
|
* @param request - ModifyChatappTemplateRequest
|
|
8032
8040
|
* @returns ModifyChatappTemplateResponse
|
|
@@ -8631,10 +8639,10 @@ class Client extends openapi_core_1.default {
|
|
|
8631
8639
|
return await this.publishFlowWithOptions(request, runtime);
|
|
8632
8640
|
}
|
|
8633
8641
|
/**
|
|
8634
|
-
* Queries the WABA
|
|
8642
|
+
* Queries the WABA associated with a customer.
|
|
8635
8643
|
*
|
|
8636
8644
|
* @remarks
|
|
8637
|
-
* The
|
|
8645
|
+
* 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.
|
|
8638
8646
|
*
|
|
8639
8647
|
* @param request - QueryChatappBindWabaRequest
|
|
8640
8648
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -8675,10 +8683,10 @@ class Client extends openapi_core_1.default {
|
|
|
8675
8683
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryChatappBindWabaResponse({}));
|
|
8676
8684
|
}
|
|
8677
8685
|
/**
|
|
8678
|
-
* Queries the WABA
|
|
8686
|
+
* Queries the WABA associated with a customer.
|
|
8679
8687
|
*
|
|
8680
8688
|
* @remarks
|
|
8681
|
-
* The
|
|
8689
|
+
* 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.
|
|
8682
8690
|
*
|
|
8683
8691
|
* @param request - QueryChatappBindWabaRequest
|
|
8684
8692
|
* @returns QueryChatappBindWabaResponse
|
|
@@ -9833,13 +9841,13 @@ class Client extends openapi_core_1.default {
|
|
|
9833
9841
|
return await this.syncMessengerSubscriptionTokenWithOptions(request, runtime);
|
|
9834
9842
|
}
|
|
9835
9843
|
/**
|
|
9836
|
-
* Triggers an online flow version
|
|
9844
|
+
* Triggers an online flow version whose trigger type is manual.
|
|
9837
9845
|
*
|
|
9838
9846
|
* @remarks
|
|
9839
|
-
* - You can call this operation to trigger an online flow version
|
|
9840
|
-
* - Before calling this operation,
|
|
9841
|
-
* - 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
|
|
9842
|
-
* - After
|
|
9847
|
+
* - 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.
|
|
9848
|
+
* - Before calling this operation, ensure that the flow you created has a manual trigger and is online.
|
|
9849
|
+
* - 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.
|
|
9850
|
+
* - 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.
|
|
9843
9851
|
*
|
|
9844
9852
|
* @param tmpReq - TriggerChatFlowRequest
|
|
9845
9853
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -9897,13 +9905,13 @@ class Client extends openapi_core_1.default {
|
|
|
9897
9905
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.TriggerChatFlowResponse({}));
|
|
9898
9906
|
}
|
|
9899
9907
|
/**
|
|
9900
|
-
* Triggers an online flow version
|
|
9908
|
+
* Triggers an online flow version whose trigger type is manual.
|
|
9901
9909
|
*
|
|
9902
9910
|
* @remarks
|
|
9903
|
-
* - You can call this operation to trigger an online flow version
|
|
9904
|
-
* - Before calling this operation,
|
|
9905
|
-
* - 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
|
|
9906
|
-
* - After
|
|
9911
|
+
* - 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.
|
|
9912
|
+
* - Before calling this operation, ensure that the flow you created has a manual trigger and is online.
|
|
9913
|
+
* - 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.
|
|
9914
|
+
* - 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.
|
|
9907
9915
|
*
|
|
9908
9916
|
* @param request - TriggerChatFlowRequest
|
|
9909
9917
|
* @returns TriggerChatFlowResponse
|
|
@@ -10867,10 +10875,10 @@ class Client extends openapi_core_1.default {
|
|
|
10867
10875
|
* Updates the encryption public key of a phone number.
|
|
10868
10876
|
*
|
|
10869
10877
|
* @remarks
|
|
10870
|
-
* - Before
|
|
10871
|
-
* - If no phone number has been added
|
|
10878
|
+
* - 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.
|
|
10879
|
+
* - 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.
|
|
10872
10880
|
* #### QPS limit
|
|
10873
|
-
* The
|
|
10881
|
+
* 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.
|
|
10874
10882
|
*
|
|
10875
10883
|
* @param request - UpdatePhoneEncryptionPublicKeyRequest
|
|
10876
10884
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -10917,10 +10925,10 @@ class Client extends openapi_core_1.default {
|
|
|
10917
10925
|
* Updates the encryption public key of a phone number.
|
|
10918
10926
|
*
|
|
10919
10927
|
* @remarks
|
|
10920
|
-
* - Before
|
|
10921
|
-
* - If no phone number has been added
|
|
10928
|
+
* - 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.
|
|
10929
|
+
* - 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.
|
|
10922
10930
|
* #### QPS limit
|
|
10923
|
-
* The
|
|
10931
|
+
* 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.
|
|
10924
10932
|
*
|
|
10925
10933
|
* @param request - UpdatePhoneEncryptionPublicKeyRequest
|
|
10926
10934
|
* @returns UpdatePhoneEncryptionPublicKeyResponse
|
|
@@ -11175,7 +11183,7 @@ class Client extends openapi_core_1.default {
|
|
|
11175
11183
|
return await this.updateWhatsappUserNameWithOptions(request, runtime);
|
|
11176
11184
|
}
|
|
11177
11185
|
/**
|
|
11178
|
-
*
|
|
11186
|
+
* 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.
|
|
11179
11187
|
*
|
|
11180
11188
|
* @param tmpReq - WhatsappCallRequest
|
|
11181
11189
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -11204,6 +11212,9 @@ class Client extends openapi_core_1.default {
|
|
|
11204
11212
|
if (!$dara.isNull(request.ownerId)) {
|
|
11205
11213
|
query["OwnerId"] = request.ownerId;
|
|
11206
11214
|
}
|
|
11215
|
+
if (!$dara.isNull(request.recipientType)) {
|
|
11216
|
+
query["RecipientType"] = request.recipientType;
|
|
11217
|
+
}
|
|
11207
11218
|
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
11208
11219
|
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
11209
11220
|
}
|
|
@@ -11233,7 +11244,7 @@ class Client extends openapi_core_1.default {
|
|
|
11233
11244
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.WhatsappCallResponse({}));
|
|
11234
11245
|
}
|
|
11235
11246
|
/**
|
|
11236
|
-
*
|
|
11247
|
+
* 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.
|
|
11237
11248
|
*
|
|
11238
11249
|
* @param request - WhatsappCallRequest
|
|
11239
11250
|
* @returns WhatsappCallResponse
|