@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.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;
@@ -1192,6 +1236,7 @@ export declare class GetWhatsappConnectionCatalogResponse extends $tea.Model {
1192
1236
  });
1193
1237
  }
1194
1238
  export declare class IsvGetAppIdRequest extends $tea.Model {
1239
+ permissions?: string;
1195
1240
  type?: string;
1196
1241
  static names(): {
1197
1242
  [key: string]: string;
@@ -1207,6 +1252,7 @@ export declare class IsvGetAppIdResponseBody extends $tea.Model {
1207
1252
  accessDeniedDetail?: string;
1208
1253
  appId?: string;
1209
1254
  code?: string;
1255
+ configId?: string;
1210
1256
  message?: string;
1211
1257
  requestId?: string;
1212
1258
  static names(): {
@@ -1834,6 +1880,7 @@ export declare class SendChatappMessageRequest extends $tea.Model {
1834
1880
  fallBackDuration?: number;
1835
1881
  fallBackId?: string;
1836
1882
  fallBackRule?: string;
1883
+ flowAction?: SendChatappMessageRequestFlowAction;
1837
1884
  from?: string;
1838
1885
  isvCode?: string;
1839
1886
  label?: string;
@@ -1871,6 +1918,7 @@ export declare class SendChatappMessageShrinkRequest extends $tea.Model {
1871
1918
  fallBackDuration?: number;
1872
1919
  fallBackId?: string;
1873
1920
  fallBackRule?: string;
1921
+ flowActionShrink?: string;
1874
1922
  from?: string;
1875
1923
  isvCode?: string;
1876
1924
  label?: string;
@@ -2022,6 +2070,51 @@ export declare class UpdateAccountWebhookResponse extends $tea.Model {
2022
2070
  [key: string]: any;
2023
2071
  });
2024
2072
  }
2073
+ export declare class UpdateCommerceSettingRequest extends $tea.Model {
2074
+ cartEnable?: boolean;
2075
+ catalogVisible?: boolean;
2076
+ custSpaceId?: string;
2077
+ phoneNumber?: string;
2078
+ static names(): {
2079
+ [key: string]: string;
2080
+ };
2081
+ static types(): {
2082
+ [key: string]: any;
2083
+ };
2084
+ constructor(map?: {
2085
+ [key: string]: any;
2086
+ });
2087
+ }
2088
+ export declare class UpdateCommerceSettingResponseBody extends $tea.Model {
2089
+ code?: string;
2090
+ message?: string;
2091
+ requestId?: string;
2092
+ static names(): {
2093
+ [key: string]: string;
2094
+ };
2095
+ static types(): {
2096
+ [key: string]: any;
2097
+ };
2098
+ constructor(map?: {
2099
+ [key: string]: any;
2100
+ });
2101
+ }
2102
+ export declare class UpdateCommerceSettingResponse extends $tea.Model {
2103
+ headers: {
2104
+ [key: string]: string;
2105
+ };
2106
+ statusCode: number;
2107
+ body: UpdateCommerceSettingResponseBody;
2108
+ static names(): {
2109
+ [key: string]: string;
2110
+ };
2111
+ static types(): {
2112
+ [key: string]: any;
2113
+ };
2114
+ constructor(map?: {
2115
+ [key: string]: any;
2116
+ });
2117
+ }
2025
2118
  export declare class UpdatePhoneWebhookRequest extends $tea.Model {
2026
2119
  custSpaceId?: string;
2027
2120
  httpFlag?: string;
@@ -2298,6 +2391,9 @@ export declare class CreateChatappMigrationInitiateResponseBodyData extends $tea
2298
2391
  }
2299
2392
  export declare class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
2300
2393
  autofillText?: string;
2394
+ couponCode?: string;
2395
+ flowAction?: string;
2396
+ flowId?: string;
2301
2397
  isOptOut?: boolean;
2302
2398
  packageName?: string;
2303
2399
  phoneNumber?: string;
@@ -2306,6 +2402,51 @@ export declare class CreateChatappTemplateRequestComponentsButtons extends $tea.
2306
2402
  type?: string;
2307
2403
  url?: string;
2308
2404
  urlType?: string;
2405
+ navigateScreen?: string;
2406
+ static names(): {
2407
+ [key: string]: string;
2408
+ };
2409
+ static types(): {
2410
+ [key: string]: any;
2411
+ };
2412
+ constructor(map?: {
2413
+ [key: string]: any;
2414
+ });
2415
+ }
2416
+ export declare class CreateChatappTemplateRequestComponentsCardsCardComponentsButtons extends $tea.Model {
2417
+ phoneNumber?: string;
2418
+ text?: string;
2419
+ type?: string;
2420
+ url?: string;
2421
+ urlType?: string;
2422
+ static names(): {
2423
+ [key: string]: string;
2424
+ };
2425
+ static types(): {
2426
+ [key: string]: any;
2427
+ };
2428
+ constructor(map?: {
2429
+ [key: string]: any;
2430
+ });
2431
+ }
2432
+ export declare class CreateChatappTemplateRequestComponentsCardsCardComponents extends $tea.Model {
2433
+ buttons?: CreateChatappTemplateRequestComponentsCardsCardComponentsButtons[];
2434
+ format?: string;
2435
+ text?: string;
2436
+ type?: string;
2437
+ url?: string;
2438
+ static names(): {
2439
+ [key: string]: string;
2440
+ };
2441
+ static types(): {
2442
+ [key: string]: any;
2443
+ };
2444
+ constructor(map?: {
2445
+ [key: string]: any;
2446
+ });
2447
+ }
2448
+ export declare class CreateChatappTemplateRequestComponentsCards extends $tea.Model {
2449
+ cardComponents?: CreateChatappTemplateRequestComponentsCardsCardComponents[];
2309
2450
  static names(): {
2310
2451
  [key: string]: string;
2311
2452
  };
@@ -2320,11 +2461,13 @@ export declare class CreateChatappTemplateRequestComponents extends $tea.Model {
2320
2461
  addSecretRecommendation?: boolean;
2321
2462
  buttons?: CreateChatappTemplateRequestComponentsButtons[];
2322
2463
  caption?: string;
2464
+ cards?: CreateChatappTemplateRequestComponentsCards[];
2323
2465
  codeExpirationMinutes?: number;
2324
2466
  duration?: number;
2325
2467
  fileName?: string;
2326
2468
  fileType?: string;
2327
2469
  format?: string;
2470
+ hasExpiration?: boolean;
2328
2471
  text?: string;
2329
2472
  thumbUrl?: string;
2330
2473
  type?: string;
@@ -2387,8 +2530,12 @@ export declare class GetChatappTemplateDetailResponseBodyDataComponentsButtonsEx
2387
2530
  }
2388
2531
  export declare class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $tea.Model {
2389
2532
  autofillText?: string;
2533
+ couponCode?: string;
2390
2534
  extendAttrs?: GetChatappTemplateDetailResponseBodyDataComponentsButtonsExtendAttrs;
2535
+ flowAction?: string;
2536
+ flowId?: string;
2391
2537
  isOptOut?: boolean;
2538
+ navigateScreen?: string;
2392
2539
  packageName?: string;
2393
2540
  phoneNumber?: string;
2394
2541
  signatureHash?: string;
@@ -2406,10 +2553,55 @@ export declare class GetChatappTemplateDetailResponseBodyDataComponentsButtons e
2406
2553
  [key: string]: any;
2407
2554
  });
2408
2555
  }
2556
+ export declare class GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponentsButtons extends $tea.Model {
2557
+ phoneNumber?: string;
2558
+ text?: string;
2559
+ type?: string;
2560
+ url?: string;
2561
+ urlType?: string;
2562
+ static names(): {
2563
+ [key: string]: string;
2564
+ };
2565
+ static types(): {
2566
+ [key: string]: any;
2567
+ };
2568
+ constructor(map?: {
2569
+ [key: string]: any;
2570
+ });
2571
+ }
2572
+ export declare class GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponents extends $tea.Model {
2573
+ buttons?: GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponentsButtons[];
2574
+ format?: string;
2575
+ text?: string;
2576
+ type?: string;
2577
+ url?: string;
2578
+ static names(): {
2579
+ [key: string]: string;
2580
+ };
2581
+ static types(): {
2582
+ [key: string]: any;
2583
+ };
2584
+ constructor(map?: {
2585
+ [key: string]: any;
2586
+ });
2587
+ }
2588
+ export declare class GetChatappTemplateDetailResponseBodyDataComponentsCards extends $tea.Model {
2589
+ cardComponents?: GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponents[];
2590
+ static names(): {
2591
+ [key: string]: string;
2592
+ };
2593
+ static types(): {
2594
+ [key: string]: any;
2595
+ };
2596
+ constructor(map?: {
2597
+ [key: string]: any;
2598
+ });
2599
+ }
2409
2600
  export declare class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
2410
2601
  addSecretRecommendation?: boolean;
2411
2602
  buttons?: GetChatappTemplateDetailResponseBodyDataComponentsButtons[];
2412
2603
  caption?: string;
2604
+ cards?: GetChatappTemplateDetailResponseBodyDataComponentsCards[];
2413
2605
  codeExpirationMinutes?: number;
2414
2606
  duration?: number;
2415
2607
  fileName?: string;
@@ -2419,10 +2611,12 @@ export declare class GetChatappTemplateDetailResponseBodyDataComponents extends
2419
2611
  locationAddress?: string;
2420
2612
  locationName?: string;
2421
2613
  longitude?: string;
2614
+ offerExpirationTimeMs?: string;
2422
2615
  text?: string;
2423
2616
  thumbUrl?: string;
2424
2617
  type?: string;
2425
2618
  url?: string;
2619
+ hasExpiration?: boolean;
2426
2620
  static names(): {
2427
2621
  [key: string]: string;
2428
2622
  };
@@ -2508,6 +2702,19 @@ export declare class GetChatappUploadAuthorizationResponseBodyData extends $tea.
2508
2702
  [key: string]: any;
2509
2703
  });
