@alicloud/cams20200606 3.1.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js +67 -51
- package/dist/client.js.map +1 -1
- package/dist/models/SendChatappMassMessageRequest.d.ts +23 -134
- package/dist/models/SendChatappMassMessageRequest.js +6 -0
- package/dist/models/SendChatappMassMessageRequest.js.map +1 -1
- package/dist/models/SendChatappMassMessageShrinkRequest.d.ts +18 -84
- package/dist/models/SendChatappMassMessageShrinkRequest.js +6 -0
- package/dist/models/SendChatappMassMessageShrinkRequest.js.map +1 -1
- package/dist/models/SendChatappMessageRequest.d.ts +29 -171
- package/dist/models/SendChatappMessageRequest.js +6 -0
- package/dist/models/SendChatappMessageRequest.js.map +1 -1
- package/dist/models/SendChatappMessageResponseBody.d.ts +1 -0
- package/dist/models/SendChatappMessageResponseBody.js +2 -0
- package/dist/models/SendChatappMessageResponseBody.js.map +1 -1
- package/dist/models/SendChatappMessageShrinkRequest.d.ts +25 -143
- package/dist/models/SendChatappMessageShrinkRequest.js +6 -0
- package/dist/models/SendChatappMessageShrinkRequest.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +75 -53
- package/src/models/SendChatappMassMessageRequest.ts +29 -134
- package/src/models/SendChatappMassMessageShrinkRequest.ts +24 -84
- package/src/models/SendChatappMessageRequest.ts +35 -171
- package/src/models/SendChatappMessageResponseBody.ts +3 -0
- package/src/models/SendChatappMessageShrinkRequest.ts +31 -143
|
@@ -3,17 +3,10 @@ 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
|
-
*/
|
|
10
6
|
flowActionData?: { [key: string]: any };
|
|
11
7
|
/**
|
|
12
|
-
* @remarks
|
|
13
|
-
* The Flow token.
|
|
14
|
-
*
|
|
15
8
|
* @example
|
|
16
|
-
*
|
|
9
|
+
* 示例值示例值
|
|
17
10
|
*/
|
|
18
11
|
flowToken?: string;
|
|
19
12
|
static names(): { [key: string]: string } {
|
|
@@ -44,11 +37,8 @@ export class SendChatappMessageRequestFlowAction extends $dara.Model {
|
|
|
44
37
|
|
|
45
38
|
export class SendChatappMessageRequestProductActionSectionsProductItems extends $dara.Model {
|
|
46
39
|
/**
|
|
47
|
-
* @remarks
|
|
48
|
-
* The retailer ID of the product.
|
|
49
|
-
*
|
|
50
40
|
* @example
|
|
51
|
-
*
|
|
41
|
+
* 示例值示例值
|
|
52
42
|
*/
|
|
53
43
|
productRetailerId?: string;
|
|
54
44
|
static names(): { [key: string]: string } {
|
|
@@ -73,17 +63,10 @@ export class SendChatappMessageRequestProductActionSectionsProductItems extends
|
|
|
73
63
|
}
|
|
74
64
|
|
|
75
65
|
export class SendChatappMessageRequestProductActionSections extends $dara.Model {
|
|
76
|
-
/**
|
|
77
|
-
* @remarks
|
|
78
|
-
* The products.
|
|
79
|
-
*/
|
|
80
66
|
productItems?: SendChatappMessageRequestProductActionSectionsProductItems[];
|
|
81
67
|
/**
|
|
82
|
-
* @remarks
|
|
83
|
-
* The name of the category.
|
|
84
|
-
*
|
|
85
68
|
* @example
|
|
86
|
-
*
|
|
69
|
+
* 示例值
|
|
87
70
|
*/
|
|
88
71
|
title?: string;
|
|
89
72
|
static names(): { [key: string]: string } {
|
|
@@ -113,17 +96,10 @@ export class SendChatappMessageRequestProductActionSections extends $dara.Model
|
|
|
113
96
|
}
|
|
114
97
|
|
|
115
98
|
export class SendChatappMessageRequestProductAction extends $dara.Model {
|
|
116
|
-
/**
|
|
117
|
-
* @remarks
|
|
118
|
-
* The products. Up to 30 products and 10 categories can be added.
|
|
119
|
-
*/
|
|
120
99
|
sections?: SendChatappMessageRequestProductActionSections[];
|
|
121
100
|
/**
|
|
122
|
-
* @remarks
|
|
123
|
-
* The retailer ID of the product.
|
|
124
|
-
*
|
|
125
101
|
* @example
|
|
126
|
-
*
|
|
102
|
+
* 示例值示例值示例值
|
|
127
103
|
*/
|
|
128
104
|
thumbnailProductRetailerId?: string;
|
|
129
105
|
static names(): { [key: string]: string } {
|
|
@@ -155,16 +131,10 @@ export class SendChatappMessageRequestProductAction extends $dara.Model {
|
|
|
155
131
|
export class SendChatappMessageRequest extends $dara.Model {
|
|
156
132
|
/**
|
|
157
133
|
* @remarks
|
|
158
|
-
* The channel type. Valid values:
|
|
159
|
-
*
|
|
160
|
-
* * **whatsapp**
|
|
161
|
-
* * **viber**
|
|
162
|
-
* * **line** (under development)
|
|
163
|
-
*
|
|
164
134
|
* This parameter is required.
|
|
165
135
|
*
|
|
166
136
|
* @example
|
|
167
|
-
*
|
|
137
|
+
* 示例值示例值
|
|
168
138
|
*/
|
|
169
139
|
channelType?: string;
|
|
170
140
|
/**
|
|
@@ -200,147 +170,66 @@ export class SendChatappMessageRequest extends $dara.Model {
|
|
|
200
170
|
*/
|
|
201
171
|
content?: string;
|
|
202
172
|
/**
|
|
203
|
-
* @remarks
|
|
204
|
-
* The ID of the reply message.
|
|
205
|
-
*
|
|
206
173
|
* @example
|
|
207
|
-
*
|
|
174
|
+
* 示例值
|
|
208
175
|
*/
|
|
209
176
|
contextMessageId?: string;
|
|
210
177
|
/**
|
|
211
|
-
* @remarks
|
|
212
|
-
* The space ID of the user.
|
|
213
|
-
*
|
|
214
178
|
* @example
|
|
215
|
-
*
|
|
179
|
+
* 示例值示例值示例值
|
|
216
180
|
*/
|
|
217
181
|
custSpaceId?: string;
|
|
218
182
|
/**
|
|
219
|
-
* @remarks
|
|
220
|
-
* The WhatsApp Business Account (WABA) ID of the RAM user within the independent software vendor (ISV) account.
|
|
221
|
-
*
|
|
222
|
-
* > CustWabaId is an obsolete parameter. Use CustSpaceId instead.
|
|
223
|
-
*
|
|
224
183
|
* @example
|
|
225
|
-
*
|
|
226
|
-
*
|
|
227
|
-
* @deprecated
|
|
184
|
+
* 示例值示例值
|
|
228
185
|
*/
|
|
229
186
|
custWabaId?: string;
|
|
230
187
|
/**
|
|
231
|
-
* @remarks
|
|
232
|
-
* The content of the fallback message.
|
|
233
|
-
*
|
|
234
188
|
* @example
|
|
235
|
-
*
|
|
189
|
+
* 示例值
|
|
236
190
|
*/
|
|
237
191
|
fallBackContent?: string;
|
|
238
|
-
/**
|
|
239
|
-
* @remarks
|
|
240
|
-
* 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.
|
|
241
|
-
*
|
|
242
|
-
* @example
|
|
243
|
-
* 120
|
|
244
|
-
*/
|
|
245
192
|
fallBackDuration?: number;
|
|
246
193
|
/**
|
|
247
|
-
* @remarks
|
|
248
|
-
* The ID of the fallback policy. You can create a fallback policy and view the information in the Chat App Message Service console.
|
|
249
|
-
*
|
|
250
194
|
* @example
|
|
251
|
-
*
|
|
195
|
+
* 示例值示例值示例值
|
|
252
196
|
*/
|
|
253
197
|
fallBackId?: string;
|
|
254
198
|
/**
|
|
255
|
-
* @remarks
|
|
256
|
-
* The fallback rule. Valid values:
|
|
257
|
-
*
|
|
258
|
-
* * **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.
|
|
259
|
-
* * **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.
|
|
260
|
-
*
|
|
261
199
|
* @example
|
|
262
|
-
*
|
|
200
|
+
* 示例值示例值
|
|
263
201
|
*/
|
|
264
202
|
fallBackRule?: string;
|
|
265
|
-
/**
|
|
266
|
-
* @remarks
|
|
267
|
-
* The Flow action.
|
|
268
|
-
*/
|
|
269
203
|
flowAction?: SendChatappMessageRequestFlowAction;
|
|
270
204
|
/**
|
|
271
205
|
* @remarks
|
|
272
|
-
* The mobile phone number of the message sender.
|
|
273
|
-
*
|
|
274
|
-
* > You can specify a mobile phone number that is registered for a WhatsApp account and is approved in the Chat App Message Service console.
|
|
275
|
-
*
|
|
276
206
|
* This parameter is required.
|
|
277
207
|
*
|
|
278
208
|
* @example
|
|
279
|
-
*
|
|
209
|
+
* 示例值示例值
|
|
280
210
|
*/
|
|
281
211
|
from?: string;
|
|
282
212
|
/**
|
|
283
|
-
* @remarks
|
|
284
|
-
* The ISV verification code. This parameter is used to verify whether the RAM user is authorized by the ISV account.
|
|
285
|
-
*
|
|
286
213
|
* @example
|
|
287
|
-
*
|
|
214
|
+
* 示例值
|
|
288
215
|
*/
|
|
289
216
|
isvCode?: string;
|
|
290
217
|
/**
|
|
291
|
-
* @remarks
|
|
292
|
-
* The type of the Viber message. This parameter is required if ChannelType is set to viber. Valid values:
|
|
293
|
-
*
|
|
294
|
-
* * **promotion**
|
|
295
|
-
* * **transaction**
|
|
296
|
-
*
|
|
297
218
|
* @example
|
|
298
|
-
*
|
|
219
|
+
* 示例值
|
|
299
220
|
*/
|
|
300
221
|
label?: string;
|
|
301
222
|
/**
|
|
302
|
-
* @remarks
|
|
303
|
-
* 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).
|
|
304
|
-
*
|
|
305
223
|
* @example
|
|
306
|
-
*
|
|
224
|
+
* 示例值示例值示例值
|
|
307
225
|
*/
|
|
308
226
|
language?: string;
|
|
309
227
|
/**
|
|
310
|
-
* @remarks
|
|
311
|
-
* The specific type of the message. This parameter is required only if you set the Type parameter to **message**.
|
|
312
|
-
*
|
|
313
|
-
* **Valid values of MessageType when you set the ChannelType parameter to whatsapp:**
|
|
314
|
-
*
|
|
315
|
-
* * **text**: a text message.
|
|
316
|
-
* * **image**: an image message.
|
|
317
|
-
* * **video**: a video message.
|
|
318
|
-
* * **audio**: an audio message.
|
|
319
|
-
* * **document**: a document message.
|
|
320
|
-
* * **interactive**: an interactive message.
|
|
321
|
-
* * **contacts**: a contact message.
|
|
322
|
-
* * **location**: a location message.
|
|
323
|
-
* * **sticker**: a sticker message.
|
|
324
|
-
* * **reaction**: a reaction message.
|
|
325
|
-
*
|
|
326
|
-
* **Valid values of MessageType when you set the ChannelType parameter to viber:**
|
|
327
|
-
*
|
|
328
|
-
* * **text**: a text message.
|
|
329
|
-
* * **image**: an image message.
|
|
330
|
-
* * **video**: a video message.
|
|
331
|
-
* * **document**: a document message.
|
|
332
|
-
* * **text_button**: a message that contains the text and button media objects.
|
|
333
|
-
* * **text_image_button**: a message that contains multiple media objects, including the text, image, and button.
|
|
334
|
-
* * **text_video**: a message that contains the text and video media objects.
|
|
335
|
-
* * **text_video_button**: a message that contains multiple media objects, including text, video, and button.
|
|
336
|
-
* * **text_image**: a message that contains the text and image media objects.
|
|
337
|
-
*
|
|
338
|
-
* > For more information, see [Parameters of a message template](https://help.aliyun.com/document_detail/454530.html).
|
|
339
|
-
*
|
|
340
228
|
* @example
|
|
341
|
-
*
|
|
229
|
+
* 示例值
|
|
342
230
|
*/
|
|
343
231
|
messageType?: string;
|
|
232
|
+
ownerId?: number;
|
|
344
233
|
/**
|
|
345
234
|
* @remarks
|
|
346
235
|
* The payload of the button.
|
|
@@ -349,86 +238,55 @@ export class SendChatappMessageRequest extends $dara.Model {
|
|
|
349
238
|
* payloadtext1,payloadtext2,payloadtext3
|
|
350
239
|
*/
|
|
351
240
|
payload?: string[];
|
|
241
|
+
productAction?: SendChatappMessageRequestProductAction;
|
|
352
242
|
/**
|
|
353
|
-
* @
|
|
354
|
-
*
|
|
243
|
+
* @example
|
|
244
|
+
* individual
|
|
355
245
|
*/
|
|
356
|
-
productAction?: SendChatappMessageRequestProductAction;
|
|
357
246
|
recipientType?: string;
|
|
247
|
+
resourceOwnerAccount?: string;
|
|
248
|
+
resourceOwnerId?: number;
|
|
358
249
|
/**
|
|
359
|
-
* @remarks
|
|
360
|
-
* The tag information of the Viber message.
|
|
361
|
-
*
|
|
362
250
|
* @example
|
|
363
|
-
*
|
|
251
|
+
* 示例值示例值
|
|
364
252
|
*/
|
|
365
253
|
tag?: string;
|
|
366
254
|
/**
|
|
367
|
-
* @remarks
|
|
368
|
-
* The task ID.
|
|
369
|
-
*
|
|
370
255
|
* @example
|
|
371
|
-
*
|
|
256
|
+
* 示例值示例值
|
|
372
257
|
*/
|
|
373
258
|
taskId?: string;
|
|
374
259
|
/**
|
|
375
|
-
* @remarks
|
|
376
|
-
* The code of the message template. This parameter is required only if you set the Type parameter to **template**.
|
|
377
|
-
*
|
|
378
260
|
* @example
|
|
379
|
-
*
|
|
261
|
+
* 示例值示例值示例值
|
|
380
262
|
*/
|
|
381
263
|
templateCode?: string;
|
|
382
264
|
/**
|
|
383
|
-
* @remarks
|
|
384
|
-
* The name of the message template.
|
|
385
|
-
*
|
|
386
265
|
* @example
|
|
387
|
-
*
|
|
266
|
+
* 示例值示例值示例值
|
|
388
267
|
*/
|
|
389
268
|
templateName?: string;
|
|
390
|
-
/**
|
|
391
|
-
* @remarks
|
|
392
|
-
* The variables of the message template.
|
|
393
|
-
*/
|
|
394
269
|
templateParams?: { [key: string]: string };
|
|
395
270
|
/**
|
|
396
271
|
* @remarks
|
|
397
|
-
* The mobile phone number of the message receiver.
|
|
398
|
-
*
|
|
399
272
|
* This parameter is required.
|
|
400
273
|
*
|
|
401
274
|
* @example
|
|
402
|
-
*
|
|
275
|
+
* 示例值示例值示例值
|
|
403
276
|
*/
|
|
404
277
|
to?: string;
|
|
405
278
|
/**
|
|
406
|
-
* @remarks
|
|
407
|
-
* The tracking data of the Viber message.
|
|
408
|
-
*
|
|
409
279
|
* @example
|
|
410
|
-
*
|
|
280
|
+
* 示例值示例值
|
|
411
281
|
*/
|
|
412
282
|
trackingData?: string;
|
|
413
|
-
/**
|
|
414
|
-
* @remarks
|
|
415
|
-
* The timeout period for sending the Viber message. Valid values: 30 to 1209600. Unit: seconds.
|
|
416
|
-
*
|
|
417
|
-
* @example
|
|
418
|
-
* 50
|
|
419
|
-
*/
|
|
420
283
|
ttl?: number;
|
|
421
284
|
/**
|
|
422
285
|
* @remarks
|
|
423
|
-
* The message type. Valid values:
|
|
424
|
-
*
|
|
425
|
-
* * **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.
|
|
426
|
-
* * **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.
|
|
427
|
-
*
|
|
428
286
|
* This parameter is required.
|
|
429
287
|
*
|
|
430
288
|
* @example
|
|
431
|
-
*
|
|
289
|
+
* 示例值
|
|
432
290
|
*/
|
|
433
291
|
type?: string;
|
|
434
292
|
static names(): { [key: string]: string } {
|
|
@@ -448,9 +306,12 @@ export class SendChatappMessageRequest extends $dara.Model {
|
|
|
448
306
|
label: 'Label',
|
|
449
307
|
language: 'Language',
|
|
450
308
|
messageType: 'MessageType',
|
|
309
|
+
ownerId: 'OwnerId',
|
|
451
310
|
payload: 'Payload',
|
|
452
311
|
productAction: 'ProductAction',
|
|
453
312
|
recipientType: 'RecipientType',
|
|
313
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
314
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
454
315
|
tag: 'Tag',
|
|
455
316
|
taskId: 'TaskId',
|
|
456
317
|
templateCode: 'TemplateCode',
|
|
@@ -480,9 +341,12 @@ export class SendChatappMessageRequest extends $dara.Model {
|
|
|
480
341
|
label: 'string',
|
|
481
342
|
language: 'string',
|
|
482
343
|
messageType: 'string',
|
|
344
|
+
ownerId: 'number',
|
|
483
345
|
payload: { 'type': 'array', 'itemType': 'string' },
|
|
484
346
|
productAction: SendChatappMessageRequestProductAction,
|
|
485
347
|
recipientType: 'string',
|
|
348
|
+
resourceOwnerAccount: 'string',
|
|
349
|
+
resourceOwnerId: 'number',
|
|
486
350
|
tag: 'string',
|
|
487
351
|
taskId: 'string',
|
|
488
352
|
templateCode: 'string',
|
|
@@ -3,6 +3,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class SendChatappMessageResponseBody extends $dara.Model {
|
|
6
|
+
accessDeniedDetail?: string;
|
|
6
7
|
/**
|
|
7
8
|
* @remarks
|
|
8
9
|
* The HTTP status code returned.
|
|
@@ -40,6 +41,7 @@ export class SendChatappMessageResponseBody extends $dara.Model {
|
|
|
40
41
|
requestId?: string;
|
|
41
42
|
static names(): { [key: string]: string } {
|
|
42
43
|
return {
|
|
44
|
+
accessDeniedDetail: 'AccessDeniedDetail',
|
|
43
45
|
code: 'Code',
|
|
44
46
|
message: 'Message',
|
|
45
47
|
messageId: 'MessageId',
|
|
@@ -49,6 +51,7 @@ export class SendChatappMessageResponseBody extends $dara.Model {
|
|
|
49
51
|
|
|
50
52
|
static types(): { [key: string]: any } {
|
|
51
53
|
return {
|
|
54
|
+
accessDeniedDetail: 'string',
|
|
52
55
|
code: 'string',
|
|
53
56
|
message: 'string',
|
|
54
57
|
messageId: 'string',
|
|
@@ -5,16 +5,10 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class SendChatappMessageShrinkRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The channel type. Valid values:
|
|
9
|
-
*
|
|
10
|
-
* * **whatsapp**
|
|
11
|
-
* * **viber**
|
|
12
|
-
* * **line** (under development)
|
|
13
|
-
*
|
|
14
8
|
* This parameter is required.
|
|
15
9
|
*
|
|
16
10
|
* @example
|
|
17
|
-
*
|
|
11
|
+
* 示例值示例值
|
|
18
12
|
*/
|
|
19
13
|
channelType?: string;
|
|
20
14
|
/**
|
|
@@ -50,147 +44,66 @@ export class SendChatappMessageShrinkRequest extends $dara.Model {
|
|
|
50
44
|
*/
|
|
51
45
|
content?: string;
|
|
52
46
|
/**
|
|
53
|
-
* @remarks
|
|
54
|
-
* The ID of the reply message.
|
|
55
|
-
*
|
|
56
47
|
* @example
|
|
57
|
-
*
|
|
48
|
+
* 示例值
|
|
58
49
|
*/
|
|
59
50
|
contextMessageId?: string;
|
|
60
51
|
/**
|
|
61
|
-
* @remarks
|
|
62
|
-
* The space ID of the user.
|
|
63
|
-
*
|
|
64
52
|
* @example
|
|
65
|
-
*
|
|
53
|
+
* 示例值示例值示例值
|
|
66
54
|
*/
|
|
67
55
|
custSpaceId?: string;
|
|
68
56
|
/**
|
|
69
|
-
* @remarks
|
|
70
|
-
* The WhatsApp Business Account (WABA) ID of the RAM user within the independent software vendor (ISV) account.
|
|
71
|
-
*
|
|
72
|
-
* > CustWabaId is an obsolete parameter. Use CustSpaceId instead.
|
|
73
|
-
*
|
|
74
57
|
* @example
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
* @deprecated
|
|
58
|
+
* 示例值示例值
|
|
78
59
|
*/
|
|
79
60
|
custWabaId?: string;
|
|
80
61
|
/**
|
|
81
|
-
* @remarks
|
|
82
|
-
* The content of the fallback message.
|
|
83
|
-
*
|
|
84
62
|
* @example
|
|
85
|
-
*
|
|
63
|
+
* 示例值
|
|
86
64
|
*/
|
|
87
65
|
fallBackContent?: string;
|
|
88
|
-
/**
|
|
89
|
-
* @remarks
|
|
90
|
-
* 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.
|
|
91
|
-
*
|
|
92
|
-
* @example
|
|
93
|
-
* 120
|
|
94
|
-
*/
|
|
95
66
|
fallBackDuration?: number;
|
|
96
67
|
/**
|
|
97
|
-
* @remarks
|
|
98
|
-
* The ID of the fallback policy. You can create a fallback policy and view the information in the Chat App Message Service console.
|
|
99
|
-
*
|
|
100
68
|
* @example
|
|
101
|
-
*
|
|
69
|
+
* 示例值示例值示例值
|
|
102
70
|
*/
|
|
103
71
|
fallBackId?: string;
|
|
104
72
|
/**
|
|
105
|
-
* @remarks
|
|
106
|
-
* The fallback rule. Valid values:
|
|
107
|
-
*
|
|
108
|
-
* * **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.
|
|
109
|
-
* * **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.
|
|
110
|
-
*
|
|
111
73
|
* @example
|
|
112
|
-
*
|
|
74
|
+
* 示例值示例值
|
|
113
75
|
*/
|
|
114
76
|
fallBackRule?: string;
|
|
115
|
-
/**
|
|
116
|
-
* @remarks
|
|
117
|
-
* The Flow action.
|
|
118
|
-
*/
|
|
119
77
|
flowActionShrink?: string;
|
|
120
78
|
/**
|
|
121
79
|
* @remarks
|
|
122
|
-
* The mobile phone number of the message sender.
|
|
123
|
-
*
|
|
124
|
-
* > You can specify a mobile phone number that is registered for a WhatsApp account and is approved in the Chat App Message Service console.
|
|
125
|
-
*
|
|
126
80
|
* This parameter is required.
|
|
127
81
|
*
|
|
128
82
|
* @example
|
|
129
|
-
*
|
|
83
|
+
* 示例值示例值
|
|
130
84
|
*/
|
|
131
85
|
from?: string;
|
|
132
86
|
/**
|
|
133
|
-
* @remarks
|
|
134
|
-
* The ISV verification code. This parameter is used to verify whether the RAM user is authorized by the ISV account.
|
|
135
|
-
*
|
|
136
87
|
* @example
|
|
137
|
-
*
|
|
88
|
+
* 示例值
|
|
138
89
|
*/
|
|
139
90
|
isvCode?: string;
|
|
140
91
|
/**
|
|
141
|
-
* @remarks
|
|
142
|
-
* The type of the Viber message. This parameter is required if ChannelType is set to viber. Valid values:
|
|
143
|
-
*
|
|
144
|
-
* * **promotion**
|
|
145
|
-
* * **transaction**
|
|
146
|
-
*
|
|
147
92
|
* @example
|
|
148
|
-
*
|
|
93
|
+
* 示例值
|
|
149
94
|
*/
|
|
150
95
|
label?: string;
|
|
151
96
|
/**
|
|
152
|
-
* @remarks
|
|
153
|
-
* 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).
|
|
154
|
-
*
|
|
155
97
|
* @example
|
|
156
|
-
*
|
|
98
|
+
* 示例值示例值示例值
|
|
157
99
|
*/
|
|
158
100
|
language?: string;
|
|
159
101
|
/**
|
|
160
|
-
* @remarks
|
|
161
|
-
* The specific type of the message. This parameter is required only if you set the Type parameter to **message**.
|
|
162
|
-
*
|
|
163
|
-
* **Valid values of MessageType when you set the ChannelType parameter to whatsapp:**
|
|
164
|
-
*
|
|
165
|
-
* * **text**: a text message.
|
|
166
|
-
* * **image**: an image message.
|
|
167
|
-
* * **video**: a video message.
|
|
168
|
-
* * **audio**: an audio message.
|
|
169
|
-
* * **document**: a document message.
|
|
170
|
-
* * **interactive**: an interactive message.
|
|
171
|
-
* * **contacts**: a contact message.
|
|
172
|
-
* * **location**: a location message.
|
|
173
|
-
* * **sticker**: a sticker message.
|
|
174
|
-
* * **reaction**: a reaction message.
|
|
175
|
-
*
|
|
176
|
-
* **Valid values of MessageType when you set the ChannelType parameter to viber:**
|
|
177
|
-
*
|
|
178
|
-
* * **text**: a text message.
|
|
179
|
-
* * **image**: an image message.
|
|
180
|
-
* * **video**: a video message.
|
|
181
|
-
* * **document**: a document message.
|
|
182
|
-
* * **text_button**: a message that contains the text and button media objects.
|
|
183
|
-
* * **text_image_button**: a message that contains multiple media objects, including the text, image, and button.
|
|
184
|
-
* * **text_video**: a message that contains the text and video media objects.
|
|
185
|
-
* * **text_video_button**: a message that contains multiple media objects, including text, video, and button.
|
|
186
|
-
* * **text_image**: a message that contains the text and image media objects.
|
|
187
|
-
*
|
|
188
|
-
* > For more information, see [Parameters of a message template](https://help.aliyun.com/document_detail/454530.html).
|
|
189
|
-
*
|
|
190
102
|
* @example
|
|
191
|
-
*
|
|
103
|
+
* 示例值
|
|
192
104
|
*/
|
|
193
105
|
messageType?: string;
|
|
106
|
+
ownerId?: number;
|
|
194
107
|
/**
|
|
195
108
|
* @remarks
|
|
196
109
|
* The payload of the button.
|
|
@@ -199,86 +112,55 @@ export class SendChatappMessageShrinkRequest extends $dara.Model {
|
|
|
199
112
|
* payloadtext1,payloadtext2,payloadtext3
|
|
200
113
|
*/
|
|
201
114
|
payloadShrink?: string;
|
|
115
|
+
productActionShrink?: string;
|
|
202
116
|
/**
|
|
203
|
-
* @
|
|
204
|
-
*
|
|
117
|
+
* @example
|
|
118
|
+
* individual
|
|
205
119
|
*/
|
|
206
|
-
productActionShrink?: string;
|
|
207
120
|
recipientType?: string;
|
|
121
|
+
resourceOwnerAccount?: string;
|
|
122
|
+
resourceOwnerId?: number;
|
|
208
123
|
/**
|
|
209
|
-
* @remarks
|
|
210
|
-
* The tag information of the Viber message.
|
|
211
|
-
*
|
|
212
124
|
* @example
|
|
213
|
-
*
|
|
125
|
+
* 示例值示例值
|
|
214
126
|
*/
|
|
215
127
|
tag?: string;
|
|
216
128
|
/**
|
|
217
|
-
* @remarks
|
|
218
|
-
* The task ID.
|
|
219
|
-
*
|
|
220
129
|
* @example
|
|
221
|
-
*
|
|
130
|
+
* 示例值示例值
|
|
222
131
|
*/
|
|
223
132
|
taskId?: string;
|
|
224
133
|
/**
|
|
225
|
-
* @remarks
|
|
226
|
-
* The code of the message template. This parameter is required only if you set the Type parameter to **template**.
|
|
227
|
-
*
|
|
228
134
|
* @example
|
|
229
|
-
*
|
|
135
|
+
* 示例值示例值示例值
|
|
230
136
|
*/
|
|
231
137
|
templateCode?: string;
|
|
232
138
|
/**
|
|
233
|
-
* @remarks
|
|
234
|
-
* The name of the message template.
|
|
235
|
-
*
|
|
236
139
|
* @example
|
|
237
|
-
*
|
|
140
|
+
* 示例值示例值示例值
|
|
238
141
|
*/
|
|
239
142
|
templateName?: string;
|
|
240
|
-
/**
|
|
241
|
-
* @remarks
|
|
242
|
-
* The variables of the message template.
|
|
243
|
-
*/
|
|
244
143
|
templateParamsShrink?: string;
|
|
245
144
|
/**
|
|
246
145
|
* @remarks
|
|
247
|
-
* The mobile phone number of the message receiver.
|
|
248
|
-
*
|
|
249
146
|
* This parameter is required.
|
|
250
147
|
*
|
|
251
148
|
* @example
|
|
252
|
-
*
|
|
149
|
+
* 示例值示例值示例值
|
|
253
150
|
*/
|
|
254
151
|
to?: string;
|
|
255
152
|
/**
|
|
256
|
-
* @remarks
|
|
257
|
-
* The tracking data of the Viber message.
|
|
258
|
-
*
|
|
259
153
|
* @example
|
|
260
|
-
*
|
|
154
|
+
* 示例值示例值
|
|
261
155
|
*/
|
|
262
156
|
trackingData?: string;
|
|
263
|
-
/**
|
|
264
|
-
* @remarks
|
|
265
|
-
* The timeout period for sending the Viber message. Valid values: 30 to 1209600. Unit: seconds.
|
|
266
|
-
*
|
|
267
|
-
* @example
|
|
268
|
-
* 50
|
|
269
|
-
*/
|
|
270
157
|
ttl?: number;
|
|
271
158
|
/**
|
|
272
159
|
* @remarks
|
|
273
|
-
* The message type. Valid values:
|
|
274
|
-
*
|
|
275
|
-
* * **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.
|
|
276
|
-
* * **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.
|
|
277
|
-
*
|
|
278
160
|
* This parameter is required.
|
|
279
161
|
*
|
|
280
162
|
* @example
|
|
281
|
-
*
|
|
163
|
+
* 示例值
|
|
282
164
|
*/
|
|
283
165
|
type?: string;
|
|
284
166
|
static names(): { [key: string]: string } {
|
|
@@ -298,9 +180,12 @@ export class SendChatappMessageShrinkRequest extends $dara.Model {
|
|
|
298
180
|
label: 'Label',
|
|
299
181
|
language: 'Language',
|
|
300
182
|
messageType: 'MessageType',
|
|
183
|
+
ownerId: 'OwnerId',
|
|
301
184
|
payloadShrink: 'Payload',
|
|
302
185
|
productActionShrink: 'ProductAction',
|
|
303
186
|
recipientType: 'RecipientType',
|
|
187
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
188
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
304
189
|
tag: 'Tag',
|
|
305
190
|
taskId: 'TaskId',
|
|
306
191
|
templateCode: 'TemplateCode',
|
|
@@ -330,9 +215,12 @@ export class SendChatappMessageShrinkRequest extends $dara.Model {
|
|
|
330
215
|
label: 'string',
|
|
331
216
|
language: 'string',
|
|
332
217
|
messageType: 'string',
|
|
218
|
+
ownerId: 'number',
|
|
333
219
|
payloadShrink: 'string',
|
|
334
220
|
productActionShrink: 'string',
|
|
335
221
|
recipientType: 'string',
|
|
222
|
+
resourceOwnerAccount: 'string',
|
|
223
|
+
resourceOwnerId: 'number',
|
|
336
224
|
tag: 'string',
|
|
337
225
|
taskId: 'string',
|
|
338
226
|
templateCode: 'string',
|