@alicloud/cams20200606 1.0.5 → 1.0.6

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
@@ -6,11 +6,22 @@ import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
6
6
  import * as $tea from '@alicloud/tea-typescript';
7
7
  export declare class CheckChatappContactsRequest extends $tea.Model {
8
8
  channelType?: string;
9
- contacts?: string;
9
+ contacts?: string[];
10
+ from?: string;
11
+ static names(): {
12
+ [key: string]: string;
13
+ };
14
+ static types(): {
15
+ [key: string]: any;
16
+ };
17
+ constructor(map?: {
18
+ [key: string]: any;
19
+ });
20
+ }
21
+ export declare class CheckChatappContactsShrinkRequest extends $tea.Model {
22
+ channelType?: string;
23
+ contactsShrink?: string;
10
24
  from?: string;
11
- ownerId?: number;
12
- resourceOwnerAccount?: string;
13
- resourceOwnerId?: number;
14
25
  static names(): {
15
26
  [key: string]: string;
16
27
  };
@@ -100,13 +111,29 @@ export declare class CheckContactsResponse extends $tea.Model {
100
111
  }
101
112
  export declare class CreateChatappTemplateRequest extends $tea.Model {
102
113
  category?: string;
103
- components?: string;
104
- example?: string;
114
+ components?: CreateChatappTemplateRequestComponents[];
115
+ example?: {
116
+ [key: string]: string;
117
+ };
118
+ language?: string;
119
+ name?: string;
120
+ templateType?: string;
121
+ static names(): {
122
+ [key: string]: string;
123
+ };
124
+ static types(): {
125
+ [key: string]: any;
126
+ };
127
+ constructor(map?: {
128
+ [key: string]: any;
129
+ });
130
+ }
131
+ export declare class CreateChatappTemplateShrinkRequest extends $tea.Model {
132
+ category?: string;
133
+ componentsShrink?: string;
134
+ exampleShrink?: string;
105
135
  language?: string;
106
136
  name?: string;
107
- ownerId?: number;
108
- resourceOwnerAccount?: string;
109
- resourceOwnerId?: number;
110
137
  templateType?: string;
111
138
  static names(): {
112
139
  [key: string]: string;
@@ -120,7 +147,7 @@ export declare class CreateChatappTemplateRequest extends $tea.Model {
120
147
  }
121
148
  export declare class CreateChatappTemplateResponseBody extends $tea.Model {
122
149
  code?: string;
123
- data?: string;
150
+ data?: CreateChatappTemplateResponseBodyData;
124
151
  message?: string;
125
152
  requestId?: string;
126
153
  static names(): {
@@ -149,9 +176,6 @@ export declare class CreateChatappTemplateResponse extends $tea.Model {
149
176
  });
150
177
  }
151
178
  export declare class DeleteChatappTemplateRequest extends $tea.Model {
152
- ownerId?: number;
153
- resourceOwnerAccount?: string;
154
- resourceOwnerId?: number;
155
179
  templateCode?: string;
156
180
  static names(): {
157
181
  [key: string]: string;
@@ -195,8 +219,6 @@ export declare class DeleteChatappTemplateResponse extends $tea.Model {
195
219
  export declare class GetChatappTemplateDetailRequest extends $tea.Model {
196
220
  language?: string;
197
221
  ownerId?: number;
198
- resourceOwnerAccount?: string;
199
- resourceOwnerId?: number;
200
222
  templateCode?: string;
201
223
  static names(): {
202
224
  [key: string]: string;
@@ -210,7 +232,7 @@ export declare class GetChatappTemplateDetailRequest extends $tea.Model {
210
232
  }
211
233
  export declare class GetChatappTemplateDetailResponseBody extends $tea.Model {
212
234
  code?: string;
213
- data?: string;
235
+ data?: GetChatappTemplateDetailResponseBodyData;
214
236
  message?: string;
215
237
  requestId?: string;
216
238
  static names(): {
@@ -242,10 +264,22 @@ export declare class ListChatappTemplateRequest extends $tea.Model {
242
264
  auditStatus?: string;
243
265
  language?: string;
244
266
  name?: string;
245
- ownerId?: number;
246
- page?: string;
247
- resourceOwnerAccount?: string;
248
- resourceOwnerId?: number;
267
+ page?: ListChatappTemplateRequestPage;
268
+ static names(): {
269
+ [key: string]: string;
270
+ };
271
+ static types(): {
272
+ [key: string]: any;
273
+ };
274
+ constructor(map?: {
275
+ [key: string]: any;
276
+ });
277
+ }
278
+ export declare class ListChatappTemplateShrinkRequest extends $tea.Model {
279
+ auditStatus?: string;
280
+ language?: string;
281
+ name?: string;
282
+ pageShrink?: string;
249
283
  static names(): {
250
284
  [key: string]: string;
251
285
  };
@@ -292,12 +326,32 @@ export declare class SendChatappMessageRequest extends $tea.Model {
292
326
  from?: string;
293
327
  language?: string;
294
328
  messageType?: string;
295
- ownerId?: number;
296
- payload?: string;
297
- resourceOwnerAccount?: string;
298
- resourceOwnerId?: number;
329
+ payload?: string[];
330
+ templateCode?: string;
331
+ templateParams?: {
332
+ [key: string]: string;
333
+ };
334
+ to?: string;
335
+ type?: string;
336
+ static names(): {
337
+ [key: string]: string;
338
+ };
339
+ static types(): {
340
+ [key: string]: any;
341
+ };
342
+ constructor(map?: {
343
+ [key: string]: any;
344
+ });
345
+ }
346
+ export declare class SendChatappMessageShrinkRequest extends $tea.Model {
347
+ channelType?: string;
348
+ content?: string;
349
+ from?: string;
350
+ language?: string;
351
+ messageType?: string;
352
+ payloadShrink?: string;
299
353
  templateCode?: string;
300
- templateParams?: string;
354
+ templateParamsShrink?: string;
301
355
  to?: string;
302
356
  type?: string;
303
357
  static names(): {
@@ -312,8 +366,8 @@ export declare class SendChatappMessageRequest extends $tea.Model {
312
366
  }
313
367
  export declare class SendChatappMessageResponseBody extends $tea.Model {
314
368
  code?: string;
315
- data?: string;
316
369
  message?: string;
370
+ messageId?: string;
317
371
  requestId?: string;
318
372
  static names(): {
319
373
  [key: string]: string;
@@ -423,6 +477,115 @@ export declare class CheckContactsResponseBodyContacts extends $tea.Model {
423
477
  [key: string]: any;
424
478
  });
425
479
  }
480
+ export declare class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
481
+ phoneNumber?: string;
482
+ text?: string;
483
+ type?: string;
484
+ url?: string;
485
+ urlType?: string;
486
+ static names(): {
487
+ [key: string]: string;
488
+ };
489
+ static types(): {
490
+ [key: string]: any;
491
+ };
492
+ constructor(map?: {
493
+ [key: string]: any;
494
+ });
495
+ }
496
+ export declare class CreateChatappTemplateRequestComponents extends $tea.Model {
497
+ buttons?: CreateChatappTemplateRequestComponentsButtons[];
498
+ format?: string;
499
+ text?: string;
500
+ type?: string;
501
+ url?: string;
502
+ static names(): {
503
+ [key: string]: string;
504
+ };
505
+ static types(): {
506
+ [key: string]: any;
507
+ };
508
+ constructor(map?: {
509
+ [key: string]: any;
510
+ });
511
+ }
512
+ export declare class CreateChatappTemplateResponseBodyData extends $tea.Model {
513
+ templateCode?: string;
514
+ templateName?: string;
515
+ static names(): {
516
+ [key: string]: string;
517
+ };
518
+ static types(): {
519
+ [key: string]: any;
520
+ };
521
+ constructor(map?: {
522
+ [key: string]: any;
523
+ });
524
+ }
525
+ export declare class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $tea.Model {
526
+ phoneNumber?: string;
527
+ text?: string;
528
+ type?: string;
529
+ url?: string;
530
+ urlType?: string;
531
+ static names(): {
532
+ [key: string]: string;
533
+ };
534
+ static types(): {
535
+ [key: string]: any;
536
+ };
537
+ constructor(map?: {
538
+ [key: string]: any;
539
+ });
540
+ }
541
+ export declare class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
542
+ buttons?: GetChatappTemplateDetailResponseBodyDataComponentsButtons[];
543
+ text?: string;
544
+ type?: string;
545
+ url?: string;
546
+ static names(): {
547
+ [key: string]: string;
548
+ };
549
+ static types(): {
550
+ [key: string]: any;
551
+ };
552
+ constructor(map?: {
553
+ [key: string]: any;
554
+ });
555
+ }
556
+ export declare class GetChatappTemplateDetailResponseBodyData extends $tea.Model {
557
+ auditStatus?: string;
558
+ category?: string;
559
+ components?: GetChatappTemplateDetailResponseBodyDataComponents[];
560
+ example?: {
561
+ [key: string]: string;
562
+ };
563
+ language?: string;
564
+ name?: string;
565
+ templateCode?: string;
566
+ static names(): {
567
+ [key: string]: string;
568
+ };
569
+ static types(): {
570
+ [key: string]: any;
571
+ };
572
+ constructor(map?: {
573
+ [key: string]: any;
574
+ });
575
+ }
576
+ export declare class ListChatappTemplateRequestPage extends $tea.Model {
577
+ index?: number;
578
+ size?: number;
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
+ }
426
589
  export declare class ListChatappTemplateResponseBodyListTemplate extends $tea.Model {
427
590
  auditStatus?: string;
428
591
  category?: string;
@@ -458,19 +621,19 @@ export default class Client extends OpenApi {
458
621
  getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
459
622
  [key: string]: string;
460
623
  }, endpoint: string): string;
461
- checkChatappContactsWithOptions(request: CheckChatappContactsRequest, runtime: $Util.RuntimeOptions): Promise<CheckChatappContactsResponse>;
624
+ checkChatappContactsWithOptions(tmpReq: CheckChatappContactsRequest, runtime: $Util.RuntimeOptions): Promise<CheckChatappContactsResponse>;
462
625
  checkChatappContacts(request: CheckChatappContactsRequest): Promise<CheckChatappContactsResponse>;
463
626
  checkContactsWithOptions(request: CheckContactsRequest, runtime: $Util.RuntimeOptions): Promise<CheckContactsResponse>;
464
627
  checkContacts(request: CheckContactsRequest): Promise<CheckContactsResponse>;
465
- createChatappTemplateWithOptions(request: CreateChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<CreateChatappTemplateResponse>;
628
+ createChatappTemplateWithOptions(tmpReq: CreateChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<CreateChatappTemplateResponse>;
466
629
  createChatappTemplate(request: CreateChatappTemplateRequest): Promise<CreateChatappTemplateResponse>;
467
630
  deleteChatappTemplateWithOptions(request: DeleteChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<DeleteChatappTemplateResponse>;
468
631
  deleteChatappTemplate(request: DeleteChatappTemplateRequest): Promise<DeleteChatappTemplateResponse>;
469
632
  getChatappTemplateDetailWithOptions(request: GetChatappTemplateDetailRequest, runtime: $Util.RuntimeOptions): Promise<GetChatappTemplateDetailResponse>;
470
633
  getChatappTemplateDetail(request: GetChatappTemplateDetailRequest): Promise<GetChatappTemplateDetailResponse>;
471
- listChatappTemplateWithOptions(request: ListChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<ListChatappTemplateResponse>;
634
+ listChatappTemplateWithOptions(tmpReq: ListChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<ListChatappTemplateResponse>;
472
635
  listChatappTemplate(request: ListChatappTemplateRequest): Promise<ListChatappTemplateResponse>;
473
- sendChatappMessageWithOptions(request: SendChatappMessageRequest, runtime: $Util.RuntimeOptions): Promise<SendChatappMessageResponse>;
636
+ sendChatappMessageWithOptions(tmpReq: SendChatappMessageRequest, runtime: $Util.RuntimeOptions): Promise<SendChatappMessageResponse>;
474
637
  sendChatappMessage(request: SendChatappMessageRequest): Promise<SendChatappMessageResponse>;
475
638
  sendMessageWithOptions(request: SendMessageRequest, runtime: $Util.RuntimeOptions): Promise<SendMessageResponse>;
476
639
  sendMessage(request: SendMessageRequest): Promise<SendMessageResponse>;