@alicloud/cams20200606 1.2.1 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.js CHANGED
@@ -1429,6 +1429,66 @@ class GetChatappVerifyCodeResponse extends $tea.Model {
1429
1429
  }
1430
1430
  }
1431
1431
  exports.GetChatappVerifyCodeResponse = GetChatappVerifyCodeResponse;
1432
+ class GetCommerceSettingRequest extends $tea.Model {
1433
+ constructor(map) {
1434
+ super(map);
1435
+ }
1436
+ static names() {
1437
+ return {
1438
+ custSpaceId: 'CustSpaceId',
1439
+ phoneNumber: 'PhoneNumber',
1440
+ };
1441
+ }
1442
+ static types() {
1443
+ return {
1444
+ custSpaceId: 'string',
1445
+ phoneNumber: 'string',
1446
+ };
1447
+ }
1448
+ }
1449
+ exports.GetCommerceSettingRequest = GetCommerceSettingRequest;
1450
+ class GetCommerceSettingResponseBody extends $tea.Model {
1451
+ constructor(map) {
1452
+ super(map);
1453
+ }
1454
+ static names() {
1455
+ return {
1456
+ code: 'Code',
1457
+ data: 'Data',
1458
+ message: 'Message',
1459
+ requestId: 'RequestId',
1460
+ };
1461
+ }
1462
+ static types() {
1463
+ return {
1464
+ code: 'string',
1465
+ data: GetCommerceSettingResponseBodyData,
1466
+ message: 'string',
1467
+ requestId: 'string',
1468
+ };
1469
+ }
1470
+ }
1471
+ exports.GetCommerceSettingResponseBody = GetCommerceSettingResponseBody;
1472
+ class GetCommerceSettingResponse extends $tea.Model {
1473
+ constructor(map) {
1474
+ super(map);
1475
+ }
1476
+ static names() {
1477
+ return {
1478
+ headers: 'headers',
1479
+ statusCode: 'statusCode',
1480
+ body: 'body',
1481
+ };
1482
+ }
1483
+ static types() {
1484
+ return {
1485
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1486
+ statusCode: 'number',
1487
+ body: GetCommerceSettingResponseBody,
1488
+ };
1489
+ }
1490
+ }
1491
+ exports.GetCommerceSettingResponse = GetCommerceSettingResponse;
1432
1492
  class GetMigrationVerifyCodeRequest extends $tea.Model {
1433
1493
  constructor(map) {
1434
1494
  super(map);
@@ -1691,11 +1751,13 @@ class IsvGetAppIdRequest extends $tea.Model {
1691
1751
  }
1692
1752
  static names() {
1693
1753
  return {
1754
+ permissions: 'Permissions',
1694
1755
  type: 'Type',
1695
1756
  };
1696
1757
  }
1697
1758
  static types() {
1698
1759
  return {
1760
+ permissions: 'string',
1699
1761
  type: 'string',
1700
1762
  };
1701
1763
  }
@@ -1710,6 +1772,7 @@ class IsvGetAppIdResponseBody extends $tea.Model {
1710
1772
  accessDeniedDetail: 'AccessDeniedDetail',
1711
1773
  appId: 'AppId',
1712
1774
  code: 'Code',
1775
+ configId: 'ConfigId',
1713
1776
  message: 'Message',
1714
1777
  requestId: 'RequestId',
1715
1778
  };
@@ -1719,6 +1782,7 @@ class IsvGetAppIdResponseBody extends $tea.Model {
1719
1782
  accessDeniedDetail: 'string',
1720
1783
  appId: 'string',
1721
1784
  code: 'string',
1785
+ configId: 'string',
1722
1786
  message: 'string',
1723
1787
  requestId: 'string',
1724
1788
  };
@@ -2622,6 +2686,7 @@ class SendChatappMessageRequest extends $tea.Model {
2622
2686
  fallBackDuration: 'FallBackDuration',
2623
2687
  fallBackId: 'FallBackId',
2624
2688
  fallBackRule: 'FallBackRule',
2689
+ flowAction: 'FlowAction',
2625
2690
  from: 'From',
2626
2691
  isvCode: 'IsvCode',
2627
2692
  label: 'Label',
@@ -2650,6 +2715,7 @@ class SendChatappMessageRequest extends $tea.Model {
2650
2715
  fallBackDuration: 'number',
2651
2716
  fallBackId: 'string',
2652
2717
  fallBackRule: 'string',
2718
+ flowAction: SendChatappMessageRequestFlowAction,
2653
2719
  from: 'string',
2654
2720
  isvCode: 'string',
2655
2721
  label: 'string',
@@ -2684,6 +2750,7 @@ class SendChatappMessageShrinkRequest extends $tea.Model {
2684
2750
  fallBackDuration: 'FallBackDuration',
2685
2751
  fallBackId: 'FallBackId',
2686
2752
  fallBackRule: 'FallBackRule',
2753
+ flowActionShrink: 'FlowAction',
2687
2754
  from: 'From',
2688
2755
  isvCode: 'IsvCode',
2689
2756
  label: 'Label',
@@ -2712,6 +2779,7 @@ class SendChatappMessageShrinkRequest extends $tea.Model {
2712
2779
  fallBackDuration: 'number',
2713
2780
  fallBackId: 'string',
2714
2781
  fallBackRule: 'string',
2782
+ flowActionShrink: 'string',
2715
2783
  from: 'string',
2716
2784
  isvCode: 'string',
2717
2785
  label: 'string',
@@ -2907,6 +2975,68 @@ class UpdateAccountWebhookResponse extends $tea.Model {
2907
2975
  }
2908
2976
  }
2909
2977
  exports.UpdateAccountWebhookResponse = UpdateAccountWebhookResponse;
2978
+ class UpdateCommerceSettingRequest extends $tea.Model {
2979
+ constructor(map) {
2980
+ super(map);
2981
+ }
2982
+ static names() {
2983
+ return {
2984
+ cartEnable: 'CartEnable',
2985
+ catalogVisible: 'CatalogVisible',
2986
+ custSpaceId: 'CustSpaceId',
2987
+ phoneNumber: 'PhoneNumber',
2988
+ };
2989
+ }
2990
+ static types() {
2991
+ return {
2992
+ cartEnable: 'boolean',
2993
+ catalogVisible: 'boolean',
2994
+ custSpaceId: 'string',
2995
+ phoneNumber: 'string',
2996
+ };
2997
+ }
2998
+ }
2999
+ exports.UpdateCommerceSettingRequest = UpdateCommerceSettingRequest;
3000
+ class UpdateCommerceSettingResponseBody extends $tea.Model {
3001
+ constructor(map) {
3002
+ super(map);
3003
+ }
3004
+ static names() {
3005
+ return {
3006
+ code: 'Code',
3007
+ message: 'Message',
3008
+ requestId: 'RequestId',
3009
+ };
3010
+ }
3011
+ static types() {
3012
+ return {
3013
+ code: 'string',
3014
+ message: 'string',
3015
+ requestId: 'string',
3016
+ };
3017
+ }
3018
+ }
3019
+ exports.UpdateCommerceSettingResponseBody = UpdateCommerceSettingResponseBody;
3020
+ class UpdateCommerceSettingResponse extends $tea.Model {
3021
+ constructor(map) {
3022
+ super(map);
3023
+ }
3024
+ static names() {
3025
+ return {
3026
+ headers: 'headers',
3027
+ statusCode: 'statusCode',
3028
+ body: 'body',
3029
+ };
3030
+ }
3031
+ static types() {
3032
+ return {
3033
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3034
+ statusCode: 'number',
3035
+ body: UpdateCommerceSettingResponseBody,
3036
+ };
3037
+ }
3038
+ }
3039
+ exports.UpdateCommerceSettingResponse = UpdateCommerceSettingResponse;
2910
3040
  class UpdatePhoneWebhookRequest extends $tea.Model {
2911
3041
  constructor(map) {
2912
3042
  super(map);
@@ -3314,6 +3444,9 @@ class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
3314
3444
  static names() {
3315
3445
  return {
3316
3446
  autofillText: 'AutofillText',
3447
+ couponCode: 'CouponCode',
3448
+ flowAction: 'FlowAction',
3449
+ flowId: 'FlowId',
3317
3450
  isOptOut: 'IsOptOut',
3318
3451
  packageName: 'PackageName',
3319
3452
  phoneNumber: 'PhoneNumber',
@@ -3322,11 +3455,15 @@ class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
3322
3455
  type: 'Type',
3323
3456
  url: 'Url',
3324
3457
  urlType: 'UrlType',
3458
+ navigateScreen: 'navigateScreen',
3325
3459
  };
3326
3460
  }
3327
3461
  static types() {
3328
3462
  return {
3329
3463
  autofillText: 'string',
3464
+ couponCode: 'string',
3465
+ flowAction: 'string',
3466
+ flowId: 'string',
3330
3467
  isOptOut: 'boolean',
3331
3468
  packageName: 'string',
3332
3469
  phoneNumber: 'string',
@@ -3335,10 +3472,75 @@ class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
3335
3472
  type: 'string',
3336
3473
  url: 'string',
3337
3474
  urlType: 'string',
3475
+ navigateScreen: 'string',
3338
3476
  };
3339
3477
  }
3340
3478
  }
3341
3479
  exports.CreateChatappTemplateRequestComponentsButtons = CreateChatappTemplateRequestComponentsButtons;
3480
+ class CreateChatappTemplateRequestComponentsCardsCardComponentsButtons extends $tea.Model {
3481
+ constructor(map) {
3482
+ super(map);
3483
+ }
3484
+ static names() {
3485
+ return {
3486
+ phoneNumber: 'PhoneNumber',
3487
+ text: 'Text',
3488
+ type: 'Type',
3489
+ url: 'Url',
3490
+ urlType: 'UrlType',
3491
+ };
3492
+ }
3493
+ static types() {
3494
+ return {
3495
+ phoneNumber: 'string',
3496
+ text: 'string',
3497
+ type: 'string',
3498
+ url: 'string',
3499
+ urlType: 'string',
3500
+ };
3501
+ }
3502
+ }
3503
+ exports.CreateChatappTemplateRequestComponentsCardsCardComponentsButtons = CreateChatappTemplateRequestComponentsCardsCardComponentsButtons;
3504
+ class CreateChatappTemplateRequestComponentsCardsCardComponents extends $tea.Model {
3505
+ constructor(map) {
3506
+ super(map);
3507
+ }
3508
+ static names() {
3509
+ return {
3510
+ buttons: 'Buttons',
3511
+ format: 'Format',
3512
+ text: 'Text',
3513
+ type: 'Type',
3514
+ url: 'Url',
3515
+ };
3516
+ }
3517
+ static types() {
3518
+ return {
3519
+ buttons: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponentsCardsCardComponentsButtons },
3520
+ format: 'string',
3521
+ text: 'string',
3522
+ type: 'string',
3523
+ url: 'string',
3524
+ };
3525
+ }
3526
+ }
3527
+ exports.CreateChatappTemplateRequestComponentsCardsCardComponents = CreateChatappTemplateRequestComponentsCardsCardComponents;
3528
+ class CreateChatappTemplateRequestComponentsCards extends $tea.Model {
3529
+ constructor(map) {
3530
+ super(map);
3531
+ }
3532
+ static names() {
3533
+ return {
3534
+ cardComponents: 'CardComponents',
3535
+ };
3536
+ }
3537
+ static types() {
3538
+ return {
3539
+ cardComponents: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponentsCardsCardComponents },
3540
+ };
3541
+ }
3542
+ }
3543
+ exports.CreateChatappTemplateRequestComponentsCards = CreateChatappTemplateRequestComponentsCards;
3342
3544
  class CreateChatappTemplateRequestComponents extends $tea.Model {
3343
3545
  constructor(map) {
3344
3546
  super(map);
@@ -3348,11 +3550,13 @@ class CreateChatappTemplateRequestComponents extends $tea.Model {
3348
3550
  addSecretRecommendation: 'AddSecretRecommendation',
3349
3551
  buttons: 'Buttons',
3350
3552
  caption: 'Caption',
3553
+ cards: 'Cards',
3351
3554
  codeExpirationMinutes: 'CodeExpirationMinutes',
3352
3555
  duration: 'Duration',
3353
3556
  fileName: 'FileName',
3354
3557
  fileType: 'FileType',
3355
3558
  format: 'Format',
3559
+ hasExpiration: 'HasExpiration',
3356
3560
  text: 'Text',
3357
3561
  thumbUrl: 'ThumbUrl',
3358
3562
  type: 'Type',
@@ -3364,11 +3568,13 @@ class CreateChatappTemplateRequestComponents extends $tea.Model {
3364
3568
  addSecretRecommendation: 'boolean',
3365
3569
  buttons: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponentsButtons },
3366
3570
  caption: 'string',
3571
+ cards: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponentsCards },
3367
3572
  codeExpirationMinutes: 'number',
3368
3573
  duration: 'number',
3369
3574
  fileName: 'string',
3370
3575
  fileType: 'string',
3371
3576
  format: 'string',
3577
+ hasExpiration: 'boolean',
3372
3578
  text: 'string',
3373
3579
  thumbUrl: 'string',
3374
3580
  type: 'string',
@@ -3452,8 +3658,12 @@ class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $tea.Mod
3452
3658
  static names() {
3453
3659
  return {
3454
3660
  autofillText: 'AutofillText',
3661
+ couponCode: 'CouponCode',
3455
3662
  extendAttrs: 'ExtendAttrs',
3663
+ flowAction: 'FlowAction',
3664
+ flowId: 'FlowId',
3456
3665
  isOptOut: 'IsOptOut',
3666
+ navigateScreen: 'NavigateScreen',
3457
3667
  packageName: 'PackageName',
3458
3668
  phoneNumber: 'PhoneNumber',
3459
3669
  signatureHash: 'SignatureHash',
@@ -3466,8 +3676,12 @@ class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $tea.Mod
3466
3676
  static types() {
3467
3677
  return {
3468
3678
  autofillText: 'string',
3679
+ couponCode: 'string',
3469
3680
  extendAttrs: GetChatappTemplateDetailResponseBodyDataComponentsButtonsExtendAttrs,
3681
+ flowAction: 'string',
3682
+ flowId: 'string',
3470
3683
  isOptOut: 'boolean',
3684
+ navigateScreen: 'string',
3471
3685
  packageName: 'string',
3472
3686
  phoneNumber: 'string',
3473
3687
  signatureHash: 'string',
@@ -3479,6 +3693,70 @@ class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $tea.Mod
3479
3693
  }
3480
3694
  }
3481
3695
  exports.GetChatappTemplateDetailResponseBodyDataComponentsButtons = GetChatappTemplateDetailResponseBodyDataComponentsButtons;
3696
+ class GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponentsButtons extends $tea.Model {
3697
+ constructor(map) {
3698
+ super(map);
3699
+ }
3700
+ static names() {
3701
+ return {
3702
+ phoneNumber: 'PhoneNumber',
3703
+ text: 'Text',
3704
+ type: 'Type',
3705
+ url: 'Url',
3706
+ urlType: 'UrlType',
3707
+ };
3708
+ }
3709
+ static types() {
3710
+ return {
3711
+ phoneNumber: 'string',
3712
+ text: 'string',
3713
+ type: 'string',
3714
+ url: 'string',
3715
+ urlType: 'string',
3716
+ };
3717
+ }
3718
+ }
3719
+ exports.GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponentsButtons = GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponentsButtons;
3720
+ class GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponents extends $tea.Model {
3721
+ constructor(map) {
3722
+ super(map);
3723
+ }
3724
+ static names() {
3725
+ return {
3726
+ buttons: 'Buttons',
3727
+ format: 'Format',
3728
+ text: 'Text',
3729
+ type: 'Type',
3730
+ url: 'Url',
3731
+ };
3732
+ }
3733
+ static types() {
3734
+ return {
3735
+ buttons: { 'type': 'array', 'itemType': GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponentsButtons },
3736
+ format: 'string',
3737
+ text: 'string',
3738
+ type: 'string',
3739
+ url: 'string',
3740
+ };
3741
+ }
3742
+ }
3743
+ exports.GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponents = GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponents;
3744
+ class GetChatappTemplateDetailResponseBodyDataComponentsCards extends $tea.Model {
3745
+ constructor(map) {
3746
+ super(map);
3747
+ }
3748
+ static names() {
3749
+ return {
3750
+ cardComponents: 'CardComponents',
3751
+ };
3752
+ }
3753
+ static types() {
3754
+ return {
3755
+ cardComponents: { 'type': 'array', 'itemType': GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponents },
3756
+ };
3757
+ }
3758
+ }
3759
+ exports.GetChatappTemplateDetailResponseBodyDataComponentsCards = GetChatappTemplateDetailResponseBodyDataComponentsCards;
3482
3760
  class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
3483
3761
  constructor(map) {
3484
3762
  super(map);
@@ -3488,6 +3766,7 @@ class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
3488
3766
  addSecretRecommendation: 'AddSecretRecommendation',
3489
3767
  buttons: 'Buttons',
3490
3768
  caption: 'Caption',
3769
+ cards: 'Cards',
3491
3770
  codeExpirationMinutes: 'CodeExpirationMinutes',
3492
3771
  duration: 'Duration',
3493
3772
  fileName: 'FileName',
@@ -3497,10 +3776,12 @@ class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
3497
3776
  locationAddress: 'LocationAddress',
3498
3777
  locationName: 'LocationName',
3499
3778
  longitude: 'Longitude',
3779
+ offerExpirationTimeMs: 'OfferExpirationTimeMs',
3500
3780
  text: 'Text',
3501
3781
  thumbUrl: 'ThumbUrl',
3502
3782
  type: 'Type',
3503
3783
  url: 'Url',
3784
+ hasExpiration: 'hasExpiration',
3504
3785
  };
3505
3786
  }
3506
3787
  static types() {
@@ -3508,6 +3789,7 @@ class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
3508
3789
  addSecretRecommendation: 'boolean',
3509
3790
  buttons: { 'type': 'array', 'itemType': GetChatappTemplateDetailResponseBodyDataComponentsButtons },
3510
3791
  caption: 'string',
3792
+ cards: { 'type': 'array', 'itemType': GetChatappTemplateDetailResponseBodyDataComponentsCards },
3511
3793
  codeExpirationMinutes: 'number',
3512
3794
  duration: 'number',
3513
3795
  fileName: 'string',
@@ -3517,10 +3799,12 @@ class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
3517
3799
  locationAddress: 'string',
3518
3800
  locationName: 'string',
3519
3801
  longitude: 'string',
3802
+ offerExpirationTimeMs: 'string',
3520
3803
  text: 'string',
3521
3804
  thumbUrl: 'string',
3522
3805
  type: 'string',
3523
3806
  url: 'string',
3807
+ hasExpiration: 'boolean',
3524
3808
  };
3525
3809
  }
3526
3810
  }
@@ -3639,6 +3923,24 @@ class GetChatappUploadAuthorizationResponseBodyData extends $tea.Model {
3639
3923
  }
3640
3924
  }
3641
3925
  exports.GetChatappUploadAuthorizationResponseBodyData = GetChatappUploadAuthorizationResponseBodyData;
3926
+ class GetCommerceSettingResponseBodyData extends $tea.Model {
3927
+ constructor(map) {
3928
+ super(map);
3929
+ }
3930
+ static names() {
3931
+ return {
3932
+ cartEnable: 'CartEnable',
3933
+ catalogVisible: 'CatalogVisible',
3934
+ };
3935
+ }
3936
+ static types() {
3937
+ return {
3938
+ cartEnable: 'boolean',
3939
+ catalogVisible: 'boolean',
3940
+ };
3941
+ }
3942
+ }
3943
+ exports.GetCommerceSettingResponseBodyData = GetCommerceSettingResponseBodyData;
3642
3944
  class GetMigrationVerifyCodeResponseBodyData extends $tea.Model {
3643
3945
  constructor(map) {
3644
3946
  super(map);
@@ -3852,6 +4154,9 @@ class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
3852
4154
  static names() {
3853
4155
  return {
3854
4156
  autofillText: 'AutofillText',
4157
+ couponCode: 'CouponCode',
4158
+ flowAction: 'FlowAction',
4159
+ flowId: 'FlowId',
3855
4160
  isOptOut: 'IsOptOut',
3856
4161
  packageName: 'PackageName',
3857
4162
  phoneNumber: 'PhoneNumber',
@@ -3860,11 +4165,15 @@ class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
3860
4165
  type: 'Type',
3861
4166
  url: 'Url',
3862
4167
  urlType: 'UrlType',
4168
+ navigateScreen: 'navigateScreen',
3863
4169
  };
3864
4170
  }
3865
4171
  static types() {
3866
4172
  return {
3867
4173
  autofillText: 'string',
4174
+ couponCode: 'string',
4175
+ flowAction: 'string',
4176
+ flowId: 'string',
3868
4177
  isOptOut: 'boolean',
3869
4178
  packageName: 'string',
3870
4179
  phoneNumber: 'string',
@@ -3873,10 +4182,75 @@ class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
3873
4182
  type: 'string',
3874
4183
  url: 'string',
3875
4184
  urlType: 'string',
4185
+ navigateScreen: 'string',
3876
4186
  };
3877
4187
  }
3878
4188
  }
3879
4189
  exports.ModifyChatappTemplateRequestComponentsButtons = ModifyChatappTemplateRequestComponentsButtons;
4190
+ class ModifyChatappTemplateRequestComponentsCardsCardComponentsButtons extends $tea.Model {
4191
+ constructor(map) {
4192
+ super(map);
4193
+ }
4194
+ static names() {
4195
+ return {
4196
+ phoneNumber: 'PhoneNumber',
4197
+ text: 'Text',
4198
+ type: 'Type',
4199
+ url: 'Url',
4200
+ urlType: 'UrlType',
4201
+ };
4202
+ }
4203
+ static types() {
4204
+ return {
4205
+ phoneNumber: 'string',
4206
+ text: 'string',
4207
+ type: 'string',
4208
+ url: 'string',
4209
+ urlType: 'string',
4210
+ };
4211
+ }
4212
+ }
4213
+ exports.ModifyChatappTemplateRequestComponentsCardsCardComponentsButtons = ModifyChatappTemplateRequestComponentsCardsCardComponentsButtons;
4214
+ class ModifyChatappTemplateRequestComponentsCardsCardComponents extends $tea.Model {
4215
+ constructor(map) {
4216
+ super(map);
4217
+ }
4218
+ static names() {
4219
+ return {
4220
+ buttons: 'Buttons',
4221
+ format: 'Format',
4222
+ text: 'Text',
4223
+ type: 'Type',
4224
+ url: 'Url',
4225
+ };
4226
+ }
4227
+ static types() {
4228
+ return {
4229
+ buttons: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponentsCardsCardComponentsButtons },
4230
+ format: 'string',
4231
+ text: 'string',
4232
+ type: 'string',
4233
+ url: 'string',
4234
+ };
4235
+ }
4236
+ }
4237
+ exports.ModifyChatappTemplateRequestComponentsCardsCardComponents = ModifyChatappTemplateRequestComponentsCardsCardComponents;
4238
+ class ModifyChatappTemplateRequestComponentsCards extends $tea.Model {
4239
+ constructor(map) {
4240
+ super(map);
4241
+ }
4242
+ static names() {
4243
+ return {
4244
+ cardComponents: 'CardComponents',
4245
+ };
4246
+ }
4247
+ static types() {
4248
+ return {
4249
+ cardComponents: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponentsCardsCardComponents },
4250
+ };
4251
+ }
4252
+ }
4253
+ exports.ModifyChatappTemplateRequestComponentsCards = ModifyChatappTemplateRequestComponentsCards;
3880
4254
  class ModifyChatappTemplateRequestComponents extends $tea.Model {
3881
4255
  constructor(map) {
3882
4256
  super(map);
@@ -3886,11 +4260,13 @@ class ModifyChatappTemplateRequestComponents extends $tea.Model {
3886
4260
  addSecretRecommendation: 'AddSecretRecommendation',
3887
4261
  buttons: 'Buttons',
3888
4262
  caption: 'Caption',
4263
+ cards: 'Cards',
3889
4264
  codeExpirationMinutes: 'CodeExpirationMinutes',
3890
4265
  duration: 'Duration',
3891
4266
  fileName: 'FileName',
3892
4267
  fileType: 'FileType',
3893
4268
  format: 'Format',
4269
+ hasExpiration: 'HasExpiration',
3894
4270
  text: 'Text',
3895
4271
  thumbUrl: 'ThumbUrl',
3896
4272
  type: 'Type',
@@ -3902,11 +4278,13 @@ class ModifyChatappTemplateRequestComponents extends $tea.Model {
3902
4278
  addSecretRecommendation: 'boolean',
3903
4279
  buttons: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponentsButtons },
3904
4280
  caption: 'string',
4281
+ cards: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponentsCards },
3905
4282
  codeExpirationMinutes: 'number',
3906
4283
  duration: 'number',
3907
4284
  fileName: 'string',
3908
4285
  fileType: 'string',
3909
4286
  format: 'string',
4287
+ hasExpiration: 'boolean',
3910
4288
  text: 'string',
3911
4289
  thumbUrl: 'string',
3912
4290
  type: 'string',
@@ -4043,6 +4421,24 @@ class QueryWabaBusinessInfoResponseBodyData extends $tea.Model {
4043
4421
  }
4044
4422
  }
4045
4423
  exports.QueryWabaBusinessInfoResponseBodyData = QueryWabaBusinessInfoResponseBodyData;
4424
+ class SendChatappMassMessageRequestSenderListFlowAction extends $tea.Model {
4425
+ constructor(map) {
4426
+ super(map);
4427
+ }
4428
+ static names() {
4429
+ return {
4430
+ flowActionData: 'FlowActionData',
4431
+ flowToken: 'FlowToken',
4432
+ };
4433
+ }
4434
+ static types() {
4435
+ return {
4436
+ flowActionData: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4437
+ flowToken: 'string',
4438
+ };
4439
+ }
4440
+ }
4441
+ exports.SendChatappMassMessageRequestSenderListFlowAction = SendChatappMassMessageRequestSenderListFlowAction;
4046
4442
  class SendChatappMassMessageRequestSenderListProductActionSectionsProductItems extends $tea.Model {
4047
4443
  constructor(map) {
4048
4444
  super(map);
@@ -4101,6 +4497,7 @@ class SendChatappMassMessageRequestSenderList extends $tea.Model {
4101
4497
  }
4102
4498
  static names() {
4103
4499
  return {
4500
+ flowAction: 'FlowAction',
4104
4501
  payload: 'Payload',
4105
4502
  productAction: 'ProductAction',
4106
4503
  templateParams: 'TemplateParams',
@@ -4109,6 +4506,7 @@ class SendChatappMassMessageRequestSenderList extends $tea.Model {
4109
4506
  }
4110
4507
  static types() {
4111
4508
  return {
4509
+ flowAction: SendChatappMassMessageRequestSenderListFlowAction,
4112
4510
  payload: { 'type': 'array', 'itemType': 'string' },
4113
4511
  productAction: SendChatappMassMessageRequestSenderListProductAction,
4114
4512
  templateParams: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
@@ -4117,6 +4515,24 @@ class SendChatappMassMessageRequestSenderList extends $tea.Model {
4117
4515
  }
4118
4516
  }
4119
4517
  exports.SendChatappMassMessageRequestSenderList = SendChatappMassMessageRequestSenderList;
4518
+ class SendChatappMessageRequestFlowAction extends $tea.Model {
4519
+ constructor(map) {
4520
+ super(map);
4521
+ }
4522
+ static names() {
4523
+ return {
4524
+ flowActionData: 'FlowActionData',
4525
+ flowToken: 'FlowToken',
4526
+ };
4527
+ }
4528
+ static types() {
4529
+ return {
4530
+ flowActionData: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4531
+ flowToken: 'string',
4532
+ };
4533
+ }
4534
+ }
4535
+ exports.SendChatappMessageRequestFlowAction = SendChatappMessageRequestFlowAction;
4120
4536
  class SendChatappMessageRequestProductActionSectionsProductItems extends $tea.Model {
4121
4537
  constructor(map) {
4122
4538
  super(map);
@@ -5114,6 +5530,35 @@ class Client extends openapi_client_1.default {
5114
5530
  let runtime = new $Util.RuntimeOptions({});
5115
5531
  return await this.getChatappVerifyCodeWithOptions(request, runtime);
5116
5532
  }
5533
+ async getCommerceSettingWithOptions(request, runtime) {
5534
+ tea_util_1.default.validateModel(request);
5535
+ let query = {};
5536
+ if (!tea_util_1.default.isUnset(request.custSpaceId)) {
5537
+ query["CustSpaceId"] = request.custSpaceId;
5538
+ }
5539
+ if (!tea_util_1.default.isUnset(request.phoneNumber)) {
5540
+ query["PhoneNumber"] = request.phoneNumber;
5541
+ }
5542
+ let req = new $OpenApi.OpenApiRequest({
5543
+ query: openapi_util_1.default.query(query),
5544
+ });
5545
+ let params = new $OpenApi.Params({
5546
+ action: "GetCommerceSetting",
5547
+ version: "2020-06-06",
5548
+ protocol: "HTTPS",
5549
+ pathname: "/",
5550
+ method: "POST",
5551
+ authType: "AK",
5552
+ style: "RPC",
5553
+ reqBodyType: "formData",
5554
+ bodyType: "json",
5555
+ });
5556
+ return $tea.cast(await this.callApi(params, req, runtime), new GetCommerceSettingResponse({}));
5557
+ }
5558
+ async getCommerceSetting(request) {
5559
+ let runtime = new $Util.RuntimeOptions({});
5560
+ return await this.getCommerceSettingWithOptions(request, runtime);
5561
+ }
5117
5562
  /**
5118
5563
  * The ID of the phone number.
5119
5564
  *
@@ -5233,6 +5678,13 @@ class Client extends openapi_client_1.default {
5233
5678
  let runtime = new $Util.RuntimeOptions({});
5234
5679
  return await this.getPreValidatePhoneIdWithOptions(request, runtime);
5235
5680
  }
5681
+ /**
5682
+ * 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.
5683
+ *
5684
+ * @param request GetWhatsappConnectionCatalogRequest
5685
+ * @param runtime runtime options for this request RuntimeOptions
5686
+ * @return GetWhatsappConnectionCatalogResponse
5687
+ */
5236
5688
  async getWhatsappConnectionCatalogWithOptions(request, runtime) {
5237
5689
  tea_util_1.default.validateModel(request);
5238
5690
  let query = {};
@@ -5267,6 +5719,12 @@ class Client extends openapi_client_1.default {
5267
5719
  });
5268
5720
  return $tea.cast(await this.callApi(params, req, runtime), new GetWhatsappConnectionCatalogResponse({}));
5269
5721
  }
5722
+ /**
5723
+ * 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.
5724
+ *
5725
+ * @param request GetWhatsappConnectionCatalogRequest
5726
+ * @return GetWhatsappConnectionCatalogResponse
5727
+ */
5270
5728
  async getWhatsappConnectionCatalog(request) {
5271
5729
  let runtime = new $Util.RuntimeOptions({});
5272
5730
  return await this.getWhatsappConnectionCatalogWithOptions(request, runtime);
@@ -5281,6 +5739,9 @@ class Client extends openapi_client_1.default {
5281
5739
  async isvGetAppIdWithOptions(request, runtime) {
5282
5740
  tea_util_1.default.validateModel(request);
5283
5741
  let body = {};
5742
+ if (!tea_util_1.default.isUnset(request.permissions)) {
5743
+ body["Permissions"] = request.permissions;
5744
+ }
5284
5745
  if (!tea_util_1.default.isUnset(request.type)) {
5285
5746
  body["Type"] = request.type;
5286
5747
  }
@@ -5377,6 +5838,13 @@ class Client extends openapi_client_1.default {
5377
5838
  let runtime = new $Util.RuntimeOptions({});
5378
5839
  return await this.listChatappTemplateWithOptions(request, runtime);
5379
5840
  }
5841
+ /**
5842
+ * 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.
5843
+ *
5844
+ * @param request ListProductRequest
5845
+ * @param runtime runtime options for this request RuntimeOptions
5846
+ * @return ListProductResponse
5847
+ */
5380
5848
  async listProductWithOptions(request, runtime) {
5381
5849
  tea_util_1.default.validateModel(request);
5382
5850
  let query = {};
@@ -5426,10 +5894,23 @@ class Client extends openapi_client_1.default {
5426
5894
  });
5427
5895
  return $tea.cast(await this.callApi(params, req, runtime), new ListProductResponse({}));
5428
5896
  }
5897
+ /**
5898
+ * 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.
5899
+ *
5900
+ * @param request ListProductRequest
5901
+ * @return ListProductResponse
5902
+ */
5429
5903
  async listProduct(request) {
5430
5904
  let runtime = new $Util.RuntimeOptions({});
5431
5905
  return await this.listProductWithOptions(request, runtime);
5432
5906
  }
5907
+ /**
5908
+ * 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.
5909
+ *
5910
+ * @param request ListProductCatalogRequest
5911
+ * @param runtime runtime options for this request RuntimeOptions
5912
+ * @return ListProductCatalogResponse
5913
+ */
5433
5914
  async listProductCatalogWithOptions(request, runtime) {
5434
5915
  tea_util_1.default.validateModel(request);
5435
5916
  let query = {};
@@ -5476,6 +5957,12 @@ class Client extends openapi_client_1.default {
5476
5957
  });
5477
5958
  return $tea.cast(await this.callApi(params, req, runtime), new ListProductCatalogResponse({}));
5478
5959
  }
5960
+ /**
5961
+ * 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.
5962
+ *
5963
+ * @param request ListProductCatalogRequest
5964
+ * @return ListProductCatalogResponse
5965
+ */
5479
5966
  async listProductCatalog(request) {
5480
5967
  let runtime = new $Util.RuntimeOptions({});
5481
5968
  return await this.listProductCatalogWithOptions(request, runtime);
@@ -5889,6 +6376,9 @@ class Client extends openapi_client_1.default {
5889
6376
  tea_util_1.default.validateModel(tmpReq);
5890
6377
  let request = new SendChatappMessageShrinkRequest({});
5891
6378
  openapi_util_1.default.convert(tmpReq, request);
6379
+ if (!tea_util_1.default.isUnset(tmpReq.flowAction)) {
6380
+ request.flowActionShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.flowAction, "FlowAction", "json");
6381
+ }
5892
6382
  if (!tea_util_1.default.isUnset(tmpReq.payload)) {
5893
6383
  request.payloadShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.payload, "Payload", "json");
5894
6384
  }
@@ -5930,6 +6420,9 @@ class Client extends openapi_client_1.default {
5930
6420
  if (!tea_util_1.default.isUnset(request.fallBackRule)) {
5931
6421
  body["FallBackRule"] = request.fallBackRule;
5932
6422
  }
6423
+ if (!tea_util_1.default.isUnset(request.flowActionShrink)) {
6424
+ body["FlowAction"] = request.flowActionShrink;
6425
+ }
5933
6426
  if (!tea_util_1.default.isUnset(request.from)) {
5934
6427
  body["From"] = request.from;
5935
6428
  }
@@ -6104,6 +6597,41 @@ class Client extends openapi_client_1.default {
6104
6597
  let runtime = new $Util.RuntimeOptions({});
6105
6598
  return await this.updateAccountWebhookWithOptions(request, runtime);
6106
6599
  }
6600
+ async updateCommerceSettingWithOptions(request, runtime) {
6601
+ tea_util_1.default.validateModel(request);
6602
+ let query = {};
6603
+ if (!tea_util_1.default.isUnset(request.cartEnable)) {
6604
+ query["CartEnable"] = request.cartEnable;
6605
+ }
6606
+ if (!tea_util_1.default.isUnset(request.catalogVisible)) {
6607
+ query["CatalogVisible"] = request.catalogVisible;
6608
+ }
6609
+ if (!tea_util_1.default.isUnset(request.custSpaceId)) {
6610
+ query["CustSpaceId"] = request.custSpaceId;
6611
+ }
6612
+ if (!tea_util_1.default.isUnset(request.phoneNumber)) {
6613
+ query["PhoneNumber"] = request.phoneNumber;
6614
+ }
6615
+ let req = new $OpenApi.OpenApiRequest({
6616
+ query: openapi_util_1.default.query(query),
6617
+ });
6618
+ let params = new $OpenApi.Params({
6619
+ action: "UpdateCommerceSetting",
6620
+ version: "2020-06-06",
6621
+ protocol: "HTTPS",
6622
+ pathname: "/",
6623
+ method: "POST",
6624
+ authType: "AK",
6625
+ style: "RPC",
6626
+ reqBodyType: "formData",
6627
+ bodyType: "json",
6628
+ });
6629
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdateCommerceSettingResponse({}));
6630
+ }
6631
+ async updateCommerceSetting(request) {
6632
+ let runtime = new $Util.RuntimeOptions({});
6633
+ return await this.updateCommerceSettingWithOptions(request, runtime);
6634
+ }
6107
6635
  /**
6108
6636
  * The error message returned.
6109
6637
  *