@alicloud/cams20200606 1.0.13 → 1.0.15

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.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,17 +903,23 @@ class SendChatappMessageRequest extends $tea.Model {
755
903
  return {
756
904
  channelType: 'ChannelType',
757
905
  content: 'Content',
906
+ contextMessageId: 'ContextMessageId',
907
+ custSpaceId: 'CustSpaceId',
758
908
  custWabaId: 'CustWabaId',
759
909
  fallBackContent: 'FallBackContent',
760
910
  fallBackId: 'FallBackId',
761
911
  from: 'From',
762
912
  isvCode: 'IsvCode',
913
+ label: 'Label',
763
914
  language: 'Language',
764
915
  messageType: 'MessageType',
765
916
  payload: 'Payload',
917
+ tag: 'Tag',
766
918
  templateCode: 'TemplateCode',
767
919
  templateParams: 'TemplateParams',
768
920
  to: 'To',
921
+ trackingData: 'TrackingData',
922
+ ttl: 'Ttl',
769
923
  type: 'Type',
770
924
  };
771
925
  }
@@ -773,17 +927,23 @@ class SendChatappMessageRequest extends $tea.Model {
773
927
  return {
774
928
  channelType: 'string',
775
929
  content: 'string',
930
+ contextMessageId: 'string',
931
+ custSpaceId: 'string',
776
932
  custWabaId: 'string',
777
933
  fallBackContent: 'string',
778
934
  fallBackId: 'string',
779
935
  from: 'string',
780
936
  isvCode: 'string',
937
+ label: 'string',
781
938
  language: 'string',
782
939
  messageType: 'string',
783
940
  payload: { 'type': 'array', 'itemType': 'string' },
941
+ tag: 'string',
784
942
  templateCode: 'string',
785
943
  templateParams: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
786
944
  to: 'string',
945
+ trackingData: 'string',
946
+ ttl: 'number',
787
947
  type: 'string',
788
948
  };
789
949
  }
@@ -797,17 +957,23 @@ class SendChatappMessageShrinkRequest extends $tea.Model {
797
957
  return {
798
958
  channelType: 'ChannelType',
799
959
  content: 'Content',
960
+ contextMessageId: 'ContextMessageId',
961
+ custSpaceId: 'CustSpaceId',
800
962
  custWabaId: 'CustWabaId',
801
963
  fallBackContent: 'FallBackContent',
802
964
  fallBackId: 'FallBackId',
803
965
  from: 'From',
804
966
  isvCode: 'IsvCode',
967
+ label: 'Label',
805
968
  language: 'Language',
806
969
  messageType: 'MessageType',
807
970
  payloadShrink: 'Payload',
971
+ tag: 'Tag',
808
972
  templateCode: 'TemplateCode',
809
973
  templateParamsShrink: 'TemplateParams',
810
974
  to: 'To',
975
+ trackingData: 'TrackingData',
976
+ ttl: 'Ttl',
811
977
  type: 'Type',
812
978
  };
813
979
  }
@@ -815,17 +981,23 @@ class SendChatappMessageShrinkRequest extends $tea.Model {
815
981
  return {
816
982
  channelType: 'string',
817
983
  content: 'string',
984
+ contextMessageId: 'string',
985
+ custSpaceId: 'string',
818
986
  custWabaId: 'string',
819
987
  fallBackContent: 'string',
820
988
  fallBackId: 'string',
821
989
  from: 'string',
822
990
  isvCode: 'string',
991
+ label: 'string',
823
992
  language: 'string',
824
993
  messageType: 'string',
825
994
  payloadShrink: 'string',
995
+ tag: 'string',
826
996
  templateCode: 'string',
827
997
  templateParamsShrink: 'string',
828
998
  to: 'string',
999
+ trackingData: 'string',
1000
+ ttl: 'number',
829
1001
  type: 'string',
830
1002
  };
831
1003
  }
@@ -1349,6 +1521,68 @@ class ModifyChatappTemplateResponseBodyData extends $tea.Model {
1349
1521
  }
1350
1522
  }
1351
1523
  exports.ModifyChatappTemplateResponseBodyData = ModifyChatappTemplateResponseBodyData;