2510
2704
  }
2705
+ export declare class GetCommerceSettingResponseBodyData extends $tea.Model {
2706
+ cartEnable?: boolean;
2707
+ catalogVisible?: boolean;
2708
+ static names(): {
2709
+ [key: string]: string;
2710
+ };
2711
+ static types(): {
2712
+ [key: string]: any;
2713
+ };
2714
+ constructor(map?: {
2715
+ [key: string]: any;
2716
+ });
2717
+ }
2511
2718
  export declare class GetMigrationVerifyCodeResponseBodyData extends $tea.Model {
2512
2719
  id?: string;
2513
2720
  phoneNumber?: string;
@@ -2661,6 +2868,9 @@ export declare class ListProductCatalogResponseBodyModel extends $tea.Model {
2661
2868
  }
2662
2869
  export declare class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
2663
2870
  autofillText?: string;
2871
+ couponCode?: string;
2872
+ flowAction?: string;
2873
+ flowId?: string;
2664
2874
  isOptOut?: boolean;
2665
2875
  packageName?: string;
2666
2876
  phoneNumber?: string;
@@ -2669,6 +2879,51 @@ export declare class ModifyChatappTemplateRequestComponentsButtons extends $tea.
2669
2879
  type?: string;
2670
2880
  url?: string;
2671
2881
  urlType?: string;
2882
+ navigateScreen?: string;
2883
+ static names(): {
2884
+ [key: string]: string;
2885
+ };
2886
+ static types(): {
2887
+ [key: string]: any;
2888
+ };
2889
+ constructor(map?: {
2890
+ [key: string]: any;
2891
+ });
2892
+ }
2893
+ export declare class ModifyChatappTemplateRequestComponentsCardsCardComponentsButtons extends $tea.Model {
2894
+ phoneNumber?: string;
2895
+ text?: string;
2896
+ type?: string;
2897
+ url?: string;
2898
+ urlType?: string;
2899
+ static names(): {
2900
+ [key: string]: string;
2901
+ };
2902
+ static types(): {
2903
+ [key: string]: any;
2904
+ };
2905
+ constructor(map?: {
2906
+ [key: string]: any;
2907
+ });
2908
+ }
2909
+ export declare class ModifyChatappTemplateRequestComponentsCardsCardComponents extends $tea.Model {
2910
+ buttons?: ModifyChatappTemplateRequestComponentsCardsCardComponentsButtons[];
2911
+ format?: string;
2912
+ text?: string;
2913
+ type?: string;
2914
+ url?: string;
2915
+ static names(): {
2916
+ [key: string]: string;
2917
+ };
2918
+ static types(): {
2919
+ [key: string]: any;
2920
+ };
2921
+ constructor(map?: {
2922
+ [key: string]: any;
2923
+ });
2924
+ }
2925
+ export declare class ModifyChatappTemplateRequestComponentsCards extends $tea.Model {
2926
+ cardComponents?: ModifyChatappTemplateRequestComponentsCardsCardComponents[];
2672
2927
  static names(): {
2673
2928
  [key: string]: string;
2674
2929
  };
@@ -2683,11 +2938,13 @@ export declare class ModifyChatappTemplateRequestComponents extends $tea.Model {
2683
2938
  addSecretRecommendation?: boolean;
2684
2939
  buttons?: ModifyChatappTemplateRequestComponentsButtons[];
2685
2940
  caption?: string;
2941
+ cards?: ModifyChatappTemplateRequestComponentsCards[];
2686
2942
  codeExpirationMinutes?: number;
2687
2943
  duration?: number;
2688
2944
  fileName?: string;
2689
2945
  fileType?: string;
2690
2946
  format?: string;
2947
+ hasExpiration?: boolean;
2691
2948
  text?: string;
2692
2949
  thumbUrl?: string;
2693
2950
  type?: string;
@@ -2786,6 +3043,21 @@ export declare class QueryWabaBusinessInfoResponseBodyData extends $tea.Model {
2786
3043
  [key: string]: any;
2787
3044
  });
2788
3045
  }
