@alicloud/cams20200606 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -1005,6 +1005,50 @@ export declare class GetChatappVerifyCodeResponse extends $tea.Model {
1005
1005
  [key: string]: any;
1006
1006
  });
1007
1007
  }
1008
+ export declare class GetCommerceSettingRequest extends $tea.Model {
1009
+ custSpaceId?: string;
1010
+ phoneNumber?: string;
1011
+ static names(): {
1012
+ [key: string]: string;
1013
+ };
1014
+ static types(): {
1015
+ [key: string]: any;
1016
+ };
1017
+ constructor(map?: {
1018
+ [key: string]: any;
1019
+ });
1020
+ }
1021
+ export declare class GetCommerceSettingResponseBody extends $tea.Model {
1022
+ code?: string;
1023
+ data?: GetCommerceSettingResponseBodyData;
1024
+ message?: string;
1025
+ requestId?: string;
1026
+ static names(): {
1027
+ [key: string]: string;
1028
+ };
1029
+ static types(): {
1030
+ [key: string]: any;
1031
+ };
1032
+ constructor(map?: {
1033
+ [key: string]: any;
1034
+ });
1035
+ }
1036
+ export declare class GetCommerceSettingResponse extends $tea.Model {
1037
+ headers: {
1038
+ [key: string]: string;
1039
+ };
1040
+ statusCode: number;
1041
+ body: GetCommerceSettingResponseBody;
1042
+ static names(): {
1043
+ [key: string]: string;
1044
+ };
1045
+ static types(): {
1046
+ [key: string]: any;
1047
+ };
1048
+ constructor(map?: {
1049
+ [key: string]: any;
1050
+ });
1051
+ }
1008
1052
  export declare class GetMigrationVerifyCodeRequest extends $tea.Model {
1009
1053
  custSpaceId?: string;
1010
1054
  locale?: string;
@@ -1745,6 +1789,7 @@ export declare class SendChatappMassMessageRequest extends $tea.Model {
1745
1789
  fallBackContent?: string;
1746
1790
  fallBackDuration?: number;
1747
1791
  fallBackId?: string;
1792
+ fallBackRule?: string;
1748
1793
  from?: string;
1749
1794
  isvCode?: string;
1750
1795
  label?: string;
@@ -1771,6 +1816,7 @@ export declare class SendChatappMassMessageShrinkRequest extends $tea.Model {
1771
1816
  fallBackContent?: string;
1772
1817
  fallBackDuration?: number;
1773
1818
  fallBackId?: string;
1819
+ fallBackRule?: string;
1774
1820
  from?: string;
1775
1821
  isvCode?: string;
1776
1822
  label?: string;
@@ -1831,6 +1877,7 @@ export declare class SendChatappMessageRequest extends $tea.Model {
1831
1877
  fallBackContent?: string;
1832
1878
  fallBackDuration?: number;
1833
1879
  fallBackId?: string;
1880
+ fallBackRule?: string;
1834
1881
  from?: string;
1835
1882
  isvCode?: string;
1836
1883
  label?: string;
@@ -1867,6 +1914,7 @@ export declare class SendChatappMessageShrinkRequest extends $tea.Model {
1867
1914
  fallBackContent?: string;
1868
1915
  fallBackDuration?: number;
1869
1916
  fallBackId?: string;
1917
+ fallBackRule?: string;
1870
1918
  from?: string;
1871
1919
  isvCode?: string;
1872
1920
  label?: string;
@@ -2018,6 +2066,51 @@ export declare class UpdateAccountWebhookResponse extends $tea.Model {
2018
2066
  [key: string]: any;
2019
2067
  });
2020
2068
  }
2069
+ export declare class UpdateCommerceSettingRequest extends $tea.Model {
2070
+ cartEnable?: boolean;
2071
+ catalogVisible?: boolean;
2072
+ custSpaceId?: string;
2073
+ phoneNumber?: string;
2074
+ static names(): {
2075
+ [key: string]: string;
2076
+ };
2077
+ static types(): {
2078
+ [key: string]: any;
2079
+ };
2080
+ constructor(map?: {
2081
+ [key: string]: any;
2082
+ });
2083
+ }
2084
+ export declare class UpdateCommerceSettingResponseBody extends $tea.Model {
2085
+ code?: string;
2086
+ message?: string;
2087
+ requestId?: string;
2088
+ static names(): {
2089
+ [key: string]: string;
2090
+ };
2091
+ static types(): {
2092
+ [key: string]: any;
2093
+ };
2094
+ constructor(map?: {
2095
+ [key: string]: any;
2096
+ });
2097
+ }
2098
+ export declare class UpdateCommerceSettingResponse extends $tea.Model {
2099
+ headers: {
2100
+ [key: string]: string;
2101
+ };
2102
+ statusCode: number;
2103
+ body: UpdateCommerceSettingResponseBody;
2104
+ static names(): {
2105
+ [key: string]: string;
2106
+ };
2107
+ static types(): {
2108
+ [key: string]: any;
2109
+ };
2110
+ constructor(map?: {
2111
+ [key: string]: any;
2112
+ });
2113
+ }
2021
2114
  export declare class UpdatePhoneWebhookRequest extends $tea.Model {
2022
2115
  custSpaceId?: string;
2023
2116
  httpFlag?: string;
@@ -2294,6 +2387,7 @@ export declare class CreateChatappMigrationInitiateResponseBodyData extends $tea
2294
2387
  }
2295
2388
  export declare class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
2296
2389
  autofillText?: string;
2390
+ couponCode?: string;
2297
2391
  isOptOut?: boolean;
2298
2392
  packageName?: string;
2299
2393
  phoneNumber?: string;
@@ -2312,15 +2406,61 @@ export declare class CreateChatappTemplateRequestComponentsButtons extends $tea.
2312
2406
  [key: string]: any;
2313
2407
  });
2314
2408
  }
