@wppconnect/server 2.2.1 → 2.2.2

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/swagger.json CHANGED
@@ -626,28 +626,6 @@
626
626
  "type": "string",
627
627
  "example": "NERDWHATS_AMERICA"
628
628
  }
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
629
  }
652
630
  ],
653
631
  "responses": {
@@ -659,7 +637,37 @@
659
637
  {
660
638
  "bearerAuth": []
661
639
  }
662
- ]
640
+ ],
641
+ "requestBody": {
642
+ "required": true,
643
+ "content": {
644
+ "application/json": {
645
+ "schema": {
646
+ "type": "object",
647
+ "properties": {
648
+ "$phone": {
649
+ "type": "string"
650
+ },
651
+ "$isGroup": {
652
+ "type": "boolean"
653
+ },
654
+ "$message": {
655
+ "type": "string"
656
+ }
657
+ }
658
+ },
659
+ "examples": {
660
+ "Default": {
661
+ "value": {
662
+ "phone": "5521999999999",
663
+ "isGroup": false,
664
+ "message": "Hello, welcome to WPPConnect"
665
+ }
666
+ }
667
+ }
668
+ }
669
+ }
670
+ }
663
671
  }
664
672
  },
665
673
  "/api/{session}/send-image": {
@@ -675,36 +683,6 @@
675
683
  "type": "string",
676
684
  "example": "NERDWHATS_AMERICA"
677
685
  }
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
686
  }
709
687
  ],
710
688
  "responses": {
@@ -719,7 +697,45 @@
719
697
  {
720
698
  "bearerAuth": []
721
699
  }
722
- ]
700
+ ],
701
+ "requestBody": {
702
+ "required": true,
703
+ "content": {
704
+ "application/json": {
705
+ "schema": {
706
+ "type": "object",
707
+ "properties": {
708
+ "phone": {
709
+ "type": "string"
710
+ },
711
+ "isGroup": {
712
+ "type": "boolean"
713
+ },
714
+ "filename": {
715
+ "type": "string"
716
+ },
717
+ "caption": {
718
+ "type": "string"
719
+ },
720
+ "base64": {
721
+ "type": "string"
722
+ }
723
+ }
724
+ },
725
+ "examples": {
726
+ "Default": {
727
+ "value": {
728
+ "phone": "5521999999999",
729
+ "isGroup": false,
730
+ "filename": "file name lol",
731
+ "caption": "caption for my file",
732
+ "base64": "<base64> string"
733
+ }
734
+ }
735
+ }
736
+ }
737
+ }
738
+ }
723
739
  }
724
740
  },
725
741
  "/api/{session}/send-sticker": {
@@ -735,28 +751,6 @@
735
751
  "type": "string",
736
752
  "example": "NERDWHATS_AMERICA"
737
753
  }
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
754
  }
761
755
  ],
762
756
  "responses": {
@@ -771,7 +765,38 @@
771
765
  {
772
766
  "bearerAuth": []
773
767
  }
774
- ]
768
+ ],
769
+ "requestBody": {
770
+ "required": true,
771
+ "content": {
772
+ "application/json": {
773
+ "schema": {
774
+ "type": "object",
775
+ "properties": {
776
+ "phone": {
777
+ "type": "string"
778
+ },
779
+ "isGroup": {
780
+ "type": "boolean"
781
+ },
782
+ "path": {
783
+ "type": "string"
784
+ }
785
+ },
786
+ "required": ["phone", "path"]
787
+ },
788
+ "examples": {
789
+ "Default": {
790
+ "value": {
791
+ "phone": "5521999999999",
792
+ "isGroup": true,
793
+ "path": "<path_file>"
794
+ }
795
+ }
796
+ }
797
+ }
798
+ }
799
+ }
775
800
  }
776
801
  },
777
802
  "/api/{session}/send-sticker-gif": {
@@ -787,28 +812,6 @@
787
812
  "type": "string",
788
813
  "example": "NERDWHATS_AMERICA"
789
814
  }
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
815
  }
813
816
  ],
814
817
  "responses": {
@@ -823,7 +826,38 @@
823
826
  {
824
827
  "bearerAuth": []
825
828
  }
826
- ]
829
+ ],
830
+ "requestBody": {
831
+ "required": true,
832
+ "content": {
833
+ "application/json": {
834
+ "schema": {
835
+ "type": "object",
836
+ "properties": {
837
+ "phone": {
838
+ "type": "string"
839
+ },
840
+ "isGroup": {
841
+ "type": "boolean"
842
+ },
843
+ "path": {
844
+ "type": "string"
845
+ }
846
+ },
847
+ "required": ["phone", "path"]
848
+ },
849
+ "examples": {
850
+ "Default": {
851
+ "value": {
852
+ "phone": "5521999999999",
853
+ "isGroup": true,
854
+ "path": "<path_file>"
855
+ }
856
+ }
857
+ }
858
+ }
859
+ }
860
+ }
827
861
  }
828
862
  },
829
863
  "/api/{session}/send-reply": {
@@ -839,32 +873,6 @@
839
873
  "type": "string",
840
874
  "example": "NERDWHATS_AMERICA"
841
875
  }
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
876
  }
869
877
  ],
870
878
  "responses": {
@@ -876,7 +884,41 @@
876
884
  {
877
885
  "bearerAuth": []
878
886
  }
879
- ]
887
+ ],
888
+ "requestBody": {
889
+ "required": true,
890
+ "content": {
891
+ "application/json": {
892
+ "schema": {
893
+ "type": "object",
894
+ "properties": {
895
+ "phone": {
896
+ "type": "string"
897
+ },
898
+ "isGroup": {
899
+ "type": "boolean"
900
+ },
901
+ "message": {
902
+ "type": "string"
903
+ },
904
+ "messageId": {
905
+ "type": "string"
906
+ }
907
+ }
908
+ },
909
+ "examples": {
910
+ "Default": {
911
+ "value": {
912
+ "phone": "5521999999999",
913
+ "isGroup": false,
914
+ "message": "Reply to message",
915
+ "messageId": "<id_message>"
916
+ }
917
+ }
918
+ }
919
+ }
920
+ }
921
+ }
880
922
  }
881
923
  },
882
924
  "/api/{session}/send-file": {
@@ -892,36 +934,6 @@
892
934
  "type": "string",
893
935
  "example": "NERDWHATS_AMERICA"
894
936
  }
