@alicloud/cams20200606 1.0.17 → 1.0.18

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
@@ -873,31 +873,23 @@ class DeleteChatappTemplateResponse extends $tea.Model {
873
873
  }
874
874
  }
875
875
  exports.DeleteChatappTemplateResponse = DeleteChatappTemplateResponse;
876
- class GetChatappTemplateDetailRequest extends $tea.Model {
876
+ class GetChatappUploadAuthorizationRequest extends $tea.Model {
877
877
  constructor(map) {
878
878
  super(map);
879
879
  }
880
880
  static names() {
881
881
  return {
882
882
  custSpaceId: 'CustSpaceId',
883
- custWabaId: 'CustWabaId',
884
- isvCode: 'IsvCode',
885
- language: 'Language',
886
- templateCode: 'TemplateCode',
887
883
  };
888
884
  }
889
885
  static types() {
890
886
  return {
891
887
  custSpaceId: 'string',
892
- custWabaId: 'string',
893
- isvCode: 'string',
894
- language: 'string',
895
- templateCode: 'string',
896
888
  };
897
889
  }
898
890
  }
899
- exports.GetChatappTemplateDetailRequest = GetChatappTemplateDetailRequest;
900
- class GetChatappTemplateDetailResponseBody extends $tea.Model {
891
+ exports.GetChatappUploadAuthorizationRequest = GetChatappUploadAuthorizationRequest;
892
+ class GetChatappUploadAuthorizationResponseBody extends $tea.Model {
901
893
  constructor(map) {
902
894
  super(map);
903
895
  }
@@ -912,14 +904,14 @@ class GetChatappTemplateDetailResponseBody extends $tea.Model {
912
904
  static types() {
913
905
  return {
914
906
  code: 'string',
915
- data: GetChatappTemplateDetailResponseBodyData,
907
+ data: GetChatappUploadAuthorizationResponseBodyData,
916
908
  message: 'string',
917
909
  requestId: 'string',
918
910
  };
919
911
  }
920
912
  }
921
- exports.GetChatappTemplateDetailResponseBody = GetChatappTemplateDetailResponseBody;
922
- class GetChatappTemplateDetailResponse extends $tea.Model {
913
+ exports.GetChatappUploadAuthorizationResponseBody = GetChatappUploadAuthorizationResponseBody;
914
+ class GetChatappUploadAuthorizationResponse extends $tea.Model {
923
915
  constructor(map) {
924
916
  super(map);
925
917
  }
@@ -934,11 +926,11 @@ class GetChatappTemplateDetailResponse extends $tea.Model {
934
926
  return {
935
927
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
936
928
  statusCode: 'number',
937
- body: GetChatappTemplateDetailResponseBody,
929
+ body: GetChatappUploadAuthorizationResponseBody,
938
930
  };
939
931
  }
940
932
  }
941
- exports.GetChatappTemplateDetailResponse = GetChatappTemplateDetailResponse;
933
+ exports.GetChatappUploadAuthorizationResponse = GetChatappUploadAuthorizationResponse;
942
934
  class GetChatappVerifyCodeRequest extends $tea.Model {
943
935
  constructor(map) {
944
936
  super(map);
@@ -1183,110 +1175,13 @@ class IsvGetAppIdResponse extends $tea.Model {
1183
1175
  }
1184
1176
  }
1185
1177
  exports.IsvGetAppIdResponse = IsvGetAppIdResponse;
1186
- class ListChatappTemplateRequest extends $tea.Model {
1187
- constructor(map) {
1188
- super(map);
1189
- }
1190
- static names() {
1191
- return {
1192
- auditStatus: 'AuditStatus',
1193
- custSpaceId: 'CustSpaceId',
1194
- custWabaId: 'CustWabaId',
1195
- isvCode: 'IsvCode',
1196
- language: 'Language',
1197
- name: 'Name',
1198
- page: 'Page',
1199
- };
1200
- }
1201
- static types() {
1202
- return {
1203
- auditStatus: 'string',
1204
- custSpaceId: 'string',
1205
- custWabaId: 'string',
1206
- isvCode: 'string',
1207
- language: 'string',
1208
- name: 'string',
1209
- page: ListChatappTemplateRequestPage,
1210
- };
1211
- }
1212
- }
1213
- exports.ListChatappTemplateRequest = ListChatappTemplateRequest;
1214
- class ListChatappTemplateShrinkRequest extends $tea.Model {
1215
- constructor(map) {
1216
- super(map);
1217
- }
1218
- static names() {
1219
- return {
1220
- auditStatus: 'AuditStatus',
1221
- custSpaceId: 'CustSpaceId',
1222
- custWabaId: 'CustWabaId',
1223
- isvCode: 'IsvCode',
1224
- language: 'Language',
1225
- name: 'Name',
1226
- pageShrink: 'Page',
1227
- };
1228
- }
1229
- static types() {
1230
- return {
1231
- auditStatus: 'string',
1232
- custSpaceId: 'string',
1233
- custWabaId: 'string',
1234
- isvCode: 'string',
1235
- language: 'string',
1236
- name: 'string',
1237
- pageShrink: 'string',
1238
- };
1239
- }
1240
- }
1241
- exports.ListChatappTemplateShrinkRequest = ListChatappTemplateShrinkRequest;
1242
- class ListChatappTemplateResponseBody extends $tea.Model {
1243
- constructor(map) {
1244
- super(map);
1245
- }
1246
- static names() {
1247
- return {
1248
- code: 'Code',
1249
- listTemplate: 'ListTemplate',
1250
- message: 'Message',
1251
- requestId: 'RequestId',
1252
- };
1253
- }
1254
- static types() {
1255
- return {
1256
- code: 'string',
1257
- listTemplate: { 'type': 'array', 'itemType': ListChatappTemplateResponseBodyListTemplate },
1258
- message: 'string',
1259
- requestId: 'string',
1260
- };
1261
- }
1262
- }
1263
- exports.ListChatappTemplateResponseBody = ListChatappTemplateResponseBody;
1264
- class ListChatappTemplateResponse extends $tea.Model {
1265
- constructor(map) {
1266
- super(map);
1267
- }
1268
- static names() {
1269
- return {
1270
- headers: 'headers',
1271
- statusCode: 'statusCode',
1272
- body: 'body',
1273
- };
1274
- }
1275
- static types() {
1276
- return {
1277
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1278
- statusCode: 'number',
1279
- body: ListChatappTemplateResponseBody,
1280
- };
1281
- }
1282
- }
1283
- exports.ListChatappTemplateResponse = ListChatappTemplateResponse;
1284
1178
  class ModifyChatappTemplateRequest extends $tea.Model {
1285
1179
  constructor(map) {
1286
1180
  super(map);
1287
1181
  }
1288
1182
  static names() {
1289
1183
  return {
1184
+ category: 'Category',
1290
1185
  components: 'Components',
1291
1186
  custSpaceId: 'CustSpaceId',
1292
1187
  custWabaId: 'CustWabaId',
@@ -1294,10 +1189,12 @@ class ModifyChatappTemplateRequest extends $tea.Model {
1294
1189
  isvCode: 'IsvCode',
1295
1190
  language: 'Language',
1296
1191
  templateCode: 'TemplateCode',
1192
+ templateType: 'TemplateType',
1297
1193
  };
1298
1194
  }
1299
1195
  static types() {
1300
1196
  return {
1197
+ category: 'string',
1301
1198
  components: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponents },
1302
1199
  custSpaceId: 'string',
1303
1200
  custWabaId: 'string',
@@ -1305,6 +1202,7 @@ class ModifyChatappTemplateRequest extends $tea.Model {
1305
1202
  isvCode: 'string',
1306
1203
  language: 'string',
1307
1204
  templateCode: 'string',
1205
+ templateType: 'string',
1308
1206
  };
1309
1207
  }
1310
1208
  }
@@ -1315,6 +1213,7 @@ class ModifyChatappTemplateShrinkRequest extends $tea.Model {
1315
1213
  }
1316
1214
  static names() {
1317
1215
  return {
1216
+ category: 'Category',
1318
1217
  componentsShrink: 'Components',
1319
1218
  custSpaceId: 'CustSpaceId',
1320
1219
  custWabaId: 'CustWabaId',
@@ -1322,10 +1221,12 @@ class ModifyChatappTemplateShrinkRequest extends $tea.Model {
1322
1221
  isvCode: 'IsvCode',
1323
1222
  language: 'Language',
1324
1223
  templateCode: 'TemplateCode',
1224
+ templateType: 'TemplateType',
1325
1225
  };
1326
1226
  }
1327
1227
  static types() {
1328
1228
  return {
1229
+ category: 'string',
1329
1230
  componentsShrink: 'string',
1330
1231
  custSpaceId: 'string',
1331
1232
  custWabaId: 'string',
@@ -1333,6 +1234,7 @@ class ModifyChatappTemplateShrinkRequest extends $tea.Model {
1333
1234
  isvCode: 'string',
1334
1235
  language: 'string',
1335
1236
  templateCode: 'string',
1237
+ templateType: 'string',
1336
1238
  };
1337
1239
  }
1338
1240
  }
@@ -1865,6 +1767,7 @@ class SendChatappMessageRequest extends $tea.Model {
1865
1767
  messageType: 'MessageType',
1866
1768
  payload: 'Payload',
1867
1769
  tag: 'Tag',
1770
+ taskId: 'TaskId',
1868
1771
  templateCode: 'TemplateCode',
1869
1772
  templateParams: 'TemplateParams',
1870
1773
  to: 'To',
@@ -1889,6 +1792,7 @@ class SendChatappMessageRequest extends $tea.Model {
1889
1792
  messageType: 'string',
1890
1793
  payload: { 'type': 'array', 'itemType': 'string' },
1891
1794
  tag: 'string',
1795
+ taskId: 'string',
1892
1796
  templateCode: 'string',
1893
1797
  templateParams: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1894
1798
  to: 'string',
@@ -1919,6 +1823,7 @@ class SendChatappMessageShrinkRequest extends $tea.Model {
1919
1823
  messageType: 'MessageType',
1920
1824
  payloadShrink: 'Payload',
1921
1825
  tag: 'Tag',
1826
+ taskId: 'TaskId',
1922
1827
  templateCode: 'TemplateCode',
1923
1828
  templateParamsShrink: 'TemplateParams',
1924
1829
  to: 'To',
@@ -1943,6 +1848,7 @@ class SendChatappMessageShrinkRequest extends $tea.Model {
1943
1848
  messageType: 'string',
1944
1849
  payloadShrink: 'string',
1945
1850
  tag: 'string',
1851
+ taskId: 'string',
1946
1852
  templateCode: 'string',
1947
1853
  templateParamsShrink: 'string',
1948
1854
  to: 'string',
@@ -1995,6 +1901,74 @@ class SendChatappMessageResponse extends $tea.Model {
1995
1901
  }
1996
1902
  }
1997
1903
  exports.SendChatappMessageResponse = SendChatappMessageResponse;
1904
+ class SubmitIsvCustomerTermsRequest extends $tea.Model {
1905
+ constructor(map) {
1906
+ super(map);
1907
+ }
1908
+ static names() {
1909
+ return {
1910
+ businessDesc: 'BusinessDesc',
1911
+ contactMail: 'ContactMail',
1912
+ countryId: 'CountryId',
1913
+ custName: 'CustName',
1914
+ custSpaceId: 'CustSpaceId',
1915
+ isvTerms: 'IsvTerms',
1916
+ officeAddress: 'OfficeAddress',
1917
+ };
1918
+ }
1919
+ static types() {
1920
+ return {
1921
+ businessDesc: 'string',
1922
+ contactMail: 'string',
1923
+ countryId: 'string',
1924
+ custName: 'string',
1925
+ custSpaceId: 'string',
1926
+ isvTerms: 'string',
1927
+ officeAddress: 'string',
1928
+ };
1929
+ }
1930
+ }
1931
+ exports.SubmitIsvCustomerTermsRequest = SubmitIsvCustomerTermsRequest;
1932
+ class SubmitIsvCustomerTermsResponseBody extends $tea.Model {
1933
+ constructor(map) {
1934
+ super(map);
1935
+ }
1936
+ static names() {
1937
+ return {
1938
+ code: 'Code',
1939
+ message: 'Message',
1940
+ requestId: 'RequestId',
1941
+ };
1942
+ }
1943
+ static types() {
1944
+ return {
1945
+ code: 'string',
1946
+ message: 'string',
1947
+ requestId: 'string',
1948
+ };
1949
+ }
1950
+ }
1951
+ exports.SubmitIsvCustomerTermsResponseBody = SubmitIsvCustomerTermsResponseBody;
1952
+ class SubmitIsvCustomerTermsResponse extends $tea.Model {
1953
+ constructor(map) {
1954
+ super(map);
1955
+ }
1956
+ static names() {
1957
+ return {
1958
+ headers: 'headers',
1959
+ statusCode: 'statusCode',
1960
+ body: 'body',
1961
+ };
1962
+ }
1963
+ static types() {
1964
+ return {
1965
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1966
+ statusCode: 'number',
1967
+ body: SubmitIsvCustomerTermsResponseBody,
1968
+ };
1969
+ }
1970
+ }
1971
+ exports.SubmitIsvCustomerTermsResponse = SubmitIsvCustomerTermsResponse;
1998
1972
  class UpdateAccountWebhookRequest extends $tea.Model {
1999
1973
  constructor(map) {
2000
1974
  super(map);
@@ -2487,9 +2461,12 @@ class CreateChatappTemplateRequestComponents extends $tea.Model {
2487
2461
  return {
2488
2462
  buttons: 'Buttons',
2489
2463
  caption: 'Caption',
2464
+ duration: 'Duration',
2490
2465
  fileName: 'FileName',
2466
+ fileType: 'FileType',
2491
2467
  format: 'Format',
2492
2468
  text: 'Text',
2469
+ thumbUrl: 'ThumbUrl',
2493
2470
  type: 'Type',
2494
2471
  url: 'Url',
2495
2472
  };
@@ -2498,9 +2475,12 @@ class CreateChatappTemplateRequestComponents extends $tea.Model {
2498
2475
  return {
2499
2476
  buttons: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponentsButtons },
2500
2477
  caption: 'string',
2478
+ duration: 'number',
2501
2479
  fileName: 'string',
2480
+ fileType: 'string',
2502
2481
  format: 'string',
2503
2482
  text: 'string',
2483
+ thumbUrl: 'string',
2504
2484
  type: 'string',
2505
2485
  url: 'string',
2506
2486
  };
@@ -2525,86 +2505,34 @@ class CreateChatappTemplateResponseBodyData extends $tea.Model {
2525
2505
  }
2526
2506
  }
2527
2507
  exports.CreateChatappTemplateResponseBodyData = CreateChatappTemplateResponseBodyData;
2528
- class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $tea.Model {
2529
- constructor(map) {
2530
- super(map);
2531
- }
2532
- static names() {
2533
- return {
2534
- phoneNumber: 'PhoneNumber',
2535
- text: 'Text',
2536
- type: 'Type',
2537
- url: 'Url',
2538
- urlType: 'UrlType',
2539
- };
2540
- }
2541
- static types() {
2542
- return {
2543
- phoneNumber: 'string',
2544
- text: 'string',
2545
- type: 'string',
2546
- url: 'string',
2547
- urlType: 'string',
2548
- };
2549
- }
2550
- }
2551
- exports.GetChatappTemplateDetailResponseBodyDataComponentsButtons = GetChatappTemplateDetailResponseBodyDataComponentsButtons;
2552
- class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
2508
+ class GetChatappUploadAuthorizationResponseBodyData extends $tea.Model {
2553
2509
  constructor(map) {
2554
2510
  super(map);
2555
2511
  }
2556
2512
  static names() {
2557
2513
  return {
2558
- buttons: 'Buttons',
2559
- caption: 'Caption',
2560
- fileName: 'FileName',
2561
- format: 'Format',
2562
- text: 'Text',
2563
- type: 'Type',
2564
- url: 'Url',
2514
+ accessKeyId: 'AccessKeyId',
2515
+ accessKeySecret: 'AccessKeySecret',
2516
+ bucketName: 'BucketName',
2517
+ dir: 'Dir',
2518
+ endPoint: 'EndPoint',
2519
+ expire: 'Expire',
2520
+ securityToken: 'SecurityToken',
2565
2521
  };
2566
2522
  }
2567
2523
  static types() {
2568
2524
  return {
2569
- buttons: { 'type': 'array', 'itemType': GetChatappTemplateDetailResponseBodyDataComponentsButtons },
2570
- caption: 'string',
2571
- fileName: 'string',
2572
- format: 'string',
2573
- text: 'string',
2574
- type: 'string',
2575
- url: 'string',
2525
+ accessKeyId: 'string',
2526
+ accessKeySecret: 'string',
2527
+ bucketName: 'string',
2528
+ dir: 'string',
2529
+ endPoint: 'string',
2530
+ expire: 'number',
2531
+ securityToken: 'string',
2576
2532
  };
2577
2533
  }
2578
2534
  }
2579
- exports.GetChatappTemplateDetailResponseBodyDataComponents = GetChatappTemplateDetailResponseBodyDataComponents;
2580
- class GetChatappTemplateDetailResponseBodyData extends $tea.Model {
2581
- constructor(map) {
2582
- super(map);
2583
- }
2584
- static names() {
2585
- return {
2586
- auditStatus: 'AuditStatus',
2587
- category: 'Category',
2588
- components: 'Components',
2589
- example: 'Example',
2590
- language: 'Language',
2591
- name: 'Name',
2592
- templateCode: 'TemplateCode',
2593
- };
2594
- }
2595
- static types() {
2596
- return {
2597
- auditStatus: 'string',
2598
- category: 'string',
2599
- components: { 'type': 'array', 'itemType': GetChatappTemplateDetailResponseBodyDataComponents },
2600
- example: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2601
- language: 'string',
2602
- name: 'string',
2603
- templateCode: 'string',
2604
- };
2605
- }
2606
- }
2607
- exports.GetChatappTemplateDetailResponseBodyData = GetChatappTemplateDetailResponseBodyData;
2535
+ exports.GetChatappUploadAuthorizationResponseBodyData = GetChatappUploadAuthorizationResponseBodyData;
2608
2536
  class GetMigrationVerifyCodeResponseBodyData extends $tea.Model {
2609
2537
  constructor(map) {
2610
2538
  super(map);
@@ -2643,48 +2571,6 @@ class GetPhoneNumberVerificationStatusResponseBodyData extends $tea.Model {
2643
2571
  }
2644
2572
  }
2645
2573
  exports.GetPhoneNumberVerificationStatusResponseBodyData = GetPhoneNumberVerificationStatusResponseBodyData;
2646
- class ListChatappTemplateRequestPage extends $tea.Model {
2647
- constructor(map) {
2648
- super(map);
2649
- }
2650
- static names() {
2651
- return {
2652
- index: 'Index',
2653
- size: 'Size',
2654
- };
2655
- }
2656
- static types() {
2657
- return {
2658
- index: 'number',
2659
- size: 'number',
2660
- };
2661
- }
2662
- }
2663
- exports.ListChatappTemplateRequestPage = ListChatappTemplateRequestPage;
2664
- class ListChatappTemplateResponseBodyListTemplate extends $tea.Model {
2665
- constructor(map) {
2666
- super(map);
2667
- }
2668
- static names() {
2669
- return {
2670
- auditStatus: 'AuditStatus',
2671
- category: 'Category',
2672
- language: 'Language',
2673
- templateCode: 'TemplateCode',
2674
- templateName: 'TemplateName',
2675
- };
2676
- }
2677
- static types() {
2678
- return {
2679
- auditStatus: 'string',
2680
- category: 'string',
2681
- language: 'string',
2682
- templateCode: 'string',
2683
- templateName: 'string',
2684
- };
2685
- }
2686
- }
2687
- exports.ListChatappTemplateResponseBodyListTemplate = ListChatappTemplateResponseBodyListTemplate;
2688
2574
  class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
2689
2575
  constructor(map) {
2690
2576
  super(map);
@@ -2717,9 +2603,12 @@ class ModifyChatappTemplateRequestComponents extends $tea.Model {
2717
2603
  return {
2718
2604
  buttons: 'Buttons',
2719
2605
  caption: 'Caption',
2606
+ duration: 'Duration',
2720
2607
  fileName: 'FileName',
2608
+ fileType: 'FileType',
2721
2609
  format: 'Format',
2722
2610
  text: 'Text',
2611
+ thumbUrl: 'ThumbUrl',
2723
2612
  type: 'Type',
2724
2613
  url: 'Url',
2725
2614
  };
@@ -2728,9 +2617,12 @@ class ModifyChatappTemplateRequestComponents extends $tea.Model {
2728
2617
  return {
2729
2618
  buttons: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponentsButtons },
2730
2619
  caption: 'string',
2620
+ duration: 'number',
2731
2621
  fileName: 'string',
2622
+ fileType: 'string',
2732
2623
  format: 'string',
2733
2624
  text: 'string',
2625
+ thumbUrl: 'string',
2734
2626
  type: 'string',
2735
2627
  url: 'string',
2736
2628
  };
@@ -3041,7 +2933,7 @@ class Client extends openapi_client_1.default {
3041
2933
  return await this.beeBotChatWithOptions(request, runtime);
3042
2934
  }
3043
2935
  /**
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.
2936
+ * 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
2937
  *
3046
2938
  * @param request ChatappBindWabaRequest
3047
2939
  * @param runtime runtime options for this request RuntimeOptions
@@ -3070,7 +2962,7 @@ class Client extends openapi_client_1.default {
3070
2962
  return $tea.cast(await this.callApi(params, req, runtime), new ChatappBindWabaResponse({}));
3071
2963
  }
3072
2964
  /**
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.
2965
+ * 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
2966
  *
3075
2967
  * @param request ChatappBindWabaRequest
3076
2968
  * @return ChatappBindWabaResponse
@@ -3118,6 +3010,13 @@ class Client extends openapi_client_1.default {
3118
3010
  let runtime = new $Util.RuntimeOptions({});
3119
3011
  return await this.chatappEmbedSignUpWithOptions(request, runtime);
3120
3012
  }
3013
+ /**
3014
+ * 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.
3015
+ *
3016
+ * @param request ChatappMigrationRegisterRequest
3017
+ * @param runtime runtime options for this request RuntimeOptions
3018
+ * @return ChatappMigrationRegisterResponse
3019
+ */
3121
3020
  async chatappMigrationRegisterWithOptions(request, runtime) {
3122
3021
  tea_util_1.default.validateModel(request);
3123
3022
  let query = {};
@@ -3143,10 +3042,23 @@ class Client extends openapi_client_1.default {
3143
3042
  });
3144
3043
  return $tea.cast(await this.callApi(params, req, runtime), new ChatappMigrationRegisterResponse({}));
3145
3044
  }
3045
+ /**
3046
+ * 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.
3047
+ *
3048
+ * @param request ChatappMigrationRegisterRequest
3049
+ * @return ChatappMigrationRegisterResponse
3050
+ */
3146
3051
  async chatappMigrationRegister(request) {
3147
3052
  let runtime = new $Util.RuntimeOptions({});
3148
3053
  return await this.chatappMigrationRegisterWithOptions(request, runtime);
3149
3054
  }
3055
+ /**
3056
+ * 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.
3057
+ *
3058
+ * @param request ChatappMigrationVerifiedRequest
3059
+ * @param runtime runtime options for this request RuntimeOptions
3060
+ * @return ChatappMigrationVerifiedResponse
3061
+ */
3150
3062
  async chatappMigrationVerifiedWithOptions(request, runtime) {
3151
3063
  tea_util_1.default.validateModel(request);
3152
3064
  let query = {};
@@ -3175,6 +3087,12 @@ class Client extends openapi_client_1.default {
3175
3087
  });
3176
3088
  return $tea.cast(await this.callApi(params, req, runtime), new ChatappMigrationVerifiedResponse({}));
3177
3089
  }
3090
+ /**
3091
+ * 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.
3092
+ *
3093
+ * @param request ChatappMigrationVerifiedRequest
3094
+ * @return ChatappMigrationVerifiedResponse
3095
+ */
3178
3096
  async chatappMigrationVerified(request) {
3179
3097
  let runtime = new $Util.RuntimeOptions({});
3180
3098
  return await this.chatappMigrationVerifiedWithOptions(request, runtime);
@@ -3427,7 +3345,7 @@ class Client extends openapi_client_1.default {
3427
3345
  }
3428
3346
  /**
3429
3347
  * ### 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.
3348
+ * 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
3349
  *
3432
3350
  * @param request DeleteChatappTemplateRequest
3433
3351
  * @param runtime runtime options for this request RuntimeOptions
@@ -3466,7 +3384,7 @@ class Client extends openapi_client_1.default {
3466
3384
  }
3467
3385
  /**
3468
3386
  * ### 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.
3387
+ * 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
3388
  *
3471
3389
  * @param request DeleteChatappTemplateRequest
3472
3390
  * @return DeleteChatappTemplateResponse
@@ -3475,37 +3393,17 @@ class Client extends openapi_client_1.default {
3475
3393
  let runtime = new $Util.RuntimeOptions({});
3476
3394
  return await this.deleteChatappTemplateWithOptions(request, runtime);
3477
3395
  }
3478
- /**
3479
- * ### QPS limit
3480
- * 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.
3481
- *
3482
- * @param request GetChatappTemplateDetailRequest
3483
- * @param runtime runtime options for this request RuntimeOptions
3484
- * @return GetChatappTemplateDetailResponse
3485
- */
3486
- async getChatappTemplateDetailWithOptions(request, runtime) {
3396
+ async getChatappUploadAuthorizationWithOptions(request, runtime) {
3487
3397
  tea_util_1.default.validateModel(request);
3488
3398
  let query = {};
3489
3399
  if (!tea_util_1.default.isUnset(request.custSpaceId)) {
3490
3400
  query["CustSpaceId"] = request.custSpaceId;
3491
3401
  }
3492
- if (!tea_util_1.default.isUnset(request.custWabaId)) {
3493
- query["CustWabaId"] = request.custWabaId;
3494
- }
3495
- if (!tea_util_1.default.isUnset(request.isvCode)) {
3496
- query["IsvCode"] = request.isvCode;
3497
- }
3498
- if (!tea_util_1.default.isUnset(request.language)) {
3499
- query["Language"] = request.language;
3500
- }
3501
- if (!tea_util_1.default.isUnset(request.templateCode)) {
3502
- query["TemplateCode"] = request.templateCode;
3503
- }
3504
3402
  let req = new $OpenApi.OpenApiRequest({
3505
3403
  query: openapi_util_1.default.query(query),
3506
3404
  });
3507
3405
  let params = new $OpenApi.Params({
3508
- action: "GetChatappTemplateDetail",
3406
+ action: "GetChatappUploadAuthorization",
3509
3407
  version: "2020-06-06",
3510
3408
  protocol: "HTTPS",
3511
3409
  pathname: "/",
@@ -3515,18 +3413,11 @@ class Client extends openapi_client_1.default {
3515
3413
  reqBodyType: "formData",
3516
3414
  bodyType: "json",
3517
3415
  });
3518
- return $tea.cast(await this.callApi(params, req, runtime), new GetChatappTemplateDetailResponse({}));
3416
+ return $tea.cast(await this.callApi(params, req, runtime), new GetChatappUploadAuthorizationResponse({}));
3519
3417
  }
3520
- /**
3521
- * ### QPS limit
3522
- * 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.
3523
- *
3524
- * @param request GetChatappTemplateDetailRequest
3525
- * @return GetChatappTemplateDetailResponse
3526
- */
3527
- async getChatappTemplateDetail(request) {
3418
+ async getChatappUploadAuthorization(request) {
3528
3419
  let runtime = new $Util.RuntimeOptions({});
3529
- return await this.getChatappTemplateDetailWithOptions(request, runtime);
3420
+ return await this.getChatappUploadAuthorizationWithOptions(request, runtime);
3530
3421
  }
3531
3422
  /**
3532
3423
  * 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.
@@ -3576,6 +3467,13 @@ class Client extends openapi_client_1.default {
3576
3467
  let runtime = new $Util.RuntimeOptions({});
3577
3468
  return await this.getChatappVerifyCodeWithOptions(request, runtime);
3578
3469
  }
3470
+ /**
3471
+ * 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.
3472
+ *
3473
+ * @param request GetMigrationVerifyCodeRequest
3474
+ * @param runtime runtime options for this request RuntimeOptions
3475
+ * @return GetMigrationVerifyCodeResponse
3476
+ */
3579
3477
  async getMigrationVerifyCodeWithOptions(request, runtime) {
3580
3478
  tea_util_1.default.validateModel(request);
3581
3479
  let query = {};
@@ -3607,6 +3505,12 @@ class Client extends openapi_client_1.default {
3607
3505
  });
3608
3506
  return $tea.cast(await this.callApi(params, req, runtime), new GetMigrationVerifyCodeResponse({}));
3609
3507
  }
3508
+ /**
3509
+ * 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.
3510
+ *
3511
+ * @param request GetMigrationVerifyCodeRequest
3512
+ * @return GetMigrationVerifyCodeResponse
3513
+ */
3610
3514
  async getMigrationVerifyCode(request) {
3611
3515
  let runtime = new $Util.RuntimeOptions({});
3612
3516
  return await this.getMigrationVerifyCodeWithOptions(request, runtime);
@@ -3694,68 +3598,12 @@ class Client extends openapi_client_1.default {
3694
3598
  }
3695
3599
  /**
3696
3600
  * ### QPS limit
3697
- * 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.
3601
+ * 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.
3698
3602
  *
3699
- * @param tmpReq ListChatappTemplateRequest
3603
+ * @param tmpReq ModifyChatappTemplateRequest
3700
3604
  * @param runtime runtime options for this request RuntimeOptions
3701
- * @return ListChatappTemplateResponse
3702
- */
3703
- async listChatappTemplateWithOptions(tmpReq, runtime) {
3704
- tea_util_1.default.validateModel(tmpReq);
3705
- let request = new ListChatappTemplateShrinkRequest({});
3706
- openapi_util_1.default.convert(tmpReq, request);
3707
- if (!tea_util_1.default.isUnset(tmpReq.page)) {
3708
- request.pageShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.page, "Page", "json");
3709
- }
3710
- let query = {};
3711
- if (!tea_util_1.default.isUnset(request.auditStatus)) {
3712
- query["AuditStatus"] = request.auditStatus;
3713
- }
3714
- if (!tea_util_1.default.isUnset(request.custSpaceId)) {
3715
- query["CustSpaceId"] = request.custSpaceId;
3716
- }
3717
- if (!tea_util_1.default.isUnset(request.custWabaId)) {
3718
- query["CustWabaId"] = request.custWabaId;
3719
- }
3720
- if (!tea_util_1.default.isUnset(request.isvCode)) {
3721
- query["IsvCode"] = request.isvCode;
3722
- }
3723
- if (!tea_util_1.default.isUnset(request.language)) {
3724
- query["Language"] = request.language;
3725
- }
3726
- if (!tea_util_1.default.isUnset(request.name)) {
3727
- query["Name"] = request.name;
3728
- }
3729
- if (!tea_util_1.default.isUnset(request.pageShrink)) {
3730
- query["Page"] = request.pageShrink;
3731
- }
3732
- let req = new $OpenApi.OpenApiRequest({
3733
- query: openapi_util_1.default.query(query),
3734
- });
3735
- let params = new $OpenApi.Params({
3736
- action: "ListChatappTemplate",
3737
- version: "2020-06-06",
3738
- protocol: "HTTPS",
3739
- pathname: "/",
3740
- method: "POST",
3741
- authType: "AK",
3742
- style: "RPC",
3743
- reqBodyType: "formData",
3744
- bodyType: "json",
3745
- });
3746
- return $tea.cast(await this.callApi(params, req, runtime), new ListChatappTemplateResponse({}));
3747
- }
3748
- /**
3749
- * ### QPS limit
3750
- * 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.
3751
- *
3752
- * @param request ListChatappTemplateRequest
3753
- * @return ListChatappTemplateResponse
3605
+ * @return ModifyChatappTemplateResponse
3754
3606
  */
3755
- async listChatappTemplate(request) {
3756
- let runtime = new $Util.RuntimeOptions({});
3757
- return await this.listChatappTemplateWithOptions(request, runtime);
3758
- }
3759
3607
  async modifyChatappTemplateWithOptions(tmpReq, runtime) {
3760
3608
  tea_util_1.default.validateModel(tmpReq);
3761
3609
  let request = new ModifyChatappTemplateShrinkRequest({});
@@ -3767,6 +3615,9 @@ class Client extends openapi_client_1.default {
3767
3615
  request.exampleShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.example, "Example", "json");
3768
3616
  }
3769
3617
  let body = {};
3618
+ if (!tea_util_1.default.isUnset(request.category)) {
3619
+ body["Category"] = request.category;
3620
+ }
3770
3621
  if (!tea_util_1.default.isUnset(request.componentsShrink)) {
3771
3622
  body["Components"] = request.componentsShrink;
3772
3623
  }
@@ -3788,6 +3639,9 @@ class Client extends openapi_client_1.default {
3788
3639
  if (!tea_util_1.default.isUnset(request.templateCode)) {
3789
3640
  body["TemplateCode"] = request.templateCode;
3790
3641
  }
3642
+ if (!tea_util_1.default.isUnset(request.templateType)) {
3643
+ body["TemplateType"] = request.templateType;
3644
+ }
3791
3645
  let req = new $OpenApi.OpenApiRequest({
3792
3646
  body: openapi_util_1.default.parseToMap(body),
3793
3647
  });
@@ -3804,6 +3658,13 @@ class Client extends openapi_client_1.default {
3804
3658
  });
3805
3659
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyChatappTemplateResponse({}));
3806
3660
  }
3661
+ /**
3662
+ * ### QPS limit
3663
+ * 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.
3664
+ *
3665
+ * @param request ModifyChatappTemplateRequest
3666
+ * @return ModifyChatappTemplateResponse
3667
+ */
3807
3668
  async modifyChatappTemplate(request) {
3808
3669
  let runtime = new $Util.RuntimeOptions({});
3809
3670
  return await this.modifyChatappTemplateWithOptions(request, runtime);
@@ -4042,7 +3903,7 @@ class Client extends openapi_client_1.default {
4042
3903
  return await this.queryWabaBusinessInfoWithOptions(request, runtime);
4043
3904
  }
4044
3905
  /**
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.
3906
+ * 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
3907
  * You can send messages to up to 1,000 phone numbers in a single request.
4047
3908
  *
4048
3909
  * @param tmpReq SendChatappMassMessageRequest
@@ -4116,7 +3977,7 @@ class Client extends openapi_client_1.default {
4116
3977
  return $tea.cast(await this.callApi(params, req, runtime), new SendChatappMassMessageResponse({}));
4117
3978
  }
4118
3979
  /**
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.
3980
+ * 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
3981
  * You can send messages to up to 1,000 phone numbers in a single request.
4121
3982
  *
4122
3983
  * @param request SendChatappMassMessageRequest
@@ -4187,6 +4048,9 @@ class Client extends openapi_client_1.default {
4187
4048
  if (!tea_util_1.default.isUnset(request.tag)) {
4188
4049
  body["Tag"] = request.tag;
4189
4050
  }
4051
+ if (!tea_util_1.default.isUnset(request.taskId)) {
4052
+ body["TaskId"] = request.taskId;
4053
+ }
4190
4054
  if (!tea_util_1.default.isUnset(request.templateCode)) {
4191
4055
  body["TemplateCode"] = request.templateCode;
4192
4056
  }
@@ -4232,6 +4096,57 @@ class Client extends openapi_client_1.default {
4232
4096
  let runtime = new $Util.RuntimeOptions({});
4233
4097
  return await this.sendChatappMessageWithOptions(request, runtime);
4234
4098
  }
4099
+ async submitIsvCustomerTermsWithOptions(request, runtime) {
4100
+ tea_util_1.default.validateModel(request);
4101
+ let query = {};
4102
+ if (!tea_util_1.default.isUnset(request.businessDesc)) {
4103
+ query["BusinessDesc"] = request.businessDesc;
4104
+ }
4105
+ if (!tea_util_1.default.isUnset(request.contactMail)) {
4106
+ query["ContactMail"] = request.contactMail;
4107
+ }
4108
+ if (!tea_util_1.default.isUnset(request.countryId)) {
4109
+ query["CountryId"] = request.countryId;
4110
+ }
4111
+ if (!tea_util_1.default.isUnset(request.custName)) {
4112
+ query["CustName"] = request.custName;
4113
+ }
4114
+ if (!tea_util_1.default.isUnset(request.custSpaceId)) {
4115
+ query["CustSpaceId"] = request.custSpaceId;
4116
+ }
4117
+ if (!tea_util_1.default.isUnset(request.isvTerms)) {
4118
+ query["IsvTerms"] = request.isvTerms;
4119
+ }
4120
+ if (!tea_util_1.default.isUnset(request.officeAddress)) {
4121
+ query["OfficeAddress"] = request.officeAddress;
4122
+ }
4123
+ let req = new $OpenApi.OpenApiRequest({
4124
+ query: openapi_util_1.default.query(query),
4125
+ });
4126
+ let params = new $OpenApi.Params({
4127
+ action: "SubmitIsvCustomerTerms",
4128
+ version: "2020-06-06",
4129
+ protocol: "HTTPS",
4130
+ pathname: "/",
4131
+ method: "POST",
4132
+ authType: "AK",
4133
+ style: "RPC",
4134
+ reqBodyType: "formData",
4135
+ bodyType: "json",
4136
+ });
4137
+ return $tea.cast(await this.callApi(params, req, runtime), new SubmitIsvCustomerTermsResponse({}));
4138
+ }
4139
+ async submitIsvCustomerTerms(request) {
4140
+ let runtime = new $Util.RuntimeOptions({});
4141
+ return await this.submitIsvCustomerTermsWithOptions(request, runtime);
4142
+ }
4143
+ /**
4144
+ * 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.
4145
+ *
4146
+ * @param request UpdateAccountWebhookRequest
4147
+ * @param runtime runtime options for this request RuntimeOptions
4148
+ * @return UpdateAccountWebhookResponse
4149
+ */
4235
4150
  async updateAccountWebhookWithOptions(request, runtime) {
4236
4151
  tea_util_1.default.validateModel(request);
4237
4152
  let query = {};
@@ -4263,6 +4178,12 @@ class Client extends openapi_client_1.default {
4263
4178
  });
4264
4179
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateAccountWebhookResponse({}));
4265
4180
  }
4181
+ /**
4182
+ * 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.
4183
+ *
4184
+ * @param request UpdateAccountWebhookRequest
4185
+ * @return UpdateAccountWebhookResponse
4186
+ */
4266
4187
  async updateAccountWebhook(request) {
4267
4188
  let runtime = new $Util.RuntimeOptions({});
4268
4189
  return await this.updateAccountWebhookWithOptions(request, runtime);