3046
+ export declare class SendChatappMassMessageRequestSenderListFlowAction extends $tea.Model {
3047
+ flowActionData?: {
3048
+ [key: string]: string;
3049
+ };
3050
+ flowToken?: string;
3051
+ static names(): {
3052
+ [key: string]: string;
3053
+ };
3054
+ static types(): {
3055
+ [key: string]: any;
3056
+ };
3057
+ constructor(map?: {
3058
+ [key: string]: any;
3059
+ });
3060
+ }
2789
3061
  export declare class SendChatappMassMessageRequestSenderListProductActionSectionsProductItems extends $tea.Model {
2790
3062
  productRetailerId?: string;
2791
3063
  static names(): {
@@ -2825,6 +3097,7 @@ export declare class SendChatappMassMessageRequestSenderListProductAction extend
2825
3097
  });
2826
3098
  }
2827
3099
  export declare class SendChatappMassMessageRequestSenderList extends $tea.Model {
3100
+ flowAction?: SendChatappMassMessageRequestSenderListFlowAction;
2828
3101
  payload?: string[];
2829
3102
  productAction?: SendChatappMassMessageRequestSenderListProductAction;
2830
3103
  templateParams?: {
@@ -2841,6 +3114,21 @@ export declare class SendChatappMassMessageRequestSenderList extends $tea.Model
2841
3114
  [key: string]: any;
2842
3115
  });