895
- },
896
- {
897
- "name": "obj",
898
- "in": "body",
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"
921
- }
922
- },
923
- "required": ["phone", "isGroup", "filename", "caption", "base64"]
924
- }
925
937
  }
926
938
  ],
927
939
  "responses": {
@@ -936,7 +948,45 @@
936
948
  {
937
949
  "bearerAuth": []
938
950
  }
939
- ]
951
+ ],
952
+ "requestBody": {
953
+ "required": true,
954
+ "content": {
955
+ "application/json": {
956
+ "schema": {
957
+ "type": "object",
958
+ "properties": {
959
+ "phone": {
960
+ "type": "string"
961
+ },
962
+ "isGroup": {
963
+ "type": "boolean"
964
+ },
965
+ "filename": {
966
+ "type": "string"
967
+ },
968
+ "caption": {
969
+ "type": "string"
970
+ },
971
+ "base64": {
972
+ "type": "string"
973
+ }
974
+ }
975
+ },
976
+ "examples": {
977
+ "Default": {
978
+ "value": {
979
+ "phone": "5521999999999",
980
+ "isGroup": false,
981
+ "filename": "file name lol",
982
+ "caption": "caption for my file",
983
+ "base64": "<base64> string"
984
+ }
985
+ }
986
+ }
987
+ }
988
+ }
989
+ }
940
990
  }
941
991
  },
942
992
  "/api/{session}/send-file-base64": {
@@ -952,36 +1002,6 @@
952
1002
  "type": "string",
953
1003
  "example": "NERDWHATS_AMERICA"
954
1004
  }
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
1005
  }
986
1006
  ],
987
1007
  "responses": {
@@ -996,7 +1016,45 @@
996
1016
  {
997
1017
  "bearerAuth": []
998
1018
  }
999
- ]
1019
+ ],
1020
+ "requestBody": {
1021
+ "required": true,
1022
+ "content": {
1023
+ "application/json": {
1024
+ "schema": {
1025
+ "type": "object",
1026
+ "properties": {
1027
+ "phone": {
1028
+ "type": "string"
1029
+ },
1030
+ "isGroup": {
1031
+ "type": "boolean"
1032
+ },
1033
+ "filename": {
1034
+ "type": "string"
1035
+ },
1036
+ "caption": {
1037
+ "type": "string"
1038
+ },
1039
+ "base64": {
1040
+ "type": "string"
1041
+ }
1042
+ }
1043
+ },
1044
+ "examples": {
1045
+ "Default": {
1046
+ "value": {
1047
+ "phone": "5521999999999",
1048
+ "isGroup": false,
1049
+ "filename": "file name lol",
1050
+ "caption": "caption for my file",
1051
+ "base64": "<base64> string"
1052
+ }
1053
+ }
1054
+ }
1055
+ }
1056
+ }
1057
+ }
1000
1058
  }
1001
1059
  },
1002
1060
  "/api/{session}/send-voice": {
@@ -1012,31 +1070,6 @@
1012
1070
  "type": "string",
1013
1071
  "example": "NERDWHATS_AMERICA"
1014
1072
  }
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
1073
  }
1041
1074
  ],
1042
1075
  "responses": {
@@ -1048,7 +1081,41 @@
1048
1081
  {
1049
1082
  "bearerAuth": []
1050
1083
  }
1051
- ]
1084
+ ],
1085
+ "requestBody": {
1086
+ "required": true,
1087
+ "content": {
1088
+ "application/json": {
1089
+ "schema": {
1090
+ "type": "object",
1091
+ "properties": {
1092
+ "phone": {
1093
+ "type": "string"
1094
+ },
1095
+ "isGroup": {
1096
+ "type": "boolean"
1097
+ },
1098
+ "path": {
1099
+ "type": "string"
1100
+ },
1101
+ "quotedMessageId": {
1102
+ "type": "string"
1103
+ }
1104
+ }
1105
+ },
1106
+ "examples": {
1107
+ "Default": {
1108
+ "value": {
1109
+ "phone": "5521999999999",
1110
+ "isGroup": false,
1111
+ "path": "<path_file>",
1112
+ "quotedMessageId": "message Id"
1113
+ }
1114
+ }
1115
+ }
1116
+ }
1117
+ }
1118
+ }
1052
1119
  }
1053
1120
  },
1054
1121
  "/api/{session}/send-voice-base64": {
@@ -1064,28 +1131,6 @@
1064
1131
  "type": "string",
1065
1132
  "example": "NERDWHATS_AMERICA"
1066
1133
  }
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
1134
  }
1090
1135
  ],
1091
1136
  "responses": {
@@ -1097,7 +1142,37 @@
1097
1142
  {
1098
1143
  "bearerAuth": []
1099
1144
  }
1100
- ]
1145
+ ],
1146
+ "requestBody": {
1147
+ "required": true,
1148
+ "content": {
1149
+ "application/json": {
1150
+ "schema": {
1151
+ "type": "object",
1152
+ "properties": {
1153
+ "phone": {
1154
+ "type": "string"
1155
+ },
1156
+ "isGroup": {
1157
+ "type": "boolean"
1158
+ },
1159
+ "base64Ptt": {
1160
+ "type": "string"
1161
+ }
1162
+ }
1163
+ },
1164
+ "examples": {
1165
+ "Default": {
1166
+ "value": {
1167
+ "phone": "5521999999999",
1168
+ "isGroup": false,
1169
+ "base64Ptt": "<base64_string>"
1170
+ }
1171
+ }
1172
+ }
1173
+ }
1174
+ }
1175
+ }
1101
1176
  }
1102
1177
  },
1103
1178
  "/api/{session}/send-status": {
@@ -1113,20 +1188,6 @@
1113
1188
  "type": "string",
1114
1189
  "example": "NERDWHATS_AMERICA"
1115
1190
  }
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
1191
  }
1131
1192
  ],