1524
+ class QueryChatappBindWabaResponseBodyData extends $tea.Model {
1525
+ constructor(map) {
1526
+ super(map);
1527
+ }
1528
+ static names() {
1529
+ return {
1530
+ accountReviewStatus: 'AccountReviewStatus',
1531
+ currency: 'Currency',
1532
+ id: 'Id',
1533
+ messageTemplateNamespace: 'MessageTemplateNamespace',
1534
+ name: 'Name',
1535
+ };
1536
+ }
1537
+ static types() {
1538
+ return {
1539
+ accountReviewStatus: 'string',
1540
+ currency: 'string',
1541
+ id: 'string',
1542
+ messageTemplateNamespace: 'string',
1543
+ name: 'string',
1544
+ };
1545
+ }
1546
+ }
1547
+ exports.QueryChatappBindWabaResponseBodyData = QueryChatappBindWabaResponseBodyData;
1548
+ class QueryChatappPhoneNumbersResponseBodyPhoneNumbers extends $tea.Model {
1549
+ constructor(map) {
1550
+ super(map);
1551
+ }
1552
+ static names() {
1553
+ return {
1554
+ codeVerificationStatus: 'CodeVerificationStatus',
1555
+ messagingLimitTier: 'MessagingLimitTier',
1556
+ nameStatus: 'NameStatus',
1557
+ newNameStatus: 'NewNameStatus',
1558
+ phoneNumber: 'PhoneNumber',
1559
+ qualityRating: 'QualityRating',
1560
+ status: 'Status',
1561
+ statusCallbackUrl: 'StatusCallbackUrl',
1562
+ statusQueue: 'StatusQueue',
1563
+ upCallbackUrl: 'UpCallbackUrl',
1564
+ upQueue: 'UpQueue',
1565
+ verifiedName: 'VerifiedName',
1566
+ };
1567
+ }
1568
+ static types() {
1569
+ return {
1570
+ codeVerificationStatus: 'string',
1571
+ messagingLimitTier: 'string',
1572
+ nameStatus: 'string',
1573
+ newNameStatus: 'string',
1574
+ phoneNumber: 'string',
1575
+ qualityRating: 'string',
1576
+ status: 'string',
1577
+ statusCallbackUrl: 'string',
1578
+ statusQueue: 'string',
1579
+ upCallbackUrl: 'string',
1580
+ upQueue: 'string',
1581
+ verifiedName: 'string',
1582
+ };
1583
+ }
1584
+ }
1585
+ exports.QueryChatappPhoneNumbersResponseBodyPhoneNumbers = QueryChatappPhoneNumbersResponseBodyPhoneNumbers;
1352
1586
  class SendChatappMassMessageRequestSenderList extends $tea.Model {
1353
1587
  constructor(map) {
1354
1588
  super(map);
@@ -1385,6 +1619,13 @@ class Client extends openapi_client_1.default {
1385
1619
  }
1386
1620
  return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
1387
1621
  }
1622
+ /**
1623
+ * You can call this operation up to 100 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
1624
+ *
1625
+ * @param tmpReq BeeBotAssociateRequest
1626
+ * @param runtime runtime options for this request RuntimeOptions
1627
+ * @return BeeBotAssociateResponse
1628
+ */
1388
1629
  async beeBotAssociateWithOptions(tmpReq, runtime) {
1389
1630
  tea_util_1.default.validateModel(tmpReq);
1390
1631
  let request = new BeeBotAssociateShrinkRequest({});
@@ -1396,6 +1637,9 @@ class Client extends openapi_client_1.default {
1396
1637
  if (!tea_util_1.default.isUnset(request.chatBotInstanceId)) {
1397
1638
  body["ChatBotInstanceId"] = request.chatBotInstanceId;
1398
1639
  }
1640
+ if (!tea_util_1.default.isUnset(request.custSpaceId)) {
1641
+ body["CustSpaceId"] = request.custSpaceId;
1642
+ }
1399
1643
  if (!tea_util_1.default.isUnset(request.isvCode)) {
1400
1644
  body["IsvCode"] = request.isvCode;
1401
1645
  }
@@ -1427,10 +1671,23 @@ class Client extends openapi_client_1.default {
1427
1671
  });
1428
1672
  return $tea.cast(await this.callApi(params, req, runtime), new BeeBotAssociateResponse({}));
1429
1673
  }
1674
+ /**
1675
+ * You can call this operation up to 100 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
1676
+ *
1677
+ * @param request BeeBotAssociateRequest
1678
+ * @return BeeBotAssociateResponse
1679
+ */
1430
1680
  async beeBotAssociate(request) {
1431
1681
  let runtime = new $Util.RuntimeOptions({});
1432
1682
  return await this.beeBotAssociateWithOptions(request, runtime);
1433
1683
  }
1684
+ /**
1685
+ * You can call this operation up to 100 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
1686
+ *
1687
+ * @param tmpReq BeeBotChatRequest
1688
+ * @param runtime runtime options for this request RuntimeOptions
1689
+ * @return BeeBotChatResponse
1690
+ */
1434
1691
  async beeBotChatWithOptions(tmpReq, runtime) {
1435
1692
  tea_util_1.default.validateModel(tmpReq);
1436
1693
  let request = new BeeBotChatShrinkRequest({});
@@ -1445,6 +1702,9 @@ class Client extends openapi_client_1.default {
1445
1702
  if (!tea_util_1.default.isUnset(request.chatBotInstanceId)) {
1446
1703
  body["ChatBotInstanceId"] = request.chatBotInstanceId;
1447
1704
  }
1705
+ if (!tea_util_1.default.isUnset(request.custSpaceId)) {
1706
+ body["CustSpaceId"] = request.custSpaceId;
1707
+ }
1448
1708
  if (!tea_util_1.default.isUnset(request.intentName)) {
1449
1709
  body["IntentName"] = request.intentName;
1450
1710
  }
@@ -1488,10 +1748,24 @@ class Client extends openapi_client_1.default {
1488
1748
  });
1489
1749
  return $tea.cast(await this.callApi(params, req, runtime), new BeeBotChatResponse({}));
1490
1750
  }
1751
+ /**
1752
+ * You can call this operation up to 100 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
1753
+ *
1754
+ * @param request BeeBotChatRequest
1755
+ * @return BeeBotChatResponse
1756
+ */
1491
1757
  async beeBotChat(request) {
1492
1758
  let runtime = new $Util.RuntimeOptions({});
1493
1759
  return await this.beeBotChatWithOptions(request, runtime);
1494
1760
  }
1761
+ /**
1762
+ * ### QPS limit
1763
+ * You can call this operation up to 5 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation.
1764
+ *
1765
+ * @param tmpReq CreateChatappTemplateRequest
1766
+ * @param runtime runtime options for this request RuntimeOptions
1767
+ * @return CreateChatappTemplateResponse
1768
+ */
1495
1769
  async createChatappTemplateWithOptions(tmpReq, runtime) {
1496
1770
  tea_util_1.default.validateModel(tmpReq);
1497
1771
  let request = new CreateChatappTemplateShrinkRequest({});
@@ -1502,6 +1776,10 @@ class Client extends openapi_client_1.default {
1502
1776
  if (!tea_util_1.default.isUnset(tmpReq.example)) {
1503
1777
  request.exampleShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.example, "Example", "json");
1504
1778
  }
1779
+ let query = {};
1780
+ if (!tea_util_1.default.isUnset(request.custSpaceId)) {
1781
+ query["CustSpaceId"] = request.custSpaceId;
1782
+ }
1505
1783
  let body = {};
1506
1784
  if (!tea_util_1.default.isUnset(request.category)) {
1507
1785
  body["Category"] = request.category;
@@ -1528,6 +1806,7 @@ class Client extends openapi_client_1.default {
1528
1806
  body["TemplateType"] = request.templateType;
1529
1807
  }
1530
1808
  let req = new $OpenApi.OpenApiRequest({
1809
+ query: openapi_util_1.default.query(query),
1531
1810
  body: openapi_util_1.default.parseToMap(body),
1532
1811
  });
1533
1812
  let params = new $OpenApi.Params({
@@ -1543,13 +1822,31 @@ class Client extends openapi_client_1.default {
1543
1822
  });
1544
1823
  return $tea.cast(await this.callApi(params, req, runtime), new CreateChatappTemplateResponse({}));
1545
1824
  }
1825
+ /**
1826
+ * ### QPS limit
1827
+ * You can call this operation up to 5 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation.
1828
+ *
1829
+ * @param request CreateChatappTemplateRequest
1830
+ * @return CreateChatappTemplateResponse
1831
+ */
1546
1832
  async createChatappTemplate(request) {
1547
1833
  let runtime = new $Util.RuntimeOptions({});
1548
1834
  return await this.createChatappTemplateWithOptions(request, runtime);
1549
1835
  }
1836
+ /**
1837
+ * ### QPS limit
1838
+ * You can call this operation up to 5 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation.
1839
+ *
1840
+ * @param request DeleteChatappTemplateRequest
1841
+ * @param runtime runtime options for this request RuntimeOptions
1842
+ * @return DeleteChatappTemplateResponse
1843
+ */
1550
1844
  async deleteChatappTemplateWithOptions(request, runtime) {
1551
1845
  tea_util_1.default.validateModel(request);
1552
1846
  let query = {};
1847
+ if (!tea_util_1.default.isUnset(request.custSpaceId)) {
1848
+ query["CustSpaceId"] = request.custSpaceId;
1849
+ }
1553
1850
  if (!tea_util_1.default.isUnset(request.custWabaId)) {
1554
1851
  query["CustWabaId"] = request.custWabaId;
1555
1852
  }
@@ -1575,13 +1872,31 @@ class Client extends openapi_client_1.default {
1575
1872
  });
1576
1873
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteChatappTemplateResponse({}));
1577
1874
  }
1875
+ /**
1876
+ * ### QPS limit
1877
+ * You can call this operation up to 5 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation.
1878
+ *
1879
+ * @param request DeleteChatappTemplateRequest
1880
+ * @return DeleteChatappTemplateResponse
1881
+ */
1578
1882
  async deleteChatappTemplate(request) {
1579
1883
  let runtime = new $Util.RuntimeOptions({});
1580
1884
  return await this.deleteChatappTemplateWithOptions(request, runtime);
1581
1885
  }
1886
+ /**
1887
+ * ### QPS limit
1888
+ * You can call this operation up to 5 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation.
1889
+ *
1890
+ * @param request GetChatappTemplateDetailRequest
1891
+ * @param runtime runtime options for this request RuntimeOptions
1892
+ * @return GetChatappTemplateDetailResponse
1893
+ */
1582
1894
  async getChatappTemplateDetailWithOptions(request, runtime) {
1583
1895
  tea_util_1.default.validateModel(request);
1584
1896
  let query = {};
1897
+ if (!tea_util_1.default.isUnset(request.custSpaceId)) {
1898
+ query["CustSpaceId"] = request.custSpaceId;
1899
+ }
1585
1900
  if (!tea_util_1.default.isUnset(request.custWabaId)) {
1586
1901
  query["CustWabaId"] = request.custWabaId;
1587
1902
  }
@@ -1610,21 +1925,39 @@ class Client extends openapi_client_1.default {
1610
1925
  });
1611
1926
  return $tea.cast(await this.callApi(params, req, runtime), new GetChatappTemplateDetailResponse({}));
1612
1927
  }
