@alicloud/cams20200606 5.4.0 → 5.4.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.
Files changed (149) hide show
  1. package/dist/client.d.ts +48 -46
  2. package/dist/client.js +57 -46
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AddChatGroupRequest.d.ts +5 -5
  5. package/dist/models/AddChatGroupResponseBody.d.ts +3 -3
  6. package/dist/models/ChatappBindWabaRequest.d.ts +8 -0
  7. package/dist/models/ChatappBindWabaRequest.js +2 -0
  8. package/dist/models/ChatappBindWabaRequest.js.map +1 -1
  9. package/dist/models/ChatappBindWabaResponseBody.d.ts +3 -3
  10. package/dist/models/CreateChatFlowByImportResponseBody.d.ts +3 -0
  11. package/dist/models/CreateChatFlowByImportResponseBody.js.map +1 -1
  12. package/dist/models/CreateChatFlowLogSettingResponseBody.d.ts +3 -0
  13. package/dist/models/CreateChatFlowLogSettingResponseBody.js.map +1 -1
  14. package/dist/models/CreateChatFlowResponseBody.d.ts +6 -0
  15. package/dist/models/CreateChatFlowResponseBody.js.map +1 -1
  16. package/dist/models/CreateChatappTemplateRequest.d.ts +99 -183
  17. package/dist/models/CreateChatappTemplateRequest.js.map +1 -1
  18. package/dist/models/CreateChatappTemplateResponseBody.d.ts +7 -5
  19. package/dist/models/CreateChatappTemplateResponseBody.js.map +1 -1
  20. package/dist/models/CreateChatappTemplateShrinkRequest.d.ts +35 -36
  21. package/dist/models/CreateChatappTemplateShrinkRequest.js.map +1 -1
  22. package/dist/models/CreateFlowVersionResponseBody.d.ts +3 -0
  23. package/dist/models/CreateFlowVersionResponseBody.js.map +1 -1
  24. package/dist/models/DeleteChatFlowResponseBody.d.ts +3 -0
  25. package/dist/models/DeleteChatFlowResponseBody.js.map +1 -1
  26. package/dist/models/GetAutoGeneratedTemplateRequest.d.ts +1 -1
  27. package/dist/models/GetChatFlowMetricResponseBody.d.ts +3 -0
  28. package/dist/models/GetChatFlowMetricResponseBody.js.map +1 -1
  29. package/dist/models/GetChatFlowTemplateResponseBody.d.ts +3 -0
  30. package/dist/models/GetChatFlowTemplateResponseBody.js.map +1 -1
  31. package/dist/models/GetChatappTemplateDetailResponseBody.d.ts +1 -1
  32. package/dist/models/GetInstagramUserInfoRequest.d.ts +1 -1
  33. package/dist/models/GetInstagramUserInfoResponseBody.d.ts +5 -5
  34. package/dist/models/GetMessageCampaignInsightsResponseBody.d.ts +1 -1
  35. package/dist/models/GetMessengerUserInfoResponseBody.d.ts +1 -1
  36. package/dist/models/GetPhoneEncryptionPublicKeyRequest.d.ts +2 -7
  37. package/dist/models/GetPhoneEncryptionPublicKeyRequest.js.map +1 -1
  38. package/dist/models/GetPhoneEncryptionPublicKeyResponseBody.d.ts +8 -4
  39. package/dist/models/GetPhoneEncryptionPublicKeyResponseBody.js.map +1 -1
  40. package/dist/models/ListChatFlowResponseBody.d.ts +3 -0
  41. package/dist/models/ListChatFlowResponseBody.js.map +1 -1
  42. package/dist/models/ListChatFlowTemplateResponseBody.d.ts +3 -0
  43. package/dist/models/ListChatFlowTemplateResponseBody.js.map +1 -1
  44. package/dist/models/ListChatappMessageRequest.d.ts +5 -0
  45. package/dist/models/ListChatappMessageRequest.js +2 -0
  46. package/dist/models/ListChatappMessageRequest.js.map +1 -1
  47. package/dist/models/ListChatappMessageShrinkRequest.d.ts +5 -0
  48. package/dist/models/ListChatappMessageShrinkRequest.js +2 -0
  49. package/dist/models/ListChatappMessageShrinkRequest.js.map +1 -1
  50. package/dist/models/ListFlowNodePrototypeV2responseBody.d.ts +1 -1
  51. package/dist/models/ListFlowVersionResponseBody.d.ts +3 -0
  52. package/dist/models/ListFlowVersionResponseBody.js.map +1 -1
  53. package/dist/models/ListInstanceRequest.d.ts +3 -0
  54. package/dist/models/ListInstanceRequest.js.map +1 -1
  55. package/dist/models/ListMessengerSubscriptionTokenResponseBody.d.ts +2 -2
  56. package/dist/models/ModifyChatappTemplateRequest.d.ts +36 -27
  57. package/dist/models/ModifyChatappTemplateRequest.js.map +1 -1
  58. package/dist/models/ModifyChatappTemplateResponseBody.d.ts +5 -7
  59. package/dist/models/ModifyChatappTemplateResponseBody.js.map +1 -1
  60. package/dist/models/ModifyChatappTemplateShrinkRequest.d.ts +19 -10
  61. package/dist/models/ModifyChatappTemplateShrinkRequest.js.map +1 -1
  62. package/dist/models/MoveContactToGroupResponseBody.d.ts +3 -0
  63. package/dist/models/MoveContactToGroupResponseBody.js.map +1 -1
  64. package/dist/models/OfflineFlowVersionResponseBody.d.ts +3 -0
  65. package/dist/models/OfflineFlowVersionResponseBody.js.map +1 -1
  66. package/dist/models/OnlineFlowVersionResponseBody.d.ts +3 -0
  67. package/dist/models/OnlineFlowVersionResponseBody.js.map +1 -1
  68. package/dist/models/QueryChatappBindWabaRequest.d.ts +1 -1
  69. package/dist/models/QueryChatappBindWabaResponseBody.d.ts +21 -13
  70. package/dist/models/QueryChatappBindWabaResponseBody.js +2 -0
  71. package/dist/models/QueryChatappBindWabaResponseBody.js.map +1 -1
  72. package/dist/models/ReadChatFlowLogSettingResponseBody.d.ts +3 -0
  73. package/dist/models/ReadChatFlowLogSettingResponseBody.js.map +1 -1
  74. package/dist/models/ReadChatFlowResponseBody.d.ts +3 -0
  75. package/dist/models/ReadChatFlowResponseBody.js.map +1 -1
  76. package/dist/models/ReadFlowVersionResponseBody.d.ts +3 -0
  77. package/dist/models/ReadFlowVersionResponseBody.js.map +1 -1
  78. package/dist/models/SendChatappMassMessageRequest.d.ts +4 -4
  79. package/dist/models/SendChatappMassMessageShrinkRequest.d.ts +1 -1
  80. package/dist/models/TriggerChatFlowRequest.d.ts +3 -3
  81. package/dist/models/TriggerChatFlowResponseBody.d.ts +2 -2
  82. package/dist/models/TriggerChatFlowShrinkRequest.d.ts +3 -3
  83. package/dist/models/UpdateChatFlowLogSettingResponseBody.d.ts +3 -0
  84. package/dist/models/UpdateChatFlowLogSettingResponseBody.js.map +1 -1
  85. package/dist/models/UpdateChatFlowResponseBody.d.ts +3 -0
  86. package/dist/models/UpdateChatFlowResponseBody.js.map +1 -1
  87. package/dist/models/UpdatePhoneEncryptionPublicKeyRequest.d.ts +8 -4
  88. package/dist/models/UpdatePhoneEncryptionPublicKeyRequest.js.map +1 -1
  89. package/dist/models/WhatsappCallRequest.d.ts +10 -2
  90. package/dist/models/WhatsappCallRequest.js +2 -0
  91. package/dist/models/WhatsappCallRequest.js.map +1 -1
  92. package/dist/models/WhatsappCallResponseBody.d.ts +5 -5
  93. package/dist/models/WhatsappCallShrinkRequest.d.ts +9 -1
  94. package/dist/models/WhatsappCallShrinkRequest.js +2 -0
  95. package/dist/models/WhatsappCallShrinkRequest.js.map +1 -1
  96. package/package.json +2 -2
  97. package/src/client.ts +60 -46
  98. package/src/models/AddChatGroupRequest.ts +5 -5
  99. package/src/models/AddChatGroupResponseBody.ts +3 -3
  100. package/src/models/ChatappBindWabaRequest.ts +10 -0
  101. package/src/models/ChatappBindWabaResponseBody.ts +3 -3
  102. package/src/models/CreateChatFlowByImportResponseBody.ts +3 -0
  103. package/src/models/CreateChatFlowLogSettingResponseBody.ts +3 -0
  104. package/src/models/CreateChatFlowResponseBody.ts +6 -0
  105. package/src/models/CreateChatappTemplateRequest.ts +101 -185
  106. package/src/models/CreateChatappTemplateResponseBody.ts +7 -5
  107. package/src/models/CreateChatappTemplateShrinkRequest.ts +37 -38
  108. package/src/models/CreateFlowVersionResponseBody.ts +3 -0
  109. package/src/models/DeleteChatFlowResponseBody.ts +3 -0
  110. package/src/models/GetAutoGeneratedTemplateRequest.ts +1 -1
  111. package/src/models/GetChatFlowMetricResponseBody.ts +3 -0
  112. package/src/models/GetChatFlowTemplateResponseBody.ts +3 -0
  113. package/src/models/GetChatappTemplateDetailResponseBody.ts +1 -1
  114. package/src/models/GetInstagramUserInfoRequest.ts +1 -1
  115. package/src/models/GetInstagramUserInfoResponseBody.ts +5 -5
  116. package/src/models/GetMessageCampaignInsightsResponseBody.ts +1 -1
  117. package/src/models/GetMessengerUserInfoResponseBody.ts +1 -1
  118. package/src/models/GetPhoneEncryptionPublicKeyRequest.ts +2 -7
  119. package/src/models/GetPhoneEncryptionPublicKeyResponseBody.ts +8 -4
  120. package/src/models/ListChatFlowResponseBody.ts +3 -0
  121. package/src/models/ListChatFlowTemplateResponseBody.ts +3 -0
  122. package/src/models/ListChatappMessageRequest.ts +7 -0
  123. package/src/models/ListChatappMessageShrinkRequest.ts +7 -0
  124. package/src/models/ListFlowNodePrototypeV2responseBody.ts +1 -1
  125. package/src/models/ListFlowVersionResponseBody.ts +3 -0
  126. package/src/models/ListInstanceRequest.ts +3 -0
  127. package/src/models/ListMessengerSubscriptionTokenResponseBody.ts +2 -2
  128. package/src/models/ModifyChatappTemplateRequest.ts +36 -27
  129. package/src/models/ModifyChatappTemplateResponseBody.ts +5 -7
  130. package/src/models/ModifyChatappTemplateShrinkRequest.ts +19 -10
  131. package/src/models/MoveContactToGroupResponseBody.ts +3 -0
  132. package/src/models/OfflineFlowVersionResponseBody.ts +3 -0
  133. package/src/models/OnlineFlowVersionResponseBody.ts +3 -0
  134. package/src/models/QueryChatappBindWabaRequest.ts +1 -1
  135. package/src/models/QueryChatappBindWabaResponseBody.ts +23 -13
  136. package/src/models/ReadChatFlowLogSettingResponseBody.ts +3 -0
  137. package/src/models/ReadChatFlowResponseBody.ts +3 -0
  138. package/src/models/ReadFlowVersionResponseBody.ts +3 -0
  139. package/src/models/SendChatappMassMessageRequest.ts +4 -4
  140. package/src/models/SendChatappMassMessageShrinkRequest.ts +1 -1
  141. package/src/models/TriggerChatFlowRequest.ts +3 -3
  142. package/src/models/TriggerChatFlowResponseBody.ts +2 -2
  143. package/src/models/TriggerChatFlowShrinkRequest.ts +3 -3
  144. package/src/models/UpdateChatFlowLogSettingResponseBody.ts +3 -0
  145. package/src/models/UpdateChatFlowResponseBody.ts +3 -0
  146. package/src/models/UpdatePhoneEncryptionPublicKeyRequest.ts +8 -4
  147. package/src/models/WhatsappCallRequest.ts +12 -2
  148. package/src/models/WhatsappCallResponseBody.ts +5 -5
  149. package/src/models/WhatsappCallShrinkRequest.ts +11 -1