1132
1193
  "responses": {
@@ -1138,7 +1199,42 @@
1138
1199
  {
1139
1200
  "bearerAuth": []
1140
1201
  }
1141
- ]
1202
+ ],
1203
+ "requestBody": {
1204
+ "required": true,
1205
+ "content": {
1206
+ "application/json": {
1207
+ "schema": {
1208
+ "type": "object",
1209
+ "properties": {
1210
+ "phone": {
1211
+ "type": "string"
1212
+ },
1213
+ "isGroup": {
1214
+ "type": "boolean"
1215
+ },
1216
+ "message": {
1217
+ "type": "string"
1218
+ },
1219
+ "messageId": {
1220
+ "type": "string"
1221
+ }
1222
+ },
1223
+ "required": ["phone", "isGroup", "message"]
1224
+ },
1225
+ "examples": {
1226
+ "Default": {
1227
+ "value": {
1228
+ "phone": "5521999999999",
1229
+ "isGroup": false,
1230
+ "message": "Reply to message",
1231
+ "messageId": "<id_message>"
1232
+ }
1233
+ }
1234
+ }
1235
+ }
1236
+ }
1237
+ }
1142
1238
  }
1143
1239
  },
1144
1240
  "/api/{session}/send-link-preview": {
@@ -1154,32 +1250,6 @@
1154
1250
  "type": "string",
1155
1251
  "example": "NERDWHATS_AMERICA"
1156
1252
  }
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
1253
  }
1184
1254
  ],
1185
1255
  "responses": {
@@ -1191,7 +1261,41 @@
1191
1261
  {
1192
1262
  "bearerAuth": []
1193
1263
  }
1194
- ]
1264
+ ],
1265
+ "requestBody": {
1266
+ "required": true,
1267
+ "content": {
1268
+ "application/json": {
1269
+ "schema": {
1270
+ "type": "object",
1271
+ "properties": {
1272
+ "phone": {
1273
+ "type": "string"
1274
+ },
1275
+ "isGroup": {
1276
+ "type": "boolean"
1277
+ },
1278
+ "url": {
1279
+ "type": "string"
1280
+ },
1281
+ "caption": {
1282
+ "type": "string"
1283
+ }
1284
+ }
1285
+ },
1286
+ "examples": {
1287
+ "Default": {
1288
+ "value": {
1289
+ "phone": "5521999999999",
1290
+ "isGroup": false,
1291
+ "url": "http://www.link.com",
1292
+ "caption": "Text for describe link"
1293
+ }
1294
+ }
1295
+ }
1296
+ }
1297
+ }
1298
+ }
1195
1299
  }
1196
1300
  },
1197
1301
  "/api/{session}/send-location": {
@@ -1207,40 +1311,6 @@
1207
1311
  "type": "string",
1208
1312
  "example": "NERDWHATS_AMERICA"
1209
1313
  }
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
1314
  }
1245
1315
  ],
1246
1316
  "responses": {
@@ -1252,7 +1322,49 @@
1252
1322
  {
1253
1323
  "bearerAuth": []
1254
1324
  }
1255
- ]
1325
+ ],
1326
+ "requestBody": {
1327
+ "required": true,
1328
+ "content": {
1329
+ "application/json": {
1330
+ "schema": {
1331
+ "type": "object",
1332
+ "properties": {
1333
+ "phone": {
1334
+ "type": "string"
1335
+ },
1336
+ "isGroup": {
1337
+ "type": "boolean"
1338
+ },
1339
+ "lat": {
1340
+ "type": "string"
1341
+ },
1342
+ "lng": {
1343
+ "type": "string"
1344
+ },
1345
+ "title": {
1346
+ "type": "string"
1347
+ },
1348
+ "address": {
1349
+ "type": "string"
1350
+ }
1351
+ }
1352
+ },
1353
+ "examples": {
1354
+ "Default": {
1355
+ "value": {
1356
+ "phone": "5521999999999",
1357
+ "isGroup": false,
1358
+ "lat": "-89898322",
1359
+ "lng": "-545454",
1360
+ "title": "Rio de Janeiro",
1361
+ "address": "Av. N. S. de Copacabana, 25, Copacabana"
1362
+ }
1363
+ }
1364
+ }
1365
+ }
1366
+ }
1367
+ }
1256
1368
  }
1257
1369
  },
1258
1370
  "/api/{session}/send-mentioned": {
@@ -1268,50 +1380,59 @@
1268
1380
  "type": "string",
1269
1381
  "example": "NERDWHATS_AMERICA"
1270
1382
  }
1383
+ }
1384
+ ],
1385
+ "responses": {
1386
+ "201": {
1387
+ "description": "Created"
1271
1388
  },
1389
+ "500": {
1390
+ "description": "Internal Server Error"
1391
+ }
1392
+ },
1393
+ "security": [
1272
1394
  {
1273
- "name": "obj",
1274
- "in": "body",
1275
- "schema": {
1276
- "type": "object",
1277
- "properties": {
1278
- "phone": {
1279
- "type": "string",
1280
- "example": "5521999999999"
1281
- },
1282
- "isGroup": {
1283
- "type": "boolean",
1284
- "example": true
1285
- },
1286
- "message": {
1287
- "type": "string",
1288
- "example": "Your text message"
1289
- },
1290
- "mentioned": {
1291
- "type": "array",
1292
- "example": ["@556593077171@c.us"],
1293
- "items": {
1395
+ "bearerAuth": []
1396
+ }
1397
+ ],
1398
+ "requestBody": {
1399
+ "required": true,
1400
+ "content": {
1401
+ "application/json": {
1402
+ "schema": {
1403
+ "type": "object",
1404
+ "properties": {
1405
+ "phone": {
1406
+ "type": "string"
1407
+ },
1408
+ "isGroup": {
1409
+ "type": "boolean"
1410
+ },
1411
+ "message": {
1294
1412
  "type": "string"
1413
+ },
1414
+ "mentioned": {
1415
+ "type": "array",
1416
+ "items": {
1417
+ "type": "string"
1418
+ }
1295
1419
  }
1296
- }
1420
+ },
1421
+ "required": ["phone", "message", "mentioned"]
1297
1422
  },
1298
- "required": ["phone", "isGroup", "message", "mentioned"]
1423
+ "examples": {
1424
+ "Default": {
1425
+ "value": {
1426
+ "phone": "5521999999999",
1427
+ "isGroup": true,
1428
+ "message": "Your text message",
1429
+ "mentioned": ["@556593077171@c.us"]
1430
+ }
1431
+ }
1432
+ }
1299
1433
  }
1300
1434
  }
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
- ]
1435
+ }
1315
1436
  }
1316
1437
  },
1317
1438
  "/api/{session}/send-buttons": {
@@ -1470,24 +1591,6 @@
1470
1591
  "example": "NERDWHATS_AMERICA"
1471
1592
  }
