@alicloud/cams20200606 1.0.7 → 1.0.10
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 +65 -100
- package/dist/client.js +162 -259
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +204 -319
package/dist/client.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export declare class CheckChatappContactsResponse extends $tea.Model {
|
|
|
53
53
|
headers: {
|
|
54
54
|
[key: string]: string;
|
|
55
55
|
};
|
|
56
|
+
statusCode: number;
|
|
56
57
|
body: CheckChatappContactsResponseBody;
|
|
57
58
|
static names(): {
|
|
58
59
|
[key: string]: string;
|
|
@@ -64,53 +65,6 @@ export declare class CheckChatappContactsResponse extends $tea.Model {
|
|
|
64
65
|
[key: string]: any;
|
|
65
66
|
});
|
|
66
67
|
}
|
|
67
|
-
export declare class CheckContactsRequest extends $tea.Model {
|
|
68
|
-
channelType?: string;
|
|
69
|
-
contacts?: string;
|
|
70
|
-
from?: string;
|
|
71
|
-
ownerId?: number;
|
|
72
|
-
resourceOwnerAccount?: string;
|
|
73
|
-
resourceOwnerId?: number;
|
|
74
|
-
static names(): {
|
|
75
|
-
[key: string]: string;
|
|
76
|
-
};
|
|
77
|
-
static types(): {
|
|
78
|
-
[key: string]: any;
|
|
79
|
-
};
|
|
80
|
-
constructor(map?: {
|
|
81
|
-
[key: string]: any;
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
export declare class CheckContactsResponseBody extends $tea.Model {
|
|
85
|
-
contacts?: CheckContactsResponseBodyContacts[];
|
|
86
|
-
requestId?: string;
|
|
87
|
-
resultCode?: string;
|
|
88
|
-
resultMessage?: string;
|
|
89
|
-
static names(): {
|
|
90
|
-
[key: string]: string;
|
|
91
|
-
};
|
|
92
|
-
static types(): {
|
|
93
|
-
[key: string]: any;
|
|
94
|
-
};
|
|
95
|
-
constructor(map?: {
|
|
96
|
-
[key: string]: any;
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
export declare class CheckContactsResponse extends $tea.Model {
|
|
100
|
-
headers: {
|
|
101
|
-
[key: string]: string;
|
|
102
|
-
};
|
|
103
|
-
body: CheckContactsResponseBody;
|
|
104
|
-
static names(): {
|
|
105
|
-
[key: string]: string;
|
|
106
|
-
};
|
|
107
|
-
static types(): {
|
|
108
|
-
[key: string]: any;
|
|
109
|
-
};
|
|
110
|
-
constructor(map?: {
|
|
111
|
-
[key: string]: any;
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
68
|
export declare class CreateChatappTemplateRequest extends $tea.Model {
|
|
115
69
|
category?: string;
|
|
116
70
|
components?: CreateChatappTemplateRequestComponents[];
|
|
@@ -168,6 +122,7 @@ export declare class CreateChatappTemplateResponse extends $tea.Model {
|
|
|
168
122
|
headers: {
|
|
169
123
|
[key: string]: string;
|
|
170
124
|
};
|
|
125
|
+
statusCode: number;
|
|
171
126
|
body: CreateChatappTemplateResponseBody;
|
|
172
127
|
static names(): {
|
|
173
128
|
[key: string]: string;
|
|
@@ -210,6 +165,7 @@ export declare class DeleteChatappTemplateResponse extends $tea.Model {
|
|
|
210
165
|
headers: {
|
|
211
166
|
[key: string]: string;
|
|
212
167
|
};
|
|
168
|
+
statusCode: number;
|
|
213
169
|
body: DeleteChatappTemplateResponseBody;
|
|
214
170
|
static names(): {
|
|
215
171
|
[key: string]: string;
|
|
@@ -254,6 +210,7 @@ export declare class GetChatappTemplateDetailResponse extends $tea.Model {
|
|
|
254
210
|
headers: {
|
|
255
211
|
[key: string]: string;
|
|
256
212
|
};
|
|
213
|
+
statusCode: number;
|
|
257
214
|
body: GetChatappTemplateDetailResponseBody;
|
|
258
215
|
static names(): {
|
|
259
216
|
[key: string]: string;
|
|
@@ -316,6 +273,7 @@ export declare class ListChatappTemplateResponse extends $tea.Model {
|
|
|
316
273
|
headers: {
|
|
317
274
|
[key: string]: string;
|
|
318
275
|
};
|
|
276
|
+
statusCode: number;
|
|
319
277
|
body: ListChatappTemplateResponseBody;
|
|
320
278
|
static names(): {
|
|
321
279
|
[key: string]: string;
|
|
@@ -327,20 +285,16 @@ export declare class ListChatappTemplateResponse extends $tea.Model {
|
|
|
327
285
|
[key: string]: any;
|
|
328
286
|
});
|
|
329
287
|
}
|
|
330
|
-
export declare class
|
|
288
|
+
export declare class SendChatappMassMessageRequest extends $tea.Model {
|
|
331
289
|
channelType?: string;
|
|
332
|
-
content?: string;
|
|
333
290
|
custWabaId?: string;
|
|
291
|
+
fallBackContent?: string;
|
|
292
|
+
fallBackId?: string;
|
|
334
293
|
from?: string;
|
|
335
294
|
language?: string;
|
|
336
|
-
|
|
337
|
-
|
|
295
|
+
senderList?: SendChatappMassMessageRequestSenderList[];
|
|
296
|
+
taskId?: string;
|
|
338
297
|
templateCode?: string;
|
|
339
|
-
templateParams?: {
|
|
340
|
-
[key: string]: string;
|
|
341
|
-
};
|
|
342
|
-
to?: string;
|
|
343
|
-
type?: string;
|
|
344
298
|
static names(): {
|
|
345
299
|
[key: string]: string;
|
|
346
300
|
};
|
|
@@ -351,18 +305,16 @@ export declare class SendChatappMessageRequest extends $tea.Model {
|
|
|
351
305
|
[key: string]: any;
|
|
352
306
|
});
|
|
353
307
|
}
|
|
354
|
-
export declare class
|
|
308
|
+
export declare class SendChatappMassMessageShrinkRequest extends $tea.Model {
|
|
355
309
|
channelType?: string;
|
|
356
|
-
content?: string;
|
|
357
310
|
custWabaId?: string;
|
|
311
|
+
fallBackContent?: string;
|
|
312
|
+
fallBackId?: string;
|
|
358
313
|
from?: string;
|
|
359
314
|
language?: string;
|
|
360
|
-
|
|
361
|
-
|
|
315
|
+
senderListShrink?: string;
|
|
316
|
+
taskId?: string;
|
|
362
317
|
templateCode?: string;
|
|
363
|
-
templateParamsShrink?: string;
|
|
364
|
-
to?: string;
|
|
365
|
-
type?: string;
|
|
366
318
|
static names(): {
|
|
367
319
|
[key: string]: string;
|
|
368
320
|
};
|
|
@@ -373,10 +325,10 @@ export declare class SendChatappMessageShrinkRequest extends $tea.Model {
|
|
|
373
325
|
[key: string]: any;
|
|
374
326
|
});
|
|
375
327
|
}
|
|
376
|
-
export declare class
|
|
328
|
+
export declare class SendChatappMassMessageResponseBody extends $tea.Model {
|
|
377
329
|
code?: string;
|
|
330
|
+
groupMessageId?: string;
|
|
378
331
|
message?: string;
|
|
379
|
-
messageId?: string;
|
|
380
332
|
requestId?: string;
|
|
381
333
|
static names(): {
|
|
382
334
|
[key: string]: string;
|
|
@@ -388,11 +340,12 @@ export declare class SendChatappMessageResponseBody extends $tea.Model {
|
|
|
388
340
|
[key: string]: any;
|
|
389
341
|
});
|
|
390
342
|
}
|
|
391
|
-
export declare class
|
|
343
|
+
export declare class SendChatappMassMessageResponse extends $tea.Model {
|
|
392
344
|
headers: {
|
|
393
345
|
[key: string]: string;
|
|
394
346
|
};
|
|
395
|
-
|
|
347
|
+
statusCode: number;
|
|
348
|
+
body: SendChatappMassMessageResponseBody;
|
|
396
349
|
static names(): {
|
|
397
350
|
[key: string]: string;
|
|
398
351
|
};
|
|
@@ -403,21 +356,20 @@ export declare class SendChatappMessageResponse extends $tea.Model {
|
|
|
403
356
|
[key: string]: any;
|
|
404
357
|
});
|
|
405
358
|
}
|
|
406
|
-
export declare class
|
|
407
|
-
caption?: string;
|
|
359
|
+
export declare class SendChatappMessageRequest extends $tea.Model {
|
|
408
360
|
channelType?: string;
|
|
409
|
-
|
|
361
|
+
content?: string;
|
|
362
|
+
custWabaId?: string;
|
|
363
|
+
fallBackContent?: string;
|
|
364
|
+
fallBackId?: string;
|
|
410
365
|
from?: string;
|
|
411
|
-
|
|
366
|
+
language?: string;
|
|
412
367
|
messageType?: string;
|
|
413
|
-
|
|
414
|
-
resourceOwnerAccount?: string;
|
|
415
|
-
resourceOwnerId?: number;
|
|
416
|
-
templateBodyParams?: string;
|
|
417
|
-
templateButtonParams?: string;
|
|
368
|
+
payload?: string[];
|
|
418
369
|
templateCode?: string;
|
|
419
|
-
|
|
420
|
-
|
|
370
|
+
templateParams?: {
|
|
371
|
+
[key: string]: string;
|
|
372
|
+
};
|
|
421
373
|
to?: string;
|
|
422
374
|
type?: string;
|
|
423
375
|
static names(): {
|
|
@@ -430,11 +382,20 @@ export declare class SendMessageRequest extends $tea.Model {
|
|
|
430
382
|
[key: string]: any;
|
|
431
383
|
});
|
|
432
384
|
}
|
|
433
|
-
export declare class
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
385
|
+
export declare class SendChatappMessageShrinkRequest extends $tea.Model {
|
|
386
|
+
channelType?: string;
|
|
387
|
+
content?: string;
|
|
388
|
+
custWabaId?: string;
|
|
389
|
+
fallBackContent?: string;
|
|
390
|
+
fallBackId?: string;
|
|
391
|
+
from?: string;
|
|
392
|
+
language?: string;
|
|
393
|
+
messageType?: string;
|
|
394
|
+
payloadShrink?: string;
|
|
395
|
+
templateCode?: string;
|
|
396
|
+
templateParamsShrink?: string;
|
|
397
|
+
to?: string;
|
|
398
|
+
type?: string;
|
|
438
399
|
static names(): {
|
|
439
400
|
[key: string]: string;
|
|
440
401
|
};
|
|
@@ -445,11 +406,11 @@ export declare class SendMessageResponseBody extends $tea.Model {
|
|
|
445
406
|
[key: string]: any;
|
|
446
407
|
});
|
|
447
408
|
}
|
|
448
|
-
export declare class
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
409
|
+
export declare class SendChatappMessageResponseBody extends $tea.Model {
|
|
410
|
+
code?: string;
|
|
411
|
+
message?: string;
|
|
412
|
+
messageId?: string;
|
|
413
|
+
requestId?: string;
|
|
453
414
|
static names(): {
|
|
454
415
|
[key: string]: string;
|
|
455
416
|
};
|
|
@@ -460,9 +421,12 @@ export declare class SendMessageResponse extends $tea.Model {
|
|
|
460
421
|
[key: string]: any;
|
|
461
422
|
});
|
|
462
423
|
}
|
|
463
|
-
export declare class
|
|
464
|
-
|
|
465
|
-
|
|
424
|
+
export declare class SendChatappMessageResponse extends $tea.Model {
|
|
425
|
+
headers: {
|
|
426
|
+
[key: string]: string;
|
|
427
|
+
};
|
|
428
|
+
statusCode: number;
|
|
429
|
+
body: SendChatappMessageResponseBody;
|
|
466
430
|
static names(): {
|
|
467
431
|
[key: string]: string;
|
|
468
432
|
};
|
|
@@ -473,7 +437,7 @@ export declare class CheckChatappContactsResponseBodyData extends $tea.Model {
|
|
|
473
437
|
[key: string]: any;
|
|
474
438
|
});
|
|
475
439
|
}
|
|
476
|
-
export declare class
|
|
440
|
+
export declare class CheckChatappContactsResponseBodyData extends $tea.Model {
|
|
477
441
|
phoneNumber?: string;
|
|
478
442
|
status?: string;
|
|
479
443
|
static names(): {
|
|
@@ -553,6 +517,7 @@ export declare class GetChatappTemplateDetailResponseBodyDataComponents extends
|
|
|
553
517
|
buttons?: GetChatappTemplateDetailResponseBodyDataComponentsButtons[];
|
|
554
518
|
caption?: string;
|
|
555
519
|
fileName?: string;
|
|
520
|
+
format?: string;
|
|
556
521
|
text?: string;
|
|
557
522
|
type?: string;
|
|
558
523
|
url?: string;
|
|
@@ -615,10 +580,12 @@ export declare class ListChatappTemplateResponseBodyListTemplate extends $tea.Mo
|
|
|
615
580
|
[key: string]: any;
|
|
616
581
|
});
|
|
617
582
|
}
|
|
618
|
-
export declare class
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
583
|
+
export declare class SendChatappMassMessageRequestSenderList extends $tea.Model {
|
|
584
|
+
payload?: string[];
|
|
585
|
+
templateParams?: {
|
|
586
|
+
[key: string]: string;
|
|
587
|
+
};
|
|
588
|
+
to?: string;
|
|
622
589
|
static names(): {
|
|
623
590
|
[key: string]: string;
|
|
624
591
|
};
|
|
@@ -636,8 +603,6 @@ export default class Client extends OpenApi {
|
|
|
636
603
|
}, endpoint: string): string;
|
|
637
604
|
checkChatappContactsWithOptions(tmpReq: CheckChatappContactsRequest, runtime: $Util.RuntimeOptions): Promise<CheckChatappContactsResponse>;
|
|
638
605
|
checkChatappContacts(request: CheckChatappContactsRequest): Promise<CheckChatappContactsResponse>;
|
|
639
|
-
checkContactsWithOptions(request: CheckContactsRequest, runtime: $Util.RuntimeOptions): Promise<CheckContactsResponse>;
|
|
640
|
-
checkContacts(request: CheckContactsRequest): Promise<CheckContactsResponse>;
|
|
641
606
|
createChatappTemplateWithOptions(tmpReq: CreateChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<CreateChatappTemplateResponse>;
|
|
642
607
|
createChatappTemplate(request: CreateChatappTemplateRequest): Promise<CreateChatappTemplateResponse>;
|
|
643
608
|
deleteChatappTemplateWithOptions(request: DeleteChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<DeleteChatappTemplateResponse>;
|
|
@@ -646,8 +611,8 @@ export default class Client extends OpenApi {
|
|
|
646
611
|
getChatappTemplateDetail(request: GetChatappTemplateDetailRequest): Promise<GetChatappTemplateDetailResponse>;
|
|
647
612
|
listChatappTemplateWithOptions(tmpReq: ListChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<ListChatappTemplateResponse>;
|
|
648
613
|
listChatappTemplate(request: ListChatappTemplateRequest): Promise<ListChatappTemplateResponse>;
|
|
614
|
+
sendChatappMassMessageWithOptions(tmpReq: SendChatappMassMessageRequest, runtime: $Util.RuntimeOptions): Promise<SendChatappMassMessageResponse>;
|
|
615
|
+
sendChatappMassMessage(request: SendChatappMassMessageRequest): Promise<SendChatappMassMessageResponse>;
|
|
649
616
|
sendChatappMessageWithOptions(tmpReq: SendChatappMessageRequest, runtime: $Util.RuntimeOptions): Promise<SendChatappMessageResponse>;
|
|
650
617
|
sendChatappMessage(request: SendChatappMessageRequest): Promise<SendChatappMessageResponse>;
|
|
651
|
-
sendMessageWithOptions(request: SendMessageRequest, runtime: $Util.RuntimeOptions): Promise<SendMessageResponse>;
|
|
652
|
-
sendMessage(request: SendMessageRequest): Promise<SendMessageResponse>;
|
|
653
618
|
}
|