@wppconnect/server 2.2.1 → 2.2.3
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/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/dist/config.js +2 -2
- package/dist/controller/catalogController.js +3 -11
- package/dist/controller/groupController.js +309 -104
- package/dist/controller/labelsController.js +67 -13
- package/dist/controller/messageController.js +282 -89
- package/dist/controller/miscController.js +27 -14
- package/dist/controller/orderController.js +22 -7
- package/dist/controller/sessionController.js +1 -11
- package/dist/controller/statusController.js +67 -14
- package/dist/swagger.json +1182 -893
- package/dist/util/functions.js +4 -7
- package/dist/util/tokenStore/model/token.js +10 -11
- package/package.json +8 -8
package/dist/swagger.json
CHANGED
|
@@ -305,15 +305,9 @@
|
|
|
305
305
|
"application/json": {
|
|
306
306
|
"schema": {
|
|
307
307
|
"type": "object",
|
|
308
|
-
"properties": {
|
|
309
|
-
"clearSession": {
|
|
310
|
-
"type": "boolean"
|
|
311
|
-
}
|
|
312
|
-
}
|
|
308
|
+
"properties": {}
|
|
313
309
|
},
|
|
314
|
-
"example": {
|
|
315
|
-
"clearSession": false
|
|
316
|
-
}
|
|
310
|
+
"example": {}
|
|
317
311
|
}
|
|
318
312
|
}
|
|
319
313
|
}
|
|
@@ -495,15 +489,9 @@
|
|
|
495
489
|
"application/json": {
|
|
496
490
|
"schema": {
|
|
497
491
|
"type": "object",
|
|
498
|
-
"properties": {
|
|
499
|
-
"clearSession": {
|
|
500
|
-
"type": "boolean"
|
|
501
|
-
}
|
|
502
|
-
}
|
|
492
|
+
"properties": {}
|
|
503
493
|
},
|
|
504
|
-
"example": {
|
|
505
|
-
"clearSession": false
|
|
506
|
-
}
|
|
494
|
+
"example": {}
|
|
507
495
|
}
|
|
508
496
|
}
|
|
509
497
|
}
|
|
@@ -626,28 +614,6 @@
|
|
|
626
614
|
"type": "string",
|
|
627
615
|
"example": "NERDWHATS_AMERICA"
|
|
628
616
|
}
|
|
629
|
-
},
|
|
630
|
-
{
|
|
631
|
-
"name": "obj",
|
|
632
|
-
"in": "body",
|
|
633
|
-
"schema": {
|
|
634
|
-
"type": "object",
|
|
635
|
-
"properties": {
|
|
636
|
-
"phone": {
|
|
637
|
-
"type": "string",
|
|
638
|
-
"example": "5521999999999"
|
|
639
|
-
},
|
|
640
|
-
"message": {
|
|
641
|
-
"type": "string",
|
|
642
|
-
"example": "Hello, welcome to WPPConnect"
|
|
643
|
-
},
|
|
644
|
-
"isGroup": {
|
|
645
|
-
"type": "boolean",
|
|
646
|
-
"example": false
|
|
647
|
-
}
|
|
648
|
-
},
|
|
649
|
-
"required": ["phone", "message", "isGroup"]
|
|
650
|
-
}
|
|
651
617
|
}
|
|
652
618
|
],
|
|
653
619
|
"responses": {
|
|
@@ -659,7 +625,37 @@
|
|
|
659
625
|
{
|
|
660
626
|
"bearerAuth": []
|
|
661
627
|
}
|
|
662
|
-
]
|
|
628
|
+
],
|
|
629
|
+
"requestBody": {
|
|
630
|
+
"required": true,
|
|
631
|
+
"content": {
|
|
632
|
+
"application/json": {
|
|
633
|
+
"schema": {
|
|
634
|
+
"type": "object",
|
|
635
|
+
"properties": {
|
|
636
|
+
"$phone": {
|
|
637
|
+
"type": "string"
|
|
638
|
+
},
|
|
639
|
+
"$isGroup": {
|
|
640
|
+
"type": "boolean"
|
|
641
|
+
},
|
|
642
|
+
"$message": {
|
|
643
|
+
"type": "string"
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
},
|
|
647
|
+
"examples": {
|
|
648
|
+
"Default": {
|
|
649
|
+
"value": {
|
|
650
|
+
"phone": "5521999999999",
|
|
651
|
+
"isGroup": false,
|
|
652
|
+
"message": "Hello, welcome to WPPConnect"
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
}
|
|
663
659
|
}
|
|
664
660
|
},
|
|
665
661
|
"/api/{session}/send-image": {
|
|
@@ -675,36 +671,6 @@
|
|
|
675
671
|
"type": "string",
|
|
676
672
|
"example": "NERDWHATS_AMERICA"
|
|
677
673
|
}
|
|
678
|
-
},
|
|
679
|
-
{
|
|
680
|
-
"name": "obj",
|
|
681
|
-
"in": "body",
|
|
682
|
-
"schema": {
|
|
683
|
-
"type": "object",
|
|
684
|
-
"properties": {
|
|
685
|
-
"phone": {
|
|
686
|
-
"type": "string",
|
|
687
|
-
"example": "5521999999999"
|
|
688
|
-
},
|
|
689
|
-
"isGroup": {
|
|
690
|
-
"type": "boolean",
|
|
691
|
-
"example": false
|
|
692
|
-
},
|
|
693
|
-
"filename": {
|
|
694
|
-
"type": "string",
|
|
695
|
-
"example": "file name lol"
|
|
696
|
-
},
|
|
697
|
-
"caption": {
|
|
698
|
-
"type": "string",
|
|
699
|
-
"example": "caption for my file"
|
|
700
|
-
},
|
|
701
|
-
"base64": {
|
|
702
|
-
"type": "string",
|
|
703
|
-
"example": "<base64> string"
|
|
704
|
-
}
|
|
705
|
-
},
|
|
706
|
-
"required": ["phone", "isGroup", "filename", "caption", "base64"]
|
|
707
|
-
}
|
|
708
674
|
}
|
|
709
675
|
],
|
|
710
676
|
"responses": {
|
|
@@ -719,7 +685,45 @@
|
|
|
719
685
|
{
|
|
720
686
|
"bearerAuth": []
|
|
721
687
|
}
|
|
722
|
-
]
|
|
688
|
+
],
|
|
689
|
+
"requestBody": {
|
|
690
|
+
"required": true,
|
|
691
|
+
"content": {
|
|
692
|
+
"application/json": {
|
|
693
|
+
"schema": {
|
|
694
|
+
"type": "object",
|
|
695
|
+
"properties": {
|
|
696
|
+
"phone": {
|
|
697
|
+
"type": "string"
|
|
698
|
+
},
|
|
699
|
+
"isGroup": {
|
|
700
|
+
"type": "boolean"
|
|
701
|
+
},
|
|
702
|
+
"filename": {
|
|
703
|
+
"type": "string"
|
|
704
|
+
},
|
|
705
|
+
"caption": {
|
|
706
|
+
"type": "string"
|
|
707
|
+
},
|
|
708
|
+
"base64": {
|
|
709
|
+
"type": "string"
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
},
|
|
713
|
+
"examples": {
|
|
714
|
+
"Default": {
|
|
715
|
+
"value": {
|
|
716
|
+
"phone": "5521999999999",
|
|
717
|
+
"isGroup": false,
|
|
718
|
+
"filename": "file name lol",
|
|
719
|
+
"caption": "caption for my file",
|
|
720
|
+
"base64": "<base64> string"
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
}
|
|
723
727
|
}
|
|
724
728
|
},
|
|
725
729
|
"/api/{session}/send-sticker": {
|
|
@@ -735,28 +739,6 @@
|
|
|
735
739
|
"type": "string",
|
|
736
740
|
"example": "NERDWHATS_AMERICA"
|
|
737
741
|
}
|
|
738
|
-
},
|
|
739
|
-
{
|
|
740
|
-
"name": "obj",
|
|
741
|
-
"in": "body",
|
|
742
|
-
"schema": {
|
|
743
|
-
"type": "object",
|
|
744
|
-
"properties": {
|
|
745
|
-
"phone": {
|
|
746
|
-
"type": "string",
|
|
747
|
-
"example": "5521999999999"
|
|
748
|
-
},
|
|
749
|
-
"isGroup": {
|
|
750
|
-
"type": "boolean",
|
|
751
|
-
"example": true
|
|
752
|
-
},
|
|
753
|
-
"path": {
|
|
754
|
-
"type": "string",
|
|
755
|
-
"example": "<path_file>"
|
|
756
|
-
}
|
|
757
|
-
},
|
|
758
|
-
"required": ["phone", "isGroup", "path"]
|
|
759
|
-
}
|
|
760
742
|
}
|
|
761
743
|
],
|
|
762
744
|
"responses": {
|
|
@@ -771,7 +753,38 @@
|
|
|
771
753
|
{
|
|
772
754
|
"bearerAuth": []
|
|
773
755
|
}
|
|
774
|
-
]
|
|
756
|
+
],
|
|
757
|
+
"requestBody": {
|
|
758
|
+
"required": true,
|
|
759
|
+
"content": {
|
|
760
|
+
"application/json": {
|
|
761
|
+
"schema": {
|
|
762
|
+
"type": "object",
|
|
763
|
+
"properties": {
|
|
764
|
+
"phone": {
|
|
765
|
+
"type": "string"
|
|
766
|
+
},
|
|
767
|
+
"isGroup": {
|
|
768
|
+
"type": "boolean"
|
|
769
|
+
},
|
|
770
|
+
"path": {
|
|
771
|
+
"type": "string"
|
|
772
|
+
}
|
|
773
|
+
},
|
|
774
|
+
"required": ["phone", "path"]
|
|
775
|
+
},
|
|
776
|
+
"examples": {
|
|
777
|
+
"Default": {
|
|
778
|
+
"value": {
|
|
779
|
+
"phone": "5521999999999",
|
|
780
|
+
"isGroup": true,
|
|
781
|
+
"path": "<path_file>"
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
}
|
|
775
788
|
}
|
|
776
789
|
},
|
|
777
790
|
"/api/{session}/send-sticker-gif": {
|
|
@@ -787,28 +800,6 @@
|
|
|
787
800
|
"type": "string",
|
|
788
801
|
"example": "NERDWHATS_AMERICA"
|
|
789
802
|
}
|
|
790
|
-
},
|
|
791
|
-
{
|
|
792
|
-
"name": "obj",
|
|
793
|
-
"in": "body",
|
|
794
|
-
"schema": {
|
|
795
|
-
"type": "object",
|
|
796
|
-
"properties": {
|
|
797
|
-
"phone": {
|
|
798
|
-
"type": "string",
|
|
799
|
-
"example": "5521999999999"
|
|
800
|
-
},
|
|
801
|
-
"isGroup": {
|
|
802
|
-
"type": "boolean",
|
|
803
|
-
"example": true
|
|
804
|
-
},
|
|
805
|
-
"path": {
|
|
806
|
-
"type": "string",
|
|
807
|
-
"example": "<path_file>"
|
|
808
|
-
}
|
|
809
|
-
},
|
|
810
|
-
"required": ["phone", "isGroup", "path"]
|
|
811
|
-
}
|
|
812
803
|
}
|
|
813
804
|
],
|
|
814
805
|
"responses": {
|
|
@@ -823,7 +814,38 @@
|
|
|
823
814
|
{
|
|
824
815
|
"bearerAuth": []
|
|
825
816
|
}
|
|
826
|
-
]
|
|
817
|
+
],
|
|
818
|
+
"requestBody": {
|
|
819
|
+
"required": true,
|
|
820
|
+
"content": {
|
|
821
|
+
"application/json": {
|
|
822
|
+
"schema": {
|
|
823
|
+
"type": "object",
|
|
824
|
+
"properties": {
|
|
825
|
+
"phone": {
|
|
826
|
+
"type": "string"
|
|
827
|
+
},
|
|
828
|
+
"isGroup": {
|
|
829
|
+
"type": "boolean"
|
|
830
|
+
},
|
|
831
|
+
"path": {
|
|
832
|
+
"type": "string"
|
|
833
|
+
}
|
|
834
|
+
},
|
|
835
|
+
"required": ["phone", "path"]
|
|
836
|
+
},
|
|
837
|
+
"examples": {
|
|
838
|
+
"Default": {
|
|
839
|
+
"value": {
|
|
840
|
+
"phone": "5521999999999",
|
|
841
|
+
"isGroup": true,
|
|
842
|
+
"path": "<path_file>"
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
}
|
|
827
849
|
}
|
|
828
850
|
},
|
|
829
851
|
"/api/{session}/send-reply": {
|
|
@@ -839,32 +861,6 @@
|
|
|
839
861
|
"type": "string",
|
|
840
862
|
"example": "NERDWHATS_AMERICA"
|
|
841
863
|
}
|
|
842
|
-
},
|
|
843
|
-
{
|
|
844
|
-
"name": "obj",
|
|
845
|
-
"in": "body",
|
|
846
|
-
"schema": {
|
|
847
|
-
"type": "object",
|
|
848
|
-
"properties": {
|
|
849
|
-
"phone": {
|
|
850
|
-
"type": "string",
|
|
851
|
-
"example": "5521999999999"
|
|
852
|
-
},
|
|
853
|
-
"isGroup": {
|
|
854
|
-
"type": "boolean",
|
|
855
|
-
"example": false
|
|
856
|
-
},
|
|
857
|
-
"message": {
|
|
858
|
-
"type": "string",
|
|
859
|
-
"example": "Reply to message"
|
|
860
|
-
},
|
|
861
|
-
"messageId": {
|
|
862
|
-
"type": "string",
|
|
863
|
-
"example": "<id_message>"
|
|
864
|
-
}
|
|
865
|
-
},
|
|
866
|
-
"required": ["phone", "isGroup", "message", "messageId"]
|
|
867
|
-
}
|
|
868
864
|
}
|
|
869
865
|
],
|
|
870
866
|
"responses": {
|
|
@@ -876,51 +872,55 @@
|
|
|
876
872
|
{
|
|
877
873
|
"bearerAuth": []
|
|
878
874
|
}
|
|
879
|
-
]
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
"schema": {
|
|
900
|
-
"type": "object",
|
|
901
|
-
"properties": {
|
|
902
|
-
"phone": {
|
|
903
|
-
"type": "string",
|
|
904
|
-
"example": "5521999999999"
|
|
905
|
-
},
|
|
906
|
-
"isGroup": {
|
|
907
|
-
"type": "boolean",
|
|
908
|
-
"example": false
|
|
909
|
-
},
|
|
910
|
-
"filename": {
|
|
911
|
-
"type": "string",
|
|
912
|
-
"example": "file name lol"
|
|
913
|
-
},
|
|
914
|
-
"caption": {
|
|
915
|
-
"type": "string",
|
|
916
|
-
"example": "caption for my file"
|
|
917
|
-
},
|
|
918
|
-
"base64": {
|
|
919
|
-
"type": "string",
|
|
920
|
-
"example": "<base64> string"
|
|
875
|
+
],
|
|
876
|
+
"requestBody": {
|
|
877
|
+
"required": true,
|
|
878
|
+
"content": {
|
|
879
|
+
"application/json": {
|
|
880
|
+
"schema": {
|
|
881
|
+
"type": "object",
|
|
882
|
+
"properties": {
|
|
883
|
+
"phone": {
|
|
884
|
+
"type": "string"
|
|
885
|
+
},
|
|
886
|
+
"isGroup": {
|
|
887
|
+
"type": "boolean"
|
|
888
|
+
},
|
|
889
|
+
"message": {
|
|
890
|
+
"type": "string"
|
|
891
|
+
},
|
|
892
|
+
"messageId": {
|
|
893
|
+
"type": "string"
|
|
894
|
+
}
|
|
921
895
|
}
|
|
922
896
|
},
|
|
923
|
-
"
|
|
897
|
+
"examples": {
|
|
898
|
+
"Default": {
|
|
899
|
+
"value": {
|
|
900
|
+
"phone": "5521999999999",
|
|
901
|
+
"isGroup": false,
|
|
902
|
+
"message": "Reply to message",
|
|
903
|
+
"messageId": "<id_message>"
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
},
|
|
912
|
+
"/api/{session}/send-file": {
|
|
913
|
+
"post": {
|
|
914
|
+
"tags": ["Messages"],
|
|
915
|
+
"description": "",
|
|
916
|
+
"parameters": [
|
|
917
|
+
{
|
|
918
|
+
"name": "session",
|
|
919
|
+
"in": "path",
|
|
920
|
+
"required": true,
|
|
921
|
+
"schema": {
|
|
922
|
+
"type": "string",
|
|
923
|
+
"example": "NERDWHATS_AMERICA"
|
|
924
924
|
}
|
|
925
925
|
}
|
|
926
926
|
],
|
|
@@ -936,7 +936,45 @@
|
|
|
936
936
|
{
|
|
937
937
|
"bearerAuth": []
|
|
938
938
|
}
|
|
939
|
-
]
|
|
939
|
+
],
|
|
940
|
+
"requestBody": {
|
|
941
|
+
"required": true,
|
|
942
|
+
"content": {
|
|
943
|
+
"application/json": {
|
|
944
|
+
"schema": {
|
|
945
|
+
"type": "object",
|
|
946
|
+
"properties": {
|
|
947
|
+
"phone": {
|
|
948
|
+
"type": "string"
|
|
949
|
+
},
|
|
950
|
+
"isGroup": {
|
|
951
|
+
"type": "boolean"
|
|
952
|
+
},
|
|
953
|
+
"filename": {
|
|
954
|
+
"type": "string"
|
|
955
|
+
},
|
|
956
|
+
"caption": {
|
|
957
|
+
"type": "string"
|
|
958
|
+
},
|
|
959
|
+
"base64": {
|
|
960
|
+
"type": "string"
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
},
|
|
964
|
+
"examples": {
|
|
965
|
+
"Default": {
|
|
966
|
+
"value": {
|
|
967
|
+
"phone": "5521999999999",
|
|
968
|
+
"isGroup": false,
|
|
969
|
+
"filename": "file name lol",
|
|
970
|
+
"caption": "caption for my file",
|
|
971
|
+
"base64": "<base64> string"
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
}
|
|
940
978
|
}
|
|
941
979
|
},
|
|
942
980
|
"/api/{session}/send-file-base64": {
|
|
@@ -952,36 +990,6 @@
|
|
|
952
990
|
"type": "string",
|
|
953
991
|
"example": "NERDWHATS_AMERICA"
|
|
954
992
|
}
|
|
955
|
-
},
|
|
956
|
-
{
|
|
957
|
-
"name": "obj",
|
|
958
|
-
"in": "body",
|
|
959
|
-
"schema": {
|
|
960
|
-
"type": "object",
|
|
961
|
-
"properties": {
|
|
962
|
-
"phone": {
|
|
963
|
-
"type": "string",
|
|
964
|
-
"example": "5521999999999"
|
|
965
|
-
},
|
|
966
|
-
"isGroup": {
|
|
967
|
-
"type": "boolean",
|
|
968
|
-
"example": false
|
|
969
|
-
},
|
|
970
|
-
"filename": {
|
|
971
|
-
"type": "string",
|
|
972
|
-
"example": "file name lol"
|
|
973
|
-
},
|
|
974
|
-
"caption": {
|
|
975
|
-
"type": "string",
|
|
976
|
-
"example": "caption for my file"
|
|
977
|
-
},
|
|
978
|
-
"base64": {
|
|
979
|
-
"type": "string",
|
|
980
|
-
"example": "<base64> string"
|
|
981
|
-
}
|
|
982
|
-
},
|
|
983
|
-
"required": ["phone", "isGroup", "filename", "caption", "base64"]
|
|
984
|
-
}
|
|
985
993
|
}
|
|
986
994
|
],
|
|
987
995
|
"responses": {
|
|
@@ -996,7 +1004,45 @@
|
|
|
996
1004
|
{
|
|
997
1005
|
"bearerAuth": []
|
|
998
1006
|
}
|
|
999
|
-
]
|
|
1007
|
+
],
|
|
1008
|
+
"requestBody": {
|
|
1009
|
+
"required": true,
|
|
1010
|
+
"content": {
|
|
1011
|
+
"application/json": {
|
|
1012
|
+
"schema": {
|
|
1013
|
+
"type": "object",
|
|
1014
|
+
"properties": {
|
|
1015
|
+
"phone": {
|
|
1016
|
+
"type": "string"
|
|
1017
|
+
},
|
|
1018
|
+
"isGroup": {
|
|
1019
|
+
"type": "boolean"
|
|
1020
|
+
},
|
|
1021
|
+
"filename": {
|
|
1022
|
+
"type": "string"
|
|
1023
|
+
},
|
|
1024
|
+
"caption": {
|
|
1025
|
+
"type": "string"
|
|
1026
|
+
},
|
|
1027
|
+
"base64": {
|
|
1028
|
+
"type": "string"
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
},
|
|
1032
|
+
"examples": {
|
|
1033
|
+
"Default": {
|
|
1034
|
+
"value": {
|
|
1035
|
+
"phone": "5521999999999",
|
|
1036
|
+
"isGroup": false,
|
|
1037
|
+
"filename": "file name lol",
|
|
1038
|
+
"caption": "caption for my file",
|
|
1039
|
+
"base64": "<base64> string"
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1000
1046
|
}
|
|
1001
1047
|
},
|
|
1002
1048
|
"/api/{session}/send-voice": {
|
|
@@ -1012,31 +1058,6 @@
|
|
|
1012
1058
|
"type": "string",
|
|
1013
1059
|
"example": "NERDWHATS_AMERICA"
|
|
1014
1060
|
}
|
|
1015
|
-
},
|
|
1016
|
-
{
|
|
1017
|
-
"name": "obj",
|
|
1018
|
-
"in": "body",
|
|
1019
|
-
"schema": {
|
|
1020
|
-
"type": "object",
|
|
1021
|
-
"properties": {
|
|
1022
|
-
"phone": {
|
|
1023
|
-
"type": "string",
|
|
1024
|
-
"example": "5521999999999"
|
|
1025
|
-
},
|
|
1026
|
-
"isGroup": {
|
|
1027
|
-
"type": "boolean",
|
|
1028
|
-
"example": false
|
|
1029
|
-
},
|
|
1030
|
-
"path": {
|
|
1031
|
-
"type": "string",
|
|
1032
|
-
"example": "<path_file>"
|
|
1033
|
-
},
|
|
1034
|
-
"quotedMessageId": {
|
|
1035
|
-
"type": "undefined"
|
|
1036
|
-
}
|
|
1037
|
-
},
|
|
1038
|
-
"required": ["phone", "isGroup", "path", "quotedMessageId"]
|
|
1039
|
-
}
|
|
1040
1061
|
}
|
|
1041
1062
|
],
|
|
1042
1063
|
"responses": {
|
|
@@ -1048,7 +1069,41 @@
|
|
|
1048
1069
|
{
|
|
1049
1070
|
"bearerAuth": []
|
|
1050
1071
|
}
|
|
1051
|
-
]
|
|
1072
|
+
],
|
|
1073
|
+
"requestBody": {
|
|
1074
|
+
"required": true,
|
|
1075
|
+
"content": {
|
|
1076
|
+
"application/json": {
|
|
1077
|
+
"schema": {
|
|
1078
|
+
"type": "object",
|
|
1079
|
+
"properties": {
|
|
1080
|
+
"phone": {
|
|
1081
|
+
"type": "string"
|
|
1082
|
+
},
|
|
1083
|
+
"isGroup": {
|
|
1084
|
+
"type": "boolean"
|
|
1085
|
+
},
|
|
1086
|
+
"path": {
|
|
1087
|
+
"type": "string"
|
|
1088
|
+
},
|
|
1089
|
+
"quotedMessageId": {
|
|
1090
|
+
"type": "string"
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
},
|
|
1094
|
+
"examples": {
|
|
1095
|
+
"Default": {
|
|
1096
|
+
"value": {
|
|
1097
|
+
"phone": "5521999999999",
|
|
1098
|
+
"isGroup": false,
|
|
1099
|
+
"path": "<path_file>",
|
|
1100
|
+
"quotedMessageId": "message Id"
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1052
1107
|
}
|
|
1053
1108
|
},
|
|
1054
1109
|
"/api/{session}/send-voice-base64": {
|
|
@@ -1064,28 +1119,6 @@
|
|
|
1064
1119
|
"type": "string",
|
|
1065
1120
|
"example": "NERDWHATS_AMERICA"
|
|
1066
1121
|
}
|
|
1067
|
-
},
|
|
1068
|
-
{
|
|
1069
|
-
"name": "obj",
|
|
1070
|
-
"in": "body",
|
|
1071
|
-
"schema": {
|
|
1072
|
-
"type": "object",
|
|
1073
|
-
"properties": {
|
|
1074
|
-
"phone": {
|
|
1075
|
-
"type": "string",
|
|
1076
|
-
"example": "5521999999999"
|
|
1077
|
-
},
|
|
1078
|
-
"isGroup": {
|
|
1079
|
-
"type": "boolean",
|
|
1080
|
-
"example": false
|
|
1081
|
-
},
|
|
1082
|
-
"base64Ptt": {
|
|
1083
|
-
"type": "string",
|
|
1084
|
-
"example": "<base64_string>"
|
|
1085
|
-
}
|
|
1086
|
-
},
|
|
1087
|
-
"required": ["phone", "isGroup", "base64Ptt"]
|
|
1088
|
-
}
|
|
1089
1122
|
}
|
|
1090
1123
|
],
|
|
1091
1124
|
"responses": {
|
|
@@ -1097,7 +1130,37 @@
|
|
|
1097
1130
|
{
|
|
1098
1131
|
"bearerAuth": []
|
|
1099
1132
|
}
|
|
1100
|
-
]
|
|
1133
|
+
],
|
|
1134
|
+
"requestBody": {
|
|
1135
|
+
"required": true,
|
|
1136
|
+
"content": {
|
|
1137
|
+
"application/json": {
|
|
1138
|
+
"schema": {
|
|
1139
|
+
"type": "object",
|
|
1140
|
+
"properties": {
|
|
1141
|
+
"phone": {
|
|
1142
|
+
"type": "string"
|
|
1143
|
+
},
|
|
1144
|
+
"isGroup": {
|
|
1145
|
+
"type": "boolean"
|
|
1146
|
+
},
|
|
1147
|
+
"base64Ptt": {
|
|
1148
|
+
"type": "string"
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
},
|
|
1152
|
+
"examples": {
|
|
1153
|
+
"Default": {
|
|
1154
|
+
"value": {
|
|
1155
|
+
"phone": "5521999999999",
|
|
1156
|
+
"isGroup": false,
|
|
1157
|
+
"base64Ptt": "<base64_string>"
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1101
1164
|
}
|
|
1102
1165
|
},
|
|
1103
1166
|
"/api/{session}/send-status": {
|
|
@@ -1113,20 +1176,6 @@
|
|
|
1113
1176
|
"type": "string",
|
|
1114
1177
|
"example": "NERDWHATS_AMERICA"
|
|
1115
1178
|
}
|
|
1116
|
-
},
|
|
1117
|
-
{
|
|
1118
|
-
"name": "obj",
|
|
1119
|
-
"in": "body",
|
|
1120
|
-
"schema": {
|
|
1121
|
-
"type": "object",
|
|
1122
|
-
"properties": {
|
|
1123
|
-
"message": {
|
|
1124
|
-
"type": "string",
|
|
1125
|
-
"example": "Post text status"
|
|
1126
|
-
}
|
|
1127
|
-
},
|
|
1128
|
-
"required": ["message"]
|
|
1129
|
-
}
|
|
1130
1179
|
}
|
|
1131
1180
|
],
|
|
1132
1181
|
"responses": {
|
|
@@ -1138,7 +1187,42 @@
|
|
|
1138
1187
|
{
|
|
1139
1188
|
"bearerAuth": []
|
|
1140
1189
|
}
|
|
1141
|
-
]
|
|
1190
|
+
],
|
|
1191
|
+
"requestBody": {
|
|
1192
|
+
"required": true,
|
|
1193
|
+
"content": {
|
|
1194
|
+
"application/json": {
|
|
1195
|
+
"schema": {
|
|
1196
|
+
"type": "object",
|
|
1197
|
+
"properties": {
|
|
1198
|
+
"phone": {
|
|
1199
|
+
"type": "string"
|
|
1200
|
+
},
|
|
1201
|
+
"isGroup": {
|
|
1202
|
+
"type": "boolean"
|
|
1203
|
+
},
|
|
1204
|
+
"message": {
|
|
1205
|
+
"type": "string"
|
|
1206
|
+
},
|
|
1207
|
+
"messageId": {
|
|
1208
|
+
"type": "string"
|
|
1209
|
+
}
|
|
1210
|
+
},
|
|
1211
|
+
"required": ["phone", "isGroup", "message"]
|
|
1212
|
+
},
|
|
1213
|
+
"examples": {
|
|
1214
|
+
"Default": {
|
|
1215
|
+
"value": {
|
|
1216
|
+
"phone": "5521999999999",
|
|
1217
|
+
"isGroup": false,
|
|
1218
|
+
"message": "Reply to message",
|
|
1219
|
+
"messageId": "<id_message>"
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1142
1226
|
}
|
|
1143
1227
|
},
|
|
1144
1228
|
"/api/{session}/send-link-preview": {
|
|
@@ -1154,32 +1238,6 @@
|
|
|
1154
1238
|
"type": "string",
|
|
1155
1239
|
"example": "NERDWHATS_AMERICA"
|
|
1156
1240
|
}
|
|
1157
|
-
},
|
|
1158
|
-
{
|
|
1159
|
-
"name": "obj",
|
|
1160
|
-
"in": "body",
|
|
1161
|
-
"schema": {
|
|
1162
|
-
"type": "object",
|
|
1163
|
-
"properties": {
|
|
1164
|
-
"phone": {
|
|
1165
|
-
"type": "string",
|
|
1166
|
-
"example": "5521999999999"
|
|
1167
|
-
},
|
|
1168
|
-
"isGroup": {
|
|
1169
|
-
"type": "boolean",
|
|
1170
|
-
"example": false
|
|
1171
|
-
},
|
|
1172
|
-
"url": {
|
|
1173
|
-
"type": "string",
|
|
1174
|
-
"example": "http://www.link.com"
|
|
1175
|
-
},
|
|
1176
|
-
"caption": {
|
|
1177
|
-
"type": "string",
|
|
1178
|
-
"example": "Text for describe link"
|
|
1179
|
-
}
|
|
1180
|
-
},
|
|
1181
|
-
"required": ["phone", "isGroup", "url", "caption"]
|
|
1182
|
-
}
|
|
1183
1241
|
}
|
|
1184
1242
|
],
|
|
1185
1243
|
"responses": {
|
|
@@ -1191,7 +1249,41 @@
|
|
|
1191
1249
|
{
|
|
1192
1250
|
"bearerAuth": []
|
|
1193
1251
|
}
|
|
1194
|
-
]
|
|
1252
|
+
],
|
|
1253
|
+
"requestBody": {
|
|
1254
|
+
"required": true,
|
|
1255
|
+
"content": {
|
|
1256
|
+
"application/json": {
|
|
1257
|
+
"schema": {
|
|
1258
|
+
"type": "object",
|
|
1259
|
+
"properties": {
|
|
1260
|
+
"phone": {
|
|
1261
|
+
"type": "string"
|
|
1262
|
+
},
|
|
1263
|
+
"isGroup": {
|
|
1264
|
+
"type": "boolean"
|
|
1265
|
+
},
|
|
1266
|
+
"url": {
|
|
1267
|
+
"type": "string"
|
|
1268
|
+
},
|
|
1269
|
+
"caption": {
|
|
1270
|
+
"type": "string"
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
},
|
|
1274
|
+
"examples": {
|
|
1275
|
+
"Default": {
|
|
1276
|
+
"value": {
|
|
1277
|
+
"phone": "5521999999999",
|
|
1278
|
+
"isGroup": false,
|
|
1279
|
+
"url": "http://www.link.com",
|
|
1280
|
+
"caption": "Text for describe link"
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1195
1287
|
}
|
|
1196
1288
|
},
|
|
1197
1289
|
"/api/{session}/send-location": {
|
|
@@ -1207,40 +1299,6 @@
|
|
|
1207
1299
|
"type": "string",
|
|
1208
1300
|
"example": "NERDWHATS_AMERICA"
|
|
1209
1301
|
}
|
|
1210
|
-
},
|
|
1211
|
-
{
|
|
1212
|
-
"name": "obj",
|
|
1213
|
-
"in": "body",
|
|
1214
|
-
"schema": {
|
|
1215
|
-
"type": "object",
|
|
1216
|
-
"properties": {
|
|
1217
|
-
"phone": {
|
|
1218
|
-
"type": "string",
|
|
1219
|
-
"example": "5521999999999"
|
|
1220
|
-
},
|
|
1221
|
-
"isGroup": {
|
|
1222
|
-
"type": "boolean",
|
|
1223
|
-
"example": false
|
|
1224
|
-
},
|
|
1225
|
-
"lat": {
|
|
1226
|
-
"type": "string",
|
|
1227
|
-
"example": "-89898322"
|
|
1228
|
-
},
|
|
1229
|
-
"lng": {
|
|
1230
|
-
"type": "string",
|
|
1231
|
-
"example": "-545454"
|
|
1232
|
-
},
|
|
1233
|
-
"title": {
|
|
1234
|
-
"type": "string",
|
|
1235
|
-
"example": "Rio de Janeiro"
|
|
1236
|
-
},
|
|
1237
|
-
"address": {
|
|
1238
|
-
"type": "string",
|
|
1239
|
-
"example": "Av. N. S. de Copacabana, 25, Copacabana"
|
|
1240
|
-
}
|
|
1241
|
-
},
|
|
1242
|
-
"required": ["phone", "isGroup", "lat", "lng", "title", "address"]
|
|
1243
|
-
}
|
|
1244
1302
|
}
|
|
1245
1303
|
],
|
|
1246
1304
|
"responses": {
|
|
@@ -1252,7 +1310,49 @@
|
|
|
1252
1310
|
{
|
|
1253
1311
|
"bearerAuth": []
|
|
1254
1312
|
}
|
|
1255
|
-
]
|
|
1313
|
+
],
|
|
1314
|
+
"requestBody": {
|
|
1315
|
+
"required": true,
|
|
1316
|
+
"content": {
|
|
1317
|
+
"application/json": {
|
|
1318
|
+
"schema": {
|
|
1319
|
+
"type": "object",
|
|
1320
|
+
"properties": {
|
|
1321
|
+
"phone": {
|
|
1322
|
+
"type": "string"
|
|
1323
|
+
},
|
|
1324
|
+
"isGroup": {
|
|
1325
|
+
"type": "boolean"
|
|
1326
|
+
},
|
|
1327
|
+
"lat": {
|
|
1328
|
+
"type": "string"
|
|
1329
|
+
},
|
|
1330
|
+
"lng": {
|
|
1331
|
+
"type": "string"
|
|
1332
|
+
},
|
|
1333
|
+
"title": {
|
|
1334
|
+
"type": "string"
|
|
1335
|
+
},
|
|
1336
|
+
"address": {
|
|
1337
|
+
"type": "string"
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
},
|
|
1341
|
+
"examples": {
|
|
1342
|
+
"Default": {
|
|
1343
|
+
"value": {
|
|
1344
|
+
"phone": "5521999999999",
|
|
1345
|
+
"isGroup": false,
|
|
1346
|
+
"lat": "-89898322",
|
|
1347
|
+
"lng": "-545454",
|
|
1348
|
+
"title": "Rio de Janeiro",
|
|
1349
|
+
"address": "Av. N. S. de Copacabana, 25, Copacabana"
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1256
1356
|
}
|
|
1257
1357
|
},
|
|
1258
1358
|
"/api/{session}/send-mentioned": {
|
|
@@ -1268,50 +1368,59 @@
|
|
|
1268
1368
|
"type": "string",
|
|
1269
1369
|
"example": "NERDWHATS_AMERICA"
|
|
1270
1370
|
}
|
|
1371
|
+
}
|
|
1372
|
+
],
|
|
1373
|
+
"responses": {
|
|
1374
|
+
"201": {
|
|
1375
|
+
"description": "Created"
|
|
1271
1376
|
},
|
|
1377
|
+
"500": {
|
|
1378
|
+
"description": "Internal Server Error"
|
|
1379
|
+
}
|
|
1380
|
+
},
|
|
1381
|
+
"security": [
|
|
1272
1382
|
{
|
|
1273
|
-
"
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
"
|
|
1283
|
-
"
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
"mentioned": {
|
|
1291
|
-
"type": "array",
|
|
1292
|
-
"example": ["@556593077171@c.us"],
|
|
1293
|
-
"items": {
|
|
1383
|
+
"bearerAuth": []
|
|
1384
|
+
}
|
|
1385
|
+
],
|
|
1386
|
+
"requestBody": {
|
|
1387
|
+
"required": true,
|
|
1388
|
+
"content": {
|
|
1389
|
+
"application/json": {
|
|
1390
|
+
"schema": {
|
|
1391
|
+
"type": "object",
|
|
1392
|
+
"properties": {
|
|
1393
|
+
"phone": {
|
|
1394
|
+
"type": "string"
|
|
1395
|
+
},
|
|
1396
|
+
"isGroup": {
|
|
1397
|
+
"type": "boolean"
|
|
1398
|
+
},
|
|
1399
|
+
"message": {
|
|
1294
1400
|
"type": "string"
|
|
1401
|
+
},
|
|
1402
|
+
"mentioned": {
|
|
1403
|
+
"type": "array",
|
|
1404
|
+
"items": {
|
|
1405
|
+
"type": "string"
|
|
1406
|
+
}
|
|
1295
1407
|
}
|
|
1296
|
-
}
|
|
1408
|
+
},
|
|
1409
|
+
"required": ["phone", "message", "mentioned"]
|
|
1297
1410
|
},
|
|
1298
|
-
"
|
|
1411
|
+
"examples": {
|
|
1412
|
+
"Default": {
|
|
1413
|
+
"value": {
|
|
1414
|
+
"phone": "5521999999999",
|
|
1415
|
+
"isGroup": true,
|
|
1416
|
+
"message": "Your text message",
|
|
1417
|
+
"mentioned": ["@556593077171@c.us"]
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1299
1421
|
}
|
|
1300
1422
|
}
|
|
1301
|
-
|
|
1302
|
-
"responses": {
|
|
1303
|
-
"201": {
|
|
1304
|
-
"description": "Created"
|
|
1305
|
-
},
|
|
1306
|
-
"500": {
|
|
1307
|
-
"description": "Internal Server Error"
|
|
1308
|
-
}
|
|
1309
|
-
},
|
|
1310
|
-
"security": [
|
|
1311
|
-
{
|
|
1312
|
-
"bearerAuth": []
|
|
1313
|
-
}
|
|
1314
|
-
]
|
|
1423
|
+
}
|
|
1315
1424
|
}
|
|
1316
1425
|
},
|
|
1317
1426
|
"/api/{session}/send-buttons": {
|
|
@@ -1470,24 +1579,6 @@
|
|
|
1470
1579
|
"example": "NERDWHATS_AMERICA"
|
|
1471
1580
|
}
|
|
1472
1581
|
},
|
|
1473
|
-
{
|
|
1474
|
-
"name": "obj",
|
|
1475
|
-
"in": "body",
|
|
1476
|
-
"schema": {
|
|
1477
|
-
"type": "object",
|
|
1478
|
-
"properties": {
|
|
1479
|
-
"groupId": {
|
|
1480
|
-
"type": "string",
|
|
1481
|
-
"example": "<groupId>"
|
|
1482
|
-
},
|
|
1483
|
-
"path": {
|
|
1484
|
-
"type": "string",
|
|
1485
|
-
"example": "path_of_your_file"
|
|
1486
|
-
}
|
|
1487
|
-
},
|
|
1488
|
-
"required": ["groupId", "path"]
|
|
1489
|
-
}
|
|
1490
|
-
},
|
|
1491
1582
|
{
|
|
1492
1583
|
"name": "groupId",
|
|
1493
1584
|
"schema": {
|
|
@@ -1497,12 +1588,40 @@
|
|
|
1497
1588
|
"in": "query"
|
|
1498
1589
|
}
|
|
1499
1590
|
],
|
|
1500
|
-
"responses": {
|
|
1591
|
+
"responses": {
|
|
1592
|
+
"200": {
|
|
1593
|
+
"description": "OK"
|
|
1594
|
+
},
|
|
1595
|
+
"400": {
|
|
1596
|
+
"description": "Bad Request"
|
|
1597
|
+
},
|
|
1598
|
+
"500": {
|
|
1599
|
+
"description": "Internal Server Error"
|
|
1600
|
+
}
|
|
1601
|
+
},
|
|
1501
1602
|
"security": [
|
|
1502
1603
|
{
|
|
1503
1604
|
"bearerAuth": []
|
|
1504
1605
|
}
|
|
1505
1606
|
],
|
|
1607
|
+
"requestBody": {
|
|
1608
|
+
"required": true,
|
|
1609
|
+
"content": {
|
|
1610
|
+
"application/json": {
|
|
1611
|
+
"schema": {
|
|
1612
|
+
"type": "object",
|
|
1613
|
+
"properties": {
|
|
1614
|
+
"$groupId": {
|
|
1615
|
+
"type": "string"
|
|
1616
|
+
},
|
|
1617
|
+
"$path": {
|
|
1618
|
+
"type": "string"
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
},
|
|
1506
1625
|
"deprecated": true
|
|
1507
1626
|
}
|
|
1508
1627
|
},
|
|
@@ -1527,20 +1646,6 @@
|
|
|
1527
1646
|
"schema": {
|
|
1528
1647
|
"type": "string"
|
|
1529
1648
|
}
|
|
1530
|
-
},
|
|
1531
|
-
{
|
|
1532
|
-
"name": "obj",
|
|
1533
|
-
"in": "body",
|
|
1534
|
-
"schema": {
|
|
1535
|
-
"type": "object",
|
|
1536
|
-
"properties": {
|
|
1537
|
-
"groupId": {
|
|
1538
|
-
"type": "string",
|
|
1539
|
-
"example": "<groupId>"
|
|
1540
|
-
}
|
|
1541
|
-
},
|
|
1542
|
-
"required": ["groupId"]
|
|
1543
|
-
}
|
|
1544
1649
|
}
|
|
1545
1650
|
],
|
|
1546
1651
|
"responses": {
|
|
@@ -1555,7 +1660,30 @@
|
|
|
1555
1660
|
{
|
|
1556
1661
|
"bearerAuth": []
|
|
1557
1662
|
}
|
|
1558
|
-
]
|
|
1663
|
+
],
|
|
1664
|
+
"requestBody": {
|
|
1665
|
+
"required": true,
|
|
1666
|
+
"content": {
|
|
1667
|
+
"application/json": {
|
|
1668
|
+
"schema": {
|
|
1669
|
+
"type": "object",
|
|
1670
|
+
"properties": {
|
|
1671
|
+
"groupId": {
|
|
1672
|
+
"type": "string"
|
|
1673
|
+
}
|
|
1674
|
+
},
|
|
1675
|
+
"required": ["groupId"]
|
|
1676
|
+
},
|
|
1677
|
+
"examples": {
|
|
1678
|
+
"Default": {
|
|
1679
|
+
"value": {
|
|
1680
|
+
"groupId": "<groupId>"
|
|
1681
|
+
}
|
|
1682
|
+
}
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
1559
1687
|
}
|
|
1560
1688
|
},
|
|
1561
1689
|
"/api/{session}/group-admins/{groupId}": {
|
|
@@ -1579,20 +1707,6 @@
|
|
|
1579
1707
|
"schema": {
|
|
1580
1708
|
"type": "string"
|
|
1581
1709
|
}
|
|
1582
|
-
},
|
|
1583
|
-
{
|
|
1584
|
-
"name": "obj",
|
|
1585
|
-
"in": "body",
|
|
1586
|
-
"schema": {
|
|
1587
|
-
"type": "object",
|
|
1588
|
-
"properties": {
|
|
1589
|
-
"groupId": {
|
|
1590
|
-
"type": "string",
|
|
1591
|
-
"example": "<groupId>"
|
|
1592
|
-
}
|
|
1593
|
-
},
|
|
1594
|
-
"required": ["groupId"]
|
|
1595
|
-
}
|
|
1596
1710
|
}
|
|
1597
1711
|
],
|
|
1598
1712
|
"responses": {
|
|
@@ -1607,7 +1721,30 @@
|
|
|
1607
1721
|
{
|
|
1608
1722
|
"bearerAuth": []
|
|
1609
1723
|
}
|
|
1610
|
-
]
|
|
1724
|
+
],
|
|
1725
|
+
"requestBody": {
|
|
1726
|
+
"required": true,
|
|
1727
|
+
"content": {
|
|
1728
|
+
"application/json": {
|
|
1729
|
+
"schema": {
|
|
1730
|
+
"type": "object",
|
|
1731
|
+
"properties": {
|
|
1732
|
+
"groupId": {
|
|
1733
|
+
"type": "string"
|
|
1734
|
+
}
|
|
1735
|
+
},
|
|
1736
|
+
"required": ["groupId"]
|
|
1737
|
+
},
|
|
1738
|
+
"examples": {
|
|
1739
|
+
"Default": {
|
|
1740
|
+
"value": {
|
|
1741
|
+
"groupId": "<groupId>"
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
}
|
|
1747
|
+
}
|
|
1611
1748
|
}
|
|
1612
1749
|
},
|
|
1613
1750
|
"/api/{session}/group-invite-link/{groupId}": {
|
|
@@ -1631,20 +1768,6 @@
|
|
|
1631
1768
|
"schema": {
|
|
1632
1769
|
"type": "string"
|
|
1633
1770
|
}
|
|
1634
|
-
},
|
|
1635
|
-
{
|
|
1636
|
-
"name": "obj",
|
|
1637
|
-
"in": "body",
|
|
1638
|
-
"schema": {
|
|
1639
|
-
"type": "object",
|
|
1640
|
-
"properties": {
|
|
1641
|
-
"groupId": {
|
|
1642
|
-
"type": "string",
|
|
1643
|
-
"example": "<groupId>"
|
|
1644
|
-
}
|
|
1645
|
-
},
|
|
1646
|
-
"required": ["groupId"]
|
|
1647
|
-
}
|
|
1648
1771
|
}
|
|
1649
1772
|
],
|
|
1650
1773
|
"responses": {
|
|
@@ -1659,7 +1782,22 @@
|
|
|
1659
1782
|
{
|
|
1660
1783
|
"bearerAuth": []
|
|
1661
1784
|
}
|
|
1662
|
-
]
|
|
1785
|
+
],
|
|
1786
|
+
"requestBody": {
|
|
1787
|
+
"required": true,
|
|
1788
|
+
"content": {
|
|
1789
|
+
"application/json": {
|
|
1790
|
+
"schema": {
|
|
1791
|
+
"type": "object",
|
|
1792
|
+
"properties": {
|
|
1793
|
+
"groupId": {
|
|
1794
|
+
"type": "string"
|
|
1795
|
+
}
|
|
1796
|
+
}
|
|
1797
|
+
}
|
|
1798
|
+
}
|
|
1799
|
+
}
|
|
1800
|
+
}
|
|
1663
1801
|
}
|
|
1664
1802
|
},
|
|
1665
1803
|
"/api/{session}/group-revoke-link/{groupId}": {
|
|
@@ -1683,20 +1821,6 @@
|
|
|
1683
1821
|
"schema": {
|
|
1684
1822
|
"type": "string"
|
|
1685
1823
|
}
|
|
1686
|
-
},
|
|
1687
|
-
{
|
|
1688
|
-
"name": "obj",
|
|
1689
|
-
"in": "body",
|
|
1690
|
-
"schema": {
|
|
1691
|
-
"type": "object",
|
|
1692
|
-
"properties": {
|
|
1693
|
-
"groupId": {
|
|
1694
|
-
"type": "string",
|
|
1695
|
-
"example": "<groupId>"
|
|
1696
|
-
}
|
|
1697
|
-
},
|
|
1698
|
-
"required": ["groupId"]
|
|
1699
|
-
}
|
|
1700
1824
|
}
|
|
1701
1825
|
],
|
|
1702
1826
|
"responses": {
|
|
@@ -1711,7 +1835,22 @@
|
|
|
1711
1835
|
{
|
|
1712
1836
|
"bearerAuth": []
|
|
1713
1837
|
}
|
|
1714
|
-
]
|
|
1838
|
+
],
|
|
1839
|
+
"requestBody": {
|
|
1840
|
+
"required": true,
|
|
1841
|
+
"content": {
|
|
1842
|
+
"application/json": {
|
|
1843
|
+
"schema": {
|
|
1844
|
+
"type": "object",
|
|
1845
|
+
"properties": {
|
|
1846
|
+
"$groupId": {
|
|
1847
|
+
"type": "string"
|
|
1848
|
+
}
|
|
1849
|
+
}
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1852
|
+
}
|
|
1853
|
+
}
|
|
1715
1854
|
}
|
|
1716
1855
|
},
|
|
1717
1856
|
"/api/{session}/group-members-ids/{groupId}": {
|
|
@@ -1766,27 +1905,6 @@
|
|
|
1766
1905
|
"type": "string",
|
|
1767
1906
|
"example": "NERDWHATS_AMERICA"
|
|
1768
1907
|
}
|
|
1769
|
-
},
|
|
1770
|
-
{
|
|
1771
|
-
"name": "obj",
|
|
1772
|
-
"in": "body",
|
|
1773
|
-
"schema": {
|
|
1774
|
-
"type": "object",
|
|
1775
|
-
"properties": {
|
|
1776
|
-
"participants": {
|
|
1777
|
-
"type": "array",
|
|
1778
|
-
"example": ["5521999999999"],
|
|
1779
|
-
"items": {
|
|
1780
|
-
"type": "string"
|
|
1781
|
-
}
|
|
1782
|
-
},
|
|
1783
|
-
"name": {
|
|
1784
|
-
"type": "string",
|
|
1785
|
-
"example": "Group name"
|
|
1786
|
-
}
|
|
1787
|
-
},
|
|
1788
|
-
"required": ["participants", "name"]
|
|
1789
|
-
}
|
|
1790
1908
|
}
|
|
1791
1909
|
],
|
|
1792
1910
|
"responses": {
|
|
@@ -1801,7 +1919,37 @@
|
|
|
1801
1919
|
{
|
|
1802
1920
|
"bearerAuth": []
|
|
1803
1921
|
}
|
|
1804
|
-
]
|
|
1922
|
+
],
|
|
1923
|
+
"requestBody": {
|
|
1924
|
+
"required": true,
|
|
1925
|
+
"content": {
|
|
1926
|
+
"application/json": {
|
|
1927
|
+
"schema": {
|
|
1928
|
+
"type": "object",
|
|
1929
|
+
"properties": {
|
|
1930
|
+
"participants": {
|
|
1931
|
+
"type": "array",
|
|
1932
|
+
"items": {
|
|
1933
|
+
"type": "string"
|
|
1934
|
+
}
|
|
1935
|
+
},
|
|
1936
|
+
"name": {
|
|
1937
|
+
"type": "string"
|
|
1938
|
+
}
|
|
1939
|
+
},
|
|
1940
|
+
"required": ["participants", "name"]
|
|
1941
|
+
},
|
|
1942
|
+
"examples": {
|
|
1943
|
+
"Default": {
|
|
1944
|
+
"value": {
|
|
1945
|
+
"participants": ["5521999999999"],
|
|
1946
|
+
"name": "Group name"
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1952
|
+
}
|
|
1805
1953
|
}
|
|
1806
1954
|
},
|
|
1807
1955
|
"/api/{session}/leave-group": {
|
|
@@ -1817,20 +1965,6 @@
|
|
|
1817
1965
|
"type": "string",
|
|
1818
1966
|
"example": "NERDWHATS_AMERICA"
|
|
1819
1967
|
}
|
|
1820
|
-
},
|
|
1821
|
-
{
|
|
1822
|
-
"name": "obj",
|
|
1823
|
-
"in": "body",
|
|
1824
|
-
"schema": {
|
|
1825
|
-
"type": "object",
|
|
1826
|
-
"properties": {
|
|
1827
|
-
"groupId": {
|
|
1828
|
-
"type": "string",
|
|
1829
|
-
"example": "<groupId>"
|
|
1830
|
-
}
|
|
1831
|
-
},
|
|
1832
|
-
"required": ["groupId"]
|
|
1833
|
-
}
|
|
1834
1968
|
}
|
|
1835
1969
|
],
|
|
1836
1970
|
"responses": {
|
|
@@ -1845,7 +1979,23 @@
|
|
|
1845
1979
|
{
|
|
1846
1980
|
"bearerAuth": []
|
|
1847
1981
|
}
|
|
1848
|
-
]
|
|
1982
|
+
],
|
|
1983
|
+
"requestBody": {
|
|
1984
|
+
"required": true,
|
|
1985
|
+
"content": {
|
|
1986
|
+
"application/json": {
|
|
1987
|
+
"schema": {
|
|
1988
|
+
"type": "object",
|
|
1989
|
+
"properties": {
|
|
1990
|
+
"groupId": {
|
|
1991
|
+
"type": "string"
|
|
1992
|
+
}
|
|
1993
|
+
},
|
|
1994
|
+
"required": ["groupId"]
|
|
1995
|
+
}
|
|
1996
|
+
}
|
|
1997
|
+
}
|
|
1998
|
+
}
|
|
1849
1999
|
}
|
|
1850
2000
|
},
|
|
1851
2001
|
"/api/{session}/join-code": {
|
|
@@ -1861,20 +2011,6 @@
|
|
|
1861
2011
|
"type": "string",
|
|
1862
2012
|
"example": "NERDWHATS_AMERICA"
|
|
1863
2013
|
}
|
|
1864
|
-
},
|
|
1865
|
-
{
|
|
1866
|
-
"name": "obj",
|
|
1867
|
-
"in": "body",
|
|
1868
|
-
"schema": {
|
|
1869
|
-
"type": "object",
|
|
1870
|
-
"properties": {
|
|
1871
|
-
"inviteCode": {
|
|
1872
|
-
"type": "string",
|
|
1873
|
-
"example": "5644444"
|
|
1874
|
-
}
|
|
1875
|
-
},
|
|
1876
|
-
"required": ["inviteCode"]
|
|
1877
|
-
}
|
|
1878
2014
|
}
|
|
1879
2015
|
],
|
|
1880
2016
|
"responses": {
|
|
@@ -1892,7 +2028,30 @@
|
|
|
1892
2028
|
{
|
|
1893
2029
|
"bearerAuth": []
|
|
1894
2030
|
}
|
|
1895
|
-
]
|
|
2031
|
+
],
|
|
2032
|
+
"requestBody": {
|
|
2033
|
+
"required": true,
|
|
2034
|
+
"content": {
|
|
2035
|
+
"application/json": {
|
|
2036
|
+
"schema": {
|
|
2037
|
+
"type": "object",
|
|
2038
|
+
"properties": {
|
|
2039
|
+
"inviteCode": {
|
|
2040
|
+
"type": "string"
|
|
2041
|
+
}
|
|
2042
|
+
},
|
|
2043
|
+
"required": ["inviteCode"]
|
|
2044
|
+
},
|
|
2045
|
+
"examples": {
|
|
2046
|
+
"Default": {
|
|
2047
|
+
"value": {
|
|
2048
|
+
"inviteCode": "5644444"
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
}
|
|
2054
|
+
}
|
|
1896
2055
|
}
|
|
1897
2056
|
},
|
|
1898
2057
|
"/api/{session}/add-participant-group": {
|
|
@@ -1908,24 +2067,6 @@
|
|
|
1908
2067
|
"type": "string",
|
|
1909
2068
|
"example": "NERDWHATS_AMERICA"
|
|
1910
2069
|
}
|
|
1911
|
-
},
|
|
1912
|
-
{
|
|
1913
|
-
"name": "obj",
|
|
1914
|
-
"in": "body",
|
|
1915
|
-
"schema": {
|
|
1916
|
-
"type": "object",
|
|
1917
|
-
"properties": {
|
|
1918
|
-
"groupId": {
|
|
1919
|
-
"type": "string",
|
|
1920
|
-
"example": "<groupId>"
|
|
1921
|
-
},
|
|
1922
|
-
"phone": {
|
|
1923
|
-
"type": "string",
|
|
1924
|
-
"example": "5521999999999"
|
|
1925
|
-
}
|
|
1926
|
-
},
|
|
1927
|
-
"required": ["groupId", "phone"]
|
|
1928
|
-
}
|
|
1929
2070
|
}
|
|
1930
2071
|
],
|
|
1931
2072
|
"responses": {
|
|
@@ -1940,7 +2081,34 @@
|
|
|
1940
2081
|
{
|
|
1941
2082
|
"bearerAuth": []
|
|
1942
2083
|
}
|
|
1943
|
-
]
|
|
2084
|
+
],
|
|
2085
|
+
"requestBody": {
|
|
2086
|
+
"required": true,
|
|
2087
|
+
"content": {
|
|
2088
|
+
"application/json": {
|
|
2089
|
+
"schema": {
|
|
2090
|
+
"type": "object",
|
|
2091
|
+
"properties": {
|
|
2092
|
+
"groupId": {
|
|
2093
|
+
"type": "string"
|
|
2094
|
+
},
|
|
2095
|
+
"phone": {
|
|
2096
|
+
"type": "string"
|
|
2097
|
+
}
|
|
2098
|
+
},
|
|
2099
|
+
"required": ["groupId", "phone"]
|
|
2100
|
+
},
|
|
2101
|
+
"examples": {
|
|
2102
|
+
"Default": {
|
|
2103
|
+
"value": {
|
|
2104
|
+
"groupId": "<groupId>",
|
|
2105
|
+
"phone": "5521999999999"
|
|
2106
|
+
}
|
|
2107
|
+
}
|
|
2108
|
+
}
|
|
2109
|
+
}
|
|
2110
|
+
}
|
|
2111
|
+
}
|
|
1944
2112
|
}
|
|
1945
2113
|
},
|
|
1946
2114
|
"/api/{session}/remove-participant-group": {
|
|
@@ -1956,24 +2124,6 @@
|
|
|
1956
2124
|
"type": "string",
|
|
1957
2125
|
"example": "NERDWHATS_AMERICA"
|
|
1958
2126
|
}
|
|
1959
|
-
},
|
|
1960
|
-
{
|
|
1961
|
-
"name": "obj",
|
|
1962
|
-
"in": "body",
|
|
1963
|
-
"schema": {
|
|
1964
|
-
"type": "object",
|
|
1965
|
-
"properties": {
|
|
1966
|
-
"groupId": {
|
|
1967
|
-
"type": "string",
|
|
1968
|
-
"example": "<groupId>"
|
|
1969
|
-
},
|
|
1970
|
-
"phone": {
|
|
1971
|
-
"type": "string",
|
|
1972
|
-
"example": "5521999999999"
|
|
1973
|
-
}
|
|
1974
|
-
},
|
|
1975
|
-
"required": ["groupId", "phone"]
|
|
1976
|
-
}
|
|
1977
2127
|
}
|
|
1978
2128
|
],
|
|
1979
2129
|
"responses": {
|
|
@@ -1988,7 +2138,34 @@
|
|
|
1988
2138
|
{
|
|
1989
2139
|
"bearerAuth": []
|
|
1990
2140
|
}
|
|
1991
|
-
]
|
|
2141
|
+
],
|
|
2142
|
+
"requestBody": {
|
|
2143
|
+
"required": true,
|
|
2144
|
+
"content": {
|
|
2145
|
+
"application/json": {
|
|
2146
|
+
"schema": {
|
|
2147
|
+
"type": "object",
|
|
2148
|
+
"properties": {
|
|
2149
|
+
"groupId": {
|
|
2150
|
+
"type": "string"
|
|
2151
|
+
},
|
|
2152
|
+
"phone": {
|
|
2153
|
+
"type": "string"
|
|
2154
|
+
}
|
|
2155
|
+
},
|
|
2156
|
+
"required": ["groupId", "phone"]
|
|
2157
|
+
},
|
|
2158
|
+
"examples": {
|
|
2159
|
+
"Default": {
|
|
2160
|
+
"value": {
|
|
2161
|
+
"groupId": "<groupId>",
|
|
2162
|
+
"phone": "5521999999999"
|
|
2163
|
+
}
|
|
2164
|
+
}
|
|
2165
|
+
}
|
|
2166
|
+
}
|
|
2167
|
+
}
|
|
2168
|
+
}
|
|
1992
2169
|
}
|
|
1993
2170
|
},
|
|
1994
2171
|
"/api/{session}/promote-participant-group": {
|
|
@@ -2004,24 +2181,6 @@
|
|
|
2004
2181
|
"type": "string",
|
|
2005
2182
|
"example": "NERDWHATS_AMERICA"
|
|
2006
2183
|
}
|
|
2007
|
-
},
|
|
2008
|
-
{
|
|
2009
|
-
"name": "obj",
|
|
2010
|
-
"in": "body",
|
|
2011
|
-
"schema": {
|
|
2012
|
-
"type": "object",
|
|
2013
|
-
"properties": {
|
|
2014
|
-
"groupId": {
|
|
2015
|
-
"type": "string",
|
|
2016
|
-
"example": "<groupId>"
|
|
2017
|
-
},
|
|
2018
|
-
"phone": {
|
|
2019
|
-
"type": "string",
|
|
2020
|
-
"example": "5521999999999"
|
|
2021
|
-
}
|
|
2022
|
-
},
|
|
2023
|
-
"required": ["groupId", "phone"]
|
|
2024
|
-
}
|
|
2025
2184
|
}
|
|
2026
2185
|
],
|
|
2027
2186
|
"responses": {
|
|
@@ -2036,7 +2195,34 @@
|
|
|
2036
2195
|
{
|
|
2037
2196
|
"bearerAuth": []
|
|
2038
2197
|
}
|
|
2039
|
-
]
|
|
2198
|
+
],
|
|
2199
|
+
"requestBody": {
|
|
2200
|
+
"required": true,
|
|
2201
|
+
"content": {
|
|
2202
|
+
"application/json": {
|
|
2203
|
+
"schema": {
|
|
2204
|
+
"type": "object",
|
|
2205
|
+
"properties": {
|
|
2206
|
+
"groupId": {
|
|
2207
|
+
"type": "string"
|
|
2208
|
+
},
|
|
2209
|
+
"phone": {
|
|
2210
|
+
"type": "string"
|
|
2211
|
+
}
|
|
2212
|
+
},
|
|
2213
|
+
"required": ["groupId", "phone"]
|
|
2214
|
+
},
|
|
2215
|
+
"examples": {
|
|
2216
|
+
"Default": {
|
|
2217
|
+
"value": {
|
|
2218
|
+
"groupId": "<groupId>",
|
|
2219
|
+
"phone": "5521999999999"
|
|
2220
|
+
}
|
|
2221
|
+
}
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
}
|
|
2225
|
+
}
|
|
2040
2226
|
}
|
|
2041
2227
|
},
|
|
2042
2228
|
"/api/{session}/demote-participant-group": {
|
|
@@ -2052,24 +2238,6 @@
|
|
|
2052
2238
|
"type": "string",
|
|
2053
2239
|
"example": "NERDWHATS_AMERICA"
|
|
2054
2240
|
}
|
|
2055
|
-
},
|
|
2056
|
-
{
|
|
2057
|
-
"name": "obj",
|
|
2058
|
-
"in": "body",
|
|
2059
|
-
"schema": {
|
|
2060
|
-
"type": "object",
|
|
2061
|
-
"properties": {
|
|
2062
|
-
"groupId": {
|
|
2063
|
-
"type": "string",
|
|
2064
|
-
"example": "<groupId>"
|
|
2065
|
-
},
|
|
2066
|
-
"phone": {
|
|
2067
|
-
"type": "string",
|
|
2068
|
-
"example": "5521999999999"
|
|
2069
|
-
}
|
|
2070
|
-
},
|
|
2071
|
-
"required": ["groupId", "phone"]
|
|
2072
|
-
}
|
|
2073
2241
|
}
|
|
2074
2242
|
],
|
|
2075
2243
|
"responses": {
|
|
@@ -2084,7 +2252,34 @@
|
|
|
2084
2252
|
{
|
|
2085
2253
|
"bearerAuth": []
|
|
2086
2254
|
}
|
|
2087
|
-
]
|
|
2255
|
+
],
|
|
2256
|
+
"requestBody": {
|
|
2257
|
+
"required": true,
|
|
2258
|
+
"content": {
|
|
2259
|
+
"application/json": {
|
|
2260
|
+
"schema": {
|
|
2261
|
+
"type": "object",
|
|
2262
|
+
"properties": {
|
|
2263
|
+
"groupId": {
|
|
2264
|
+
"type": "string"
|
|
2265
|
+
},
|
|
2266
|
+
"phone": {
|
|
2267
|
+
"type": "string"
|
|
2268
|
+
}
|
|
2269
|
+
},
|
|
2270
|
+
"required": ["groupId", "phone"]
|
|
2271
|
+
},
|
|
2272
|
+
"examples": {
|
|
2273
|
+
"Default": {
|
|
2274
|
+
"value": {
|
|
2275
|
+
"groupId": "<groupId>",
|
|
2276
|
+
"phone": "5521999999999"
|
|
2277
|
+
}
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
}
|
|
2281
|
+
}
|
|
2282
|
+
}
|
|
2088
2283
|
}
|
|
2089
2284
|
},
|
|
2090
2285
|
"/api/{session}/group-info-from-invite-link": {
|
|
@@ -2100,20 +2295,6 @@
|
|
|
2100
2295
|
"type": "string",
|
|
2101
2296
|
"example": "NERDWHATS_AMERICA"
|
|
2102
2297
|
}
|
|
2103
|
-
},
|
|
2104
|
-
{
|
|
2105
|
-
"name": "obj",
|
|
2106
|
-
"in": "body",
|
|
2107
|
-
"schema": {
|
|
2108
|
-
"type": "object",
|
|
2109
|
-
"properties": {
|
|
2110
|
-
"invitecode": {
|
|
2111
|
-
"type": "string",
|
|
2112
|
-
"example": "<groupId>"
|
|
2113
|
-
}
|
|
2114
|
-
},
|
|
2115
|
-
"required": ["invitecode"]
|
|
2116
|
-
}
|
|
2117
2298
|
}
|
|
2118
2299
|
],
|
|
2119
2300
|
"responses": {
|
|
@@ -2128,7 +2309,22 @@
|
|
|
2128
2309
|
{
|
|
2129
2310
|
"bearerAuth": []
|
|
2130
2311
|
}
|
|
2131
|
-
]
|
|
2312
|
+
],
|
|
2313
|
+
"requestBody": {
|
|
2314
|
+
"required": true,
|
|
2315
|
+
"content": {
|
|
2316
|
+
"application/json": {
|
|
2317
|
+
"schema": {
|
|
2318
|
+
"type": "object",
|
|
2319
|
+
"properties": {
|
|
2320
|
+
"$invitecode": {
|
|
2321
|
+
"type": "string"
|
|
2322
|
+
}
|
|
2323
|
+
}
|
|
2324
|
+
}
|
|
2325
|
+
}
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2132
2328
|
}
|
|
2133
2329
|
},
|
|
2134
2330
|
"/api/{session}/group-description": {
|
|
@@ -2144,39 +2340,39 @@
|
|
|
2144
2340
|
"type": "string",
|
|
2145
2341
|
"example": "NERDWHATS_AMERICA"
|
|
2146
2342
|
}
|
|
2343
|
+
}
|
|
2344
|
+
],
|
|
2345
|
+
"responses": {
|
|
2346
|
+
"200": {
|
|
2347
|
+
"description": "OK"
|
|
2147
2348
|
},
|
|
2349
|
+
"500": {
|
|
2350
|
+
"description": "Internal Server Error"
|
|
2351
|
+
}
|
|
2352
|
+
},
|
|
2353
|
+
"security": [
|
|
2148
2354
|
{
|
|
2149
|
-
"
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
"
|
|
2159
|
-
"
|
|
2160
|
-
|
|
2355
|
+
"bearerAuth": []
|
|
2356
|
+
}
|
|
2357
|
+
],
|
|
2358
|
+
"requestBody": {
|
|
2359
|
+
"required": true,
|
|
2360
|
+
"content": {
|
|
2361
|
+
"application/json": {
|
|
2362
|
+
"schema": {
|
|
2363
|
+
"type": "object",
|
|
2364
|
+
"properties": {
|
|
2365
|
+
"$groupId": {
|
|
2366
|
+
"type": "string"
|
|
2367
|
+
},
|
|
2368
|
+
"$description": {
|
|
2369
|
+
"type": "string"
|
|
2370
|
+
}
|
|
2161
2371
|
}
|
|
2162
|
-
}
|
|
2163
|
-
"required": ["groupId", "description"]
|
|
2372
|
+
}
|
|
2164
2373
|
}
|
|
2165
2374
|
}
|
|
2166
|
-
|
|
2167
|
-
"responses": {
|
|
2168
|
-
"200": {
|
|
2169
|
-
"description": "OK"
|
|
2170
|
-
},
|
|
2171
|
-
"500": {
|
|
2172
|
-
"description": "Internal Server Error"
|
|
2173
|
-
}
|
|
2174
|
-
},
|
|
2175
|
-
"security": [
|
|
2176
|
-
{
|
|
2177
|
-
"bearerAuth": []
|
|
2178
|
-
}
|
|
2179
|
-
]
|
|
2375
|
+
}
|
|
2180
2376
|
}
|
|
2181
2377
|
},
|
|
2182
2378
|
"/api/{session}/group-property": {
|
|
@@ -2192,28 +2388,6 @@
|
|
|
2192
2388
|
"type": "string",
|
|
2193
2389
|
"example": "NERDWHATS_AMERICA"
|
|
2194
2390
|
}
|
|
2195
|
-
},
|
|
2196
|
-
{
|
|
2197
|
-
"name": "obj",
|
|
2198
|
-
"in": "body",
|
|
2199
|
-
"schema": {
|
|
2200
|
-
"type": "object",
|
|
2201
|
-
"properties": {
|
|
2202
|
-
"groupId": {
|
|
2203
|
-
"type": "string",
|
|
2204
|
-
"example": "<groupId>"
|
|
2205
|
-
},
|
|
2206
|
-
"property": {
|
|
2207
|
-
"type": "string",
|
|
2208
|
-
"example": "announcement"
|
|
2209
|
-
},
|
|
2210
|
-
"value": {
|
|
2211
|
-
"type": "boolean",
|
|
2212
|
-
"example": true
|
|
2213
|
-
}
|
|
2214
|
-
},
|
|
2215
|
-
"required": ["groupId", "property", "value"]
|
|
2216
|
-
}
|
|
2217
2391
|
}
|
|
2218
2392
|
],
|
|
2219
2393
|
"responses": {
|
|
@@ -2228,7 +2402,28 @@
|
|
|
2228
2402
|
{
|
|
2229
2403
|
"bearerAuth": []
|
|
2230
2404
|
}
|
|
2231
|
-
]
|
|
2405
|
+
],
|
|
2406
|
+
"requestBody": {
|
|
2407
|
+
"required": true,
|
|
2408
|
+
"content": {
|
|
2409
|
+
"application/json": {
|
|
2410
|
+
"schema": {
|
|
2411
|
+
"type": "object",
|
|
2412
|
+
"properties": {
|
|
2413
|
+
"$groupId": {
|
|
2414
|
+
"type": "string"
|
|
2415
|
+
},
|
|
2416
|
+
"$property": {
|
|
2417
|
+
"type": "string"
|
|
2418
|
+
},
|
|
2419
|
+
"$value": {
|
|
2420
|
+
"type": "boolean"
|
|
2421
|
+
}
|
|
2422
|
+
}
|
|
2423
|
+
}
|
|
2424
|
+
}
|
|
2425
|
+
}
|
|
2426
|
+
}
|
|
2232
2427
|
}
|
|
2233
2428
|
},
|
|
2234
2429
|
"/api/{session}/group-subject": {
|
|
@@ -2244,24 +2439,6 @@
|
|
|
2244
2439
|
"type": "string",
|
|
2245
2440
|
"example": "NERDWHATS_AMERICA"
|
|
2246
2441
|
}
|
|
2247
|
-
},
|
|
2248
|
-
{
|
|
2249
|
-
"name": "obj",
|
|
2250
|
-
"in": "body",
|
|
2251
|
-
"schema": {
|
|
2252
|
-
"type": "object",
|
|
2253
|
-
"properties": {
|
|
2254
|
-
"groupId": {
|
|
2255
|
-
"type": "string",
|
|
2256
|
-
"example": "<groupId>"
|
|
2257
|
-
},
|
|
2258
|
-
"title": {
|
|
2259
|
-
"type": "string",
|
|
2260
|
-
"example": "Title for your group"
|
|
2261
|
-
}
|
|
2262
|
-
},
|
|
2263
|
-
"required": ["groupId", "title"]
|
|
2264
|
-
}
|
|
2265
2442
|
}
|
|
2266
2443
|
],
|
|
2267
2444
|
"responses": {
|
|
@@ -2276,7 +2453,25 @@
|
|
|
2276
2453
|
{
|
|
2277
2454
|
"bearerAuth": []
|
|
2278
2455
|
}
|
|
2279
|
-
]
|
|
2456
|
+
],
|
|
2457
|
+
"requestBody": {
|
|
2458
|
+
"required": true,
|
|
2459
|
+
"content": {
|
|
2460
|
+
"application/json": {
|
|
2461
|
+
"schema": {
|
|
2462
|
+
"type": "object",
|
|
2463
|
+
"properties": {
|
|
2464
|
+
"$groupId": {
|
|
2465
|
+
"type": "string"
|
|
2466
|
+
},
|
|
2467
|
+
"$title": {
|
|
2468
|
+
"type": "string"
|
|
2469
|
+
}
|
|
2470
|
+
}
|
|
2471
|
+
}
|
|
2472
|
+
}
|
|
2473
|
+
}
|
|
2474
|
+
}
|
|
2280
2475
|
}
|
|
2281
2476
|
},
|
|
2282
2477
|
"/api/{session}/messages-admins-only": {
|
|
@@ -2292,24 +2487,6 @@
|
|
|
2292
2487
|
"type": "string",
|
|
2293
2488
|
"example": "NERDWHATS_AMERICA"
|
|
2294
2489
|
}
|
|
2295
|
-
},
|
|
2296
|
-
{
|
|
2297
|
-
"name": "obj",
|
|
2298
|
-
"in": "body",
|
|
2299
|
-
"schema": {
|
|
2300
|
-
"type": "object",
|
|
2301
|
-
"properties": {
|
|
2302
|
-
"groupId": {
|
|
2303
|
-
"type": "string",
|
|
2304
|
-
"example": "<groupId>"
|
|
2305
|
-
},
|
|
2306
|
-
"value": {
|
|
2307
|
-
"type": "boolean",
|
|
2308
|
-
"example": true
|
|
2309
|
-
}
|
|
2310
|
-
},
|
|
2311
|
-
"required": ["groupId", "value"]
|
|
2312
|
-
}
|
|
2313
2490
|
}
|
|
2314
2491
|
],
|
|
2315
2492
|
"responses": {
|
|
@@ -2324,7 +2501,25 @@
|
|
|
2324
2501
|
{
|
|
2325
2502
|
"bearerAuth": []
|
|
2326
2503
|
}
|
|
2327
|
-
]
|
|
2504
|
+
],
|
|
2505
|
+
"requestBody": {
|
|
2506
|
+
"required": true,
|
|
2507
|
+
"content": {
|
|
2508
|
+
"application/json": {
|
|
2509
|
+
"schema": {
|
|
2510
|
+
"type": "object",
|
|
2511
|
+
"properties": {
|
|
2512
|
+
"$groupId": {
|
|
2513
|
+
"type": "string"
|
|
2514
|
+
},
|
|
2515
|
+
"$value": {
|
|
2516
|
+
"type": "boolean"
|
|
2517
|
+
}
|
|
2518
|
+
}
|
|
2519
|
+
}
|
|
2520
|
+
}
|
|
2521
|
+
}
|
|
2522
|
+
}
|
|
2328
2523
|
}
|
|
2329
2524
|
},
|
|
2330
2525
|
"/api/{session}/group-pic": {
|
|
@@ -2340,24 +2535,6 @@
|
|
|
2340
2535
|
"type": "string",
|
|
2341
2536
|
"example": "NERDWHATS_AMERICA"
|
|
2342
2537
|
}
|
|
2343
|
-
},
|
|
2344
|
-
{
|
|
2345
|
-
"name": "obj",
|
|
2346
|
-
"in": "body",
|
|
2347
|
-
"schema": {
|
|
2348
|
-
"type": "object",
|
|
2349
|
-
"properties": {
|
|
2350
|
-
"groupId": {
|
|
2351
|
-
"type": "string",
|
|
2352
|
-
"example": "<groupId>"
|
|
2353
|
-
},
|
|
2354
|
-
"path": {
|
|
2355
|
-
"type": "string",
|
|
2356
|
-
"example": "path_of_your_file"
|
|
2357
|
-
}
|
|
2358
|
-
},
|
|
2359
|
-
"required": ["groupId", "path"]
|
|
2360
|
-
}
|
|
2361
2538
|
}
|
|
2362
2539
|
],
|
|
2363
2540
|
"responses": {
|
|
@@ -2375,7 +2552,25 @@
|
|
|
2375
2552
|
{
|
|
2376
2553
|
"bearerAuth": []
|
|
2377
2554
|
}
|
|
2378
|
-
]
|
|
2555
|
+
],
|
|
2556
|
+
"requestBody": {
|
|
2557
|
+
"required": true,
|
|
2558
|
+
"content": {
|
|
2559
|
+
"application/json": {
|
|
2560
|
+
"schema": {
|
|
2561
|
+
"type": "object",
|
|
2562
|
+
"properties": {
|
|
2563
|
+
"$groupId": {
|
|
2564
|
+
"type": "string"
|
|
2565
|
+
},
|
|
2566
|
+
"$path": {
|
|
2567
|
+
"type": "string"
|
|
2568
|
+
}
|
|
2569
|
+
}
|
|
2570
|
+
}
|
|
2571
|
+
}
|
|
2572
|
+
}
|
|
2573
|
+
}
|
|
2379
2574
|
}
|
|
2380
2575
|
},
|
|
2381
2576
|
"/api/{session}/change-privacy-group": {
|
|
@@ -2391,24 +2586,6 @@
|
|
|
2391
2586
|
"type": "string",
|
|
2392
2587
|
"example": "NERDWHATS_AMERICA"
|
|
2393
2588
|
}
|
|
2394
|
-
},
|
|
2395
|
-
{
|
|
2396
|
-
"name": "obj",
|
|
2397
|
-
"in": "body",
|
|
2398
|
-
"schema": {
|
|
2399
|
-
"type": "object",
|
|
2400
|
-
"properties": {
|
|
2401
|
-
"groupId": {
|
|
2402
|
-
"type": "string",
|
|
2403
|
-
"example": "<groupId>"
|
|
2404
|
-
},
|
|
2405
|
-
"status": {
|
|
2406
|
-
"type": "boolean",
|
|
2407
|
-
"example": true
|
|
2408
|
-
}
|
|
2409
|
-
},
|
|
2410
|
-
"required": ["groupId", "status"]
|
|
2411
|
-
}
|
|
2412
2589
|
}
|
|
2413
2590
|
],
|
|
2414
2591
|
"responses": {
|
|
@@ -2423,7 +2600,25 @@
|
|
|
2423
2600
|
{
|
|
2424
2601
|
"bearerAuth": []
|
|
2425
2602
|
}
|
|
2426
|
-
]
|
|
2603
|
+
],
|
|
2604
|
+
"requestBody": {
|
|
2605
|
+
"required": true,
|
|
2606
|
+
"content": {
|
|
2607
|
+
"application/json": {
|
|
2608
|
+
"schema": {
|
|
2609
|
+
"type": "object",
|
|
2610
|
+
"properties": {
|
|
2611
|
+
"$groupId": {
|
|
2612
|
+
"type": "string"
|
|
2613
|
+
},
|
|
2614
|
+
"$status": {
|
|
2615
|
+
"type": "boolean"
|
|
2616
|
+
}
|
|
2617
|
+
}
|
|
2618
|
+
}
|
|
2619
|
+
}
|
|
2620
|
+
}
|
|
2621
|
+
}
|
|
2427
2622
|
}
|
|
2428
2623
|
},
|
|
2429
2624
|
"/api/{session}/all-chats": {
|
|
@@ -5125,27 +5320,6 @@
|
|
|
5125
5320
|
"type": "string",
|
|
5126
5321
|
"example": "NERDWHATS_AMERICA"
|
|
5127
5322
|
}
|
|
5128
|
-
},
|
|
5129
|
-
{
|
|
5130
|
-
"name": "obj",
|
|
5131
|
-
"in": "body",
|
|
5132
|
-
"schema": {
|
|
5133
|
-
"type": "object",
|
|
5134
|
-
"properties": {
|
|
5135
|
-
"phones": {
|
|
5136
|
-
"type": "array",
|
|
5137
|
-
"example": ["<array_phone_id"],
|
|
5138
|
-
"items": {
|
|
5139
|
-
"type": "string"
|
|
5140
|
-
}
|
|
5141
|
-
},
|
|
5142
|
-
"message": {
|
|
5143
|
-
"type": "string",
|
|
5144
|
-
"example": "Message"
|
|
5145
|
-
}
|
|
5146
|
-
},
|
|
5147
|
-
"required": ["phones", "message"]
|
|
5148
|
-
}
|
|
5149
5323
|
}
|
|
5150
5324
|
],
|
|
5151
5325
|
"responses": {
|
|
@@ -5164,7 +5338,32 @@
|
|
|
5164
5338
|
"bearerAuth": []
|
|
5165
5339
|
}
|
|
5166
5340
|
],
|
|
5167
|
-
"requestBody": {
|
|
5341
|
+
"requestBody": {
|
|
5342
|
+
"required": true,
|
|
5343
|
+
"content": {
|
|
5344
|
+
"application/json": {
|
|
5345
|
+
"schema": {
|
|
5346
|
+
"type": "object",
|
|
5347
|
+
"properties": {
|
|
5348
|
+
"phones": {
|
|
5349
|
+
"type": "array"
|
|
5350
|
+
},
|
|
5351
|
+
"message": {
|
|
5352
|
+
"type": "string"
|
|
5353
|
+
}
|
|
5354
|
+
}
|
|
5355
|
+
},
|
|
5356
|
+
"examples": {
|
|
5357
|
+
"Default": {
|
|
5358
|
+
"value": {
|
|
5359
|
+
"phones": ["<array_phone_id"],
|
|
5360
|
+
"message": "Message"
|
|
5361
|
+
}
|
|
5362
|
+
}
|
|
5363
|
+
}
|
|
5364
|
+
}
|
|
5365
|
+
}
|
|
5366
|
+
}
|
|
5168
5367
|
}
|
|
5169
5368
|
},
|
|
5170
5369
|
"/api/{session}/set-product-visibility": {
|
|
@@ -5336,24 +5535,53 @@
|
|
|
5336
5535
|
}
|
|
5337
5536
|
}
|
|
5338
5537
|
}
|
|
5339
|
-
}
|
|
5340
|
-
|
|
5538
|
+
}
|
|
5539
|
+
}
|
|
5540
|
+
}
|
|
5541
|
+
],
|
|
5542
|
+
"responses": {
|
|
5543
|
+
"400": {
|
|
5544
|
+
"description": "Bad Request"
|
|
5545
|
+
},
|
|
5546
|
+
"401": {
|
|
5547
|
+
"description": "Unauthorized"
|
|
5548
|
+
}
|
|
5549
|
+
},
|
|
5550
|
+
"security": [
|
|
5551
|
+
{
|
|
5552
|
+
"bearerAuth": []
|
|
5553
|
+
}
|
|
5554
|
+
],
|
|
5555
|
+
"requestBody": {
|
|
5556
|
+
"required": true,
|
|
5557
|
+
"content": {
|
|
5558
|
+
"application/json": {
|
|
5559
|
+
"schema": {
|
|
5560
|
+
"type": "object",
|
|
5561
|
+
"properties": {
|
|
5562
|
+
"text": {
|
|
5563
|
+
"type": "string"
|
|
5564
|
+
},
|
|
5565
|
+
"options": {
|
|
5566
|
+
"type": "object"
|
|
5567
|
+
}
|
|
5568
|
+
},
|
|
5569
|
+
"required": ["text"]
|
|
5570
|
+
},
|
|
5571
|
+
"examples": {
|
|
5572
|
+
"Default": {
|
|
5573
|
+
"value": {
|
|
5574
|
+
"text": "My new storie",
|
|
5575
|
+
"options": {
|
|
5576
|
+
"backgroundColor": "#0275d8",
|
|
5577
|
+
"font": 2
|
|
5578
|
+
}
|
|
5579
|
+
}
|
|
5580
|
+
}
|
|
5581
|
+
}
|
|
5341
5582
|
}
|
|
5342
5583
|
}
|
|
5343
|
-
|
|
5344
|
-
"responses": {
|
|
5345
|
-
"400": {
|
|
5346
|
-
"description": "Bad Request"
|
|
5347
|
-
},
|
|
5348
|
-
"401": {
|
|
5349
|
-
"description": "Unauthorized"
|
|
5350
|
-
}
|
|
5351
|
-
},
|
|
5352
|
-
"security": [
|
|
5353
|
-
{
|
|
5354
|
-
"bearerAuth": []
|
|
5355
|
-
}
|
|
5356
|
-
]
|
|
5584
|
+
}
|
|
5357
5585
|
}
|
|
5358
5586
|
},
|
|
5359
5587
|
"/api/{session}/send-image-storie": {
|
|
@@ -5369,20 +5597,6 @@
|
|
|
5369
5597
|
"type": "string",
|
|
5370
5598
|
"example": "NERDWHATS_AMERICA"
|
|
5371
5599
|
}
|
|
5372
|
-
},
|
|
5373
|
-
{
|
|
5374
|
-
"name": "obj",
|
|
5375
|
-
"in": "body",
|
|
5376
|
-
"schema": {
|
|
5377
|
-
"type": "object",
|
|
5378
|
-
"properties": {
|
|
5379
|
-
"path": {
|
|
5380
|
-
"type": "string",
|
|
5381
|
-
"example": "Path of your image"
|
|
5382
|
-
}
|
|
5383
|
-
},
|
|
5384
|
-
"required": ["path"]
|
|
5385
|
-
}
|
|
5386
5600
|
}
|
|
5387
5601
|
],
|
|
5388
5602
|
"responses": {
|
|
@@ -5397,7 +5611,30 @@
|
|
|
5397
5611
|
{
|
|
5398
5612
|
"bearerAuth": []
|
|
5399
5613
|
}
|
|
5400
|
-
]
|
|
5614
|
+
],
|
|
5615
|
+
"requestBody": {
|
|
5616
|
+
"required": true,
|
|
5617
|
+
"content": {
|
|
5618
|
+
"application/json": {
|
|
5619
|
+
"schema": {
|
|
5620
|
+
"type": "object",
|
|
5621
|
+
"properties": {
|
|
5622
|
+
"path": {
|
|
5623
|
+
"type": "string"
|
|
5624
|
+
}
|
|
5625
|
+
},
|
|
5626
|
+
"required": ["path"]
|
|
5627
|
+
},
|
|
5628
|
+
"examples": {
|
|
5629
|
+
"Default": {
|
|
5630
|
+
"value": {
|
|
5631
|
+
"path": "Path of your image"
|
|
5632
|
+
}
|
|
5633
|
+
}
|
|
5634
|
+
}
|
|
5635
|
+
}
|
|
5636
|
+
}
|
|
5637
|
+
}
|
|
5401
5638
|
}
|
|
5402
5639
|
},
|
|
5403
5640
|
"/api/{session}/send-video-storie": {
|
|
@@ -5413,20 +5650,6 @@
|
|
|
5413
5650
|
"type": "string",
|
|
5414
5651
|
"example": "NERDWHATS_AMERICA"
|
|
5415
5652
|
}
|
|
5416
|
-
},
|
|
5417
|
-
{
|
|
5418
|
-
"name": "obj",
|
|
5419
|
-
"in": "body",
|
|
5420
|
-
"schema": {
|
|
5421
|
-
"type": "object",
|
|
5422
|
-
"properties": {
|
|
5423
|
-
"path": {
|
|
5424
|
-
"type": "string",
|
|
5425
|
-
"example": "Path of your video"
|
|
5426
|
-
}
|
|
5427
|
-
},
|
|
5428
|
-
"required": ["path"]
|
|
5429
|
-
}
|
|
5430
5653
|
}
|
|
5431
5654
|
],
|
|
5432
5655
|
"responses": {
|
|
@@ -5441,7 +5664,30 @@
|
|
|
5441
5664
|
{
|
|
5442
5665
|
"bearerAuth": []
|
|
5443
5666
|
}
|
|
5444
|
-
]
|
|
5667
|
+
],
|
|
5668
|
+
"requestBody": {
|
|
5669
|
+
"required": true,
|
|
5670
|
+
"content": {
|
|
5671
|
+
"application/json": {
|
|
5672
|
+
"schema": {
|
|
5673
|
+
"type": "object",
|
|
5674
|
+
"properties": {
|
|
5675
|
+
"path": {
|
|
5676
|
+
"type": "string"
|
|
5677
|
+
}
|
|
5678
|
+
},
|
|
5679
|
+
"required": ["path"]
|
|
5680
|
+
},
|
|
5681
|
+
"examples": {
|
|
5682
|
+
"Default": {
|
|
5683
|
+
"value": {
|
|
5684
|
+
"path": "Path of your video"
|
|
5685
|
+
}
|
|
5686
|
+
}
|
|
5687
|
+
}
|
|
5688
|
+
}
|
|
5689
|
+
}
|
|
5690
|
+
}
|
|
5445
5691
|
}
|
|
5446
5692
|
},
|
|
5447
5693
|
"/api/{session}/add-new-label": {
|
|
@@ -5457,29 +5703,6 @@
|
|
|
5457
5703
|
"type": "string",
|
|
5458
5704
|
"example": "NERDWHATS_AMERICA"
|
|
5459
5705
|
}
|
|
5460
|
-
},
|
|
5461
|
-
{
|
|
5462
|
-
"name": "obj",
|
|
5463
|
-
"in": "body",
|
|
5464
|
-
"schema": {
|
|
5465
|
-
"type": "object",
|
|
5466
|
-
"properties": {
|
|
5467
|
-
"name": {
|
|
5468
|
-
"type": "string",
|
|
5469
|
-
"example": "Name of your label"
|
|
5470
|
-
},
|
|
5471
|
-
"options": {
|
|
5472
|
-
"type": "object",
|
|
5473
|
-
"properties": {
|
|
5474
|
-
"labelColor": {
|
|
5475
|
-
"type": "number",
|
|
5476
|
-
"example": 4292849392
|
|
5477
|
-
}
|
|
5478
|
-
}
|
|
5479
|
-
}
|
|
5480
|
-
},
|
|
5481
|
-
"required": ["name", "options"]
|
|
5482
|
-
}
|
|
5483
5706
|
}
|
|
5484
5707
|
],
|
|
5485
5708
|
"responses": {
|
|
@@ -5497,7 +5720,41 @@
|
|
|
5497
5720
|
{
|
|
5498
5721
|
"bearerAuth": []
|
|
5499
5722
|
}
|
|
5500
|
-
]
|
|
5723
|
+
],
|
|
5724
|
+
"requestBody": {
|
|
5725
|
+
"required": true,
|
|
5726
|
+
"content": {
|
|
5727
|
+
"application/json": {
|
|
5728
|
+
"schema": {
|
|
5729
|
+
"type": "object",
|
|
5730
|
+
"properties": {
|
|
5731
|
+
"$name": {
|
|
5732
|
+
"type": "string"
|
|
5733
|
+
},
|
|
5734
|
+
"$options": {
|
|
5735
|
+
"type": "object",
|
|
5736
|
+
"properties": {
|
|
5737
|
+
"labelColor": {
|
|
5738
|
+
"type": "number"
|
|
5739
|
+
}
|
|
5740
|
+
}
|
|
5741
|
+
}
|
|
5742
|
+
},
|
|
5743
|
+
"required": ["name", "options"]
|
|
5744
|
+
},
|
|
5745
|
+
"examples": {
|
|
5746
|
+
"Default": {
|
|
5747
|
+
"value": {
|
|
5748
|
+
"name": "Name of your label",
|
|
5749
|
+
"options": {
|
|
5750
|
+
"labelColor": 4292849392
|
|
5751
|
+
}
|
|
5752
|
+
}
|
|
5753
|
+
}
|
|
5754
|
+
}
|
|
5755
|
+
}
|
|
5756
|
+
}
|
|
5757
|
+
}
|
|
5501
5758
|
}
|
|
5502
5759
|
},
|
|
5503
5760
|
"/api/{session}/add-or-remove-label": {
|
|
@@ -5513,39 +5770,6 @@
|
|
|
5513
5770
|
"type": "string",
|
|
5514
5771
|
"example": "NERDWHATS_AMERICA"
|
|
5515
5772
|
}
|
|
5516
|
-
},
|
|
5517
|
-
{
|
|
5518
|
-
"name": "obj",
|
|
5519
|
-
"in": "body",
|
|
5520
|
-
"schema": {
|
|
5521
|
-
"type": "object",
|
|
5522
|
-
"properties": {
|
|
5523
|
-
"chatIds": {
|
|
5524
|
-
"type": "array",
|
|
5525
|
-
"example": ["5521999999999"],
|
|
5526
|
-
"items": {
|
|
5527
|
-
"type": "string"
|
|
5528
|
-
}
|
|
5529
|
-
},
|
|
5530
|
-
"options": {
|
|
5531
|
-
"type": "array",
|
|
5532
|
-
"items": {
|
|
5533
|
-
"type": "object",
|
|
5534
|
-
"properties": {
|
|
5535
|
-
"labelId": {
|
|
5536
|
-
"type": "string",
|
|
5537
|
-
"example": "75"
|
|
5538
|
-
},
|
|
5539
|
-
"type": {
|
|
5540
|
-
"type": "string",
|
|
5541
|
-
"example": "remove"
|
|
5542
|
-
}
|
|
5543
|
-
}
|
|
5544
|
-
}
|
|
5545
|
-
}
|
|
5546
|
-
},
|
|
5547
|
-
"required": ["chatIds", "options"]
|
|
5548
|
-
}
|
|
5549
5773
|
}
|
|
5550
5774
|
],
|
|
5551
5775
|
"responses": {
|
|
@@ -5563,7 +5787,57 @@
|
|
|
5563
5787
|
{
|
|
5564
5788
|
"bearerAuth": []
|
|
5565
5789
|
}
|
|
5566
|
-
]
|
|
5790
|
+
],
|
|
5791
|
+
"requestBody": {
|
|
5792
|
+
"required": true,
|
|
5793
|
+
"content": {
|
|
5794
|
+
"application/json": {
|
|
5795
|
+
"schema": {
|
|
5796
|
+
"type": "object",
|
|
5797
|
+
"properties": {
|
|
5798
|
+
"chatIds": {
|
|
5799
|
+
"type": "array",
|
|
5800
|
+
"items": {
|
|
5801
|
+
"type": "string"
|
|
5802
|
+
}
|
|
5803
|
+
},
|
|
5804
|
+
"options": {
|
|
5805
|
+
"type": "array",
|
|
5806
|
+
"items": {
|
|
5807
|
+
"type": "object",
|
|
5808
|
+
"properties": {
|
|
5809
|
+
"labelId": {
|
|
5810
|
+
"type": "string"
|
|
5811
|
+
},
|
|
5812
|
+
"type": {
|
|
5813
|
+
"type": "string"
|
|
5814
|
+
}
|
|
5815
|
+
}
|
|
5816
|
+
}
|
|
5817
|
+
}
|
|
5818
|
+
},
|
|
5819
|
+
"required": ["chatIds"]
|
|
5820
|
+
},
|
|
5821
|
+
"examples": {
|
|
5822
|
+
"Default": {
|
|
5823
|
+
"value": {
|
|
5824
|
+
"chatIds": ["5521999999999"],
|
|
5825
|
+
"options": [
|
|
5826
|
+
{
|
|
5827
|
+
"labelId": "76",
|
|
5828
|
+
"type": "add"
|
|
5829
|
+
},
|
|
5830
|
+
{
|
|
5831
|
+
"labelId": "75",
|
|
5832
|
+
"type": "remove"
|
|
5833
|
+
}
|
|
5834
|
+
]
|
|
5835
|
+
}
|
|
5836
|
+
}
|
|
5837
|
+
}
|
|
5838
|
+
}
|
|
5839
|
+
}
|
|
5840
|
+
}
|
|
5567
5841
|
}
|
|
5568
5842
|
},
|
|
5569
5843
|
"/api/{session}/get-all-labels": {
|
|
@@ -6420,20 +6694,6 @@
|
|
|
6420
6694
|
"type": "string",
|
|
6421
6695
|
"example": "NERDWHATS_AMERICA"
|
|
6422
6696
|
}
|
|
6423
|
-
},
|
|
6424
|
-
{
|
|
6425
|
-
"name": "obj",
|
|
6426
|
-
"in": "body",
|
|
6427
|
-
"schema": {
|
|
6428
|
-
"type": "object",
|
|
6429
|
-
"properties": {
|
|
6430
|
-
"messageId": {
|
|
6431
|
-
"type": "string",
|
|
6432
|
-
"example": "<message_id>"
|
|
6433
|
-
}
|
|
6434
|
-
},
|
|
6435
|
-
"required": ["messageId"]
|
|
6436
|
-
}
|
|
6437
6697
|
}
|
|
6438
6698
|
],
|
|
6439
6699
|
"responses": {},
|
|
@@ -6441,7 +6701,30 @@
|
|
|
6441
6701
|
{
|
|
6442
6702
|
"bearerAuth": []
|
|
6443
6703
|
}
|
|
6444
|
-
]
|
|
6704
|
+
],
|
|
6705
|
+
"requestBody": {
|
|
6706
|
+
"required": true,
|
|
6707
|
+
"content": {
|
|
6708
|
+
"application/json": {
|
|
6709
|
+
"schema": {
|
|
6710
|
+
"type": "object",
|
|
6711
|
+
"properties": {
|
|
6712
|
+
"messageId": {
|
|
6713
|
+
"type": "string"
|
|
6714
|
+
}
|
|
6715
|
+
},
|
|
6716
|
+
"required": ["messageId"]
|
|
6717
|
+
},
|
|
6718
|
+
"examples": {
|
|
6719
|
+
"Default": {
|
|
6720
|
+
"value": {
|
|
6721
|
+
"messageId": "<message_id>"
|
|
6722
|
+
}
|
|
6723
|
+
}
|
|
6724
|
+
}
|
|
6725
|
+
}
|
|
6726
|
+
}
|
|
6727
|
+
}
|
|
6445
6728
|
}
|
|
6446
6729
|
},
|
|
6447
6730
|
"/api/{secretkey}/backup-sessions": {
|
|
@@ -6465,10 +6748,7 @@
|
|
|
6465
6748
|
"description": "A ZIP file contaings your backup. Please, open this link in your browser",
|
|
6466
6749
|
"content": {
|
|
6467
6750
|
"application/zip": {
|
|
6468
|
-
"schema": {
|
|
6469
|
-
"type": "string",
|
|
6470
|
-
"format": "binary"
|
|
6471
|
-
}
|
|
6751
|
+
"schema": {}
|
|
6472
6752
|
}
|
|
6473
6753
|
}
|
|
6474
6754
|
},
|
|
@@ -6569,24 +6849,6 @@
|
|
|
6569
6849
|
"type": "string",
|
|
6570
6850
|
"example": "NERDWHATS_AMERICA"
|
|
6571
6851
|
}
|
|
6572
|
-
},
|
|
6573
|
-
{
|
|
6574
|
-
"name": "obj",
|
|
6575
|
-
"in": "body",
|
|
6576
|
-
"schema": {
|
|
6577
|
-
"type": "object",
|
|
6578
|
-
"properties": {
|
|
6579
|
-
"type": {
|
|
6580
|
-
"type": "string",
|
|
6581
|
-
"example": "maxFileSize"
|
|
6582
|
-
},
|
|
6583
|
-
"value": {
|
|
6584
|
-
"type": "number",
|
|
6585
|
-
"example": 104857600
|
|
6586
|
-
}
|
|
6587
|
-
},
|
|
6588
|
-
"required": ["type", "value"]
|
|
6589
|
-
}
|
|
6590
6852
|
}
|
|
6591
6853
|
],
|
|
6592
6854
|
"responses": {
|
|
@@ -6601,7 +6863,34 @@
|
|
|
6601
6863
|
{
|
|
6602
6864
|
"bearerAuth": []
|
|
6603
6865
|
}
|
|
6604
|
-
]
|
|
6866
|
+
],
|
|
6867
|
+
"requestBody": {
|
|
6868
|
+
"required": true,
|
|
6869
|
+
"content": {
|
|
6870
|
+
"application/json": {
|
|
6871
|
+
"schema": {
|
|
6872
|
+
"type": "object",
|
|
6873
|
+
"properties": {
|
|
6874
|
+
"type": {
|
|
6875
|
+
"type": "string"
|
|
6876
|
+
},
|
|
6877
|
+
"value": {
|
|
6878
|
+
"type": "any"
|
|
6879
|
+
}
|
|
6880
|
+
},
|
|
6881
|
+
"required": ["type", "value"]
|
|
6882
|
+
},
|
|
6883
|
+
"examples": {
|
|
6884
|
+
"Default": {
|
|
6885
|
+
"value": {
|
|
6886
|
+
"type": "maxFileSize",
|
|
6887
|
+
"value": 104857600
|
|
6888
|
+
}
|
|
6889
|
+
}
|
|
6890
|
+
}
|
|
6891
|
+
}
|
|
6892
|
+
}
|
|
6893
|
+
}
|
|
6605
6894
|
}
|
|
6606
6895
|
},
|
|
6607
6896
|
"/api/{session}/create-community": {
|