1472
1593
  },
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
1594
  {
1492
1595
  "name": "groupId",
1493
1596
  "schema": {
@@ -1497,12 +1600,40 @@
1497
1600
  "in": "query"
1498
1601
  }
1499
1602
  ],
1500
- "responses": {},
1603
+ "responses": {
1604
+ "200": {
1605
+ "description": "OK"
1606
+ },
1607
+ "400": {
1608
+ "description": "Bad Request"
1609
+ },
1610
+ "500": {
1611
+ "description": "Internal Server Error"
1612
+ }
1613
+ },
1501
1614
  "security": [
1502
1615
  {
1503
1616
  "bearerAuth": []
1504
1617
  }
1505
1618
  ],
1619
+ "requestBody": {
1620
+ "required": true,
1621
+ "content": {
1622
+ "application/json": {
1623
+ "schema": {
1624
+ "type": "object",
1625
+ "properties": {
1626
+ "$groupId": {
1627
+ "type": "string"
1628
+ },
1629
+ "$path": {
1630
+ "type": "string"
1631
+ }
1632
+ }
1633
+ }
1634
+ }
1635
+ }
1636
+ },
1506
1637
  "deprecated": true
1507
1638
  }
1508
1639
  },
@@ -1527,20 +1658,6 @@
1527
1658
  "schema": {
1528
1659
  "type": "string"
1529
1660
  }
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
1661
  }
1545
1662
  ],
1546
1663
  "responses": {
@@ -1555,7 +1672,30 @@
1555
1672
  {
1556
1673
  "bearerAuth": []
1557
1674
  }
1558
- ]
1675
+ ],
1676
+ "requestBody": {
1677
+ "required": true,
1678
+ "content": {
1679
+ "application/json": {
1680
+ "schema": {
1681
+ "type": "object",
1682
+ "properties": {
1683
+ "groupId": {
1684
+ "type": "string"
1685
+ }
1686
+ },
1687
+ "required": ["groupId"]
1688
+ },
1689
+ "examples": {
1690
+ "Default": {
1691
+ "value": {
1692
+ "groupId": "<groupId>"
1693
+ }
1694
+ }
1695
+ }
1696
+ }
1697
+ }
1698
+ }
1559
1699
  }
1560
1700
  },
1561
1701
  "/api/{session}/group-admins/{groupId}": {
@@ -1579,20 +1719,6 @@
1579
1719
  "schema": {
1580
1720
  "type": "string"
1581
1721
  }
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
1722
  }
1597
1723
  ],
1598
1724
  "responses": {
@@ -1607,7 +1733,30 @@
1607
1733
  {
1608
1734
  "bearerAuth": []
1609
1735
  }
1610
- ]
1736
+ ],
1737
+ "requestBody": {
1738
+ "required": true,
1739
+ "content": {
1740
+ "application/json": {
1741
+ "schema": {
1742
+ "type": "object",
1743
+ "properties": {
1744
+ "groupId": {
1745
+ "type": "string"
1746
+ }
1747
+ },
1748
+ "required": ["groupId"]
1749
+ },
1750
+ "examples": {
1751
+ "Default": {
1752
+ "value": {
1753
+ "groupId": "<groupId>"
1754
+ }
1755
+ }
1756
+ }
1757
+ }
1758
+ }
1759
+ }
1611
1760
  }
1612
1761
  },
1613
1762
  "/api/{session}/group-invite-link/{groupId}": {
@@ -1631,20 +1780,6 @@
1631
1780
  "schema": {
1632
1781
  "type": "string"
1633
1782
  }
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
1783
  }
1649
1784
  ],
1650
1785
  "responses": {
@@ -1659,7 +1794,22 @@
1659
1794
  {
1660
1795
  "bearerAuth": []
1661
1796
  }
1662
- ]
1797
+ ],
1798
+ "requestBody": {
1799
+ "required": true,
1800
+ "content": {
1801
+ "application/json": {
1802
+ "schema": {
1803
+ "type": "object",
1804
+ "properties": {
1805
+ "groupId": {
1806
+ "type": "string"
1807
+ }
1808
+ }
1809
+ }
1810
+ }
1811
+ }
1812
+ }
1663
1813
  }
1664
1814
  },
1665
1815
  "/api/{session}/group-revoke-link/{groupId}": {
@@ -1683,20 +1833,6 @@
1683
1833
  "schema": {
1684
1834
  "type": "string"
1685
1835
  }
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
1836
  }
1701
1837
  ],
1702
1838
  "responses": {
@@ -1711,7 +1847,22 @@
1711
1847
  {
1712
1848
  "bearerAuth": []
1713
1849
  }
1714
- ]
1850
+ ],
1851
+ "requestBody": {
1852
+ "required": true,
1853
+ "content": {
1854
+ "application/json": {
1855
+ "schema": {
1856
+ "type": "object",
1857
+ "properties": {
1858
+ "$groupId": {
1859
+ "type": "string"
1860
+ }
1861
+ }
1862
+ }
1863
+ }
1864
+ }
1865
+ }
1715
1866
  }
1716
1867
  },
1717
1868
  "/api/{session}/group-members-ids/{groupId}": {
@@ -1766,27 +1917,6 @@
1766
1917
  "type": "string",
1767
1918
  "example": "NERDWHATS_AMERICA"
1768
1919
  }
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
1920
  }
1791
1921
  ],
1792
1922
  "responses": {
@@ -1801,7 +1931,37 @@
1801
1931
  {
1802
1932
  "bearerAuth": []
1803
1933
  }
1804
- ]
1934
+ ],
1935
+ "requestBody": {
1936
+ "required": true,
1937
+ "content": {
1938
+ "application/json": {
1939
+ "schema": {
1940
+ "type": "object",
1941
+ "properties": {
1942
+ "participants": {
1943
+ "type": "array",
1944
+ "items": {
1945
+ "type": "string"
1946
+ }
1947
+ },
1948
+ "name": {
1949
+ "type": "string"
1950
+ }
1951
+ },
1952
+ "required": ["participants", "name"]
1953
+ },
1954
+ "examples": {
1955
+ "Default": {
1956
+ "value": {
1957
+ "participants": ["5521999999999"],
1958
+ "name": "Group name"
1959
+ }
1960
+ }
1961
+ }
1962
+ }
1963
+ }
1964
+ }
1805
1965
  }