2409
+ export declare class CreateChatappTemplateRequestComponentsCardsCardComponentsButtons extends $tea.Model {
2410
+ phoneNumber?: string;
2411
+ text?: string;
2412
+ type?: string;
2413
+ url?: string;
2414
+ urlType?: string;
2415
+ static names(): {
2416
+ [key: string]: string;
2417
+ };
2418
+ static types(): {
2419
+ [key: string]: any;
2420
+ };
2421
+ constructor(map?: {
2422
+ [key: string]: any;
2423
+ });
2424
+ }
2425
+ export declare class CreateChatappTemplateRequestComponentsCardsCardComponents extends $tea.Model {
2426
+ buttons?: CreateChatappTemplateRequestComponentsCardsCardComponentsButtons[];
2427
+ format?: string;
2428
+ text?: string;
2429
+ type?: string;
2430
+ url?: string;
2431
+ static names(): {
2432
+ [key: string]: string;
2433
+ };
2434
+ static types(): {
2435
+ [key: string]: any;
2436
+ };
2437
+ constructor(map?: {
2438
+ [key: string]: any;
2439
+ });
2440
+ }
2441
+ export declare class CreateChatappTemplateRequestComponentsCards extends $tea.Model {
2442
+ cardComponents?: CreateChatappTemplateRequestComponentsCardsCardComponents[];
2443
+ static names(): {
2444
+ [key: string]: string;
2445
+ };
2446
+ static types(): {
2447
+ [key: string]: any;
2448
+ };
2449
+ constructor(map?: {
2450
+ [key: string]: any;
2451
+ });
2452
+ }
2315
2453
  export declare class CreateChatappTemplateRequestComponents extends $tea.Model {
2316
2454
  addSecretRecommendation?: boolean;
2317
2455
  buttons?: CreateChatappTemplateRequestComponentsButtons[];
2318
2456
  caption?: string;
2457
+ cards?: CreateChatappTemplateRequestComponentsCards[];
2319
2458
  codeExpirationMinutes?: number;
2320
2459
  duration?: number;
2321
2460
  fileName?: string;
2322
2461
  fileType?: string;
2323
2462
  format?: string;
2463
+ hasExpiration?: boolean;
2324
2464
  text?: string;
2325
2465
  thumbUrl?: string;
2326
2466
  type?: string;
@@ -2383,6 +2523,7 @@ export declare class GetChatappTemplateDetailResponseBodyDataComponentsButtonsEx
2383
2523
  }
