@alicloud/cams20200606 1.0.4 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -4,6 +4,66 @@
4
4
  import * as $Util from '@alicloud/tea-util';
5
5
  import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
6
6
  import * as $tea from '@alicloud/tea-typescript';
7
+ export declare class CheckChatappContactsRequest extends $tea.Model {
8
+ channelType?: string;
9
+ contacts?: string[];
10
+ custWabaId?: string;
11
+ from?: string;
12
+ static names(): {
13
+ [key: string]: string;
14
+ };
15
+ static types(): {
16
+ [key: string]: any;
17
+ };
18
+ constructor(map?: {
19
+ [key: string]: any;
20
+ });
21
+ }
22
+ export declare class CheckChatappContactsShrinkRequest extends $tea.Model {
23
+ channelType?: string;
24
+ contactsShrink?: string;
25
+ custWabaId?: string;
26
+ from?: string;
27
+ static names(): {
28
+ [key: string]: string;
29
+ };
30
+ static types(): {
31
+ [key: string]: any;
32
+ };
33
+ constructor(map?: {
34
+ [key: string]: any;
35
+ });
36
+ }
37
+ export declare class CheckChatappContactsResponseBody extends $tea.Model {
38
+ code?: string;
39
+ data?: CheckChatappContactsResponseBodyData[];
40
+ message?: string;
41
+ requestId?: string;
42
+ static names(): {
43
+ [key: string]: string;
44
+ };
45
+ static types(): {
46
+ [key: string]: any;
47
+ };
48
+ constructor(map?: {
49
+ [key: string]: any;
50
+ });
51
+ }
52
+ export declare class CheckChatappContactsResponse extends $tea.Model {
53
+ headers: {
54
+ [key: string]: string;
55
+ };
56
+ body: CheckChatappContactsResponseBody;
57
+ static names(): {
58
+ [key: string]: string;
59
+ };
60
+ static types(): {
61
+ [key: string]: any;
62
+ };
63
+ constructor(map?: {
64
+ [key: string]: any;
65
+ });
66
+ }
7
67
  export declare class CheckContactsRequest extends $tea.Model {
8
68
  channelType?: string;
9
69
  contacts?: string;
@@ -53,13 +113,31 @@ export declare class CheckContactsResponse extends $tea.Model {
53
113
  }
54
114
  export declare class CreateChatappTemplateRequest extends $tea.Model {
55
115
  category?: string;
56
- components?: string;
57
- example?: string;
116
+ components?: CreateChatappTemplateRequestComponents[];
117
+ custWabaId?: string;
118
+ example?: {
119
+ [key: string]: string;
120
+ };
121
+ language?: string;
122
+ name?: string;
123
+ templateType?: string;
124
+ static names(): {
125
+ [key: string]: string;
126
+ };
127
+ static types(): {
128
+ [key: string]: any;
129
+ };
130
+ constructor(map?: {
131
+ [key: string]: any;
132
+ });
133
+ }
134
+ export declare class CreateChatappTemplateShrinkRequest extends $tea.Model {
135
+ category?: string;
136
+ componentsShrink?: string;
137
+ custWabaId?: string;
138
+ exampleShrink?: string;
58
139
  language?: string;
59
140
  name?: string;
60
- ownerId?: number;
61
- resourceOwnerAccount?: string;
62
- resourceOwnerId?: number;
63
141
  templateType?: string;
64
142
  static names(): {
65
143
  [key: string]: string;
@@ -73,7 +151,7 @@ export declare class CreateChatappTemplateRequest extends $tea.Model {
73
151
  }
74
152
  export declare class CreateChatappTemplateResponseBody extends $tea.Model {
75
153
  code?: string;
76
- data?: string;
154
+ data?: CreateChatappTemplateResponseBodyData;
77
155
  message?: string;
78
156
  requestId?: string;
79
157
  static names(): {
@@ -102,9 +180,7 @@ export declare class CreateChatappTemplateResponse extends $tea.Model {
102
180
  });
103
181
  }
104
182
  export declare class DeleteChatappTemplateRequest extends $tea.Model {
105
- ownerId?: number;
106
- resourceOwnerAccount?: string;
107
- resourceOwnerId?: number;
183
+ custWabaId?: string;
108
184
  templateCode?: string;
109
185
  static names(): {
110
186
  [key: string]: string;
@@ -146,10 +222,8 @@ export declare class DeleteChatappTemplateResponse extends $tea.Model {
146
222
  });
147
223
  }
148
224
  export declare class GetChatappTemplateDetailRequest extends $tea.Model {
225
+ custWabaId?: string;
149
226
  language?: string;
150
- ownerId?: number;
151
- resourceOwnerAccount?: string;
152
- resourceOwnerId?: number;
153
227
  templateCode?: string;
154
228
  static names(): {
155
229
  [key: string]: string;
@@ -163,7 +237,7 @@ export declare class GetChatappTemplateDetailRequest extends $tea.Model {
163
237
  }
164
238
  export declare class GetChatappTemplateDetailResponseBody extends $tea.Model {
165
239
  code?: string;
166
- data?: string;
240
+ data?: GetChatappTemplateDetailResponseBodyData;
167
241
  message?: string;
168
242
  requestId?: string;
169
243
  static names(): {
@@ -193,12 +267,26 @@ export declare class GetChatappTemplateDetailResponse extends $tea.Model {
193
267
  }
194
268
  export declare class ListChatappTemplateRequest extends $tea.Model {
195
269
  auditStatus?: string;
270
+ custWabaId?: string;
196
271
  language?: string;
197
272
  name?: string;
198
- ownerId?: number;
199
- page?: string;
200
- resourceOwnerAccount?: string;
201
- resourceOwnerId?: number;
273
+ page?: ListChatappTemplateRequestPage;
274
+ static names(): {
275
+ [key: string]: string;
276
+ };
277
+ static types(): {
278
+ [key: string]: any;
279
+ };
280
+ constructor(map?: {
281
+ [key: string]: any;
282
+ });
283
+ }
284
+ export declare class ListChatappTemplateShrinkRequest extends $tea.Model {
285
+ auditStatus?: string;
286
+ custWabaId?: string;
287
+ language?: string;
288
+ name?: string;
289
+ pageShrink?: string;
202
290
  static names(): {
203
291
  [key: string]: string;
204
292
  };
@@ -239,6 +327,82 @@ export declare class ListChatappTemplateResponse extends $tea.Model {
239
327
  [key: string]: any;
240
328
  });
241
329
  }
330
+ export declare class SendChatappMessageRequest extends $tea.Model {
331
+ channelType?: string;
332
+ content?: string;
333
+ custWabaId?: string;
334
+ from?: string;
335
+ language?: string;
336
+ messageType?: string;
337
+ payload?: string[];
338
+ templateCode?: string;
339
+ templateParams?: {
340
+ [key: string]: string;
341
+ };
342
+ to?: string;
343
+ type?: string;
344
+ static names(): {
345
+ [key: string]: string;
346
+ };
347
+ static types(): {
348
+ [key: string]: any;
349
+ };
350
+ constructor(map?: {
351
+ [key: string]: any;
352
+ });
353
+ }
354
+ export declare class SendChatappMessageShrinkRequest extends $tea.Model {
355
+ channelType?: string;
356
+ content?: string;
357
+ custWabaId?: string;
358
+ from?: string;
359
+ language?: string;
360
+ messageType?: string;
361
+ payloadShrink?: string;
362
+ templateCode?: string;
363
+ templateParamsShrink?: string;
364
+ to?: string;
365
+ type?: string;
366
+ static names(): {
367
+ [key: string]: string;
368
+ };
369
+ static types(): {
370
+ [key: string]: any;
371
+ };
372
+ constructor(map?: {
373
+ [key: string]: any;
374
+ });
375
+ }
376
+ export declare class SendChatappMessageResponseBody extends $tea.Model {
377
+ code?: string;
378
+ message?: string;
379
+ messageId?: string;
380
+ requestId?: string;
381
+ static names(): {
382
+ [key: string]: string;
383
+ };
384
+ static types(): {
385
+ [key: string]: any;
386
+ };
387
+ constructor(map?: {
388
+ [key: string]: any;
389
+ });
390
+ }
391
+ export declare class SendChatappMessageResponse extends $tea.Model {
392
+ headers: {
393
+ [key: string]: string;
394
+ };
395
+ body: SendChatappMessageResponseBody;
396
+ static names(): {
397
+ [key: string]: string;
398
+ };
399
+ static types(): {
400
+ [key: string]: any;
401
+ };
402
+ constructor(map?: {
403
+ [key: string]: any;
404
+ });
405
+ }
242
406
  export declare class SendMessageRequest extends $tea.Model {
243
407
  caption?: string;
244
408
  channelType?: string;
@@ -296,6 +460,19 @@ export declare class SendMessageResponse extends $tea.Model {
296
460
  [key: string]: any;
297
461
  });
298
462
  }
463
+ export declare class CheckChatappContactsResponseBodyData extends $tea.Model {
464
+ phoneNumber?: string;
465
+ status?: string;
466
+ static names(): {
467
+ [key: string]: string;
468
+ };
469
+ static types(): {
470
+ [key: string]: any;
471
+ };
472
+ constructor(map?: {
473
+ [key: string]: any;
474
+ });
475
+ }
299
476
  export declare class CheckContactsResponseBodyContacts extends $tea.Model {
300
477
  phoneNumber?: string;
301
478
  status?: string;
@@ -309,6 +486,119 @@ export declare class CheckContactsResponseBodyContacts extends $tea.Model {
309
486
  [key: string]: any;
310
487
  });
311
488
  }
489
+ export declare class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
490
+ phoneNumber?: string;
491
+ text?: string;
492
+ type?: string;
493
+ url?: string;
494
+ urlType?: string;
495
+ static names(): {
496
+ [key: string]: string;
497
+ };
498
+ static types(): {
499
+ [key: string]: any;
500
+ };
501
+ constructor(map?: {
502
+ [key: string]: any;
503
+ });
504
+ }
505
+ export declare class CreateChatappTemplateRequestComponents extends $tea.Model {
506
+ buttons?: CreateChatappTemplateRequestComponentsButtons[];
507
+ caption?: string;
508
+ fileName?: string;
509
+ format?: string;
510
+ text?: string;
511
+ type?: string;
512
+ url?: string;
513
+ static names(): {
514
+ [key: string]: string;
515
+ };
516
+ static types(): {
517
+ [key: string]: any;
518
+ };
519
+ constructor(map?: {
520
+ [key: string]: any;
521
+ });
522
+ }
523
+ export declare class CreateChatappTemplateResponseBodyData extends $tea.Model {
524
+ templateCode?: string;
525
+ templateName?: string;
526
+ static names(): {
527
+ [key: string]: string;
528
+ };
529
+ static types(): {
530
+ [key: string]: any;
531
+ };
532
+ constructor(map?: {
533
+ [key: string]: any;
534
+ });
535
+ }
536
+ export declare class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $tea.Model {
537
+ phoneNumber?: string;
538
+ text?: string;
539
+ type?: string;
540
+ url?: string;
541
+ urlType?: string;
542
+ static names(): {
543
+ [key: string]: string;
544
+ };
545
+ static types(): {
546
+ [key: string]: any;
547
+ };
548
+ constructor(map?: {
549
+ [key: string]: any;
550
+ });
551
+ }
552
+ export declare class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
553
+ buttons?: GetChatappTemplateDetailResponseBodyDataComponentsButtons[];
554
+ caption?: string;
555
+ fileName?: string;
556
+ text?: string;
557
+ type?: string;
558
+ url?: string;
559
+ static names(): {
560
+ [key: string]: string;
561
+ };
562
+ static types(): {
563
+ [key: string]: any;
564
+ };
565
+ constructor(map?: {
566
+ [key: string]: any;
567
+ });
568
+ }
569
+ export declare class GetChatappTemplateDetailResponseBodyData extends $tea.Model {
570
+ auditStatus?: string;
571
+ category?: string;
572
+ components?: GetChatappTemplateDetailResponseBodyDataComponents[];
573
+ example?: {
574
+ [key: string]: string;
575
+ };
576
+ language?: string;
577
+ name?: string;
578
+ templateCode?: string;
579
+ static names(): {
580
+ [key: string]: string;
581
+ };
582
+ static types(): {
583
+ [key: string]: any;
584
+ };
585
+ constructor(map?: {
586
+ [key: string]: any;
587
+ });
588
+ }
589
+ export declare class ListChatappTemplateRequestPage extends $tea.Model {
590
+ index?: number;
591
+ size?: number;
592
+ static names(): {
593
+ [key: string]: string;
594
+ };
595
+ static types(): {
596
+ [key: string]: any;
597
+ };
598
+ constructor(map?: {
599
+ [key: string]: any;
600
+ });
601
+ }
312
602
  export declare class ListChatappTemplateResponseBodyListTemplate extends $tea.Model {
313
603
  auditStatus?: string;
314
604
  category?: string;
@@ -344,16 +634,20 @@ export default class Client extends OpenApi {
344
634
  getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
345
635
  [key: string]: string;
346
636
  }, endpoint: string): string;
637
+ checkChatappContactsWithOptions(tmpReq: CheckChatappContactsRequest, runtime: $Util.RuntimeOptions): Promise<CheckChatappContactsResponse>;
638
+ checkChatappContacts(request: CheckChatappContactsRequest): Promise<CheckChatappContactsResponse>;
347
639
  checkContactsWithOptions(request: CheckContactsRequest, runtime: $Util.RuntimeOptions): Promise<CheckContactsResponse>;
348
640
  checkContacts(request: CheckContactsRequest): Promise<CheckContactsResponse>;
349
- createChatappTemplateWithOptions(request: CreateChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<CreateChatappTemplateResponse>;
641
+ createChatappTemplateWithOptions(tmpReq: CreateChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<CreateChatappTemplateResponse>;
350
642
  createChatappTemplate(request: CreateChatappTemplateRequest): Promise<CreateChatappTemplateResponse>;
351
643
  deleteChatappTemplateWithOptions(request: DeleteChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<DeleteChatappTemplateResponse>;
352
644
  deleteChatappTemplate(request: DeleteChatappTemplateRequest): Promise<DeleteChatappTemplateResponse>;
353
645
  getChatappTemplateDetailWithOptions(request: GetChatappTemplateDetailRequest, runtime: $Util.RuntimeOptions): Promise<GetChatappTemplateDetailResponse>;
354
646
  getChatappTemplateDetail(request: GetChatappTemplateDetailRequest): Promise<GetChatappTemplateDetailResponse>;
355
- listChatappTemplateWithOptions(request: ListChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<ListChatappTemplateResponse>;
647
+ listChatappTemplateWithOptions(tmpReq: ListChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<ListChatappTemplateResponse>;
356
648
  listChatappTemplate(request: ListChatappTemplateRequest): Promise<ListChatappTemplateResponse>;
649
+ sendChatappMessageWithOptions(tmpReq: SendChatappMessageRequest, runtime: $Util.RuntimeOptions): Promise<SendChatappMessageResponse>;
650
+ sendChatappMessage(request: SendChatappMessageRequest): Promise<SendChatappMessageResponse>;
357
651
  sendMessageWithOptions(request: SendMessageRequest, runtime: $Util.RuntimeOptions): Promise<SendMessageResponse>;
358
652
  sendMessage(request: SendMessageRequest): Promise<SendMessageResponse>;
359
653
  }