1806
1966
  },
1807
1967
  "/api/{session}/leave-group": {
@@ -1817,20 +1977,6 @@
1817
1977
  "type": "string",
1818
1978
  "example": "NERDWHATS_AMERICA"
1819
1979
  }
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
1980
  }
1835
1981
  ],
1836
1982
  "responses": {
@@ -1845,7 +1991,23 @@
1845
1991
  {
1846
1992
  "bearerAuth": []
1847
1993
  }
1848
- ]
1994
+ ],
1995
+ "requestBody": {
1996
+ "required": true,
1997
+ "content": {
1998
+ "application/json": {
1999
+ "schema": {
2000
+ "type": "object",
2001
+ "properties": {
2002
+ "groupId": {
2003
+ "type": "string"
2004
+ }
2005
+ },
2006
+ "required": ["groupId"]
2007
+ }
2008
+ }
2009
+ }
2010
+ }
1849
2011
  }
1850
2012
  },
1851
2013
  "/api/{session}/join-code": {
@@ -1861,20 +2023,6 @@
1861
2023
  "type": "string",
1862
2024
  "example": "NERDWHATS_AMERICA"
1863
2025
  }
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
2026
  }
1879
2027
  ],
1880
2028
  "responses": {
@@ -1892,7 +2040,30 @@
1892
2040
  {
1893
2041
  "bearerAuth": []
1894
2042
  }
1895
- ]
2043
+ ],
2044
+ "requestBody": {
2045
+ "required": true,
2046
+ "content": {
2047
+ "application/json": {
2048
+ "schema": {
2049
+ "type": "object",
2050
+ "properties": {
2051
+ "inviteCode": {
2052
+ "type": "string"
2053
+ }
2054
+ },
2055
+ "required": ["inviteCode"]
2056
+ },
2057
+ "examples": {
2058
+ "Default": {
2059
+ "value": {
2060
+ "inviteCode": "5644444"
2061
+ }
2062
+ }
2063
+ }
2064
+ }
2065
+ }
2066
+ }
1896
2067
  }
1897
2068
  },
1898
2069
  "/api/{session}/add-participant-group": {
@@ -1908,24 +2079,6 @@
1908
2079
  "type": "string",
1909
2080
  "example": "NERDWHATS_AMERICA"
1910
2081
  }
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
2082
  }
1930
2083
  ],
1931
2084
  "responses": {
@@ -1940,7 +2093,34 @@
1940
2093
  {
1941
2094
  "bearerAuth": []
1942
2095
  }
1943
- ]
2096
+ ],
2097
+ "requestBody": {
2098
+ "required": true,
2099
+ "content": {
2100
+ "application/json": {
2101
+ "schema": {
2102
+ "type": "object",
2103
+ "properties": {
2104
+ "groupId": {
2105
+ "type": "string"
2106
+ },
2107
+ "phone": {
2108
+ "type": "string"
2109
+ }
2110
+ },
2111
+ "required": ["groupId", "phone"]
2112
+ },
2113
+ "examples": {
2114
+ "Default": {
2115
+ "value": {
2116
+ "groupId": "<groupId>",
2117
+ "phone": "5521999999999"
2118
+ }
2119
+ }
2120
+ }
2121
+ }
2122
+ }
2123
+ }
1944
2124
  }
1945
2125
  },
1946
2126
  "/api/{session}/remove-participant-group": {
@@ -1956,24 +2136,6 @@
1956
2136
  "type": "string",
1957
2137
  "example": "NERDWHATS_AMERICA"
1958
2138
  }
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
2139
  }
1978
2140
  ],
1979
2141
  "responses": {
@@ -1988,7 +2150,34 @@
1988
2150
  {
1989
2151
  "bearerAuth": []
1990
2152
  }
1991
- ]
2153
+ ],
2154
+ "requestBody": {
2155
+ "required": true,
2156
+ "content": {
2157
+ "application/json": {
2158
+ "schema": {
2159
+ "type": "object",
2160
+ "properties": {
2161
+ "groupId": {
2162
+ "type": "string"
2163
+ },
2164
+ "phone": {
2165
+ "type": "string"
2166
+ }
2167
+ },
2168
+ "required": ["groupId", "phone"]
2169
+ },
2170
+ "examples": {
2171
+ "Default": {
2172
+ "value": {
2173
+ "groupId": "<groupId>",
2174
+ "phone": "5521999999999"
2175
+ }
2176
+ }
2177
+ }
2178
+ }
2179
+ }
2180
+ }
1992
2181
  }
1993
2182
  },
1994
2183
  "/api/{session}/promote-participant-group": {
@@ -2004,24 +2193,6 @@
2004
2193
  "type": "string",
2005
2194
  "example": "NERDWHATS_AMERICA"
2006
2195
  }
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
2196
  }
2026
2197
  ],
2027
2198
  "responses": {
@@ -2036,7 +2207,34 @@
2036
2207
  {
2037
2208
  "bearerAuth": []
2038
2209
  }
2039
- ]
2210
+ ],
2211
+ "requestBody": {
2212
+ "required": true,
2213
+ "content": {
2214
+ "application/json": {
2215
+ "schema": {
2216
+ "type": "object",
2217
+ "properties": {
2218
+ "groupId": {
2219
+ "type": "string"
2220
+ },
2221
+ "phone": {
2222
+ "type": "string"
2223
+ }
2224
+ },
2225
+ "required": ["groupId", "phone"]
2226
+ },
2227
+ "examples": {
2228
+ "Default": {
2229
+ "value": {
2230
+ "groupId": "<groupId>",
2231
+ "phone": "5521999999999"
2232
+ }
2233
+ }
2234
+ }
2235
+ }
2236
+ }
2237
+ }
2040
2238
  }
2041
2239
  },
2042
2240
  "/api/{session}/demote-participant-group": {
@@ -2052,24 +2250,6 @@
2052
2250
  "type": "string",
2053
2251
  "example": "NERDWHATS_AMERICA"
2054
2252
  }
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
2253
  }
2074
2254
  ],
