@alicloud/cams20200606 1.0.17 → 1.0.19

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.js CHANGED
@@ -884,6 +884,7 @@ class GetChatappTemplateDetailRequest extends $tea.Model {
884
884
  isvCode: 'IsvCode',
885
885
  language: 'Language',
886
886
  templateCode: 'TemplateCode',
887
+ templateType: 'TemplateType',
887
888
  };
888
889
  }
889
890
  static types() {
@@ -893,6 +894,7 @@ class GetChatappTemplateDetailRequest extends $tea.Model {
893
894
  isvCode: 'string',
894
895
  language: 'string',
895
896
  templateCode: 'string',
897
+ templateType: 'string',
896
898
  };
897
899
  }
898
900
  }
@@ -939,6 +941,64 @@ class GetChatappTemplateDetailResponse extends $tea.Model {
939
941
  }
940
942
  }
941
943
  exports.GetChatappTemplateDetailResponse = GetChatappTemplateDetailResponse;
944
+ class GetChatappUploadAuthorizationRequest extends $tea.Model {
945
+ constructor(map) {
946
+ super(map);
947
+ }
948
+ static names() {
949
+ return {
950
+ custSpaceId: 'CustSpaceId',
951
+ };
952
+ }
953
+ static types() {
954
+ return {
955
+ custSpaceId: 'string',
956
+ };
957
+ }
958
+ }
959
+ exports.GetChatappUploadAuthorizationRequest = GetChatappUploadAuthorizationRequest;
960
+ class GetChatappUploadAuthorizationResponseBody extends $tea.Model {
961
+ constructor(map) {
962
+ super(map);
963
+ }
964
+ static names() {
965
+ return {
966
+ code: 'Code',
967
+ data: 'Data',
968
+ message: 'Message',
969
+ requestId: 'RequestId',
970
+ };
971
+ }
972
+ static types() {
973
+ return {
974
+ code: 'string',
975
+ data: GetChatappUploadAuthorizationResponseBodyData,
976
+ message: 'string',
977
+ requestId: 'string',
978
+ };
979
+ }
980
+ }
981
+ exports.GetChatappUploadAuthorizationResponseBody = GetChatappUploadAuthorizationResponseBody;
982
+ class GetChatappUploadAuthorizationResponse extends $tea.Model {
983
+ constructor(map) {
984
+ super(map);
985
+ }
986
+ static names() {
987
+ return {
988
+ headers: 'headers',
989
+ statusCode: 'statusCode',
990
+ body: 'body',
991
+ };
992
+ }
993
+ static types() {
994
+ return {
995
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
996
+ statusCode: 'number',
997
+ body: GetChatappUploadAuthorizationResponseBody,
998
+ };
999
+ }
1000
+ }
1001
+ exports.GetChatappUploadAuthorizationResponse = GetChatappUploadAuthorizationResponse;
942
1002
  class GetChatappVerifyCodeRequest extends $tea.Model {
943
1003
  constructor(map) {
944
1004
  super(map);
@@ -1196,6 +1256,7 @@ class ListChatappTemplateRequest extends $tea.Model {
1196
1256
  language: 'Language',
1197
1257
  name: 'Name',
1198
1258
  page: 'Page',
1259
+ templateType: 'TemplateType',
1199
1260
  };
1200
1261
  }
1201
1262
  static types() {
@@ -1207,6 +1268,7 @@ class ListChatappTemplateRequest extends $tea.Model {
1207
1268
  language: 'string',
1208
1269
  name: 'string',
1209
1270
  page: ListChatappTemplateRequestPage,
1271
+ templateType: 'string',
1210
1272
  };
1211
1273
  }
1212
1274
  }
@@ -1224,6 +1286,7 @@ class ListChatappTemplateShrinkRequest extends $tea.Model {
1224
1286
  language: 'Language',
1225
1287
  name: 'Name',
1226
1288
  pageShrink: 'Page',
1289
+ templateType: 'TemplateType',
1227
1290
  };
1228
1291
  }
1229
1292
  static types() {
@@ -1235,6 +1298,7 @@ class ListChatappTemplateShrinkRequest extends $tea.Model {
1235
1298
  language: 'string',
1236
1299
  name: 'string',
1237
1300
  pageShrink: 'string',
1301
+ templateType: 'string',
1238
1302
  };
1239
1303
  }