1928
+ /**
1929
+ * ### QPS limit
1930
+ * You can call this operation up to 5 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation.
1931
+ *
1932
+ * @param request GetChatappTemplateDetailRequest
1933
+ * @return GetChatappTemplateDetailResponse
1934
+ */
1613
1935
  async getChatappTemplateDetail(request) {
1614
1936
  let runtime = new $Util.RuntimeOptions({});
1615
1937
  return await this.getChatappTemplateDetailWithOptions(request, runtime);
1616
1938
  }
1939
+ /**
1940
+ * ### QPS limit
1941
+ * You can call this operation up to 5 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation.
1942
+ *
1943
+ * @param tmpReq ListChatappTemplateRequest
1944
+ * @param runtime runtime options for this request RuntimeOptions
1945
+ * @return ListChatappTemplateResponse
1946
+ */
1617
1947
  async listChatappTemplateWithOptions(tmpReq, runtime) {
1618
1948
  tea_util_1.default.validateModel(tmpReq);
1619
1949
  let request = new ListChatappTemplateShrinkRequest({});
1620
1950
  openapi_util_1.default.convert(tmpReq, request);
1621
- if (!tea_util_1.default.isUnset($tea.toMap(tmpReq.page))) {
1622
- request.pageShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle($tea.toMap(tmpReq.page), "Page", "json");
1951
+ if (!tea_util_1.default.isUnset(tmpReq.page)) {
1952
+ request.pageShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.page, "Page", "json");
1623
1953
  }
1624
1954
  let query = {};
1625
1955
  if (!tea_util_1.default.isUnset(request.auditStatus)) {
1626
1956
  query["AuditStatus"] = request.auditStatus;
1627
1957
  }
1958
+ if (!tea_util_1.default.isUnset(request.custSpaceId)) {
1959
+ query["CustSpaceId"] = request.custSpaceId;
1960
+ }
1628
1961
  if (!tea_util_1.default.isUnset(request.custWabaId)) {
1629
1962
  query["CustWabaId"] = request.custWabaId;
1630
1963
  }
@@ -1656,6 +1989,13 @@ class Client extends openapi_client_1.default {
1656
1989
  });