2075
2255
  "responses": {
@@ -2084,7 +2264,34 @@
2084
2264
  {
2085
2265
  "bearerAuth": []
2086
2266
  }
2087
- ]
2267
+ ],
2268
+ "requestBody": {
2269
+ "required": true,
2270
+ "content": {
2271
+ "application/json": {
2272
+ "schema": {
2273
+ "type": "object",
2274
+ "properties": {
2275
+ "groupId": {
2276
+ "type": "string"
2277
+ },
2278
+ "phone": {
2279
+ "type": "string"
2280
+ }
2281
+ },
2282
+ "required": ["groupId", "phone"]
2283
+ },
2284
+ "examples": {
2285
+ "Default": {
2286
+ "value": {
2287
+ "groupId": "<groupId>",
2288
+ "phone": "5521999999999"
2289
+ }
2290
+ }
2291
+ }
2292
+ }
2293
+ }
2294
+ }
2088
2295
  }
2089
2296
  },
2090
2297
  "/api/{session}/group-info-from-invite-link": {
@@ -2100,20 +2307,6 @@
2100
2307
  "type": "string",
2101
2308
  "example": "NERDWHATS_AMERICA"
2102
2309
  }
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
2310
  }
2118
2311
  ],
2119
2312
  "responses": {
@@ -2128,7 +2321,22 @@
2128
2321
  {
2129
2322
  "bearerAuth": []
2130
2323
  }
2131
- ]
2324
+ ],
2325
+ "requestBody": {
2326
+ "required": true,
2327
+ "content": {
2328
+ "application/json": {
2329
+ "schema": {
2330
+ "type": "object",
2331
+ "properties": {
2332
+ "$invitecode": {
2333
+ "type": "string"
2334
+ }
2335
+ }
2336
+ }
2337
+ }
2338
+ }
2339
+ }
2132
2340
  }
2133
2341
  },
2134
2342
  "/api/{session}/group-description": {
@@ -2144,39 +2352,39 @@
2144
2352
  "type": "string",
2145
2353
  "example": "NERDWHATS_AMERICA"
2146
2354
  }
2355
+ }
2356
+ ],
2357
+ "responses": {
2358
+ "200": {
2359
+ "description": "OK"
2147
2360
  },
2361
+ "500": {
2362
+ "description": "Internal Server Error"
2363
+ }
2364
+ },
2365
+ "security": [
2148
2366
  {
2149
- "name": "obj",
2150
- "in": "body",
2151
- "schema": {
2152
- "type": "object",
2153
- "properties": {
2154
- "groupId": {
2155
- "type": "string",
2156
- "example": "<groupId>"
2157
- },
2158
- "description": {
2159
- "type": "string",
2160
- "example": "Desription for your group"
2367
+ "bearerAuth": []
2368
+ }
2369
+ ],
2370
+ "requestBody": {
2371
+ "required": true,
2372
+ "content": {
2373
+ "application/json": {
2374
+ "schema": {
2375
+ "type": "object",
2376
+ "properties": {
2377
+ "$groupId": {
2378
+ "type": "string"
2379
+ },
2380
+ "$description": {
2381
+ "type": "string"
2382
+ }
2161
2383
  }
2162
- },
2163
- "required": ["groupId", "description"]
2384
+ }
2164
2385
  }
2165
2386
  }
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
- ]
2387
+ }
2180
2388
  }
2181
2389
  },
2182
2390
  "/api/{session}/group-property": {
@@ -2192,28 +2400,6 @@
2192
2400
  "type": "string",
2193
2401
  "example": "NERDWHATS_AMERICA"
2194
2402
  }
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
2403
  }
2218
2404
  ],
2219
2405
  "responses": {
@@ -2228,7 +2414,28 @@
2228
2414
  {
2229
2415
  "bearerAuth": []
2230
2416
  }
2231
- ]
2417
+ ],
2418
+ "requestBody": {
2419
+ "required": true,
2420
+ "content": {
2421
+ "application/json": {
2422
+ "schema": {
2423
+ "type": "object",
2424
+ "properties": {
2425
+ "$groupId": {
2426
+ "type": "string"
2427
+ },
2428
+ "$property": {
2429
+ "type": "string"
2430
+ },
2431
+ "$value": {
2432
+ "type": "boolean"
2433
+ }
2434
+ }
2435
+ }
2436
+ }
2437
+ }
2438
+ }
2232
2439
  }
2233
2440
  },
2234
2441
  "/api/{session}/group-subject": {
@@ -2244,24 +2451,6 @@
2244
2451
  "type": "string",
2245
2452
  "example": "NERDWHATS_AMERICA"
2246
2453
  }
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
2454
  }
2266
2455
  ],
2267
2456
  "responses": {
@@ -2276,7 +2465,25 @@
2276
2465
  {
2277
2466
  "bearerAuth": []
2278
2467
  }
2279
- ]
2468
+ ],
2469
+ "requestBody": {
2470
+ "required": true,
2471
+ "content": {
2472
+ "application/json": {
2473
+ "schema": {
2474
+ "type": "object",
2475
+ "properties": {
2476
+ "$groupId": {
2477
+ "type": "string"
2478
+ },
2479
+ "$title": {
2480
+ "type": "string"
2481
+ }
2482
+ }
2483
+ }
2484
+ }
2485
+ }
2486
+ }
2280
2487
  }
2281
2488
  },
2282
2489
  "/api/{session}/messages-admins-only": {
@@ -2292,24 +2499,6 @@
2292
2499
  "type": "string",
2293
2500
  "example": "NERDWHATS_AMERICA"
2294
2501
  }
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
2502
  }
2314
2503
  ],
2315
2504
  "responses": {
@@ -2324,7 +2513,25 @@
2324
2513
  {
2325
2514
  "bearerAuth": []
2326
2515
  }
2327
- ]
2516
+ ],
2517
+ "requestBody": {
2518
+ "required": true,
2519
+ "content": {
2520
+ "application/json": {
2521
+ "schema": {
2522
+ "type": "object",
2523
+ "properties": {
2524
+ "$groupId": {
2525
+ "type": "string"
2526
+ },
2527
+ "$value": {
2528
+ "type": "boolean"
2529
+ }
2530
+ }
2531
+ }
2532
+ }
2533
+ }
2534
+ }
2328
2535
  }
2329
2536
  },
2330
2537
  "/api/{session}/group-pic": {
@@ -2340,24 +2547,6 @@
2340
2547
  "type": "string",
2341
2548
  "example": "NERDWHATS_AMERICA"
2342
2549
  }
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
2550
  }
2362
2551
  ],
