@alicloud/cams20200606 4.1.1 → 4.1.2
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 +2 -2
- package/dist/client.js +5 -2
- package/dist/client.js.map +1 -1
- package/dist/models/AddCustomAudienceUserRequest.d.ts +2 -2
- package/dist/models/ChatappBindWabaRequest.d.ts +3 -1
- package/dist/models/ChatappBindWabaRequest.js.map +1 -1
- package/dist/models/ChatappPhoneNumberDeregisterRequest.d.ts +6 -2
- package/dist/models/ChatappPhoneNumberDeregisterRequest.js.map +1 -1
- package/dist/models/ChatappPhoneNumberRegisterRequest.d.ts +6 -2
- package/dist/models/ChatappPhoneNumberRegisterRequest.js.map +1 -1
- package/dist/models/ChatappVerifyAndRegisterRequest.d.ts +8 -2
- package/dist/models/ChatappVerifyAndRegisterRequest.js.map +1 -1
- package/dist/models/CreateFlowRequest.d.ts +9 -2
- package/dist/models/CreateFlowRequest.js.map +1 -1
- package/dist/models/CreateFlowShrinkRequest.d.ts +9 -2
- package/dist/models/CreateFlowShrinkRequest.js.map +1 -1
- package/dist/models/CreatePhoneMessageQrdlRequest.d.ts +13 -4
- package/dist/models/CreatePhoneMessageQrdlRequest.js.map +1 -1
- package/dist/models/DeleteFlowRequest.d.ts +7 -2
- package/dist/models/DeleteFlowRequest.js.map +1 -1
- package/dist/models/DeletePhoneMessageQrdlRequest.d.ts +10 -3
- package/dist/models/DeletePhoneMessageQrdlRequest.js.map +1 -1
- package/dist/models/DeprecateFlowRequest.d.ts +7 -2
- package/dist/models/DeprecateFlowRequest.js.map +1 -1
- package/dist/models/GetChatappVerifyCodeRequest.d.ts +16 -3
- package/dist/models/GetChatappVerifyCodeRequest.js.map +1 -1
- package/dist/models/GetFlowJsonassestRequest.d.ts +8 -2
- package/dist/models/GetFlowJsonassestRequest.js.map +1 -1
- package/dist/models/GetFlowPreviewUrlRequest.d.ts +7 -2
- package/dist/models/GetFlowPreviewUrlRequest.js.map +1 -1
- package/dist/models/GetFlowRequest.d.ts +7 -2
- package/dist/models/GetFlowRequest.js.map +1 -1
- package/dist/models/GetPermissionByCodeRequest.d.ts +11 -2
- package/dist/models/GetPermissionByCodeRequest.js.map +1 -1
- package/dist/models/GetPermissionByCodeShrinkRequest.d.ts +11 -2
- package/dist/models/GetPermissionByCodeShrinkRequest.js.map +1 -1
- package/dist/models/GetPhoneEncryptionPublicKeyRequest.d.ts +7 -2
- package/dist/models/GetPhoneEncryptionPublicKeyRequest.js.map +1 -1
- package/dist/models/GetPhoneNumberVerificationStatusRequest.d.ts +6 -2
- package/dist/models/GetPhoneNumberVerificationStatusRequest.js.map +1 -1
- package/dist/models/IsvGetAppIdRequest.d.ts +13 -2
- package/dist/models/IsvGetAppIdRequest.js.map +1 -1
- package/dist/models/ListFlowRequest.d.ts +26 -2
- package/dist/models/ListFlowRequest.js.map +1 -1
- package/dist/models/ListFlowShrinkRequest.d.ts +12 -2
- package/dist/models/ListFlowShrinkRequest.js.map +1 -1
- package/dist/models/ListPhoneMessageQrdlRequest.d.ts +7 -2
- package/dist/models/ListPhoneMessageQrdlRequest.js.map +1 -1
- package/dist/models/ModifyFlowRequest.d.ts +13 -3
- package/dist/models/ModifyFlowRequest.js.map +1 -1
- package/dist/models/ModifyFlowShrinkRequest.d.ts +13 -3
- package/dist/models/ModifyFlowShrinkRequest.js.map +1 -1
- package/dist/models/PublishFlowRequest.d.ts +7 -2
- package/dist/models/PublishFlowRequest.js.map +1 -1
- package/dist/models/SendChatappMassMessageRequest.d.ts +128 -20
- package/dist/models/SendChatappMassMessageRequest.js.map +1 -1
- package/dist/models/SendChatappMassMessageShrinkRequest.d.ts +80 -15
- package/dist/models/SendChatappMassMessageShrinkRequest.js.map +1 -1
- package/dist/models/SendChatappMessageRequest.d.ts +175 -23
- package/dist/models/SendChatappMessageRequest.js +2 -0
- package/dist/models/SendChatappMessageRequest.js.map +1 -1
- package/dist/models/SendChatappMessageShrinkRequest.d.ts +147 -19
- package/dist/models/SendChatappMessageShrinkRequest.js +2 -0
- package/dist/models/SendChatappMessageShrinkRequest.js.map +1 -1
- package/dist/models/UpdateFlowJsonassetRequest.d.ts +10 -3
- package/dist/models/UpdateFlowJsonassetRequest.js.map +1 -1
- package/dist/models/UpdatePhoneEncryptionPublicKeyRequest.d.ts +18 -3
- package/dist/models/UpdatePhoneEncryptionPublicKeyRequest.js.map +1 -1
- package/dist/models/UpdatePhoneMessageQrdlRequest.d.ts +16 -5
- package/dist/models/UpdatePhoneMessageQrdlRequest.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +6 -2
- package/src/models/AddCustomAudienceUserRequest.ts +2 -2
- package/src/models/ChatappBindWabaRequest.ts +3 -1
- package/src/models/ChatappPhoneNumberDeregisterRequest.ts +6 -2
- package/src/models/ChatappPhoneNumberRegisterRequest.ts +6 -2
- package/src/models/ChatappVerifyAndRegisterRequest.ts +8 -2
- package/src/models/CreateFlowRequest.ts +9 -2
- package/src/models/CreateFlowShrinkRequest.ts +9 -2
- package/src/models/CreatePhoneMessageQrdlRequest.ts +13 -4
- package/src/models/DeleteFlowRequest.ts +7 -2
- package/src/models/DeletePhoneMessageQrdlRequest.ts +10 -3
- package/src/models/DeprecateFlowRequest.ts +7 -2
- package/src/models/GetChatappVerifyCodeRequest.ts +16 -3
- package/src/models/GetFlowJsonassestRequest.ts +8 -2
- package/src/models/GetFlowPreviewUrlRequest.ts +7 -2
- package/src/models/GetFlowRequest.ts +7 -2
- package/src/models/GetPermissionByCodeRequest.ts +11 -2
- package/src/models/GetPermissionByCodeShrinkRequest.ts +11 -2
- package/src/models/GetPhoneEncryptionPublicKeyRequest.ts +7 -2
- package/src/models/GetPhoneNumberVerificationStatusRequest.ts +6 -2
- package/src/models/IsvGetAppIdRequest.ts +13 -2
- package/src/models/ListFlowRequest.ts +26 -2
- package/src/models/ListFlowShrinkRequest.ts +12 -2
- package/src/models/ListPhoneMessageQrdlRequest.ts +7 -2
- package/src/models/ModifyFlowRequest.ts +13 -3
- package/src/models/ModifyFlowShrinkRequest.ts +13 -3
- package/src/models/PublishFlowRequest.ts +7 -2
- package/src/models/SendChatappMassMessageRequest.ts +128 -20
- package/src/models/SendChatappMassMessageShrinkRequest.ts +80 -15
- package/src/models/SendChatappMessageRequest.ts +177 -23
- package/src/models/SendChatappMessageShrinkRequest.ts +149 -19
- package/src/models/UpdateFlowJsonassetRequest.ts +10 -3
- package/src/models/UpdatePhoneEncryptionPublicKeyRequest.ts +18 -3
- package/src/models/UpdatePhoneMessageQrdlRequest.ts +16 -5
|
@@ -3,10 +3,17 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class SendChatappMessageRequestFlowAction extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The default parameter of the Flow.
|
|
9
|
+
*/
|
|
6
10
|
flowActionData?: { [key: string]: any };
|
|
7
11
|
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* The Flow token.
|
|
14
|
+
*
|
|
8
15
|
* @example
|
|
9
|
-
*
|
|
16
|
+
* 1122***
|
|
10
17
|
*/
|
|
11
18
|
flowToken?: string;
|
|
12
19
|
static names(): { [key: string]: string } {
|
|
@@ -37,8 +44,11 @@ export class SendChatappMessageRequestFlowAction extends $dara.Model {
|
|
|
37
44
|
|
|
38
45
|
export class SendChatappMessageRequestProductActionSectionsProductItems extends $dara.Model {
|
|
39
46
|
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The retailer ID of the product.
|
|
49
|
+
*
|
|
40
50
|
* @example
|
|
41
|
-
*
|
|
51
|
+
* 9I39E9E
|
|
42
52
|
*/
|
|
43
53
|
productRetailerId?: string;
|
|
44
54
|
static names(): { [key: string]: string } {
|
|
@@ -63,10 +73,17 @@ export class SendChatappMessageRequestProductActionSectionsProductItems extends
|
|
|
63
73
|
}
|
|
64
74
|
|
|
65
75
|
export class SendChatappMessageRequestProductActionSections extends $dara.Model {
|
|
76
|
+
/**
|
|
77
|
+
* @remarks
|
|
78
|
+
* The products.
|
|
79
|
+
*/
|
|
66
80
|
productItems?: SendChatappMessageRequestProductActionSectionsProductItems[];
|
|
67
81
|
/**
|
|
82
|
+
* @remarks
|
|
83
|
+
* The name of the category.
|
|
84
|
+
*
|
|
68
85
|
* @example
|
|
69
|
-
*
|
|
86
|
+
* Test
|
|
70
87
|
*/
|
|
71
88
|
title?: string;
|
|
72
89
|
static names(): { [key: string]: string } {
|
|
@@ -96,10 +113,17 @@ export class SendChatappMessageRequestProductActionSections extends $dara.Model
|
|
|
96
113
|
}
|
|
97
114
|
|
|
98
115
|
export class SendChatappMessageRequestProductAction extends $dara.Model {
|
|
116
|
+
/**
|
|
117
|
+
* @remarks
|
|
118
|
+
* The products. Up to 30 products and 10 categories can be added.
|
|
119
|
+
*/
|
|
99
120
|
sections?: SendChatappMessageRequestProductActionSections[];
|
|
100
121
|
/**
|
|
122
|
+
* @remarks
|
|
123
|
+
* The retailer ID of the product.
|
|
124
|
+
*
|
|
101
125
|
* @example
|
|
102
|
-
*
|
|
126
|
+
* S238SK
|
|
103
127
|
*/
|
|
104
128
|
thumbnailProductRetailerId?: string;
|
|
105
129
|
static names(): { [key: string]: string } {
|
|
@@ -134,12 +158,23 @@ export class SendChatappMessageRequest extends $dara.Model {
|
|
|
134
158
|
* 示例值示例值
|
|
135
159
|
*/
|
|
136
160
|
adAccountId?: string;
|
|
161
|
+
/**
|
|
162
|
+
* @example
|
|
163
|
+
* UTILITY
|
|
164
|
+
*/
|
|
165
|
+
category?: string;
|
|
137
166
|
/**
|
|
138
167
|
* @remarks
|
|
168
|
+
* The channel type. Valid values:
|
|
169
|
+
*
|
|
170
|
+
* * **whatsapp**
|
|
171
|
+
* * **viber**
|
|
172
|
+
* * **line** (under development)
|
|
173
|
+
*
|
|
139
174
|
* This parameter is required.
|
|
140
175
|
*
|
|
141
176
|
* @example
|
|
142
|
-
*
|
|
177
|
+
* whatsapp
|
|
143
178
|
*/
|
|
144
179
|
channelType?: string;
|
|
145
180
|
/**
|
|
@@ -175,62 +210,112 @@ export class SendChatappMessageRequest extends $dara.Model {
|
|
|
175
210
|
*/
|
|
176
211
|
content?: string;
|
|
177
212
|
/**
|
|
213
|
+
* @remarks
|
|
214
|
+
* The ID of the reply message.
|
|
215
|
+
*
|
|
178
216
|
* @example
|
|
179
|
-
*
|
|
217
|
+
* 61851ccb2f1365b16aee****
|
|
180
218
|
*/
|
|
181
219
|
contextMessageId?: string;
|
|
182
220
|
/**
|
|
221
|
+
* @remarks
|
|
222
|
+
* The space ID of the user.
|
|
223
|
+
*
|
|
183
224
|
* @example
|
|
184
|
-
*
|
|
225
|
+
* 28251486512358****
|
|
185
226
|
*/
|
|
186
227
|
custSpaceId?: string;
|
|
187
228
|
/**
|
|
229
|
+
* @remarks
|
|
230
|
+
* The WhatsApp Business Account (WABA) ID of the RAM user within the independent software vendor (ISV) account.
|
|
231
|
+
*
|
|
232
|
+
* > CustWabaId is an obsolete parameter. Use CustSpaceId instead.
|
|
233
|
+
*
|
|
188
234
|
* @example
|
|
189
|
-
*
|
|
235
|
+
* 65921621816****
|
|
190
236
|
*
|
|
191
237
|
* @deprecated
|
|
192
238
|
*/
|
|
193
239
|
custWabaId?: string;
|
|
194
240
|
/**
|
|
241
|
+
* @remarks
|
|
242
|
+
* The content of the fallback message.
|
|
243
|
+
*
|
|
195
244
|
* @example
|
|
196
|
-
*
|
|
245
|
+
* This is a fallback message.
|
|
197
246
|
*/
|
|
198
247
|
fallBackContent?: string;
|
|
248
|
+
/**
|
|
249
|
+
* @remarks
|
|
250
|
+
* Specifies the period of time after which the fallback message is sent if the message receipt that indicates the message is delivered to clients is not received. If this parameter is left empty, the fallback message is sent only when the **message fails to be sent** or **the message receipt that indicates the message is not delivered to clients** is received. Unit: seconds. Valid values: 60 to 43200.
|
|
251
|
+
*
|
|
252
|
+
* @example
|
|
253
|
+
* 120
|
|
254
|
+
*/
|
|
199
255
|
fallBackDuration?: number;
|
|
200
256
|
/**
|
|
257
|
+
* @remarks
|
|
258
|
+
* The ID of the fallback policy. You can create a fallback policy and view the information in the Chat App Message Service console.
|
|
259
|
+
*
|
|
201
260
|
* @example
|
|
202
|
-
*
|
|
261
|
+
* S_000001
|
|
203
262
|
*/
|
|
204
263
|
fallBackId?: string;
|
|
205
264
|
/**
|
|
265
|
+
* @remarks
|
|
266
|
+
* The fallback rule. Valid values:
|
|
267
|
+
*
|
|
268
|
+
* * **undelivered**: A fallback is triggered if the message is not delivered to clients. When the message is being sent, the template parameters are verified. If the parameters fail to pass the verification, the message fails to be sent. Whether the template and phone number are prohibited is not verified. By default, this value is used when FallBackRule is left empty.
|
|
269
|
+
* * **sentFailed**: A fallback is triggered even if the template parameters including variables fail to pass the verification. If the channelType, type, messageType, to, and from parameters fail to pass the verification, a fallback is not triggered.
|
|
270
|
+
*
|
|
206
271
|
* @example
|
|
207
|
-
*
|
|
272
|
+
* undelivered
|
|
208
273
|
*/
|
|
209
274
|
fallBackRule?: string;
|
|
275
|
+
/**
|
|
276
|
+
* @remarks
|
|
277
|
+
* The Flow action.
|
|
278
|
+
*/
|
|
210
279
|
flowAction?: SendChatappMessageRequestFlowAction;
|
|
211
280
|
/**
|
|
212
281
|
* @remarks
|
|
282
|
+
* The mobile phone number of the message sender.
|
|
283
|
+
*
|
|
284
|
+
* > You can specify a mobile phone number that is registered for a WhatsApp account and is approved in the Chat App Message Service console.
|
|
285
|
+
*
|
|
213
286
|
* This parameter is required.
|
|
214
287
|
*
|
|
215
288
|
* @example
|
|
216
|
-
*
|
|
289
|
+
* 1360000****
|
|
217
290
|
*/
|
|
218
291
|
from?: string;
|
|
219
292
|
/**
|
|
293
|
+
* @remarks
|
|
294
|
+
* The ISV verification code. This parameter is used to verify whether the RAM user is authorized by the ISV account.
|
|
295
|
+
*
|
|
220
296
|
* @example
|
|
221
|
-
*
|
|
297
|
+
* skdi3kksloslikdkkdk
|
|
222
298
|
*
|
|
223
299
|
* @deprecated
|
|
224
300
|
*/
|
|
225
301
|
isvCode?: string;
|
|
226
302
|
/**
|
|
303
|
+
* @remarks
|
|
304
|
+
* The type of the Viber message. This parameter is required if ChannelType is set to viber. Valid values:
|
|
305
|
+
*
|
|
306
|
+
* * **promotion**
|
|
307
|
+
* * **transaction**
|
|
308
|
+
*
|
|
227
309
|
* @example
|
|
228
|
-
*
|
|
310
|
+
* promotion
|
|
229
311
|
*/
|
|
230
312
|
label?: string;
|
|
231
313
|
/**
|
|
314
|
+
* @remarks
|
|
315
|
+
* The language that is used in the message template. This parameter is required only if you set the Type parameter to **template**. For more information about language codes, see [Language codes](https://help.aliyun.com/document_detail/463420.html).
|
|
316
|
+
*
|
|
232
317
|
* @example
|
|
233
|
-
*
|
|
318
|
+
* en
|
|
234
319
|
*/
|
|
235
320
|
language?: string;
|
|
236
321
|
/**
|
|
@@ -239,8 +324,38 @@ export class SendChatappMessageRequest extends $dara.Model {
|
|
|
239
324
|
*/
|
|
240
325
|
messageCampaignId?: string;
|
|
241
326
|
/**
|
|
327
|
+
* @remarks
|
|
328
|
+
* The specific type of the message. This parameter is required only if you set the Type parameter to **message**.
|
|
329
|
+
*
|
|
330
|
+
* **Valid values of MessageType when you set the ChannelType parameter to whatsapp:**
|
|
331
|
+
*
|
|
332
|
+
* * **text**: a text message.
|
|
333
|
+
* * **image**: an image message.
|
|
334
|
+
* * **video**: a video message.
|
|
335
|
+
* * **audio**: an audio message.
|
|
336
|
+
* * **document**: a document message.
|
|
337
|
+
* * **interactive**: an interactive message.
|
|
338
|
+
* * **contacts**: a contact message.
|
|
339
|
+
* * **location**: a location message.
|
|
340
|
+
* * **sticker**: a sticker message.
|
|
341
|
+
* * **reaction**: a reaction message.
|
|
342
|
+
*
|
|
343
|
+
* **Valid values of MessageType when you set the ChannelType parameter to viber:**
|
|
344
|
+
*
|
|
345
|
+
* * **text**: a text message.
|
|
346
|
+
* * **image**: an image message.
|
|
347
|
+
* * **video**: a video message.
|
|
348
|
+
* * **document**: a document message.
|
|
349
|
+
* * **text_button**: a message that contains the text and button media objects.
|
|
350
|
+
* * **text_image_button**: a message that contains multiple media objects, including the text, image, and button.
|
|
351
|
+
* * **text_video**: a message that contains the text and video media objects.
|
|
352
|
+
* * **text_video_button**: a message that contains multiple media objects, including text, video, and button.
|
|
353
|
+
* * **text_image**: a message that contains the text and image media objects.
|
|
354
|
+
*
|
|
355
|
+
* > For more information, see [Parameters of a message template](https://help.aliyun.com/document_detail/454530.html).
|
|
356
|
+
*
|
|
242
357
|
* @example
|
|
243
|
-
*
|
|
358
|
+
* text
|
|
244
359
|
*/
|
|
245
360
|
messageType?: string;
|
|
246
361
|
ownerId?: number;
|
|
@@ -252,6 +367,10 @@ export class SendChatappMessageRequest extends $dara.Model {
|
|
|
252
367
|
* payloadtext1,payloadtext2,payloadtext3
|
|
253
368
|
*/
|
|
254
369
|
payload?: string[];
|
|
370
|
+
/**
|
|
371
|
+
* @remarks
|
|
372
|
+
* The information about the products included in the WhatsApp catalog message or multi-product message (MPM).
|
|
373
|
+
*/
|
|
255
374
|
productAction?: SendChatappMessageRequestProductAction;
|
|
256
375
|
/**
|
|
257
376
|
* @example
|
|
@@ -261,32 +380,50 @@ export class SendChatappMessageRequest extends $dara.Model {
|
|
|
261
380
|
resourceOwnerAccount?: string;
|
|
262
381
|
resourceOwnerId?: number;
|
|
263
382
|
/**
|
|
383
|
+
* @remarks
|
|
384
|
+
* The tag information of the Viber message.
|
|
385
|
+
*
|
|
264
386
|
* @example
|
|
265
|
-
*
|
|
387
|
+
* tag
|
|
266
388
|
*/
|
|
267
389
|
tag?: string;
|
|
268
390
|
/**
|
|
391
|
+
* @remarks
|
|
392
|
+
* The task ID.
|
|
393
|
+
*
|
|
269
394
|
* @example
|
|
270
|
-
*
|
|
395
|
+
* 100000001
|
|
271
396
|
*/
|
|
272
397
|
taskId?: string;
|
|
273
398
|
/**
|
|
399
|
+
* @remarks
|
|
400
|
+
* The code of the message template. This parameter is required only if you set the Type parameter to **template**.
|
|
401
|
+
*
|
|
274
402
|
* @example
|
|
275
|
-
*
|
|
403
|
+
* 744c4b5c79c9432497a075bdfca3****
|
|
276
404
|
*/
|
|
277
405
|
templateCode?: string;
|
|
278
406
|
/**
|
|
407
|
+
* @remarks
|
|
408
|
+
* The name of the message template.
|
|
409
|
+
*
|
|
279
410
|
* @example
|
|
280
|
-
*
|
|
411
|
+
* test_name
|
|
281
412
|
*/
|
|
282
413
|
templateName?: string;
|
|
414
|
+
/**
|
|
415
|
+
* @remarks
|
|
416
|
+
* The variables of the message template.
|
|
417
|
+
*/
|
|
283
418
|
templateParams?: { [key: string]: string };
|
|
284
419
|
/**
|
|
285
420
|
* @remarks
|
|
421
|
+
* The mobile phone number of the message receiver.
|
|
422
|
+
*
|
|
286
423
|
* This parameter is required.
|
|
287
424
|
*
|
|
288
425
|
* @example
|
|
289
|
-
*
|
|
426
|
+
* 1390000****
|
|
290
427
|
*/
|
|
291
428
|
to?: string;
|
|
292
429
|
/**
|
|
@@ -295,22 +432,38 @@ export class SendChatappMessageRequest extends $dara.Model {
|
|
|
295
432
|
*/
|
|
296
433
|
tokenType?: string;
|
|
297
434
|
/**
|
|
435
|
+
* @remarks
|
|
436
|
+
* The tracking data of the Viber message.
|
|
437
|
+
*
|
|
298
438
|
* @example
|
|
299
|
-
*
|
|
439
|
+
* tracking_id:123456
|
|
300
440
|
*/
|
|
301
441
|
trackingData?: string;
|
|
442
|
+
/**
|
|
443
|
+
* @remarks
|
|
444
|
+
* The timeout period for sending the Viber message. Valid values: 30 to 1209600. Unit: seconds.
|
|
445
|
+
*
|
|
446
|
+
* @example
|
|
447
|
+
* 50
|
|
448
|
+
*/
|
|
302
449
|
ttl?: number;
|
|
303
450
|
/**
|
|
304
451
|
* @remarks
|
|
452
|
+
* The message type. Valid values:
|
|
453
|
+
*
|
|
454
|
+
* * **template**: the template message. A template message is sent based on a template that is created and approved in the Chat App Message Service console. You can send template messages based on your business requirements.
|
|
455
|
+
* * **message**: the custom message. You can send a custom WhatsApp message to a user only within 24 hours after you receive the last message from the user. This limit does not apply to custom Viber messages.
|
|
456
|
+
*
|
|
305
457
|
* This parameter is required.
|
|
306
458
|
*
|
|
307
459
|
* @example
|
|
308
|
-
*
|
|
460
|
+
* template
|
|
309
461
|
*/
|
|
310
462
|
type?: string;
|
|
311
463
|
static names(): { [key: string]: string } {
|
|
312
464
|
return {
|
|
313
465
|
adAccountId: 'AdAccountId',
|
|
466
|
+
category: 'Category',
|
|
314
467
|
channelType: 'ChannelType',
|
|
315
468
|
content: 'Content',
|
|
316
469
|
contextMessageId: 'ContextMessageId',
|
|
@@ -349,6 +502,7 @@ export class SendChatappMessageRequest extends $dara.Model {
|
|
|
349
502
|
static types(): { [key: string]: any } {
|
|
350
503
|
return {
|
|
351
504
|
adAccountId: 'string',
|
|
505
|
+
category: 'string',
|
|
352
506
|
channelType: 'string',
|
|
353
507
|
content: 'string',
|
|
354
508
|
contextMessageId: 'string',
|
|
@@ -8,12 +8,23 @@ export class SendChatappMessageShrinkRequest extends $dara.Model {
|
|
|
8
8
|
* 示例值示例值
|
|
9
9
|
*/
|
|
10
10
|
adAccountId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* UTILITY
|
|
14
|
+
*/
|
|
15
|
+
category?: string;
|
|
11
16
|
/**
|
|
12
17
|
* @remarks
|
|
18
|
+
* The channel type. Valid values:
|
|
19
|
+
*
|
|
20
|
+
* * **whatsapp**
|
|
21
|
+
* * **viber**
|
|
22
|
+
* * **line** (under development)
|
|
23
|
+
*
|
|
13
24
|
* This parameter is required.
|
|
14
25
|
*
|
|
15
26
|
* @example
|
|
16
|
-
*
|
|
27
|
+
* whatsapp
|
|
17
28
|
*/
|
|
18
29
|
channelType?: string;
|
|
19
30
|
/**
|
|
@@ -49,62 +60,112 @@ export class SendChatappMessageShrinkRequest extends $dara.Model {
|
|
|
49
60
|
*/
|
|
50
61
|
content?: string;
|
|
51
62
|
/**
|
|
63
|
+
* @remarks
|
|
64
|
+
* The ID of the reply message.
|
|
65
|
+
*
|
|
52
66
|
* @example
|
|
53
|
-
*
|
|
67
|
+
* 61851ccb2f1365b16aee****
|
|
54
68
|
*/
|
|
55
69
|
contextMessageId?: string;
|
|
56
70
|
/**
|
|
71
|
+
* @remarks
|
|
72
|
+
* The space ID of the user.
|
|
73
|
+
*
|
|
57
74
|
* @example
|
|
58
|
-
*
|
|
75
|
+
* 28251486512358****
|
|
59
76
|
*/
|
|
60
77
|
custSpaceId?: string;
|
|
61
78
|
/**
|
|
79
|
+
* @remarks
|
|
80
|
+
* The WhatsApp Business Account (WABA) ID of the RAM user within the independent software vendor (ISV) account.
|
|
81
|
+
*
|
|
82
|
+
* > CustWabaId is an obsolete parameter. Use CustSpaceId instead.
|
|
83
|
+
*
|
|
62
84
|
* @example
|
|
63
|
-
*
|
|
85
|
+
* 65921621816****
|
|
64
86
|
*
|
|
65
87
|
* @deprecated
|
|
66
88
|
*/
|
|
67
89
|
custWabaId?: string;
|
|
68
90
|
/**
|
|
91
|
+
* @remarks
|
|
92
|
+
* The content of the fallback message.
|
|
93
|
+
*
|
|
69
94
|
* @example
|
|
70
|
-
*
|
|
95
|
+
* This is a fallback message.
|
|
71
96
|
*/
|
|
72
97
|
fallBackContent?: string;
|
|
98
|
+
/**
|
|
99
|
+
* @remarks
|
|
100
|
+
* Specifies the period of time after which the fallback message is sent if the message receipt that indicates the message is delivered to clients is not received. If this parameter is left empty, the fallback message is sent only when the **message fails to be sent** or **the message receipt that indicates the message is not delivered to clients** is received. Unit: seconds. Valid values: 60 to 43200.
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* 120
|
|
104
|
+
*/
|
|
73
105
|
fallBackDuration?: number;
|
|
74
106
|
/**
|
|
107
|
+
* @remarks
|
|
108
|
+
* The ID of the fallback policy. You can create a fallback policy and view the information in the Chat App Message Service console.
|
|
109
|
+
*
|
|
75
110
|
* @example
|
|
76
|
-
*
|
|
111
|
+
* S_000001
|
|
77
112
|
*/
|
|
78
113
|
fallBackId?: string;
|
|
79
114
|
/**
|
|
115
|
+
* @remarks
|
|
116
|
+
* The fallback rule. Valid values:
|
|
117
|
+
*
|
|
118
|
+
* * **undelivered**: A fallback is triggered if the message is not delivered to clients. When the message is being sent, the template parameters are verified. If the parameters fail to pass the verification, the message fails to be sent. Whether the template and phone number are prohibited is not verified. By default, this value is used when FallBackRule is left empty.
|
|
119
|
+
* * **sentFailed**: A fallback is triggered even if the template parameters including variables fail to pass the verification. If the channelType, type, messageType, to, and from parameters fail to pass the verification, a fallback is not triggered.
|
|
120
|
+
*
|
|
80
121
|
* @example
|
|
81
|
-
*
|
|
122
|
+
* undelivered
|
|
82
123
|
*/
|
|
83
124
|
fallBackRule?: string;
|
|
125
|
+
/**
|
|
126
|
+
* @remarks
|
|
127
|
+
* The Flow action.
|
|
128
|
+
*/
|
|
84
129
|
flowActionShrink?: string;
|
|
85
130
|
/**
|
|
86
131
|
* @remarks
|
|
132
|
+
* The mobile phone number of the message sender.
|
|
133
|
+
*
|
|
134
|
+
* > You can specify a mobile phone number that is registered for a WhatsApp account and is approved in the Chat App Message Service console.
|
|
135
|
+
*
|
|
87
136
|
* This parameter is required.
|
|
88
137
|
*
|
|
89
138
|
* @example
|
|
90
|
-
*
|
|
139
|
+
* 1360000****
|
|
91
140
|
*/
|
|
92
141
|
from?: string;
|
|
93
142
|
/**
|
|
143
|
+
* @remarks
|
|
144
|
+
* The ISV verification code. This parameter is used to verify whether the RAM user is authorized by the ISV account.
|
|
145
|
+
*
|
|
94
146
|
* @example
|
|
95
|
-
*
|
|
147
|
+
* skdi3kksloslikdkkdk
|
|
96
148
|
*
|
|
97
149
|
* @deprecated
|
|
98
150
|
*/
|
|
99
151
|
isvCode?: string;
|
|
100
152
|
/**
|
|
153
|
+
* @remarks
|
|
154
|
+
* The type of the Viber message. This parameter is required if ChannelType is set to viber. Valid values:
|
|
155
|
+
*
|
|
156
|
+
* * **promotion**
|
|
157
|
+
* * **transaction**
|
|
158
|
+
*
|
|
101
159
|
* @example
|
|
102
|
-
*
|
|
160
|
+
* promotion
|
|
103
161
|
*/
|
|
104
162
|
label?: string;
|
|
105
163
|
/**
|
|
164
|
+
* @remarks
|
|
165
|
+
* The language that is used in the message template. This parameter is required only if you set the Type parameter to **template**. For more information about language codes, see [Language codes](https://help.aliyun.com/document_detail/463420.html).
|
|
166
|
+
*
|
|
106
167
|
* @example
|
|
107
|
-
*
|
|
168
|
+
* en
|
|
108
169
|
*/
|
|
109
170
|
language?: string;
|
|
110
171
|
/**
|
|
@@ -113,8 +174,38 @@ export class SendChatappMessageShrinkRequest extends $dara.Model {
|
|
|
113
174
|
*/
|
|
114
175
|
messageCampaignId?: string;
|
|
115
176
|
/**
|
|
177
|
+
* @remarks
|
|
178
|
+
* The specific type of the message. This parameter is required only if you set the Type parameter to **message**.
|
|
179
|
+
*
|
|
180
|
+
* **Valid values of MessageType when you set the ChannelType parameter to whatsapp:**
|
|
181
|
+
*
|
|
182
|
+
* * **text**: a text message.
|
|
183
|
+
* * **image**: an image message.
|
|
184
|
+
* * **video**: a video message.
|
|
185
|
+
* * **audio**: an audio message.
|
|
186
|
+
* * **document**: a document message.
|
|
187
|
+
* * **interactive**: an interactive message.
|
|
188
|
+
* * **contacts**: a contact message.
|
|
189
|
+
* * **location**: a location message.
|
|
190
|
+
* * **sticker**: a sticker message.
|
|
191
|
+
* * **reaction**: a reaction message.
|
|
192
|
+
*
|
|
193
|
+
* **Valid values of MessageType when you set the ChannelType parameter to viber:**
|
|
194
|
+
*
|
|
195
|
+
* * **text**: a text message.
|
|
196
|
+
* * **image**: an image message.
|
|
197
|
+
* * **video**: a video message.
|
|
198
|
+
* * **document**: a document message.
|
|
199
|
+
* * **text_button**: a message that contains the text and button media objects.
|
|
200
|
+
* * **text_image_button**: a message that contains multiple media objects, including the text, image, and button.
|
|
201
|
+
* * **text_video**: a message that contains the text and video media objects.
|
|
202
|
+
* * **text_video_button**: a message that contains multiple media objects, including text, video, and button.
|
|
203
|
+
* * **text_image**: a message that contains the text and image media objects.
|
|
204
|
+
*
|
|
205
|
+
* > For more information, see [Parameters of a message template](https://help.aliyun.com/document_detail/454530.html).
|
|
206
|
+
*
|
|
116
207
|
* @example
|
|
117
|
-
*
|
|
208
|
+
* text
|
|
118
209
|
*/
|
|
119
210
|
messageType?: string;
|
|
120
211
|
ownerId?: number;
|
|
@@ -126,6 +217,10 @@ export class SendChatappMessageShrinkRequest extends $dara.Model {
|
|
|
126
217
|
* payloadtext1,payloadtext2,payloadtext3
|
|
127
218
|
*/
|
|
128
219
|
payloadShrink?: string;
|
|
220
|
+
/**
|
|
221
|
+
* @remarks
|
|
222
|
+
* The information about the products included in the WhatsApp catalog message or multi-product message (MPM).
|
|
223
|
+
*/
|
|
129
224
|
productActionShrink?: string;
|
|
130
225
|
/**
|
|
131
226
|
* @example
|
|
@@ -135,32 +230,50 @@ export class SendChatappMessageShrinkRequest extends $dara.Model {
|
|
|
135
230
|
resourceOwnerAccount?: string;
|
|
136
231
|
resourceOwnerId?: number;
|
|
137
232
|
/**
|
|
233
|
+
* @remarks
|
|
234
|
+
* The tag information of the Viber message.
|
|
235
|
+
*
|
|
138
236
|
* @example
|
|
139
|
-
*
|
|
237
|
+
* tag
|
|
140
238
|
*/
|
|
141
239
|
tag?: string;
|
|
142
240
|
/**
|
|
241
|
+
* @remarks
|
|
242
|
+
* The task ID.
|
|
243
|
+
*
|
|
143
244
|
* @example
|
|
144
|
-
*
|
|
245
|
+
* 100000001
|
|
145
246
|
*/
|
|
146
247
|
taskId?: string;
|
|
147
248
|
/**
|
|
249
|
+
* @remarks
|
|
250
|
+
* The code of the message template. This parameter is required only if you set the Type parameter to **template**.
|
|
251
|
+
*
|
|
148
252
|
* @example
|
|
149
|
-
*
|
|
253
|
+
* 744c4b5c79c9432497a075bdfca3****
|
|
150
254
|
*/
|
|
151
255
|
templateCode?: string;
|
|
152
256
|
/**
|
|
257
|
+
* @remarks
|
|
258
|
+
* The name of the message template.
|
|
259
|
+
*
|
|
153
260
|
* @example
|
|
154
|
-
*
|
|
261
|
+
* test_name
|
|
155
262
|
*/
|
|
156
263
|
templateName?: string;
|
|
264
|
+
/**
|
|
265
|
+
* @remarks
|
|
266
|
+
* The variables of the message template.
|
|
267
|
+
*/
|
|
157
268
|
templateParamsShrink?: string;
|
|
158
269
|
/**
|
|
159
270
|
* @remarks
|
|
271
|
+
* The mobile phone number of the message receiver.
|
|
272
|
+
*
|
|
160
273
|
* This parameter is required.
|
|
161
274
|
*
|
|
162
275
|
* @example
|
|
163
|
-
*
|
|
276
|
+
* 1390000****
|
|
164
277
|
*/
|
|
165
278
|
to?: string;
|
|
166
279
|
/**
|
|
@@ -169,22 +282,38 @@ export class SendChatappMessageShrinkRequest extends $dara.Model {
|
|
|
169
282
|
*/
|
|
170
283
|
tokenType?: string;
|
|
171
284
|
/**
|
|
285
|
+
* @remarks
|
|
286
|
+
* The tracking data of the Viber message.
|
|
287
|
+
*
|
|
172
288
|
* @example
|
|
173
|
-
*
|
|
289
|
+
* tracking_id:123456
|
|
174
290
|
*/
|
|
175
291
|
trackingData?: string;
|
|
292
|
+
/**
|
|
293
|
+
* @remarks
|
|
294
|
+
* The timeout period for sending the Viber message. Valid values: 30 to 1209600. Unit: seconds.
|
|
295
|
+
*
|
|
296
|
+
* @example
|
|
297
|
+
* 50
|
|
298
|
+
*/
|
|
176
299
|
ttl?: number;
|
|
177
300
|
/**
|
|
178
301
|
* @remarks
|
|
302
|
+
* The message type. Valid values:
|
|
303
|
+
*
|
|
304
|
+
* * **template**: the template message. A template message is sent based on a template that is created and approved in the Chat App Message Service console. You can send template messages based on your business requirements.
|
|
305
|
+
* * **message**: the custom message. You can send a custom WhatsApp message to a user only within 24 hours after you receive the last message from the user. This limit does not apply to custom Viber messages.
|
|
306
|
+
*
|
|
179
307
|
* This parameter is required.
|
|
180
308
|
*
|
|
181
309
|
* @example
|
|
182
|
-
*
|
|
310
|
+
* template
|
|
183
311
|
*/
|
|
184
312
|
type?: string;
|
|
185
313
|
static names(): { [key: string]: string } {
|
|
186
314
|
return {
|
|
187
315
|
adAccountId: 'AdAccountId',
|
|
316
|
+
category: 'Category',
|
|
188
317
|
channelType: 'ChannelType',
|
|
189
318
|
content: 'Content',
|
|
190
319
|
contextMessageId: 'ContextMessageId',
|
|
@@ -223,6 +352,7 @@ export class SendChatappMessageShrinkRequest extends $dara.Model {
|
|
|
223
352
|
static types(): { [key: string]: any } {
|
|
224
353
|
return {
|
|
225
354
|
adAccountId: 'string',
|
|
355
|
+
category: 'string',
|
|
226
356
|
channelType: 'string',
|
|
227
357
|
content: 'string',
|
|
228
358
|
contextMessageId: 'string',
|
|
@@ -4,24 +4,31 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class UpdateFlowJSONAssetRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* SpaceId/instance ID of ISV sub customer.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
|
-
*
|
|
11
|
+
* 9399393
|
|
9
12
|
*/
|
|
10
13
|
custSpaceId?: string;
|
|
11
14
|
/**
|
|
12
15
|
* @remarks
|
|
16
|
+
* JSON file generated according to Facebook flow rules.
|
|
17
|
+
*
|
|
13
18
|
* This parameter is required.
|
|
14
19
|
*
|
|
15
20
|
* @example
|
|
16
|
-
*
|
|
21
|
+
* https://aliyun/json.json
|
|
17
22
|
*/
|
|
18
23
|
filePath?: string;
|
|
19
24
|
/**
|
|
20
25
|
* @remarks
|
|
26
|
+
* The Flow ID.
|
|
27
|
+
*
|
|
21
28
|
* This parameter is required.
|
|
22
29
|
*
|
|
23
30
|
* @example
|
|
24
|
-
*
|
|
31
|
+
* flow_001
|
|
25
32
|
*/
|
|
26
33
|
flowId?: string;
|
|
27
34
|
ownerId?: number;
|