@wppconnect/server 1.2.0 → 1.3.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.
Files changed (45) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/config/upload.js.map +1 -1
  3. package/dist/config.json +1 -0
  4. package/dist/controller/deviceController.js.map +1 -1
  5. package/dist/controller/encryptController.js.map +1 -1
  6. package/dist/controller/groupController.js.map +1 -1
  7. package/dist/controller/messageController.js +7 -12
  8. package/dist/controller/messageController.js.map +1 -1
  9. package/dist/controller/orderController.js +15 -20
  10. package/dist/controller/orderController.js.map +1 -1
  11. package/dist/controller/sessionController.js.map +1 -1
  12. package/dist/index.js.map +1 -1
  13. package/dist/mapper/index.js.map +1 -1
  14. package/dist/mapper/tagone-chat.js.map +1 -1
  15. package/dist/mapper/tagone-device.js.map +1 -1
  16. package/dist/mapper/tagone-message-document.js.map +1 -1
  17. package/dist/mapper/tagone-message-image.js.map +1 -1
  18. package/dist/mapper/tagone-message-location.js.map +1 -1
  19. package/dist/mapper/tagone-message-video.js.map +1 -1
  20. package/dist/mapper/tagone-message.js.map +1 -1
  21. package/dist/mapper/tagone-onack.js.map +1 -1
  22. package/dist/mapper/tagone-return.js.map +1 -1
  23. package/dist/middleware/auth.js.map +1 -1
  24. package/dist/middleware/healthCheck.js.map +1 -1
  25. package/dist/middleware/statusConnection.js.map +1 -1
  26. package/dist/routes/index.js +1 -2
  27. package/dist/routes/index.js.map +1 -1
  28. package/dist/server.js.map +1 -1
  29. package/dist/swagger.json +280 -734
  30. package/dist/util/chatWootClient.js.map +1 -1
  31. package/dist/util/createSessionUtil.js.map +1 -1
  32. package/dist/util/db/mongodb/db.js.map +1 -1
  33. package/dist/util/db/redis/db.js.map +1 -1
  34. package/dist/util/functions.js +2 -3
  35. package/dist/util/functions.js.map +1 -1
  36. package/dist/util/getAllTokens.js.map +1 -1
  37. package/dist/util/logger.js.map +1 -1
  38. package/dist/util/sessionUtil.js.map +1 -1
  39. package/dist/util/tokenStore/factory.js.map +1 -1
  40. package/dist/util/tokenStore/fileTokenStory.js.map +1 -1
  41. package/dist/util/tokenStore/firebaseTokenStory.js.map +1 -1
  42. package/dist/util/tokenStore/model/token.js.map +1 -1
  43. package/dist/util/tokenStore/mongodbTokenStory.js.map +1 -1
  44. package/dist/util/tokenStore/redisTokenStory.js.map +1 -1
  45. package/package.json +11 -11