2363
2552
  "responses": {
@@ -2375,7 +2564,25 @@
2375
2564
  {
2376
2565
  "bearerAuth": []
2377
2566
  }
2378
- ]
2567
+ ],
2568
+ "requestBody": {
2569
+ "required": true,
2570
+ "content": {
2571
+ "application/json": {
2572
+ "schema": {
2573
+ "type": "object",
2574
+ "properties": {
2575
+ "$groupId": {
2576
+ "type": "string"
2577
+ },
2578
+ "$path": {
2579
+ "type": "string"
2580
+ }
2581
+ }
2582
+ }
2583
+ }
2584
+ }
2585
+ }
2379
2586
  }
2380
2587
  },
2381
2588
  "/api/{session}/change-privacy-group": {
@@ -2391,24 +2598,6 @@
2391
2598
  "type": "string",
2392
2599
  "example": "NERDWHATS_AMERICA"
2393
2600
  }
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
2601
  }
2413
2602
  ],
2414
2603
  "responses": {
@@ -2423,7 +2612,25 @@
2423
2612
  {
2424
2613
  "bearerAuth": []
2425
2614
  }
2426
- ]
2615
+ ],
2616
+ "requestBody": {
2617
+ "required": true,
2618
+ "content": {
2619
+ "application/json": {
2620
+ "schema": {
2621
+ "type": "object",
2622
+ "properties": {
2623
+ "$groupId": {
2624
+ "type": "string"
2625
+ },
2626
+ "$status": {
2627
+ "type": "boolean"
2628
+ }
2629
+ }
2630
+ }
2631
+ }
2632
+ }
2633
+ }
2427
2634
  }
2428
2635
  },
2429
2636
  "/api/{session}/all-chats": {
@@ -5125,27 +5332,6 @@
5125
5332
  "type": "string",
5126
5333
  "example": "NERDWHATS_AMERICA"
5127
5334
  }
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
5335
  }
5150
5336
  ],
5151
5337
  "responses": {
@@ -5164,7 +5350,32 @@
5164
5350
  "bearerAuth": []
5165
5351
  }
5166
5352
  ],
5167
- "requestBody": {}
5353
+ "requestBody": {
5354
+ "required": true,
5355
+ "content": {
5356
+ "application/json": {
5357
+ "schema": {
5358
+ "type": "object",
5359
+ "properties": {
5360
+ "phones": {
5361
+ "type": "array"
5362
+ },
5363
+ "message": {
5364
+ "type": "string"
5365
+ }
5366
+ }
5367
+ },
5368
+ "examples": {
5369
+ "Default": {
5370
+ "value": {
5371
+ "phones": ["<array_phone_id"],
5372
+ "message": "Message"
5373
+ }
5374
+ }
5375
+ }
5376
+ }
5377
+ }
5378
+ }
5168
5379
  }
5169
5380
  },
5170
5381
  "/api/{session}/set-product-visibility": {
@@ -5336,24 +5547,53 @@
5336
5547
  }
5337
5548
  }
5338
5549
  }
5339
- },
5340
- "required": ["text", "options"]
5550
+ }
5551
+ }
5552
+ }
5553
+ ],
5554
+ "responses": {
5555
+ "400": {
5556
+ "description": "Bad Request"
5557
+ },
5558
+ "401": {
5559
+ "description": "Unauthorized"
5560
+ }
5561
+ },
5562
+ "security": [
5563
+ {
5564
+ "bearerAuth": []
5565
+ }
5566
+ ],
5567
+ "requestBody": {
5568
+ "required": true,
5569
+ "content": {
5570
+ "application/json": {
5571
+ "schema": {
5572
+ "type": "object",
5573
+ "properties": {
5574
+ "text": {
5575
+ "type": "string"
5576
+ },
5577
+ "options": {
5578
+ "type": "object"
5579
+ }
5580
+ },
5581
+ "required": ["text"]
5582
+ },
5583
+ "examples": {
5584
+ "Default": {
5585
+ "value": {
5586
+ "text": "My new storie",
5587
+ "options": {
5588
+ "backgroundColor": "#0275d8",
5589
+ "font": 2
5590
+ }
5591
+ }
5592
+ }
5593
+ }
5341
5594
  }
5342
5595
  }
5343
- ],
5344
- "responses": {
5345
- "400": {
5346
- "description": "Bad Request"
5347
- },
5348
- "401": {
5349
- "description": "Unauthorized"
5350
- }
5351
- },
5352
- "security": [
5353
- {
5354
- "bearerAuth": []
5355
- }
5356
- ]
5596
+ }
5357
5597
  }
5358
5598
  },
5359
5599
  "/api/{session}/send-image-storie": {
@@ -5369,20 +5609,6 @@
5369
5609
  "type": "string",
5370
5610
  "example": "NERDWHATS_AMERICA"
5371
5611
  }
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
5612
  }
5387
5613
  ],
5388
5614
  "responses": {
@@ -5397,7 +5623,30 @@
5397
5623
  {
5398
5624
  "bearerAuth": []
5399
5625
  }
5400
- ]
5626
+ ],
5627
+ "requestBody": {
5628
+ "required": true,
5629
+ "content": {
5630
+ "application/json": {
5631
+ "schema": {
5632
+ "type": "object",
5633
+ "properties": {
5634
+ "path": {
5635
+ "type": "string"
5636
+ }
5637
+ },
5638
+ "required": ["path"]
5639
+ },
5640
+ "examples": {
5641
+ "Default": {
5642
+ "value": {
5643
+ "path": "Path of your image"
5644
+ }
5645
+ }
5646
+ }
5647
+ }
5648
+ }
5649
+ }
5401
5650
  }
5402
5651
  },
5403
5652
  "/api/{session}/send-video-storie": {
@@ -5413,20 +5662,6 @@
5413
5662
  "type": "string",
5414
5663
  "example": "NERDWHATS_AMERICA"
5415
5664
  }
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
5665
  }
5431
5666
  ],
