@alicloud/cams20200606 1.0.13 → 1.0.14
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 +143 -0
- package/dist/client.js +293 -0
- package/dist/client.js.map +1 -1
- package/package.json +4 -4
- package/src/client.ts +373 -0
package/dist/client.js
CHANGED
|
@@ -26,6 +26,7 @@ class BeeBotAssociateRequest extends $tea.Model {
|
|
|
26
26
|
static names() {
|
|
27
27
|
return {
|
|
28
28
|
chatBotInstanceId: 'ChatBotInstanceId',
|
|
29
|
+
custSpaceId: 'CustSpaceId',
|
|
29
30
|
isvCode: 'IsvCode',
|
|
30
31
|
perspective: 'Perspective',
|
|
31
32
|
recommendNum: 'RecommendNum',
|
|
@@ -36,6 +37,7 @@ class BeeBotAssociateRequest extends $tea.Model {
|
|
|
36
37
|
static types() {
|
|
37
38
|
return {
|
|
38
39
|
chatBotInstanceId: 'string',
|
|
40
|
+
custSpaceId: 'string',
|
|
39
41
|
isvCode: 'string',
|
|
40
42
|
perspective: { 'type': 'array', 'itemType': 'string' },
|
|
41
43
|
recommendNum: 'number',
|
|
@@ -52,6 +54,7 @@ class BeeBotAssociateShrinkRequest extends $tea.Model {
|
|
|
52
54
|
static names() {
|
|
53
55
|
return {
|
|
54
56
|
chatBotInstanceId: 'ChatBotInstanceId',
|
|
57
|
+
custSpaceId: 'CustSpaceId',
|
|
55
58
|
isvCode: 'IsvCode',
|
|
56
59
|
perspectiveShrink: 'Perspective',
|
|
57
60
|
recommendNum: 'RecommendNum',
|
|
@@ -62,6 +65,7 @@ class BeeBotAssociateShrinkRequest extends $tea.Model {
|
|
|
62
65
|
static types() {
|
|
63
66
|
return {
|
|
64
67
|
chatBotInstanceId: 'string',
|
|
68
|
+
custSpaceId: 'string',
|
|
65
69
|
isvCode: 'string',
|
|
66
70
|
perspectiveShrink: 'string',
|
|
67
71
|
recommendNum: 'number',
|
|
@@ -120,6 +124,7 @@ class BeeBotChatRequest extends $tea.Model {
|
|
|
120
124
|
static names() {
|
|
121
125
|
return {
|
|
122
126
|
chatBotInstanceId: 'ChatBotInstanceId',
|
|
127
|
+
custSpaceId: 'CustSpaceId',
|
|
123
128
|
intentName: 'IntentName',
|
|
124
129
|
isvCode: 'IsvCode',
|
|
125
130
|
knowledgeId: 'KnowledgeId',
|
|
@@ -134,6 +139,7 @@ class BeeBotChatRequest extends $tea.Model {
|
|
|
134
139
|
static types() {
|
|
135
140
|
return {
|
|
136
141
|
chatBotInstanceId: 'string',
|
|
142
|
+
custSpaceId: 'string',
|
|
137
143
|
intentName: 'string',
|
|
138
144
|
isvCode: 'string',
|
|
139
145
|
knowledgeId: 'string',
|
|
@@ -154,6 +160,7 @@ class BeeBotChatShrinkRequest extends $tea.Model {
|
|
|
154
160
|
static names() {
|
|
155
161
|
return {
|
|
156
162
|
chatBotInstanceId: 'ChatBotInstanceId',
|
|
163
|
+
custSpaceId: 'CustSpaceId',
|
|
157
164
|
intentName: 'IntentName',
|
|
158
165
|
isvCode: 'IsvCode',
|
|
159
166
|
knowledgeId: 'KnowledgeId',
|
|
@@ -168,6 +175,7 @@ class BeeBotChatShrinkRequest extends $tea.Model {
|
|
|
168
175
|
static types() {
|
|
169
176
|
return {
|
|
170
177
|
chatBotInstanceId: 'string',
|
|
178
|
+
custSpaceId: 'string',
|
|
171
179
|
intentName: 'string',
|
|
172
180
|
isvCode: 'string',
|
|
173
181
|
knowledgeId: 'string',
|
|
@@ -231,6 +239,7 @@ class CreateChatappTemplateRequest extends $tea.Model {
|
|
|
231
239
|
return {
|
|
232
240
|
category: 'Category',
|
|
233
241
|
components: 'Components',
|
|
242
|
+
custSpaceId: 'CustSpaceId',
|
|
234
243
|
custWabaId: 'CustWabaId',
|
|
235
244
|
example: 'Example',
|
|
236
245
|
isvCode: 'IsvCode',
|
|
@@ -243,6 +252,7 @@ class CreateChatappTemplateRequest extends $tea.Model {
|
|
|
243
252
|
return {
|
|
244
253
|
category: 'string',
|
|
245
254
|
components: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponents },
|
|
255
|
+
custSpaceId: 'string',
|
|
246
256
|
custWabaId: 'string',
|
|
247
257
|
example: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
248
258
|
isvCode: 'string',
|
|
@@ -261,6 +271,7 @@ class CreateChatappTemplateShrinkRequest extends $tea.Model {
|
|
|
261
271
|
return {
|
|
262
272
|
category: 'Category',
|
|
263
273
|
componentsShrink: 'Components',
|
|
274
|
+
custSpaceId: 'CustSpaceId',
|
|
264
275
|
custWabaId: 'CustWabaId',
|
|
265
276
|
exampleShrink: 'Example',
|
|
266
277
|
isvCode: 'IsvCode',
|
|
@@ -273,6 +284,7 @@ class CreateChatappTemplateShrinkRequest extends $tea.Model {
|
|
|
273
284
|
return {
|
|
274
285
|
category: 'string',
|
|
275
286
|
componentsShrink: 'string',
|
|
287
|
+
custSpaceId: 'string',
|
|
276
288
|
custWabaId: 'string',
|
|
277
289
|
exampleShrink: 'string',
|
|
278
290
|
isvCode: 'string',
|
|
@@ -331,6 +343,7 @@ class DeleteChatappTemplateRequest extends $tea.Model {
|
|
|
331
343
|
}
|
|
332
344
|
static names() {
|
|
333
345
|
return {
|
|
346
|
+
custSpaceId: 'CustSpaceId',
|
|
334
347
|
custWabaId: 'CustWabaId',
|
|
335
348
|
isvCode: 'IsvCode',
|
|
336
349
|
templateCode: 'TemplateCode',
|
|
@@ -338,6 +351,7 @@ class DeleteChatappTemplateRequest extends $tea.Model {
|
|
|
338
351
|
}
|
|
339
352
|
static types() {
|
|
340
353
|
return {
|
|
354
|
+
custSpaceId: 'string',
|
|
341
355
|
custWabaId: 'string',
|
|
342
356
|
isvCode: 'string',
|
|
343
357
|
templateCode: 'string',
|
|
@@ -391,6 +405,7 @@ class GetChatappTemplateDetailRequest extends $tea.Model {
|
|
|
391
405
|
}
|
|
392
406
|
static names() {
|
|
393
407
|
return {
|
|
408
|
+
custSpaceId: 'CustSpaceId',
|
|
394
409
|
custWabaId: 'CustWabaId',
|
|
395
410
|
isvCode: 'IsvCode',
|
|
396
411
|
language: 'Language',
|
|
@@ -399,6 +414,7 @@ class GetChatappTemplateDetailRequest extends $tea.Model {
|
|
|
399
414
|
}
|
|
400
415
|
static types() {
|
|
401
416
|
return {
|
|
417
|
+
custSpaceId: 'string',
|
|
402
418
|
custWabaId: 'string',
|
|
403
419
|
isvCode: 'string',
|
|
404
420
|
language: 'string',
|
|
@@ -456,6 +472,7 @@ class ListChatappTemplateRequest extends $tea.Model {
|
|
|
456
472
|
static names() {
|
|
457
473
|
return {
|
|
458
474
|
auditStatus: 'AuditStatus',
|
|
475
|
+
custSpaceId: 'CustSpaceId',
|
|
459
476
|
custWabaId: 'CustWabaId',
|
|
460
477
|
isvCode: 'IsvCode',
|
|
461
478
|
language: 'Language',
|
|
@@ -466,6 +483,7 @@ class ListChatappTemplateRequest extends $tea.Model {
|
|
|
466
483
|
static types() {
|
|
467
484
|
return {
|
|
468
485
|
auditStatus: 'string',
|
|
486
|
+
custSpaceId: 'string',
|
|
469
487
|
custWabaId: 'string',
|
|
470
488
|
isvCode: 'string',
|
|
471
489
|
language: 'string',
|
|
@@ -482,6 +500,7 @@ class ListChatappTemplateShrinkRequest extends $tea.Model {
|
|
|
482
500
|
static names() {
|
|
483
501
|
return {
|
|
484
502
|
auditStatus: 'AuditStatus',
|
|
503
|
+
custSpaceId: 'CustSpaceId',
|
|
485
504
|
custWabaId: 'CustWabaId',
|
|
486
505
|
isvCode: 'IsvCode',
|
|
487
506
|
language: 'Language',
|
|
@@ -492,6 +511,7 @@ class ListChatappTemplateShrinkRequest extends $tea.Model {
|
|
|
492
511
|
static types() {
|
|
493
512
|
return {
|
|
494
513
|
auditStatus: 'string',
|
|
514
|
+
custSpaceId: 'string',
|
|
495
515
|
custWabaId: 'string',
|
|
496
516
|
isvCode: 'string',
|
|
497
517
|
language: 'string',
|
|
@@ -550,6 +570,7 @@ class ModifyChatappTemplateRequest extends $tea.Model {
|
|
|
550
570
|
static names() {
|
|
551
571
|
return {
|
|
552
572
|
components: 'Components',
|
|
573
|
+
custSpaceId: 'CustSpaceId',
|
|
553
574
|
custWabaId: 'CustWabaId',
|
|
554
575
|
example: 'Example',
|
|
555
576
|
isvCode: 'IsvCode',
|
|
@@ -560,6 +581,7 @@ class ModifyChatappTemplateRequest extends $tea.Model {
|
|
|
560
581
|
static types() {
|
|
561
582
|
return {
|
|
562
583
|
components: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponents },
|
|
584
|
+
custSpaceId: 'string',
|
|
563
585
|
custWabaId: 'string',
|
|
564
586
|
example: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
565
587
|
isvCode: 'string',
|
|
@@ -576,6 +598,7 @@ class ModifyChatappTemplateShrinkRequest extends $tea.Model {
|
|
|
576
598
|
static names() {
|
|
577
599
|
return {
|
|
578
600
|
componentsShrink: 'Components',
|
|
601
|
+
custSpaceId: 'CustSpaceId',
|
|
579
602
|
custWabaId: 'CustWabaId',
|
|
580
603
|
exampleShrink: 'Example',
|
|
581
604
|
isvCode: 'IsvCode',
|
|
@@ -586,6 +609,7 @@ class ModifyChatappTemplateShrinkRequest extends $tea.Model {
|
|
|
586
609
|
static types() {
|
|
587
610
|
return {
|
|
588
611
|
componentsShrink: 'string',
|
|
612
|
+
custSpaceId: 'string',
|
|
589
613
|
custWabaId: 'string',
|
|
590
614
|
exampleShrink: 'string',
|
|
591
615
|
isvCode: 'string',
|
|
@@ -637,6 +661,126 @@ class ModifyChatappTemplateResponse extends $tea.Model {
|
|
|
637
661
|
}
|
|
638
662
|
}
|
|
639
663
|
exports.ModifyChatappTemplateResponse = ModifyChatappTemplateResponse;
|
|
664
|
+
class QueryChatappBindWabaRequest extends $tea.Model {
|
|
665
|
+
constructor(map) {
|
|
666
|
+
super(map);
|
|
667
|
+
}
|
|
668
|
+
static names() {
|
|
669
|
+
return {
|
|
670
|
+
custSpaceId: 'CustSpaceId',
|
|
671
|
+
isvCode: 'IsvCode',
|
|
672
|
+
};
|
|
673
|
+
}
|
|
674
|
+
static types() {
|
|
675
|
+
return {
|
|
676
|
+
custSpaceId: 'string',
|
|
677
|
+
isvCode: 'string',
|
|
678
|
+
};
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
exports.QueryChatappBindWabaRequest = QueryChatappBindWabaRequest;
|
|
682
|
+
class QueryChatappBindWabaResponseBody extends $tea.Model {
|
|
683
|
+
constructor(map) {
|
|
684
|
+
super(map);
|
|
685
|
+
}
|
|
686
|
+
static names() {
|
|
687
|
+
return {
|
|
688
|
+
code: 'Code',
|
|
689
|
+
data: 'Data',
|
|
690
|
+
message: 'Message',
|
|
691
|
+
requestId: 'RequestId',
|
|
692
|
+
};
|
|
693
|
+
}
|
|
694
|
+
static types() {
|
|
695
|
+
return {
|
|
696
|
+
code: 'string',
|
|
697
|
+
data: QueryChatappBindWabaResponseBodyData,
|
|
698
|
+
message: 'string',
|
|
699
|
+
requestId: 'string',
|
|
700
|
+
};
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
exports.QueryChatappBindWabaResponseBody = QueryChatappBindWabaResponseBody;
|
|
704
|
+
class QueryChatappBindWabaResponse extends $tea.Model {
|
|
705
|
+
constructor(map) {
|
|
706
|
+
super(map);
|
|
707
|
+
}
|
|
708
|
+
static names() {
|
|
709
|
+
return {
|
|
710
|
+
headers: 'headers',
|
|
711
|
+
statusCode: 'statusCode',
|
|
712
|
+
body: 'body',
|
|
713
|
+
};
|
|
714
|
+
}
|
|
715
|
+
static types() {
|
|
716
|
+
return {
|
|
717
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
718
|
+
statusCode: 'number',
|
|
719
|
+
body: QueryChatappBindWabaResponseBody,
|
|
720
|
+
};
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
exports.QueryChatappBindWabaResponse = QueryChatappBindWabaResponse;
|
|
724
|
+
class QueryChatappPhoneNumbersRequest extends $tea.Model {
|
|
725
|
+
constructor(map) {
|
|
726
|
+
super(map);
|
|
727
|
+
}
|
|
728
|
+
static names() {
|
|
729
|
+
return {
|
|
730
|
+
custSpaceId: 'CustSpaceId',
|
|
731
|
+
isvCode: 'IsvCode',
|
|
732
|
+
};
|
|
733
|
+
}
|
|
734
|
+
static types() {
|
|
735
|
+
return {
|
|
736
|
+
custSpaceId: 'string',
|
|
737
|
+
isvCode: 'string',
|
|
738
|
+
};
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
exports.QueryChatappPhoneNumbersRequest = QueryChatappPhoneNumbersRequest;
|
|
742
|
+
class QueryChatappPhoneNumbersResponseBody extends $tea.Model {
|
|
743
|
+
constructor(map) {
|
|
744
|
+
super(map);
|
|
745
|
+
}
|
|
746
|
+
static names() {
|
|
747
|
+
return {
|
|
748
|
+
code: 'Code',
|
|
749
|
+
message: 'Message',
|
|
750
|
+
phoneNumbers: 'PhoneNumbers',
|
|
751
|
+
requestId: 'RequestId',
|
|
752
|
+
};
|
|
753
|
+
}
|
|
754
|
+
static types() {
|
|
755
|
+
return {
|
|
756
|
+
code: 'string',
|
|
757
|
+
message: 'string',
|
|
758
|
+
phoneNumbers: { 'type': 'array', 'itemType': QueryChatappPhoneNumbersResponseBodyPhoneNumbers },
|
|
759
|
+
requestId: 'string',
|
|
760
|
+
};
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
exports.QueryChatappPhoneNumbersResponseBody = QueryChatappPhoneNumbersResponseBody;
|
|
764
|
+
class QueryChatappPhoneNumbersResponse extends $tea.Model {
|
|
765
|
+
constructor(map) {
|
|
766
|
+
super(map);
|
|
767
|
+
}
|
|
768
|
+
static names() {
|
|
769
|
+
return {
|
|
770
|
+
headers: 'headers',
|
|
771
|
+
statusCode: 'statusCode',
|
|
772
|
+
body: 'body',
|
|
773
|
+
};
|
|
774
|
+
}
|
|
775
|
+
static types() {
|
|
776
|
+
return {
|
|
777
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
778
|
+
statusCode: 'number',
|
|
779
|
+
body: QueryChatappPhoneNumbersResponseBody,
|
|
780
|
+
};
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
exports.QueryChatappPhoneNumbersResponse = QueryChatappPhoneNumbersResponse;
|
|
640
784
|
class SendChatappMassMessageRequest extends $tea.Model {
|
|
641
785
|
constructor(map) {
|
|
642
786
|
super(map);
|
|
@@ -644,6 +788,7 @@ class SendChatappMassMessageRequest extends $tea.Model {
|
|
|
644
788
|
static names() {
|
|
645
789
|
return {
|
|
646
790
|
channelType: 'ChannelType',
|
|
791
|
+
custSpaceId: 'CustSpaceId',
|
|
647
792
|
custWabaId: 'CustWabaId',
|
|
648
793
|
fallBackContent: 'FallBackContent',
|
|
649
794
|
fallBackId: 'FallBackId',
|
|
@@ -658,6 +803,7 @@ class SendChatappMassMessageRequest extends $tea.Model {
|
|
|
658
803
|
static types() {
|
|
659
804
|
return {
|
|
660
805
|
channelType: 'string',
|
|
806
|
+
custSpaceId: 'string',
|
|
661
807
|
custWabaId: 'string',
|
|
662
808
|
fallBackContent: 'string',
|
|
663
809
|
fallBackId: 'string',
|
|
@@ -678,6 +824,7 @@ class SendChatappMassMessageShrinkRequest extends $tea.Model {
|
|
|
678
824
|
static names() {
|
|
679
825
|
return {
|
|
680
826
|
channelType: 'ChannelType',
|
|
827
|
+
custSpaceId: 'CustSpaceId',
|
|
681
828
|
custWabaId: 'CustWabaId',
|
|
682
829
|
fallBackContent: 'FallBackContent',
|
|
683
830
|
fallBackId: 'FallBackId',
|
|
@@ -692,6 +839,7 @@ class SendChatappMassMessageShrinkRequest extends $tea.Model {
|
|
|
692
839
|
static types() {
|
|
693
840
|
return {
|
|
694
841
|
channelType: 'string',
|
|
842
|
+
custSpaceId: 'string',
|
|
695
843
|
custWabaId: 'string',
|
|
696
844
|
fallBackContent: 'string',
|
|
697
845
|
fallBackId: 'string',
|
|
@@ -755,6 +903,7 @@ class SendChatappMessageRequest extends $tea.Model {
|
|
|
755
903
|
return {
|
|
756
904
|
channelType: 'ChannelType',
|
|
757
905
|
content: 'Content',
|
|
906
|
+
custSpaceId: 'CustSpaceId',
|
|
758
907
|
custWabaId: 'CustWabaId',
|
|
759
908
|
fallBackContent: 'FallBackContent',
|
|
760
909
|
fallBackId: 'FallBackId',
|
|
@@ -773,6 +922,7 @@ class SendChatappMessageRequest extends $tea.Model {
|
|
|
773
922
|
return {
|
|
774
923
|
channelType: 'string',
|
|
775
924
|
content: 'string',
|
|
925
|
+
custSpaceId: 'string',
|
|
776
926
|
custWabaId: 'string',
|
|
777
927
|
fallBackContent: 'string',
|
|
778
928
|
fallBackId: 'string',
|
|
@@ -797,6 +947,7 @@ class SendChatappMessageShrinkRequest extends $tea.Model {
|
|
|
797
947
|
return {
|
|
798
948
|
channelType: 'ChannelType',
|
|
799
949
|
content: 'Content',
|
|
950
|
+
custSpaceId: 'CustSpaceId',
|
|
800
951
|
custWabaId: 'CustWabaId',
|
|
801
952
|
fallBackContent: 'FallBackContent',
|
|
802
953
|
fallBackId: 'FallBackId',
|
|
@@ -815,6 +966,7 @@ class SendChatappMessageShrinkRequest extends $tea.Model {
|
|
|
815
966
|
return {
|
|
816
967
|
channelType: 'string',
|
|
817
968
|
content: 'string',
|
|
969
|
+
custSpaceId: 'string',
|
|
818
970
|
custWabaId: 'string',
|
|
819
971
|
fallBackContent: 'string',
|
|
820
972
|
fallBackId: 'string',
|
|
@@ -1349,6 +1501,60 @@ class ModifyChatappTemplateResponseBodyData extends $tea.Model {
|
|
|
1349
1501
|
}
|
|
1350
1502
|
}
|
|
1351
1503
|
exports.ModifyChatappTemplateResponseBodyData = ModifyChatappTemplateResponseBodyData;
|
|
1504
|
+
class QueryChatappBindWabaResponseBodyData extends $tea.Model {
|
|
1505
|
+
constructor(map) {
|
|
1506
|
+
super(map);
|
|
1507
|
+
}
|
|
1508
|
+
static names() {
|
|
1509
|
+
return {
|
|
1510
|
+
accountReviewStatus: 'AccountReviewStatus',
|
|
1511
|
+
currency: 'Currency',
|
|
1512
|
+
id: 'Id',
|
|
1513
|
+
messageTemplateNamespace: 'MessageTemplateNamespace',
|
|
1514
|
+
name: 'Name',
|
|
1515
|
+
};
|
|
1516
|
+
}
|
|
1517
|
+
static types() {
|
|
1518
|
+
return {
|
|
1519
|
+
accountReviewStatus: 'string',
|
|
1520
|
+
currency: 'string',
|
|
1521
|
+
id: 'string',
|
|
1522
|
+
messageTemplateNamespace: 'string',
|
|
1523
|
+
name: 'string',
|
|
1524
|
+
};
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
exports.QueryChatappBindWabaResponseBodyData = QueryChatappBindWabaResponseBodyData;
|
|
1528
|
+
class QueryChatappPhoneNumbersResponseBodyPhoneNumbers extends $tea.Model {
|
|
1529
|
+
constructor(map) {
|
|
1530
|
+
super(map);
|
|
1531
|
+
}
|
|
1532
|
+
static names() {
|
|
1533
|
+
return {
|
|
1534
|
+
phoneNumber: 'PhoneNumber',
|
|
1535
|
+
qualityRating: 'QualityRating',
|
|
1536
|
+
status: 'Status',
|
|
1537
|
+
statusCallbackUrl: 'StatusCallbackUrl',
|
|
1538
|
+
statusQueue: 'StatusQueue',
|
|
1539
|
+
upCallbackUrl: 'UpCallbackUrl',
|
|
1540
|
+
upQueue: 'UpQueue',
|
|
1541
|
+
verifiedName: 'VerifiedName',
|
|
1542
|
+
};
|
|
1543
|
+
}
|
|
1544
|
+
static types() {
|
|
1545
|
+
return {
|
|
1546
|
+
phoneNumber: 'string',
|
|
1547
|
+
qualityRating: 'string',
|
|
1548
|
+
status: 'string',
|
|
1549
|
+
statusCallbackUrl: 'string',
|
|
1550
|
+
statusQueue: 'string',
|
|
1551
|
+
upCallbackUrl: 'string',
|
|
1552
|
+
upQueue: 'string',
|
|
1553
|
+
verifiedName: 'string',
|
|
1554
|
+
};
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
exports.QueryChatappPhoneNumbersResponseBodyPhoneNumbers = QueryChatappPhoneNumbersResponseBodyPhoneNumbers;
|
|
1352
1558
|
class SendChatappMassMessageRequestSenderList extends $tea.Model {
|
|
1353
1559
|
constructor(map) {
|
|
1354
1560
|
super(map);
|
|
@@ -1396,6 +1602,9 @@ class Client extends openapi_client_1.default {
|
|
|
1396
1602
|
if (!tea_util_1.default.isUnset(request.chatBotInstanceId)) {
|
|
1397
1603
|
body["ChatBotInstanceId"] = request.chatBotInstanceId;
|
|
1398
1604
|
}
|
|
1605
|
+
if (!tea_util_1.default.isUnset(request.custSpaceId)) {
|
|
1606
|
+
body["CustSpaceId"] = request.custSpaceId;
|
|
1607
|
+
}
|
|
1399
1608
|
if (!tea_util_1.default.isUnset(request.isvCode)) {
|
|
1400
1609
|
body["IsvCode"] = request.isvCode;
|
|
1401
1610
|
}
|
|
@@ -1445,6 +1654,9 @@ class Client extends openapi_client_1.default {
|
|
|
1445
1654
|
if (!tea_util_1.default.isUnset(request.chatBotInstanceId)) {
|
|
1446
1655
|
body["ChatBotInstanceId"] = request.chatBotInstanceId;
|
|
1447
1656
|
}
|
|
1657
|
+
if (!tea_util_1.default.isUnset(request.custSpaceId)) {
|
|
1658
|
+
body["CustSpaceId"] = request.custSpaceId;
|
|
1659
|
+
}
|
|
1448
1660
|
if (!tea_util_1.default.isUnset(request.intentName)) {
|
|
1449
1661
|
body["IntentName"] = request.intentName;
|
|
1450
1662
|
}
|
|
@@ -1502,6 +1714,10 @@ class Client extends openapi_client_1.default {
|
|
|
1502
1714
|
if (!tea_util_1.default.isUnset(tmpReq.example)) {
|
|
1503
1715
|
request.exampleShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.example, "Example", "json");
|
|
1504
1716
|
}
|
|
1717
|
+
let query = {};
|
|
1718
|
+
if (!tea_util_1.default.isUnset(request.custSpaceId)) {
|
|
1719
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
1720
|
+
}
|
|
1505
1721
|
let body = {};
|
|
1506
1722
|
if (!tea_util_1.default.isUnset(request.category)) {
|
|
1507
1723
|
body["Category"] = request.category;
|
|
@@ -1528,6 +1744,7 @@ class Client extends openapi_client_1.default {
|
|
|
1528
1744
|
body["TemplateType"] = request.templateType;
|
|
1529
1745
|
}
|
|
1530
1746
|
let req = new $OpenApi.OpenApiRequest({
|
|
1747
|
+
query: openapi_util_1.default.query(query),
|
|
1531
1748
|
body: openapi_util_1.default.parseToMap(body),
|
|
1532
1749
|
});
|
|
1533
1750
|
let params = new $OpenApi.Params({
|
|
@@ -1550,6 +1767,9 @@ class Client extends openapi_client_1.default {
|
|
|
1550
1767
|
async deleteChatappTemplateWithOptions(request, runtime) {
|
|
1551
1768
|
tea_util_1.default.validateModel(request);
|
|
1552
1769
|
let query = {};
|
|
1770
|
+
if (!tea_util_1.default.isUnset(request.custSpaceId)) {
|
|
1771
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
1772
|
+
}
|
|
1553
1773
|
if (!tea_util_1.default.isUnset(request.custWabaId)) {
|
|
1554
1774
|
query["CustWabaId"] = request.custWabaId;
|
|
1555
1775
|
}
|
|
@@ -1582,6 +1802,9 @@ class Client extends openapi_client_1.default {
|
|
|
1582
1802
|
async getChatappTemplateDetailWithOptions(request, runtime) {
|
|
1583
1803
|
tea_util_1.default.validateModel(request);
|
|
1584
1804
|
let query = {};
|
|
1805
|
+
if (!tea_util_1.default.isUnset(request.custSpaceId)) {
|
|
1806
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
1807
|
+
}
|
|
1585
1808
|
if (!tea_util_1.default.isUnset(request.custWabaId)) {
|
|
1586
1809
|
query["CustWabaId"] = request.custWabaId;
|
|
1587
1810
|
}
|
|
@@ -1625,6 +1848,9 @@ class Client extends openapi_client_1.default {
|
|
|
1625
1848
|
if (!tea_util_1.default.isUnset(request.auditStatus)) {
|
|
1626
1849
|
query["AuditStatus"] = request.auditStatus;
|
|
1627
1850
|
}
|
|
1851
|
+
if (!tea_util_1.default.isUnset(request.custSpaceId)) {
|
|
1852
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
1853
|
+
}
|
|
1628
1854
|
if (!tea_util_1.default.isUnset(request.custWabaId)) {
|
|
1629
1855
|
query["CustWabaId"] = request.custWabaId;
|
|
1630
1856
|
}
|
|
@@ -1674,6 +1900,9 @@ class Client extends openapi_client_1.default {
|
|
|
1674
1900
|
if (!tea_util_1.default.isUnset(request.componentsShrink)) {
|
|
1675
1901
|
body["Components"] = request.componentsShrink;
|
|
1676
1902
|
}
|
|
1903
|
+
if (!tea_util_1.default.isUnset(request.custSpaceId)) {
|
|
1904
|
+
body["CustSpaceId"] = request.custSpaceId;
|
|
1905
|
+
}
|
|
1677
1906
|
if (!tea_util_1.default.isUnset(request.custWabaId)) {
|
|
1678
1907
|
body["CustWabaId"] = request.custWabaId;
|
|
1679
1908
|
}
|
|
@@ -1709,6 +1938,64 @@ class Client extends openapi_client_1.default {
|
|
|
1709
1938
|
let runtime = new $Util.RuntimeOptions({});
|
|
1710
1939
|
return await this.modifyChatappTemplateWithOptions(request, runtime);
|
|
1711
1940
|
}
|
|
1941
|
+
async queryChatappBindWabaWithOptions(request, runtime) {
|
|
1942
|
+
tea_util_1.default.validateModel(request);
|
|
1943
|
+
let query = {};
|
|
1944
|
+
if (!tea_util_1.default.isUnset(request.custSpaceId)) {
|
|
1945
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
1946
|
+
}
|
|
1947
|
+
if (!tea_util_1.default.isUnset(request.isvCode)) {
|
|
1948
|
+
query["IsvCode"] = request.isvCode;
|
|
1949
|
+
}
|
|
1950
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1951
|
+
query: openapi_util_1.default.query(query),
|
|
1952
|
+
});
|
|
1953
|
+
let params = new $OpenApi.Params({
|
|
1954
|
+
action: "QueryChatappBindWaba",
|
|
1955
|
+
version: "2020-06-06",
|
|
1956
|
+
protocol: "HTTPS",
|
|
1957
|
+
pathname: "/",
|
|
1958
|
+
method: "POST",
|
|
1959
|
+
authType: "AK",
|
|
1960
|
+
style: "RPC",
|
|
1961
|
+
reqBodyType: "formData",
|
|
1962
|
+
bodyType: "json",
|
|
1963
|
+
});
|
|
1964
|
+
return $tea.cast(await this.callApi(params, req, runtime), new QueryChatappBindWabaResponse({}));
|
|
1965
|
+
}
|
|
1966
|
+
async queryChatappBindWaba(request) {
|
|
1967
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1968
|
+
return await this.queryChatappBindWabaWithOptions(request, runtime);
|
|
1969
|
+
}
|
|
1970
|
+
async queryChatappPhoneNumbersWithOptions(request, runtime) {
|
|
1971
|
+
tea_util_1.default.validateModel(request);
|
|
1972
|
+
let query = {};
|
|
1973
|
+
if (!tea_util_1.default.isUnset(request.custSpaceId)) {
|
|
1974
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
1975
|
+
}
|
|
1976
|
+
if (!tea_util_1.default.isUnset(request.isvCode)) {
|
|
1977
|
+
query["IsvCode"] = request.isvCode;
|
|
1978
|
+
}
|
|
1979
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1980
|
+
query: openapi_util_1.default.query(query),
|
|
1981
|
+
});
|
|
1982
|
+
let params = new $OpenApi.Params({
|
|
1983
|
+
action: "QueryChatappPhoneNumbers",
|
|
1984
|
+
version: "2020-06-06",
|
|
1985
|
+
protocol: "HTTPS",
|
|
1986
|
+
pathname: "/",
|
|
1987
|
+
method: "POST",
|
|
1988
|
+
authType: "AK",
|
|
1989
|
+
style: "RPC",
|
|
1990
|
+
reqBodyType: "formData",
|
|
1991
|
+
bodyType: "json",
|
|
1992
|
+
});
|
|
1993
|
+
return $tea.cast(await this.callApi(params, req, runtime), new QueryChatappPhoneNumbersResponse({}));
|
|
1994
|
+
}
|
|
1995
|
+
async queryChatappPhoneNumbers(request) {
|
|
1996
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1997
|
+
return await this.queryChatappPhoneNumbersWithOptions(request, runtime);
|
|
1998
|
+
}
|
|
1712
1999
|
async sendChatappMassMessageWithOptions(tmpReq, runtime) {
|
|
1713
2000
|
tea_util_1.default.validateModel(tmpReq);
|
|
1714
2001
|
let request = new SendChatappMassMessageShrinkRequest({});
|
|
@@ -1720,6 +2007,9 @@ class Client extends openapi_client_1.default {
|
|
|
1720
2007
|
if (!tea_util_1.default.isUnset(request.channelType)) {
|
|
1721
2008
|
body["ChannelType"] = request.channelType;
|
|
1722
2009
|
}
|
|
2010
|
+
if (!tea_util_1.default.isUnset(request.custSpaceId)) {
|
|
2011
|
+
body["CustSpaceId"] = request.custSpaceId;
|
|
2012
|
+
}
|
|
1723
2013
|
if (!tea_util_1.default.isUnset(request.custWabaId)) {
|
|
1724
2014
|
body["CustWabaId"] = request.custWabaId;
|
|
1725
2015
|
}
|
|
@@ -1788,6 +2078,9 @@ class Client extends openapi_client_1.default {
|
|
|
1788
2078
|
if (!tea_util_1.default.isUnset(request.channelType)) {
|
|
1789
2079
|
body["ChannelType"] = request.channelType;
|
|
1790
2080
|
}
|
|
2081
|
+
if (!tea_util_1.default.isUnset(request.custSpaceId)) {
|
|
2082
|
+
body["CustSpaceId"] = request.custSpaceId;
|
|
2083
|
+
}
|
|
1791
2084
|
if (!tea_util_1.default.isUnset(request.custWabaId)) {
|
|
1792
2085
|
body["CustWabaId"] = request.custWabaId;
|
|
1793
2086
|
}
|