package/dist/swagger.json CHANGED
@@ -19,9 +19,7 @@
19
19
  "paths": {
20
20
  "/{secretkey}/generate-token": {
21
21
  "post": {
22
- "tags": [
23
- "Auth"
24
- ],
22
+ "tags": ["Auth"],
25
23
  "summary": "generate-token (Gera token Bearer para sessão)",
26
24
  "operationId": "generate-token(GeratokenBearerparasessão)",
27
25
  "parameters": [
@@ -61,9 +59,7 @@
61
59
  },
62
60
  "/start-session": {
63
61
  "post": {
64
- "tags": [
65
- "Auth"
66
- ],
62
+ "tags": ["Auth"],
67
63
  "summary": "start-session (Retorna QRCode de login)",
68
64
  "description": "Inicializa a sessão",
69
65
  "operationId": "start-session(RetornaQRCodedelogin)",
@@ -94,9 +90,7 @@
94
90
  },
95
91
  "/status-session": {
96
92
  "get": {
97
- "tags": [
98
- "Auth"
99
- ],
93
+ "tags": ["Auth"],
100
94
  "summary": "status-session (Atualiza QRCode de login)",
101
95
  "description": "Retorna o status da session",
102
96
  "operationId": "status-session(AtualizaQRCodedelogin)",
@@ -113,9 +107,7 @@
113
107
  },
114
108
  "/qrcode-session": {
115
109
  "get": {
116
- "tags": [
117
- "Auth"
118
- ],
110
+ "tags": ["Auth"],
119
111
  "summary": "qrcode-session (Pegar qrCode de autenticação via stream)",
120
112
  "description": "Retorna o status da session",
121
113
  "operationId": "qrcode-session(PegarqrCodedeautenticaçãoviastream)",
@@ -132,9 +124,7 @@
132
124
  },
133
125
  "/check-connection-session": {
134
126
  "get": {
135
- "tags": [
136
- "Auth"
137
- ],
127
+ "tags": ["Auth"],
138
128
  "summary": "check-connection-session (status da conexão)",
139
129
  "description": "Verifica se a sessáo esta conectada",
140
130
  "operationId": "check-connection-session(statusdaconexão)",
@@ -151,9 +141,7 @@
151
141
  },
152
142
  "/close-session": {
153
143
  "post": {
154
- "tags": [
155
- "Auth"
156
- ],
144
+ "tags": ["Auth"],
157
145
  "summary": "close-session",
158
146
  "description": "finaliza a sessão",
159
147
  "operationId": "close-session",
@@ -170,9 +158,7 @@
170
158
  },
171
159
  "/all-chats": {
172
160
  "get": {
173
- "tags": [
174
- "Chat"
175
- ],
161
+ "tags": ["Chat"],
176
162
  "summary": "All Chats",
177
163
  "description": "Retrieves all chats",
178
164
  "operationId": "AllChats",
@@ -349,9 +335,7 @@
349
335
  },
350
336
  "/chat-by-id": {
351
337
  "get": {
352
- "tags": [
353
- "Chat"
354
- ],
338
+ "tags": ["Chat"],
355
339
  "summary": "Chat By Id",
356
340
  "description": "Retrieves chat object of given contact id",
357
341
  "operationId": "ChatById",
@@ -1305,9 +1289,7 @@
1305
1289
  },
1306
1290
  "/chat-is-online": {
1307
1291
  "get": {
1308
- "tags": [
1309
- "Chat"
1310
- ],
1292
+ "tags": ["Chat"],
1311
1293
  "summary": "Chat Is OnLine",
1312
1294
  "description": "Checks if a CHAT contact is online.",
1313
1295
  "operationId": "ChatIsOnLine",
@@ -1417,9 +1399,7 @@
1417
1399
  },
1418
1400
  "/all-chats-with-messages": {
1419
1401
  "get": {
1420
- "tags": [
1421
- "Chat"
1422
- ],
1402
+ "tags": ["Chat"],
1423
1403
  "summary": "All Chats Whit Messages",
1424
1404
  "description": "Retrieves all chats with messages",
1425
1405
  "operationId": "AllChatsWhitMessages",
@@ -1626,9 +1606,7 @@
1626
1606
  },
1627
1607
  "/all-messages-in-chat": {
1628
1608
  "get": {
1629
- "tags": [
1630
- "Chat"
1631
- ],
1609
+ "tags": ["Chat"],
1632
1610
  "summary": "All Messages in Chat",
1633
1611
  "description": "Retrieves all messages already loaded in a chat For loading every message use load Messages In Chat",
1634
1612
  "operationId": "AllMessagesinChat",
@@ -2264,9 +2242,7 @@
2264
2242
  },
2265
2243
  "/all-new-messages": {
2266
2244
  "get": {
2267
- "tags": [
2268
- "Chat"
2269
- ],
2245
+ "tags": ["Chat"],
2270
2246
  "summary": "All New Messages",
2271
2247
  "description": "Retrieves all new messages (where isNewMsg is true)\n\n*deprecated* Use getAllUnreadMessages",
2272
2248
  "operationId": "AllNewMessages",
@@ -2665,9 +2641,7 @@
2665
2641
  },
2666
2642
  "/unread-messages": {
2667
2643
  "get": {
2668
- "tags": [
2669
- "Chat"
2670
- ],
2644
+ "tags": ["Chat"],
2671
2645
  "summary": "Unread Messages",
2672
2646
  "description": "Retorna o status da session",
2673
2647
  "operationId": "UnreadMessages",
@@ -2992,9 +2966,7 @@
2992
2966
  },
2993
2967
  "/all-unread-messages": {
2994
2968
  "get": {
2995
- "tags": [
2996
- "Chat"
2997
- ],
2969
+ "tags": ["Chat"],
2998
2970
  "summary": "All Unread Messages",
2999
2971
  "description": "Retorna o status da session",
3000
2972
  "operationId": "AllUnreadMessages",
@@ -3319,9 +3291,7 @@
3319
3291
  },
3320
3292
  "/last-seen": {
3321
3293
  "get": {
3322
- "tags": [
3323
- "Chat"
3324
- ],
3294
+ "tags": ["Chat"],
3325
3295
  "summary": "Last Seen",
3326
3296
  "description": "Checks if a CHAT contact is online.",
3327
3297
  "operationId": "LastSeen",
@@ -3431,9 +3401,7 @@
3431
3401
  },
3432
3402
  "/list-mutes": {
3433
3403
  "get": {
3434
- "tags": [
3435
- "Chat"
3436
- ],
3404
+ "tags": ["Chat"],
3437
3405
  "summary": "List Mutes",
3438
3406
  "description": "Returns a list of mute and non-mute users\n\nTypes: all, toMute,noMute",
3439
3407
  "operationId": "ListMutes",
@@ -3539,9 +3507,7 @@
3539
3507
  },
3540
3508
  "/archive-chat": {
3541
3509
  "post": {
3542
- "tags": [
3543
- "Chat"
3544
- ],
3510
+ "tags": ["Chat"],
3545
3511
  "summary": "Archive Chat",
3546
3512
  "description": "Archive and unarchive chat messages with true or false",
3547
3513
  "operationId": "ArchiveChat",
@@ -3654,9 +3620,7 @@
3654
3620
  },
3655
3621
  "/clear-chat": {
3656
3622
  "post": {
3657
- "tags": [
3658
- "Chat"
3659
- ],
3623
+ "tags": ["Chat"],
3660
3624
  "summary": "Clear Chat",
3661
3625
  "description": "Deletes all messages of given chat",
3662
3626
  "operationId": "ClearChat",
@@ -3769,9 +3733,7 @@
3769
3733
  },
3770
3734
  "/delete-chat": {
3771
3735
  "post": {
3772
- "tags": [
3773
- "Chat"
3774
- ],
3736
+ "tags": ["Chat"],
3775
3737
  "summary": "Delete Chat",
3776
3738
  "description": "Deletes the given chat",
3777
3739
  "operationId": "DeleteChat",
@@ -3883,9 +3845,7 @@
3883
3845
  },
3884
3846
  "/delete-message": {
3885
3847
  "post": {
3886
- "tags": [
3887
- "Chat"
3888
- ],
3848
+ "tags": ["Chat"],
3889
3849
  "summary": "Delete Message",
3890
3850
  "description": "Deletes message of given message id",
3891
3851
  "operationId": "DeleteMessage",
@@ -3998,9 +3958,7 @@
3998
3958
  },
3999
3959
  "/mark-unseen": {
4000
3960
  "post": {
4001
- "tags": [
4002
- "Chat"
4003
- ],
3961
+ "tags": ["Chat"],
4004
3962
  "summary": "Mark Unseen",
4005
3963
  "description": "puts the chat as unread",
4006
3964
  "operationId": "MarkUnseen",
@@ -4112,9 +4070,7 @@
4112
4070
  },
4113
4071
  "/pin-chat": {
4114
4072
  "post": {
4115
- "tags": [
4116
- "Chat"
4117
- ],
4073
+ "tags": ["Chat"],
4118
4074
  "summary": "Pin Chat",
4119
4075
  "description": "puts the chat as unread",
4120
4076
  "operationId": "PinChat",
@@ -4227,9 +4183,7 @@
4227
4183
  },
4228
4184
  "/send-mute": {
4229
4185
  "post": {
4230
- "tags": [
4231
- "Chat"
4232
- ],
4186
+ "tags": ["Chat"],
4233
4187
  "summary": "Send Mute",
4234
4188
  "description": "Mute a chat.\n\ntype: hours, minutes, year",
4235
4189
  "operationId": "SendMute",
@@ -4343,10 +4297,7 @@
4343
4297
  "_serialized": "556592424425@c.us"
4344
4298
  },
4345
4299
  "connected": true,
4346
- "protoVersion": [
4347
- 0,
4348
- 17
4349
- ],
4300
+ "protoVersion": [0, 17],
4350
4301
  "clientToken": "hdTL/zIDCji6tgK9HmpNZy6k3iH0ddaQJCHd2SdtFL8=",
4351
4302
  "serverToken": "1@5TO8Gf1Qi73m23rF4UtAVb3cYCNsefP2jN2PBgQtIJ4Gukh02M0h2DD/o5kdOUo/flAZJz/6uC9cqA==",
4352
4303
  "isResponse": "true",
@@ -4404,9 +4355,7 @@
4404
4355
  },
4405
4356
  "/chat-state": {
4406
4357
  "post": {
4407
- "tags": [
4408
- "Chat"
4409
- ],
4358
+ "tags": ["Chat"],
4410
4359
  "summary": "Chat State",
4411
4360
  "description": "Sets the chat state\n\nchatstate: \n1 = paused\n2 = recording\n3 = typing",
4412
4361
  "operationId": "ChatState",
@@ -4437,9 +4386,7 @@
4437
4386
  },
4438
4387
  "/send-seen": {
4439
4388
  "post": {
4440
- "tags": [
4441
- "Chat"
4442
- ],
4389
+ "tags": ["Chat"],
4443
4390
  "summary": "Send Seen",
4444
4391
  "description": "Mute a chat.\n\ntype: hours, minutes, year",
4445
4392
  "operationId": "SendSeen",
@@ -4551,9 +4498,7 @@
4551
4498
  },
4552
4499
  "/temporary-messages": {
4553
4500
  "post": {
4554
- "tags": [
4555
- "Chat"
4556
- ],
4501
+ "tags": ["Chat"],
4557
4502
  "summary": "Temporary Messages",
4558
4503
  "description": "Enable or disable temporary messages with true or false",
4559
4504
  "operationId": "TemporaryMessages",
@@ -4666,9 +4611,7 @@
4666
4611
  },
4667
4612
  "/typing": {
4668
4613
  "post": {
4669
- "tags": [
4670
- "Chat"
4671
- ],
4614
+ "tags": ["Chat"],
4672
4615
  "summary": "Set Typing",
4673
4616
  "description": "Start and Stop typing, passe valeu true os false",
4674
4617
  "operationId": "SetTyping",
@@ -4782,9 +4725,7 @@
4782
4725
  },
4783
4726
  "/send-file-base64": {
4784
4727
  "post": {
4785
- "tags": [
4786
- "Send Message"
4787
- ],
4728
+ "tags": ["Send Message"],
4788
4729
  "summary": "Send File",
4789
4730
  "description": "Envia um arquivo para um número de telefone.",
4790
4731
  "operationId": "SendFile",
@@ -4827,9 +4768,7 @@
4827
4768
  },
4828
4769
  "/send-reply": {
4829
4770
  "post": {
4830
- "tags": [
4831
- "Send Message"
4832
- ],
4771
+ "tags": ["Send Message"],
4833
4772
  "summary": "Send Reply",
4834
4773
  "description": "Envia um arquivo para um número de telefone.",
4835
4774
  "operationId": "SendReply",
@@ -4873,9 +4812,7 @@
4873
4812
  },
4874
4813
  "/send-message": {
4875
4814
  "post": {
4876
- "tags": [
4877
- "Send Message"
4878
- ],
4815
+ "tags": ["Send Message"],
4879
4816
  "summary": "Send Message",
4880
4817
  "description": "Envia uma mensagem de texto para um número de telefone. ",
4881
4818
  "operationId": "SendMessage",
@@ -4911,11 +4848,44 @@
4911
4848
  "deprecated": false
4912
4849
  }
4913
4850
  },
4914
- "/forwardMessages": {
4851
+ "/send-buttons": {
4915
4852
  "post": {
4916
4853
  "tags": [
4917
4854
  "Send Message"
4918
4855
  ],
4856
+ "summary": "Send Message Button",
4857
+ "description": "Envia uma mensagem de botões para um número de telefone. ",
4858
+ "operationId": "SendMessageWithButton",
4859
+ "parameters": [],
4860
+ "requestBody": {
4861
+ "description": "",
4862
+ "content": {
4863
+ "application/json": {
4864
+ "schema": {
4865
+ "$ref": "#/components/schemas/SendMessageRequestWithButton"
4866
+ }
4867
+ }
4868
+ },
4869
+ "required": true
4870
+ },
4871
+ "responses": {
4872
+ "201": {
4873
+ "description": "Created",
4874
+ "headers": {},
4875
+ "content": {}
4876
+ },
4877
+ "400": {
4878
+ "description": "Bad Request",
4879
+ "headers": {},
4880
+ "content": {}
4881
+ }
4882
+ },
4883
+ "deprecated": false
4884
+ }
4885
+ },
4886
+ "/forwardMessages": {
4887
+ "post": {
4888
+ "tags": ["Send Message"],
4919
4889
  "summary": "Forward Messages (Encaminhar mensagem)",
4920
4890
  "description": "Envia uma mensagem de texto para um número de telefone. ",
4921
4891
  "operationId": "ForwardMessages(Encaminharmensagem)",
@@ -4952,9 +4922,7 @@
4952
4922
  },
4953
4923
  "/contact-vcard": {
4954
4924
  "post": {
4955
- "tags": [
4956
- "Send Message"
4957
- ],
4925
+ "tags": ["Send Message"],
4958
4926
  "summary": "Send Contact Vcard",
4959
4927
  "description": "Sends contact card to iven chat id",
4960
4928
  "operationId": "SendContactVcard",
@@ -5069,10 +5037,7 @@
5069
5037
  "_serialized": "556592424425@c.us"
5070
5038
  },
5071
5039
  "connected": true,
5072
- "protoVersion": [
5073
- 0,
5074
- 17
5075
- ],
5040
+ "protoVersion": [0, 17],
5076
5041
  "clientToken": "aeTnIxydmYIpKUsxG5q+iQRLMRsYMnXhpV1wqsdjQOw=",
5077
5042
  "serverToken": "1@3jaCR5jbMKpeSBSt9HYs1OfpnCwnomoZpcnPMOkQOp8ibUglFUjN91I5w1bNHO9XafxYEXMqw6VmDw==",
5078
5043
  "isResponse": "true",
@@ -5129,9 +5094,7 @@
5129
5094
  },
5130
5095
  "/send-link-preview": {
5131
5096
  "post": {
5132
- "tags": [
5133
- "Send Message"
5134
- ],
5097
+ "tags": ["Send Message"],
5135
5098
  "summary": "Send Link Preview",
5136
5099
  "description": "Automatically sends a link with the auto generated link preview. You can also add a custom message to be added.",
5137
5100
  "operationId": "SendLinkPreview",
@@ -5245,9 +5208,7 @@
5245
5208
  },
5246
5209
  "/send-location": {
5247
5210
  "post": {
5248
- "tags": [
5249
- "Send Message"
5250
- ],
5211
+ "tags": ["Send Message"],
5251
5212
  "summary": "Send Location",
5252
5213
  "description": "send location",
5253
5214
  "operationId": "SendLocation",
@@ -5362,9 +5323,7 @@
5362
5323
  },
5363
5324
  "/send-mentioned": {
5364
5325
  "post": {
5365
- "tags": [
5366
- "Send Message"
5367
- ],
5326
+ "tags": ["Send Message"],
5368
5327
  "summary": "Send Mentioned",
5369
5328
  "description": "Sends text with tags",
5370
5329
  "operationId": "SendMentioned",
@@ -5379,9 +5338,7 @@
5379
5338
  "example": {
5380
5339
  "phone": "556593077171-1620997998",
5381
5340
  "message": "ola como isso funciona @556593077171@c.us",
5382
- "mentioned": [
5383
- "@556593077171@c.us"
5384
- ],
5341
+ "mentioned": ["@556593077171@c.us"],
5385
5342
  "isGruop": true
5386
5343
  }
5387
5344
  }
@@ -5481,9 +5438,7 @@
5481
5438
  },
5482
5439
  "/change-username": {
5483
5440
  "post": {
5484
- "tags": [
5485
- "Profile"
5486
- ],
5441
+ "tags": ["Profile"],
5487
5442
  "summary": "Change Username",
5488
5443
  "description": "Sets current user profile name",
5489
5444
  "operationId": "ChangeUsername",
@@ -5524,9 +5479,7 @@
5524
5479
  },
5525
5480
  "/change-profile-image": {
5526
5481
  "post": {
5527
- "tags": [
5528
- "Profile"
5529
- ],
5482
+ "tags": ["Profile"],
5530
5483
  "summary": "Change Profile Image",
5531
5484
  "description": "Altera o nome de usuário do perfil do WhatsApp.",
5532
5485
  "operationId": "ChangeProfileImage",
@@ -5638,9 +5591,7 @@
5638
5591
  },
5639
5592
  "/profile-status": {
5640
5593
  "post": {
5641
- "tags": [
5642
- "Profile"
5643
- ],
5594
+ "tags": ["Profile"],
5644
5595
  "summary": "Change Profile Status",
5645
5596
  "description": "Sets current user profile status",
5646
5597
  "operationId": "ChangeProfileStatus",
@@ -5751,9 +5702,7 @@
5751
5702
  },
5752
5703
  "/check-number-status": {
5753
5704
  "get": {
5754
- "tags": [
5755
- "Contact"
5756
- ],
5705
+ "tags": ["Contact"],
5757
5706
  "summary": "Check Number Status",
5758
5707
  "description": "Checks if a number is a valid WA number",
5759
5708
  "operationId": "CheckNumberStatus",
@@ -5873,9 +5822,7 @@
5873
5822
  },
5874
5823
  "/all-contacts": {
5875
5824
  "get": {
5876
- "tags": [
5877
- "Contact"
5878
- ],
5825
+ "tags": ["Contact"],
5879
5826
  "summary": "Get All Contacts",
5880
5827
  "description": "Retrieves all contacts",
5881
5828
  "operationId": "GetAllContacts",
@@ -6007,9 +5954,7 @@
6007
5954
  },
6008
5955
  "/contact/556593077171": {
6009
5956
  "get": {
6010
- "tags": [
6011
- "Contact"
6012
- ],
5957
+ "tags": ["Contact"],
6013
5958
  "summary": "Get Contact",
6014
5959
  "description": "Retrieves contact detail object of given contact id",
6015
5960
  "operationId": "GetContact",
@@ -6152,9 +6097,7 @@
6152
6097
  },
6153
6098
  "/profile/556593077171": {
6154
6099
  "get": {
6155
- "tags": [
6156
- "Contact"
6157
- ],
6100
+ "tags": ["Contact"],
6158
6101
  "summary": "Get Number Profile",
6159
6102
  "description": "Checks if a number is a valid whatsapp number",
6160
6103
  "operationId": "GetNumberProfile",
@@ -6274,9 +6217,7 @@
6274
6217
  },
6275
6218
  "/profile-pic/556593077171": {
6276
6219
  "get": {
6277
- "tags": [
6278
- "Contact"
6279
- ],
6220
+ "tags": ["Contact"],
6280
6221
  "summary": "Get Profile Picture",
6281
6222
  "description": "Retrieves chat picture",
6282
6223
  "operationId": "GetProfilePicture",
@@ -6397,9 +6338,7 @@
6397
6338
  },
6398
6339
  "/profile-status/556593077171": {
6399
6340
  "get": {
6400
- "tags": [
6401
- "Contact"
6402
- ],
6341
+ "tags": ["Contact"],
6403
6342
  "summary": "Get Profile Status",
6404
6343
  "description": "Retrieves chat picture",
6405
6344
  "operationId": "GetProfileStatus",
@@ -6512,9 +6451,7 @@
6512
6451
  },
6513
6452
  "/create-group": {
6514
6453
  "post": {
6515
- "tags": [
6516
- "Group"
6517
- ],
6454
+ "tags": ["Group"],
6518
6455
  "summary": "Create Group",
6519
6456
  "description": "Cria um grupo no WhatsApp.",
6520
6457
  "operationId": "CreateGroup",
@@ -6556,9 +6493,7 @@
6556
6493
  },
6557
6494
  "/join-code": {
6558
6495
  "post": {
6559
- "tags": [
6560
- "Group"
6561
- ],
6496
+ "tags": ["Group"],
6562
6497
  "summary": "Join Group by Code",
6563
6498
  "description": "Entra em um grupo de WhatsApp através do código de convite.",
6564
6499
  "operationId": "JoinGroupbyCode",
@@ -6599,9 +6534,7 @@
6599
6534
  },
6600
6535
  "/add-participant-group": {
6601
6536
  "post": {
6602
- "tags": [
6603
- "Group"
6604
- ],
6537
+ "tags": ["Group"],
6605
6538
  "summary": "Add Participant",
6606
6539
  "description": "Adds participant to Group",
6607
6540
  "operationId": "AddParticipant",
@@ -6705,9 +6638,7 @@
6705
6638
  "status": "Success",
6706
6639
  "message": "Participante(s) adicionado(s) com sucesso",
6707
6640
  "participants": "556593077171",
6708
- "groups": [
6709
- true
6710
- ]
6641
+ "groups": [true]
6711
6642
  }
6712
6643
  }
6713
6644
  }
@@ -6718,9 +6649,7 @@
6718
6649
  },
6719
6650
  "/demote-participant-group": {
6720
6651
  "post": {
6721
- "tags": [
6722
- "Group"
6723
- ],
6652
+ "tags": ["Group"],
6724
6653
  "summary": "Demote Participant",
6725
6654
  "description": "Demotes admin privileges of participant",
6726
6655
  "operationId": "DemoteParticipant",
@@ -6824,9 +6753,7 @@
6824
6753
  "status": "Success",
6825
6754
  "message": "Admin do(s) participante(s) revogado(s) com sucesso",
6826
6755
  "participants": "556593077171",
6827
- "groups": [
6828
- "556593077171-1620997998@g.us"
6829
- ]
6756
+ "groups": ["556593077171-1620997998@g.us"]
6830
6757
  }
6831
6758
  }
6832
6759
  }
@@ -6837,9 +6764,7 @@
6837
6764
  },
6838
6765
  "/promote-participant-group": {
6839
6766
  "post": {
6840
- "tags": [
6841
- "Group"
6842
- ],
6767
+ "tags": ["Group"],
6843
6768
  "summary": "Promote Participant",
6844
6769
  "description": "Promotes admin privileges of participant",
6845
6770
  "operationId": "PromoteParticipant",
@@ -6943,9 +6868,7 @@
6943
6868
  "status": "Success",
6944
6869
  "message": "Participante(s) promovidos(s) com sucesso",
6945
6870
  "participants": "556593077171",
6946
- "groups": [
6947
- "556593077171-1620997998@g.us"
6948
- ]
6871
+ "groups": ["556593077171-1620997998@g.us"]
6949
6872
  }
6950
6873
  }
6951
6874
  }
@@ -6956,9 +6879,7 @@
6956
6879
  },
6957
6880
  "/all-broadcast-list": {
6958
6881
  "get": {
6959
- "tags": [
6960
- "Group"
6961
- ],
6882
+ "tags": ["Group"],
6962
6883
  "summary": "Get All Broadcast List",
6963
6884
  "description": "Retrieve all broadcast list",
6964
6885
  "operationId": "GetAllBroadcastList",
@@ -7150,9 +7071,7 @@
7150
7071
  },
7151
7072
  "/all-groups": {
7152
7073
  "get": {
7153
- "tags": [
7154
- "Group"
7155
- ],
7074
+ "tags": ["Group"],
7156
7075
  "summary": "Get All Groups",
7157
7076
  "description": "Retrieve all groups",
7158
7077
  "operationId": "GetAllGroups",
@@ -7266,9 +7185,7 @@
7266
7185
  },
7267
7186
  "/group-admins/556593077171-1620997998": {
7268
7187
  "get": {
7269
- "tags": [
7270
- "Group"
7271
- ],
7188
+ "tags": ["Group"],
7272
7189
  "summary": "Get Group Admins",
7273
7190
  "description": "Retrieves group admins",
7274
7191
  "operationId": "GetGroupAdmins",
@@ -7389,9 +7306,7 @@
7389
7306
  },
7390
7307
  "/group-info-from-invite-link": {
7391
7308
  "post": {
7392
- "tags": [
7393
- "Group"
7394
- ],
7309
+ "tags": ["Group"],
7395
7310
  "summary": "Get Group Info From Invite Link",
7396
7311
  "description": "Generates group-invite link",
7397
7312
  "operationId": "GetGroupInfoFromInviteLink",
@@ -7535,9 +7450,7 @@
7535
7450
  },
7536
7451
  "/group-invite-link/556593077171-1620997998": {
7537
7452
  "get": {
7538
- "tags": [
7539
- "Group"
7540
- ],
7453
+ "tags": ["Group"],
7541
7454
  "summary": "Get Group Invite Link",
7542
7455
  "description": "Retrieves group admins",
7543
7456
  "operationId": "GetGroupInviteLink",
@@ -7647,9 +7560,7 @@
7647
7560
  },
7648
7561
  "/group-members-ids/556593077171-1620997998": {
7649
7562
  "get": {
7650
- "tags": [
7651
- "Group"
7652
- ],
7563
+ "tags": ["Group"],
7653
7564
  "summary": "Get Group Members Ids",
7654
7565
  "description": "Retrieves group members as [Id] objects",
7655
7566
  "operationId": "GetGroupMembersIds",
@@ -7770,9 +7681,7 @@
7770
7681
  },
7771
7682
  "/group-members/556593077171-1620997998": {
7772
7683
  "get": {
7773
- "tags": [
7774
- "Group"
7775
- ],
7684
+ "tags": ["Group"],
7776
7685
  "summary": "Get Group Members",
7777
7686
  "description": "Returns group members [Contact] objects",
7778
7687
  "operationId": "GetGroupMembers",
@@ -7944,9 +7853,7 @@
7944
7853
  },
7945
7854
  "/leave-group": {
7946
7855
  "post": {
7947
- "tags": [
7948
- "Group"
7949
- ],
7856
+ "tags": ["Group"],
7950
7857
  "summary": "Leave Group",
7951
7858
  "description": "Entra em um grupo de WhatsApp através do código de convite.",
7952
7859
  "operationId": "LeaveGroup",
@@ -8059,9 +7966,7 @@
8059
7966
  },
8060
7967
  "/remove-participant-group": {
8061
7968
  "post": {
8062
- "tags": [
8063
- "Group"
8064
- ],
7969
+ "tags": ["Group"],
8065
7970
  "summary": "Remove Participant",
8066
7971
  "description": "Promotes admin privileges of participant",
8067
7972
  "operationId": "RemoveParticipant",
@@ -8165,9 +8070,7 @@
8165
8070
  "status": "Success",
8166
8071
  "message": "Participante(s) promovidos(s) com sucesso",
8167
8072
  "participants": "556593077171",
8168
- "groups": [
8169
- "556593077171-1620997998@g.us"
8170
- ]
8073
+ "groups": ["556593077171-1620997998@g.us"]
8171
8074
  }
8172
8075
  }
8173
8076
  }
@@ -8178,9 +8081,7 @@
8178
8081
  },
8179
8082
  "/group-description": {
8180
8083
  "post": {
8181
- "tags": [
8182
- "Group"
8183
- ],
8084
+ "tags": ["Group"],
8184
8085
  "summary": "Set Group Description",
8185
8086
  "description": "Set group description (if allowed)",
8186
8087
  "operationId": "SetGroupDescription",
@@ -8293,9 +8194,7 @@
8293
8194
  },
8294
8195
  "/group-property": {
8295
8196
  "post": {
8296
- "tags": [
8297
- "Group"
8298
- ],
8197
+ "tags": ["Group"],
8299
8198
  "summary": "Set Group Property",
8300
8199
  "description": "Set group description (if allowed)",
8301
8200
  "operationId": "SetGroupProperty",
@@ -8409,9 +8308,7 @@
8409
8308
  },
8410
8309
  "/group-subject": {
8411
8310
  "post": {
8412
- "tags": [
8413
- "Group"
8414
- ],
8311
+ "tags": ["Group"],
8415
8312
  "summary": "Set Group Subject",
8416
8313
  "description": "Set group description (if allowed)",
8417
8314
  "operationId": "SetGroupSubject",
@@ -8524,9 +8421,7 @@
8524
8421
  },
8525
8422
  "/messages-admins-only": {
8526
8423
  "post": {
8527
- "tags": [
8528
- "Group"
8529
- ],
8424
+ "tags": ["Group"],
8530
8425
  "summary": "Set Messages Admins Only",
8531
8426
  "description": "Allow only admin to send messages with true or false",
8532
8427
  "operationId": "SetMessagesAdminsOnly",
@@ -8639,9 +8534,7 @@
8639
8534
  },
8640
8535
  "/get-battery-level": {
8641
8536
  "get": {
8642
- "tags": [
8643
- "Phone Status"
8644
- ],
8537
+ "tags": ["Phone Status"],
8645
8538
  "summary": "Battery status",
8646
8539
  "description": "Retorna o status da session",
8647
8540
  "operationId": "Batterystatus",
@@ -8657,9 +8550,7 @@
8657
8550
  },
8658
8551
  "/block-contact": {
8659
8552
  "post": {
8660
- "tags": [
8661
- "Block list"
8662
- ],
8553
+ "tags": ["Block list"],
8663
8554
  "summary": "Block contact",
8664
8555
  "description": "Receive all blocked contacts",
8665
8556
  "operationId": "Blockcontact",
@@ -8771,9 +8662,7 @@
8771
8662
  },
8772
8663
  "/unblock-contact": {
8773
8664
  "post": {
8774
- "tags": [
8775
- "Block list"
8776
- ],
8665
+ "tags": ["Block list"],
8777
8666
  "summary": "UnBlock contact",
8778
8667
  "description": "UnBlock contact",
8779
8668
  "operationId": "UnBlockcontact",
@@ -8885,9 +8774,7 @@
8885
8774
  },
8886
8775
  "/blocklist": {
8887
8776
  "get": {
8888
- "tags": [
8889
- "Block list"
8890
- ],
8777
+ "tags": ["Block list"],
8891
8778
  "summary": "Block list",
8892
8779
  "description": "UnBlock contact",
8893
8780
  "operationId": "Blocklist",
@@ -9004,12 +8891,7 @@
9004
8891
  "schemas": {
9005
8892
  "resultadocomsucessodacriaçãodotoken": {
9006
8893
  "title": "resultadocomsucessodacriaçãodotoken",
9007
- "required": [
9008
- "status",
9009
- "session",
9010
- "token",
9011
- "full"
9012
- ],
8894
+ "required": ["status", "session", "token", "full"],
9013
8895
  "type": "object",
9014
8896
  "properties": {
9015
8897
  "status": {
@@ -9034,9 +8916,7 @@
9034
8916
  },
9035
8917
  "start-session(RetornaQRCodedelogin)Request": {
9036
8918
  "title": "start-session(RetornaQRCodedelogin)Request",
9037
- "required": [
9038
- "webhook"
9039
- ],
8919
+ "required": ["webhook"],
9040
8920
  "type": "object",
9041
8921
  "properties": {
9042
8922
  "webhook": {
@@ -9049,10 +8929,7 @@
9049
8929
  },
9050
8930
  "AllChats": {
9051
8931
  "title": "AllChats",
9052
- "required": [
9053
- "status",
9054
- "response"
9055
- ],
8932
+ "required": ["status", "response"],
9056
8933
  "type": "object",
9057
8934
  "properties": {
9058
8935
  "status": {
@@ -9302,11 +9179,7 @@
9302
9179
  },
9303
9180
  "Id": {
9304
9181
  "title": "Id",
9305
- "required": [
9306
- "server",
9307
- "user",
9308
- "_serialized"
9309
- ],
9182
+ "required": ["server", "user", "_serialized"],
9310
9183
  "type": "object",
9311
9184
  "properties": {
9312
9185
  "server": {
@@ -9442,14 +9315,7 @@
9442
9315
  },
9443
9316
  "ProfilePicThumbObj": {
9444
9317
  "title": "ProfilePicThumbObj",
9445
- "required": [
9446
- "eurl",
9447
- "id",
9448
- "img",
9449
- "imgFull",
9450
- "raw",
9451
- "tag"
9452
- ],
9318
+ "required": ["eurl", "id", "img", "imgFull", "raw", "tag"],
9453
9319
  "type": "object",
9454
9320
  "properties": {
9455
9321
  "eurl": {
@@ -9487,10 +9353,7 @@
9487
9353
  },
9488
9354
  "Presence": {
9489
9355
  "title": "Presence",
9490
- "required": [
9491
- "id",
9492
- "chatstates"
9493
- ],
9356
+ "required": ["id", "chatstates"],
9494
9357
  "type": "object",
9495
9358
  "properties": {
9496
9359
  "id": {
@@ -9515,10 +9378,7 @@
9515
9378
  },
9516
9379
  "ChatsById": {
9517
9380
  "title": "ChatsById",
9518
- "required": [
9519
- "status",
9520
- "response"
9521
- ],
9381
+ "required": ["status", "response"],
9522
9382
  "type": "object",
9523
9383
  "properties": {
9524
9384
  "status": {
@@ -10708,11 +10568,7 @@
10708
10568
  },
10709
10569
  "ChatId": {
10710
10570
  "title": "ChatId",
10711
- "required": [
10712
- "server",
10713
- "user",
10714
- "_serialized"
10715
- ],
10571
+ "required": ["server", "user", "_serialized"],
10716
10572
  "type": "object",
10717
10573
  "properties": {
10718
10574
  "server": {
@@ -11017,12 +10873,7 @@
11017
10873
  },
11018
10874
  "LastReceivedKey": {
11019
10875
  "title": "LastReceivedKey",
11020
- "required": [
11021
- "fromMe",
11022
- "remote",
11023
- "id",
11024
- "_serialized"
11025
- ],
10876
+ "required": ["fromMe", "remote", "id", "_serialized"],
11026
10877
  "type": "object",
11027
10878
  "properties": {
11028
10879
  "fromMe": {
@@ -11051,11 +10902,7 @@
11051
10902
  },
11052
10903
  "Remote": {
11053
10904
  "title": "Remote",
11054
- "required": [
11055
- "server",
11056
- "user",
11057
- "_serialized"
11058
- ],
10905
+ "required": ["server", "user", "_serialized"],
11059
10906
  "type": "object",
11060
10907
  "properties": {
11061
10908
  "server": {
@@ -11277,10 +11124,7 @@
11277
11124
  },
11278
11125
  "QuotedMsg": {
11279
11126
  "title": "QuotedMsg",
11280
- "required": [
11281
- "type",
11282
- "body"
11283
- ],
11127
+ "required": ["type", "body"],
11284
11128
  "type": "object",
11285
11129
  "properties": {
11286
11130
  "type": {
@@ -11297,10 +11141,7 @@
11297
11141
  },
11298
11142
  "ChatIsOnLine": {
11299
11143
  "title": "ChatIsOnLine",
11300
- "required": [
11301
- "status",
11302
- "response"
11303
- ],
11144
+ "required": ["status", "response"],
11304
11145
  "type": "object",
11305
11146
  "properties": {
11306
11147
  "status": {
@@ -11317,10 +11158,7 @@
11317
11158
  },
11318
11159
  "AllChatsWhitMessages": {
11319
11160
  "title": "AllChatsWhitMessages",
11320
- "required": [
11321
- "status",
11322
- "response"
11323
- ],
11161
+ "required": ["status", "response"],
11324
11162
  "type": "object",
11325
11163
  "properties": {
11326
11164
  "status": {
@@ -11739,12 +11577,7 @@
11739
11577
  },
11740
11578
  "Id16": {
11741
11579
  "title": "Id16",
11742
- "required": [
11743
- "fromMe",
11744
- "remote",
11745
- "id",
11746
- "_serialized"
11747
- ],
11580
+ "required": ["fromMe", "remote", "id", "_serialized"],
11748
11581
  "type": "object",
11749
11582
  "properties": {
11750
11583
  "fromMe": {
@@ -11769,10 +11602,7 @@
11769
11602
  },
11770
11603
  "AllMessagesinChat": {
11771
11604
  "title": "AllMessagesinChat",
11772
- "required": [
11773
- "status",
11774
- "response"
11775
- ],
11605
+ "required": ["status", "response"],
11776
11606
  "type": "object",
11777
11607
  "properties": {
11778
11608
  "status": {
@@ -13118,10 +12948,7 @@
13118
12948
  },
13119
12949
  "AllNewMessages": {
13120
12950
  "title": "AllNewMessages",
13121
- "required": [
13122
- "status",
13123
- "response"
13124
- ],
12951
+ "required": ["status", "response"],
13125
12952
  "type": "object",
13126
12953
  "properties": {
13127
12954
  "status": {
@@ -13729,10 +13556,7 @@
13729
13556
  },
13730
13557
  "UnreadMessages": {
13731
13558
  "title": "UnreadMessages",
13732
- "required": [
13733
- "status",
13734
- "response"
13735
- ],
13559
+ "required": ["status", "response"],
13736
13560
  "type": "object",
13737
13561
  "properties": {
13738
13562
  "status": {
@@ -14618,10 +14442,7 @@
14618
14442
  },
14619
14443
  "ListMutes": {
14620
14444
  "title": "ListMutes",
14621
- "required": [
14622
- "status",
14623
- "response"
14624
- ],
14445
+ "required": ["status", "response"],
14625
14446
  "type": "object",
14626
14447
  "properties": {
14627
14448
  "status": {
@@ -14661,9 +14482,7 @@
14661
14482
  },
14662
14483
  "ArchiveChatRequest": {
14663
14484
  "title": "ArchiveChatRequest",
14664
- "required": [
14665
- "phone"
14666
- ],
14485
+ "required": ["phone"],
14667
14486
  "type": "object",
14668
14487
  "properties": {
14669
14488
  "phone": {
@@ -14676,11 +14495,7 @@
14676
14495
  },
14677
14496
  "ArchiveChat": {
14678
14497
  "title": "ArchiveChat",
14679
- "required": [
14680
- "status",
14681
- "message",
14682
- "response"
14683
- ],
14498
+ "required": ["status", "message", "response"],
14684
14499
  "type": "object",
14685
14500
  "properties": {
14686
14501
  "status": {
@@ -14701,9 +14516,7 @@
14701
14516
  },
14702
14517
  "ClearChatRequest": {
14703
14518
  "title": "ClearChatRequest",
14704
- "required": [
14705
- "phone"
14706
- ],
14519
+ "required": ["phone"],
14707
14520
  "type": "object",
14708
14521
  "properties": {
14709
14522
  "phone": {
@@ -14716,9 +14529,7 @@
14716
14529
  },
14717
14530
  "DeleteChatRequest": {
14718
14531
  "title": "DeleteChatRequest",
14719
- "required": [
14720
- "phone"
14721
- ],
14532
+ "required": ["phone"],
14722
14533
  "type": "object",
14723
14534
  "properties": {
14724
14535
  "phone": {
@@ -14731,10 +14542,7 @@
14731
14542
  },
14732
14543
  "DeleteChat": {
14733
14544
  "title": "DeleteChat",
14734
- "required": [
14735
- "status",
14736
- "message"
14737
- ],
14545
+ "required": ["status", "message"],
14738
14546
  "type": "object",
14739
14547
  "properties": {
14740
14548
  "status": {
@@ -14751,10 +14559,7 @@
14751
14559
  },
14752
14560
  "DeleteMessageRequest": {
14753
14561
  "title": "DeleteMessageRequest",
14754
- "required": [
14755
- "phone",
14756
- "messageId"
14757
- ],
14562
+ "required": ["phone", "messageId"],
14758
14563
  "type": "object",
14759
14564
  "properties": {
14760
14565
  "phone": {
@@ -14771,10 +14576,7 @@
14771
14576
  },
14772
14577
  "DeleteMessage": {
14773
14578
  "title": "DeleteMessage",
14774
- "required": [
14775
- "status",
14776
- "message"
14777
- ],
14579
+ "required": ["status", "message"],
14778
14580
  "type": "object",
14779
14581
  "properties": {
14780
14582
  "status": {
@@ -14791,9 +14593,7 @@
14791
14593
  },
14792
14594
  "MarkUnseenRequest": {
14793
14595
  "title": "MarkUnseenRequest",
14794
- "required": [
14795
- "phone"
14796
- ],
14596
+ "required": ["phone"],
14797
14597
  "type": "object",
14798
14598
  "properties": {
14799
14599
  "phone": {
@@ -14806,10 +14606,7 @@
14806
14606
  },
14807
14607
  "MarkUnseen": {
14808
14608
  "title": "MarkUnseen",
14809
- "required": [
14810
- "status",
14811
- "message"
14812
- ],
14609
+ "required": ["status", "message"],
14813
14610
  "type": "object",
14814
14611
  "properties": {
14815
14612
  "status": {
@@ -14826,10 +14623,7 @@
14826
14623
  },
14827
14624
  "PinChatRequest": {
14828
14625
  "title": "PinChatRequest",
14829
- "required": [
14830
- "phone",
14831
- "messageId"
14832
- ],
14626
+ "required": ["phone", "messageId"],
14833
14627
  "type": "object",
14834
14628
  "properties": {
14835
14629
  "phone": {
@@ -14846,11 +14640,7 @@
14846
14640
  },
14847
14641
  "SendMuteRequest": {
14848
14642
  "title": "SendMuteRequest",
14849
- "required": [
14850
- "phone",
14851
- "time",
14852
- "type"
14853
- ],
14643
+ "required": ["phone", "time", "type"],
14854
14644
  "type": "object",
14855
14645
  "properties": {
14856
14646
  "phone": {
@@ -14872,10 +14662,7 @@
14872
14662
  },
14873
14663
  "SendMute": {
14874
14664
  "title": "SendMute",
14875
- "required": [
14876
- "status",
14877
- "response"
14878
- ],
14665
+ "required": ["status", "response"],
14879
14666
  "type": "object",
14880
14667
  "properties": {
14881
14668
  "status": {
@@ -14898,10 +14685,7 @@
14898
14685
  "_serialized": "556592424425@c.us"
14899
14686
  },
14900
14687
  "connected": true,
14901
- "protoVersion": [
14902
- 0,
14903
- 17
14904
- ],
14688
+ "protoVersion": [0, 17],
14905
14689
  "clientToken": "hdTL/zIDCji6tgK9HmpNZy6k3iH0ddaQJCHd2SdtFL8=",
14906
14690
  "serverToken": "1@5TO8Gf1Qi73m23rF4UtAVb3cYCNsefP2jN2PBgQtIJ4Gukh02M0h2DD/o5kdOUo/flAZJz/6uC9cqA==",
14907
14691
  "isResponse": "true",
@@ -14953,16 +14737,7 @@
14953
14737
  },
14954
14738
  "Response8": {
14955
14739
  "title": "Response8",
14956
- "required": [
14957
- "me",
14958
- "to",
14959
- "erro",
14960
- "text",
14961
- "status",
14962
- "type",
14963
- "time",
14964
- "timeType"
14965
- ],
14740
+ "required": ["me", "to", "erro", "text", "status", "type", "time", "timeType"],
14966
14741
  "type": "object",
14967
14742
  "properties": {
14968
14743
  "me": {
@@ -15004,10 +14779,7 @@
15004
14779
  "_serialized": "556592424425@c.us"
15005
14780
  },
15006
14781
  "connected": true,
15007
- "protoVersion": [
15008
- 0,
15009
- 17
15010
- ],
14782
+ "protoVersion": [0, 17],
15011
14783
  "clientToken": "hdTL/zIDCji6tgK9HmpNZy6k3iH0ddaQJCHd2SdtFL8=",
15012
14784
  "serverToken": "1@5TO8Gf1Qi73m23rF4UtAVb3cYCNsefP2jN2PBgQtIJ4Gukh02M0h2DD/o5kdOUo/flAZJz/6uC9cqA==",
15013
14785
  "isResponse": "true",
@@ -15174,10 +14946,7 @@
15174
14946
  "_serialized": "556592424425@c.us"
15175
14947
  },
15176
14948
  "connected": true,
15177
- "protoVersion": [
15178
- 0,
15179
- 17
15180
- ],
14949
+ "protoVersion": [0, 17],
15181
14950
  "clientToken": "hdTL/zIDCji6tgK9HmpNZy6k3iH0ddaQJCHd2SdtFL8=",
15182
14951
  "serverToken": "1@5TO8Gf1Qi73m23rF4UtAVb3cYCNsefP2jN2PBgQtIJ4Gukh02M0h2DD/o5kdOUo/flAZJz/6uC9cqA==",
15183
14952
  "isResponse": "true",
@@ -15207,11 +14976,7 @@
15207
14976
  },
15208
14977
  "Wid": {
15209
14978
  "title": "Wid",
15210
- "required": [
15211
- "server",
15212
- "user",
15213
- "_serialized"
15214
- ],
14979
+ "required": ["server", "user", "_serialized"],
15215
14980
  "type": "object",
15216
14981
  "properties": {
15217
14982
  "server": {
@@ -15277,16 +15042,7 @@
15277
15042
  },
15278
15043
  "To": {
15279
15044
  "title": "To",
15280
- "required": [
15281
- "fromMe",
15282
- "remote",
15283
- "id",
15284
- "_serialized",
15285
- "formattedName",
15286
- "isBusiness",
15287
- "isMyContact",
15288
- "pushname"
15289
- ],
15045
+ "required": ["fromMe", "remote", "id", "_serialized", "formattedName", "isBusiness", "isMyContact", "pushname"],
15290
15046
  "type": "object",
15291
15047
  "properties": {
15292
15048
  "fromMe": {
@@ -15331,10 +15087,7 @@
15331
15087
  },
15332
15088
  "ChatStateRequest": {
15333
15089
  "title": "ChatStateRequest",
15334
- "required": [
15335
- "phone",
15336
- "chatstate"
15337
- ],
15090
+ "required": ["phone", "chatstate"],
15338
15091
  "type": "object",
15339
15092
  "properties": {
15340
15093
  "phone": {
@@ -15352,9 +15105,7 @@
15352
15105
  },
15353
15106
  "SendSeenRequest": {
15354
15107
  "title": "SendSeenRequest",
15355
- "required": [
15356
- "phone"
15357
- ],
15108
+ "required": ["phone"],
15358
15109
  "type": "object",
15359
15110
  "properties": {
15360
15111
  "phone": {
@@ -15367,10 +15118,7 @@
15367
15118
  },
15368
15119
  "SendSeen": {
15369
15120
  "title": "SendSeen",
15370
- "required": [
15371
- "status",
15372
- "response"
15373
- ],
15121
+ "required": ["status", "response"],
15374
15122
  "type": "object",
15375
15123
  "properties": {
15376
15124
  "status": {
@@ -15387,10 +15135,7 @@
15387
15135
  },
15388
15136
  "TemporaryMessagesRequest": {
15389
15137
  "title": "TemporaryMessagesRequest",
15390
- "required": [
15391
- "phone",
15392
- "value"
15393
- ],
15138
+ "required": ["phone", "value"],
15394
15139
  "type": "object",
15395
15140
  "properties": {
15396
15141
  "phone": {
@@ -15407,10 +15152,7 @@
15407
15152
  },
15408
15153
  "TemporaryMessages": {
15409
15154
  "title": "TemporaryMessages",
15410
- "required": [
15411
- "status",
15412
- "response"
15413
- ],
15155
+ "required": ["status", "response"],
15414
15156
  "type": "object",
15415
15157
  "properties": {
15416
15158
  "status": {
@@ -15427,11 +15169,7 @@
15427
15169
  },
15428
15170
  "SetTypingRequest": {
15429
15171
  "title": "SetTypingRequest",
15430
- "required": [
15431
- "phone",
15432
- "value",
15433
- "isGrup"
15434
- ],
15172
+ "required": ["phone", "value", "isGrup"],
15435
15173
  "type": "object",
15436
15174
  "properties": {
15437
15175
  "phone": {
@@ -15452,11 +15190,7 @@
15452
15190
  },
15453
15191
  "SendFileRequest": {
15454
15192
  "title": "SendFileRequest",
15455
- "required": [
15456
- "phone",
15457
- "base64",
15458
- "isGroup"
15459
- ],
15193
+ "required": ["phone", "base64", "isGroup"],
15460
15194
  "type": "object",
15461
15195
  "properties": {
15462
15196
  "phone": {
@@ -15477,12 +15211,7 @@
15477
15211
  },
15478
15212
  "SendReplyRequest": {
15479
15213
  "title": "SendReplyRequest",
15480
- "required": [
15481
- "phone",
15482
- "message",
15483
- "messageId",
15484
- "isGroup"
15485
- ],
15214
+ "required": ["phone", "message", "messageId", "isGroup"],
15486
15215
  "type": "object",
15487
15216
  "properties": {
15488
15217
  "phone": {
@@ -15507,11 +15236,7 @@
15507
15236
  },
15508
15237
  "SendMessageRequest": {
15509
15238
  "title": "SendMessageRequest",
15510
- "required": [
15511
- "phone",
15512
- "message",
15513
- "isGroup"
15514
- ],
15239
+ "required": ["phone", "message", "isGroup"],
15515
15240
  "type": "object",
15516
15241
  "properties": {
15517
15242
  "phone": {
@@ -15522,6 +15247,9 @@
15522
15247
  },
15523
15248
  "isGroup": {
15524
15249
  "type": "boolean"
15250
+ },
15251
+ "options": {
15252
+ "type": "object"
15525
15253
  }
15526
15254
  },
15527
15255
  "example": {
@@ -15530,13 +15258,63 @@
15530
15258
  "isGroup": false
15531
15259
  }
15532
15260
  },
15533
- "ForwardMessages(Encaminharmensagem)Request": {
15534
- "title": "ForwardMessages(Encaminharmensagem)Request",
15261
+ "SendMessageRequestWithButton": {
15262
+ "title": "SendMessageRequestWithButton",
15535
15263
  "required": [
15536
15264
  "phone",
15537
- "messageId"
15265
+ "message",
15266
+ "options"
15538
15267
  ],
15539
15268
  "type": "object",
15269
+ "properties": {
15270
+ "phone": {
15271
+ "type": "string"
15272
+ },
15273
+ "message": {
15274
+ "type": "string"
15275
+ },
15276
+ "options": {
15277
+ "type": "any"
15278
+ }
15279
+ },
15280
+ "example": {
15281
+ "phone": "554498005216",
15282
+ "message": "Hello World",
15283
+ "options": {
15284
+ "useTemplateButtons": "true",
15285
+ "buttons": [
15286
+ {
15287
+ "id": "1",
15288
+ "text": "Text 1"
15289
+ },
15290
+ {
15291
+ "id": "2",
15292
+ "phoneNumber": "554498005216",
15293
+ "text": "Call Us"
15294
+ },
15295
+ {
15296
+ "id": "3",
15297
+ "url": "https://wppconnect-team.github.io/",
15298
+ "text": "Long Life WPPCONNECT"
15299
+ },
15300
+ {
15301
+ "id": "4",
15302
+ "text": "Text 4"
15303
+ },
15304
+ {
15305
+ "id": "5",
15306
+ "text": "Text 5"
15307
+ }
15308
+ ],
15309
+ "title": "Title text",
15310
+ "footer": "Footer text"
15311
+ }
15312
+ }
15313
+ },
15314
+ "ForwardMessages(Encaminharmensagem)Request": {
15315
+ "title": "ForwardMessages(Encaminharmensagem)Request",
15316
+ "required": ["phone", "messageId"],
15317
+ "type": "object",
15540
15318
  "properties": {
15541
15319
  "phone": {
15542
15320
  "type": "string"
@@ -15552,10 +15330,7 @@
15552
15330
  },
15553
15331
  "SendContactVcardRequest": {
15554
15332
  "title": "SendContactVcardRequest",
15555
- "required": [
15556
- "phone",
15557
- "contactsId"
15558
- ],
15333
+ "required": ["phone", "contactsId"],
15559
15334
  "type": "object",
15560
15335
  "properties": {
15561
15336
  "phone": {
@@ -15572,10 +15347,7 @@
15572
15347
  },
15573
15348
  "SendContactVcard": {
15574
15349
  "title": "SendContactVcard",
15575
- "required": [
15576
- "status",
15577
- "response"
15578
- ],
15350
+ "required": ["status", "response"],
15579
15351
  "type": "object",
15580
15352
  "properties": {
15581
15353
  "status": {
@@ -15598,10 +15370,7 @@
15598
15370
  "_serialized": "556592424425@c.us"
15599
15371
  },
15600
15372
  "connected": true,
15601
- "protoVersion": [
15602
- 0,
15603
- 17
15604
- ],
15373
+ "protoVersion": [0, 17],
15605
15374
  "clientToken": "aeTnIxydmYIpKUsxG5q+iQRLMRsYMnXhpV1wqsdjQOw=",
15606
15375
  "serverToken": "1@3jaCR5jbMKpeSBSt9HYs1OfpnCwnomoZpcnPMOkQOp8ibUglFUjN91I5w1bNHO9XafxYEXMqw6VmDw==",
15607
15376
  "isResponse": "true",
@@ -15652,15 +15421,7 @@
15652
15421
  },
15653
15422
  "Response9": {
15654
15423
  "title": "Response9",
15655
- "required": [
15656
- "me",
15657
- "to",
15658
- "erro",
15659
- "text",
15660
- "status",
15661
- "from",
15662
- "type"
15663
- ],
15424
+ "required": ["me", "to", "erro", "text", "status", "from", "type"],
15664
15425
  "type": "object",
15665
15426
  "properties": {
15666
15427
  "me": {
@@ -15697,10 +15458,7 @@
15697
15458
  "_serialized": "556592424425@c.us"
15698
15459
  },
15699
15460
  "connected": true,
15700
- "protoVersion": [
15701
- 0,
15702
- 17
15703
- ],
15461
+ "protoVersion": [0, 17],
15704
15462
  "clientToken": "aeTnIxydmYIpKUsxG5q+iQRLMRsYMnXhpV1wqsdjQOw=",
15705
15463
  "serverToken": "1@3jaCR5jbMKpeSBSt9HYs1OfpnCwnomoZpcnPMOkQOp8ibUglFUjN91I5w1bNHO9XafxYEXMqw6VmDw==",
15706
15464
  "isResponse": "true",
@@ -15750,11 +15508,7 @@
15750
15508
  },
15751
15509
  "SendLinkPreviewRequest": {
15752
15510
  "title": "SendLinkPreviewRequest",
15753
- "required": [
15754
- "phone",
15755
- "url",
15756
- "caption"
15757
- ],
15511
+ "required": ["phone", "url", "caption"],
15758
15512
  "type": "object",
15759
15513
  "properties": {
15760
15514
  "phone": {
@@ -15775,10 +15529,7 @@
15775
15529
  },
15776
15530
  "SendLinkPreview": {
15777
15531
  "title": "SendLinkPreview",
15778
- "required": [
15779
- "status",
15780
- "message"
15781
- ],
15532
+ "required": ["status", "message"],
15782
15533
  "type": "object",
15783
15534
  "properties": {
15784
15535
  "status": {
@@ -15795,12 +15546,7 @@
15795
15546
  },
15796
15547
  "SendLocationRequest": {
15797
15548
  "title": "SendLocationRequest",
15798
- "required": [
15799
- "phone",
15800
- "lat",
15801
- "lng",
15802
- "title"
15803
- ],
15549
+ "required": ["phone", "lat", "lng", "title"],
15804
15550
  "type": "object",
15805
15551
  "properties": {
15806
15552
  "phone": {
@@ -15825,10 +15571,7 @@
15825
15571
  },
15826
15572
  "SendLocation": {
15827
15573
  "title": "SendLocation",
15828
- "required": [
15829
- "status",
15830
- "message"
15831
- ],
15574
+ "required": ["status", "message"],
15832
15575
  "type": "object",
15833
15576
  "properties": {
15834
15577
  "status": {
@@ -15845,12 +15588,7 @@
15845
15588
  },
15846
15589
  "SendMentionedRequest": {
15847
15590
  "title": "SendMentionedRequest",
15848
- "required": [
15849
- "phone",
15850
- "message",
15851
- "mentioned",
15852
- "isGruop"
15853
- ],
15591
+ "required": ["phone", "message", "mentioned", "isGruop"],
15854
15592
  "type": "object",
15855
15593
  "properties": {
15856
15594
  "phone": {
@@ -15873,17 +15611,13 @@
15873
15611
  "example": {
15874
15612
  "phone": "556593077171-1620997998",
15875
15613
  "message": "ola como isso funciona @556593077171@c.us",
15876
- "mentioned": [
15877
- "@556593077171@c.us"
15878
- ],
15614
+ "mentioned": ["@556593077171@c.us"],
15879
15615
  "isGruop": true
15880
15616
  }
15881
15617
  },
15882
15618
  "ChangeUsernameRequest": {
15883
15619
  "title": "ChangeUsernameRequest",
15884
- "required": [
15885
- "name"
15886
- ],
15620
+ "required": ["name"],
15887
15621
  "type": "object",
15888
15622
  "properties": {
15889
15623
  "name": {
@@ -15896,9 +15630,7 @@
15896
15630
  },
15897
15631
  "ChangeProfileImageRequest": {
15898
15632
  "title": "ChangeProfileImageRequest",
15899
- "required": [
15900
- "path"
15901
- ],
15633
+ "required": ["path"],
15902
15634
  "type": "object",
15903
15635
  "properties": {
15904
15636
  "path": {
@@ -15911,10 +15643,7 @@
15911
15643
  },
15912
15644
  "ChangeProfileImage": {
15913
15645
  "title": "ChangeProfileImage",
15914
- "required": [
15915
- "status",
15916
- "message"
15917
- ],
15646
+ "required": ["status", "message"],
15918
15647
  "type": "object",
15919
15648
  "properties": {
15920
15649
  "status": {
@@ -15931,9 +15660,7 @@
15931
15660
  },
15932
15661
  "ChangeProfileStatusRequest": {
15933
15662
  "title": "ChangeProfileStatusRequest",
15934
- "required": [
15935
- "status"
15936
- ],
15663
+ "required": ["status"],
15937
15664
  "type": "object",
15938
15665
  "properties": {
15939
15666
  "status": {
@@ -15946,9 +15673,7 @@
15946
15673
  },
15947
15674
  "ChangeProfileStatus": {
15948
15675
  "title": "ChangeProfileStatus",
15949
- "required": [
15950
- "status"
15951
- ],
15676
+ "required": ["status"],
15952
15677
  "type": "object",
15953
15678
  "properties": {
15954
15679
  "status": {
@@ -15961,10 +15686,7 @@
15961
15686
  },
15962
15687
  "CheckNumberStatus": {
15963
15688
  "title": "CheckNumberStatus",
15964
- "required": [
15965
- "status",
15966
- "response"
15967
- ],
15689
+ "required": ["status", "response"],
15968
15690
  "type": "object",
15969
15691
  "properties": {
15970
15692
  "status": {
@@ -15991,13 +15713,7 @@
15991
15713
  },
15992
15714
  "Response10": {
15993
15715
  "title": "Response10",
15994
- "required": [
15995
- "id",
15996
- "status",
15997
- "isBusiness",
15998
- "canReceiveMessage",
15999
- "numberExists"
16000
- ],
15716
+ "required": ["id", "status", "isBusiness", "canReceiveMessage", "numberExists"],
16001
15717
  "type": "object",
16002
15718
  "properties": {
16003
15719
  "id": {
@@ -16031,10 +15747,7 @@
16031
15747
  },
16032
15748
  "GetAllContacts": {
16033
15749
  "title": "GetAllContacts",
16034
- "required": [
16035
- "status",
16036
- "response"
16037
- ],
15750
+ "required": ["status", "response"],
16038
15751
  "type": "object",
16039
15752
  "properties": {
16040
15753
  "status": {
@@ -16171,10 +15884,7 @@
16171
15884
  },
16172
15885
  "GetContact": {
16173
15886
  "title": "GetContact",
16174
- "required": [
16175
- "status",
16176
- "response"
16177
- ],
15887
+ "required": ["status", "response"],
16178
15888
  "type": "object",
16179
15889
  "properties": {
16180
15890
  "status": {
@@ -16339,10 +16049,7 @@
16339
16049
  },
16340
16050
  "GetNumberProfile": {
16341
16051
  "title": "GetNumberProfile",
16342
- "required": [
16343
- "status",
16344
- "response"
16345
- ],
16052
+ "required": ["status", "response"],
16346
16053
  "type": "object",
16347
16054
  "properties": {
16348
16055
  "status": {
@@ -16369,10 +16076,7 @@
16369
16076
  },
16370
16077
  "GetProfilePicture": {
16371
16078
  "title": "GetProfilePicture",
16372
- "required": [
16373
- "status",
16374
- "response"
16375
- ],
16079
+ "required": ["status", "response"],
16376
16080
  "type": "object",
16377
16081
  "properties": {
16378
16082
  "status": {
@@ -16400,14 +16104,7 @@
16400
16104
  },
16401
16105
  "Response14": {
16402
16106
  "title": "Response14",
16403
- "required": [
16404
- "eurl",
16405
- "id",
16406
- "img",
16407
- "imgFull",
16408
- "raw",
16409
- "tag"
16410
- ],
16107
+ "required": ["eurl", "id", "img", "imgFull", "raw", "tag"],
16411
16108
  "type": "object",
16412
16109
  "properties": {
16413
16110
  "eurl": {
@@ -16445,10 +16142,7 @@
16445
16142
  },
16446
16143
  "GetProfileStatus": {
16447
16144
  "title": "GetProfileStatus",
16448
- "required": [
16449
- "status",
16450
- "response"
16451
- ],
16145
+ "required": ["status", "response"],
16452
16146
  "type": "object",
16453
16147
  "properties": {
16454
16148
  "status": {
@@ -16468,10 +16162,7 @@
16468
16162
  },
16469
16163
  "Response15": {
16470
16164
  "title": "Response15",
16471
- "required": [
16472
- "id",
16473
- "status"
16474
- ],
16165
+ "required": ["id", "status"],
16475
16166
  "type": "object",
16476
16167
  "properties": {
16477
16168
  "id": {
@@ -16488,10 +16179,7 @@
16488
16179
  },
16489
16180
  "CreateGroupRequest": {
16490
16181
  "title": "CreateGroupRequest",
16491
- "required": [
16492
- "groupname",
16493
- "phone"
16494
- ],
16182
+ "required": ["groupname", "phone"],
16495
16183
  "type": "object",
16496
16184
  "properties": {
16497
16185
  "groupname": {
@@ -16508,9 +16196,7 @@
16508
16196
  },
16509
16197
  "JoinGroupbyCodeRequest": {
16510
16198
  "title": "JoinGroupbyCodeRequest",
16511
- "required": [
16512
- "inviteCode"
16513
- ],
16199
+ "required": ["inviteCode"],
16514
16200
  "type": "object",
16515
16201
  "properties": {
16516
16202
  "inviteCode": {
@@ -16523,10 +16209,7 @@
16523
16209
  },
16524
16210
  "AddParticipantRequest": {
16525
16211
  "title": "AddParticipantRequest",
16526
- "required": [
16527
- "groupId",
16528
- "phone"
16529
- ],
16212
+ "required": ["groupId", "phone"],
16530
16213
  "type": "object",
16531
16214
  "properties": {
16532
16215
  "groupId": {
@@ -16543,12 +16226,7 @@
16543
16226
  },
16544
16227
  "AddParticipant": {
16545
16228
  "title": "AddParticipant",
16546
- "required": [
16547
- "status",
16548
- "message",
16549
- "participants",
16550
- "groups"
16551
- ],
16229
+ "required": ["status", "message", "participants", "groups"],
16552
16230
  "type": "object",
16553
16231
  "properties": {
16554
16232
  "status": {
@@ -16572,17 +16250,12 @@
16572
16250
  "status": "Success",
16573
16251
  "message": "Participante(s) adicionado(s) com sucesso",
16574
16252
  "participants": "556593077171",
16575
- "groups": [
16576
- true
16577
- ]
16253
+ "groups": [true]
16578
16254
  }
16579
16255
  },
16580
16256
  "DemoteParticipantRequest": {
16581
16257
  "title": "DemoteParticipantRequest",
16582
- "required": [
16583
- "groupId",
16584
- "phone"
16585
- ],
16258
+ "required": ["groupId", "phone"],
16586
16259
  "type": "object",
16587
16260
  "properties": {
16588
16261
  "groupId": {
@@ -16599,12 +16272,7 @@
16599
16272
  },
16600
16273
  "DemoteParticipant": {
16601
16274
  "title": "DemoteParticipant",
16602
- "required": [
16603
- "status",
16604
- "message",
16605
- "participants",
16606
- "groups"
16607
- ],
16275
+ "required": ["status", "message", "participants", "groups"],
16608
16276
  "type": "object",
16609
16277
  "properties": {
16610
16278
  "status": {
@@ -16628,17 +16296,12 @@
16628
16296
  "status": "Success",
16629
16297
  "message": "Admin do(s) participante(s) revogado(s) com sucesso",
16630
16298
  "participants": "556593077171",
16631
- "groups": [
16632
- "556593077171-1620997998@g.us"
16633
- ]
16299
+ "groups": ["556593077171-1620997998@g.us"]
16634
16300
  }
16635
16301
  },
16636
16302
  "PromoteParticipantRequest": {
16637
16303
  "title": "PromoteParticipantRequest",
16638
- "required": [
16639
- "groupId",
16640
- "phone"
16641
- ],
16304
+ "required": ["groupId", "phone"],
16642
16305
  "type": "object",
16643
16306
  "properties": {
16644
16307
  "groupId": {
@@ -16655,12 +16318,7 @@
16655
16318
  },
16656
16319
  "PromoteParticipant": {
16657
16320
  "title": "PromoteParticipant",
16658
- "required": [
16659
- "status",
16660
- "message",
16661
- "participants",
16662
- "groups"
16663
- ],
16321
+ "required": ["status", "message", "participants", "groups"],
16664
16322
  "type": "object",
16665
16323
  "properties": {
16666
16324
  "status": {
@@ -16684,17 +16342,12 @@
16684
16342
  "status": "Success",
16685
16343
  "message": "Participante(s) promovidos(s) com sucesso",
16686
16344
  "participants": "556593077171",
16687
- "groups": [
16688
- "556593077171-1620997998@g.us"
16689
- ]
16345
+ "groups": ["556593077171-1620997998@g.us"]
16690
16346
  }
16691
16347
  },
16692
16348
  "GetAllBroadcastList": {
16693
16349
  "title": "GetAllBroadcastList",
16694
- "required": [
16695
- "status",
16696
- "response"
16697
- ],
16350
+ "required": ["status", "response"],
16698
16351
  "type": "object",
16699
16352
  "properties": {
16700
16353
  "status": {
@@ -17018,10 +16671,7 @@
17018
16671
  },
17019
16672
  "ProfilePicThumbObj18": {
17020
16673
  "title": "ProfilePicThumbObj18",
17021
- "required": [
17022
- "id",
17023
- "tag"
17024
- ],
16674
+ "required": ["id", "tag"],
17025
16675
  "type": "object",
17026
16676
  "properties": {
17027
16677
  "id": {
@@ -17043,11 +16693,7 @@
17043
16693
  },
17044
16694
  "GroupMetadata": {
17045
16695
  "title": "GroupMetadata",
17046
- "required": [
17047
- "id",
17048
- "participants",
17049
- "pendingParticipants"
17050
- ],
16696
+ "required": ["id", "participants", "pendingParticipants"],
17051
16697
  "type": "object",
17052
16698
  "properties": {
17053
16699
  "id": {
@@ -17095,9 +16741,7 @@
17095
16741
  },
17096
16742
  "Participant": {
17097
16743
  "title": "Participant",
17098
- "required": [
17099
- "id"
17100
- ],
16744
+ "required": ["id"],
17101
16745
  "type": "object",
17102
16746
  "properties": {
17103
16747
  "id": {
@@ -17114,9 +16758,7 @@
17114
16758
  },
17115
16759
  "GetAllGroups": {
17116
16760
  "title": "GetAllGroups",
17117
- "required": [
17118
- "groups"
17119
- ],
16761
+ "required": ["groups"],
17120
16762
  "type": "object",
17121
16763
  "properties": {
17122
16764
  "groups": {
@@ -17138,10 +16780,7 @@
17138
16780
  },
17139
16781
  "Group": {
17140
16782
  "title": "Group",
17141
- "required": [
17142
- "id",
17143
- "name"
17144
- ],
16783
+ "required": ["id", "name"],
17145
16784
  "type": "object",
17146
16785
  "properties": {
17147
16786
  "id": {
@@ -17158,11 +16797,7 @@
17158
16797
  },
17159
16798
  "GetGroupAdmins": {
17160
16799
  "title": "GetGroupAdmins",
17161
- "required": [
17162
- "status",
17163
- "participants",
17164
- "groups"
17165
- ],
16800
+ "required": ["status", "participants", "groups"],
17166
16801
  "type": "object",
17167
16802
  "properties": {
17168
16803
  "status": {
@@ -17197,9 +16832,7 @@
17197
16832
  },
17198
16833
  "Participants": {
17199
16834
  "title": "Participants",
17200
- "required": [
17201
- "556593077171-1620997998@g.us"
17202
- ],
16835
+ "required": ["556593077171-1620997998@g.us"],
17203
16836
  "type": "object",
17204
16837
  "properties": {
17205
16838
  "556593077171-1620997998@g.us": {
@@ -17220,9 +16853,7 @@
17220
16853
  },
17221
16854
  "5565930771711620997998GU": {
17222
16855
  "title": "5565930771711620997998GU",
17223
- "required": [
17224
- "id"
17225
- ],
16856
+ "required": ["id"],
17226
16857
  "type": "object",
17227
16858
  "properties": {
17228
16859
  "id": {
@@ -17235,9 +16866,7 @@
17235
16866
  },
17236
16867
  "Group1": {
17237
16868
  "title": "Group1",
17238
- "required": [
17239
- "id"
17240
- ],
16869
+ "required": ["id"],
17241
16870
  "type": "object",
17242
16871
  "properties": {
17243
16872
  "id": {
@@ -17250,9 +16879,7 @@
17250
16879
  },
17251
16880
  "GetGroupInfoFromInviteLinkRequest": {
17252
16881
  "title": "GetGroupInfoFromInviteLinkRequest",
17253
- "required": [
17254
- "invitecode"
17255
- ],
16882
+ "required": ["invitecode"],
17256
16883
  "type": "object",
17257
16884
  "properties": {
17258
16885
  "invitecode": {
@@ -17265,10 +16892,7 @@
17265
16892
  },
17266
16893
  "PromoteParticipantCopy": {
17267
16894
  "title": "PromoteParticipantCopy",
17268
- "required": [
17269
- "status",
17270
- "response"
17271
- ],
16895
+ "required": ["status", "response"],
17272
16896
  "type": "object",
17273
16897
  "properties": {
17274
16898
  "status": {
@@ -17402,11 +17026,7 @@
17402
17026
  },
17403
17027
  "Owner": {
17404
17028
  "title": "Owner",
17405
- "required": [
17406
- "server",
17407
- "user",
17408
- "_serialized"
17409
- ],
17029
+ "required": ["server", "user", "_serialized"],
17410
17030
  "type": "object",
17411
17031
  "properties": {
17412
17032
  "server": {
@@ -17427,11 +17047,7 @@
17427
17047
  },
17428
17048
  "Participants1": {
17429
17049
  "title": "Participants1",
17430
- "required": [
17431
- "id",
17432
- "isAdmin",
17433
- "isSuperAdmin"
17434
- ],
17050
+ "required": ["id", "isAdmin", "isSuperAdmin"],
17435
17051
  "type": "object",
17436
17052
  "properties": {
17437
17053
  "id": {
@@ -17456,11 +17072,7 @@
17456
17072
  },
17457
17073
  "SubjectOwner": {
17458
17074
  "title": "SubjectOwner",
17459
- "required": [
17460
- "server",
17461
- "user",
17462
- "_serialized"
17463
- ],
17075
+ "required": ["server", "user", "_serialized"],
17464
17076
  "type": "object",
17465
17077
  "properties": {
17466
17078
  "server": {
@@ -17481,10 +17093,7 @@
17481
17093
  },
17482
17094
  "GetGroupInviteLink": {
17483
17095
  "title": "GetGroupInviteLink",
17484
- "required": [
17485
- "status",
17486
- "response"
17487
- ],
17096
+ "required": ["status", "response"],
17488
17097
  "type": "object",
17489
17098
  "properties": {
17490
17099
  "status": {
@@ -17501,10 +17110,7 @@
17501
17110
  },
17502
17111
  "GetGroupMembersIds": {
17503
17112
  "title": "GetGroupMembersIds",
17504
- "required": [
17505
- "status",
17506
- "response"
17507
- ],
17113
+ "required": ["status", "response"],
17508
17114
  "type": "object",
17509
17115
  "properties": {
17510
17116
  "status": {
@@ -17536,11 +17142,7 @@
17536
17142
  },
17537
17143
  "Response18": {
17538
17144
  "title": "Response18",
17539
- "required": [
17540
- "server",
17541
- "user",
17542
- "_serialized"
17543
- ],
17145
+ "required": ["server", "user", "_serialized"],
17544
17146
  "type": "object",
17545
17147
  "properties": {
17546
17148
  "server": {
@@ -17561,10 +17163,7 @@
17561
17163
  },
17562
17164
  "GetGroupMembers": {
17563
17165
  "title": "GetGroupMembers",
17564
- "required": [
17565
- "status",
17566
- "response"
17567
- ],
17166
+ "required": ["status", "response"],
17568
17167
  "type": "object",
17569
17168
  "properties": {
17570
17169
  "status": {
@@ -17755,9 +17354,7 @@
17755
17354
  },
17756
17355
  "LeaveGroupRequest": {
17757
17356
  "title": "LeaveGroupRequest",
17758
- "required": [
17759
- "groupId"
17760
- ],
17357
+ "required": ["groupId"],
17761
17358
  "type": "object",
17762
17359
  "properties": {
17763
17360
  "groupId": {
@@ -17770,11 +17367,7 @@
17770
17367
  },
17771
17368
  "LeaveGroup": {
17772
17369
  "title": "LeaveGroup",
17773
- "required": [
17774
- "status",
17775
- "messages",
17776
- "group"
17777
- ],
17370
+ "required": ["status", "messages", "group"],
17778
17371
  "type": "object",
17779
17372
  "properties": {
17780
17373
  "status": {
@@ -17795,10 +17388,7 @@
17795
17388
  },
17796
17389
  "RemoveParticipantRequest": {
17797
17390
  "title": "RemoveParticipantRequest",
17798
- "required": [
17799
- "groupId",
17800
- "phone"
17801
- ],
17391
+ "required": ["groupId", "phone"],
17802
17392
  "type": "object",
17803
17393
  "properties": {
17804
17394
  "groupId": {
@@ -17815,10 +17405,7 @@
17815
17405
  },
17816
17406
  "SetGroupDescriptionRequest": {
17817
17407
  "title": "SetGroupDescriptionRequest",
17818
- "required": [
17819
- "groupId",
17820
- "description"
17821
- ],
17408
+ "required": ["groupId", "description"],
17822
17409
  "type": "object",
17823
17410
  "properties": {
17824
17411
  "groupId": {
@@ -17835,10 +17422,7 @@
17835
17422
  },
17836
17423
  "SetGroupDescription": {
17837
17424
  "title": "SetGroupDescription",
17838
- "required": [
17839
- "status",
17840
- "response"
17841
- ],
17425
+ "required": ["status", "response"],
17842
17426
  "type": "object",
17843
17427
  "properties": {
17844
17428
  "status": {
@@ -17855,11 +17439,7 @@
17855
17439
  },
17856
17440
  "SetGroupPropertyRequest": {
17857
17441
  "title": "SetGroupPropertyRequest",
17858
- "required": [
17859
- "groupId",
17860
- "property",
17861
- "value"
17862
- ],
17442
+ "required": ["groupId", "property", "value"],
17863
17443
  "type": "object",
17864
17444
  "properties": {
17865
17445
  "groupId": {
@@ -17880,10 +17460,7 @@
17880
17460
  },
17881
17461
  "SetGroupProperty": {
17882
17462
  "title": "SetGroupProperty",
17883
- "required": [
17884
- "status",
17885
- "response"
17886
- ],
17463
+ "required": ["status", "response"],
17887
17464
  "type": "object",
17888
17465
  "properties": {
17889
17466
  "status": {
@@ -17900,10 +17477,7 @@
17900
17477
  },
17901
17478
  "SetGroupSubjectRequest": {
17902
17479
  "title": "SetGroupSubjectRequest",
17903
- "required": [
17904
- "groupId",
17905
- "title"
17906
- ],
17480
+ "required": ["groupId", "title"],
17907
17481
  "type": "object",
17908
17482
  "properties": {
17909
17483
  "groupId": {
@@ -17920,10 +17494,7 @@
17920
17494
  },
17921
17495
  "SetGroupSubject": {
17922
17496
  "title": "SetGroupSubject",
17923
- "required": [
17924
- "status",
17925
- "response"
17926
- ],
17497
+ "required": ["status", "response"],
17927
17498
  "type": "object",
17928
17499
  "properties": {
17929
17500
  "status": {
@@ -17940,10 +17511,7 @@
17940
17511
  },
17941
17512
  "SetMessagesAdminsOnlyRequest": {
17942
17513
  "title": "SetMessagesAdminsOnlyRequest",
17943
- "required": [
17944
- "groupId",
17945
- "value"
17946
- ],
17514
+ "required": ["groupId", "value"],
17947
17515
  "type": "object",
17948
17516
  "properties": {
17949
17517
  "groupId": {
@@ -17960,10 +17528,7 @@
17960
17528
  },
17961
17529
  "SetMessagesAdminsOnly": {
17962
17530
  "title": "SetMessagesAdminsOnly",
17963
- "required": [
17964
- "status",
17965
- "response"
17966
- ],
17531
+ "required": ["status", "response"],
17967
17532
  "type": "object",
17968
17533
  "properties": {
17969
17534
  "status": {
@@ -17980,11 +17545,7 @@
17980
17545
  },
17981
17546
  "BatterystatusCopy": {
17982
17547
  "title": "BatterystatusCopy",
17983
- "required": [
17984
- "connected",
17985
- "locales",
17986
- "pushname"
17987
- ],
17548
+ "required": ["connected", "locales", "pushname"],
17988
17549
  "type": "object",
17989
17550
  "properties": {
17990
17551
  "connected": {
@@ -18005,9 +17566,7 @@
18005
17566
  },
18006
17567
  "BlockcontactRequest": {
18007
17568
  "title": "BlockcontactRequest",
18008
- "required": [
18009
- "phone"
18010
- ],
17569
+ "required": ["phone"],
18011
17570
  "type": "object",
18012
17571
  "properties": {
18013
17572
  "phone": {
@@ -18020,10 +17579,7 @@
18020
17579
  },
18021
17580
  "Blockcontact": {
18022
17581
  "title": "Blockcontact",
18023
- "required": [
18024
- "status",
18025
- "message"
18026
- ],
17582
+ "required": ["status", "message"],
18027
17583
  "type": "object",
18028
17584
  "properties": {
18029
17585
  "status": {
@@ -18040,9 +17596,7 @@
18040
17596
  },
18041
17597
  "UnBlockcontactRequest": {
18042
17598
  "title": "UnBlockcontactRequest",
18043
- "required": [
18044
- "phone"
18045
- ],
17599
+ "required": ["phone"],
18046
17600
  "type": "object",
18047
17601
  "properties": {
18048
17602
  "phone": {
@@ -18055,10 +17609,7 @@
18055
17609
  },
18056
17610
  "UnBlockcontact": {
18057
17611
  "title": "UnBlockcontact",
18058
- "required": [
18059
- "status",
18060
- "message"
18061
- ],
17612
+ "required": ["status", "message"],
18062
17613
  "type": "object",
18063
17614
  "properties": {
18064
17615
  "status": {
@@ -18075,10 +17626,7 @@
18075
17626
  },
18076
17627
  "Blocklist": {
18077
17628
  "title": "Blocklist",
18078
- "required": [
18079
- "status",
18080
- "response"
18081
- ],
17629
+ "required": ["status", "response"],
18082
17630
  "type": "object",
18083
17631
  "properties": {
18084
17632
  "status": {
@@ -18103,9 +17651,7 @@
18103
17651
  },
18104
17652
  "Response20": {
18105
17653
  "title": "Response20",
18106
- "required": [
18107
- "phone"
18108
- ],
17654
+ "required": ["phone"],
18109
17655
  "type": "object",
18110
17656
  "properties": {
18111
17657
  "phone": {