5432
5667
  "responses": {
@@ -5441,7 +5676,30 @@
5441
5676
  {
5442
5677
  "bearerAuth": []
5443
5678
  }
5444
- ]
5679
+ ],
5680
+ "requestBody": {
5681
+ "required": true,
5682
+ "content": {
5683
+ "application/json": {
5684
+ "schema": {
5685
+ "type": "object",
5686
+ "properties": {
5687
+ "path": {
5688
+ "type": "string"
5689
+ }
5690
+ },
5691
+ "required": ["path"]
5692
+ },
5693
+ "examples": {
5694
+ "Default": {
5695
+ "value": {
5696
+ "path": "Path of your video"
5697
+ }
5698
+ }
5699
+ }
5700
+ }
5701
+ }
5702
+ }
5445
5703
  }
5446
5704
  },
5447
5705
  "/api/{session}/add-new-label": {
@@ -5457,29 +5715,6 @@
5457
5715
  "type": "string",
5458
5716
  "example": "NERDWHATS_AMERICA"
5459
5717
  }
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
5718
  }
5484
5719
  ],
5485
5720
  "responses": {
@@ -5497,7 +5732,41 @@
5497
5732
  {
5498
5733
  "bearerAuth": []
5499
5734
  }
5500
- ]
5735
+ ],
5736
+ "requestBody": {
5737
+ "required": true,
5738
+ "content": {
5739
+ "application/json": {
5740
+ "schema": {
5741
+ "type": "object",
5742
+ "properties": {
5743
+ "$name": {
5744
+ "type": "string"
5745
+ },
5746
+ "$options": {
5747
+ "type": "object",
5748
+ "properties": {
5749
+ "labelColor": {
5750
+ "type": "number"
5751
+ }
5752
+ }
5753
+ }
5754
+ },
5755
+ "required": ["name", "options"]
5756
+ },
5757
+ "examples": {
5758
+ "Default": {
5759
+ "value": {
5760
+ "name": "Name of your label",
5761
+ "options": {
5762
+ "labelColor": 4292849392
5763
+ }
5764
+ }
5765
+ }
5766
+ }
5767
+ }
5768
+ }
5769
+ }
5501
5770
  }
5502
5771
  },
5503
5772
  "/api/{session}/add-or-remove-label": {
@@ -5513,39 +5782,6 @@
5513
5782
  "type": "string",
5514
5783
  "example": "NERDWHATS_AMERICA"
5515
5784
  }
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
5785
  }
5550
5786
  ],
5551
5787
  "responses": {
@@ -5563,7 +5799,57 @@
5563
5799
  {
5564
5800
  "bearerAuth": []
5565
5801
  }
5566
- ]
5802
+ ],
5803
+ "requestBody": {
5804
+ "required": true,
5805
+ "content": {
5806
+ "application/json": {
5807
+ "schema": {
5808
+ "type": "object",
5809
+ "properties": {
5810
+ "chatIds": {
5811
+ "type": "array",
5812
+ "items": {
5813
+ "type": "string"
5814
+ }
5815
+ },
5816
+ "options": {
5817
+ "type": "array",
5818
+ "items": {
5819
+ "type": "object",
5820
+ "properties": {
5821
+ "labelId": {
5822
+ "type": "string"
5823
+ },
5824
+ "type": {
5825
+ "type": "string"
5826
+ }
5827
+ }
5828
+ }
5829
+ }
5830
+ },
5831
+ "required": ["chatIds"]
5832
+ },
5833
+ "examples": {
5834
+ "Default": {
5835
+ "value": {
5836
+ "chatIds": ["5521999999999"],
5837
+ "options": [
5838
+ {
5839
+ "labelId": "76",
5840
+ "type": "add"
5841
+ },
5842
+ {
5843
+ "labelId": "75",
5844
+ "type": "remove"
5845
+ }
5846
+ ]
5847
+ }
5848
+ }
5849
+ }
5850
+ }
5851
+ }
5852
+ }
5567
5853
  }
5568
5854
  },
5569
5855
  "/api/{session}/get-all-labels": {
@@ -6420,20 +6706,6 @@
6420
6706
  "type": "string",
6421
6707
  "example": "NERDWHATS_AMERICA"
6422
6708
  }
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
6709
  }
6438
6710
  ],
6439
6711
  "responses": {},
@@ -6441,7 +6713,30 @@
6441
6713
  {
6442
6714
  "bearerAuth": []
6443
6715
  }
6444
- ]
6716
+ ],
6717
+ "requestBody": {
6718
+ "required": true,
6719
+ "content": {
6720
+ "application/json": {
6721
+ "schema": {
6722
+ "type": "object",
6723
+ "properties": {
6724
+ "messageId": {
6725
+ "type": "string"
6726
+ }
6727
+ },
6728
+ "required": ["messageId"]
6729
+ },
6730
+ "examples": {
6731
+ "Default": {
6732
+ "value": {
6733
+ "messageId": "<message_id>"
6734
+ }
6735
+ }
6736
+ }
6737
+ }
6738
+ }
6739
+ }
6445
6740
  }
6446
6741
  },
6447
6742
  "/api/{secretkey}/backup-sessions": {
@@ -6465,10 +6760,7 @@
6465
6760
  "description": "A ZIP file contaings your backup. Please, open this link in your browser",
6466
6761
  "content": {
6467
6762
  "application/zip": {
6468
- "schema": {
6469
- "type": "string",
6470
- "format": "binary"
6471
- }
6763
+ "schema": {}
6472
6764
  }
6473
6765
  }
6474
6766
  },
@@ -6569,24 +6861,6 @@
6569
6861
  "type": "string",
6570
6862
  "example": "NERDWHATS_AMERICA"
6571
6863
  }
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
6864
  }
6591
6865
  ],
6592
6866
  "responses": {
@@ -6601,7 +6875,34 @@
6601
6875
  {
6602
6876
  "bearerAuth": []
6603
6877
  }
6604
- ]
6878
+ ],
6879
+ "requestBody": {
6880
+ "required": true,
6881
+ "content": {
6882
+ "application/json": {
6883
+ "schema": {
6884
+ "type": "object",
6885
+ "properties": {
6886
+ "type": {
6887
+ "type": "string"
6888
+ },
6889
+ "value": {
6890
+ "type": "any"
6891
+ }
6892
+ },
6893
+ "required": ["type", "value"]
6894
+ },
6895
+ "examples": {
6896
+ "Default": {
6897
+ "value": {
6898
+ "type": "maxFileSize",
6899
+ "value": 104857600
6900
+ }
6901
+ }
6902
+ }
6903
+ }
6904
+ }
6905
+ }
6605
6906
  }
6606
6907
  },
6607
6908
  "/api/{session}/create-community": {