@alicloud/cams20200606 1.0.19 → 1.0.21
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 +100 -34
- package/dist/client.js +150 -39
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +190 -39
package/dist/client.js
CHANGED
|
@@ -711,6 +711,7 @@ class CreateChatappTemplateRequest extends $tea.Model {
|
|
|
711
711
|
}
|
|
712
712
|
static names() {
|
|
713
713
|
return {
|
|
714
|
+
allowCategoryChange: 'AllowCategoryChange',
|
|
714
715
|
category: 'Category',
|
|
715
716
|
components: 'Components',
|
|
716
717
|
custSpaceId: 'CustSpaceId',
|
|
@@ -724,6 +725,7 @@ class CreateChatappTemplateRequest extends $tea.Model {
|
|
|
724
725
|
}
|
|
725
726
|
static types() {
|
|
726
727
|
return {
|
|
728
|
+
allowCategoryChange: 'boolean',
|
|
727
729
|
category: 'string',
|
|
728
730
|
components: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponents },
|
|
729
731
|
custSpaceId: 'string',
|
|
@@ -743,6 +745,7 @@ class CreateChatappTemplateShrinkRequest extends $tea.Model {
|
|
|
743
745
|
}
|
|
744
746
|
static names() {
|
|
745
747
|
return {
|
|
748
|
+
allowCategoryChange: 'AllowCategoryChange',
|
|
746
749
|
category: 'Category',
|
|
747
750
|
componentsShrink: 'Components',
|
|
748
751
|
custSpaceId: 'CustSpaceId',
|
|
@@ -756,6 +759,7 @@ class CreateChatappTemplateShrinkRequest extends $tea.Model {
|
|
|
756
759
|
}
|
|
757
760
|
static types() {
|
|
758
761
|
return {
|
|
762
|
+
allowCategoryChange: 'boolean',
|
|
759
763
|
category: 'string',
|
|
760
764
|
componentsShrink: 'string',
|
|
761
765
|
custSpaceId: 'string',
|
|
@@ -1313,6 +1317,7 @@ class ListChatappTemplateResponseBody extends $tea.Model {
|
|
|
1313
1317
|
listTemplate: 'ListTemplate',
|
|
1314
1318
|
message: 'Message',
|
|
1315
1319
|
requestId: 'RequestId',
|
|
1320
|
+
total: 'Total',
|
|
1316
1321
|
};
|
|
1317
1322
|
}
|
|
1318
1323
|
static types() {
|
|
@@ -1321,6 +1326,7 @@ class ListChatappTemplateResponseBody extends $tea.Model {
|
|
|
1321
1326
|
listTemplate: { 'type': 'array', 'itemType': ListChatappTemplateResponseBodyListTemplate },
|
|
1322
1327
|
message: 'string',
|
|
1323
1328
|
requestId: 'string',
|
|
1329
|
+
total: 'number',
|
|
1324
1330
|
};
|
|
1325
1331
|
}
|
|
1326
1332
|
}
|
|
@@ -1801,6 +1807,7 @@ class SendChatappMassMessageRequest extends $tea.Model {
|
|
|
1801
1807
|
custSpaceId: 'CustSpaceId',
|
|
1802
1808
|
custWabaId: 'CustWabaId',
|
|
1803
1809
|
fallBackContent: 'FallBackContent',
|
|
1810
|
+
fallBackDuration: 'FallBackDuration',
|
|
1804
1811
|
fallBackId: 'FallBackId',
|
|
1805
1812
|
from: 'From',
|
|
1806
1813
|
isvCode: 'IsvCode',
|
|
@@ -1819,6 +1826,7 @@ class SendChatappMassMessageRequest extends $tea.Model {
|
|
|
1819
1826
|
custSpaceId: 'string',
|
|
1820
1827
|
custWabaId: 'string',
|
|
1821
1828
|
fallBackContent: 'string',
|
|
1829
|
+
fallBackDuration: 'number',
|
|
1822
1830
|
fallBackId: 'string',
|
|
1823
1831
|
from: 'string',
|
|
1824
1832
|
isvCode: 'string',
|
|
@@ -1843,6 +1851,7 @@ class SendChatappMassMessageShrinkRequest extends $tea.Model {
|
|
|
1843
1851
|
custSpaceId: 'CustSpaceId',
|
|
1844
1852
|
custWabaId: 'CustWabaId',
|
|
1845
1853
|
fallBackContent: 'FallBackContent',
|
|
1854
|
+
fallBackDuration: 'FallBackDuration',
|
|
1846
1855
|
fallBackId: 'FallBackId',
|
|
1847
1856
|
from: 'From',
|
|
1848
1857
|
isvCode: 'IsvCode',
|
|
@@ -1861,6 +1870,7 @@ class SendChatappMassMessageShrinkRequest extends $tea.Model {
|
|
|
1861
1870
|
custSpaceId: 'string',
|
|
1862
1871
|
custWabaId: 'string',
|
|
1863
1872
|
fallBackContent: 'string',
|
|
1873
|
+
fallBackDuration: 'number',
|
|
1864
1874
|
fallBackId: 'string',
|
|
1865
1875
|
from: 'string',
|
|
1866
1876
|
isvCode: 'string',
|
|
@@ -1929,6 +1939,7 @@ class SendChatappMessageRequest extends $tea.Model {
|
|
|
1929
1939
|
custSpaceId: 'CustSpaceId',
|
|
1930
1940
|
custWabaId: 'CustWabaId',
|
|
1931
1941
|
fallBackContent: 'FallBackContent',
|
|
1942
|
+
fallBackDuration: 'FallBackDuration',
|
|
1932
1943
|
fallBackId: 'FallBackId',
|
|
1933
1944
|
from: 'From',
|
|
1934
1945
|
isvCode: 'IsvCode',
|
|
@@ -1954,6 +1965,7 @@ class SendChatappMessageRequest extends $tea.Model {
|
|
|
1954
1965
|
custSpaceId: 'string',
|
|
1955
1966
|
custWabaId: 'string',
|
|
1956
1967
|
fallBackContent: 'string',
|
|
1968
|
+
fallBackDuration: 'number',
|
|
1957
1969
|
fallBackId: 'string',
|
|
1958
1970
|
from: 'string',
|
|
1959
1971
|
isvCode: 'string',
|
|
@@ -1985,6 +1997,7 @@ class SendChatappMessageShrinkRequest extends $tea.Model {
|
|
|
1985
1997
|
custSpaceId: 'CustSpaceId',
|
|
1986
1998
|
custWabaId: 'CustWabaId',
|
|
1987
1999
|
fallBackContent: 'FallBackContent',
|
|
2000
|
+
fallBackDuration: 'FallBackDuration',
|
|
1988
2001
|
fallBackId: 'FallBackId',
|
|
1989
2002
|
from: 'From',
|
|
1990
2003
|
isvCode: 'IsvCode',
|
|
@@ -2010,6 +2023,7 @@ class SendChatappMessageShrinkRequest extends $tea.Model {
|
|
|
2010
2023
|
custSpaceId: 'string',
|
|
2011
2024
|
custWabaId: 'string',
|
|
2012
2025
|
fallBackContent: 'string',
|
|
2026
|
+
fallBackDuration: 'number',
|
|
2013
2027
|
fallBackId: 'string',
|
|
2014
2028
|
from: 'string',
|
|
2015
2029
|
isvCode: 'string',
|
|
@@ -2605,7 +2619,11 @@ class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
|
|
|
2605
2619
|
}
|
|
2606
2620
|
static names() {
|
|
2607
2621
|
return {
|
|
2622
|
+
autofillText: 'AutofillText',
|
|
2623
|
+
isOptOut: 'IsOptOut',
|
|
2624
|
+
packageName: 'PackageName',
|
|
2608
2625
|
phoneNumber: 'PhoneNumber',
|
|
2626
|
+
signatureHash: 'SignatureHash',
|
|
2609
2627
|
text: 'Text',
|
|
2610
2628
|
type: 'Type',
|
|
2611
2629
|
url: 'Url',
|
|
@@ -2614,7 +2632,11 @@ class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
|
|
|
2614
2632
|
}
|
|
2615
2633
|
static types() {
|
|
2616
2634
|
return {
|
|
2635
|
+
autofillText: 'string',
|
|
2636
|
+
isOptOut: 'boolean',
|
|
2637
|
+
packageName: 'string',
|
|
2617
2638
|
phoneNumber: 'string',
|
|
2639
|
+
signatureHash: 'string',
|
|
2618
2640
|
text: 'string',
|
|
2619
2641
|
type: 'string',
|
|
2620
2642
|
url: 'string',
|
|
@@ -2629,8 +2651,10 @@ class CreateChatappTemplateRequestComponents extends $tea.Model {
|
|
|
2629
2651
|
}
|
|
2630
2652
|
static names() {
|
|
2631
2653
|
return {
|
|
2654
|
+
addSecretRecommendation: 'AddSecretRecommendation',
|
|
2632
2655
|
buttons: 'Buttons',
|
|
2633
2656
|
caption: 'Caption',
|
|
2657
|
+
codeExpirationMinutes: 'CodeExpirationMinutes',
|
|
2634
2658
|
duration: 'Duration',
|
|
2635
2659
|
fileName: 'FileName',
|
|
2636
2660
|
fileType: 'FileType',
|
|
@@ -2643,8 +2667,10 @@ class CreateChatappTemplateRequestComponents extends $tea.Model {
|
|
|
2643
2667
|
}
|
|
2644
2668
|
static types() {
|
|
2645
2669
|
return {
|
|
2670
|
+
addSecretRecommendation: 'boolean',
|
|
2646
2671
|
buttons: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponentsButtons },
|
|
2647
2672
|
caption: 'string',
|
|
2673
|
+
codeExpirationMinutes: 'number',
|
|
2648
2674
|
duration: 'number',
|
|
2649
2675
|
fileName: 'string',
|
|
2650
2676
|
fileType: 'string',
|
|
@@ -2675,13 +2701,42 @@ class CreateChatappTemplateResponseBodyData extends $tea.Model {
|
|
|
2675
2701
|
}
|
|
2676
2702
|
}
|
|
2677
2703
|
exports.CreateChatappTemplateResponseBodyData = CreateChatappTemplateResponseBodyData;
|
|
2704
|
+
class GetChatappTemplateDetailResponseBodyDataComponentsButtonsExtendAttrs extends $tea.Model {
|
|
2705
|
+
constructor(map) {
|
|
2706
|
+
super(map);
|
|
2707
|
+
}
|
|
2708
|
+
static names() {
|
|
2709
|
+
return {
|
|
2710
|
+
action: 'Action',
|
|
2711
|
+
intentCode: 'IntentCode',
|
|
2712
|
+
nextLanguageCode: 'NextLanguageCode',
|
|
2713
|
+
nextTemplateCode: 'NextTemplateCode',
|
|
2714
|
+
nextTemplateName: 'NextTemplateName',
|
|
2715
|
+
};
|
|
2716
|
+
}
|
|
2717
|
+
static types() {
|
|
2718
|
+
return {
|
|
2719
|
+
action: 'string',
|
|
2720
|
+
intentCode: 'string',
|
|
2721
|
+
nextLanguageCode: 'string',
|
|
2722
|
+
nextTemplateCode: 'string',
|
|
2723
|
+
nextTemplateName: 'string',
|
|
2724
|
+
};
|
|
2725
|
+
}
|
|
2726
|
+
}
|
|
2727
|
+
exports.GetChatappTemplateDetailResponseBodyDataComponentsButtonsExtendAttrs = GetChatappTemplateDetailResponseBodyDataComponentsButtonsExtendAttrs;
|
|
2678
2728
|
class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $tea.Model {
|
|
2679
2729
|
constructor(map) {
|
|
2680
2730
|
super(map);
|
|
2681
2731
|
}
|
|
2682
2732
|
static names() {
|
|
2683
2733
|
return {
|
|
2734
|
+
autofillText: 'AutofillText',
|
|
2735
|
+
extendAttrs: 'ExtendAttrs',
|
|
2736
|
+
isOptOut: 'IsOptOut',
|
|
2737
|
+
packageName: 'PackageName',
|
|
2684
2738
|
phoneNumber: 'PhoneNumber',
|
|
2739
|
+
signatureHash: 'SignatureHash',
|
|
2685
2740
|
text: 'Text',
|
|
2686
2741
|
type: 'Type',
|
|
2687
2742
|
url: 'Url',
|
|
@@ -2690,7 +2745,12 @@ class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $tea.Mod
|
|
|
2690
2745
|
}
|
|
2691
2746
|
static types() {
|
|
2692
2747
|
return {
|
|
2748
|
+
autofillText: 'string',
|
|
2749
|
+
extendAttrs: GetChatappTemplateDetailResponseBodyDataComponentsButtonsExtendAttrs,
|
|
2750
|
+
isOptOut: 'boolean',
|
|
2751
|
+
packageName: 'string',
|
|
2693
2752
|
phoneNumber: 'string',
|
|
2753
|
+
signatureHash: 'string',
|
|
2694
2754
|
text: 'string',
|
|
2695
2755
|
type: 'string',
|
|
2696
2756
|
url: 'string',
|
|
@@ -2705,12 +2765,18 @@ class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
|
|
|
2705
2765
|
}
|
|
2706
2766
|
static names() {
|
|
2707
2767
|
return {
|
|
2768
|
+
addSecretRecommendation: 'AddSecretRecommendation',
|
|
2708
2769
|
buttons: 'Buttons',
|
|
2709
2770
|
caption: 'Caption',
|
|
2771
|
+
codeExpirationMinutes: 'CodeExpirationMinutes',
|
|
2710
2772
|
duration: 'Duration',
|
|
2711
2773
|
fileName: 'FileName',
|
|
2712
2774
|
fileType: 'FileType',
|
|
2713
2775
|
format: 'Format',
|
|
2776
|
+
latitude: 'Latitude',
|
|
2777
|
+
locationAddress: 'LocationAddress',
|
|
2778
|
+
locationName: 'LocationName',
|
|
2779
|
+
longitude: 'Longitude',
|
|
2714
2780
|
text: 'Text',
|
|
2715
2781
|
thumbUrl: 'ThumbUrl',
|
|
2716
2782
|
type: 'Type',
|
|
@@ -2719,12 +2785,18 @@ class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
|
|
|
2719
2785
|
}
|
|
2720
2786
|
static types() {
|
|
2721
2787
|
return {
|
|
2788
|
+
addSecretRecommendation: 'boolean',
|
|
2722
2789
|
buttons: { 'type': 'array', 'itemType': GetChatappTemplateDetailResponseBodyDataComponentsButtons },
|
|
2723
2790
|
caption: 'string',
|
|
2791
|
+
codeExpirationMinutes: 'number',
|
|
2724
2792
|
duration: 'number',
|
|
2725
2793
|
fileName: 'string',
|
|
2726
2794
|
fileType: 'string',
|
|
2727
2795
|
format: 'string',
|
|
2796
|
+
latitude: 'string',
|
|
2797
|
+
locationAddress: 'string',
|
|
2798
|
+
locationName: 'string',
|
|
2799
|
+
longitude: 'string',
|
|
2728
2800
|
text: 'string',
|
|
2729
2801
|
thumbUrl: 'string',
|
|
2730
2802
|
type: 'string',
|
|
@@ -2879,7 +2951,11 @@ class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
|
|
|
2879
2951
|
}
|
|
2880
2952
|
static names() {
|
|
2881
2953
|
return {
|
|
2954
|
+
autofillText: 'AutofillText',
|
|
2955
|
+
isOptOut: 'IsOptOut',
|
|
2956
|
+
packageName: 'PackageName',
|
|
2882
2957
|
phoneNumber: 'PhoneNumber',
|
|
2958
|
+
signatureHash: 'SignatureHash',
|
|
2883
2959
|
text: 'Text',
|
|
2884
2960
|
type: 'Type',
|
|
2885
2961
|
url: 'Url',
|
|
@@ -2888,7 +2964,11 @@ class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
|
|
|
2888
2964
|
}
|
|
2889
2965
|
static types() {
|
|
2890
2966
|
return {
|
|
2967
|
+
autofillText: 'string',
|
|
2968
|
+
isOptOut: 'boolean',
|
|
2969
|
+
packageName: 'string',
|
|
2891
2970
|
phoneNumber: 'string',
|
|
2971
|
+
signatureHash: 'string',
|
|
2892
2972
|
text: 'string',
|
|
2893
2973
|
type: 'string',
|
|
2894
2974
|
url: 'string',
|
|
@@ -2903,8 +2983,10 @@ class ModifyChatappTemplateRequestComponents extends $tea.Model {
|
|
|
2903
2983
|
}
|
|
2904
2984
|
static names() {
|
|
2905
2985
|
return {
|
|
2986
|
+
addSecretRecommendation: 'AddSecretRecommendation',
|
|
2906
2987
|
buttons: 'Buttons',
|
|
2907
2988
|
caption: 'Caption',
|
|
2989
|
+
codeExpirationMinutes: 'CodeExpirationMinutes',
|
|
2908
2990
|
duration: 'Duration',
|
|
2909
2991
|
fileName: 'FileName',
|
|
2910
2992
|
fileType: 'FileType',
|
|
@@ -2917,8 +2999,10 @@ class ModifyChatappTemplateRequestComponents extends $tea.Model {
|
|
|
2917
2999
|
}
|
|
2918
3000
|
static types() {
|
|
2919
3001
|
return {
|
|
3002
|
+
addSecretRecommendation: 'boolean',
|
|
2920
3003
|
buttons: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponentsButtons },
|
|
2921
3004
|
caption: 'string',
|
|
3005
|
+
codeExpirationMinutes: 'number',
|
|
2922
3006
|
duration: 'number',
|
|
2923
3007
|
fileName: 'string',
|
|
2924
3008
|
fileType: 'string',
|
|
@@ -3096,7 +3180,7 @@ class Client extends openapi_client_1.default {
|
|
|
3096
3180
|
return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
3097
3181
|
}
|
|
3098
3182
|
/**
|
|
3099
|
-
* You can call this operation up to 100 times per second per account. If the number of
|
|
3183
|
+
* You can call this operation up to 100 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
3100
3184
|
*
|
|
3101
3185
|
* @param tmpReq BeeBotAssociateRequest
|
|
3102
3186
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -3148,7 +3232,7 @@ class Client extends openapi_client_1.default {
|
|
|
3148
3232
|
return $tea.cast(await this.callApi(params, req, runtime), new BeeBotAssociateResponse({}));
|
|
3149
3233
|
}
|
|
3150
3234
|
/**
|
|
3151
|
-
* You can call this operation up to 100 times per second per account. If the number of
|
|
3235
|
+
* You can call this operation up to 100 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
3152
3236
|
*
|
|
3153
3237
|
* @param request BeeBotAssociateRequest
|
|
3154
3238
|
* @return BeeBotAssociateResponse
|
|
@@ -3158,7 +3242,7 @@ class Client extends openapi_client_1.default {
|
|
|
3158
3242
|
return await this.beeBotAssociateWithOptions(request, runtime);
|
|
3159
3243
|
}
|
|
3160
3244
|
/**
|
|
3161
|
-
* You can call this operation up to 100 times per second per account. If the number of
|
|
3245
|
+
* You can call this operation up to 100 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
3162
3246
|
*
|
|
3163
3247
|
* @param tmpReq BeeBotChatRequest
|
|
3164
3248
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -3225,7 +3309,7 @@ class Client extends openapi_client_1.default {
|
|
|
3225
3309
|
return $tea.cast(await this.callApi(params, req, runtime), new BeeBotChatResponse({}));
|
|
3226
3310
|
}
|
|
3227
3311
|
/**
|
|
3228
|
-
* You can call this operation up to 100 times per second per account. If the number of
|
|
3312
|
+
* You can call this operation up to 100 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
3229
3313
|
*
|
|
3230
3314
|
* @param request BeeBotChatRequest
|
|
3231
3315
|
* @return BeeBotChatResponse
|
|
@@ -3526,7 +3610,7 @@ class Client extends openapi_client_1.default {
|
|
|
3526
3610
|
return await this.chatappVerifyAndRegisterWithOptions(request, runtime);
|
|
3527
3611
|
}
|
|
3528
3612
|
/**
|
|
3529
|
-
*
|
|
3613
|
+
* The status of the phone number.
|
|
3530
3614
|
*
|
|
3531
3615
|
* @param request CreateChatappMigrationInitiateRequest
|
|
3532
3616
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -3561,7 +3645,7 @@ class Client extends openapi_client_1.default {
|
|
|
3561
3645
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateChatappMigrationInitiateResponse({}));
|
|
3562
3646
|
}
|
|
3563
3647
|
/**
|
|
3564
|
-
*
|
|
3648
|
+
* The status of the phone number.
|
|
3565
3649
|
*
|
|
3566
3650
|
* @param request CreateChatappMigrationInitiateRequest
|
|
3567
3651
|
* @return CreateChatappMigrationInitiateResponse
|
|
@@ -3571,8 +3655,7 @@ class Client extends openapi_client_1.default {
|
|
|
3571
3655
|
return await this.createChatappMigrationInitiateWithOptions(request, runtime);
|
|
3572
3656
|
}
|
|
3573
3657
|
/**
|
|
3574
|
-
*
|
|
3575
|
-
* You can call this operation up to 5 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation.
|
|
3658
|
+
* The error message.
|
|
3576
3659
|
*
|
|
3577
3660
|
* @param tmpReq CreateChatappTemplateRequest
|
|
3578
3661
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -3588,17 +3671,19 @@ class Client extends openapi_client_1.default {
|
|
|
3588
3671
|
if (!tea_util_1.default.isUnset(tmpReq.example)) {
|
|
3589
3672
|
request.exampleShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.example, "Example", "json");
|
|
3590
3673
|
}
|
|
3591
|
-
let query = {};
|
|
3592
|
-
if (!tea_util_1.default.isUnset(request.custSpaceId)) {
|
|
3593
|
-
query["CustSpaceId"] = request.custSpaceId;
|
|
3594
|
-
}
|
|
3595
3674
|
let body = {};
|
|
3675
|
+
if (!tea_util_1.default.isUnset(request.allowCategoryChange)) {
|
|
3676
|
+
body["AllowCategoryChange"] = request.allowCategoryChange;
|
|
3677
|
+
}
|
|
3596
3678
|
if (!tea_util_1.default.isUnset(request.category)) {
|
|
3597
3679
|
body["Category"] = request.category;
|
|
3598
3680
|
}
|
|
3599
3681
|
if (!tea_util_1.default.isUnset(request.componentsShrink)) {
|
|
3600
3682
|
body["Components"] = request.componentsShrink;
|
|
3601
3683
|
}
|
|
3684
|
+
if (!tea_util_1.default.isUnset(request.custSpaceId)) {
|
|
3685
|
+
body["CustSpaceId"] = request.custSpaceId;
|
|
3686
|
+
}
|
|
3602
3687
|
if (!tea_util_1.default.isUnset(request.custWabaId)) {
|
|
3603
3688
|
body["CustWabaId"] = request.custWabaId;
|
|
3604
3689
|
}
|
|
@@ -3618,7 +3703,6 @@ class Client extends openapi_client_1.default {
|
|
|
3618
3703
|
body["TemplateType"] = request.templateType;
|
|
3619
3704
|
}
|
|
3620
3705
|
let req = new $OpenApi.OpenApiRequest({
|
|
3621
|
-
query: openapi_util_1.default.query(query),
|
|
3622
3706
|
body: openapi_util_1.default.parseToMap(body),
|
|
3623
3707
|
});
|
|
3624
3708
|
let params = new $OpenApi.Params({
|
|
@@ -3635,8 +3719,7 @@ class Client extends openapi_client_1.default {
|
|
|
3635
3719
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateChatappTemplateResponse({}));
|
|
3636
3720
|
}
|
|
3637
3721
|
/**
|
|
3638
|
-
*
|
|
3639
|
-
* You can call this operation up to 5 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation.
|
|
3722
|
+
* The error message.
|
|
3640
3723
|
*
|
|
3641
3724
|
* @param request CreateChatappTemplateRequest
|
|
3642
3725
|
* @return CreateChatappTemplateResponse
|
|
@@ -3647,7 +3730,7 @@ class Client extends openapi_client_1.default {
|
|
|
3647
3730
|
}
|
|
3648
3731
|
/**
|
|
3649
3732
|
* ### QPS limit
|
|
3650
|
-
* You can call this operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
3733
|
+
* You can call this operation up to five times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
3651
3734
|
*
|
|
3652
3735
|
* @param request DeleteChatappTemplateRequest
|
|
3653
3736
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -3686,7 +3769,7 @@ class Client extends openapi_client_1.default {
|
|
|
3686
3769
|
}
|
|
3687
3770
|
/**
|
|
3688
3771
|
* ### QPS limit
|
|
3689
|
-
* You can call this operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
3772
|
+
* You can call this operation up to five times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
3690
3773
|
*
|
|
3691
3774
|
* @param request DeleteChatappTemplateRequest
|
|
3692
3775
|
* @return DeleteChatappTemplateResponse
|
|
@@ -3696,8 +3779,7 @@ class Client extends openapi_client_1.default {
|
|
|
3696
3779
|
return await this.deleteChatappTemplateWithOptions(request, runtime);
|
|
3697
3780
|
}
|
|
3698
3781
|
/**
|
|
3699
|
-
*
|
|
3700
|
-
* You can call this operation up to 5 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation.
|
|
3782
|
+
* The type of the file attached in the Viber message template.
|
|
3701
3783
|
*
|
|
3702
3784
|
* @param request GetChatappTemplateDetailRequest
|
|
3703
3785
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -3741,8 +3823,7 @@ class Client extends openapi_client_1.default {
|
|
|
3741
3823
|
return $tea.cast(await this.callApi(params, req, runtime), new GetChatappTemplateDetailResponse({}));
|
|
3742
3824
|
}
|
|
3743
3825
|
/**
|
|
3744
|
-
*
|
|
3745
|
-
* You can call this operation up to 5 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation.
|
|
3826
|
+
* The type of the file attached in the Viber message template.
|
|
3746
3827
|
*
|
|
3747
3828
|
* @param request GetChatappTemplateDetailRequest
|
|
3748
3829
|
* @return GetChatappTemplateDetailResponse
|
|
@@ -3751,6 +3832,13 @@ class Client extends openapi_client_1.default {
|
|
|
3751
3832
|
let runtime = new $Util.RuntimeOptions({});
|
|
3752
3833
|
return await this.getChatappTemplateDetailWithOptions(request, runtime);
|
|
3753
3834
|
}
|
|
3835
|
+
/**
|
|
3836
|
+
* You can call this operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
3837
|
+
*
|
|
3838
|
+
* @param request GetChatappUploadAuthorizationRequest
|
|
3839
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
3840
|
+
* @return GetChatappUploadAuthorizationResponse
|
|
3841
|
+
*/
|
|
3754
3842
|
async getChatappUploadAuthorizationWithOptions(request, runtime) {
|
|
3755
3843
|
tea_util_1.default.validateModel(request);
|
|
3756
3844
|
let query = {};
|
|
@@ -3773,6 +3861,12 @@ class Client extends openapi_client_1.default {
|
|
|
3773
3861
|
});
|
|
3774
3862
|
return $tea.cast(await this.callApi(params, req, runtime), new GetChatappUploadAuthorizationResponse({}));
|
|
3775
3863
|
}
|
|
3864
|
+
/**
|
|
3865
|
+
* You can call this operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
3866
|
+
*
|
|
3867
|
+
* @param request GetChatappUploadAuthorizationRequest
|
|
3868
|
+
* @return GetChatappUploadAuthorizationResponse
|
|
3869
|
+
*/
|
|
3776
3870
|
async getChatappUploadAuthorization(request) {
|
|
3777
3871
|
let runtime = new $Util.RuntimeOptions({});
|
|
3778
3872
|
return await this.getChatappUploadAuthorizationWithOptions(request, runtime);
|
|
@@ -3826,7 +3920,7 @@ class Client extends openapi_client_1.default {
|
|
|
3826
3920
|
return await this.getChatappVerifyCodeWithOptions(request, runtime);
|
|
3827
3921
|
}
|
|
3828
3922
|
/**
|
|
3829
|
-
*
|
|
3923
|
+
* The ID of the phone number.
|
|
3830
3924
|
*
|
|
3831
3925
|
* @param request GetMigrationVerifyCodeRequest
|
|
3832
3926
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -3864,7 +3958,7 @@ class Client extends openapi_client_1.default {
|
|
|
3864
3958
|
return $tea.cast(await this.callApi(params, req, runtime), new GetMigrationVerifyCodeResponse({}));
|
|
3865
3959
|
}
|
|
3866
3960
|
/**
|
|
3867
|
-
*
|
|
3961
|
+
* The ID of the phone number.
|
|
3868
3962
|
*
|
|
3869
3963
|
* @param request GetMigrationVerifyCodeRequest
|
|
3870
3964
|
* @return GetMigrationVerifyCodeResponse
|
|
@@ -3916,7 +4010,7 @@ class Client extends openapi_client_1.default {
|
|
|
3916
4010
|
return await this.getPhoneNumberVerificationStatusWithOptions(request, runtime);
|
|
3917
4011
|
}
|
|
3918
4012
|
/**
|
|
3919
|
-
*
|
|
4013
|
+
* The message ID.
|
|
3920
4014
|
*
|
|
3921
4015
|
* @param request IsvGetAppIdRequest
|
|
3922
4016
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -3945,7 +4039,7 @@ class Client extends openapi_client_1.default {
|
|
|
3945
4039
|
return $tea.cast(await this.callApi(params, req, runtime), new IsvGetAppIdResponse({}));
|
|
3946
4040
|
}
|
|
3947
4041
|
/**
|
|
3948
|
-
*
|
|
4042
|
+
* The message ID.
|
|
3949
4043
|
*
|
|
3950
4044
|
* @param request IsvGetAppIdRequest
|
|
3951
4045
|
* @return IsvGetAppIdResponse
|
|
@@ -3956,7 +4050,7 @@ class Client extends openapi_client_1.default {
|
|
|
3956
4050
|
}
|
|
3957
4051
|
/**
|
|
3958
4052
|
* ### QPS limit
|
|
3959
|
-
* You can call this operation up to
|
|
4053
|
+
* You can call this operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
3960
4054
|
*
|
|
3961
4055
|
* @param tmpReq ListChatappTemplateRequest
|
|
3962
4056
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -4012,7 +4106,7 @@ class Client extends openapi_client_1.default {
|
|
|
4012
4106
|
}
|
|
4013
4107
|
/**
|
|
4014
4108
|
* ### QPS limit
|
|
4015
|
-
* You can call this operation up to
|
|
4109
|
+
* You can call this operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
4016
4110
|
*
|
|
4017
4111
|
* @param request ListChatappTemplateRequest
|
|
4018
4112
|
* @return ListChatappTemplateResponse
|
|
@@ -4022,8 +4116,7 @@ class Client extends openapi_client_1.default {
|
|
|
4022
4116
|
return await this.listChatappTemplateWithOptions(request, runtime);
|
|
4023
4117
|
}
|
|
4024
4118
|
/**
|
|
4025
|
-
*
|
|
4026
|
-
* You can call this operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
4119
|
+
* The name of the message template.
|
|
4027
4120
|
*
|
|
4028
4121
|
* @param tmpReq ModifyChatappTemplateRequest
|
|
4029
4122
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -4084,8 +4177,7 @@ class Client extends openapi_client_1.default {
|
|
|
4084
4177
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyChatappTemplateResponse({}));
|
|
4085
4178
|
}
|
|
4086
4179
|
/**
|
|
4087
|
-
*
|
|
4088
|
-
* You can call this operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
4180
|
+
* The name of the message template.
|
|
4089
4181
|
*
|
|
4090
4182
|
* @param request ModifyChatappTemplateRequest
|
|
4091
4183
|
* @return ModifyChatappTemplateResponse
|
|
@@ -4160,7 +4252,7 @@ class Client extends openapi_client_1.default {
|
|
|
4160
4252
|
return await this.modifyPhoneBusinessProfileWithOptions(request, runtime);
|
|
4161
4253
|
}
|
|
4162
4254
|
/**
|
|
4163
|
-
* You can call this operation up to 10 times per second per account. If the number of
|
|
4255
|
+
* You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
4164
4256
|
*
|
|
4165
4257
|
* @param request QueryChatappBindWabaRequest
|
|
4166
4258
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -4192,7 +4284,7 @@ class Client extends openapi_client_1.default {
|
|
|
4192
4284
|
return $tea.cast(await this.callApi(params, req, runtime), new QueryChatappBindWabaResponse({}));
|
|
4193
4285
|
}
|
|
4194
4286
|
/**
|
|
4195
|
-
* You can call this operation up to 10 times per second per account. If the number of
|
|
4287
|
+
* You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
4196
4288
|
*
|
|
4197
4289
|
* @param request QueryChatappBindWabaRequest
|
|
4198
4290
|
* @return QueryChatappBindWabaResponse
|
|
@@ -4202,7 +4294,7 @@ class Client extends openapi_client_1.default {
|
|
|
4202
4294
|
return await this.queryChatappBindWabaWithOptions(request, runtime);
|
|
4203
4295
|
}
|
|
4204
4296
|
/**
|
|
4205
|
-
* You can call this operation up to 10 times per second per account. If the number of
|
|
4297
|
+
* You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
4206
4298
|
*
|
|
4207
4299
|
* @param request QueryChatappPhoneNumbersRequest
|
|
4208
4300
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -4234,7 +4326,7 @@ class Client extends openapi_client_1.default {
|
|
|
4234
4326
|
return $tea.cast(await this.callApi(params, req, runtime), new QueryChatappPhoneNumbersResponse({}));
|
|
4235
4327
|
}
|
|
4236
4328
|
/**
|
|
4237
|
-
* You can call this operation up to 10 times per second per account. If the number of
|
|
4329
|
+
* You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
4238
4330
|
*
|
|
4239
4331
|
* @param request QueryChatappPhoneNumbersRequest
|
|
4240
4332
|
* @return QueryChatappPhoneNumbersResponse
|
|
@@ -4328,7 +4420,7 @@ class Client extends openapi_client_1.default {
|
|
|
4328
4420
|
return await this.queryWabaBusinessInfoWithOptions(request, runtime);
|
|
4329
4421
|
}
|
|
4330
4422
|
/**
|
|
4331
|
-
* You can call this operation up to 10 times per second per account. If the number of
|
|
4423
|
+
* You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
4332
4424
|
* You can send messages to up to 1,000 phone numbers in a single request.
|
|
4333
4425
|
*
|
|
4334
4426
|
* @param tmpReq SendChatappMassMessageRequest
|
|
@@ -4355,6 +4447,9 @@ class Client extends openapi_client_1.default {
|
|
|
4355
4447
|
if (!tea_util_1.default.isUnset(request.fallBackContent)) {
|
|
4356
4448
|
body["FallBackContent"] = request.fallBackContent;
|
|
4357
4449
|
}
|
|
4450
|
+
if (!tea_util_1.default.isUnset(request.fallBackDuration)) {
|
|
4451
|
+
body["FallBackDuration"] = request.fallBackDuration;
|
|
4452
|
+
}
|
|
4358
4453
|
if (!tea_util_1.default.isUnset(request.fallBackId)) {
|
|
4359
4454
|
body["FallBackId"] = request.fallBackId;
|
|
4360
4455
|
}
|
|
@@ -4402,7 +4497,7 @@ class Client extends openapi_client_1.default {
|
|
|
4402
4497
|
return $tea.cast(await this.callApi(params, req, runtime), new SendChatappMassMessageResponse({}));
|
|
4403
4498
|
}
|
|
4404
4499
|
/**
|
|
4405
|
-
* You can call this operation up to 10 times per second per account. If the number of
|
|
4500
|
+
* You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
4406
4501
|
* You can send messages to up to 1,000 phone numbers in a single request.
|
|
4407
4502
|
*
|
|
4408
4503
|
* @param request SendChatappMassMessageRequest
|
|
@@ -4452,6 +4547,9 @@ class Client extends openapi_client_1.default {
|
|
|
4452
4547
|
if (!tea_util_1.default.isUnset(request.fallBackContent)) {
|
|
4453
4548
|
body["FallBackContent"] = request.fallBackContent;
|
|
4454
4549
|
}
|
|
4550
|
+
if (!tea_util_1.default.isUnset(request.fallBackDuration)) {
|
|
4551
|
+
body["FallBackDuration"] = request.fallBackDuration;
|
|
4552
|
+
}
|
|
4455
4553
|
if (!tea_util_1.default.isUnset(request.fallBackId)) {
|
|
4456
4554
|
body["FallBackId"] = request.fallBackId;
|
|
4457
4555
|
}
|
|
@@ -4521,6 +4619,13 @@ class Client extends openapi_client_1.default {
|
|
|
4521
4619
|
let runtime = new $Util.RuntimeOptions({});
|
|
4522
4620
|
return await this.sendChatappMessageWithOptions(request, runtime);
|
|
4523
4621
|
}
|
|
4622
|
+
/**
|
|
4623
|
+
* You can call this operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
4624
|
+
*
|
|
4625
|
+
* @param request SubmitIsvCustomerTermsRequest
|
|
4626
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
4627
|
+
* @return SubmitIsvCustomerTermsResponse
|
|
4628
|
+
*/
|
|
4524
4629
|
async submitIsvCustomerTermsWithOptions(request, runtime) {
|
|
4525
4630
|
tea_util_1.default.validateModel(request);
|
|
4526
4631
|
let query = {};
|
|
@@ -4561,6 +4666,12 @@ class Client extends openapi_client_1.default {
|
|
|
4561
4666
|
});
|
|
4562
4667
|
return $tea.cast(await this.callApi(params, req, runtime), new SubmitIsvCustomerTermsResponse({}));
|
|
4563
4668
|
}
|
|
4669
|
+
/**
|
|
4670
|
+
* You can call this operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
4671
|
+
*
|
|
4672
|
+
* @param request SubmitIsvCustomerTermsRequest
|
|
4673
|
+
* @return SubmitIsvCustomerTermsResponse
|
|
4674
|
+
*/
|
|
4564
4675
|
async submitIsvCustomerTerms(request) {
|
|
4565
4676
|
let runtime = new $Util.RuntimeOptions({});
|
|
4566
4677
|
return await this.submitIsvCustomerTermsWithOptions(request, runtime);
|
|
@@ -4614,7 +4725,7 @@ class Client extends openapi_client_1.default {
|
|
|
4614
4725
|
return await this.updateAccountWebhookWithOptions(request, runtime);
|
|
4615
4726
|
}
|
|
4616
4727
|
/**
|
|
4617
|
-
*
|
|
4728
|
+
* The error message returned.
|
|
4618
4729
|
*
|
|
4619
4730
|
* @param request UpdatePhoneWebhookRequest
|
|
4620
4731
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -4658,7 +4769,7 @@ class Client extends openapi_client_1.default {
|
|
|
4658
4769
|
return $tea.cast(await this.callApi(params, req, runtime), new UpdatePhoneWebhookResponse({}));
|
|
4659
4770
|
}
|
|
4660
4771
|
/**
|
|
4661
|
-
*
|
|
4772
|
+
* The error message returned.
|
|
4662
4773
|
*
|
|
4663
4774
|
* @param request UpdatePhoneWebhookRequest
|
|
4664
4775
|
* @return UpdatePhoneWebhookResponse
|