@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/src/client.ts
CHANGED
|
@@ -94,10 +94,12 @@ export class CheckChatappContactsResponseBody extends $tea.Model {
|
|
|
94
94
|
|
|
95
95
|
export class CheckChatappContactsResponse extends $tea.Model {
|
|
96
96
|
headers: { [key: string]: string };
|
|
97
|
+
statusCode: number;
|
|
97
98
|
body: CheckChatappContactsResponseBody;
|
|
98
99
|
static names(): { [key: string]: string } {
|
|
99
100
|
return {
|
|
100
101
|
headers: 'headers',
|
|
102
|
+
statusCode: 'statusCode',
|
|
101
103
|
body: 'body',
|
|
102
104
|
};
|
|
103
105
|
}
|
|
@@ -105,6 +107,7 @@ export class CheckChatappContactsResponse extends $tea.Model {
|
|
|
105
107
|
static types(): { [key: string]: any } {
|
|
106
108
|
return {
|
|
107
109
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
110
|
+
statusCode: 'number',
|
|
108
111
|
body: CheckChatappContactsResponseBody,
|
|
109
112
|
};
|
|
110
113
|
}
|
|
@@ -114,90 +117,6 @@ export class CheckChatappContactsResponse extends $tea.Model {
|
|
|
114
117
|
}
|
|
115
118
|
}
|
|
116
119
|
|
|
117
|
-
export class CheckContactsRequest extends $tea.Model {
|
|
118
|
-
channelType?: string;
|
|
119
|
-
contacts?: string;
|
|
120
|
-
from?: string;
|
|
121
|
-
ownerId?: number;
|
|
122
|
-
resourceOwnerAccount?: string;
|
|
123
|
-
resourceOwnerId?: number;
|
|
124
|
-
static names(): { [key: string]: string } {
|
|
125
|
-
return {
|
|
126
|
-
channelType: 'ChannelType',
|
|
127
|
-
contacts: 'Contacts',
|
|
128
|
-
from: 'From',
|
|
129
|
-
ownerId: 'OwnerId',
|
|
130
|
-
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
131
|
-
resourceOwnerId: 'ResourceOwnerId',
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
static types(): { [key: string]: any } {
|
|
136
|
-
return {
|
|
137
|
-
channelType: 'string',
|
|
138
|
-
contacts: 'string',
|
|
139
|
-
from: 'string',
|
|
140
|
-
ownerId: 'number',
|
|
141
|
-
resourceOwnerAccount: 'string',
|
|
142
|
-
resourceOwnerId: 'number',
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
constructor(map?: { [key: string]: any }) {
|
|
147
|
-
super(map);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
export class CheckContactsResponseBody extends $tea.Model {
|
|
152
|
-
contacts?: CheckContactsResponseBodyContacts[];
|
|
153
|
-
requestId?: string;
|
|
154
|
-
resultCode?: string;
|
|
155
|
-
resultMessage?: string;
|
|
156
|
-
static names(): { [key: string]: string } {
|
|
157
|
-
return {
|
|
158
|
-
contacts: 'Contacts',
|
|
159
|
-
requestId: 'RequestId',
|
|
160
|
-
resultCode: 'ResultCode',
|
|
161
|
-
resultMessage: 'ResultMessage',
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
static types(): { [key: string]: any } {
|
|
166
|
-
return {
|
|
167
|
-
contacts: { 'type': 'array', 'itemType': CheckContactsResponseBodyContacts },
|
|
168
|
-
requestId: 'string',
|
|
169
|
-
resultCode: 'string',
|
|
170
|
-
resultMessage: 'string',
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
constructor(map?: { [key: string]: any }) {
|
|
175
|
-
super(map);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
export class CheckContactsResponse extends $tea.Model {
|
|
180
|
-
headers: { [key: string]: string };
|
|
181
|
-
body: CheckContactsResponseBody;
|
|
182
|
-
static names(): { [key: string]: string } {
|
|
183
|
-
return {
|
|
184
|
-
headers: 'headers',
|
|
185
|
-
body: 'body',
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
static types(): { [key: string]: any } {
|
|
190
|
-
return {
|
|
191
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
192
|
-
body: CheckContactsResponseBody,
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
constructor(map?: { [key: string]: any }) {
|
|
197
|
-
super(map);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
120
|
export class CreateChatappTemplateRequest extends $tea.Model {
|
|
202
121
|
category?: string;
|
|
203
122
|
components?: CreateChatappTemplateRequestComponents[];
|
|
@@ -302,10 +221,12 @@ export class CreateChatappTemplateResponseBody extends $tea.Model {
|
|
|
302
221
|
|
|
303
222
|
export class CreateChatappTemplateResponse extends $tea.Model {
|
|
304
223
|
headers: { [key: string]: string };
|
|
224
|
+
statusCode: number;
|
|
305
225
|
body: CreateChatappTemplateResponseBody;
|
|
306
226
|
static names(): { [key: string]: string } {
|
|
307
227
|
return {
|
|
308
228
|
headers: 'headers',
|
|
229
|
+
statusCode: 'statusCode',
|
|
309
230
|
body: 'body',
|
|
310
231
|
};
|
|
311
232
|
}
|
|
@@ -313,6 +234,7 @@ export class CreateChatappTemplateResponse extends $tea.Model {
|
|
|
313
234
|
static types(): { [key: string]: any } {
|
|
314
235
|
return {
|
|
315
236
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
237
|
+
statusCode: 'number',
|
|
316
238
|
body: CreateChatappTemplateResponseBody,
|
|
317
239
|
};
|
|
318
240
|
}
|
|
@@ -371,10 +293,12 @@ export class DeleteChatappTemplateResponseBody extends $tea.Model {
|
|
|
371
293
|
|
|
372
294
|
export class DeleteChatappTemplateResponse extends $tea.Model {
|
|
373
295
|
headers: { [key: string]: string };
|
|
296
|
+
statusCode: number;
|
|
374
297
|
body: DeleteChatappTemplateResponseBody;
|
|
375
298
|
static names(): { [key: string]: string } {
|
|
376
299
|
return {
|
|
377
300
|
headers: 'headers',
|
|
301
|
+
statusCode: 'statusCode',
|
|
378
302
|
body: 'body',
|
|
379
303
|
};
|
|
380
304
|
}
|
|
@@ -382,6 +306,7 @@ export class DeleteChatappTemplateResponse extends $tea.Model {
|
|
|
382
306
|
static types(): { [key: string]: any } {
|
|
383
307
|
return {
|
|
384
308
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
309
|
+
statusCode: 'number',
|
|
385
310
|
body: DeleteChatappTemplateResponseBody,
|
|
386
311
|
};
|
|
387
312
|
}
|
|
@@ -446,10 +371,12 @@ export class GetChatappTemplateDetailResponseBody extends $tea.Model {
|
|
|
446
371
|
|
|
447
372
|
export class GetChatappTemplateDetailResponse extends $tea.Model {
|
|
448
373
|
headers: { [key: string]: string };
|
|
374
|
+
statusCode: number;
|
|
449
375
|
body: GetChatappTemplateDetailResponseBody;
|
|
450
376
|
static names(): { [key: string]: string } {
|
|
451
377
|
return {
|
|
452
378
|
headers: 'headers',
|
|
379
|
+
statusCode: 'statusCode',
|
|
453
380
|
body: 'body',
|
|
454
381
|
};
|
|
455
382
|
}
|
|
@@ -457,6 +384,7 @@ export class GetChatappTemplateDetailResponse extends $tea.Model {
|
|
|
457
384
|
static types(): { [key: string]: any } {
|
|
458
385
|
return {
|
|
459
386
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
387
|
+
statusCode: 'number',
|
|
460
388
|
body: GetChatappTemplateDetailResponseBody,
|
|
461
389
|
};
|
|
462
390
|
}
|
|
@@ -558,10 +486,12 @@ export class ListChatappTemplateResponseBody extends $tea.Model {
|
|
|
558
486
|
|
|
559
487
|
export class ListChatappTemplateResponse extends $tea.Model {
|
|
560
488
|
headers: { [key: string]: string };
|
|
489
|
+
statusCode: number;
|
|
561
490
|
body: ListChatappTemplateResponseBody;
|
|
562
491
|
static names(): { [key: string]: string } {
|
|
563
492
|
return {
|
|
564
493
|
headers: 'headers',
|
|
494
|
+
statusCode: 'statusCode',
|
|
565
495
|
body: 'body',
|
|
566
496
|
};
|
|
567
497
|
}
|
|
@@ -569,6 +499,7 @@ export class ListChatappTemplateResponse extends $tea.Model {
|
|
|
569
499
|
static types(): { [key: string]: any } {
|
|
570
500
|
return {
|
|
571
501
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
502
|
+
statusCode: 'number',
|
|
572
503
|
body: ListChatappTemplateResponseBody,
|
|
573
504
|
};
|
|
574
505
|
}
|
|
@@ -578,47 +509,41 @@ export class ListChatappTemplateResponse extends $tea.Model {
|
|
|
578
509
|
}
|
|
579
510
|
}
|
|
580
511
|
|
|
581
|
-
export class
|
|
512
|
+
export class SendChatappMassMessageRequest extends $tea.Model {
|
|
582
513
|
channelType?: string;
|
|
583
|
-
content?: string;
|
|
584
514
|
custWabaId?: string;
|
|
515
|
+
fallBackContent?: string;
|
|
516
|
+
fallBackId?: string;
|
|
585
517
|
from?: string;
|
|
586
518
|
language?: string;
|
|
587
|
-
|
|
588
|
-
|
|
519
|
+
senderList?: SendChatappMassMessageRequestSenderList[];
|
|
520
|
+
taskId?: string;
|
|
589
521
|
templateCode?: string;
|
|
590
|
-
templateParams?: { [key: string]: string };
|
|
591
|
-
to?: string;
|
|
592
|
-
type?: string;
|
|
593
522
|
static names(): { [key: string]: string } {
|
|
594
523
|
return {
|
|
595
524
|
channelType: 'ChannelType',
|
|
596
|
-
content: 'Content',
|
|
597
525
|
custWabaId: 'CustWabaId',
|
|
526
|
+
fallBackContent: 'FallBackContent',
|
|
527
|
+
fallBackId: 'FallBackId',
|
|
598
528
|
from: 'From',
|
|
599
529
|
language: 'Language',
|
|
600
|
-
|
|
601
|
-
|
|
530
|
+
senderList: 'SenderList',
|
|
531
|
+
taskId: 'TaskId',
|
|
602
532
|
templateCode: 'TemplateCode',
|
|
603
|
-
templateParams: 'TemplateParams',
|
|
604
|
-
to: 'To',
|
|
605
|
-
type: 'Type',
|
|
606
533
|
};
|
|
607
534
|
}
|
|
608
535
|
|
|
609
536
|
static types(): { [key: string]: any } {
|
|
610
537
|
return {
|
|
611
538
|
channelType: 'string',
|
|
612
|
-
content: 'string',
|
|
613
539
|
custWabaId: 'string',
|
|
540
|
+
fallBackContent: 'string',
|
|
541
|
+
fallBackId: 'string',
|
|
614
542
|
from: 'string',
|
|
615
543
|
language: 'string',
|
|
616
|
-
|
|
617
|
-
|
|
544
|
+
senderList: { 'type': 'array', 'itemType': SendChatappMassMessageRequestSenderList },
|
|
545
|
+
taskId: 'string',
|
|
618
546
|
templateCode: 'string',
|
|
619
|
-
templateParams: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
620
|
-
to: 'string',
|
|
621
|
-
type: 'string',
|
|
622
547
|
};
|
|
623
548
|
}
|
|
624
549
|
|
|
@@ -627,47 +552,41 @@ export class SendChatappMessageRequest extends $tea.Model {
|
|
|
627
552
|
}
|
|
628
553
|
}
|
|
629
554
|
|
|
630
|
-
export class
|
|
555
|
+
export class SendChatappMassMessageShrinkRequest extends $tea.Model {
|
|
631
556
|
channelType?: string;
|
|
632
|
-
content?: string;
|
|
633
557
|
custWabaId?: string;
|
|
558
|
+
fallBackContent?: string;
|
|
559
|
+
fallBackId?: string;
|
|
634
560
|
from?: string;
|
|
635
561
|
language?: string;
|
|
636
|
-
|
|
637
|
-
|
|
562
|
+
senderListShrink?: string;
|
|
563
|
+
taskId?: string;
|
|
638
564
|
templateCode?: string;
|
|
639
|
-
templateParamsShrink?: string;
|
|
640
|
-
to?: string;
|
|
641
|
-
type?: string;
|
|
642
565
|
static names(): { [key: string]: string } {
|
|
643
566
|
return {
|
|
644
567
|
channelType: 'ChannelType',
|
|
645
|
-
content: 'Content',
|
|
646
568
|
custWabaId: 'CustWabaId',
|
|
569
|
+
fallBackContent: 'FallBackContent',
|
|
570
|
+
fallBackId: 'FallBackId',
|
|
647
571
|
from: 'From',
|
|
648
572
|
language: 'Language',
|
|
649
|
-
|
|
650
|
-
|
|
573
|
+
senderListShrink: 'SenderList',
|
|
574
|
+
taskId: 'TaskId',
|
|
651
575
|
templateCode: 'TemplateCode',
|
|
652
|
-
templateParamsShrink: 'TemplateParams',
|
|
653
|
-
to: 'To',
|
|
654
|
-
type: 'Type',
|
|
655
576
|
};
|
|
656
577
|
}
|
|
657
578
|
|
|
658
579
|
static types(): { [key: string]: any } {
|
|
659
580
|
return {
|
|
660
581
|
channelType: 'string',
|
|
661
|
-
content: 'string',
|
|
662
582
|
custWabaId: 'string',
|
|
583
|
+
fallBackContent: 'string',
|
|
584
|
+
fallBackId: 'string',
|
|
663
585
|
from: 'string',
|
|
664
586
|
language: 'string',
|
|
665
|
-
|
|
666
|
-
|
|
587
|
+
senderListShrink: 'string',
|
|
588
|
+
taskId: 'string',
|
|
667
589
|
templateCode: 'string',
|
|
668
|
-
templateParamsShrink: 'string',
|
|
669
|
-
to: 'string',
|
|
670
|
-
type: 'string',
|
|
671
590
|
};
|
|
672
591
|
}
|
|
673
592
|
|
|
@@ -676,16 +595,16 @@ export class SendChatappMessageShrinkRequest extends $tea.Model {
|
|
|
676
595
|
}
|
|
677
596
|
}
|
|
678
597
|
|
|
679
|
-
export class
|
|
598
|
+
export class SendChatappMassMessageResponseBody extends $tea.Model {
|
|
680
599
|
code?: string;
|
|
600
|
+
groupMessageId?: string;
|
|
681
601
|
message?: string;
|
|
682
|
-
messageId?: string;
|
|
683
602
|
requestId?: string;
|
|
684
603
|
static names(): { [key: string]: string } {
|
|
685
604
|
return {
|
|
686
605
|
code: 'Code',
|
|
606
|
+
groupMessageId: 'GroupMessageId',
|
|
687
607
|
message: 'Message',
|
|
688
|
-
messageId: 'MessageId',
|
|
689
608
|
requestId: 'RequestId',
|
|
690
609
|
};
|
|
691
610
|
}
|
|
@@ -693,8 +612,8 @@ export class SendChatappMessageResponseBody extends $tea.Model {
|
|
|
693
612
|
static types(): { [key: string]: any } {
|
|
694
613
|
return {
|
|
695
614
|
code: 'string',
|
|
615
|
+
groupMessageId: 'string',
|
|
696
616
|
message: 'string',
|
|
697
|
-
messageId: 'string',
|
|
698
617
|
requestId: 'string',
|
|
699
618
|
};
|
|
700
619
|
}
|
|
@@ -704,12 +623,14 @@ export class SendChatappMessageResponseBody extends $tea.Model {
|
|
|
704
623
|
}
|
|
705
624
|
}
|
|
706
625
|
|
|
707
|
-
export class
|
|
626
|
+
export class SendChatappMassMessageResponse extends $tea.Model {
|
|
708
627
|
headers: { [key: string]: string };
|
|
709
|
-
|
|
628
|
+
statusCode: number;
|
|
629
|
+
body: SendChatappMassMessageResponseBody;
|
|
710
630
|
static names(): { [key: string]: string } {
|
|
711
631
|
return {
|
|
712
632
|
headers: 'headers',
|
|
633
|
+
statusCode: 'statusCode',
|
|
713
634
|
body: 'body',
|
|
714
635
|
};
|
|
715
636
|
}
|
|
@@ -717,7 +638,8 @@ export class SendChatappMessageResponse extends $tea.Model {
|
|
|
717
638
|
static types(): { [key: string]: any } {
|
|
718
639
|
return {
|
|
719
640
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
720
|
-
|
|
641
|
+
statusCode: 'number',
|
|
642
|
+
body: SendChatappMassMessageResponseBody,
|
|
721
643
|
};
|
|
722
644
|
}
|
|
723
645
|
|
|
@@ -726,39 +648,33 @@ export class SendChatappMessageResponse extends $tea.Model {
|
|
|
726
648
|
}
|
|
727
649
|
}
|
|
728
650
|
|
|
729
|
-
export class
|
|
730
|
-
caption?: string;
|
|
651
|
+
export class SendChatappMessageRequest extends $tea.Model {
|
|
731
652
|
channelType?: string;
|
|
732
|
-
|
|
653
|
+
content?: string;
|
|
654
|
+
custWabaId?: string;
|
|
655
|
+
fallBackContent?: string;
|
|
656
|
+
fallBackId?: string;
|
|
733
657
|
from?: string;
|
|
734
|
-
|
|
658
|
+
language?: string;
|
|
735
659
|
messageType?: string;
|
|
736
|
-
|
|
737
|
-
resourceOwnerAccount?: string;
|
|
738
|
-
resourceOwnerId?: number;
|
|
739
|
-
templateBodyParams?: string;
|
|
740
|
-
templateButtonParams?: string;
|
|
660
|
+
payload?: string[];
|
|
741
661
|
templateCode?: string;
|
|
742
|
-
|
|
743
|
-
text?: string;
|
|
662
|
+
templateParams?: { [key: string]: string };
|
|
744
663
|
to?: string;
|
|
745
664
|
type?: string;
|
|
746
665
|
static names(): { [key: string]: string } {
|
|
747
666
|
return {
|
|
748
|
-
caption: 'Caption',
|
|
749
667
|
channelType: 'ChannelType',
|
|
750
|
-
|
|
668
|
+
content: 'Content',
|
|
669
|
+
custWabaId: 'CustWabaId',
|
|
670
|
+
fallBackContent: 'FallBackContent',
|
|
671
|
+
fallBackId: 'FallBackId',
|
|
751
672
|
from: 'From',
|
|
752
|
-
|
|
673
|
+
language: 'Language',
|
|
753
674
|
messageType: 'MessageType',
|
|
754
|
-
|
|
755
|
-
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
756
|
-
resourceOwnerId: 'ResourceOwnerId',
|
|
757
|
-
templateBodyParams: 'TemplateBodyParams',
|
|
758
|
-
templateButtonParams: 'TemplateButtonParams',
|
|
675
|
+
payload: 'Payload',
|
|
759
676
|
templateCode: 'TemplateCode',
|
|
760
|
-
|
|
761
|
-
text: 'Text',
|
|
677
|
+
templateParams: 'TemplateParams',
|
|
762
678
|
to: 'To',
|
|
763
679
|
type: 'Type',
|
|
764
680
|
};
|
|
@@ -766,20 +682,17 @@ export class SendMessageRequest extends $tea.Model {
|
|
|
766
682
|
|
|
767
683
|
static types(): { [key: string]: any } {
|
|
768
684
|
return {
|
|
769
|
-
caption: 'string',
|
|
770
685
|
channelType: 'string',
|
|
771
|
-
|
|
686
|
+
content: 'string',
|
|
687
|
+
custWabaId: 'string',
|
|
688
|
+
fallBackContent: 'string',
|
|
689
|
+
fallBackId: 'string',
|
|
772
690
|
from: 'string',
|
|
773
|
-
|
|
691
|
+
language: 'string',
|
|
774
692
|
messageType: 'string',
|
|
775
|
-
|
|
776
|
-
resourceOwnerAccount: 'string',
|
|
777
|
-
resourceOwnerId: 'number',
|
|
778
|
-
templateBodyParams: 'string',
|
|
779
|
-
templateButtonParams: 'string',
|
|
693
|
+
payload: { 'type': 'array', 'itemType': 'string' },
|
|
780
694
|
templateCode: 'string',
|
|
781
|
-
|
|
782
|
-
text: 'string',
|
|
695
|
+
templateParams: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
783
696
|
to: 'string',
|
|
784
697
|
type: 'string',
|
|
785
698
|
};
|
|
@@ -790,26 +703,53 @@ export class SendMessageRequest extends $tea.Model {
|
|
|
790
703
|
}
|
|
791
704
|
}
|
|
792
705
|
|
|
793
|
-
export class
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
706
|
+
export class SendChatappMessageShrinkRequest extends $tea.Model {
|
|
707
|
+
channelType?: string;
|
|
708
|
+
content?: string;
|
|
709
|
+
custWabaId?: string;
|
|
710
|
+
fallBackContent?: string;
|
|
711
|
+
fallBackId?: string;
|
|
712
|
+
from?: string;
|
|
713
|
+
language?: string;
|
|
714
|
+
messageType?: string;
|
|
715
|
+
payloadShrink?: string;
|
|
716
|
+
templateCode?: string;
|
|
717
|
+
templateParamsShrink?: string;
|
|
718
|
+
to?: string;
|
|
719
|
+
type?: string;
|
|
798
720
|
static names(): { [key: string]: string } {
|
|
799
721
|
return {
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
722
|
+
channelType: 'ChannelType',
|
|
723
|
+
content: 'Content',
|
|
724
|
+
custWabaId: 'CustWabaId',
|
|
725
|
+
fallBackContent: 'FallBackContent',
|
|
726
|
+
fallBackId: 'FallBackId',
|
|
727
|
+
from: 'From',
|
|
728
|
+
language: 'Language',
|
|
729
|
+
messageType: 'MessageType',
|
|
730
|
+
payloadShrink: 'Payload',
|
|
731
|
+
templateCode: 'TemplateCode',
|
|
732
|
+
templateParamsShrink: 'TemplateParams',
|
|
733
|
+
to: 'To',
|
|
734
|
+
type: 'Type',
|
|
804
735
|
};
|
|
805
736
|
}
|
|
806
737
|
|
|
807
738
|
static types(): { [key: string]: any } {
|
|
808
739
|
return {
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
740
|
+
channelType: 'string',
|
|
741
|
+
content: 'string',
|
|
742
|
+
custWabaId: 'string',
|
|
743
|
+
fallBackContent: 'string',
|
|
744
|
+
fallBackId: 'string',
|
|
745
|
+
from: 'string',
|
|
746
|
+
language: 'string',
|
|
747
|
+
messageType: 'string',
|
|
748
|
+
payloadShrink: 'string',
|
|
749
|
+
templateCode: 'string',
|
|
750
|
+
templateParamsShrink: 'string',
|
|
751
|
+
to: 'string',
|
|
752
|
+
type: 'string',
|
|
813
753
|
};
|
|
814
754
|
}
|
|
815
755
|
|
|
@@ -818,20 +758,26 @@ export class SendMessageResponseBody extends $tea.Model {
|
|
|
818
758
|
}
|
|
819
759
|
}
|
|
820
760
|
|
|
821
|
-
export class
|
|
822
|
-
|
|
823
|
-
|
|
761
|
+
export class SendChatappMessageResponseBody extends $tea.Model {
|
|
762
|
+
code?: string;
|
|
763
|
+
message?: string;
|
|
764
|
+
messageId?: string;
|
|
765
|
+
requestId?: string;
|
|
824
766
|
static names(): { [key: string]: string } {
|
|
825
767
|
return {
|
|
826
|
-
|
|
827
|
-
|
|
768
|
+
code: 'Code',
|
|
769
|
+
message: 'Message',
|
|
770
|
+
messageId: 'MessageId',
|
|
771
|
+
requestId: 'RequestId',
|
|
828
772
|
};
|
|
829
773
|
}
|
|
830
774
|
|
|
831
775
|
static types(): { [key: string]: any } {
|
|
832
776
|
return {
|
|
833
|
-
|
|
834
|
-
|
|
777
|
+
code: 'string',
|
|
778
|
+
message: 'string',
|
|
779
|
+
messageId: 'string',
|
|
780
|
+
requestId: 'string',
|
|
835
781
|
};
|
|
836
782
|
}
|
|
837
783
|
|
|
@@ -840,20 +786,23 @@ export class SendMessageResponse extends $tea.Model {
|
|
|
840
786
|
}
|
|
841
787
|
}
|
|
842
788
|
|
|
843
|
-
export class
|
|
844
|
-
|
|
845
|
-
|
|
789
|
+
export class SendChatappMessageResponse extends $tea.Model {
|
|
790
|
+
headers: { [key: string]: string };
|
|
791
|
+
statusCode: number;
|
|
792
|
+
body: SendChatappMessageResponseBody;
|
|
846
793
|
static names(): { [key: string]: string } {
|
|
847
794
|
return {
|
|
848
|
-
|
|
849
|
-
|
|
795
|
+
headers: 'headers',
|
|
796
|
+
statusCode: 'statusCode',
|
|
797
|
+
body: 'body',
|
|
850
798
|
};
|
|
851
799
|
}
|
|
852
800
|
|
|
853
801
|
static types(): { [key: string]: any } {
|
|
854
802
|
return {
|
|
855
|
-
|
|
856
|
-
|
|
803
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
804
|
+
statusCode: 'number',
|
|
805
|
+
body: SendChatappMessageResponseBody,
|
|
857
806
|
};
|
|
858
807
|
}
|
|
859
808
|
|
|
@@ -862,7 +811,7 @@ export class CheckChatappContactsResponseBodyData extends $tea.Model {
|
|
|
862
811
|
}
|
|
863
812
|
}
|
|
864
813
|
|
|
865
|
-
export class
|
|
814
|
+
export class CheckChatappContactsResponseBodyData extends $tea.Model {
|
|
866
815
|
phoneNumber?: string;
|
|
867
816
|
status?: string;
|
|
868
817
|
static names(): { [key: string]: string } {
|
|
@@ -1009,6 +958,7 @@ export class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Mod
|
|
|
1009
958
|
buttons?: GetChatappTemplateDetailResponseBodyDataComponentsButtons[];
|
|
1010
959
|
caption?: string;
|
|
1011
960
|
fileName?: string;
|
|
961
|
+
format?: string;
|
|
1012
962
|
text?: string;
|
|
1013
963
|
type?: string;
|
|
1014
964
|
url?: string;
|
|
@@ -1017,6 +967,7 @@ export class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Mod
|
|
|
1017
967
|
buttons: 'Buttons',
|
|
1018
968
|
caption: 'Caption',
|
|
1019
969
|
fileName: 'FileName',
|
|
970
|
+
format: 'Format',
|
|
1020
971
|
text: 'Text',
|
|
1021
972
|
type: 'Type',
|
|
1022
973
|
url: 'Url',
|
|
@@ -1028,6 +979,7 @@ export class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Mod
|
|
|
1028
979
|
buttons: { 'type': 'array', 'itemType': GetChatappTemplateDetailResponseBodyDataComponentsButtons },
|
|
1029
980
|
caption: 'string',
|
|
1030
981
|
fileName: 'string',
|
|
982
|
+
format: 'string',
|
|
1031
983
|
text: 'string',
|
|
1032
984
|
type: 'string',
|
|
1033
985
|
url: 'string',
|
|
@@ -1129,23 +1081,23 @@ export class ListChatappTemplateResponseBodyListTemplate extends $tea.Model {
|
|
|
1129
1081
|
}
|
|
1130
1082
|
}
|
|
1131
1083
|
|
|
1132
|
-
export class
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1084
|
+
export class SendChatappMassMessageRequestSenderList extends $tea.Model {
|
|
1085
|
+
payload?: string[];
|
|
1086
|
+
templateParams?: { [key: string]: string };
|
|
1087
|
+
to?: string;
|
|
1136
1088
|
static names(): { [key: string]: string } {
|
|
1137
1089
|
return {
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1090
|
+
payload: 'Payload',
|
|
1091
|
+
templateParams: 'TemplateParams',
|
|
1092
|
+
to: 'To',
|
|
1141
1093
|
};
|
|
1142
1094
|
}
|
|
1143
1095
|
|
|
1144
1096
|
static types(): { [key: string]: any } {
|
|
1145
1097
|
return {
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1098
|
+
payload: { 'type': 'array', 'itemType': 'string' },
|
|
1099
|
+
templateParams: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1100
|
+
to: 'string',
|
|
1149
1101
|
};
|
|
1150
1102
|
}
|
|
1151
1103
|
|
|
@@ -1224,57 +1176,6 @@ export default class Client extends OpenApi {
|
|
|
1224
1176
|
return await this.checkChatappContactsWithOptions(request, runtime);
|
|
1225
1177
|
}
|
|
1226
1178
|
|
|
1227
|
-
async checkContactsWithOptions(request: CheckContactsRequest, runtime: $Util.RuntimeOptions): Promise<CheckContactsResponse> {
|
|
1228
|
-
Util.validateModel(request);
|
|
1229
|
-
let query = { };
|
|
1230
|
-
if (!Util.isUnset(request.ownerId)) {
|
|
1231
|
-
query["OwnerId"] = request.ownerId;
|
|
1232
|
-
}
|
|
1233
|
-
|
|
1234
|
-
if (!Util.isUnset(request.resourceOwnerAccount)) {
|
|
1235
|
-
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1236
|
-
}
|
|
1237
|
-
|
|
1238
|
-
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
1239
|
-
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1240
|
-
}
|
|
1241
|
-
|
|
1242
|
-
let body : {[key: string ]: any} = { };
|
|
1243
|
-
if (!Util.isUnset(request.channelType)) {
|
|
1244
|
-
body["ChannelType"] = request.channelType;
|
|
1245
|
-
}
|
|
1246
|
-
|
|
1247
|
-
if (!Util.isUnset(request.contacts)) {
|
|
1248
|
-
body["Contacts"] = request.contacts;
|
|
1249
|
-
}
|
|
1250
|
-
|
|
1251
|
-
if (!Util.isUnset(request.from)) {
|
|
1252
|
-
body["From"] = request.from;
|
|
1253
|
-
}
|
|
1254
|
-
|
|
1255
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
1256
|
-
query: OpenApiUtil.query(query),
|
|
1257
|
-
body: OpenApiUtil.parseToMap(body),
|
|
1258
|
-
});
|
|
1259
|
-
let params = new $OpenApi.Params({
|
|
1260
|
-
action: "CheckContacts",
|
|
1261
|
-
version: "2020-06-06",
|
|
1262
|
-
protocol: "HTTPS",
|
|
1263
|
-
pathname: "/",
|
|
1264
|
-
method: "POST",
|
|
1265
|
-
authType: "AK",
|
|
1266
|
-
style: "RPC",
|
|
1267
|
-
reqBodyType: "formData",
|
|
1268
|
-
bodyType: "json",
|
|
1269
|
-
});
|
|
1270
|
-
return $tea.cast<CheckContactsResponse>(await this.callApi(params, req, runtime), new CheckContactsResponse({}));
|
|
1271
|
-
}
|
|
1272
|
-
|
|
1273
|
-
async checkContacts(request: CheckContactsRequest): Promise<CheckContactsResponse> {
|
|
1274
|
-
let runtime = new $Util.RuntimeOptions({ });
|
|
1275
|
-
return await this.checkContactsWithOptions(request, runtime);
|
|
1276
|
-
}
|
|
1277
|
-
|
|
1278
1179
|
async createChatappTemplateWithOptions(tmpReq: CreateChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<CreateChatappTemplateResponse> {
|
|
1279
1180
|
Util.validateModel(tmpReq);
|
|
1280
1181
|
let request = new CreateChatappTemplateShrinkRequest({ });
|
|
@@ -1459,25 +1360,12 @@ export default class Client extends OpenApi {
|
|
|
1459
1360
|
return await this.listChatappTemplateWithOptions(request, runtime);
|
|
1460
1361
|
}
|
|
1461
1362
|
|
|
1462
|
-
async
|
|
1363
|
+
async sendChatappMassMessageWithOptions(tmpReq: SendChatappMassMessageRequest, runtime: $Util.RuntimeOptions): Promise<SendChatappMassMessageResponse> {
|
|
1463
1364
|
Util.validateModel(tmpReq);
|
|
1464
|
-
let request = new
|
|
1365
|
+
let request = new SendChatappMassMessageShrinkRequest({ });
|
|
1465
1366
|
OpenApiUtil.convert(tmpReq, request);
|
|
1466
|
-
if (!Util.isUnset(tmpReq.
|
|
1467
|
-
request.
|
|
1468
|
-
}
|
|
1469
|
-
|
|
1470
|
-
if (!Util.isUnset(tmpReq.templateParams)) {
|
|
1471
|
-
request.templateParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.templateParams, "TemplateParams", "json");
|
|
1472
|
-
}
|
|
1473
|
-
|
|
1474
|
-
let query = { };
|
|
1475
|
-
if (!Util.isUnset(request.content)) {
|
|
1476
|
-
query["Content"] = request.content;
|
|
1477
|
-
}
|
|
1478
|
-
|
|
1479
|
-
if (!Util.isUnset(request.payloadShrink)) {
|
|
1480
|
-
query["Payload"] = request.payloadShrink;
|
|
1367
|
+
if (!Util.isUnset(tmpReq.senderList)) {
|
|
1368
|
+
request.senderListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.senderList, "SenderList", "json");
|
|
1481
1369
|
}
|
|
1482
1370
|
|
|
1483
1371
|
let body : {[key: string ]: any} = { };
|
|
@@ -1489,40 +1377,39 @@ export default class Client extends OpenApi {
|
|
|
1489
1377
|
body["CustWabaId"] = request.custWabaId;
|
|
1490
1378
|
}
|
|
1491
1379
|
|
|
1492
|
-
if (!Util.isUnset(request.
|
|
1493
|
-
body["
|
|
1380
|
+
if (!Util.isUnset(request.fallBackContent)) {
|
|
1381
|
+
body["FallBackContent"] = request.fallBackContent;
|
|
1494
1382
|
}
|
|
1495
1383
|
|
|
1496
|
-
if (!Util.isUnset(request.
|
|
1497
|
-
body["
|
|
1384
|
+
if (!Util.isUnset(request.fallBackId)) {
|
|
1385
|
+
body["FallBackId"] = request.fallBackId;
|
|
1498
1386
|
}
|
|
1499
1387
|
|
|
1500
|
-
if (!Util.isUnset(request.
|
|
1501
|
-
body["
|
|
1388
|
+
if (!Util.isUnset(request.from)) {
|
|
1389
|
+
body["From"] = request.from;
|
|
1502
1390
|
}
|
|
1503
1391
|
|
|
1504
|
-
if (!Util.isUnset(request.
|
|
1505
|
-
body["
|
|
1392
|
+
if (!Util.isUnset(request.language)) {
|
|
1393
|
+
body["Language"] = request.language;
|
|
1506
1394
|
}
|
|
1507
1395
|
|
|
1508
|
-
if (!Util.isUnset(request.
|
|
1509
|
-
body["
|
|
1396
|
+
if (!Util.isUnset(request.senderListShrink)) {
|
|
1397
|
+
body["SenderList"] = request.senderListShrink;
|
|
1510
1398
|
}
|
|
1511
1399
|
|
|
1512
|
-
if (!Util.isUnset(request.
|
|
1513
|
-
body["
|
|
1400
|
+
if (!Util.isUnset(request.taskId)) {
|
|
1401
|
+
body["TaskId"] = request.taskId;
|
|
1514
1402
|
}
|
|
1515
1403
|
|
|
1516
|
-
if (!Util.isUnset(request.
|
|
1517
|
-
body["
|
|
1404
|
+
if (!Util.isUnset(request.templateCode)) {
|
|
1405
|
+
body["TemplateCode"] = request.templateCode;
|
|
1518
1406
|
}
|
|
1519
1407
|
|
|
1520
1408
|
let req = new $OpenApi.OpenApiRequest({
|
|
1521
|
-
query: OpenApiUtil.query(query),
|
|
1522
1409
|
body: OpenApiUtil.parseToMap(body),
|
|
1523
1410
|
});
|
|
1524
1411
|
let params = new $OpenApi.Params({
|
|
1525
|
-
action: "
|
|
1412
|
+
action: "SendChatappMassMessage",
|
|
1526
1413
|
version: "2020-06-06",
|
|
1527
1414
|
protocol: "HTTPS",
|
|
1528
1415
|
pathname: "/",
|
|
@@ -1532,72 +1419,70 @@ export default class Client extends OpenApi {
|
|
|
1532
1419
|
reqBodyType: "formData",
|
|
1533
1420
|
bodyType: "json",
|
|
1534
1421
|
});
|
|
1535
|
-
return $tea.cast<
|
|
1422
|
+
return $tea.cast<SendChatappMassMessageResponse>(await this.callApi(params, req, runtime), new SendChatappMassMessageResponse({}));
|
|
1536
1423
|
}
|
|
1537
1424
|
|
|
1538
|
-
async
|
|
1425
|
+
async sendChatappMassMessage(request: SendChatappMassMessageRequest): Promise<SendChatappMassMessageResponse> {
|
|
1539
1426
|
let runtime = new $Util.RuntimeOptions({ });
|
|
1540
|
-
return await this.
|
|
1427
|
+
return await this.sendChatappMassMessageWithOptions(request, runtime);
|
|
1541
1428
|
}
|
|
1542
1429
|
|
|
1543
|
-
async
|
|
1544
|
-
Util.validateModel(
|
|
1545
|
-
let
|
|
1546
|
-
|
|
1547
|
-
|
|
1430
|
+
async sendChatappMessageWithOptions(tmpReq: SendChatappMessageRequest, runtime: $Util.RuntimeOptions): Promise<SendChatappMessageResponse> {
|
|
1431
|
+
Util.validateModel(tmpReq);
|
|
1432
|
+
let request = new SendChatappMessageShrinkRequest({ });
|
|
1433
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
1434
|
+
if (!Util.isUnset(tmpReq.payload)) {
|
|
1435
|
+
request.payloadShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.payload, "Payload", "json");
|
|
1548
1436
|
}
|
|
1549
1437
|
|
|
1550
|
-
if (!Util.isUnset(
|
|
1551
|
-
|
|
1438
|
+
if (!Util.isUnset(tmpReq.templateParams)) {
|
|
1439
|
+
request.templateParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.templateParams, "TemplateParams", "json");
|
|
1552
1440
|
}
|
|
1553
1441
|
|
|
1554
|
-
|
|
1555
|
-
|
|
1442
|
+
let query = { };
|
|
1443
|
+
if (!Util.isUnset(request.content)) {
|
|
1444
|
+
query["Content"] = request.content;
|
|
1556
1445
|
}
|
|
1557
1446
|
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
body["Caption"] = request.caption;
|
|
1447
|
+
if (!Util.isUnset(request.payloadShrink)) {
|
|
1448
|
+
query["Payload"] = request.payloadShrink;
|
|
1561
1449
|
}
|
|
1562
1450
|
|
|
1451
|
+
let body : {[key: string ]: any} = { };
|
|
1563
1452
|
if (!Util.isUnset(request.channelType)) {
|
|
1564
1453
|
body["ChannelType"] = request.channelType;
|
|
1565
1454
|
}
|
|
1566
1455
|
|
|
1567
|
-
if (!Util.isUnset(request.
|
|
1568
|
-
body["
|
|
1456
|
+
if (!Util.isUnset(request.custWabaId)) {
|
|
1457
|
+
body["CustWabaId"] = request.custWabaId;
|
|
1569
1458
|
}
|
|
1570
1459
|
|
|
1571
|
-
if (!Util.isUnset(request.
|
|
1572
|
-
body["
|
|
1460
|
+
if (!Util.isUnset(request.fallBackContent)) {
|
|
1461
|
+
body["FallBackContent"] = request.fallBackContent;
|
|
1573
1462
|
}
|
|
1574
1463
|
|
|
1575
|
-
if (!Util.isUnset(request.
|
|
1576
|
-
body["
|
|
1464
|
+
if (!Util.isUnset(request.fallBackId)) {
|
|
1465
|
+
body["FallBackId"] = request.fallBackId;
|
|
1577
1466
|
}
|
|
1578
1467
|
|
|
1579
|
-
if (!Util.isUnset(request.
|
|
1580
|
-
body["
|
|
1468
|
+
if (!Util.isUnset(request.from)) {
|
|
1469
|
+
body["From"] = request.from;
|
|
1581
1470
|
}
|
|
1582
1471
|
|
|
1583
|
-
if (!Util.isUnset(request.
|
|
1584
|
-
body["
|
|
1472
|
+
if (!Util.isUnset(request.language)) {
|
|
1473
|
+
body["Language"] = request.language;
|
|
1585
1474
|
}
|
|
1586
1475
|
|
|
1587
|
-
if (!Util.isUnset(request.
|
|
1588
|
-
body["
|
|
1476
|
+
if (!Util.isUnset(request.messageType)) {
|
|
1477
|
+
body["MessageType"] = request.messageType;
|
|
1589
1478
|
}
|
|
1590
1479
|
|
|
1591
1480
|
if (!Util.isUnset(request.templateCode)) {
|
|
1592
1481
|
body["TemplateCode"] = request.templateCode;
|
|
1593
1482
|
}
|
|
1594
1483
|
|
|
1595
|
-
if (!Util.isUnset(request.
|
|
1596
|
-
body["
|
|
1597
|
-
}
|
|
1598
|
-
|
|
1599
|
-
if (!Util.isUnset(request.text)) {
|
|
1600
|
-
body["Text"] = request.text;
|
|
1484
|
+
if (!Util.isUnset(request.templateParamsShrink)) {
|
|
1485
|
+
body["TemplateParams"] = request.templateParamsShrink;
|
|
1601
1486
|
}
|
|
1602
1487
|
|
|
1603
1488
|
if (!Util.isUnset(request.to)) {
|
|
@@ -1613,7 +1498,7 @@ export default class Client extends OpenApi {
|
|
|
1613
1498
|
body: OpenApiUtil.parseToMap(body),
|
|
1614
1499
|
});
|
|
1615
1500
|
let params = new $OpenApi.Params({
|
|
1616
|
-
action: "
|
|
1501
|
+
action: "SendChatappMessage",
|
|
1617
1502
|
version: "2020-06-06",
|
|
1618
1503
|
protocol: "HTTPS",
|
|
1619
1504
|
pathname: "/",
|
|
@@ -1623,12 +1508,12 @@ export default class Client extends OpenApi {
|
|
|
1623
1508
|
reqBodyType: "formData",
|
|
1624
1509
|
bodyType: "json",
|
|
1625
1510
|
});
|
|
1626
|
-
return $tea.cast<
|
|
1511
|
+
return $tea.cast<SendChatappMessageResponse>(await this.callApi(params, req, runtime), new SendChatappMessageResponse({}));
|
|
1627
1512
|
}
|
|
1628
1513
|
|
|
1629
|
-
async
|
|
1514
|
+
async sendChatappMessage(request: SendChatappMessageRequest): Promise<SendChatappMessageResponse> {
|
|
1630
1515
|
let runtime = new $Util.RuntimeOptions({ });
|
|
1631
|
-
return await this.
|
|
1516
|
+
return await this.sendChatappMessageWithOptions(request, runtime);
|
|
1632
1517
|
}
|
|
1633
1518
|
|
|
1634
1519
|
}
|