@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 CHANGED
@@ -7,6 +7,7 @@ import * as $tea from '@alicloud/tea-typescript';
7
7
  export declare class CheckChatappContactsRequest extends $tea.Model {
8
8
  channelType?: string;
9
9
  contacts?: string[];
10
+ custWabaId?: string;
10
11
  from?: string;
11
12
  static names(): {
12
13
  [key: string]: string;
@@ -21,6 +22,7 @@ export declare class CheckChatappContactsRequest extends $tea.Model {
21
22
  export declare class CheckChatappContactsShrinkRequest extends $tea.Model {
22
23
  channelType?: string;
23
24
  contactsShrink?: string;
25
+ custWabaId?: string;
24
26
  from?: string;
25
27
  static names(): {
26
28
  [key: string]: string;
@@ -51,6 +53,7 @@ export declare class CheckChatappContactsResponse extends $tea.Model {
51
53
  headers: {
52
54
  [key: string]: string;
53
55
  };
56
+ statusCode: number;
54
57
  body: CheckChatappContactsResponseBody;
55
58
  static names(): {
56
59
  [key: string]: string;
@@ -62,56 +65,10 @@ export declare class CheckChatappContactsResponse extends $tea.Model {
62
65
  [key: string]: any;
63
66
  });
64
67
  }
65
- export declare class CheckContactsRequest extends $tea.Model {
66
- channelType?: string;
67
- contacts?: string;
68
- from?: string;
69
- ownerId?: number;
70
- resourceOwnerAccount?: string;
71
- resourceOwnerId?: number;
72
- static names(): {
73
- [key: string]: string;
74
- };
75
- static types(): {
76
- [key: string]: any;
77
- };
78
- constructor(map?: {
79
- [key: string]: any;
80
- });
81
- }
82
- export declare class CheckContactsResponseBody extends $tea.Model {
83
- contacts?: CheckContactsResponseBodyContacts[];
84
- requestId?: string;
85
- resultCode?: string;
86
- resultMessage?: string;
87
- static names(): {
88
- [key: string]: string;
89
- };
90
- static types(): {
91
- [key: string]: any;
92
- };
93
- constructor(map?: {
94
- [key: string]: any;
95
- });
96
- }
97
- export declare class CheckContactsResponse extends $tea.Model {
98
- headers: {
99
- [key: string]: string;
100
- };
101
- body: CheckContactsResponseBody;
102
- static names(): {
103
- [key: string]: string;
104
- };
105
- static types(): {
106
- [key: string]: any;
107
- };
108
- constructor(map?: {
109
- [key: string]: any;
110
- });
111
- }
112
68
  export declare class CreateChatappTemplateRequest extends $tea.Model {
113
69
  category?: string;
114
70
  components?: CreateChatappTemplateRequestComponents[];
71
+ custWabaId?: string;
115
72
  example?: {
116
73
  [key: string]: string;
117
74
  };
@@ -131,6 +88,7 @@ export declare class CreateChatappTemplateRequest extends $tea.Model {
131
88
  export declare class CreateChatappTemplateShrinkRequest extends $tea.Model {
132
89
  category?: string;
133
90
  componentsShrink?: string;
91
+ custWabaId?: string;
134
92
  exampleShrink?: string;
135
93
  language?: string;
136
94
  name?: string;
@@ -164,6 +122,7 @@ export declare class CreateChatappTemplateResponse extends $tea.Model {
164
122
  headers: {
165
123
  [key: string]: string;
166
124
  };
125
+ statusCode: number;
167
126
  body: CreateChatappTemplateResponseBody;
168
127
  static names(): {
169
128
  [key: string]: string;
@@ -176,6 +135,7 @@ export declare class CreateChatappTemplateResponse extends $tea.Model {
176
135
  });
177
136
  }
178
137
  export declare class DeleteChatappTemplateRequest extends $tea.Model {
138
+ custWabaId?: string;
179
139
  templateCode?: string;
180
140
  static names(): {
181
141
  [key: string]: string;
@@ -205,6 +165,7 @@ export declare class DeleteChatappTemplateResponse extends $tea.Model {
205
165
  headers: {
206
166
  [key: string]: string;
207
167
  };
168
+ statusCode: number;
208
169
  body: DeleteChatappTemplateResponseBody;
209
170
  static names(): {
210
171
  [key: string]: string;
@@ -217,8 +178,8 @@ export declare class DeleteChatappTemplateResponse extends $tea.Model {
217
178
  });
218
179
  }
219
180
  export declare class GetChatappTemplateDetailRequest extends $tea.Model {
181
+ custWabaId?: string;
220
182
  language?: string;
221
- ownerId?: number;
222
183
  templateCode?: string;
223
184
  static names(): {
224
185
  [key: string]: string;
@@ -249,6 +210,7 @@ export declare class GetChatappTemplateDetailResponse extends $tea.Model {
249
210
  headers: {
250
211
  [key: string]: string;
251
212
  };
213
+ statusCode: number;
252
214
  body: GetChatappTemplateDetailResponseBody;
253
215
  static names(): {
254
216
  [key: string]: string;
@@ -262,6 +224,7 @@ export declare class GetChatappTemplateDetailResponse extends $tea.Model {
262
224
  }
263
225
  export declare class ListChatappTemplateRequest extends $tea.Model {
264
226
  auditStatus?: string;
227
+ custWabaId?: string;
265
228
  language?: string;
266
229
  name?: string;
267
230
  page?: ListChatappTemplateRequestPage;
@@ -277,6 +240,7 @@ export declare class ListChatappTemplateRequest extends $tea.Model {
277
240
  }
278
241
  export declare class ListChatappTemplateShrinkRequest extends $tea.Model {
279
242
  auditStatus?: string;
243
+ custWabaId?: string;
280
244
  language?: string;
281
245
  name?: string;
282
246
  pageShrink?: string;
@@ -309,6 +273,7 @@ export declare class ListChatappTemplateResponse extends $tea.Model {
309
273
  headers: {
310
274
  [key: string]: string;
311
275
  };
276
+ statusCode: number;
312
277
  body: ListChatappTemplateResponseBody;
313
278
  static names(): {
314
279
  [key: string]: string;
@@ -323,6 +288,9 @@ export declare class ListChatappTemplateResponse extends $tea.Model {
323
288
  export declare class SendChatappMessageRequest extends $tea.Model {
324
289
  channelType?: string;
325
290
  content?: string;
291
+ custWabaId?: string;
292
+ fallBackContent?: string;
293
+ fallBackId?: string;
326
294
  from?: string;
327
295
  language?: string;
328
296
  messageType?: string;
@@ -346,6 +314,9 @@ export declare class SendChatappMessageRequest extends $tea.Model {
346
314
  export declare class SendChatappMessageShrinkRequest extends $tea.Model {
347
315
  channelType?: string;
348
316
  content?: string;
317
+ custWabaId?: string;
318
+ fallBackContent?: string;
319
+ fallBackId?: string;
349
320
  from?: string;
350
321
  language?: string;
351
322
  messageType?: string;
@@ -383,6 +354,7 @@ export declare class SendChatappMessageResponse extends $tea.Model {
383
354
  headers: {
384
355
  [key: string]: string;
385
356
  };
357
+ statusCode: number;
386
358
  body: SendChatappMessageResponseBody;
387
359
  static names(): {
388
360
  [key: string]: string;
@@ -394,63 +366,6 @@ export declare class SendChatappMessageResponse extends $tea.Model {
394
366
  [key: string]: any;
395
367
  });
396
368
  }
397
- export declare class SendMessageRequest extends $tea.Model {
398
- caption?: string;
399
- channelType?: string;
400
- fileName?: string;
401
- from?: string;
402
- link?: string;
403
- messageType?: string;
404
- ownerId?: number;
405
- resourceOwnerAccount?: string;
406
- resourceOwnerId?: number;
407
- templateBodyParams?: string;
408
- templateButtonParams?: string;
409
- templateCode?: string;
410
- templateHeaderParams?: string;
411
- text?: string;
412
- to?: string;
413
- type?: string;
414
- static names(): {
415
- [key: string]: string;
416
- };
417
- static types(): {
418
- [key: string]: any;
419
- };
420
- constructor(map?: {
421
- [key: string]: any;
422
- });
423
- }
424
- export declare class SendMessageResponseBody extends $tea.Model {
425
- module?: SendMessageResponseBodyModule;
426
- requestId?: string;
427
- resultCode?: string;
428
- resultMessage?: string;
429
- static names(): {
430
- [key: string]: string;
431
- };
432
- static types(): {
433
- [key: string]: any;
434
- };
435
- constructor(map?: {
436
- [key: string]: any;
437
- });
438
- }
439
- export declare class SendMessageResponse extends $tea.Model {
440
- headers: {
441
- [key: string]: string;
442
- };
443
- body: SendMessageResponseBody;
444
- static names(): {
445
- [key: string]: string;
446
- };
447
- static types(): {
448
- [key: string]: any;
449
- };
450
- constructor(map?: {
451
- [key: string]: any;
452
- });
453
- }
454
369
  export declare class CheckChatappContactsResponseBodyData extends $tea.Model {
455
370
  phoneNumber?: string;
456
371
  status?: string;
@@ -464,19 +379,6 @@ export declare class CheckChatappContactsResponseBodyData extends $tea.Model {
464
379
  [key: string]: any;
465
380
  });
466
381
  }
467
- export declare class CheckContactsResponseBodyContacts extends $tea.Model {
468
- phoneNumber?: string;
469
- status?: string;
470
- static names(): {
471
- [key: string]: string;
472
- };
473
- static types(): {
474
- [key: string]: any;
475
- };
476
- constructor(map?: {
477
- [key: string]: any;
478
- });
479
- }
480
382
  export declare class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
481
383
  phoneNumber?: string;
482
384
  text?: string;
@@ -495,6 +397,8 @@ export declare class CreateChatappTemplateRequestComponentsButtons extends $tea.
495
397
  }
496
398
  export declare class CreateChatappTemplateRequestComponents extends $tea.Model {
497
399
  buttons?: CreateChatappTemplateRequestComponentsButtons[];
400
+ caption?: string;
401
+ fileName?: string;
498
402
  format?: string;
499
403
  text?: string;
500
404
  type?: string;
@@ -540,6 +444,9 @@ export declare class GetChatappTemplateDetailResponseBodyDataComponentsButtons e
540
444
  }
541
445
  export declare class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
542
446
  buttons?: GetChatappTemplateDetailResponseBodyDataComponentsButtons[];
447
+ caption?: string;
448
+ fileName?: string;
449
+ format?: string;
543
450
  text?: string;
544
451
  type?: string;
545
452
  url?: string;
@@ -602,20 +509,6 @@ export declare class ListChatappTemplateResponseBodyListTemplate extends $tea.Mo
602
509
  [key: string]: any;
603
510
  });
604
511
  }
605
- export declare class SendMessageResponseBodyModule extends $tea.Model {
606
- fromId?: string;
607
- messageId?: string;
608
- toId?: string;
609
- static names(): {
610
- [key: string]: string;
611
- };
612
- static types(): {
613
- [key: string]: any;
614
- };
615
- constructor(map?: {
616
- [key: string]: any;
617
- });
618
- }
619
512
  export default class Client extends OpenApi {
620
513
  constructor(config: $OpenApi.Config);
621
514
  getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
@@ -623,8 +516,6 @@ export default class Client extends OpenApi {
623
516
  }, endpoint: string): string;
624
517
  checkChatappContactsWithOptions(tmpReq: CheckChatappContactsRequest, runtime: $Util.RuntimeOptions): Promise<CheckChatappContactsResponse>;
625
518
  checkChatappContacts(request: CheckChatappContactsRequest): Promise<CheckChatappContactsResponse>;
626
- checkContactsWithOptions(request: CheckContactsRequest, runtime: $Util.RuntimeOptions): Promise<CheckContactsResponse>;
627
- checkContacts(request: CheckContactsRequest): Promise<CheckContactsResponse>;
628
519
  createChatappTemplateWithOptions(tmpReq: CreateChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<CreateChatappTemplateResponse>;
629
520
  createChatappTemplate(request: CreateChatappTemplateRequest): Promise<CreateChatappTemplateResponse>;
630
521
  deleteChatappTemplateWithOptions(request: DeleteChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<DeleteChatappTemplateResponse>;
@@ -635,6 +526,4 @@ export default class Client extends OpenApi {
635
526
  listChatappTemplate(request: ListChatappTemplateRequest): Promise<ListChatappTemplateResponse>;
636
527
  sendChatappMessageWithOptions(tmpReq: SendChatappMessageRequest, runtime: $Util.RuntimeOptions): Promise<SendChatappMessageResponse>;
637
528
  sendChatappMessage(request: SendChatappMessageRequest): Promise<SendChatappMessageResponse>;
638
- sendMessageWithOptions(request: SendMessageRequest, runtime: $Util.RuntimeOptions): Promise<SendMessageResponse>;
639
- sendMessage(request: SendMessageRequest): Promise<SendMessageResponse>;
640
529
  }