1240
1304
  }
@@ -1287,6 +1351,7 @@ class ModifyChatappTemplateRequest extends $tea.Model {
1287
1351
  }
1288
1352
  static names() {
1289
1353
  return {
1354
+ category: 'Category',
1290
1355
  components: 'Components',
1291
1356
  custSpaceId: 'CustSpaceId',
1292
1357
  custWabaId: 'CustWabaId',
@@ -1294,10 +1359,12 @@ class ModifyChatappTemplateRequest extends $tea.Model {
1294
1359
  isvCode: 'IsvCode',
1295
1360
  language: 'Language',
1296
1361
  templateCode: 'TemplateCode',
1362
+ templateType: 'TemplateType',
1297
1363
  };
1298
1364
  }
1299
1365
  static types() {
1300
1366
  return {
1367
+ category: 'string',
1301
1368
  components: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponents },
1302
1369
  custSpaceId: 'string',
1303
1370
  custWabaId: 'string',
@@ -1305,6 +1372,7 @@ class ModifyChatappTemplateRequest extends $tea.Model {
1305
1372
  isvCode: 'string',
1306
1373
  language: 'string',
1307
1374
  templateCode: 'string',
1375
+ templateType: 'string',
1308
1376
  };
1309
1377
  }
1310
1378
  }
@@ -1315,6 +1383,7 @@ class ModifyChatappTemplateShrinkRequest extends $tea.Model {
1315
1383
  }
