@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/src/client.ts CHANGED
@@ -10,6 +10,7 @@ import * as $tea from '@alicloud/tea-typescript';
10
10
 
11
11
  export class BeeBotAssociateRequest extends $tea.Model {
12
12
  chatBotInstanceId?: string;
13
+ custSpaceId?: string;
13
14
  isvCode?: string;
14
15
  perspective?: string[];
15
16
  recommendNum?: number;
@@ -18,6 +19,7 @@ export class BeeBotAssociateRequest extends $tea.Model {
18
19
  static names(): { [key: string]: string } {
19
20
  return {
20
21
  chatBotInstanceId: 'ChatBotInstanceId',
22
+ custSpaceId: 'CustSpaceId',
21
23
  isvCode: 'IsvCode',
22
24
  perspective: 'Perspective',
23
25
  recommendNum: 'RecommendNum',
@@ -29,6 +31,7 @@ export class BeeBotAssociateRequest extends $tea.Model {
29
31
  static types(): { [key: string]: any } {
30
32
  return {
31
33
  chatBotInstanceId: 'string',
34
+ custSpaceId: 'string',
32
35
  isvCode: 'string',
33
36
  perspective: { 'type': 'array', 'itemType': 'string' },
34
37
  recommendNum: 'number',
@@ -44,6 +47,7 @@ export class BeeBotAssociateRequest extends $tea.Model {
44
47
 
45
48
  export class BeeBotAssociateShrinkRequest extends $tea.Model {
46
49
  chatBotInstanceId?: string;
50
+ custSpaceId?: string;
47
51
  isvCode?: string;
48
52
  perspectiveShrink?: string;
49
53
  recommendNum?: number;
@@ -52,6 +56,7 @@ export class BeeBotAssociateShrinkRequest extends $tea.Model {
52
56
  static names(): { [key: string]: string } {
53
57
  return {
54
58
  chatBotInstanceId: 'ChatBotInstanceId',
59
+ custSpaceId: 'CustSpaceId',
55
60
  isvCode: 'IsvCode',
56
61
  perspectiveShrink: 'Perspective',
57
62
  recommendNum: 'RecommendNum',
@@ -63,6 +68,7 @@ export class BeeBotAssociateShrinkRequest extends $tea.Model {
63
68
  static types(): { [key: string]: any } {
64
69
  return {
65
70
  chatBotInstanceId: 'string',
71
+ custSpaceId: 'string',
66
72
  isvCode: 'string',
67
73
  perspectiveShrink: 'string',
68
74
  recommendNum: 'number',
@@ -131,6 +137,7 @@ export class BeeBotAssociateResponse extends $tea.Model {
131
137
 
132
138
  export class BeeBotChatRequest extends $tea.Model {
133
139
  chatBotInstanceId?: string;
140
+ custSpaceId?: string;
134
141
  intentName?: string;
135
142
  isvCode?: string;
136
143
  knowledgeId?: string;
@@ -143,6 +150,7 @@ export class BeeBotChatRequest extends $tea.Model {
143
150
  static names(): { [key: string]: string } {
144
151
  return {
145
152
  chatBotInstanceId: 'ChatBotInstanceId',
153
+ custSpaceId: 'CustSpaceId',
146
154
  intentName: 'IntentName',
147
155
  isvCode: 'IsvCode',
148
156
  knowledgeId: 'KnowledgeId',
@@ -158,6 +166,7 @@ export class BeeBotChatRequest extends $tea.Model {
158
166
  static types(): { [key: string]: any } {
159
167
  return {
160
168
  chatBotInstanceId: 'string',
169
+ custSpaceId: 'string',
161
170
  intentName: 'string',
162
171
  isvCode: 'string',
163
172
  knowledgeId: 'string',
@@ -177,6 +186,7 @@ export class BeeBotChatRequest extends $tea.Model {
177
186
 
178
187
  export class BeeBotChatShrinkRequest extends $tea.Model {
179
188
  chatBotInstanceId?: string;
189
+ custSpaceId?: string;
180
190
  intentName?: string;
181
191
  isvCode?: string;
182
192
  knowledgeId?: string;
@@ -189,6 +199,7 @@ export class BeeBotChatShrinkRequest extends $tea.Model {
189
199
  static names(): { [key: string]: string } {
190
200
  return {
191
201
  chatBotInstanceId: 'ChatBotInstanceId',
202
+ custSpaceId: 'CustSpaceId',
192
203
  intentName: 'IntentName',
193
204
  isvCode: 'IsvCode',
194
205
  knowledgeId: 'KnowledgeId',
@@ -204,6 +215,7 @@ export class BeeBotChatShrinkRequest extends $tea.Model {
204
215
  static types(): { [key: string]: any } {
205
216
  return {
206
217
  chatBotInstanceId: 'string',
218
+ custSpaceId: 'string',
207
219
  intentName: 'string',
208
220
  isvCode: 'string',
209
221
  knowledgeId: 'string',
@@ -277,6 +289,7 @@ export class BeeBotChatResponse extends $tea.Model {
277
289
  export class CreateChatappTemplateRequest extends $tea.Model {
278
290
  category?: string;
279
291
  components?: CreateChatappTemplateRequestComponents[];
292
+ custSpaceId?: string;
280
293
  custWabaId?: string;
281
294
  example?: { [key: string]: string };
282
295
  isvCode?: string;
@@ -287,6 +300,7 @@ export class CreateChatappTemplateRequest extends $tea.Model {
287
300
  return {
288
301
  category: 'Category',
289
302
  components: 'Components',
303
+ custSpaceId: 'CustSpaceId',
290
304
  custWabaId: 'CustWabaId',
291
305
  example: 'Example',
292
306
  isvCode: 'IsvCode',
@@ -300,6 +314,7 @@ export class CreateChatappTemplateRequest extends $tea.Model {
300
314
  return {
301
315
  category: 'string',
302
316
  components: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponents },
317
+ custSpaceId: 'string',
303
318
  custWabaId: 'string',
304
319
  example: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
305
320
  isvCode: 'string',
@@ -317,6 +332,7 @@ export class CreateChatappTemplateRequest extends $tea.Model {
317
332
  export class CreateChatappTemplateShrinkRequest extends $tea.Model {
318
333
  category?: string;
319
334
  componentsShrink?: string;
335
+ custSpaceId?: string;
320
336
  custWabaId?: string;
321
337
  exampleShrink?: string;
322
338
  isvCode?: string;
@@ -327,6 +343,7 @@ export class CreateChatappTemplateShrinkRequest extends $tea.Model {
327
343
  return {
328
344
  category: 'Category',
329
345
  componentsShrink: 'Components',
346
+ custSpaceId: 'CustSpaceId',
330
347
  custWabaId: 'CustWabaId',
331
348
  exampleShrink: 'Example',
332
349
  isvCode: 'IsvCode',
@@ -340,6 +357,7 @@ export class CreateChatappTemplateShrinkRequest extends $tea.Model {
340
357
  return {
341
358
  category: 'string',
342
359
  componentsShrink: 'string',
360
+ custSpaceId: 'string',
343
361
  custWabaId: 'string',
344
362
  exampleShrink: 'string',
345
363
  isvCode: 'string',
@@ -408,11 +426,13 @@ export class CreateChatappTemplateResponse extends $tea.Model {
408
426
  }
409
427
 
410
428
  export class DeleteChatappTemplateRequest extends $tea.Model {
429
+ custSpaceId?: string;
411
430
  custWabaId?: string;
412
431
  isvCode?: string;
413
432
  templateCode?: string;
414
433
  static names(): { [key: string]: string } {
415
434
  return {
435
+ custSpaceId: 'CustSpaceId',
416
436
  custWabaId: 'CustWabaId',
417
437
  isvCode: 'IsvCode',
418
438
  templateCode: 'TemplateCode',
@@ -421,6 +441,7 @@ export class DeleteChatappTemplateRequest extends $tea.Model {
421
441
 
422
442
  static types(): { [key: string]: any } {
423
443
  return {
444
+ custSpaceId: 'string',
424
445
  custWabaId: 'string',
425
446
  isvCode: 'string',
426
447
  templateCode: 'string',
@@ -483,12 +504,14 @@ export class DeleteChatappTemplateResponse extends $tea.Model {
483
504
  }
484
505
 
485
506
  export class GetChatappTemplateDetailRequest extends $tea.Model {
507
+ custSpaceId?: string;
486
508
  custWabaId?: string;
487
509
  isvCode?: string;
488
510
  language?: string;
489
511
  templateCode?: string;
490
512
  static names(): { [key: string]: string } {
491
513
  return {
514
+ custSpaceId: 'CustSpaceId',
492
515
  custWabaId: 'CustWabaId',
493
516
  isvCode: 'IsvCode',
494
517
  language: 'Language',
@@ -498,6 +521,7 @@ export class GetChatappTemplateDetailRequest extends $tea.Model {
498
521
 
499
522
  static types(): { [key: string]: any } {
500
523
  return {
524
+ custSpaceId: 'string',
501
525
  custWabaId: 'string',
502
526
  isvCode: 'string',
503
527
  language: 'string',
@@ -565,6 +589,7 @@ export class GetChatappTemplateDetailResponse extends $tea.Model {
565
589
 
566
590
  export class ListChatappTemplateRequest extends $tea.Model {
567
591
  auditStatus?: string;
592
+ custSpaceId?: string;
568
593
  custWabaId?: string;
569
594
  isvCode?: string;
570
595
  language?: string;
@@ -573,6 +598,7 @@ export class ListChatappTemplateRequest extends $tea.Model {
573
598
  static names(): { [key: string]: string } {
574
599
  return {
575
600
  auditStatus: 'AuditStatus',
601
+ custSpaceId: 'CustSpaceId',
576
602
  custWabaId: 'CustWabaId',
577
603
  isvCode: 'IsvCode',
578
604
  language: 'Language',
@@ -584,6 +610,7 @@ export class ListChatappTemplateRequest extends $tea.Model {
584
610
  static types(): { [key: string]: any } {
585
611
  return {
586
612
  auditStatus: 'string',
613
+ custSpaceId: 'string',
587
614
  custWabaId: 'string',
588
615
  isvCode: 'string',
589
616
  language: 'string',
@@ -599,6 +626,7 @@ export class ListChatappTemplateRequest extends $tea.Model {
599
626
 
600
627
  export class ListChatappTemplateShrinkRequest extends $tea.Model {
601
628
  auditStatus?: string;
629
+ custSpaceId?: string;
602
630
  custWabaId?: string;
603
631
  isvCode?: string;
604
632
  language?: string;
@@ -607,6 +635,7 @@ export class ListChatappTemplateShrinkRequest extends $tea.Model {
607
635
  static names(): { [key: string]: string } {
608
636
  return {
609
637
  auditStatus: 'AuditStatus',
638
+ custSpaceId: 'CustSpaceId',
610
639
  custWabaId: 'CustWabaId',
611
640
  isvCode: 'IsvCode',
612
641
  language: 'Language',
@@ -618,6 +647,7 @@ export class ListChatappTemplateShrinkRequest extends $tea.Model {
618
647
  static types(): { [key: string]: any } {
619
648
  return {
620
649
  auditStatus: 'string',
650
+ custSpaceId: 'string',
621
651
  custWabaId: 'string',
622
652
  isvCode: 'string',
623
653
  language: 'string',
@@ -686,6 +716,7 @@ export class ListChatappTemplateResponse extends $tea.Model {
686
716
 
687
717
  export class ModifyChatappTemplateRequest extends $tea.Model {
688
718
  components?: ModifyChatappTemplateRequestComponents[];
719
+ custSpaceId?: string;
689
720
  custWabaId?: string;
690
721
  example?: { [key: string]: string };
691
722
  isvCode?: string;
@@ -694,6 +725,7 @@ export class ModifyChatappTemplateRequest extends $tea.Model {
694
725
  static names(): { [key: string]: string } {
695
726
  return {
696
727
  components: 'Components',
728
+ custSpaceId: 'CustSpaceId',
697
729
  custWabaId: 'CustWabaId',
698
730
  example: 'Example',
699
731
  isvCode: 'IsvCode',
@@ -705,6 +737,7 @@ export class ModifyChatappTemplateRequest extends $tea.Model {
705
737
  static types(): { [key: string]: any } {
706
738
  return {
707
739
  components: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponents },
740
+ custSpaceId: 'string',
708
741
  custWabaId: 'string',
709
742
  example: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
710
743
  isvCode: 'string',
@@ -720,6 +753,7 @@ export class ModifyChatappTemplateRequest extends $tea.Model {
720
753
 
721
754
  export class ModifyChatappTemplateShrinkRequest extends $tea.Model {
722
755
  componentsShrink?: string;
756
+ custSpaceId?: string;
723
757
  custWabaId?: string;
724
758
  exampleShrink?: string;
725
759
  isvCode?: string;
@@ -728,6 +762,7 @@ export class ModifyChatappTemplateShrinkRequest extends $tea.Model {
728
762
  static names(): { [key: string]: string } {
729
763
  return {
730
764
  componentsShrink: 'Components',
765
+ custSpaceId: 'CustSpaceId',
731
766
  custWabaId: 'CustWabaId',
732
767
  exampleShrink: 'Example',
733
768
  isvCode: 'IsvCode',
@@ -739,6 +774,7 @@ export class ModifyChatappTemplateShrinkRequest extends $tea.Model {
739
774
  static types(): { [key: string]: any } {
740
775
  return {
741
776
  componentsShrink: 'string',
777
+ custSpaceId: 'string',
742
778
  custWabaId: 'string',
743
779
  exampleShrink: 'string',
744
780
  isvCode: 'string',
@@ -805,8 +841,159 @@ export class ModifyChatappTemplateResponse extends $tea.Model {
805
841
  }
806
842
  }
807
843
 
844
+ export class QueryChatappBindWabaRequest extends $tea.Model {
845
+ custSpaceId?: string;
846
+ isvCode?: string;
847
+ static names(): { [key: string]: string } {
848
+ return {
849
+ custSpaceId: 'CustSpaceId',
850
+ isvCode: 'IsvCode',
851
+ };
852
+ }
853
+
854
+ static types(): { [key: string]: any } {
855
+ return {
856
+ custSpaceId: 'string',
857
+ isvCode: 'string',
858
+ };
859
+ }
860
+
861
+ constructor(map?: { [key: string]: any }) {
862
+ super(map);
863
+ }
864
+ }
865
+
866
+ export class QueryChatappBindWabaResponseBody extends $tea.Model {
867
+ code?: string;
868
+ data?: QueryChatappBindWabaResponseBodyData;
869
+ message?: string;
870
+ requestId?: string;
871
+ static names(): { [key: string]: string } {
872
+ return {
873
+ code: 'Code',
874
+ data: 'Data',
875
+ message: 'Message',
876
+ requestId: 'RequestId',
877
+ };
878
+ }
879
+
880
+ static types(): { [key: string]: any } {
881
+ return {
882
+ code: 'string',
883
+ data: QueryChatappBindWabaResponseBodyData,
884
+ message: 'string',
885
+ requestId: 'string',
886
+ };
887
+ }
888
+
889
+ constructor(map?: { [key: string]: any }) {
890
+ super(map);
891
+ }
892
+ }
893
+
894
+ export class QueryChatappBindWabaResponse extends $tea.Model {
895
+ headers: { [key: string]: string };
896
+ statusCode: number;
897
+ body: QueryChatappBindWabaResponseBody;
898
+ static names(): { [key: string]: string } {
899
+ return {
900
+ headers: 'headers',
901
+ statusCode: 'statusCode',
902
+ body: 'body',
903
+ };
904
+ }
905
+
906
+ static types(): { [key: string]: any } {
907
+ return {
908
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
909
+ statusCode: 'number',
910
+ body: QueryChatappBindWabaResponseBody,
911
+ };
912
+ }
913
+
914
+ constructor(map?: { [key: string]: any }) {
915
+ super(map);
916
+ }
917
+ }
918
+
919
+ export class QueryChatappPhoneNumbersRequest extends $tea.Model {
920
+ custSpaceId?: string;
921
+ isvCode?: string;
922
+ static names(): { [key: string]: string } {
923
+ return {
924
+ custSpaceId: 'CustSpaceId',
925
+ isvCode: 'IsvCode',
926
+ };
927
+ }
928
+
929
+ static types(): { [key: string]: any } {
930
+ return {
931
+ custSpaceId: 'string',
932
+ isvCode: 'string',
933
+ };
934
+ }
935
+
936
+ constructor(map?: { [key: string]: any }) {
937
+ super(map);
938
+ }
939
+ }
940
+
941
+ export class QueryChatappPhoneNumbersResponseBody extends $tea.Model {
942
+ code?: string;
943
+ message?: string;
944
+ phoneNumbers?: QueryChatappPhoneNumbersResponseBodyPhoneNumbers[];
945
+ requestId?: string;
946
+ static names(): { [key: string]: string } {
947
+ return {
948
+ code: 'Code',
949
+ message: 'Message',
950
+ phoneNumbers: 'PhoneNumbers',
951
+ requestId: 'RequestId',
952
+ };
953
+ }
954
+
955
+ static types(): { [key: string]: any } {
956
+ return {
957
+ code: 'string',
958
+ message: 'string',
959
+ phoneNumbers: { 'type': 'array', 'itemType': QueryChatappPhoneNumbersResponseBodyPhoneNumbers },
960
+ requestId: 'string',
961
+ };
962
+ }
963
+
964
+ constructor(map?: { [key: string]: any }) {
965
+ super(map);
966
+ }
967
+ }
968
+
969
+ export class QueryChatappPhoneNumbersResponse extends $tea.Model {
970
+ headers: { [key: string]: string };
971
+ statusCode: number;
972
+ body: QueryChatappPhoneNumbersResponseBody;
973
+ static names(): { [key: string]: string } {
974
+ return {
975
+ headers: 'headers',
976
+ statusCode: 'statusCode',
977
+ body: 'body',
978
+ };
979
+ }
980
+
981
+ static types(): { [key: string]: any } {
982
+ return {
983
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
984
+ statusCode: 'number',
985
+ body: QueryChatappPhoneNumbersResponseBody,
986
+ };
987
+ }
988
+
989
+ constructor(map?: { [key: string]: any }) {
990
+ super(map);
991
+ }
992
+ }
993
+
808
994
  export class SendChatappMassMessageRequest extends $tea.Model {
809
995
  channelType?: string;
996
+ custSpaceId?: string;
810
997
  custWabaId?: string;
811
998
  fallBackContent?: string;
812
999
  fallBackId?: string;
@@ -819,6 +1006,7 @@ export class SendChatappMassMessageRequest extends $tea.Model {
819
1006
  static names(): { [key: string]: string } {
820
1007
  return {
821
1008
  channelType: 'ChannelType',
1009
+ custSpaceId: 'CustSpaceId',
822
1010
  custWabaId: 'CustWabaId',
823
1011
  fallBackContent: 'FallBackContent',
824
1012
  fallBackId: 'FallBackId',
@@ -834,6 +1022,7 @@ export class SendChatappMassMessageRequest extends $tea.Model {
834
1022
  static types(): { [key: string]: any } {
835
1023
  return {
836
1024
  channelType: 'string',
1025
+ custSpaceId: 'string',
837
1026
  custWabaId: 'string',
838
1027
  fallBackContent: 'string',
839
1028
  fallBackId: 'string',
@@ -853,6 +1042,7 @@ export class SendChatappMassMessageRequest extends $tea.Model {
853
1042
 
854
1043
  export class SendChatappMassMessageShrinkRequest extends $tea.Model {
855
1044
  channelType?: string;
1045
+ custSpaceId?: string;
856
1046
  custWabaId?: string;
857
1047
  fallBackContent?: string;
858
1048
  fallBackId?: string;
@@ -865,6 +1055,7 @@ export class SendChatappMassMessageShrinkRequest extends $tea.Model {
865
1055
  static names(): { [key: string]: string } {
866
1056
  return {
867
1057
  channelType: 'ChannelType',
1058
+ custSpaceId: 'CustSpaceId',
868
1059
  custWabaId: 'CustWabaId',
869
1060
  fallBackContent: 'FallBackContent',
870
1061
  fallBackId: 'FallBackId',
@@ -880,6 +1071,7 @@ export class SendChatappMassMessageShrinkRequest extends $tea.Model {
880
1071
  static types(): { [key: string]: any } {
881
1072
  return {
882
1073
  channelType: 'string',
1074
+ custSpaceId: 'string',
883
1075
  custWabaId: 'string',
884
1076
  fallBackContent: 'string',
885
1077
  fallBackId: 'string',
@@ -953,6 +1145,7 @@ export class SendChatappMassMessageResponse extends $tea.Model {
953
1145
  export class SendChatappMessageRequest extends $tea.Model {
954
1146
  channelType?: string;
955
1147
  content?: string;
1148
+ custSpaceId?: string;
956
1149
  custWabaId?: string;
957
1150
  fallBackContent?: string;
958
1151
  fallBackId?: string;
@@ -969,6 +1162,7 @@ export class SendChatappMessageRequest extends $tea.Model {
969
1162
  return {
970
1163
  channelType: 'ChannelType',
971
1164
  content: 'Content',
1165
+ custSpaceId: 'CustSpaceId',
972
1166
  custWabaId: 'CustWabaId',
973
1167
  fallBackContent: 'FallBackContent',
974
1168
  fallBackId: 'FallBackId',
@@ -988,6 +1182,7 @@ export class SendChatappMessageRequest extends $tea.Model {
988
1182
  return {
989
1183
  channelType: 'string',
990
1184
  content: 'string',
1185
+ custSpaceId: 'string',
991
1186
  custWabaId: 'string',
992
1187
  fallBackContent: 'string',
993
1188
  fallBackId: 'string',
@@ -1011,6 +1206,7 @@ export class SendChatappMessageRequest extends $tea.Model {
1011
1206
  export class SendChatappMessageShrinkRequest extends $tea.Model {
1012
1207
  channelType?: string;
1013
1208
  content?: string;
1209
+ custSpaceId?: string;
1014
1210
  custWabaId?: string;
1015
1211
  fallBackContent?: string;
1016
1212
  fallBackId?: string;
@@ -1027,6 +1223,7 @@ export class SendChatappMessageShrinkRequest extends $tea.Model {
1027
1223
  return {
1028
1224
  channelType: 'ChannelType',
1029
1225
  content: 'Content',
1226
+ custSpaceId: 'CustSpaceId',
1030
1227
  custWabaId: 'CustWabaId',
1031
1228
  fallBackContent: 'FallBackContent',
1032
1229
  fallBackId: 'FallBackId',
@@ -1046,6 +1243,7 @@ export class SendChatappMessageShrinkRequest extends $tea.Model {
1046
1243
  return {
1047
1244
  channelType: 'string',
1048
1245
  content: 'string',
1246
+ custSpaceId: 'string',
1049
1247
  custWabaId: 'string',
1050
1248
  fallBackContent: 'string',
1051
1249
  fallBackId: 'string',
@@ -1733,6 +1931,77 @@ export class ModifyChatappTemplateResponseBodyData extends $tea.Model {
1733
1931
  }
1734
1932
  }
1735
1933
 
1934
+ export class QueryChatappBindWabaResponseBodyData extends $tea.Model {
1935
+ accountReviewStatus?: string;
1936
+ currency?: string;
1937
+ id?: string;
1938
+ messageTemplateNamespace?: string;
1939
+ name?: string;
1940
+ static names(): { [key: string]: string } {
1941
+ return {
1942
+ accountReviewStatus: 'AccountReviewStatus',
1943
+ currency: 'Currency',
1944
+ id: 'Id',
1945
+ messageTemplateNamespace: 'MessageTemplateNamespace',
1946
+ name: 'Name',
1947
+ };
1948
+ }
1949
+
1950
+ static types(): { [key: string]: any } {
1951
+ return {
1952
+ accountReviewStatus: 'string',
1953
+ currency: 'string',
1954
+ id: 'string',
1955
+ messageTemplateNamespace: 'string',
1956
+ name: 'string',
1957
+ };
1958
+ }
1959
+
1960
+ constructor(map?: { [key: string]: any }) {
1961
+ super(map);
1962
+ }
1963
+ }
1964
+
1965
+ export class QueryChatappPhoneNumbersResponseBodyPhoneNumbers extends $tea.Model {
1966
+ phoneNumber?: string;
1967
+ qualityRating?: string;
1968
+ status?: string;
1969
+ statusCallbackUrl?: string;
1970
+ statusQueue?: string;
1971
+ upCallbackUrl?: string;
1972
+ upQueue?: string;
1973
+ verifiedName?: string;
1974
+ static names(): { [key: string]: string } {
1975
+ return {
1976
+ phoneNumber: 'PhoneNumber',
1977
+ qualityRating: 'QualityRating',
1978
+ status: 'Status',
1979
+ statusCallbackUrl: 'StatusCallbackUrl',
1980
+ statusQueue: 'StatusQueue',
1981
+ upCallbackUrl: 'UpCallbackUrl',
1982
+ upQueue: 'UpQueue',
1983
+ verifiedName: 'VerifiedName',
1984
+ };
1985
+ }
1986
+
1987
+ static types(): { [key: string]: any } {
1988
+ return {
1989
+ phoneNumber: 'string',
1990
+ qualityRating: 'string',
1991
+ status: 'string',
1992
+ statusCallbackUrl: 'string',
1993
+ statusQueue: 'string',
1994
+ upCallbackUrl: 'string',
1995
+ upQueue: 'string',
1996
+ verifiedName: 'string',
1997
+ };
1998
+ }
1999
+
2000
+ constructor(map?: { [key: string]: any }) {
2001
+ super(map);
2002
+ }
2003
+ }
2004
+
1736
2005
  export class SendChatappMassMessageRequestSenderList extends $tea.Model {
1737
2006
  payload?: string[];
1738
2007
  templateParams?: { [key: string]: string };
@@ -1794,6 +2063,10 @@ export default class Client extends OpenApi {
1794
2063
  body["ChatBotInstanceId"] = request.chatBotInstanceId;
1795
2064
  }
1796
2065
 
2066
+ if (!Util.isUnset(request.custSpaceId)) {
2067
+ body["CustSpaceId"] = request.custSpaceId;
2068
+ }
2069
+
1797
2070
  if (!Util.isUnset(request.isvCode)) {
1798
2071
  body["IsvCode"] = request.isvCode;
1799
2072
  }
@@ -1853,6 +2126,10 @@ export default class Client extends OpenApi {
1853
2126
  body["ChatBotInstanceId"] = request.chatBotInstanceId;
1854
2127
  }
1855
2128
 
2129
+ if (!Util.isUnset(request.custSpaceId)) {
2130
+ body["CustSpaceId"] = request.custSpaceId;
2131
+ }
2132
+
1856
2133
  if (!Util.isUnset(request.intentName)) {
1857
2134
  body["IntentName"] = request.intentName;
1858
2135
  }
@@ -1923,6 +2200,11 @@ export default class Client extends OpenApi {
1923
2200
  request.exampleShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.example, "Example", "json");
1924
2201
  }
1925
2202
 
2203
+ let query = { };
2204
+ if (!Util.isUnset(request.custSpaceId)) {
2205
+ query["CustSpaceId"] = request.custSpaceId;
2206
+ }
2207
+
1926
2208
  let body : {[key: string ]: any} = { };
1927
2209
  if (!Util.isUnset(request.category)) {
1928
2210
  body["Category"] = request.category;
@@ -1957,6 +2239,7 @@ export default class Client extends OpenApi {
1957
2239
  }
1958
2240
 
1959
2241
  let req = new $OpenApi.OpenApiRequest({
2242
+ query: OpenApiUtil.query(query),
1960
2243
  body: OpenApiUtil.parseToMap(body),
1961
2244
  });
1962
2245
  let params = new $OpenApi.Params({
@@ -1981,6 +2264,10 @@ export default class Client extends OpenApi {
1981
2264
  async deleteChatappTemplateWithOptions(request: DeleteChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<DeleteChatappTemplateResponse> {
1982
2265
  Util.validateModel(request);
1983
2266
  let query = { };
2267
+ if (!Util.isUnset(request.custSpaceId)) {
2268
+ query["CustSpaceId"] = request.custSpaceId;
2269
+ }
2270
+
1984
2271
  if (!Util.isUnset(request.custWabaId)) {
1985
2272
  query["CustWabaId"] = request.custWabaId;
1986
2273
  }
@@ -2018,6 +2305,10 @@ export default class Client extends OpenApi {
2018
2305
  async getChatappTemplateDetailWithOptions(request: GetChatappTemplateDetailRequest, runtime: $Util.RuntimeOptions): Promise<GetChatappTemplateDetailResponse> {
2019
2306
  Util.validateModel(request);
2020
2307
  let query = { };
2308
+ if (!Util.isUnset(request.custSpaceId)) {
2309
+ query["CustSpaceId"] = request.custSpaceId;
2310
+ }
2311
+
2021
2312
  if (!Util.isUnset(request.custWabaId)) {
2022
2313
  query["CustWabaId"] = request.custWabaId;
2023
2314
  }
@@ -2069,6 +2360,10 @@ export default class Client extends OpenApi {
2069
2360
  query["AuditStatus"] = request.auditStatus;
2070
2361
  }
2071
2362
 
2363
+ if (!Util.isUnset(request.custSpaceId)) {
2364
+ query["CustSpaceId"] = request.custSpaceId;
2365
+ }
2366
+
2072
2367
  if (!Util.isUnset(request.custWabaId)) {
2073
2368
  query["CustWabaId"] = request.custWabaId;
2074
2369
  }
@@ -2128,6 +2423,10 @@ export default class Client extends OpenApi {
2128
2423
  body["Components"] = request.componentsShrink;
2129
2424
  }
2130
2425
 
2426
+ if (!Util.isUnset(request.custSpaceId)) {
2427
+ body["CustSpaceId"] = request.custSpaceId;
2428
+ }
2429
+
2131
2430
  if (!Util.isUnset(request.custWabaId)) {
2132
2431
  body["CustWabaId"] = request.custWabaId;
2133
2432
  }
@@ -2170,6 +2469,72 @@ export default class Client extends OpenApi {
2170
2469
  return await this.modifyChatappTemplateWithOptions(request, runtime);
2171
2470
  }
2172
2471
 
2472
+ async queryChatappBindWabaWithOptions(request: QueryChatappBindWabaRequest, runtime: $Util.RuntimeOptions): Promise<QueryChatappBindWabaResponse> {
2473
+ Util.validateModel(request);
2474
+ let query = { };
2475
+ if (!Util.isUnset(request.custSpaceId)) {
2476
+ query["CustSpaceId"] = request.custSpaceId;
2477
+ }
2478
+
2479
+ if (!Util.isUnset(request.isvCode)) {
2480
+ query["IsvCode"] = request.isvCode;
2481
+ }
2482
+
2483
+ let req = new $OpenApi.OpenApiRequest({
2484
+ query: OpenApiUtil.query(query),
2485
+ });
2486
+ let params = new $OpenApi.Params({
2487
+ action: "QueryChatappBindWaba",
2488
+ version: "2020-06-06",
2489
+ protocol: "HTTPS",
2490
+ pathname: "/",
2491
+ method: "POST",
2492
+ authType: "AK",
2493
+ style: "RPC",
2494
+ reqBodyType: "formData",
2495
+ bodyType: "json",
2496
+ });
2497
+ return $tea.cast<QueryChatappBindWabaResponse>(await this.callApi(params, req, runtime), new QueryChatappBindWabaResponse({}));
2498
+ }
2499
+
2500
+ async queryChatappBindWaba(request: QueryChatappBindWabaRequest): Promise<QueryChatappBindWabaResponse> {
2501
+ let runtime = new $Util.RuntimeOptions({ });
2502
+ return await this.queryChatappBindWabaWithOptions(request, runtime);
2503
+ }
2504
+
2505
+ async queryChatappPhoneNumbersWithOptions(request: QueryChatappPhoneNumbersRequest, runtime: $Util.RuntimeOptions): Promise<QueryChatappPhoneNumbersResponse> {
2506
+ Util.validateModel(request);
2507
+ let query = { };
2508
+ if (!Util.isUnset(request.custSpaceId)) {
2509
+ query["CustSpaceId"] = request.custSpaceId;
2510
+ }
2511
+
2512
+ if (!Util.isUnset(request.isvCode)) {
2513
+ query["IsvCode"] = request.isvCode;
2514
+ }
2515
+
2516
+ let req = new $OpenApi.OpenApiRequest({
2517
+ query: OpenApiUtil.query(query),
2518
+ });
2519
+ let params = new $OpenApi.Params({
2520
+ action: "QueryChatappPhoneNumbers",
2521
+ version: "2020-06-06",
2522
+ protocol: "HTTPS",
2523
+ pathname: "/",
2524
+ method: "POST",
2525
+ authType: "AK",
2526
+ style: "RPC",
2527
+ reqBodyType: "formData",
2528
+ bodyType: "json",
2529
+ });
2530
+ return $tea.cast<QueryChatappPhoneNumbersResponse>(await this.callApi(params, req, runtime), new QueryChatappPhoneNumbersResponse({}));
2531
+ }
2532
+
2533
+ async queryChatappPhoneNumbers(request: QueryChatappPhoneNumbersRequest): Promise<QueryChatappPhoneNumbersResponse> {
2534
+ let runtime = new $Util.RuntimeOptions({ });
2535
+ return await this.queryChatappPhoneNumbersWithOptions(request, runtime);
2536
+ }
2537
+
2173
2538
  async sendChatappMassMessageWithOptions(tmpReq: SendChatappMassMessageRequest, runtime: $Util.RuntimeOptions): Promise<SendChatappMassMessageResponse> {
2174
2539
  Util.validateModel(tmpReq);
2175
2540
  let request = new SendChatappMassMessageShrinkRequest({ });
@@ -2183,6 +2548,10 @@ export default class Client extends OpenApi {
2183
2548
  body["ChannelType"] = request.channelType;
2184
2549
  }
2185
2550
 
2551
+ if (!Util.isUnset(request.custSpaceId)) {
2552
+ body["CustSpaceId"] = request.custSpaceId;
2553
+ }
2554
+
2186
2555
  if (!Util.isUnset(request.custWabaId)) {
2187
2556
  body["CustWabaId"] = request.custWabaId;
2188
2557
  }
@@ -2267,6 +2636,10 @@ export default class Client extends OpenApi {
2267
2636
  body["ChannelType"] = request.channelType;
2268
2637
  }
2269
2638
 
2639
+ if (!Util.isUnset(request.custSpaceId)) {
2640
+ body["CustSpaceId"] = request.custSpaceId;
2641
+ }
2642
+
2270
2643
  if (!Util.isUnset(request.custWabaId)) {
2271
2644
  body["CustWabaId"] = request.custWabaId;
2272
2645
  }