2843
3116
  }
3117
+ export declare class SendChatappMessageRequestFlowAction extends $tea.Model {
3118
+ flowActionData?: {
3119
+ [key: string]: string;
3120
+ };
3121
+ flowToken?: string;
3122
+ static names(): {
3123
+ [key: string]: string;
3124
+ };
3125
+ static types(): {
3126
+ [key: string]: any;
3127
+ };
3128
+ constructor(map?: {
3129
+ [key: string]: any;
3130
+ });
3131
+ }
2844
3132
  export declare class SendChatappMessageRequestProductActionSectionsProductItems extends $tea.Model {
2845
3133
  productRetailerId?: string;
2846
3134
  static names(): {
@@ -3123,6 +3411,8 @@ export default class Client extends OpenApi {
3123
3411
  * @return GetChatappVerifyCodeResponse
3124
3412
  */
3125
3413
  getChatappVerifyCode(request: GetChatappVerifyCodeRequest): Promise<GetChatappVerifyCodeResponse>;
3414
+ getCommerceSettingWithOptions(request: GetCommerceSettingRequest, runtime: $Util.RuntimeOptions): Promise<GetCommerceSettingResponse>;
3415
+ getCommerceSetting(request: GetCommerceSettingRequest): Promise<GetCommerceSettingResponse>;
3126
3416
  /**
3127
3417
  * The ID of the phone number.
3128
3418
  *
@@ -3155,7 +3445,20 @@ export default class Client extends OpenApi {
3155
3445
  getPhoneNumberVerificationStatus(request: GetPhoneNumberVerificationStatusRequest): Promise<GetPhoneNumberVerificationStatusResponse>;
3156
3446
  getPreValidatePhoneIdWithOptions(request: GetPreValidatePhoneIdRequest, runtime: $Util.RuntimeOptions): Promise<GetPreValidatePhoneIdResponse>;
3157
3447
  getPreValidatePhoneId(request: GetPreValidatePhoneIdRequest): Promise<GetPreValidatePhoneIdResponse>;
3448
+ /**
3449
+ * 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.
3450
+ *
3451
+ * @param request GetWhatsappConnectionCatalogRequest
3452
+ * @param runtime runtime options for this request RuntimeOptions
3453
+ * @return GetWhatsappConnectionCatalogResponse
3454
+ */
3158
3455
  getWhatsappConnectionCatalogWithOptions(request: GetWhatsappConnectionCatalogRequest, runtime: $Util.RuntimeOptions): Promise<GetWhatsappConnectionCatalogResponse>;
3456
+ /**
3457
+ * 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.
3458
+ *
3459
+ * @param request GetWhatsappConnectionCatalogRequest
3460
+ * @return GetWhatsappConnectionCatalogResponse
3461
+ */
3159
3462
  getWhatsappConnectionCatalog(request: GetWhatsappConnectionCatalogRequest): Promise<GetWhatsappConnectionCatalogResponse>;
3160
3463
  /**
3161
3464
  * 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.
@@ -3189,9 +3492,35 @@ export default class Client extends OpenApi {
3189
3492
  * @return ListChatappTemplateResponse
3190
3493
  */
3191
3494
  listChatappTemplate(request: ListChatappTemplateRequest): Promise<ListChatappTemplateResponse>;
3495
+ /**
3496
+ * 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.
3497
+ *
3498
+ * @param request ListProductRequest
3499
+ * @param runtime runtime options for this request RuntimeOptions
3500
+ * @return ListProductResponse
3501
+ */
3192
3502
  listProductWithOptions(request: ListProductRequest, runtime: $Util.RuntimeOptions): Promise<ListProductResponse>;
3503
+ /**
3504
+ * 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.
3505
+ *
3506
+ * @param request ListProductRequest
3507
+ * @return ListProductResponse
3508
+ */
3193
3509
  listProduct(request: ListProductRequest): Promise<ListProductResponse>;
3510
+ /**
3511
+ * 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.
3512
+ *
3513
+ * @param request ListProductCatalogRequest
3514
+ * @param runtime runtime options for this request RuntimeOptions
3515
+ * @return ListProductCatalogResponse
3516
+ */
3194
3517
  listProductCatalogWithOptions(request: ListProductCatalogRequest, runtime: $Util.RuntimeOptions): Promise<ListProductCatalogResponse>;
3518
+ /**
3519
+ * 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.
3520
+ *
3521
+ * @param request ListProductCatalogRequest
3522
+ * @return ListProductCatalogResponse
3523
+ */
3195
3524
  listProductCatalog(request: ListProductCatalogRequest): Promise<ListProductCatalogResponse>;
3196
3525
  /**
3197
3526
  * The name of the message template.
@@ -3345,6 +3674,8 @@ export default class Client extends OpenApi {
3345
3674
  * @return UpdateAccountWebhookResponse
3346
3675
  */
3347
3676
  updateAccountWebhook(request: UpdateAccountWebhookRequest): Promise<UpdateAccountWebhookResponse>;
3677
+ updateCommerceSettingWithOptions(request: UpdateCommerceSettingRequest, runtime: $Util.RuntimeOptions): Promise<UpdateCommerceSettingResponse>;
3678
+ updateCommerceSetting(request: UpdateCommerceSettingRequest): Promise<UpdateCommerceSettingResponse>;
3348
3679
  /**
3349
3680
  * The error message returned.
3350
3681
  *