2384
2524
  export declare class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $tea.Model {
2385
2525
  autofillText?: string;
2526
+ couponCode?: string;
2386
2527
  extendAttrs?: GetChatappTemplateDetailResponseBodyDataComponentsButtonsExtendAttrs;
2387
2528
  isOptOut?: boolean;
2388
2529
  packageName?: string;
@@ -2402,10 +2543,55 @@ export declare class GetChatappTemplateDetailResponseBodyDataComponentsButtons e
2402
2543
  [key: string]: any;
2403
2544
  });
2404
2545
  }
2546
+ export declare class GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponentsButtons extends $tea.Model {
2547
+ phoneNumber?: string;
2548
+ text?: string;
2549
+ type?: string;
2550
+ url?: string;
2551
+ urlType?: string;
2552
+ static names(): {
2553
+ [key: string]: string;
2554
+ };
2555
+ static types(): {
2556
+ [key: string]: any;
2557
+ };
2558
+ constructor(map?: {
2559
+ [key: string]: any;
2560
+ });
2561
+ }
2562
+ export declare class GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponents extends $tea.Model {
2563
+ buttons?: GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponentsButtons[];
2564
+ format?: string;
2565
+ text?: string;
2566
+ type?: string;
2567
+ url?: string;
2568
+ static names(): {
2569
+ [key: string]: string;
2570
+ };
2571
+ static types(): {
2572
+ [key: string]: any;
2573
+ };
2574
+ constructor(map?: {
2575
+ [key: string]: any;
2576
+ });
2577
+ }
2578
+ export declare class GetChatappTemplateDetailResponseBodyDataComponentsCards extends $tea.Model {
2579
+ cardComponents?: GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponents[];
2580
+ static names(): {
2581
+ [key: string]: string;
2582
+ };
2583
+ static types(): {
2584
+ [key: string]: any;
2585
+ };
2586
+ constructor(map?: {
2587
+ [key: string]: any;
2588
+ });
2589
+ }
2405
2590
  export declare class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
2406
2591
  addSecretRecommendation?: boolean;
2407
2592
  buttons?: GetChatappTemplateDetailResponseBodyDataComponentsButtons[];
2408
2593
  caption?: string;
2594
+ cards?: GetChatappTemplateDetailResponseBodyDataComponentsCards[];
2409
2595
  codeExpirationMinutes?: number;
2410
2596
  duration?: number;
2411
2597
  fileName?: string;
@@ -2415,10 +2601,12 @@ export declare class GetChatappTemplateDetailResponseBodyDataComponents extends
2415
2601
  locationAddress?: string;
2416
2602
  locationName?: string;
2417
2603
  longitude?: string;
2604
+ offerExpirationTimeMs?: string;
2418
2605
  text?: string;
2419
2606
  thumbUrl?: string;
2420
2607
  type?: string;
2421
2608
  url?: string;
2609
+ hasExpiration?: boolean;
2422
2610
  static names(): {
2423
2611
  [key: string]: string;
2424
2612
  };
@@ -2504,6 +2692,19 @@ export declare class GetChatappUploadAuthorizationResponseBodyData extends $tea.
2504
2692
  [key: string]: any;
2505
2693
  });
2506
2694
  }