1316
1384
  static names() {
1317
1385
  return {
1386
+ category: 'Category',
1318
1387
  componentsShrink: 'Components',
1319
1388
  custSpaceId: 'CustSpaceId',
1320
1389
  custWabaId: 'CustWabaId',
@@ -1322,10 +1391,12 @@ class ModifyChatappTemplateShrinkRequest extends $tea.Model {
1322
1391
  isvCode: 'IsvCode',
1323
1392
  language: 'Language',
1324
1393
  templateCode: 'TemplateCode',
1394
+ templateType: 'TemplateType',
1325
1395
  };
1326
1396
  }
1327
1397
  static types() {
1328
1398
  return {
1399
+ category: 'string',
1329
1400
  componentsShrink: 'string',
1330
1401
  custSpaceId: 'string',
1331
1402
  custWabaId: 'string',
@@ -1333,6 +1404,7 @@ class ModifyChatappTemplateShrinkRequest extends $tea.Model {
1333
1404
  isvCode: 'string',
1334
1405
  language: 'string',
1335
1406
  templateCode: 'string',
1407
+ templateType: 'string',
1336
1408
  };
1337
1409
  }
1338
1410
  }
@@ -1865,6 +1937,7 @@ class SendChatappMessageRequest extends $tea.Model {
1865
1937
  messageType: 'MessageType',
1866
1938
  payload: 'Payload',
1867
1939
  tag: 'Tag',
1940
+ taskId: 'TaskId',
1868
1941
  templateCode: 'TemplateCode',
1869
1942
  templateParams: 'TemplateParams',
1870
1943
  to: 'To',
@@ -1889,6 +1962,7 @@ class SendChatappMessageRequest extends $tea.Model {
1889
1962
  messageType: 'string',
1890
1963
  payload: { 'type': 'array', 'itemType': 'string' },
1891
1964
  tag: 'string',
1965
+ taskId: 'string',
1892
1966
  templateCode: 'string',
1893
1967
  templateParams: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1894
1968
  to: 'string',
@@ -1919,6 +1993,7 @@ class SendChatappMessageShrinkRequest extends $tea.Model {
1919
1993
  messageType: 'MessageType',
1920
1994
  payloadShrink: 'Payload',
1921
1995
  tag: 'Tag',
1996
+ taskId: 'TaskId',
1922
1997
  templateCode: 'TemplateCode',
1923
1998
  templateParamsShrink: 'TemplateParams',
1924
1999
  to: 'To',
@@ -1943,6 +2018,7 @@ class SendChatappMessageShrinkRequest extends $tea.Model {
1943
2018
  messageType: 'string',
1944
2019
  payloadShrink: 'string',
1945
2020
  tag: 'string',
2021
+ taskId: 'string',
1946
2022
  templateCode: 'string',
1947
2023
  templateParamsShrink: 'string',
1948
2024
  to: 'string',
@@ -1995,6 +2071,74 @@ class SendChatappMessageResponse extends $tea.Model {
1995
2071
  }
1996
2072
  }
1997
2073
  exports.SendChatappMessageResponse = SendChatappMessageResponse;
2074
+ class SubmitIsvCustomerTermsRequest extends $tea.Model {
2075
+ constructor(map) {
2076
+ super(map);
2077
+ }
2078
+ static names() {
2079
+ return {
2080
+ businessDesc: 'BusinessDesc',
2081
+ contactMail: 'ContactMail',
2082
+ countryId: 'CountryId',
2083
+ custName: 'CustName',
2084
+ custSpaceId: 'CustSpaceId',
2085
+ isvTerms: 'IsvTerms',
2086
+ officeAddress: 'OfficeAddress',
2087
+ };
2088
+ }
2089
+ static types() {
2090
+ return {
2091
+ businessDesc: 'string',
2092
+ contactMail: 'string',
2093
+ countryId: 'string',
2094
+ custName: 'string',
2095
+ custSpaceId: 'string',
2096
+ isvTerms: 'string',
2097
+ officeAddress: 'string',
2098
+ };
2099
+ }
2100
+ }
2101
+ exports.SubmitIsvCustomerTermsRequest = SubmitIsvCustomerTermsRequest;
2102
+ class SubmitIsvCustomerTermsResponseBody extends $tea.Model {
2103
+ constructor(map) {
2104
+ super(map);
2105
+ }
2106
+ static names() {
2107
+ return {
2108
+ code: 'Code',
2109
+ message: 'Message',
2110
+ requestId: 'RequestId',
2111
+ };
2112
+ }
2113
+ static types() {
2114
+ return {
2115
+ code: 'string',
2116
+ message: 'string',
2117
+ requestId: 'string',
2118
+ };
2119
+ }
2120
+ }
2121
+ exports.SubmitIsvCustomerTermsResponseBody = SubmitIsvCustomerTermsResponseBody;
2122
+ class SubmitIsvCustomerTermsResponse extends $tea.Model {
2123
+ constructor(map) {
2124
+ super(map);
2125
+ }
2126
+ static names() {
2127
+ return {
2128
+ headers: 'headers',
2129
+ statusCode: 'statusCode',
2130
+ body: 'body',
2131
+ };
2132
+ }
2133
+ static types() {
2134
+ return {
2135
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2136
+ statusCode: 'number',
2137
+ body: SubmitIsvCustomerTermsResponseBody,
2138
+ };
2139
+ }
2140
+ }
2141
+ exports.SubmitIsvCustomerTermsResponse = SubmitIsvCustomerTermsResponse;
1998
2142
  class UpdateAccountWebhookRequest extends $tea.Model {
1999
2143
  constructor(map) {
2000
2144
  super(map);
@@ -2487,9 +2631,12 @@ class CreateChatappTemplateRequestComponents extends $tea.Model {
2487
2631
  return {
2488
2632
  buttons: 'Buttons',
2489
2633
  caption: 'Caption',
2634
+ duration: 'Duration',
2490
2635
  fileName: 'FileName',
2636
+ fileType: 'FileType',
2491
2637
  format: 'Format',
2492
2638
  text: 'Text',
2639
+ thumbUrl: 'ThumbUrl',
2493
2640
  type: 'Type',
2494
2641
  url: 'Url',
2495
2642
  };
@@ -2498,9 +2645,12 @@ class CreateChatappTemplateRequestComponents extends $tea.Model {
2498
2645
  return {
2499
2646
  buttons: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponentsButtons },
2500
2647
  caption: 'string',
2648
+ duration: 'number',
2501
2649
  fileName: 'string',
2650
+ fileType: 'string',
2502
2651
  format: 'string',
2503
2652
  text: 'string',
2653
+ thumbUrl: 'string',
2504
2654
  type: 'string',
2505
2655
  url: 'string',
2506
2656
  };
@@ -2557,9 +2707,12 @@ class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
2557
2707
  return {
2558
2708
  buttons: 'Buttons',
2559
2709
  caption: 'Caption',
2710
+ duration: 'Duration',
2560
2711
  fileName: 'FileName',
2712
+ fileType: 'FileType',
2561
2713
  format: 'Format',
2562
2714
  text: 'Text',
2715
+ thumbUrl: 'ThumbUrl',
2563
2716
  type: 'Type',
2564
2717
  url: 'Url',
2565
2718
  };
@@ -2568,9 +2721,12 @@ class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
2568
2721
  return {
2569
2722
  buttons: { 'type': 'array', 'itemType': GetChatappTemplateDetailResponseBodyDataComponentsButtons },
2570
2723
  caption: 'string',
2724
+ duration: 'number',
2571
2725
  fileName: 'string',
2726
+ fileType: 'string',
2572
2727
  format: 'string',
2573
2728
  text: 'string',
2729
+ thumbUrl: 'string',
2574
2730
  type: 'string',
2575
2731
  url: 'string',
2576
2732
  };
@@ -2590,6 +2746,7 @@ class GetChatappTemplateDetailResponseBodyData extends $tea.Model {
2590
2746
  language: 'Language',
2591
2747
  name: 'Name',
2592
2748
  templateCode: 'TemplateCode',
2749
+ templateType: 'TemplateType',
2593
2750
  };
2594
2751
  }
2595
2752
  static types() {
@@ -2601,10 +2758,39 @@ class GetChatappTemplateDetailResponseBodyData extends $tea.Model {
2601
2758
  language: 'string',
2602
2759
  name: 'string',
2603
2760
  templateCode: 'string',
2761
+ templateType: 'string',
2604
2762
  };
2605
2763
  }
2606
2764
  }
2607
2765
  exports.GetChatappTemplateDetailResponseBodyData = GetChatappTemplateDetailResponseBodyData;
2766
+ class GetChatappUploadAuthorizationResponseBodyData extends $tea.Model {
2767
+ constructor(map) {
2768
+ super(map);
2769
+ }
2770
+ static names() {
2771
+ return {
2772
+ accessKeyId: 'AccessKeyId',
2773
+ accessKeySecret: 'AccessKeySecret',
2774
+ bucketName: 'BucketName',
2775
+ dir: 'Dir',
2776
+ endPoint: 'EndPoint',
2777
+ expire: 'Expire',
2778
+ securityToken: 'SecurityToken',
2779
+ };
2780
+ }
2781
+ static types() {
2782
+ return {
2783
+ accessKeyId: 'string',
2784
+ accessKeySecret: 'string',
2785
+ bucketName: 'string',
2786
+ dir: 'string',
2787
+ endPoint: 'string',
2788
+ expire: 'number',
2789
+ securityToken: 'string',
2790
+ };
2791
+ }
2792
+ }
2793
+ exports.GetChatappUploadAuthorizationResponseBodyData = GetChatappUploadAuthorizationResponseBodyData;
2608
2794
  class GetMigrationVerifyCodeResponseBodyData extends $tea.Model {
2609
2795
  constructor(map) {
2610
2796
  super(map);
@@ -2672,6 +2858,7 @@ class ListChatappTemplateResponseBodyListTemplate extends $tea.Model {
2672
2858
  language: 'Language',
2673
2859
  templateCode: 'TemplateCode',
2674
2860
  templateName: 'TemplateName',
2861
+ templateType: 'TemplateType',
2675
2862
  };
2676
2863
  }
2677
2864
  static types() {
@@ -2681,6 +2868,7 @@ class ListChatappTemplateResponseBodyListTemplate extends $tea.Model {
2681
2868
  language: 'string',
2682
2869
  templateCode: 'string',
2683
2870
  templateName: 'string',
2871
+ templateType: 'string',
2684
2872
  };
2685
2873
  }
2686
2874
  }
@@ -2717,9 +2905,12 @@ class ModifyChatappTemplateRequestComponents extends $tea.Model {
2717
2905
  return {
2718
2906
  buttons: 'Buttons',
2719
2907
  caption: 'Caption',
2908
+ duration: 'Duration',
2720
2909
  fileName: 'FileName',
2910
+ fileType: 'FileType',
2721
2911
  format: 'Format',
2722
2912
  text: 'Text',
2913
+ thumbUrl: 'ThumbUrl',
2723
2914
  type: 'Type',
2724
2915
  url: 'Url',
2725
2916
  };
@@ -2728,9 +2919,12 @@ class ModifyChatappTemplateRequestComponents extends $tea.Model {
2728
2919
  return {
2729
2920
  buttons: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponentsButtons },
2730
2921
  caption: 'string',
2922
+ duration: 'number',
2731
2923
  fileName: 'string',
2924
+ fileType: 'string',
2732
2925
  format: 'string',
2733
2926
  text: 'string',
2927
+ thumbUrl: 'string',
2734
2928
  type: 'string',
2735
2929
  url: 'string',
2736
2930
  };
@@ -3041,7 +3235,7 @@ class Client extends openapi_client_1.default {
3041
3235
  return await this.beeBotChatWithOptions(request, runtime);
3042
3236
  }
3043
3237
  /**
3044
- * You can call this operation up to 10 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.
3238
+ * 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.
3045
3239
  *
3046
3240
  * @param request ChatappBindWabaRequest
3047
3241
  * @param runtime runtime options for this request RuntimeOptions
@@ -3070,7 +3264,7 @@ class Client extends openapi_client_1.default {
3070
3264
  return $tea.cast(await this.callApi(params, req, runtime), new ChatappBindWabaResponse({}));
3071
3265
  }
3072
3266
  /**
3073
- * You can call this operation up to 10 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.
3267
+ * 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.
3074
3268
  *
3075
3269
  * @param request ChatappBindWabaRequest
3076
3270
  * @return ChatappBindWabaResponse
@@ -3118,6 +3312,13 @@ class Client extends openapi_client_1.default {
3118
3312
  let runtime = new $Util.RuntimeOptions({});
3119
3313
  return await this.chatappEmbedSignUpWithOptions(request, runtime);
3120
3314
  }
3315
+ /**
3316
+ * 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.
3317
+ *
3318
+ * @param request ChatappMigrationRegisterRequest
3319
+ * @param runtime runtime options for this request RuntimeOptions
3320
+ * @return ChatappMigrationRegisterResponse
3321
+ */
3121
3322
  async chatappMigrationRegisterWithOptions(request, runtime) {
3122
3323
  tea_util_1.default.validateModel(request);
3123
3324
  let query = {};
@@ -3143,10 +3344,23 @@ class Client extends openapi_client_1.default {
3143
3344
  });
3144
3345
  return $tea.cast(await this.callApi(params, req, runtime), new ChatappMigrationRegisterResponse({}));
3145
3346
  }
3347
+ /**
3348
+ * 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.
3349
+ *
3350
+ * @param request ChatappMigrationRegisterRequest
3351
+ * @return ChatappMigrationRegisterResponse
3352
+ */
3146
3353
  async chatappMigrationRegister(request) {
3147
3354
  let runtime = new $Util.RuntimeOptions({});
3148
3355
  return await this.chatappMigrationRegisterWithOptions(request, runtime);
3149
3356
  }
3357
+ /**
3358
+ * 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.
3359
+ *
3360
+ * @param request ChatappMigrationVerifiedRequest
3361
+ * @param runtime runtime options for this request RuntimeOptions
3362
+ * @return ChatappMigrationVerifiedResponse
3363
+ */
3150
3364
  async chatappMigrationVerifiedWithOptions(request, runtime) {
3151
3365
  tea_util_1.default.validateModel(request);
3152
3366
  let query = {};
@@ -3175,6 +3389,12 @@ class Client extends openapi_client_1.default {
3175
3389
  });
3176
3390
  return $tea.cast(await this.callApi(params, req, runtime), new ChatappMigrationVerifiedResponse({}));
3177
3391
  }
3392
+ /**
3393
+ * 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.
3394
+ *
3395
+ * @param request ChatappMigrationVerifiedRequest
3396
+ * @return ChatappMigrationVerifiedResponse
3397
+ */
3178
3398
  async chatappMigrationVerified(request) {
3179
3399
  let runtime = new $Util.RuntimeOptions({});
3180
3400
  return await this.chatappMigrationVerifiedWithOptions(request, runtime);
@@ -3427,7 +3647,7 @@ class Client extends openapi_client_1.default {
3427
3647
  }
3428
3648
  /**
3429
3649
  * ### QPS limit
3430
- * 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.
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.
3431
3651
  *
3432
3652
  * @param request DeleteChatappTemplateRequest
3433
3653
  * @param runtime runtime options for this request RuntimeOptions
@@ -3466,7 +3686,7 @@ class Client extends openapi_client_1.default {
3466
3686
  }
3467
3687
  /**
3468
3688
  * ### QPS limit
3469
- * 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.
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.
3470
3690
  *
3471
3691
  * @param request DeleteChatappTemplateRequest
3472
3692
  * @return DeleteChatappTemplateResponse
@@ -3501,6 +3721,9 @@ class Client extends openapi_client_1.default {
3501
3721
  if (!tea_util_1.default.isUnset(request.templateCode)) {
3502
3722
  query["TemplateCode"] = request.templateCode;
3503
3723
  }
3724
+ if (!tea_util_1.default.isUnset(request.templateType)) {
3725
+ query["TemplateType"] = request.templateType;
3726
+ }
3504
3727
  let req = new $OpenApi.OpenApiRequest({
3505
3728
  query: openapi_util_1.default.query(query),
3506
3729
  });
@@ -3528,6 +3751,32 @@ class Client extends openapi_client_1.default {
3528
3751
  let runtime = new $Util.RuntimeOptions({});
3529
3752
  return await this.getChatappTemplateDetailWithOptions(request, runtime);
3530
3753
  }
3754
+ async getChatappUploadAuthorizationWithOptions(request, runtime) {
3755
+ tea_util_1.default.validateModel(request);
3756
+ let query = {};
3757
+ if (!tea_util_1.default.isUnset(request.custSpaceId)) {
3758
+ query["CustSpaceId"] = request.custSpaceId;
3759
+ }
3760
+ let req = new $OpenApi.OpenApiRequest({
3761
+ query: openapi_util_1.default.query(query),
3762
+ });
3763
+ let params = new $OpenApi.Params({
3764
+ action: "GetChatappUploadAuthorization",
3765
+ version: "2020-06-06",
3766
+ protocol: "HTTPS",
3767
+ pathname: "/",
3768
+ method: "POST",
3769
+ authType: "AK",
3770
+ style: "RPC",
3771
+ reqBodyType: "formData",
3772
+ bodyType: "json",
3773
+ });
3774
+ return $tea.cast(await this.callApi(params, req, runtime), new GetChatappUploadAuthorizationResponse({}));
3775
+ }
3776
+ async getChatappUploadAuthorization(request) {
3777
+ let runtime = new $Util.RuntimeOptions({});
3778
+ return await this.getChatappUploadAuthorizationWithOptions(request, runtime);
3779
+ }
3531
3780
  /**
3532
3781
  * 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.
3533
3782
  *
@@ -3576,6 +3825,13 @@ class Client extends openapi_client_1.default {
3576
3825
  let runtime = new $Util.RuntimeOptions({});
3577
3826
  return await this.getChatappVerifyCodeWithOptions(request, runtime);
3578
3827
  }
3828
+ /**
3829
+ * 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.
3830
+ *
3831
+ * @param request GetMigrationVerifyCodeRequest
3832
+ * @param runtime runtime options for this request RuntimeOptions
3833
+ * @return GetMigrationVerifyCodeResponse
3834
+ */
3579
3835
  async getMigrationVerifyCodeWithOptions(request, runtime) {
3580
3836
  tea_util_1.default.validateModel(request);
3581
3837
  let query = {};
@@ -3607,6 +3863,12 @@ class Client extends openapi_client_1.default {
3607
3863
  });
3608
3864
  return $tea.cast(await this.callApi(params, req, runtime), new GetMigrationVerifyCodeResponse({}));
3609
3865
  }
3866
+ /**
3867
+ * 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.
3868
+ *
3869
+ * @param request GetMigrationVerifyCodeRequest
3870
+ * @return GetMigrationVerifyCodeResponse
3871
+ */
3610
3872
  async getMigrationVerifyCode(request) {
3611
3873
  let runtime = new $Util.RuntimeOptions({});
3612
3874
  return await this.getMigrationVerifyCodeWithOptions(request, runtime);
@@ -3729,6 +3991,9 @@ class Client extends openapi_client_1.default {
3729
3991
  if (!tea_util_1.default.isUnset(request.pageShrink)) {
3730
3992
  query["Page"] = request.pageShrink;
3731
3993
  }
3994
+ if (!tea_util_1.default.isUnset(request.templateType)) {
3995
+ query["TemplateType"] = request.templateType;
3996
+ }
3732
3997
  let req = new $OpenApi.OpenApiRequest({
3733
3998
  query: openapi_util_1.default.query(query),
3734
3999
  });
@@ -3756,6 +4021,14 @@ class Client extends openapi_client_1.default {
3756
4021
  let runtime = new $Util.RuntimeOptions({});
3757
4022
  return await this.listChatappTemplateWithOptions(request, runtime);
3758
4023
  }
4024
+ /**
4025
+ * ### QPS limit
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.
4027
+ *
4028
+ * @param tmpReq ModifyChatappTemplateRequest
4029
+ * @param runtime runtime options for this request RuntimeOptions
4030
+ * @return ModifyChatappTemplateResponse
4031
+ */
3759
4032
  async modifyChatappTemplateWithOptions(tmpReq, runtime) {
3760
4033
  tea_util_1.default.validateModel(tmpReq);
3761
4034
  let request = new ModifyChatappTemplateShrinkRequest({});
@@ -3767,6 +4040,9 @@ class Client extends openapi_client_1.default {
3767
4040
  request.exampleShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.example, "Example", "json");
3768
4041
  }
3769
4042
  let body = {};
4043
+ if (!tea_util_1.default.isUnset(request.category)) {
4044
+ body["Category"] = request.category;
4045
+ }
3770
4046
  if (!tea_util_1.default.isUnset(request.componentsShrink)) {
3771
4047
  body["Components"] = request.componentsShrink;
3772
4048
  }
@@ -3788,6 +4064,9 @@ class Client extends openapi_client_1.default {
3788
4064
  if (!tea_util_1.default.isUnset(request.templateCode)) {
3789
4065
  body["TemplateCode"] = request.templateCode;
3790
4066
  }
4067
+ if (!tea_util_1.default.isUnset(request.templateType)) {
4068
+ body["TemplateType"] = request.templateType;
4069
+ }
3791
4070
  let req = new $OpenApi.OpenApiRequest({
3792
4071
  body: openapi_util_1.default.parseToMap(body),
3793
4072
  });
@@ -3804,6 +4083,13 @@ class Client extends openapi_client_1.default {
3804
4083
  });
3805
4084
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyChatappTemplateResponse({}));
3806
4085
  }
4086
+ /**
4087
+ * ### QPS limit
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.
4089
+ *
4090
+ * @param request ModifyChatappTemplateRequest
4091
+ * @return ModifyChatappTemplateResponse
4092
+ */
3807
4093
  async modifyChatappTemplate(request) {
3808
4094
  let runtime = new $Util.RuntimeOptions({});
3809
4095
  return await this.modifyChatappTemplateWithOptions(request, runtime);
@@ -4042,7 +4328,7 @@ class Client extends openapi_client_1.default {
4042
4328
  return await this.queryWabaBusinessInfoWithOptions(request, runtime);
4043
4329
  }
4044
4330
  /**
4045
- * 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.
4331
+ * You can call this operation up to 10 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.
4046
4332
  * You can send messages to up to 1,000 phone numbers in a single request.
4047
4333
  *
4048
4334
  * @param tmpReq SendChatappMassMessageRequest
@@ -4116,7 +4402,7 @@ class Client extends openapi_client_1.default {
4116
4402
  return $tea.cast(await this.callApi(params, req, runtime), new SendChatappMassMessageResponse({}));
4117
4403
  }
4118
4404
  /**
4119
- * 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.
4405
+ * You can call this operation up to 10 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.
4120
4406
  * You can send messages to up to 1,000 phone numbers in a single request.
4121
4407
  *
4122
4408
  * @param request SendChatappMassMessageRequest
@@ -4187,6 +4473,9 @@ class Client extends openapi_client_1.default {
4187
4473
  if (!tea_util_1.default.isUnset(request.tag)) {
4188
4474
  body["Tag"] = request.tag;
4189
4475
  }
4476
+ if (!tea_util_1.default.isUnset(request.taskId)) {
4477
+ body["TaskId"] = request.taskId;
4478
+ }
4190
4479
  if (!tea_util_1.default.isUnset(request.templateCode)) {
4191
4480
  body["TemplateCode"] = request.templateCode;
4192
4481
  }
@@ -4232,6 +4521,57 @@ class Client extends openapi_client_1.default {
4232
4521
  let runtime = new $Util.RuntimeOptions({});
4233
4522
  return await this.sendChatappMessageWithOptions(request, runtime);
4234
4523
  }
4524
+ async submitIsvCustomerTermsWithOptions(request, runtime) {
4525
+ tea_util_1.default.validateModel(request);
4526
+ let query = {};
4527
+ if (!tea_util_1.default.isUnset(request.businessDesc)) {
4528
+ query["BusinessDesc"] = request.businessDesc;
4529
+ }
4530
+ if (!tea_util_1.default.isUnset(request.contactMail)) {
4531
+ query["ContactMail"] = request.contactMail;
4532
+ }
4533
+ if (!tea_util_1.default.isUnset(request.countryId)) {
4534
+ query["CountryId"] = request.countryId;
4535
+ }
4536
+ if (!tea_util_1.default.isUnset(request.custName)) {
4537
+ query["CustName"] = request.custName;
4538
+ }
4539
+ if (!tea_util_1.default.isUnset(request.custSpaceId)) {
4540
+ query["CustSpaceId"] = request.custSpaceId;
4541
+ }
4542
+ if (!tea_util_1.default.isUnset(request.isvTerms)) {
4543
+ query["IsvTerms"] = request.isvTerms;
4544
+ }
4545
+ if (!tea_util_1.default.isUnset(request.officeAddress)) {
4546
+ query["OfficeAddress"] = request.officeAddress;
4547
+ }
4548
+ let req = new $OpenApi.OpenApiRequest({
4549
+ query: openapi_util_1.default.query(query),
4550
+ });
4551
+ let params = new $OpenApi.Params({
4552
+ action: "SubmitIsvCustomerTerms",
4553
+ version: "2020-06-06",
4554
+ protocol: "HTTPS",
4555
+ pathname: "/",
4556
+ method: "POST",
4557
+ authType: "AK",
4558
+ style: "RPC",
4559
+ reqBodyType: "formData",
4560
+ bodyType: "json",
4561
+ });
4562
+ return $tea.cast(await this.callApi(params, req, runtime), new SubmitIsvCustomerTermsResponse({}));
4563
+ }
4564
+ async submitIsvCustomerTerms(request) {
4565
+ let runtime = new $Util.RuntimeOptions({});
4566
+ return await this.submitIsvCustomerTermsWithOptions(request, runtime);
4567
+ }
4568
+ /**
4569
+ * 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.
4570
+ *
4571
+ * @param request UpdateAccountWebhookRequest
4572
+ * @param runtime runtime options for this request RuntimeOptions
4573
+ * @return UpdateAccountWebhookResponse
4574
+ */
4235
4575
  async updateAccountWebhookWithOptions(request, runtime) {
4236
4576
  tea_util_1.default.validateModel(request);
4237
4577
  let query = {};
@@ -4263,6 +4603,12 @@ class Client extends openapi_client_1.default {
4263
4603
  });
4264
4604
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateAccountWebhookResponse({}));
4265
4605
  }
4606
+ /**
4607
+ * 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.
4608
+ *
4609
+ * @param request UpdateAccountWebhookRequest
4610
+ * @return UpdateAccountWebhookResponse
4611
+ */
4266
4612
  async updateAccountWebhook(request) {
4267
4613
  let runtime = new $Util.RuntimeOptions({});
4268
4614
  return await this.updateAccountWebhookWithOptions(request, runtime);