1657
1990
  return $tea.cast(await this.callApi(params, req, runtime), new ListChatappTemplateResponse({}));
1658
1991
  }
1992
+ /**
1993
+ * ### QPS limit
1994
+ * You can call this operation up to 5 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation.
1995
+ *
1996
+ * @param request ListChatappTemplateRequest
1997
+ * @return ListChatappTemplateResponse
1998
+ */
1659
1999
  async listChatappTemplate(request) {
1660
2000
  let runtime = new $Util.RuntimeOptions({});
1661
2001
  return await this.listChatappTemplateWithOptions(request, runtime);
@@ -1674,6 +2014,9 @@ class Client extends openapi_client_1.default {
1674
2014
  if (!tea_util_1.default.isUnset(request.componentsShrink)) {
1675
2015
  body["Components"] = request.componentsShrink;
1676
2016
  }
2017
+ if (!tea_util_1.default.isUnset(request.custSpaceId)) {
2018
+ body["CustSpaceId"] = request.custSpaceId;
2019
+ }
1677
2020
  if (!tea_util_1.default.isUnset(request.custWabaId)) {
1678
2021
  body["CustWabaId"] = request.custWabaId;
1679
2022
  }
@@ -1709,6 +2052,98 @@ class Client extends openapi_client_1.default {
1709
2052
  let runtime = new $Util.RuntimeOptions({});
1710
2053
  return await this.modifyChatappTemplateWithOptions(request, runtime);
1711
2054
  }
2055
+ /**
2056
+ * You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
2057
+ *
2058
+ * @param request QueryChatappBindWabaRequest
2059
+ * @param runtime runtime options for this request RuntimeOptions
2060
+ * @return QueryChatappBindWabaResponse
2061
+ */
2062
+ async queryChatappBindWabaWithOptions(request, runtime) {
2063
+ tea_util_1.default.validateModel(request);
2064
+ let query = {};
2065
+ if (!tea_util_1.default.isUnset(request.custSpaceId)) {
2066
+ query["CustSpaceId"] = request.custSpaceId;
2067
+ }
2068
+ if (!tea_util_1.default.isUnset(request.isvCode)) {
2069
+ query["IsvCode"] = request.isvCode;
2070
+ }
2071
+ let req = new $OpenApi.OpenApiRequest({
2072
+ query: openapi_util_1.default.query(query),
2073
+ });
2074
+ let params = new $OpenApi.Params({
2075
+ action: "QueryChatappBindWaba",
2076
+ version: "2020-06-06",
2077
+ protocol: "HTTPS",
2078
+ pathname: "/",
2079
+ method: "POST",
2080
+ authType: "AK",
2081
+ style: "RPC",
2082
+ reqBodyType: "formData",
2083
+ bodyType: "json",
2084
+ });
2085
+ return $tea.cast(await this.callApi(params, req, runtime), new QueryChatappBindWabaResponse({}));
2086
+ }
2087
+ /**
2088
+ * You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
2089
+ *
2090
+ * @param request QueryChatappBindWabaRequest
2091
+ * @return QueryChatappBindWabaResponse
2092
+ */
2093
+ async queryChatappBindWaba(request) {
2094
+ let runtime = new $Util.RuntimeOptions({});
2095
+ return await this.queryChatappBindWabaWithOptions(request, runtime);
2096
+ }
2097
+ /**
2098
+ * You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
2099
+ *
2100
+ * @param request QueryChatappPhoneNumbersRequest
2101
+ * @param runtime runtime options for this request RuntimeOptions
2102
+ * @return QueryChatappPhoneNumbersResponse
2103
+ */
2104
+ async queryChatappPhoneNumbersWithOptions(request, runtime) {
2105
+ tea_util_1.default.validateModel(request);
2106
+ let query = {};
2107
+ if (!tea_util_1.default.isUnset(request.custSpaceId)) {
2108
+ query["CustSpaceId"] = request.custSpaceId;
2109
+ }
2110
+ if (!tea_util_1.default.isUnset(request.isvCode)) {
2111
+ query["IsvCode"] = request.isvCode;
2112
+ }
2113
+ let req = new $OpenApi.OpenApiRequest({
2114
+ query: openapi_util_1.default.query(query),
2115
+ });
2116
+ let params = new $OpenApi.Params({
2117
+ action: "QueryChatappPhoneNumbers",
2118
+ version: "2020-06-06",
2119
+ protocol: "HTTPS",
2120
+ pathname: "/",
2121
+ method: "POST",
2122
+ authType: "AK",
2123
+ style: "RPC",
2124
+ reqBodyType: "formData",
2125
+ bodyType: "json",
2126
+ });
2127
+ return $tea.cast(await this.callApi(params, req, runtime), new QueryChatappPhoneNumbersResponse({}));
2128
+ }
2129
+ /**
2130
+ * You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
2131
+ *
2132
+ * @param request QueryChatappPhoneNumbersRequest
2133
+ * @return QueryChatappPhoneNumbersResponse
2134
+ */
2135
+ async queryChatappPhoneNumbers(request) {
2136
+ let runtime = new $Util.RuntimeOptions({});
2137
+ return await this.queryChatappPhoneNumbersWithOptions(request, runtime);
2138
+ }
2139
+ /**
2140
+ * You can call this operation up to 10 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation.
2141
+ * Can support up to 1,000 numbers per request.
2142
+ *
2143
+ * @param tmpReq SendChatappMassMessageRequest
2144
+ * @param runtime runtime options for this request RuntimeOptions
2145
+ * @return SendChatappMassMessageResponse
2146
+ */
1712
2147
  async sendChatappMassMessageWithOptions(tmpReq, runtime) {
1713
2148
  tea_util_1.default.validateModel(tmpReq);
1714
2149
  let request = new SendChatappMassMessageShrinkRequest({});
@@ -1720,6 +2155,9 @@ class Client extends openapi_client_1.default {
1720
2155
  if (!tea_util_1.default.isUnset(request.channelType)) {
1721
2156
  body["ChannelType"] = request.channelType;
1722
2157
  }
2158
+ if (!tea_util_1.default.isUnset(request.custSpaceId)) {
2159
+ body["CustSpaceId"] = request.custSpaceId;
2160
+ }
1723
2161
  if (!tea_util_1.default.isUnset(request.custWabaId)) {
1724
2162
  body["CustWabaId"] = request.custWabaId;
1725
2163
  }
@@ -1763,10 +2201,24 @@ class Client extends openapi_client_1.default {
1763
2201
  });
1764
2202
  return $tea.cast(await this.callApi(params, req, runtime), new SendChatappMassMessageResponse({}));
1765
2203
  }
2204
+ /**
2205
+ * You can call this operation up to 10 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation.
2206
+ * Can support up to 1,000 numbers per request.
2207
+ *
2208
+ * @param request SendChatappMassMessageRequest
2209
+ * @return SendChatappMassMessageResponse
2210
+ */
1766
2211
  async sendChatappMassMessage(request) {
1767
2212
  let runtime = new $Util.RuntimeOptions({});
1768
2213
  return await this.sendChatappMassMessageWithOptions(request, runtime);
1769
2214
  }
2215
+ /**
2216
+ * You can call this operation up to 200 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation.
2217
+ *
2218
+ * @param tmpReq SendChatappMessageRequest
2219
+ * @param runtime runtime options for this request RuntimeOptions
2220
+ * @return SendChatappMessageResponse
2221
+ */
1770
2222
  async sendChatappMessageWithOptions(tmpReq, runtime) {
1771
2223
  tea_util_1.default.validateModel(tmpReq);
1772
2224
  let request = new SendChatappMessageShrinkRequest({});
@@ -1788,6 +2240,12 @@ class Client extends openapi_client_1.default {
1788
2240
  if (!tea_util_1.default.isUnset(request.channelType)) {
1789
2241
  body["ChannelType"] = request.channelType;
1790
2242
  }
2243
+ if (!tea_util_1.default.isUnset(request.contextMessageId)) {
2244
+ body["ContextMessageId"] = request.contextMessageId;
2245
+ }
2246
+ if (!tea_util_1.default.isUnset(request.custSpaceId)) {
2247
+ body["CustSpaceId"] = request.custSpaceId;
2248
+ }
1791
2249
  if (!tea_util_1.default.isUnset(request.custWabaId)) {
1792
2250
  body["CustWabaId"] = request.custWabaId;
1793
2251
  }
@@ -1803,12 +2261,18 @@ class Client extends openapi_client_1.default {
1803
2261
  if (!tea_util_1.default.isUnset(request.isvCode)) {
1804
2262
  body["IsvCode"] = request.isvCode;
1805
2263
  }
2264
+ if (!tea_util_1.default.isUnset(request.label)) {
2265
+ body["Label"] = request.label;
2266
+ }
1806
2267
  if (!tea_util_1.default.isUnset(request.language)) {
1807
2268
  body["Language"] = request.language;
1808
2269
  }
1809
2270
  if (!tea_util_1.default.isUnset(request.messageType)) {
1810
2271
  body["MessageType"] = request.messageType;
1811
2272
  }
2273
+ if (!tea_util_1.default.isUnset(request.tag)) {
2274
+ body["Tag"] = request.tag;
2275
+ }
1812
2276
  if (!tea_util_1.default.isUnset(request.templateCode)) {
1813
2277
  body["TemplateCode"] = request.templateCode;
1814
2278
  }
@@ -1818,6 +2282,12 @@ class Client extends openapi_client_1.default {
1818
2282
  if (!tea_util_1.default.isUnset(request.to)) {
1819
2283
  body["To"] = request.to;
1820
2284
  }
2285
+ if (!tea_util_1.default.isUnset(request.trackingData)) {
2286
+ body["TrackingData"] = request.trackingData;
2287
+ }
2288
+ if (!tea_util_1.default.isUnset(request.ttl)) {
2289
+ body["Ttl"] = request.ttl;
2290
+ }
1821
2291
  if (!tea_util_1.default.isUnset(request.type)) {
1822
2292
  body["Type"] = request.type;
1823
2293
  }
@@ -1838,6 +2308,12 @@ class Client extends openapi_client_1.default {
1838
2308
  });
1839
2309
  return $tea.cast(await this.callApi(params, req, runtime), new SendChatappMessageResponse({}));
1840
2310
  }
2311
+ /**
2312
+ * You can call this operation up to 200 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation.
2313
+ *
2314
+ * @param request SendChatappMessageRequest
2315
+ * @return SendChatappMessageResponse
2316
+ */
1841
2317
  async sendChatappMessage(request) {
1842
2318
  let runtime = new $Util.RuntimeOptions({});
1843
2319
  return await this.sendChatappMessageWithOptions(request, runtime);