2695
+ export declare class GetCommerceSettingResponseBodyData extends $tea.Model {
2696
+ cartEnable?: boolean;
2697
+ catalogVisible?: boolean;
2698
+ static names(): {
2699
+ [key: string]: string;
2700
+ };
2701
+ static types(): {
2702
+ [key: string]: any;
2703
+ };
2704
+ constructor(map?: {
2705
+ [key: string]: any;
2706
+ });
2707
+ }
2507
2708
  export declare class GetMigrationVerifyCodeResponseBodyData extends $tea.Model {
2508
2709
  id?: string;
2509
2710
  phoneNumber?: string;
@@ -2657,6 +2858,7 @@ export declare class ListProductCatalogResponseBodyModel extends $tea.Model {
2657
2858
  }
2658
2859
  export declare class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
2659
2860
  autofillText?: string;
2861
+ couponCode?: string;
2660
2862
  isOptOut?: boolean;
2661
2863
  packageName?: string;
2662
2864
  phoneNumber?: string;
@@ -2675,15 +2877,61 @@ export declare class ModifyChatappTemplateRequestComponentsButtons extends $tea.
2675
2877
  [key: string]: any;
2676
2878
  });
2677
2879
  }
2880
+ export declare class ModifyChatappTemplateRequestComponentsCardsCardComponentsButtons extends $tea.Model {
2881
+ phoneNumber?: string;
2882
+ text?: string;
2883
+ type?: string;
2884
+ url?: string;
2885
+ urlType?: string;
2886
+ static names(): {
2887
+ [key: string]: string;
2888
+ };
2889
+ static types(): {
2890
+ [key: string]: any;
2891
+ };
2892
+ constructor(map?: {
2893
+ [key: string]: any;
2894
+ });
2895
+ }
2896
+ export declare class ModifyChatappTemplateRequestComponentsCardsCardComponents extends $tea.Model {
2897
+ buttons?: ModifyChatappTemplateRequestComponentsCardsCardComponentsButtons[];
2898
+ format?: string;
2899
+ text?: string;
2900
+ type?: string;
2901
+ url?: string;
2902
+ static names(): {
2903
+ [key: string]: string;
2904
+ };
2905
+ static types(): {
2906
+ [key: string]: any;
2907
+ };
2908
+ constructor(map?: {
2909
+ [key: string]: any;
2910
+ });
2911
+ }
2912
+ export declare class ModifyChatappTemplateRequestComponentsCards extends $tea.Model {
2913
+ cardComponents?: ModifyChatappTemplateRequestComponentsCardsCardComponents[];
2914
+ static names(): {
2915
+ [key: string]: string;
2916
+ };
2917
+ static types(): {
2918
+ [key: string]: any;
2919
+ };
2920
+ constructor(map?: {
2921
+ [key: string]: any;
2922
+ });
2923
+ }
2678
2924
  export declare class ModifyChatappTemplateRequestComponents extends $tea.Model {
2679
2925
  addSecretRecommendation?: boolean;
2680
2926
  buttons?: ModifyChatappTemplateRequestComponentsButtons[];
2681
2927
  caption?: string;
2928
+ cards?: ModifyChatappTemplateRequestComponentsCards[];
2682
2929
  codeExpirationMinutes?: number;
2683
2930
  duration?: number;
2684
2931
  fileName?: string;
2685
2932
  fileType?: string;
2686
2933
  format?: string;
2934
+ hasExpiration?: boolean;
2687
2935
  text?: string;
2688
2936
  thumbUrl?: string;
2689
2937
  type?: string;
@@ -3119,6 +3367,8 @@ export default class Client extends OpenApi {
3119
3367
  * @return GetChatappVerifyCodeResponse
3120
3368
  */
3121
3369
  getChatappVerifyCode(request: GetChatappVerifyCodeRequest): Promise<GetChatappVerifyCodeResponse>;
3370
+ getCommerceSettingWithOptions(request: GetCommerceSettingRequest, runtime: $Util.RuntimeOptions): Promise<GetCommerceSettingResponse>;
3371
+ getCommerceSetting(request: GetCommerceSettingRequest): Promise<GetCommerceSettingResponse>;
3122
3372
  /**
3123
3373
  * The ID of the phone number.
3124
3374
  *
@@ -3151,7 +3401,20 @@ export default class Client extends OpenApi {
3151
3401
  getPhoneNumberVerificationStatus(request: GetPhoneNumberVerificationStatusRequest): Promise<GetPhoneNumberVerificationStatusResponse>;
3152
3402
  getPreValidatePhoneIdWithOptions(request: GetPreValidatePhoneIdRequest, runtime: $Util.RuntimeOptions): Promise<GetPreValidatePhoneIdResponse>;
3153
3403
  getPreValidatePhoneId(request: GetPreValidatePhoneIdRequest): Promise<GetPreValidatePhoneIdResponse>;
3404
+ /**
3405
+ * 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.
3406
+ *
3407
+ * @param request GetWhatsappConnectionCatalogRequest
3408
+ * @param runtime runtime options for this request RuntimeOptions
3409
+ * @return GetWhatsappConnectionCatalogResponse
3410
+ */
3154
3411
  getWhatsappConnectionCatalogWithOptions(request: GetWhatsappConnectionCatalogRequest, runtime: $Util.RuntimeOptions): Promise<GetWhatsappConnectionCatalogResponse>;
3412
+ /**
3413
+ * 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.
3414
+ *
3415
+ * @param request GetWhatsappConnectionCatalogRequest
3416
+ * @return GetWhatsappConnectionCatalogResponse
3417
+ */
3155
3418
  getWhatsappConnectionCatalog(request: GetWhatsappConnectionCatalogRequest): Promise<GetWhatsappConnectionCatalogResponse>;
3156
3419
  /**
3157
3420
  * 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.
@@ -3185,9 +3448,35 @@ export default class Client extends OpenApi {
3185
3448
  * @return ListChatappTemplateResponse
3186
3449
  */
3187
3450
  listChatappTemplate(request: ListChatappTemplateRequest): Promise<ListChatappTemplateResponse>;
3451
+ /**
3452
+ * 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.
3453
+ *
3454
+ * @param request ListProductRequest
3455
+ * @param runtime runtime options for this request RuntimeOptions
3456
+ * @return ListProductResponse
3457
+ */
3188
3458
  listProductWithOptions(request: ListProductRequest, runtime: $Util.RuntimeOptions): Promise<ListProductResponse>;
3459
+ /**
3460
+ * 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.
3461
+ *
3462
+ * @param request ListProductRequest
3463
+ * @return ListProductResponse
3464
+ */
3189
3465
  listProduct(request: ListProductRequest): Promise<ListProductResponse>;
3466
+ /**
3467
+ * 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.
3468
+ *
3469
+ * @param request ListProductCatalogRequest
3470
+ * @param runtime runtime options for this request RuntimeOptions
3471
+ * @return ListProductCatalogResponse
3472
+ */
3190
3473
  listProductCatalogWithOptions(request: ListProductCatalogRequest, runtime: $Util.RuntimeOptions): Promise<ListProductCatalogResponse>;
3474
+ /**
3475
+ * 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.
3476
+ *
3477
+ * @param request ListProductCatalogRequest
3478
+ * @return ListProductCatalogResponse
3479
+ */
3191
3480
  listProductCatalog(request: ListProductCatalogRequest): Promise<ListProductCatalogResponse>;
3192
3481
  /**
3193
3482
  * The name of the message template.
@@ -3341,6 +3630,8 @@ export default class Client extends OpenApi {
3341
3630
  * @return UpdateAccountWebhookResponse
3342
3631
  */
3343
3632
  updateAccountWebhook(request: UpdateAccountWebhookRequest): Promise<UpdateAccountWebhookResponse>;
3633
+ updateCommerceSettingWithOptions(request: UpdateCommerceSettingRequest, runtime: $Util.RuntimeOptions): Promise<UpdateCommerceSettingResponse>;
3634
+ updateCommerceSetting(request: UpdateCommerceSettingRequest): Promise<UpdateCommerceSettingResponse>;
3344
3635
  /**
3345
3636
  * The error message returned.
3346
3637
  *