@@ -5,18 +5,18 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class CreateChatappTemplateRequestComponentsButtonsSupportedApps extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The package name of the app invoked by WhatsApp. This parameter is required for WhatsApp templates where Category is set to AUTHENTICATION and Button Type is set to ONE_TAP or ZERO_TAP.
8
+ * The package name of the application invoked by WhatsApp. This parameter is valid for WhatsApp templates where the category is Authentication and the button type is ONE_TAP or ZERO_TAP.
9
9
  *
10
10
  * @example
11
- * com.kuaidian.waimaistaff
11
+ * com.aliyun.pack.***
12
12
  */
13
13
  packageName?: string;
14
14
  /**
15
15
  * @remarks
16
- * The signature hash value of the app invoked by WhatsApp. This parameter is required for WhatsApp templates where Category is set to AUTHENTICATION and Button Type is set to ONE_TAP or ZERO_TAP.
16
+ * The signature hash value of the application invoked by WhatsApp. This parameter is valid for WhatsApp templates where the category is Authentication and the button type is ONE_TAP or ZERO_TAP.
17
17
  *
18
18
  * @example
19
- * ieid83kdiek
19
+ * 293882
20
20
  */
21
21
  signatureHash?: string;
22
22
  static names(): { [key: string]: string } {
@@ -45,7 +45,7 @@ export class CreateChatappTemplateRequestComponentsButtonsSupportedApps extends
45
45
  export class CreateChatappTemplateRequestComponentsButtons extends $dara.Model {
46
46
  /**
47
47
  * @remarks
48
- * The button text for the WhatsApp autofill operation. This parameter is required for WhatsApp templates where Category is set to AUTHENTICATION and Button Type is set to ONE_TAP or ZERO_TAP.
48
+ * The button text for the WhatsApp autofill operation. This parameter is required for WhatsApp templates where the category is Authentication and the button type is ONE_TAP.
49
49
  *
50
50
  * @example
51
51
  * Autofill
@@ -53,19 +53,15 @@ export class CreateChatappTemplateRequestComponentsButtons extends $dara.Model {
53
53
  autofillText?: string;
54
54
  /**
55
55
  * @remarks
56
- * The coupon code value. Only letters and digits are supported. You can pass a variable such as $(couponCode) and specify the actual coupon code when sending the message.
56
+ * The coupon code.
57
57
  *
58
58
  * @example
59
- * 120293
59
+ * 23838jdjdj
60
60
  */
61
61
  couponCode?: string;
62
62
  /**
63
63
  * @remarks
64
- * The flow data event type. Valid values:
65
- *
66
- * - DATA_EXCHANGE: data exchange.
67
- *
68
- * - NAVIGATE: navigation.
64
+ * The flow data event type. Valid values: NAVIGATE and DATA_EXCHANGE.
69
65
  *
70
66
  * @example
71
67
  * NAVIGATE
@@ -73,18 +69,18 @@ export class CreateChatappTemplateRequestComponentsButtons extends $dara.Model {
73
69
  flowAction?: string;
74
70
  /**
75
71
  * @remarks
76
- * The flow ID.
72
+ * Flow id
77
73
  *
78
74
  * @example
79
- * 479884093605****
75
+ * 28383872***
80
76
  */
81
77
  flowId?: string;
82
78
  /**
83
79
  * @remarks
84
- * Specifies whether the button is a marketing opt-out button. If a customer clicks this button and send control operations are configured on the Chat App Message Service platform, subsequent marketing messages will not be sent to the customer. This parameter is valid only for WhatsApp templates where Category is set to Marketing and Button Type is set to QUICK_REPLY.
80
+ * Specifies whether the button is a marketing opt-out button. If a customer clicks this button and send control operations are configured on the Chat App Message Service platform, subsequent marketing messages are not sent to the customer. This parameter is valid only for WhatsApp templates where the category is Marketing and the button type is QUICK_REPLY.
85
81
  *
86
82
  * @example
87
- * false
83
+ * true
88
84
  */
89
85
  isOptOut?: boolean;
90
86
  /**
@@ -92,44 +88,44 @@ export class CreateChatappTemplateRequestComponentsButtons extends $dara.Model {
92
88
  * The navigation screen. This parameter is required when FlowAction is set to NAVIGATE.
93
89
  *
94
90
  * @example
95
- * DETAILS
91
+ * SIGN_UP
96
92
  */
97
93
  navigateScreen?: string;
98
94
  /**
99
95
  * @remarks
100
- * Use the properties under SupportedApps.
96
+ * The package name of the application invoked by WhatsApp. This parameter is valid for WhatsApp templates where the category is Authentication and the button type is ONE_TAP or ZERO_TAP.
101
97
  *
102
98
  * @example
103
- * com.demo
99
+ * com.aliyun.pack.***
104
100
  */
105
101
  packageName?: string;
106
102
  /**
107
103
  * @remarks
108
- * The phone number. This parameter is valid only when the button type is **PHONE_NUMBER**.
104
+ * The phone number.
109
105
  *
110
106
  * @example
111
- * +861368897****
107
+ * 8613800**
112
108
  */
113
109
  phoneNumber?: string;
114
110
  /**
115
111
  * @remarks
116
- * Use the properties under SupportedApps.
112
+ * The signature hash value of the application invoked by WhatsApp. This parameter is valid for WhatsApp templates where the category is Authentication and the button type is ONE_TAP or ZERO_TAP.
117
113
  *
118
114
  * @example
119
- * wi299382
115
+ * 293882
120
116
  */
121
117
  signatureHash?: string;
122
118
  /**
123
119
  * @remarks
124
- * The list of supported apps.
120
+ * The applications supported by the ONE_TAP or ZERO_TAP verification code.
125
121
  */
126
122
  supportedApps?: CreateChatappTemplateRequestComponentsButtonsSupportedApps[];
127
123
  /**
128
124
  * @remarks
129
- * The display name of the button.
125
+ * The text of the message to be sent.
130
126
  *
131
127
  * @example
132
- * Call Me
128
+ * CTA
133
129
  */
134
130
  text?: string;
135
131
  /**
@@ -142,50 +138,25 @@ export class CreateChatappTemplateRequestComponentsButtons extends $dara.Model {
142
138
  ttlMinutes?: number;
143
139
  /**
144
140
  * @remarks
145
- * The button type. Valid values:
146
- *
147
- * - **PHONE_NUMBER**: call button.
148
- *
149
- * - **URL**: URL button.
150
- *
151
- * - **QUICK_REPLY**: quick reply button.
152
- *
153
- * - **COPY_CODE**: copy verification code or coupon code button.
154
- *
155
- * - **ONE_TAP**: autofill button for AUTHENTICATION templates.
156
- *
157
- * - **ZERO_TAP**: autofill button for AUTHENTICATION templates.
158
- *
159
- * - **MPM**: multi-product message.
160
- *
161
- * - **CATALOG**: catalog.
162
- *
163
- * - **FLOW**: open WhatsApp flow.
164
- *
165
- * > - For WhatsApp templates where Category is set to AUTHENTICATION, only one button is allowed, and its type must be COPY_CODE or ONE_TAP. If the type is COPY_CODE, Text is required. If the type is ONE_TAP, Text (displayed when the target app is not installed on the device, representing the name of the copy verification code button), SignatureHash, PackageName, and AutofillText are required.
166
- * > - For Viber templates, only one button is allowed, and its type must be URL.
141
+ * The button type. Valid values: PHONE_NUMBER, URL, and QUICK_REPLY.
167
142
  *
168
143
  * This parameter is required.
169
144
  *
170
145
  * @example
171
- * PHONE_NUMBER
146
+ * URL
172
147
  */
173
148
  type?: string;
174
149
  /**
175
150
  * @remarks
176
- * The URL to be accessed when the link button is clicked.
151
+ * The URL to be accessed when the button is clicked.
177
152
  *
178
153
  * @example
179
- * https://example.com
154
+ * https://aliyun.com
180
155
  */
181
156
  url?: string;
182
157
  /**
183
158
  * @remarks
184
- * The URL type. Valid values:
185
- *
186
- * - **static**: static.
187
- *
188
- * - **dynamic**: dynamic.
159
+ * The URL type. Valid values: static and dynamic.
189
160
  *
190
161
  * @example
191
162
  * static
@@ -249,7 +220,7 @@ export class CreateChatappTemplateRequestComponentsCardsCardComponentsButtons ex
249
220
  * The phone number.
250
221
  *
251
222
  * @example
252
- * +86138007****
223
+ * 8613800**
253
224
  */
254
225
  phoneNumber?: string;
255
226
  /**
@@ -257,23 +228,17 @@ export class CreateChatappTemplateRequestComponentsCardsCardComponentsButtons ex
257
228
  * The button text.
258
229
  *
259
230
  * @example
260
- * Call me
231
+ * CTA
261
232
  */
262
233
  text?: string;
263
234
  /**
264
235
  * @remarks
265
- * The button type. Valid values:
266
- *
267
- * - **PHONE_NUMBER**: call button.
268
- *
269
- * - **URL**: URL button.
270
- *
271
- * - **QUICK_REPLY**: quick reply button.
236
+ * The button type in the carousel template. Valid values: URL, PHONE_NUMBER, and QUICK_REPLY.
272
237
  *
273
238
  * This parameter is required.
274
239
  *
275
240
  * @example
276
- * PHONE_NUMBER
241
+ * URL
277
242
  */
278
243
  type?: string;
279
244
  /**
@@ -281,16 +246,12 @@ export class CreateChatappTemplateRequestComponentsCardsCardComponentsButtons ex
281
246
  * The URL to be accessed when the button is clicked.
282
247
  *
283
248
  * @example
284
- * https://alibaba.com/xx
249
+ * https://aliyun.com
285
250
  */
286
251
  url?: string;
287
252
  /**
288
253
  * @remarks
289
- * The URL type. Valid values:
290
- *
291
- * - **static**: static.
292
- *
293
- * - **dynamic**: dynamic.
254
+ * The URL type. Valid values: static and dynamic.
294
255
  *
295
256
  * @example
296
257
  * static
@@ -328,16 +289,12 @@ export class CreateChatappTemplateRequestComponentsCardsCardComponentsButtons ex
328
289
  export class CreateChatappTemplateRequestComponentsCardsCardComponents extends $dara.Model {
329
290
  /**
330
291
  * @remarks
331
- * The list of buttons. This parameter is only applicable to the BUTTONS component. Each carousel card can have a maximum of two buttons.
292
+ * The buttons in the carousel card. The button type, name, and order must be consistent across all cards. Each card can have a maximum of two buttons.
332
293
  */
333
294
  buttons?: CreateChatappTemplateRequestComponentsCardsCardComponentsButtons[];
334
295
  /**
335
296
  * @remarks
336
- * The media resource type. This parameter is valid when Type is set to HEADER. Valid values:
337
- *
338
- * - **IMAGE**: image.
339
- *
340
- * - **VIDEO**: video.
297
+ * The header format in the carousel template. Only IMAGE and VIDEO are supported. The header format must be consistent across all cards. Valid values: IMAGE and VIDEO.
341
298
  *
342
299
  * @example
343
300
  * IMAGE
@@ -345,21 +302,15 @@ export class CreateChatappTemplateRequestComponentsCardsCardComponents extends $
345
302
  format?: string;
346
303
  /**
347
304
  * @remarks
348
- * The body content in the carousel card.
305
+ * The body text in the carousel card.
349
306
  *
350
307
  * @example
351
- * Who is the very powerful team
308
+ * text
352
309
  */
353
310
  text?: string;
354
311
  /**
355
312
  * @remarks
356
- * The component type. Valid values:
357
- *
358
- * - **BODY**
359
- *
360
- * - **HEADER**
361
- *
362
- * - **BUTTONS**
313
+ * The component type. Valid values: BODY, HEADER, and BUTTONS.
363
314
  *
364
315
  * This parameter is required.
365
316
  *
@@ -369,10 +320,10 @@ export class CreateChatappTemplateRequestComponentsCardsCardComponents extends $
369
320
  type?: string;
370
321
  /**
371
322
  * @remarks
372
- * The media URL.
323
+ * The URL of the image or video in the header.
373
324
  *
374
325
  * @example
375
- * https://alibaba.com/img.png
326
+ * https://aliyun.com
376
327
  */
377
328
  url?: string;
378
329
  static names(): { [key: string]: string } {
@@ -410,7 +361,7 @@ export class CreateChatappTemplateRequestComponentsCardsCardComponents extends $
410
361
  export class CreateChatappTemplateRequestComponentsCards extends $dara.Model {
411
362
  /**
412
363
  * @remarks
413
- * The list of controls in the carousel card.
364
+ * The list of components in the carousel card.
414
365
  */
415
366
  cardComponents?: CreateChatappTemplateRequestComponentsCardsCardComponents[];
416
367
  static names(): { [key: string]: string } {
@@ -440,30 +391,20 @@ export class CreateChatappTemplateRequestComponentsCards extends $dara.Model {
440
391
  export class CreateChatappTemplateRequestComponents extends $dara.Model {
441
392
  /**
442
393
  * @remarks
443
- * The security recommendation text displayed above the body to warn users not to share the verification code with others. This parameter is valid only for WhatsApp templates where Category is set to AUTHENTICATION and Component Type is set to BODY.
394
+ * Specifies whether to display a warning message above the body advising users not to share their verification code with others. This parameter is valid only for WhatsApp templates where the category is Authentication and the component type is Body.
444
395
  *
445
396
  * @example
446
- * true
397
+ * false
447
398
  */
448
399
  addSecretRecommendation?: boolean;
449
400
  /**
450
401
  * @remarks
451
- * The list of buttons. This parameter is only applicable to the **BUTTONS** component.
452
- *
453
- * > WhatsApp button limits:
454
- * > - For MARKETING or UTILITY templates, a maximum of 10 buttons are allowed.
455
- * > - Only one PHONE_NUMBER button is allowed.
456
- * > - A maximum of two URL buttons are allowed.
457
- * > - QUICK_REPLY buttons cannot be mixed with PHONE_NUMBER or URL buttons in an unordered manner.
458
- *
459
- * > Viber button limits:
460
- * > - Only the URL type is supported, and only one button is allowed.
461
- * > - When the HEADER is a VIDEO, the button type must be URL, but the URL address cannot be set.
402
+ * The buttons.
462
403
  */
463
404
  buttons?: CreateChatappTemplateRequestComponentsButtons[];
464
405
  /**
465
406
  * @remarks
466
- * The description of the file.
407
+ * The caption. You can add a caption when the type is Header and the format is IMAGE, DOCUMENT, or VIDEO.
467
408
  *
468
409
  * @example
469
410
  * This is a video
@@ -471,12 +412,15 @@ export class CreateChatappTemplateRequestComponents extends $dara.Model {
471
412
  caption?: string;
472
413
  /**
473
414
  * @remarks
474
- * The list of carousel template cards.
415
+ * The list of cards in the carousel template.
416
+ *
417
+ * @example
418
+ * []
475
419
  */
476
420
  cards?: CreateChatappTemplateRequestComponentsCards[];
477
421
  /**
478
422
  * @remarks
479
- * The validity period of the verification code in minutes for WhatsApp AUTHENTICATION templates. This parameter is valid only for WhatsApp messages where Category is set to AUTHENTICATION and Component Type is set to FOOTER. This information is displayed in the footer.
423
+ * The validity period of the verification code in minutes for WhatsApp authentication templates. This parameter is valid only for WhatsApp messages where the category is Authentication and the component type is Footer. This information is displayed in the footer.
480
424
  *
481
425
  * @example
482
426
  * 5
@@ -484,7 +428,7 @@ export class CreateChatappTemplateRequestComponents extends $dara.Model {
484
428
  codeExpirationMinutes?: number;
485
429
  /**
486
430
  * @remarks
487
- * The duration of the Viber video message in seconds. Valid values: 0 to 600.
431
+ * The duration of the Viber video message. Valid values: 0 to 600.
488
432
  *
489
433
  * @example
490
434
  * 120
@@ -492,10 +436,10 @@ export class CreateChatappTemplateRequestComponents extends $dara.Model {
492
436
  duration?: number;
493
437
  /**
494
438
  * @remarks
495
- * The name of the file.
439
+ * The file name. You can specify a file name when the type is Header and the format is DOCUMENT.
496
440
  *
497
441
  * @example
498
- * Express delivery video
442
+ * name.txt
499
443
  */
500
444
  fileName?: string;
501
445
  /**
@@ -508,23 +452,15 @@ export class CreateChatappTemplateRequestComponents extends $dara.Model {
508
452
  fileType?: string;
509
453
  /**
510
454
  * @remarks
511
- * The media resource type. Valid values:
512
- *
513
- * - **TEXT**: text.
514
- *
515
- * - **IMAGE**: image.
516
- *
517
- * - **DOCUMENT**: document.
518
- *
519
- * - **VIDEO**: video.
455
+ * The format. Valid values: TEXT, IMAGE, DOCUMENT, and VIDEO.
520
456
  *
521
457
  * @example
522
- * TEXT
458
+ * IMAGE
523
459
  */
524
460
  format?: string;
525
461
  /**
526
462
  * @remarks
527
- * Specifies whether the coupon code has an expiration time. This parameter is used when Type is set to LIMITED_TIME_OFFER.
463
+ * Specifies whether the limited-time offer (LTO) template has an expiration time.
528
464
  *
529
465
  * @example
530
466
  * true
@@ -532,12 +468,10 @@ export class CreateChatappTemplateRequestComponents extends $dara.Model {
532
468
  hasExpiration?: boolean;
533
469
  /**
534
470
  * @remarks
535
- * The text of the message to send.
536
- *
537
- * > For WhatsApp templates, when Category is set to AUTHENTICATION, this property is empty.
471
+ * The text of the message to be sent.
538
472
  *
539
473
  * @example
540
- * hello whatsapp
474
+ * body
541
475
  */
542
476
  text?: string;
543
477
  /**
@@ -545,43 +479,26 @@ export class CreateChatappTemplateRequestComponents extends $dara.Model {
545
479
  * The thumbnail for Viber video messages.
546
480
  *
547
481
  * @example
548
- * https://cdn.multiplymall.mobiapp.cloud/yunmall/B-LM-LMALL202207130001/20220730/d712a057-a6af-4513-bbe6-7ee57ea60983.png?x-oss-process=image/resize,w_100
482
+ * https://img.png
549
483
  */
550
484
  thumbUrl?: string;
551
485
  /**
552
486
  * @remarks
553
- * The component type. Valid values:
554
- *
555
- * - **BODY**
556
- *
557
- * - **HEADER**
558
- *
559
- * - **FOOTER**
560
- *
561
- * - **BUTTONS**
562
- *
563
- * - **CAROUSEL**
564
- *
565
- * - **LIMITED_TIME_OFFER**
566
- *
567
- * > - For WhatsApp templates, the **BODY** component cannot exceed 1,024 characters in length. The **HEADER** and **FOOTER** components cannot exceed 60 characters in length.
568
- * > - For Viber templates, the **FOOTER**, **CAROUSEL**, and **LIMITED_TIME_OFFER** types are invalid.
569
- * > - In Viber templates, images, videos, and files are placed in the **HEADER** (the client displays the image below the text). Text is placed in the **BODY**.
487
+ * The component type.
488
+ * Valid values: BODY, HEADER, FOOTER, and BUTTONS.
570
489
  *
571
490
  * This parameter is required.
572
491
  *
573
492
  * @example
574
- * BODY
493
+ * HEADER
575
494
  */
576
495
  type?: string;
577
496
  /**
578
497
  * @remarks
579
- * The URL of the media.
580
- *
581
- * > For Viber templates, the recommended image size is 800 × 800 pixels.
498
+ * The media path.
582
499
  *
583
500
  * @example
584
- * https://image.developer.aliyundoc.com
501
+ * https://img.png
585
502
  */
586
503
  url?: string;
587
504
  static names(): { [key: string]: string } {
@@ -640,50 +557,53 @@ export class CreateChatappTemplateRequestComponents extends $dara.Model {
640
557
  export class CreateChatappTemplateRequest extends $dara.Model {
641
558
  /**
642
559
  * @remarks
643
- * Specifies whether to allow Facebook to automatically change the category of the template to improve the approval rate. This property is valid only when TemplateType is set to WHATSAPP.
644
- * >Notice: **[Deprecated]** WhatsApp no longer supports this property.</notice>
560
+ * Specifies whether to allow Facebook to automatically change the category of the template to improve the approval rate. This parameter is valid only when TemplateType is set to WHATSAPP.
645
561
  *
646
562
  * @example
647
- * true
563
+ * false
648
564
  */
649
565
  allowCategoryChange?: boolean;
650
566
  /**
651
567
  * @remarks
652
- * WhatsApp template categories:
653
- *
654
- * - **UTILITY**: Transaction-related.
655
- *
656
- * - **MARKETING**: Marketing templates.
657
- *
658
- * - **AUTHENTICATION**: Authenticate identity.
568
+ * The template category.
569
+ * <details>
570
+ * <summary>Valid values for WHATSAPP</summary>
571
+ *
572
+ * - AUTHENTICATION
659
573
  *
660
- * Viber template categories:
574
+ * > The body must contain a verificationCode variable.
575
+ * - UTILITY
576
+ * - MARKETING
661
577
  *
662
- * - **UTILITY**: Transaction-related.
578
+ * </details>
579
+ * <details>
580
+ * <summary>Valid values for VIBER</summary>
581
+ *
582
+ * - AUTHENTICATION
663
583
  *
664
- * - **MARKETING**: Marketing templates.
584
+ * > The body must contain a pin variable.
585
+ * - UTILITY
586
+ * - MARKETING
665
587
  *
666
- * - **AUTHENTICATION**: Authenticate identity.
588
+ * </details>
667
589
  *
668
590
  * This parameter is required.
669
591
  *
670
592
  * @example
671
- * UTILITY
593
+ * MARKETING
672
594
  */
673
595
  category?: string;
674
596
  /**
675
597
  * @remarks
676
- * Specifies whether to pause sending the template when a utility template is changed to a marketing template. This property is valid only for WhatsApp templates.
598
+ * Specifies whether to pause sending the template when a utility template is changed to a marketing template.
677
599
  *
678
600
  * @example
679
- * false
601
+ * true
680
602
  */
681
603
  categoryChangePaused?: boolean;
682
604
  /**
683
605
  * @remarks
684
- * The list of message template components.
685
- *
686
- * > When Category is set to AUTHENTICATION, Components cannot contain nodes with Type set to HEADER. Additionally, when Type is set to BODY or FOOTER, the Text content must be empty.
606
+ * The template content.
687
607
  *
688
608
  * This parameter is required.
689
609
  */
@@ -693,27 +613,25 @@ export class CreateChatappTemplateRequest extends $dara.Model {
693
613
  * The SpaceId of the ISV sub-customer or the instance ID of the direct customer.
694
614
  *
695
615
  * @example
696
- * 293483938849493
616
+ * cams-jd***
697
617
  */
698
618
  custSpaceId?: string;
699
619
  /**
700
620
  * @remarks
701
- * The WabaId of the ISV customer.
702
- *
703
- * > **[Deprecated]** Use CustSpaceId instead.
621
+ * The WabaId of the ISV customer. This parameter will be deprecated. Use CustSpaceId instead.
704
622
  *
705
623
  * @example
706
- * 65921621816****
624
+ * 9393***
707
625
  *
708
626
  * @deprecated
709
627
  */
710
628
  custWabaId?: string;
711
629
  /**
712
630
  * @remarks
713
- * The example for creating a template.
631
+ * The variables in key-value format.
714
632
  *
715
633
  * @example
716
- * hello_whatsapp
634
+ * {}
717
635
  */
718
636
  example?: { [key: string]: string };
719
637
  /**
@@ -721,14 +639,14 @@ export class CreateChatappTemplateRequest extends $dara.Model {
721
639
  * The ISV verification code used to verify whether the RAM user is authorized by the ISV.
722
640
  *
723
641
  * @example
724
- * skdi3kksloslikdkkdk
642
+ * idk***
725
643
  *
726
644
  * @deprecated
727
645
  */
728
646
  isvCode?: string;
729
647
  /**
730
648
  * @remarks
731
- * The template language. For detailed language codes, see [Language codes](https://help.aliyun.com/document_detail/463420.html).
649
+ * The language.
732
650
  *
733
651
  * This parameter is required.
734
652
  *
@@ -738,12 +656,14 @@ export class CreateChatappTemplateRequest extends $dara.Model {
738
656
  language?: string;
739
657
  /**
740
658
  * @remarks
741
- * The validity period for sending template messages in WhatsApp.
742
- * - AUTHENTICATION: 30 to 900.
743
- * - UTILITY: 30 to 43200.
659
+ * The validity period of the template message sent in WhatsApp.
660
+ * > Valid values:
661
+ * > - AUTHENTICATION: 30 to 900
662
+ * > - UTILITY: 30 to 43200
663
+ * > - MARKETING: 43200 to 2592000
744
664
  *
745
665
  * @example
746
- * 120
666
+ * 62
747
667
  */
748
668
  messageSendTtlSeconds?: number;
749
669
  /**
@@ -753,7 +673,7 @@ export class CreateChatappTemplateRequest extends $dara.Model {
753
673
  * This parameter is required.
754
674
  *
755
675
  * @example
756
- * hello_whatsapp
676
+ * test
757
677
  */
758
678
  name?: string;
759
679
  /**
@@ -768,10 +688,6 @@ export class CreateChatappTemplateRequest extends $dara.Model {
768
688
  * @remarks
769
689
  * The templatetype.
770
690
  *
771
- * - **WHATSAPP**
772
- *
773
- * - **VIBER**
774
- *
775
691
  * This parameter is required.
776
692
  *
777
693
  * @example
@@ -45,7 +45,7 @@ export class CreateChatappTemplateResponseBodyData extends $dara.Model {
45
45
  export class CreateChatappTemplateResponseBody extends $dara.Model {
46
46
  /**
47
47
  * @remarks
48
- * The details of the access denial.
48
+ * The details of the access denied error.
49
49
  *
50
50
  * @example
51
51
  * None
@@ -55,7 +55,7 @@ export class CreateChatappTemplateResponseBody extends $dara.Model {
55
55
  * @remarks
56
56
  * The request status code.
57
57
  *
58
- * - OK: The request is successful.
58
+ * - A value of OK indicates that the request is successful.
59
59
  *
60
60
  * - For other error codes, see [Error codes](https://www.alibabacloud.com/help/zh/cams/latest/api-error-codes).
61
61
  *
@@ -66,9 +66,6 @@ export class CreateChatappTemplateResponseBody extends $dara.Model {
66
66
  /**
67
67
  * @remarks
68
68
  * The returned data.
69
- *
70
- * @example
71
- * {"templateCode": "****4b5c79c9432497a075bdfca36bf5","templateName": "hello_whatsapp"}
72
69
  */
73
70
  data?: CreateChatappTemplateResponseBodyData;
74
71
  /**
@@ -88,6 +85,11 @@ export class CreateChatappTemplateResponseBody extends $dara.Model {
88
85
  */
89
86
  requestId?: string;
90
87
  /**
88
+ * @remarks
89
+ * Indicates whether the call is successful. Valid values:
90
+ * - **true**: The call is successful.
91
+ * - **false**: The call fails.
92
+ *
91
93
  * @example
92
94
  * true
93
95
  */