@alicloud/cams20200606 1.0.6 → 1.0.9
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 +25 -136
- package/dist/client.js +74 -311
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +107 -394
package/src/client.ts
CHANGED
|
@@ -11,11 +11,13 @@ import * as $tea from '@alicloud/tea-typescript';
|
|
|
11
11
|
export class CheckChatappContactsRequest extends $tea.Model {
|
|
12
12
|
channelType?: string;
|
|
13
13
|
contacts?: string[];
|
|
14
|
+
custWabaId?: string;
|
|
14
15
|
from?: string;
|
|
15
16
|
static names(): { [key: string]: string } {
|
|
16
17
|
return {
|
|
17
18
|
channelType: 'ChannelType',
|
|
18
19
|
contacts: 'Contacts',
|
|
20
|
+
custWabaId: 'CustWabaId',
|
|
19
21
|
from: 'From',
|
|
20
22
|
};
|
|
21
23
|
}
|
|
@@ -24,6 +26,7 @@ export class CheckChatappContactsRequest extends $tea.Model {
|
|
|
24
26
|
return {
|
|
25
27
|
channelType: 'string',
|
|
26
28
|
contacts: { 'type': 'array', 'itemType': 'string' },
|
|
29
|
+
custWabaId: 'string',
|
|
27
30
|
from: 'string',
|
|
28
31
|
};
|
|
29
32
|
}
|
|
@@ -36,11 +39,13 @@ export class CheckChatappContactsRequest extends $tea.Model {
|
|
|
36
39
|
export class CheckChatappContactsShrinkRequest extends $tea.Model {
|
|
37
40
|
channelType?: string;
|
|
38
41
|
contactsShrink?: string;
|
|
42
|
+
custWabaId?: string;
|
|
39
43
|
from?: string;
|
|
40
44
|
static names(): { [key: string]: string } {
|
|
41
45
|
return {
|
|
42
46
|
channelType: 'ChannelType',
|
|
43
47
|
contactsShrink: 'Contacts',
|
|
48
|
+
custWabaId: 'CustWabaId',
|
|
44
49
|
from: 'From',
|
|
45
50
|
};
|
|
46
51
|
}
|
|
@@ -49,6 +54,7 @@ export class CheckChatappContactsShrinkRequest extends $tea.Model {
|
|
|
49
54
|
return {
|
|
50
55
|
channelType: 'string',
|
|
51
56
|
contactsShrink: 'string',
|
|
57
|
+
custWabaId: 'string',
|
|
52
58
|
from: 'string',
|
|
53
59
|
};
|
|
54
60
|
}
|
|
@@ -88,10 +94,12 @@ export class CheckChatappContactsResponseBody extends $tea.Model {
|
|
|
88
94
|
|
|
89
95
|
export class CheckChatappContactsResponse extends $tea.Model {
|
|
90
96
|
headers: { [key: string]: string };
|
|
97
|
+
statusCode: number;
|
|
91
98
|
body: CheckChatappContactsResponseBody;
|
|
92
99
|
static names(): { [key: string]: string } {
|
|
93
100
|
return {
|
|
94
101
|
headers: 'headers',
|
|
102
|
+
statusCode: 'statusCode',
|
|
95
103
|
body: 'body',
|
|
96
104
|
};
|
|
97
105
|
}
|
|
@@ -99,6 +107,7 @@ export class CheckChatappContactsResponse extends $tea.Model {
|
|
|
99
107
|
static types(): { [key: string]: any } {
|
|
100
108
|
return {
|
|
101
109
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
110
|
+
statusCode: 'number',
|
|
102
111
|
body: CheckChatappContactsResponseBody,
|
|
103
112
|
};
|
|
104
113
|
}
|
|
@@ -108,93 +117,10 @@ export class CheckChatappContactsResponse extends $tea.Model {
|
|
|
108
117
|
}
|
|
109
118
|
}
|
|
110
119
|
|
|
111
|
-
export class CheckContactsRequest extends $tea.Model {
|
|
112
|
-
channelType?: string;
|
|
113
|
-
contacts?: string;
|
|
114
|
-
from?: string;
|
|
115
|
-
ownerId?: number;
|
|
116
|
-
resourceOwnerAccount?: string;
|
|
117
|
-
resourceOwnerId?: number;
|
|
118
|
-
static names(): { [key: string]: string } {
|
|
119
|
-
return {
|
|
120
|
-
channelType: 'ChannelType',
|
|
121
|
-
contacts: 'Contacts',
|
|
122
|
-
from: 'From',
|
|
123
|
-
ownerId: 'OwnerId',
|
|
124
|
-
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
125
|
-
resourceOwnerId: 'ResourceOwnerId',
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
static types(): { [key: string]: any } {
|
|
130
|
-
return {
|
|
131
|
-
channelType: 'string',
|
|
132
|
-
contacts: 'string',
|
|
133
|
-
from: 'string',
|
|
134
|
-
ownerId: 'number',
|
|
135
|
-
resourceOwnerAccount: 'string',
|
|
136
|
-
resourceOwnerId: 'number',
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
constructor(map?: { [key: string]: any }) {
|
|
141
|
-
super(map);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
export class CheckContactsResponseBody extends $tea.Model {
|
|
146
|
-
contacts?: CheckContactsResponseBodyContacts[];
|
|
147
|
-
requestId?: string;
|
|
148
|
-
resultCode?: string;
|
|
149
|
-
resultMessage?: string;
|
|
150
|
-
static names(): { [key: string]: string } {
|
|
151
|
-
return {
|
|
152
|
-
contacts: 'Contacts',
|
|
153
|
-
requestId: 'RequestId',
|
|
154
|
-
resultCode: 'ResultCode',
|
|
155
|
-
resultMessage: 'ResultMessage',
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
static types(): { [key: string]: any } {
|
|
160
|
-
return {
|
|
161
|
-
contacts: { 'type': 'array', 'itemType': CheckContactsResponseBodyContacts },
|
|
162
|
-
requestId: 'string',
|
|
163
|
-
resultCode: 'string',
|
|
164
|
-
resultMessage: 'string',
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
constructor(map?: { [key: string]: any }) {
|
|
169
|
-
super(map);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
export class CheckContactsResponse extends $tea.Model {
|
|
174
|
-
headers: { [key: string]: string };
|
|
175
|
-
body: CheckContactsResponseBody;
|
|
176
|
-
static names(): { [key: string]: string } {
|
|
177
|
-
return {
|
|
178
|
-
headers: 'headers',
|
|
179
|
-
body: 'body',
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
static types(): { [key: string]: any } {
|
|
184
|
-
return {
|
|
185
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
186
|
-
body: CheckContactsResponseBody,
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
constructor(map?: { [key: string]: any }) {
|
|
191
|
-
super(map);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
120
|
export class CreateChatappTemplateRequest extends $tea.Model {
|
|
196
121
|
category?: string;
|
|
197
122
|
components?: CreateChatappTemplateRequestComponents[];
|
|
123
|
+
custWabaId?: string;
|
|
198
124
|
example?: { [key: string]: string };
|
|
199
125
|
language?: string;
|
|
200
126
|
name?: string;
|
|
@@ -203,6 +129,7 @@ export class CreateChatappTemplateRequest extends $tea.Model {
|
|
|
203
129
|
return {
|
|
204
130
|
category: 'Category',
|
|
205
131
|
components: 'Components',
|
|
132
|
+
custWabaId: 'CustWabaId',
|
|
206
133
|
example: 'Example',
|
|
207
134
|
language: 'Language',
|
|
208
135
|
name: 'Name',
|
|
@@ -214,6 +141,7 @@ export class CreateChatappTemplateRequest extends $tea.Model {
|
|
|
214
141
|
return {
|
|
215
142
|
category: 'string',
|
|
216
143
|
components: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponents },
|
|
144
|
+
custWabaId: 'string',
|
|
217
145
|
example: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
218
146
|
language: 'string',
|
|
219
147
|
name: 'string',
|
|
@@ -229,6 +157,7 @@ export class CreateChatappTemplateRequest extends $tea.Model {
|
|
|
229
157
|
export class CreateChatappTemplateShrinkRequest extends $tea.Model {
|
|
230
158
|
category?: string;
|
|
231
159
|
componentsShrink?: string;
|
|
160
|
+
custWabaId?: string;
|
|
232
161
|
exampleShrink?: string;
|
|
233
162
|
language?: string;
|
|
234
163
|
name?: string;
|
|
@@ -237,6 +166,7 @@ export class CreateChatappTemplateShrinkRequest extends $tea.Model {
|
|
|
237
166
|
return {
|
|
238
167
|
category: 'Category',
|
|
239
168
|
componentsShrink: 'Components',
|
|
169
|
+
custWabaId: 'CustWabaId',
|
|
240
170
|
exampleShrink: 'Example',
|
|
241
171
|
language: 'Language',
|
|
242
172
|
name: 'Name',
|
|
@@ -248,6 +178,7 @@ export class CreateChatappTemplateShrinkRequest extends $tea.Model {
|
|
|
248
178
|
return {
|
|
249
179
|
category: 'string',
|
|
250
180
|
componentsShrink: 'string',
|
|
181
|
+
custWabaId: 'string',
|
|
251
182
|
exampleShrink: 'string',
|
|
252
183
|
language: 'string',
|
|
253
184
|
name: 'string',
|
|
@@ -290,10 +221,12 @@ export class CreateChatappTemplateResponseBody extends $tea.Model {
|
|
|
290
221
|
|
|
291
222
|
export class CreateChatappTemplateResponse extends $tea.Model {
|
|
292
223
|
headers: { [key: string]: string };
|
|
224
|
+
statusCode: number;
|
|
293
225
|
body: CreateChatappTemplateResponseBody;
|
|
294
226
|
static names(): { [key: string]: string } {
|
|
295
227
|
return {
|
|
296
228
|
headers: 'headers',
|
|
229
|
+
statusCode: 'statusCode',
|
|
297
230
|
body: 'body',
|
|
298
231
|
};
|
|
299
232
|
}
|
|
@@ -301,6 +234,7 @@ export class CreateChatappTemplateResponse extends $tea.Model {
|
|
|
301
234
|
static types(): { [key: string]: any } {
|
|
302
235
|
return {
|
|
303
236
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
237
|
+
statusCode: 'number',
|
|
304
238
|
body: CreateChatappTemplateResponseBody,
|
|
305
239
|
};
|
|
306
240
|
}
|
|
@@ -311,15 +245,18 @@ export class CreateChatappTemplateResponse extends $tea.Model {
|
|
|
311
245
|
}
|
|
312
246
|
|
|
313
247
|
export class DeleteChatappTemplateRequest extends $tea.Model {
|
|
248
|
+
custWabaId?: string;
|
|
314
249
|
templateCode?: string;
|
|
315
250
|
static names(): { [key: string]: string } {
|
|
316
251
|
return {
|
|
252
|
+
custWabaId: 'CustWabaId',
|
|
317
253
|
templateCode: 'TemplateCode',
|
|
318
254
|
};
|
|
319
255
|
}
|
|
320
256
|
|
|
321
257
|
static types(): { [key: string]: any } {
|
|
322
258
|
return {
|
|
259
|
+
custWabaId: 'string',
|
|
323
260
|
templateCode: 'string',
|
|
324
261
|
};
|
|
325
262
|
}
|
|
@@ -356,10 +293,12 @@ export class DeleteChatappTemplateResponseBody extends $tea.Model {
|
|
|
356
293
|
|
|
357
294
|
export class DeleteChatappTemplateResponse extends $tea.Model {
|
|
358
295
|
headers: { [key: string]: string };
|
|
296
|
+
statusCode: number;
|
|
359
297
|
body: DeleteChatappTemplateResponseBody;
|
|
360
298
|
static names(): { [key: string]: string } {
|
|
361
299
|
return {
|
|
362
300
|
headers: 'headers',
|
|
301
|
+
statusCode: 'statusCode',
|
|
363
302
|
body: 'body',
|
|
364
303
|
};
|
|
365
304
|
}
|
|
@@ -367,6 +306,7 @@ export class DeleteChatappTemplateResponse extends $tea.Model {
|
|
|
367
306
|
static types(): { [key: string]: any } {
|
|
368
307
|
return {
|
|
369
308
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
309
|
+
statusCode: 'number',
|
|
370
310
|
body: DeleteChatappTemplateResponseBody,
|
|
371
311
|
};
|
|
372
312
|
}
|
|
@@ -377,21 +317,21 @@ export class DeleteChatappTemplateResponse extends $tea.Model {
|
|
|
377
317
|
}
|
|
378
318
|
|
|
379
319
|
export class GetChatappTemplateDetailRequest extends $tea.Model {
|
|
320
|
+
custWabaId?: string;
|
|
380
321
|
language?: string;
|
|
381
|
-
ownerId?: number;
|
|
382
322
|
templateCode?: string;
|
|
383
323
|
static names(): { [key: string]: string } {
|
|
384
324
|
return {
|
|
325
|
+
custWabaId: 'CustWabaId',
|
|
385
326
|
language: 'Language',
|
|
386
|
-
ownerId: 'OwnerId',
|
|
387
327
|
templateCode: 'TemplateCode',
|
|
388
328
|
};
|
|
389
329
|
}
|
|
390
330
|
|
|
391
331
|
static types(): { [key: string]: any } {
|
|
392
332
|
return {
|
|
333
|
+
custWabaId: 'string',
|
|
393
334
|
language: 'string',
|
|
394
|
-
ownerId: 'number',
|
|
395
335
|
templateCode: 'string',
|
|
396
336
|
};
|
|
397
337
|
}
|
|
@@ -431,10 +371,12 @@ export class GetChatappTemplateDetailResponseBody extends $tea.Model {
|
|
|
431
371
|
|
|
432
372
|
export class GetChatappTemplateDetailResponse extends $tea.Model {
|
|
433
373
|
headers: { [key: string]: string };
|
|
374
|
+
statusCode: number;
|
|
434
375
|
body: GetChatappTemplateDetailResponseBody;
|
|
435
376
|
static names(): { [key: string]: string } {
|
|
436
377
|
return {
|
|
437
378
|
headers: 'headers',
|
|
379
|
+
statusCode: 'statusCode',
|
|
438
380
|
body: 'body',
|
|
439
381
|
};
|
|
440
382
|
}
|
|
@@ -442,6 +384,7 @@ export class GetChatappTemplateDetailResponse extends $tea.Model {
|
|
|
442
384
|
static types(): { [key: string]: any } {
|
|
443
385
|
return {
|
|
444
386
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
387
|
+
statusCode: 'number',
|
|
445
388
|
body: GetChatappTemplateDetailResponseBody,
|
|
446
389
|
};
|
|
447
390
|
}
|
|
@@ -453,12 +396,14 @@ export class GetChatappTemplateDetailResponse extends $tea.Model {
|
|
|
453
396
|
|
|
454
397
|
export class ListChatappTemplateRequest extends $tea.Model {
|
|
455
398
|
auditStatus?: string;
|
|
399
|
+
custWabaId?: string;
|
|
456
400
|
language?: string;
|
|
457
401
|
name?: string;
|
|
458
402
|
page?: ListChatappTemplateRequestPage;
|
|
459
403
|
static names(): { [key: string]: string } {
|
|
460
404
|
return {
|
|
461
405
|
auditStatus: 'AuditStatus',
|
|
406
|
+
custWabaId: 'CustWabaId',
|
|
462
407
|
language: 'Language',
|
|
463
408
|
name: 'Name',
|
|
464
409
|
page: 'Page',
|
|
@@ -468,6 +413,7 @@ export class ListChatappTemplateRequest extends $tea.Model {
|
|
|
468
413
|
static types(): { [key: string]: any } {
|
|
469
414
|
return {
|
|
470
415
|
auditStatus: 'string',
|
|
416
|
+
custWabaId: 'string',
|
|
471
417
|
language: 'string',
|
|
472
418
|
name: 'string',
|
|
473
419
|
page: ListChatappTemplateRequestPage,
|
|
@@ -481,12 +427,14 @@ export class ListChatappTemplateRequest extends $tea.Model {
|
|
|
481
427
|
|
|
482
428
|
export class ListChatappTemplateShrinkRequest extends $tea.Model {
|
|
483
429
|
auditStatus?: string;
|
|
430
|
+
custWabaId?: string;
|
|
484
431
|
language?: string;
|
|
485
432
|
name?: string;
|
|
486
433
|
pageShrink?: string;
|
|
487
434
|
static names(): { [key: string]: string } {
|
|
488
435
|
return {
|
|
489
436
|
auditStatus: 'AuditStatus',
|
|
437
|
+
custWabaId: 'CustWabaId',
|
|
490
438
|
language: 'Language',
|
|
491
439
|
name: 'Name',
|
|
492
440
|
pageShrink: 'Page',
|
|
@@ -496,6 +444,7 @@ export class ListChatappTemplateShrinkRequest extends $tea.Model {
|
|
|
496
444
|
static types(): { [key: string]: any } {
|
|
497
445
|
return {
|
|
498
446
|
auditStatus: 'string',
|
|
447
|
+
custWabaId: 'string',
|
|
499
448
|
language: 'string',
|
|
500
449
|
name: 'string',
|
|
501
450
|
pageShrink: 'string',
|
|
@@ -537,10 +486,12 @@ export class ListChatappTemplateResponseBody extends $tea.Model {
|
|
|
537
486
|
|
|
538
487
|
export class ListChatappTemplateResponse extends $tea.Model {
|
|
539
488
|
headers: { [key: string]: string };
|
|
489
|
+
statusCode: number;
|
|
540
490
|
body: ListChatappTemplateResponseBody;
|
|
541
491
|
static names(): { [key: string]: string } {
|
|
542
492
|
return {
|
|
543
493
|
headers: 'headers',
|
|
494
|
+
statusCode: 'statusCode',
|
|
544
495
|
body: 'body',
|
|
545
496
|
};
|
|
546
497
|
}
|
|
@@ -548,6 +499,7 @@ export class ListChatappTemplateResponse extends $tea.Model {
|
|
|
548
499
|
static types(): { [key: string]: any } {
|
|
549
500
|
return {
|
|
550
501
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
502
|
+
statusCode: 'number',
|
|
551
503
|
body: ListChatappTemplateResponseBody,
|
|
552
504
|
};
|
|
553
505
|
}
|
|
@@ -560,6 +512,9 @@ export class ListChatappTemplateResponse extends $tea.Model {
|
|
|
560
512
|
export class SendChatappMessageRequest extends $tea.Model {
|
|
561
513
|
channelType?: string;
|
|
562
514
|
content?: string;
|
|
515
|
+
custWabaId?: string;
|
|
516
|
+
fallBackContent?: string;
|
|
517
|
+
fallBackId?: string;
|
|
563
518
|
from?: string;
|
|
564
519
|
language?: string;
|
|
565
520
|
messageType?: string;
|
|
@@ -572,6 +527,9 @@ export class SendChatappMessageRequest extends $tea.Model {
|
|
|
572
527
|
return {
|
|
573
528
|
channelType: 'ChannelType',
|
|
574
529
|
content: 'Content',
|
|
530
|
+
custWabaId: 'CustWabaId',
|
|
531
|
+
fallBackContent: 'FallBackContent',
|
|
532
|
+
fallBackId: 'FallBackId',
|
|
575
533
|
from: 'From',
|
|
576
534
|
language: 'Language',
|
|
577
535
|
messageType: 'MessageType',
|
|
@@ -587,6 +545,9 @@ export class SendChatappMessageRequest extends $tea.Model {
|
|
|
587
545
|
return {
|
|
588
546
|
channelType: 'string',
|
|
589
547
|
content: 'string',
|
|
548
|
+
custWabaId: 'string',
|
|
549
|
+
fallBackContent: 'string',
|
|
550
|
+
fallBackId: 'string',
|
|
590
551
|
from: 'string',
|
|
591
552
|
language: 'string',
|
|
592
553
|
messageType: 'string',
|
|
@@ -606,6 +567,9 @@ export class SendChatappMessageRequest extends $tea.Model {
|
|
|
606
567
|
export class SendChatappMessageShrinkRequest extends $tea.Model {
|
|
607
568
|
channelType?: string;
|
|
608
569
|
content?: string;
|
|
570
|
+
custWabaId?: string;
|
|
571
|
+
fallBackContent?: string;
|
|
572
|
+
fallBackId?: string;
|
|
609
573
|
from?: string;
|
|
610
574
|
language?: string;
|
|
611
575
|
messageType?: string;
|
|
@@ -618,6 +582,9 @@ export class SendChatappMessageShrinkRequest extends $tea.Model {
|
|
|
618
582
|
return {
|
|
619
583
|
channelType: 'ChannelType',
|
|
620
584
|
content: 'Content',
|
|
585
|
+
custWabaId: 'CustWabaId',
|
|
586
|
+
fallBackContent: 'FallBackContent',
|
|
587
|
+
fallBackId: 'FallBackId',
|
|
621
588
|
from: 'From',
|
|
622
589
|
language: 'Language',
|
|
623
590
|
messageType: 'MessageType',
|
|
@@ -633,6 +600,9 @@ export class SendChatappMessageShrinkRequest extends $tea.Model {
|
|
|
633
600
|
return {
|
|
634
601
|
channelType: 'string',
|
|
635
602
|
content: 'string',
|
|
603
|
+
custWabaId: 'string',
|
|
604
|
+
fallBackContent: 'string',
|
|
605
|
+
fallBackId: 'string',
|
|
636
606
|
from: 'string',
|
|
637
607
|
language: 'string',
|
|
638
608
|
messageType: 'string',
|
|
@@ -679,10 +649,12 @@ export class SendChatappMessageResponseBody extends $tea.Model {
|
|
|
679
649
|
|
|
680
650
|
export class SendChatappMessageResponse extends $tea.Model {
|
|
681
651
|
headers: { [key: string]: string };
|
|
652
|
+
statusCode: number;
|
|
682
653
|
body: SendChatappMessageResponseBody;
|
|
683
654
|
static names(): { [key: string]: string } {
|
|
684
655
|
return {
|
|
685
656
|
headers: 'headers',
|
|
657
|
+
statusCode: 'statusCode',
|
|
686
658
|
body: 'body',
|
|
687
659
|
};
|
|
688
660
|
}
|
|
@@ -690,6 +662,7 @@ export class SendChatappMessageResponse extends $tea.Model {
|
|
|
690
662
|
static types(): { [key: string]: any } {
|
|
691
663
|
return {
|
|
692
664
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
665
|
+
statusCode: 'number',
|
|
693
666
|
body: SendChatappMessageResponseBody,
|
|
694
667
|
};
|
|
695
668
|
}
|
|
@@ -699,120 +672,6 @@ export class SendChatappMessageResponse extends $tea.Model {
|
|
|
699
672
|
}
|
|
700
673
|
}
|
|
701
674
|
|
|
702
|
-
export class SendMessageRequest extends $tea.Model {
|
|
703
|
-
caption?: string;
|
|
704
|
-
channelType?: string;
|
|
705
|
-
fileName?: string;
|
|
706
|
-
from?: string;
|
|
707
|
-
link?: string;
|
|
708
|
-
messageType?: string;
|
|
709
|
-
ownerId?: number;
|
|
710
|
-
resourceOwnerAccount?: string;
|
|
711
|
-
resourceOwnerId?: number;
|
|
712
|
-
templateBodyParams?: string;
|
|
713
|
-
templateButtonParams?: string;
|
|
714
|
-
templateCode?: string;
|
|
715
|
-
templateHeaderParams?: string;
|
|
716
|
-
text?: string;
|
|
717
|
-
to?: string;
|
|
718
|
-
type?: string;
|
|
719
|
-
static names(): { [key: string]: string } {
|
|
720
|
-
return {
|
|
721
|
-
caption: 'Caption',
|
|
722
|
-
channelType: 'ChannelType',
|
|
723
|
-
fileName: 'FileName',
|
|
724
|
-
from: 'From',
|
|
725
|
-
link: 'Link',
|
|
726
|
-
messageType: 'MessageType',
|
|
727
|
-
ownerId: 'OwnerId',
|
|
728
|
-
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
729
|
-
resourceOwnerId: 'ResourceOwnerId',
|
|
730
|
-
templateBodyParams: 'TemplateBodyParams',
|
|
731
|
-
templateButtonParams: 'TemplateButtonParams',
|
|
732
|
-
templateCode: 'TemplateCode',
|
|
733
|
-
templateHeaderParams: 'TemplateHeaderParams',
|
|
734
|
-
text: 'Text',
|
|
735
|
-
to: 'To',
|
|
736
|
-
type: 'Type',
|
|
737
|
-
};
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
static types(): { [key: string]: any } {
|
|
741
|
-
return {
|
|
742
|
-
caption: 'string',
|
|
743
|
-
channelType: 'string',
|
|
744
|
-
fileName: 'string',
|
|
745
|
-
from: 'string',
|
|
746
|
-
link: 'string',
|
|
747
|
-
messageType: 'string',
|
|
748
|
-
ownerId: 'number',
|
|
749
|
-
resourceOwnerAccount: 'string',
|
|
750
|
-
resourceOwnerId: 'number',
|
|
751
|
-
templateBodyParams: 'string',
|
|
752
|
-
templateButtonParams: 'string',
|
|
753
|
-
templateCode: 'string',
|
|
754
|
-
templateHeaderParams: 'string',
|
|
755
|
-
text: 'string',
|
|
756
|
-
to: 'string',
|
|
757
|
-
type: 'string',
|
|
758
|
-
};
|
|
759
|
-
}
|
|
760
|
-
|
|
761
|
-
constructor(map?: { [key: string]: any }) {
|
|
762
|
-
super(map);
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
export class SendMessageResponseBody extends $tea.Model {
|
|
767
|
-
module?: SendMessageResponseBodyModule;
|
|
768
|
-
requestId?: string;
|
|
769
|
-
resultCode?: string;
|
|
770
|
-
resultMessage?: string;
|
|
771
|
-
static names(): { [key: string]: string } {
|
|
772
|
-
return {
|
|
773
|
-
module: 'Module',
|
|
774
|
-
requestId: 'RequestId',
|
|
775
|
-
resultCode: 'ResultCode',
|
|
776
|
-
resultMessage: 'ResultMessage',
|
|
777
|
-
};
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
static types(): { [key: string]: any } {
|
|
781
|
-
return {
|
|
782
|
-
module: SendMessageResponseBodyModule,
|
|
783
|
-
requestId: 'string',
|
|
784
|
-
resultCode: 'string',
|
|
785
|
-
resultMessage: 'string',
|
|
786
|
-
};
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
constructor(map?: { [key: string]: any }) {
|
|
790
|
-
super(map);
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
export class SendMessageResponse extends $tea.Model {
|
|
795
|
-
headers: { [key: string]: string };
|
|
796
|
-
body: SendMessageResponseBody;
|
|
797
|
-
static names(): { [key: string]: string } {
|
|
798
|
-
return {
|
|
799
|
-
headers: 'headers',
|
|
800
|
-
body: 'body',
|
|
801
|
-
};
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
static types(): { [key: string]: any } {
|
|
805
|
-
return {
|
|
806
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
807
|
-
body: SendMessageResponseBody,
|
|
808
|
-
};
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
constructor(map?: { [key: string]: any }) {
|
|
812
|
-
super(map);
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
|
|
816
675
|
export class CheckChatappContactsResponseBodyData extends $tea.Model {
|
|
817
676
|
phoneNumber?: string;
|
|
818
677
|
status?: string;
|
|
@@ -835,28 +694,6 @@ export class CheckChatappContactsResponseBodyData extends $tea.Model {
|
|
|
835
694
|
}
|
|
836
695
|
}
|
|
837
696
|
|
|
838
|
-
export class CheckContactsResponseBodyContacts extends $tea.Model {
|
|
839
|
-
phoneNumber?: string;
|
|
840
|
-
status?: string;
|
|
841
|
-
static names(): { [key: string]: string } {
|
|
842
|
-
return {
|
|
843
|
-
phoneNumber: 'PhoneNumber',
|
|
844
|
-
status: 'Status',
|
|
845
|
-
};
|
|
846
|
-
}
|
|
847
|
-
|
|
848
|
-
static types(): { [key: string]: any } {
|
|
849
|
-
return {
|
|
850
|
-
phoneNumber: 'string',
|
|
851
|
-
status: 'string',
|
|
852
|
-
};
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
constructor(map?: { [key: string]: any }) {
|
|
856
|
-
super(map);
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
|
|
860
697
|
export class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
|
|
861
698
|
phoneNumber?: string;
|
|
862
699
|
text?: string;
|
|
@@ -890,6 +727,8 @@ export class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
|
|
|
890
727
|
|
|
891
728
|
export class CreateChatappTemplateRequestComponents extends $tea.Model {
|
|
892
729
|
buttons?: CreateChatappTemplateRequestComponentsButtons[];
|
|
730
|
+
caption?: string;
|
|
731
|
+
fileName?: string;
|
|
893
732
|
format?: string;
|
|
894
733
|
text?: string;
|
|
895
734
|
type?: string;
|
|
@@ -897,6 +736,8 @@ export class CreateChatappTemplateRequestComponents extends $tea.Model {
|
|
|
897
736
|
static names(): { [key: string]: string } {
|
|
898
737
|
return {
|
|
899
738
|
buttons: 'Buttons',
|
|
739
|
+
caption: 'Caption',
|
|
740
|
+
fileName: 'FileName',
|
|
900
741
|
format: 'Format',
|
|
901
742
|
text: 'Text',
|
|
902
743
|
type: 'Type',
|
|
@@ -907,6 +748,8 @@ export class CreateChatappTemplateRequestComponents extends $tea.Model {
|
|
|
907
748
|
static types(): { [key: string]: any } {
|
|
908
749
|
return {
|
|
909
750
|
buttons: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponentsButtons },
|
|
751
|
+
caption: 'string',
|
|
752
|
+
fileName: 'string',
|
|
910
753
|
format: 'string',
|
|
911
754
|
text: 'string',
|
|
912
755
|
type: 'string',
|
|
@@ -974,12 +817,18 @@ export class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $
|
|
|
974
817
|
|
|
975
818
|
export class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
|
|
976
819
|
buttons?: GetChatappTemplateDetailResponseBodyDataComponentsButtons[];
|
|
820
|
+
caption?: string;
|
|
821
|
+
fileName?: string;
|
|
822
|
+
format?: string;
|
|
977
823
|
text?: string;
|
|
978
824
|
type?: string;
|
|
979
825
|
url?: string;
|
|
980
826
|
static names(): { [key: string]: string } {
|
|
981
827
|
return {
|
|
982
828
|
buttons: 'Buttons',
|
|
829
|
+
caption: 'Caption',
|
|
830
|
+
fileName: 'FileName',
|
|
831
|
+
format: 'Format',
|
|
983
832
|
text: 'Text',
|
|
984
833
|
type: 'Type',
|
|
985
834
|
url: 'Url',
|
|
@@ -989,6 +838,9 @@ export class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Mod
|
|
|
989
838
|
static types(): { [key: string]: any } {
|
|
990
839
|
return {
|
|
991
840
|
buttons: { 'type': 'array', 'itemType': GetChatappTemplateDetailResponseBodyDataComponentsButtons },
|
|
841
|
+
caption: 'string',
|
|
842
|
+
fileName: 'string',
|
|
843
|
+
format: 'string',
|
|
992
844
|
text: 'string',
|
|
993
845
|
type: 'string',
|
|
994
846
|
url: 'string',
|
|
@@ -1090,31 +942,6 @@ export class ListChatappTemplateResponseBodyListTemplate extends $tea.Model {
|
|
|
1090
942
|
}
|
|
1091
943
|
}
|
|
1092
944
|
|
|
1093
|
-
export class SendMessageResponseBodyModule extends $tea.Model {
|
|
1094
|
-
fromId?: string;
|
|
1095
|
-
messageId?: string;
|
|
1096
|
-
toId?: string;
|
|
1097
|
-
static names(): { [key: string]: string } {
|
|
1098
|
-
return {
|
|
1099
|
-
fromId: 'FromId',
|
|
1100
|
-
messageId: 'MessageId',
|
|
1101
|
-
toId: 'ToId',
|
|
1102
|
-
};
|
|
1103
|
-
}
|
|
1104
|
-
|
|
1105
|
-
static types(): { [key: string]: any } {
|
|
1106
|
-
return {
|
|
1107
|
-
fromId: 'string',
|
|
1108
|
-
messageId: 'string',
|
|
1109
|
-
toId: 'string',
|
|
1110
|
-
};
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
constructor(map?: { [key: string]: any }) {
|
|
1114
|
-
super(map);
|
|
1115
|
-
}
|
|
1116
|
-
}
|
|
1117
|
-
|
|
1118
945
|
|
|
1119
946
|
export default class Client extends OpenApi {
|
|
1120
947
|
|
|
@@ -1155,6 +982,10 @@ export default class Client extends OpenApi {
|
|
|
1155
982
|
body["Contacts"] = request.contactsShrink;
|
|
1156
983
|
}
|
|
1157
984
|
|
|
985
|
+
if (!Util.isUnset(request.custWabaId)) {
|
|
986
|
+
body["CustWabaId"] = request.custWabaId;
|
|
987
|
+
}
|
|
988
|
+
|
|
1158
989
|
if (!Util.isUnset(request.from)) {
|
|
1159
990
|
body["From"] = request.from;
|
|
1160
991
|
}
|
|
@@ -1181,57 +1012,6 @@ export default class Client extends OpenApi {
|
|
|
1181
1012
|
return await this.checkChatappContactsWithOptions(request, runtime);
|
|
1182
1013
|
}
|
|
1183
1014
|
|
|
1184
|
-
async checkContactsWithOptions(request: CheckContactsRequest, runtime: $Util.RuntimeOptions): Promise<CheckContactsResponse> {
|
|
1185
|
-
Util.validateModel(request);
|
|
1186
|
-
let query = { };
|
|
1187
|
-
if (!Util.isUnset(request.ownerId)) {
|
|
1188
|
-
query["OwnerId"] = request.ownerId;
|
|
1189
|
-
}
|
|
1190
|
-
|
|
1191
|
-
if (!Util.isUnset(request.resourceOwnerAccount)) {
|
|
1192
|
-
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1193
|
-
}
|
|
1194
|
-
|
|
1195
|
-
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
1196
|
-
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1197
|
-
}
|
|
1198
|
-
|
|
1199
|
-
let body : {[key: string ]: any} = { };
|
|
1200
|
-
if (!Util.isUnset(request.channelType)) {
|
|
1201
|
-
body["ChannelType"] = request.channelType;
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
if (!Util.isUnset(request.contacts)) {
|
|
1205
|
-
body["Contacts"] = request.contacts;
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
|
-
if (!Util.isUnset(request.from)) {
|
|
1209
|
-
body["From"] = request.from;
|
|
1210
|
-
}
|
|
1211
|
-
|
|
1212
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
1213
|
-
query: OpenApiUtil.query(query),
|
|
1214
|
-
body: OpenApiUtil.parseToMap(body),
|
|
1215
|
-
});
|
|
1216
|
-
let params = new $OpenApi.Params({
|
|
1217
|
-
action: "CheckContacts",
|
|
1218
|
-
version: "2020-06-06",
|
|
1219
|
-
protocol: "HTTPS",
|
|
1220
|
-
pathname: "/",
|
|
1221
|
-
method: "POST",
|
|
1222
|
-
authType: "AK",
|
|
1223
|
-
style: "RPC",
|
|
1224
|
-
reqBodyType: "formData",
|
|
1225
|
-
bodyType: "json",
|
|
1226
|
-
});
|
|
1227
|
-
return $tea.cast<CheckContactsResponse>(await this.callApi(params, req, runtime), new CheckContactsResponse({}));
|
|
1228
|
-
}
|
|
1229
|
-
|
|
1230
|
-
async checkContacts(request: CheckContactsRequest): Promise<CheckContactsResponse> {
|
|
1231
|
-
let runtime = new $Util.RuntimeOptions({ });
|
|
1232
|
-
return await this.checkContactsWithOptions(request, runtime);
|
|
1233
|
-
}
|
|
1234
|
-
|
|
1235
1015
|
async createChatappTemplateWithOptions(tmpReq: CreateChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<CreateChatappTemplateResponse> {
|
|
1236
1016
|
Util.validateModel(tmpReq);
|
|
1237
1017
|
let request = new CreateChatappTemplateShrinkRequest({ });
|
|
@@ -1253,6 +1033,10 @@ export default class Client extends OpenApi {
|
|
|
1253
1033
|
body["Components"] = request.componentsShrink;
|
|
1254
1034
|
}
|
|
1255
1035
|
|
|
1036
|
+
if (!Util.isUnset(request.custWabaId)) {
|
|
1037
|
+
body["CustWabaId"] = request.custWabaId;
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1256
1040
|
if (!Util.isUnset(request.exampleShrink)) {
|
|
1257
1041
|
body["Example"] = request.exampleShrink;
|
|
1258
1042
|
}
|
|
@@ -1294,6 +1078,10 @@ export default class Client extends OpenApi {
|
|
|
1294
1078
|
async deleteChatappTemplateWithOptions(request: DeleteChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<DeleteChatappTemplateResponse> {
|
|
1295
1079
|
Util.validateModel(request);
|
|
1296
1080
|
let query = { };
|
|
1081
|
+
if (!Util.isUnset(request.custWabaId)) {
|
|
1082
|
+
query["CustWabaId"] = request.custWabaId;
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1297
1085
|
if (!Util.isUnset(request.templateCode)) {
|
|
1298
1086
|
query["TemplateCode"] = request.templateCode;
|
|
1299
1087
|
}
|
|
@@ -1323,12 +1111,12 @@ export default class Client extends OpenApi {
|
|
|
1323
1111
|
async getChatappTemplateDetailWithOptions(request: GetChatappTemplateDetailRequest, runtime: $Util.RuntimeOptions): Promise<GetChatappTemplateDetailResponse> {
|
|
1324
1112
|
Util.validateModel(request);
|
|
1325
1113
|
let query = { };
|
|
1326
|
-
if (!Util.isUnset(request.
|
|
1327
|
-
query["
|
|
1114
|
+
if (!Util.isUnset(request.custWabaId)) {
|
|
1115
|
+
query["CustWabaId"] = request.custWabaId;
|
|
1328
1116
|
}
|
|
1329
1117
|
|
|
1330
|
-
if (!Util.isUnset(request.
|
|
1331
|
-
query["
|
|
1118
|
+
if (!Util.isUnset(request.language)) {
|
|
1119
|
+
query["Language"] = request.language;
|
|
1332
1120
|
}
|
|
1333
1121
|
|
|
1334
1122
|
if (!Util.isUnset(request.templateCode)) {
|
|
@@ -1370,6 +1158,10 @@ export default class Client extends OpenApi {
|
|
|
1370
1158
|
query["AuditStatus"] = request.auditStatus;
|
|
1371
1159
|
}
|
|
1372
1160
|
|
|
1161
|
+
if (!Util.isUnset(request.custWabaId)) {
|
|
1162
|
+
query["CustWabaId"] = request.custWabaId;
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1373
1165
|
if (!Util.isUnset(request.language)) {
|
|
1374
1166
|
query["Language"] = request.language;
|
|
1375
1167
|
}
|
|
@@ -1430,6 +1222,18 @@ export default class Client extends OpenApi {
|
|
|
1430
1222
|
body["ChannelType"] = request.channelType;
|
|
1431
1223
|
}
|
|
1432
1224
|
|
|
1225
|
+
if (!Util.isUnset(request.custWabaId)) {
|
|
1226
|
+
body["CustWabaId"] = request.custWabaId;
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
if (!Util.isUnset(request.fallBackContent)) {
|
|
1230
|
+
body["FallBackContent"] = request.fallBackContent;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
if (!Util.isUnset(request.fallBackId)) {
|
|
1234
|
+
body["FallBackId"] = request.fallBackId;
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1433
1237
|
if (!Util.isUnset(request.from)) {
|
|
1434
1238
|
body["From"] = request.from;
|
|
1435
1239
|
}
|
|
@@ -1481,95 +1285,4 @@ export default class Client extends OpenApi {
|
|
|
1481
1285
|
return await this.sendChatappMessageWithOptions(request, runtime);
|
|
1482
1286
|
}
|
|
1483
1287
|
|
|
1484
|
-
async sendMessageWithOptions(request: SendMessageRequest, runtime: $Util.RuntimeOptions): Promise<SendMessageResponse> {
|
|
1485
|
-
Util.validateModel(request);
|
|
1486
|
-
let query = { };
|
|
1487
|
-
if (!Util.isUnset(request.ownerId)) {
|
|
1488
|
-
query["OwnerId"] = request.ownerId;
|
|
1489
|
-
}
|
|
1490
|
-
|
|
1491
|
-
if (!Util.isUnset(request.resourceOwnerAccount)) {
|
|
1492
|
-
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1493
|
-
}
|
|
1494
|
-
|
|
1495
|
-
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
1496
|
-
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1497
|
-
}
|
|
1498
|
-
|
|
1499
|
-
let body : {[key: string ]: any} = { };
|
|
1500
|
-
if (!Util.isUnset(request.caption)) {
|
|
1501
|
-
body["Caption"] = request.caption;
|
|
1502
|
-
}
|
|
1503
|
-
|
|
1504
|
-
if (!Util.isUnset(request.channelType)) {
|
|
1505
|
-
body["ChannelType"] = request.channelType;
|
|
1506
|
-
}
|
|
1507
|
-
|
|
1508
|
-
if (!Util.isUnset(request.fileName)) {
|
|
1509
|
-
body["FileName"] = request.fileName;
|
|
1510
|
-
}
|
|
1511
|
-
|
|
1512
|
-
if (!Util.isUnset(request.from)) {
|
|
1513
|
-
body["From"] = request.from;
|
|
1514
|
-
}
|
|
1515
|
-
|
|
1516
|
-
if (!Util.isUnset(request.link)) {
|
|
1517
|
-
body["Link"] = request.link;
|
|
1518
|
-
}
|
|
1519
|
-
|
|
1520
|
-
if (!Util.isUnset(request.messageType)) {
|
|
1521
|
-
body["MessageType"] = request.messageType;
|
|
1522
|
-
}
|
|
1523
|
-
|
|
1524
|
-
if (!Util.isUnset(request.templateBodyParams)) {
|
|
1525
|
-
body["TemplateBodyParams"] = request.templateBodyParams;
|
|
1526
|
-
}
|
|
1527
|
-
|
|
1528
|
-
if (!Util.isUnset(request.templateButtonParams)) {
|
|
1529
|
-
body["TemplateButtonParams"] = request.templateButtonParams;
|
|
1530
|
-
}
|
|
1531
|
-
|
|
1532
|
-
if (!Util.isUnset(request.templateCode)) {
|
|
1533
|
-
body["TemplateCode"] = request.templateCode;
|
|
1534
|
-
}
|
|
1535
|
-
|
|
1536
|
-
if (!Util.isUnset(request.templateHeaderParams)) {
|
|
1537
|
-
body["TemplateHeaderParams"] = request.templateHeaderParams;
|
|
1538
|
-
}
|
|
1539
|
-
|
|
1540
|
-
if (!Util.isUnset(request.text)) {
|
|
1541
|
-
body["Text"] = request.text;
|
|
1542
|
-
}
|
|
1543
|
-
|
|
1544
|
-
if (!Util.isUnset(request.to)) {
|
|
1545
|
-
body["To"] = request.to;
|
|
1546
|
-
}
|
|
1547
|
-
|
|
1548
|
-
if (!Util.isUnset(request.type)) {
|
|
1549
|
-
body["Type"] = request.type;
|
|
1550
|
-
}
|
|
1551
|
-
|
|
1552
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
1553
|
-
query: OpenApiUtil.query(query),
|
|
1554
|
-
body: OpenApiUtil.parseToMap(body),
|
|
1555
|
-
});
|
|
1556
|
-
let params = new $OpenApi.Params({
|
|
1557
|
-
action: "SendMessage",
|
|
1558
|
-
version: "2020-06-06",
|
|
1559
|
-
protocol: "HTTPS",
|
|
1560
|
-
pathname: "/",
|
|
1561
|
-
method: "POST",
|
|
1562
|
-
authType: "AK",
|
|
1563
|
-
style: "RPC",
|
|
1564
|
-
reqBodyType: "formData",
|
|
1565
|
-
bodyType: "json",
|
|
1566
|
-
});
|
|
1567
|
-
return $tea.cast<SendMessageResponse>(await this.callApi(params, req, runtime), new SendMessageResponse({}));
|
|
1568
|
-
}
|
|
1569
|
-
|
|
1570
|
-
async sendMessage(request: SendMessageRequest): Promise<SendMessageResponse> {
|
|
1571
|
-
let runtime = new $Util.RuntimeOptions({ });
|
|
1572
|
-
return await this.sendMessageWithOptions(request, runtime);
|
|
1573
|
-
}
|
|
1574
|
-
|
|
1575
1288
|
}
|