@wppconnect/server 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/config.json +2 -1
- package/dist/controller/deviceController.js +16 -2
- package/dist/controller/deviceController.js.map +1 -1
- package/dist/controller/groupController.js +2 -7
- package/dist/controller/groupController.js.map +1 -1
- package/dist/controller/labelsController.js +58 -0
- package/dist/controller/labelsController.js.map +1 -0
- package/dist/controller/messageController.js +14 -32
- package/dist/controller/messageController.js.map +1 -1
- package/dist/controller/statusController.js +67 -0
- package/dist/controller/statusController.js.map +1 -0
- package/dist/routes/index.js +27 -3
- package/dist/routes/index.js.map +1 -1
- package/dist/swagger.json +1515 -157
- package/dist/util/createSessionUtil.js +12 -0
- package/dist/util/createSessionUtil.js.map +1 -1
- package/package.json +10 -8
package/dist/swagger.json
CHANGED
|
@@ -1608,7 +1608,7 @@
|
|
|
1608
1608
|
"get": {
|
|
1609
1609
|
"tags": ["Chat"],
|
|
1610
1610
|
"summary": "All Messages in Chat",
|
|
1611
|
-
"description": "Retrieves all messages already loaded in a chat For loading every message use load Messages In Chat",
|
|
1611
|
+
"description": "Depreceated in favor of /get-messages. Retrieves all messages already loaded in a chat For loading every message use load Messages In Chat",
|
|
1612
1612
|
"operationId": "AllMessagesinChat",
|
|
1613
1613
|
"parameters": [
|
|
1614
1614
|
{
|
|
@@ -2237,7 +2237,7 @@
|
|
|
2237
2237
|
}
|
|
2238
2238
|
}
|
|
2239
2239
|
},
|
|
2240
|
-
"deprecated":
|
|
2240
|
+
"deprecated": true
|
|
2241
2241
|
}
|
|
2242
2242
|
},
|
|
2243
2243
|
"/all-new-messages": {
|
|
@@ -4177,6 +4177,119 @@
|
|
|
4177
4177
|
"deprecated": false
|
|
4178
4178
|
}
|
|
4179
4179
|
},
|
|
4180
|
+
"/react-message": {
|
|
4181
|
+
"post": {
|
|
4182
|
+
"tags": ["Chat"],
|
|
4183
|
+
"summary": "React Message",
|
|
4184
|
+
"description": "React Message with Emoji",
|
|
4185
|
+
"operationId": "ReactMessage",
|
|
4186
|
+
"parameters": [],
|
|
4187
|
+
"requestBody": {
|
|
4188
|
+
"description": "",
|
|
4189
|
+
"content": {
|
|
4190
|
+
"application/json": {
|
|
4191
|
+
"schema": {
|
|
4192
|
+
"$ref": "#/components/schemas/ReactMessageRequest"
|
|
4193
|
+
},
|
|
4194
|
+
"example": {
|
|
4195
|
+
"msgId": "false_556593077171@c.us_1B69CFDC0BDBAB37B2B628D90CBA0F47",
|
|
4196
|
+
"reaction": "🤯"
|
|
4197
|
+
}
|
|
4198
|
+
}
|
|
4199
|
+
},
|
|
4200
|
+
"required": true
|
|
4201
|
+
},
|
|
4202
|
+
"responses": {
|
|
4203
|
+
"200": {
|
|
4204
|
+
"description": "OK",
|
|
4205
|
+
"headers": {
|
|
4206
|
+
"X-Powered-By": {
|
|
4207
|
+
"content": {
|
|
4208
|
+
"text/plain": {
|
|
4209
|
+
"schema": {
|
|
4210
|
+
"type": "string"
|
|
4211
|
+
},
|
|
4212
|
+
"example": "Express"
|
|
4213
|
+
}
|
|
4214
|
+
}
|
|
4215
|
+
},
|
|
4216
|
+
"Access-Control-Allow-Origin": {
|
|
4217
|
+
"content": {
|
|
4218
|
+
"text/plain": {
|
|
4219
|
+
"schema": {
|
|
4220
|
+
"type": "string"
|
|
4221
|
+
},
|
|
4222
|
+
"example": "*"
|
|
4223
|
+
}
|
|
4224
|
+
}
|
|
4225
|
+
},
|
|
4226
|
+
"Content-Length": {
|
|
4227
|
+
"content": {
|
|
4228
|
+
"text/plain": {
|
|
4229
|
+
"schema": {
|
|
4230
|
+
"type": "string"
|
|
4231
|
+
},
|
|
4232
|
+
"example": "48"
|
|
4233
|
+
}
|
|
4234
|
+
}
|
|
4235
|
+
},
|
|
4236
|
+
"ETag": {
|
|
4237
|
+
"content": {
|
|
4238
|
+
"text/plain": {
|
|
4239
|
+
"schema": {
|
|
4240
|
+
"type": "string"
|
|
4241
|
+
},
|
|
4242
|
+
"example": "W/\"30-qy+RPELj2ZbNf7LuA11j8OW31yc\""
|
|
4243
|
+
}
|
|
4244
|
+
}
|
|
4245
|
+
},
|
|
4246
|
+
"Date": {
|
|
4247
|
+
"content": {
|
|
4248
|
+
"text/plain": {
|
|
4249
|
+
"schema": {
|
|
4250
|
+
"type": "string"
|
|
4251
|
+
},
|
|
4252
|
+
"example": "Thu, 13 May 2021 19:35:24 GMT"
|
|
4253
|
+
}
|
|
4254
|
+
}
|
|
4255
|
+
},
|
|
4256
|
+
"Connection": {
|
|
4257
|
+
"content": {
|
|
4258
|
+
"text/plain": {
|
|
4259
|
+
"schema": {
|
|
4260
|
+
"type": "string"
|
|
4261
|
+
},
|
|
4262
|
+
"example": "keep-alive"
|
|
4263
|
+
}
|
|
4264
|
+
}
|
|
4265
|
+
},
|
|
4266
|
+
"Keep-Alive": {
|
|
4267
|
+
"content": {
|
|
4268
|
+
"text/plain": {
|
|
4269
|
+
"schema": {
|
|
4270
|
+
"type": "string"
|
|
4271
|
+
},
|
|
4272
|
+
"example": "timeout=5"
|
|
4273
|
+
}
|
|
4274
|
+
}
|
|
4275
|
+
}
|
|
4276
|
+
},
|
|
4277
|
+
"content": {
|
|
4278
|
+
"application/json; charset=utf-8": {
|
|
4279
|
+
"schema": {
|
|
4280
|
+
"$ref": "#/components/schemas/ReactMessage"
|
|
4281
|
+
},
|
|
4282
|
+
"example": {
|
|
4283
|
+
"status": "Success",
|
|
4284
|
+
"message": "Reação enviada"
|
|
4285
|
+
}
|
|
4286
|
+
}
|
|
4287
|
+
}
|
|
4288
|
+
}
|
|
4289
|
+
},
|
|
4290
|
+
"deprecated": false
|
|
4291
|
+
}
|
|
4292
|
+
},
|
|
4180
4293
|
"/mark-unseen": {
|
|
4181
4294
|
"post": {
|
|
4182
4295
|
"tags": ["Chat"],
|
|
@@ -5748,7 +5861,7 @@
|
|
|
5748
5861
|
"phone": "556593077171-1620997998",
|
|
5749
5862
|
"message": "ola como isso funciona @556593077171@c.us",
|
|
5750
5863
|
"mentioned": ["@556593077171@c.us"],
|
|
5751
|
-
"
|
|
5864
|
+
"isGroup": true
|
|
5752
5865
|
}
|
|
5753
5866
|
}
|
|
5754
5867
|
},
|
|
@@ -5845,69 +5958,24 @@
|
|
|
5845
5958
|
"deprecated": false
|
|
5846
5959
|
}
|
|
5847
5960
|
},
|
|
5848
|
-
"/
|
|
5961
|
+
"/send-sticker": {
|
|
5849
5962
|
"post": {
|
|
5850
|
-
"tags": ["
|
|
5851
|
-
"summary": "
|
|
5852
|
-
"description": "
|
|
5853
|
-
"operationId": "
|
|
5963
|
+
"tags": ["Send Message"],
|
|
5964
|
+
"summary": "Send Sticker",
|
|
5965
|
+
"description": "Sends sticker",
|
|
5966
|
+
"operationId": "SendSticker",
|
|
5854
5967
|
"parameters": [],
|
|
5855
5968
|
"requestBody": {
|
|
5856
5969
|
"description": "",
|
|
5857
5970
|
"content": {
|
|
5858
5971
|
"application/json": {
|
|
5859
5972
|
"schema": {
|
|
5860
|
-
"$ref": "#/components/schemas/
|
|
5861
|
-
},
|
|
5862
|
-
"example": {
|
|
5863
|
-
"name": "My New Name"
|
|
5864
|
-
}
|
|
5865
|
-
}
|
|
5866
|
-
},
|
|
5867
|
-
"required": true
|
|
5868
|
-
},
|
|
5869
|
-
"responses": {
|
|
5870
|
-
"201": {
|
|
5871
|
-
"description": "Created",
|
|
5872
|
-
"headers": {},
|
|
5873
|
-
"content": {}
|
|
5874
|
-
},
|
|
5875
|
-
"400": {
|
|
5876
|
-
"description": "Bad Request",
|
|
5877
|
-
"headers": {},
|
|
5878
|
-
"content": {}
|
|
5879
|
-
},
|
|
5880
|
-
"401": {
|
|
5881
|
-
"description": "Unauthorized",
|
|
5882
|
-
"headers": {},
|
|
5883
|
-
"content": {}
|
|
5884
|
-
}
|
|
5885
|
-
},
|
|
5886
|
-
"deprecated": false
|
|
5887
|
-
}
|
|
5888
|
-
},
|
|
5889
|
-
"/set-profile-pic": {
|
|
5890
|
-
"post": {
|
|
5891
|
-
"tags": ["Profile"],
|
|
5892
|
-
"summary": "Change Profile Image",
|
|
5893
|
-
"description": "Altera a foto do usuário do perfil do WhatsApp.",
|
|
5894
|
-
"operationId": "ChangeProfileImage",
|
|
5895
|
-
"parameters": [],
|
|
5896
|
-
"requestBody": {
|
|
5897
|
-
"description": "",
|
|
5898
|
-
"content": {
|
|
5899
|
-
"multipart/form-data": {
|
|
5900
|
-
"schema": {
|
|
5901
|
-
"type": "object",
|
|
5902
|
-
"properties": {
|
|
5903
|
-
"file": {
|
|
5904
|
-
"type": "string",
|
|
5905
|
-
"format": "base64"
|
|
5906
|
-
}
|
|
5907
|
-
}
|
|
5973
|
+
"$ref": "#/components/schemas/SendStickerRequest"
|
|
5908
5974
|
},
|
|
5909
5975
|
"example": {
|
|
5910
|
-
"
|
|
5976
|
+
"phone": "556593077171",
|
|
5977
|
+
"path": "https://www.camarabracodotrombudo.sc.gov.br/media/noticia/link-para-participacao-da-audiencia-publica-54.jpg",
|
|
5978
|
+
"isGroup": false
|
|
5911
5979
|
}
|
|
5912
5980
|
}
|
|
5913
5981
|
},
|
|
@@ -5943,7 +6011,7 @@
|
|
|
5943
6011
|
"schema": {
|
|
5944
6012
|
"type": "string"
|
|
5945
6013
|
},
|
|
5946
|
-
"example": "
|
|
6014
|
+
"example": "64"
|
|
5947
6015
|
}
|
|
5948
6016
|
}
|
|
5949
6017
|
},
|
|
@@ -5953,7 +6021,7 @@
|
|
|
5953
6021
|
"schema": {
|
|
5954
6022
|
"type": "string"
|
|
5955
6023
|
},
|
|
5956
|
-
"example": "W/\"
|
|
6024
|
+
"example": "W/\"40-aUMmvTS4ltJXN27NdzhnICW9ZI4\""
|
|
5957
6025
|
}
|
|
5958
6026
|
}
|
|
5959
6027
|
},
|
|
@@ -5963,7 +6031,7 @@
|
|
|
5963
6031
|
"schema": {
|
|
5964
6032
|
"type": "string"
|
|
5965
6033
|
},
|
|
5966
|
-
"example": "
|
|
6034
|
+
"example": "Fri, 14 May 2021 12:58:33 GMT"
|
|
5967
6035
|
}
|
|
5968
6036
|
}
|
|
5969
6037
|
},
|
|
@@ -5991,13 +6059,11 @@
|
|
|
5991
6059
|
"content": {
|
|
5992
6060
|
"application/json; charset=utf-8": {
|
|
5993
6061
|
"schema": {
|
|
5994
|
-
"$ref": "#/components/schemas/
|
|
6062
|
+
"$ref": "#/components/schemas/SendLinkPreview"
|
|
5995
6063
|
},
|
|
5996
6064
|
"example": {
|
|
5997
|
-
"status": "
|
|
5998
|
-
"
|
|
5999
|
-
"message": "Profile photo successfully changed"
|
|
6000
|
-
}
|
|
6065
|
+
"status": "Success",
|
|
6066
|
+
"message": "O link foi enviado com sucesso."
|
|
6001
6067
|
}
|
|
6002
6068
|
}
|
|
6003
6069
|
}
|
|
@@ -6006,22 +6072,24 @@
|
|
|
6006
6072
|
"deprecated": false
|
|
6007
6073
|
}
|
|
6008
6074
|
},
|
|
6009
|
-
"/
|
|
6075
|
+
"/send-sticker-gif": {
|
|
6010
6076
|
"post": {
|
|
6011
|
-
"tags": ["
|
|
6012
|
-
"summary": "
|
|
6013
|
-
"description": "
|
|
6014
|
-
"operationId": "
|
|
6077
|
+
"tags": ["Send Message"],
|
|
6078
|
+
"summary": "Send Sticker",
|
|
6079
|
+
"description": "Sends sticker gif",
|
|
6080
|
+
"operationId": "SendStickerGif",
|
|
6015
6081
|
"parameters": [],
|
|
6016
6082
|
"requestBody": {
|
|
6017
6083
|
"description": "",
|
|
6018
6084
|
"content": {
|
|
6019
6085
|
"application/json": {
|
|
6020
6086
|
"schema": {
|
|
6021
|
-
"$ref": "#/components/schemas/
|
|
6087
|
+
"$ref": "#/components/schemas/SendStickerGifRequest"
|
|
6022
6088
|
},
|
|
6023
6089
|
"example": {
|
|
6024
|
-
"
|
|
6090
|
+
"phone": "556593077171",
|
|
6091
|
+
"path": "https://media.giphy.com/media/hpXFi66bfQm7e81ohw/giphy.gif",
|
|
6092
|
+
"isGroup": false
|
|
6025
6093
|
}
|
|
6026
6094
|
}
|
|
6027
6095
|
},
|
|
@@ -6057,7 +6125,7 @@
|
|
|
6057
6125
|
"schema": {
|
|
6058
6126
|
"type": "string"
|
|
6059
6127
|
},
|
|
6060
|
-
"example": "
|
|
6128
|
+
"example": "64"
|
|
6061
6129
|
}
|
|
6062
6130
|
}
|
|
6063
6131
|
},
|
|
@@ -6067,7 +6135,7 @@
|
|
|
6067
6135
|
"schema": {
|
|
6068
6136
|
"type": "string"
|
|
6069
6137
|
},
|
|
6070
|
-
"example": "W/\"
|
|
6138
|
+
"example": "W/\"40-aUMmvTS4ltJXN27NdzhnICW9ZI4\""
|
|
6071
6139
|
}
|
|
6072
6140
|
}
|
|
6073
6141
|
},
|
|
@@ -6077,7 +6145,7 @@
|
|
|
6077
6145
|
"schema": {
|
|
6078
6146
|
"type": "string"
|
|
6079
6147
|
},
|
|
6080
|
-
"example": "
|
|
6148
|
+
"example": "Fri, 14 May 2021 12:58:33 GMT"
|
|
6081
6149
|
}
|
|
6082
6150
|
}
|
|
6083
6151
|
},
|
|
@@ -6105,10 +6173,11 @@
|
|
|
6105
6173
|
"content": {
|
|
6106
6174
|
"application/json; charset=utf-8": {
|
|
6107
6175
|
"schema": {
|
|
6108
|
-
"$ref": "#/components/schemas/
|
|
6176
|
+
"$ref": "#/components/schemas/SendLinkPreview"
|
|
6109
6177
|
},
|
|
6110
6178
|
"example": {
|
|
6111
|
-
"status": "Success"
|
|
6179
|
+
"status": "Success",
|
|
6180
|
+
"message": "O link foi enviado com sucesso."
|
|
6112
6181
|
}
|
|
6113
6182
|
}
|
|
6114
6183
|
}
|
|
@@ -6117,47 +6186,964 @@
|
|
|
6117
6186
|
"deprecated": false
|
|
6118
6187
|
}
|
|
6119
6188
|
},
|
|
6120
|
-
"/
|
|
6121
|
-
"
|
|
6122
|
-
"tags": ["
|
|
6123
|
-
"summary": "
|
|
6124
|
-
"description": "
|
|
6125
|
-
"operationId": "
|
|
6126
|
-
"parameters": [
|
|
6127
|
-
|
|
6128
|
-
|
|
6129
|
-
|
|
6130
|
-
"
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
"
|
|
6135
|
-
|
|
6189
|
+
"/change-username": {
|
|
6190
|
+
"post": {
|
|
6191
|
+
"tags": ["Profile"],
|
|
6192
|
+
"summary": "Change Username",
|
|
6193
|
+
"description": "Sets current user profile name",
|
|
6194
|
+
"operationId": "ChangeUsername",
|
|
6195
|
+
"parameters": [],
|
|
6196
|
+
"requestBody": {
|
|
6197
|
+
"description": "",
|
|
6198
|
+
"content": {
|
|
6199
|
+
"application/json": {
|
|
6200
|
+
"schema": {
|
|
6201
|
+
"$ref": "#/components/schemas/ChangeUsernameRequest"
|
|
6202
|
+
},
|
|
6203
|
+
"example": {
|
|
6204
|
+
"name": "My New Name"
|
|
6205
|
+
}
|
|
6136
6206
|
}
|
|
6137
|
-
}
|
|
6138
|
-
|
|
6207
|
+
},
|
|
6208
|
+
"required": true
|
|
6209
|
+
},
|
|
6139
6210
|
"responses": {
|
|
6140
|
-
"
|
|
6141
|
-
"description": "
|
|
6142
|
-
"headers": {
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
|
|
6211
|
+
"201": {
|
|
6212
|
+
"description": "Created",
|
|
6213
|
+
"headers": {},
|
|
6214
|
+
"content": {}
|
|
6215
|
+
},
|
|
6216
|
+
"400": {
|
|
6217
|
+
"description": "Bad Request",
|
|
6218
|
+
"headers": {},
|
|
6219
|
+
"content": {}
|
|
6220
|
+
},
|
|
6221
|
+
"401": {
|
|
6222
|
+
"description": "Unauthorized",
|
|
6223
|
+
"headers": {},
|
|
6224
|
+
"content": {}
|
|
6225
|
+
}
|
|
6226
|
+
},
|
|
6227
|
+
"deprecated": false
|
|
6228
|
+
}
|
|
6229
|
+
},
|
|
6230
|
+
"/set-profile-pic": {
|
|
6231
|
+
"post": {
|
|
6232
|
+
"tags": ["Profile"],
|
|
6233
|
+
"summary": "Change Profile Image",
|
|
6234
|
+
"description": "Altera a foto do usuário do perfil do WhatsApp.",
|
|
6235
|
+
"operationId": "ChangeProfileImage",
|
|
6236
|
+
"parameters": [],
|
|
6237
|
+
"requestBody": {
|
|
6238
|
+
"description": "",
|
|
6239
|
+
"content": {
|
|
6240
|
+
"multipart/form-data": {
|
|
6241
|
+
"schema": {
|
|
6242
|
+
"type": "object",
|
|
6243
|
+
"properties": {
|
|
6244
|
+
"file": {
|
|
6245
|
+
"type": "string",
|
|
6246
|
+
"format": "base64"
|
|
6247
|
+
}
|
|
6248
|
+
}
|
|
6249
|
+
},
|
|
6250
|
+
"example": {
|
|
6251
|
+
"file": "Send a file format with FormData"
|
|
6252
|
+
}
|
|
6253
|
+
}
|
|
6254
|
+
},
|
|
6255
|
+
"required": true
|
|
6256
|
+
},
|
|
6257
|
+
"responses": {
|
|
6258
|
+
"200": {
|
|
6259
|
+
"description": "OK",
|
|
6260
|
+
"headers": {
|
|
6261
|
+
"X-Powered-By": {
|
|
6262
|
+
"content": {
|
|
6263
|
+
"text/plain": {
|
|
6264
|
+
"schema": {
|
|
6265
|
+
"type": "string"
|
|
6266
|
+
},
|
|
6267
|
+
"example": "Express"
|
|
6268
|
+
}
|
|
6269
|
+
}
|
|
6270
|
+
},
|
|
6271
|
+
"Access-Control-Allow-Origin": {
|
|
6272
|
+
"content": {
|
|
6273
|
+
"text/plain": {
|
|
6274
|
+
"schema": {
|
|
6275
|
+
"type": "string"
|
|
6276
|
+
},
|
|
6277
|
+
"example": "*"
|
|
6278
|
+
}
|
|
6279
|
+
}
|
|
6280
|
+
},
|
|
6281
|
+
"Content-Length": {
|
|
6282
|
+
"content": {
|
|
6283
|
+
"text/plain": {
|
|
6284
|
+
"schema": {
|
|
6285
|
+
"type": "string"
|
|
6286
|
+
},
|
|
6287
|
+
"example": "68"
|
|
6288
|
+
}
|
|
6289
|
+
}
|
|
6290
|
+
},
|
|
6291
|
+
"ETag": {
|
|
6292
|
+
"content": {
|
|
6293
|
+
"text/plain": {
|
|
6294
|
+
"schema": {
|
|
6295
|
+
"type": "string"
|
|
6296
|
+
},
|
|
6297
|
+
"example": "W/\"44-OK9r1fvQscCKihEnul/IvAFGmB8\""
|
|
6298
|
+
}
|
|
6299
|
+
}
|
|
6300
|
+
},
|
|
6301
|
+
"Date": {
|
|
6302
|
+
"content": {
|
|
6303
|
+
"text/plain": {
|
|
6304
|
+
"schema": {
|
|
6305
|
+
"type": "string"
|
|
6306
|
+
},
|
|
6307
|
+
"example": "Thu, 13 May 2021 18:08:56 GMT"
|
|
6308
|
+
}
|
|
6309
|
+
}
|
|
6310
|
+
},
|
|
6311
|
+
"Connection": {
|
|
6312
|
+
"content": {
|
|
6313
|
+
"text/plain": {
|
|
6314
|
+
"schema": {
|
|
6315
|
+
"type": "string"
|
|
6316
|
+
},
|
|
6317
|
+
"example": "keep-alive"
|
|
6318
|
+
}
|
|
6319
|
+
}
|
|
6320
|
+
},
|
|
6321
|
+
"Keep-Alive": {
|
|
6322
|
+
"content": {
|
|
6323
|
+
"text/plain": {
|
|
6324
|
+
"schema": {
|
|
6325
|
+
"type": "string"
|
|
6326
|
+
},
|
|
6327
|
+
"example": "timeout=5"
|
|
6328
|
+
}
|
|
6329
|
+
}
|
|
6330
|
+
}
|
|
6331
|
+
},
|
|
6332
|
+
"content": {
|
|
6333
|
+
"application/json; charset=utf-8": {
|
|
6334
|
+
"schema": {
|
|
6335
|
+
"$ref": "#/components/schemas/ChangeProfileImage"
|
|
6336
|
+
},
|
|
6337
|
+
"example": {
|
|
6338
|
+
"status": "success",
|
|
6339
|
+
"response": {
|
|
6340
|
+
"message": "Profile photo successfully changed"
|
|
6341
|
+
}
|
|
6342
|
+
}
|
|
6343
|
+
}
|
|
6344
|
+
}
|
|
6345
|
+
}
|
|
6346
|
+
},
|
|
6347
|
+
"deprecated": false
|
|
6348
|
+
}
|
|
6349
|
+
},
|
|
6350
|
+
"/profile-status": {
|
|
6351
|
+
"post": {
|
|
6352
|
+
"tags": ["Profile"],
|
|
6353
|
+
"summary": "Change Profile Status",
|
|
6354
|
+
"description": "Sets current user profile status",
|
|
6355
|
+
"operationId": "ChangeProfileStatus",
|
|
6356
|
+
"parameters": [],
|
|
6357
|
+
"requestBody": {
|
|
6358
|
+
"description": "",
|
|
6359
|
+
"content": {
|
|
6360
|
+
"application/json": {
|
|
6361
|
+
"schema": {
|
|
6362
|
+
"$ref": "#/components/schemas/ChangeProfileStatusRequest"
|
|
6363
|
+
},
|
|
6364
|
+
"example": {
|
|
6365
|
+
"status": "My new status"
|
|
6366
|
+
}
|
|
6367
|
+
}
|
|
6368
|
+
},
|
|
6369
|
+
"required": true
|
|
6370
|
+
},
|
|
6371
|
+
"responses": {
|
|
6372
|
+
"200": {
|
|
6373
|
+
"description": "OK",
|
|
6374
|
+
"headers": {
|
|
6375
|
+
"X-Powered-By": {
|
|
6376
|
+
"content": {
|
|
6377
|
+
"text/plain": {
|
|
6378
|
+
"schema": {
|
|
6379
|
+
"type": "string"
|
|
6380
|
+
},
|
|
6381
|
+
"example": "Express"
|
|
6382
|
+
}
|
|
6383
|
+
}
|
|
6384
|
+
},
|
|
6385
|
+
"Access-Control-Allow-Origin": {
|
|
6386
|
+
"content": {
|
|
6387
|
+
"text/plain": {
|
|
6388
|
+
"schema": {
|
|
6389
|
+
"type": "string"
|
|
6390
|
+
},
|
|
6391
|
+
"example": "*"
|
|
6392
|
+
}
|
|
6393
|
+
}
|
|
6394
|
+
},
|
|
6395
|
+
"Content-Length": {
|
|
6396
|
+
"content": {
|
|
6397
|
+
"text/plain": {
|
|
6398
|
+
"schema": {
|
|
6399
|
+
"type": "string"
|
|
6400
|
+
},
|
|
6401
|
+
"example": "20"
|
|
6402
|
+
}
|
|
6403
|
+
}
|
|
6404
|
+
},
|
|
6405
|
+
"ETag": {
|
|
6406
|
+
"content": {
|
|
6407
|
+
"text/plain": {
|
|
6408
|
+
"schema": {
|
|
6409
|
+
"type": "string"
|
|
6410
|
+
},
|
|
6411
|
+
"example": "W/\"14-Aecwmfr5xTp+PReMihhLNM3Z9mY\""
|
|
6412
|
+
}
|
|
6413
|
+
}
|
|
6414
|
+
},
|
|
6415
|
+
"Date": {
|
|
6416
|
+
"content": {
|
|
6417
|
+
"text/plain": {
|
|
6418
|
+
"schema": {
|
|
6419
|
+
"type": "string"
|
|
6420
|
+
},
|
|
6421
|
+
"example": "Thu, 13 May 2021 18:12:58 GMT"
|
|
6422
|
+
}
|
|
6423
|
+
}
|
|
6424
|
+
},
|
|
6425
|
+
"Connection": {
|
|
6426
|
+
"content": {
|
|
6427
|
+
"text/plain": {
|
|
6428
|
+
"schema": {
|
|
6429
|
+
"type": "string"
|
|
6430
|
+
},
|
|
6431
|
+
"example": "keep-alive"
|
|
6432
|
+
}
|
|
6433
|
+
}
|
|
6434
|
+
},
|
|
6435
|
+
"Keep-Alive": {
|
|
6436
|
+
"content": {
|
|
6437
|
+
"text/plain": {
|
|
6438
|
+
"schema": {
|
|
6439
|
+
"type": "string"
|
|
6440
|
+
},
|
|
6441
|
+
"example": "timeout=5"
|
|
6442
|
+
}
|
|
6443
|
+
}
|
|
6444
|
+
}
|
|
6445
|
+
},
|
|
6446
|
+
"content": {
|
|
6447
|
+
"application/json; charset=utf-8": {
|
|
6448
|
+
"schema": {
|
|
6449
|
+
"$ref": "#/components/schemas/ChangeProfileStatus"
|
|
6450
|
+
},
|
|
6451
|
+
"example": {
|
|
6452
|
+
"status": "Success"
|
|
6453
|
+
}
|
|
6454
|
+
}
|
|
6455
|
+
}
|
|
6456
|
+
}
|
|
6457
|
+
},
|
|
6458
|
+
"deprecated": false
|
|
6459
|
+
}
|
|
6460
|
+
},
|
|
6461
|
+
"/send-image-storie": {
|
|
6462
|
+
"post": {
|
|
6463
|
+
"tags": ["Status Stories"],
|
|
6464
|
+
"summary": "Send Image Storie ",
|
|
6465
|
+
"description": "Send Image Storie",
|
|
6466
|
+
"operationId": "SendImageStorie",
|
|
6467
|
+
"parameters": [],
|
|
6468
|
+
"requestBody": {
|
|
6469
|
+
"description": "",
|
|
6470
|
+
"content": {
|
|
6471
|
+
"application/json": {
|
|
6472
|
+
"schema": {
|
|
6473
|
+
"$ref": "#/components/schemas/SendImageStorieRequest"
|
|
6474
|
+
},
|
|
6475
|
+
"example": {
|
|
6476
|
+
"path": "https://pbs.twimg.com/profile_images/549882655932948480/LCZWmFyW_400x400.jpeg"
|
|
6477
|
+
}
|
|
6478
|
+
}
|
|
6479
|
+
},
|
|
6480
|
+
"required": true
|
|
6481
|
+
},
|
|
6482
|
+
"responses": {
|
|
6483
|
+
"200": {
|
|
6484
|
+
"description": "OK",
|
|
6485
|
+
"headers": {
|
|
6486
|
+
"X-Powered-By": {
|
|
6487
|
+
"content": {
|
|
6488
|
+
"text/plain": {
|
|
6489
|
+
"schema": {
|
|
6490
|
+
"type": "string"
|
|
6491
|
+
},
|
|
6492
|
+
"example": "Express"
|
|
6493
|
+
}
|
|
6494
|
+
}
|
|
6495
|
+
},
|
|
6496
|
+
"Access-Control-Allow-Origin": {
|
|
6497
|
+
"content": {
|
|
6498
|
+
"text/plain": {
|
|
6499
|
+
"schema": {
|
|
6500
|
+
"type": "string"
|
|
6501
|
+
},
|
|
6502
|
+
"example": "*"
|
|
6503
|
+
}
|
|
6504
|
+
}
|
|
6505
|
+
},
|
|
6506
|
+
"Content-Length": {
|
|
6507
|
+
"content": {
|
|
6508
|
+
"text/plain": {
|
|
6509
|
+
"schema": {
|
|
6510
|
+
"type": "string"
|
|
6511
|
+
},
|
|
6512
|
+
"example": "20"
|
|
6513
|
+
}
|
|
6514
|
+
}
|
|
6515
|
+
},
|
|
6516
|
+
"ETag": {
|
|
6517
|
+
"content": {
|
|
6518
|
+
"text/plain": {
|
|
6519
|
+
"schema": {
|
|
6520
|
+
"type": "string"
|
|
6521
|
+
},
|
|
6522
|
+
"example": "W/\"14-Aecwmfr5xTp+PReMihhLNM3Z9mY\""
|
|
6523
|
+
}
|
|
6524
|
+
}
|
|
6525
|
+
},
|
|
6526
|
+
"Date": {
|
|
6527
|
+
"content": {
|
|
6528
|
+
"text/plain": {
|
|
6529
|
+
"schema": {
|
|
6530
|
+
"type": "string"
|
|
6531
|
+
},
|
|
6532
|
+
"example": "Thu, 13 May 2021 18:12:58 GMT"
|
|
6533
|
+
}
|
|
6534
|
+
}
|
|
6535
|
+
},
|
|
6536
|
+
"Connection": {
|
|
6537
|
+
"content": {
|
|
6538
|
+
"text/plain": {
|
|
6539
|
+
"schema": {
|
|
6540
|
+
"type": "string"
|
|
6541
|
+
},
|
|
6542
|
+
"example": "keep-alive"
|
|
6543
|
+
}
|
|
6544
|
+
}
|
|
6545
|
+
},
|
|
6546
|
+
"Keep-Alive": {
|
|
6547
|
+
"content": {
|
|
6548
|
+
"text/plain": {
|
|
6549
|
+
"schema": {
|
|
6550
|
+
"type": "string"
|
|
6551
|
+
},
|
|
6552
|
+
"example": "timeout=5"
|
|
6553
|
+
}
|
|
6554
|
+
}
|
|
6555
|
+
}
|
|
6556
|
+
},
|
|
6557
|
+
"content": {
|
|
6558
|
+
"application/json; charset=utf-8": {
|
|
6559
|
+
"schema": {
|
|
6560
|
+
"$ref": "#/components/schemas/ChangeProfileStatus"
|
|
6561
|
+
},
|
|
6562
|
+
"example": {
|
|
6563
|
+
"status": "Success"
|
|
6564
|
+
}
|
|
6565
|
+
}
|
|
6566
|
+
}
|
|
6567
|
+
}
|
|
6568
|
+
},
|
|
6569
|
+
"deprecated": false
|
|
6570
|
+
}
|
|
6571
|
+
},
|
|
6572
|
+
"/send-video-storie": {
|
|
6573
|
+
"post": {
|
|
6574
|
+
"tags": ["Status Stories"],
|
|
6575
|
+
"summary": "Send Video Storie ",
|
|
6576
|
+
"description": "Send Video Storie",
|
|
6577
|
+
"operationId": "SendVideoStorie",
|
|
6578
|
+
"parameters": [],
|
|
6579
|
+
"requestBody": {
|
|
6580
|
+
"description": "",
|
|
6581
|
+
"content": {
|
|
6582
|
+
"application/json": {
|
|
6583
|
+
"schema": {
|
|
6584
|
+
"$ref": "#/components/schemas/SendVideoStorieRequest"
|
|
6585
|
+
},
|
|
6586
|
+
"example": {
|
|
6587
|
+
"path": "https://file-examples.com/storage/fe21590a2962d597a9a51ad/2017/04/file_example_MP4_480_1_5MG.mp4"
|
|
6588
|
+
}
|
|
6589
|
+
}
|
|
6590
|
+
},
|
|
6591
|
+
"required": true
|
|
6592
|
+
},
|
|
6593
|
+
"responses": {
|
|
6594
|
+
"200": {
|
|
6595
|
+
"description": "OK",
|
|
6596
|
+
"headers": {
|
|
6597
|
+
"X-Powered-By": {
|
|
6598
|
+
"content": {
|
|
6599
|
+
"text/plain": {
|
|
6600
|
+
"schema": {
|
|
6601
|
+
"type": "string"
|
|
6602
|
+
},
|
|
6603
|
+
"example": "Express"
|
|
6604
|
+
}
|
|
6605
|
+
}
|
|
6606
|
+
},
|
|
6607
|
+
"Access-Control-Allow-Origin": {
|
|
6608
|
+
"content": {
|
|
6609
|
+
"text/plain": {
|
|
6610
|
+
"schema": {
|
|
6611
|
+
"type": "string"
|
|
6612
|
+
},
|
|
6613
|
+
"example": "*"
|
|
6614
|
+
}
|
|
6615
|
+
}
|
|
6616
|
+
},
|
|
6617
|
+
"Content-Length": {
|
|
6618
|
+
"content": {
|
|
6619
|
+
"text/plain": {
|
|
6620
|
+
"schema": {
|
|
6621
|
+
"type": "string"
|
|
6622
|
+
},
|
|
6623
|
+
"example": "20"
|
|
6624
|
+
}
|
|
6625
|
+
}
|
|
6626
|
+
},
|
|
6627
|
+
"ETag": {
|
|
6628
|
+
"content": {
|
|
6629
|
+
"text/plain": {
|
|
6630
|
+
"schema": {
|
|
6631
|
+
"type": "string"
|
|
6632
|
+
},
|
|
6633
|
+
"example": "W/\"14-Aecwmfr5xTp+PReMihhLNM3Z9mY\""
|
|
6634
|
+
}
|
|
6635
|
+
}
|
|
6636
|
+
},
|
|
6637
|
+
"Date": {
|
|
6638
|
+
"content": {
|
|
6639
|
+
"text/plain": {
|
|
6640
|
+
"schema": {
|
|
6641
|
+
"type": "string"
|
|
6642
|
+
},
|
|
6643
|
+
"example": "Thu, 13 May 2021 18:12:58 GMT"
|
|
6644
|
+
}
|
|
6645
|
+
}
|
|
6646
|
+
},
|
|
6647
|
+
"Connection": {
|
|
6648
|
+
"content": {
|
|
6649
|
+
"text/plain": {
|
|
6650
|
+
"schema": {
|
|
6651
|
+
"type": "string"
|
|
6652
|
+
},
|
|
6653
|
+
"example": "keep-alive"
|
|
6654
|
+
}
|
|
6655
|
+
}
|
|
6656
|
+
},
|
|
6657
|
+
"Keep-Alive": {
|
|
6658
|
+
"content": {
|
|
6659
|
+
"text/plain": {
|
|
6660
|
+
"schema": {
|
|
6661
|
+
"type": "string"
|
|
6662
|
+
},
|
|
6663
|
+
"example": "timeout=5"
|
|
6664
|
+
}
|
|
6665
|
+
}
|
|
6666
|
+
}
|
|
6667
|
+
},
|
|
6668
|
+
"content": {
|
|
6669
|
+
"application/json; charset=utf-8": {
|
|
6670
|
+
"schema": {
|
|
6671
|
+
"$ref": "#/components/schemas/ChangeProfileStatus"
|
|
6672
|
+
},
|
|
6673
|
+
"example": {
|
|
6674
|
+
"status": "Success"
|
|
6675
|
+
}
|
|
6676
|
+
}
|
|
6677
|
+
}
|
|
6678
|
+
}
|
|
6679
|
+
},
|
|
6680
|
+
"deprecated": false
|
|
6681
|
+
}
|
|
6682
|
+
},
|
|
6683
|
+
"/send-text-storie": {
|
|
6684
|
+
"post": {
|
|
6685
|
+
"tags": ["Status Stories"],
|
|
6686
|
+
"summary": "Send Text Storie ",
|
|
6687
|
+
"description": "Send Text Storie",
|
|
6688
|
+
"operationId": "SendTextStorie",
|
|
6689
|
+
"parameters": [],
|
|
6690
|
+
"requestBody": {
|
|
6691
|
+
"description": "",
|
|
6692
|
+
"content": {
|
|
6693
|
+
"application/json": {
|
|
6694
|
+
"schema": {
|
|
6695
|
+
"$ref": "#/components/schemas/SendTextStorieRequest"
|
|
6696
|
+
},
|
|
6697
|
+
"example": {
|
|
6698
|
+
"text": "https://pbs.twimg.com/profile_images/549882655932948480/LCZWmFyW_400x400.jpeg",
|
|
6699
|
+
"options": { "backgroundColor": "#0275d8", "font": 2 }
|
|
6700
|
+
}
|
|
6701
|
+
}
|
|
6702
|
+
},
|
|
6703
|
+
"required": true
|
|
6704
|
+
},
|
|
6705
|
+
"responses": {
|
|
6706
|
+
"200": {
|
|
6707
|
+
"description": "OK",
|
|
6708
|
+
"headers": {
|
|
6709
|
+
"X-Powered-By": {
|
|
6710
|
+
"content": {
|
|
6711
|
+
"text/plain": {
|
|
6712
|
+
"schema": {
|
|
6713
|
+
"type": "string"
|
|
6714
|
+
},
|
|
6715
|
+
"example": "Express"
|
|
6716
|
+
}
|
|
6717
|
+
}
|
|
6718
|
+
},
|
|
6719
|
+
"Access-Control-Allow-Origin": {
|
|
6720
|
+
"content": {
|
|
6721
|
+
"text/plain": {
|
|
6722
|
+
"schema": {
|
|
6723
|
+
"type": "string"
|
|
6724
|
+
},
|
|
6725
|
+
"example": "*"
|
|
6726
|
+
}
|
|
6727
|
+
}
|
|
6728
|
+
},
|
|
6729
|
+
"Content-Length": {
|
|
6730
|
+
"content": {
|
|
6731
|
+
"text/plain": {
|
|
6732
|
+
"schema": {
|
|
6733
|
+
"type": "string"
|
|
6734
|
+
},
|
|
6735
|
+
"example": "20"
|
|
6736
|
+
}
|
|
6737
|
+
}
|
|
6738
|
+
},
|
|
6739
|
+
"ETag": {
|
|
6740
|
+
"content": {
|
|
6741
|
+
"text/plain": {
|
|
6742
|
+
"schema": {
|
|
6743
|
+
"type": "string"
|
|
6744
|
+
},
|
|
6745
|
+
"example": "W/\"14-Aecwmfr5xTp+PReMihhLNM3Z9mY\""
|
|
6746
|
+
}
|
|
6747
|
+
}
|
|
6748
|
+
},
|
|
6749
|
+
"Date": {
|
|
6750
|
+
"content": {
|
|
6751
|
+
"text/plain": {
|
|
6752
|
+
"schema": {
|
|
6753
|
+
"type": "string"
|
|
6754
|
+
},
|
|
6755
|
+
"example": "Thu, 13 May 2021 18:12:58 GMT"
|
|
6756
|
+
}
|
|
6757
|
+
}
|
|
6758
|
+
},
|
|
6759
|
+
"Connection": {
|
|
6760
|
+
"content": {
|
|
6761
|
+
"text/plain": {
|
|
6762
|
+
"schema": {
|
|
6763
|
+
"type": "string"
|
|
6764
|
+
},
|
|
6765
|
+
"example": "keep-alive"
|
|
6766
|
+
}
|
|
6767
|
+
}
|
|
6768
|
+
},
|
|
6769
|
+
"Keep-Alive": {
|
|
6770
|
+
"content": {
|
|
6771
|
+
"text/plain": {
|
|
6772
|
+
"schema": {
|
|
6773
|
+
"type": "string"
|
|
6774
|
+
},
|
|
6775
|
+
"example": "timeout=5"
|
|
6776
|
+
}
|
|
6777
|
+
}
|
|
6778
|
+
}
|
|
6779
|
+
},
|
|
6780
|
+
"content": {
|
|
6781
|
+
"application/json; charset=utf-8": {
|
|
6782
|
+
"schema": {
|
|
6783
|
+
"$ref": "#/components/schemas/ChangeProfileStatus"
|
|
6784
|
+
},
|
|
6785
|
+
"example": {
|
|
6786
|
+
"status": "Success"
|
|
6787
|
+
}
|
|
6788
|
+
}
|
|
6789
|
+
}
|
|
6790
|
+
}
|
|
6791
|
+
},
|
|
6792
|
+
"deprecated": false
|
|
6793
|
+
}
|
|
6794
|
+
},
|
|
6795
|
+
"/add-new-label": {
|
|
6796
|
+
"post": {
|
|
6797
|
+
"tags": ["Labels"],
|
|
6798
|
+
"summary": "Add New Label",
|
|
6799
|
+
"description": "Cria uma nova etiqueta",
|
|
6800
|
+
"operationId": "AddNewLabel",
|
|
6801
|
+
"parameters": [],
|
|
6802
|
+
"requestBody": {
|
|
6803
|
+
"description": "",
|
|
6804
|
+
"content": {
|
|
6805
|
+
"application/json": {
|
|
6806
|
+
"schema": {
|
|
6807
|
+
"$ref": "#/components/schemas/AddNewLabelRequest"
|
|
6808
|
+
},
|
|
6809
|
+
"example": {
|
|
6810
|
+
"name": "Farmacias",
|
|
6811
|
+
"options": { "labelColor": "#dfaef0" }
|
|
6812
|
+
}
|
|
6813
|
+
}
|
|
6814
|
+
},
|
|
6815
|
+
"required": true
|
|
6816
|
+
},
|
|
6817
|
+
"responses": {
|
|
6818
|
+
"200": {
|
|
6819
|
+
"description": "OK",
|
|
6820
|
+
"headers": {},
|
|
6821
|
+
"content": {}
|
|
6822
|
+
},
|
|
6823
|
+
"400": {
|
|
6824
|
+
"description": "Bad Request",
|
|
6825
|
+
"headers": {},
|
|
6826
|
+
"content": {}
|
|
6827
|
+
},
|
|
6828
|
+
"401": {
|
|
6829
|
+
"description": "Unauthorized",
|
|
6830
|
+
"headers": {},
|
|
6831
|
+
"content": {}
|
|
6832
|
+
}
|
|
6833
|
+
},
|
|
6834
|
+
"deprecated": false
|
|
6835
|
+
}
|
|
6836
|
+
},
|
|
6837
|
+
"/add-or-remove-label": {
|
|
6838
|
+
"post": {
|
|
6839
|
+
"tags": ["Labels"],
|
|
6840
|
+
"summary": "Add or Remove Labels of chats",
|
|
6841
|
+
"description": "Edita as etiquetas de seus chats",
|
|
6842
|
+
"operationId": "AddOrRemoveLabelRequest",
|
|
6843
|
+
"parameters": [],
|
|
6844
|
+
"requestBody": {
|
|
6845
|
+
"description": "",
|
|
6846
|
+
"content": {
|
|
6847
|
+
"application/json": {
|
|
6848
|
+
"schema": {
|
|
6849
|
+
"$ref": "#/components/schemas/AddOrRemoveLabelRequest"
|
|
6850
|
+
},
|
|
6851
|
+
"example": {
|
|
6852
|
+
"chatIds": ["5521988887878"],
|
|
6853
|
+
"options": [
|
|
6854
|
+
{ "labelId": "76", "type": "add" },
|
|
6855
|
+
{ "labelId": "75", "type": "remove" }
|
|
6856
|
+
]
|
|
6857
|
+
}
|
|
6858
|
+
}
|
|
6859
|
+
},
|
|
6860
|
+
"required": true
|
|
6861
|
+
},
|
|
6862
|
+
"responses": {
|
|
6863
|
+
"200": {
|
|
6864
|
+
"description": "OK",
|
|
6865
|
+
"headers": {},
|
|
6866
|
+
"content": {}
|
|
6867
|
+
},
|
|
6868
|
+
"400": {
|
|
6869
|
+
"description": "Bad Request",
|
|
6870
|
+
"headers": {},
|
|
6871
|
+
"content": {}
|
|
6872
|
+
},
|
|
6873
|
+
"401": {
|
|
6874
|
+
"description": "Unauthorized",
|
|
6875
|
+
"headers": {},
|
|
6876
|
+
"content": {}
|
|
6877
|
+
}
|
|
6878
|
+
},
|
|
6879
|
+
"deprecated": false
|
|
6880
|
+
}
|
|
6881
|
+
},
|
|
6882
|
+
|
|
6883
|
+
"/get-all-labels": {
|
|
6884
|
+
"get": {
|
|
6885
|
+
"tags": ["Labels"],
|
|
6886
|
+
"summary": "All Labels",
|
|
6887
|
+
"description": "Retrieves all labels",
|
|
6888
|
+
"operationId": "AllLabels",
|
|
6889
|
+
"parameters": [
|
|
6890
|
+
{
|
|
6891
|
+
"name": "Content-Type",
|
|
6892
|
+
"in": "header",
|
|
6893
|
+
"description": "",
|
|
6894
|
+
"required": true,
|
|
6895
|
+
"style": "simple",
|
|
6896
|
+
"schema": {
|
|
6897
|
+
"type": "string",
|
|
6898
|
+
"example": "application/json"
|
|
6899
|
+
}
|
|
6900
|
+
}
|
|
6901
|
+
],
|
|
6902
|
+
"responses": {
|
|
6903
|
+
"200": {
|
|
6904
|
+
"description": "OK",
|
|
6905
|
+
"headers": {
|
|
6906
|
+
"X-Powered-By": {
|
|
6907
|
+
"content": {
|
|
6908
|
+
"text/plain": {
|
|
6909
|
+
"schema": {
|
|
6910
|
+
"type": "string"
|
|
6911
|
+
},
|
|
6912
|
+
"example": "Express"
|
|
6913
|
+
}
|
|
6914
|
+
}
|
|
6915
|
+
},
|
|
6916
|
+
"Access-Control-Allow-Origin": {
|
|
6917
|
+
"content": {
|
|
6918
|
+
"text/plain": {
|
|
6919
|
+
"schema": {
|
|
6920
|
+
"type": "string"
|
|
6921
|
+
},
|
|
6922
|
+
"example": "*"
|
|
6923
|
+
}
|
|
6924
|
+
}
|
|
6925
|
+
},
|
|
6926
|
+
"Content-Length": {
|
|
6927
|
+
"content": {
|
|
6928
|
+
"text/plain": {
|
|
6929
|
+
"schema": {
|
|
6930
|
+
"type": "string"
|
|
6931
|
+
},
|
|
6932
|
+
"example": "253700"
|
|
6933
|
+
}
|
|
6934
|
+
}
|
|
6935
|
+
},
|
|
6936
|
+
"ETag": {
|
|
6937
|
+
"content": {
|
|
6938
|
+
"text/plain": {
|
|
6939
|
+
"schema": {
|
|
6940
|
+
"type": "string"
|
|
6941
|
+
},
|
|
6942
|
+
"example": "W/\"3df04-fmRGRGQv4jrWL17uvMt/S9zRjmY\""
|
|
6943
|
+
}
|
|
6944
|
+
}
|
|
6945
|
+
},
|
|
6946
|
+
"Date": {
|
|
6947
|
+
"content": {
|
|
6948
|
+
"text/plain": {
|
|
6949
|
+
"schema": {
|
|
6950
|
+
"type": "string"
|
|
6951
|
+
},
|
|
6952
|
+
"example": "Thu, 13 May 2021 19:40:25 GMT"
|
|
6953
|
+
}
|
|
6954
|
+
}
|
|
6955
|
+
},
|
|
6956
|
+
"Connection": {
|
|
6957
|
+
"content": {
|
|
6958
|
+
"text/plain": {
|
|
6959
|
+
"schema": {
|
|
6960
|
+
"type": "string"
|
|
6961
|
+
},
|
|
6962
|
+
"example": "keep-alive"
|
|
6963
|
+
}
|
|
6964
|
+
}
|
|
6965
|
+
},
|
|
6966
|
+
"Keep-Alive": {
|
|
6967
|
+
"content": {
|
|
6968
|
+
"text/plain": {
|
|
6969
|
+
"schema": {
|
|
6970
|
+
"type": "string"
|
|
6971
|
+
},
|
|
6972
|
+
"example": "timeout=5"
|
|
6973
|
+
}
|
|
6974
|
+
}
|
|
6975
|
+
}
|
|
6976
|
+
},
|
|
6977
|
+
"content": {
|
|
6978
|
+
"application/json; charset=utf-8": {
|
|
6979
|
+
"schema": {
|
|
6980
|
+
"$ref": "#/components/schemas/AllChats"
|
|
6981
|
+
},
|
|
6982
|
+
"example": {
|
|
6983
|
+
"status": "success",
|
|
6984
|
+
"response": [{}]
|
|
6985
|
+
}
|
|
6986
|
+
}
|
|
6987
|
+
}
|
|
6988
|
+
}
|
|
6989
|
+
},
|
|
6990
|
+
"deprecated": false
|
|
6991
|
+
}
|
|
6992
|
+
},
|
|
6993
|
+
"/subscribe-presence": {
|
|
6994
|
+
"post": {
|
|
6995
|
+
"tags": ["Contact"],
|
|
6996
|
+
"summary": "Subscribe presente for contact",
|
|
6997
|
+
"description": "Subscribe presence of a contact or group to receive in onPresenceChanged (socket or webhook) ",
|
|
6998
|
+
"operationId": "SubscribePresenceContact",
|
|
6999
|
+
"parameters": [],
|
|
7000
|
+
"requestBody": {
|
|
7001
|
+
"description": "",
|
|
7002
|
+
"content": {
|
|
7003
|
+
"application/json": {
|
|
7004
|
+
"schema": {
|
|
7005
|
+
"$ref": "#/components/schemas/SubscribePresenceRequest"
|
|
7006
|
+
},
|
|
7007
|
+
"example": {
|
|
7008
|
+
"phone": "556593077171",
|
|
7009
|
+
"isGroup": false,
|
|
7010
|
+
"all": false
|
|
7011
|
+
}
|
|
7012
|
+
}
|
|
7013
|
+
},
|
|
7014
|
+
"required": true
|
|
7015
|
+
},
|
|
7016
|
+
"responses": {
|
|
7017
|
+
"200": {
|
|
7018
|
+
"description": "OK",
|
|
7019
|
+
"headers": {
|
|
7020
|
+
"X-Powered-By": {
|
|
7021
|
+
"content": {
|
|
7022
|
+
"text/plain": {
|
|
7023
|
+
"schema": {
|
|
7024
|
+
"type": "string"
|
|
7025
|
+
},
|
|
7026
|
+
"example": "Express"
|
|
7027
|
+
}
|
|
7028
|
+
}
|
|
7029
|
+
},
|
|
7030
|
+
"Access-Control-Allow-Origin": {
|
|
7031
|
+
"content": {
|
|
7032
|
+
"text/plain": {
|
|
7033
|
+
"schema": {
|
|
7034
|
+
"type": "string"
|
|
7035
|
+
},
|
|
7036
|
+
"example": "*"
|
|
7037
|
+
}
|
|
7038
|
+
}
|
|
7039
|
+
},
|
|
7040
|
+
"Content-Length": {
|
|
7041
|
+
"content": {
|
|
7042
|
+
"text/plain": {
|
|
7043
|
+
"schema": {
|
|
7044
|
+
"type": "string"
|
|
7045
|
+
},
|
|
7046
|
+
"example": "20"
|
|
7047
|
+
}
|
|
7048
|
+
}
|
|
7049
|
+
},
|
|
7050
|
+
"ETag": {
|
|
7051
|
+
"content": {
|
|
7052
|
+
"text/plain": {
|
|
7053
|
+
"schema": {
|
|
7054
|
+
"type": "string"
|
|
7055
|
+
},
|
|
7056
|
+
"example": "W/\"14-Aecwmfr5xTp+PReMihhLNM3Z9mY\""
|
|
7057
|
+
}
|
|
7058
|
+
}
|
|
7059
|
+
},
|
|
7060
|
+
"Date": {
|
|
7061
|
+
"content": {
|
|
7062
|
+
"text/plain": {
|
|
7063
|
+
"schema": {
|
|
7064
|
+
"type": "string"
|
|
7065
|
+
},
|
|
7066
|
+
"example": "Thu, 13 May 2021 18:12:58 GMT"
|
|
7067
|
+
}
|
|
7068
|
+
}
|
|
7069
|
+
},
|
|
7070
|
+
"Connection": {
|
|
7071
|
+
"content": {
|
|
7072
|
+
"text/plain": {
|
|
7073
|
+
"schema": {
|
|
7074
|
+
"type": "string"
|
|
7075
|
+
},
|
|
7076
|
+
"example": "keep-alive"
|
|
7077
|
+
}
|
|
7078
|
+
}
|
|
7079
|
+
},
|
|
7080
|
+
"Keep-Alive": {
|
|
7081
|
+
"content": {
|
|
7082
|
+
"text/plain": {
|
|
7083
|
+
"schema": {
|
|
7084
|
+
"type": "string"
|
|
7085
|
+
},
|
|
7086
|
+
"example": "timeout=5"
|
|
7087
|
+
}
|
|
7088
|
+
}
|
|
7089
|
+
}
|
|
7090
|
+
},
|
|
7091
|
+
"content": {
|
|
7092
|
+
"application/json; charset=utf-8": {
|
|
7093
|
+
"schema": {
|
|
7094
|
+
"$ref": "#/components/schemas/ChangeProfileStatus"
|
|
7095
|
+
},
|
|
7096
|
+
"example": {
|
|
7097
|
+
"status": "Success"
|
|
7098
|
+
}
|
|
7099
|
+
}
|
|
7100
|
+
}
|
|
7101
|
+
}
|
|
7102
|
+
},
|
|
7103
|
+
"deprecated": false
|
|
7104
|
+
}
|
|
7105
|
+
},
|
|
7106
|
+
"/check-number-status": {
|
|
7107
|
+
"get": {
|
|
7108
|
+
"tags": ["Contact"],
|
|
7109
|
+
"summary": "Check Number Status",
|
|
7110
|
+
"description": "Checks if a number is a valid WA number",
|
|
7111
|
+
"operationId": "CheckNumberStatus",
|
|
7112
|
+
"parameters": [
|
|
7113
|
+
{
|
|
7114
|
+
"name": "Content-Type",
|
|
7115
|
+
"in": "header",
|
|
7116
|
+
"description": "",
|
|
7117
|
+
"required": true,
|
|
7118
|
+
"style": "simple",
|
|
7119
|
+
"schema": {
|
|
7120
|
+
"type": "string",
|
|
7121
|
+
"example": "application/json"
|
|
7122
|
+
}
|
|
7123
|
+
}
|
|
7124
|
+
],
|
|
7125
|
+
"responses": {
|
|
7126
|
+
"200": {
|
|
7127
|
+
"description": "OK",
|
|
7128
|
+
"headers": {
|
|
7129
|
+
"X-Powered-By": {
|
|
7130
|
+
"content": {
|
|
7131
|
+
"text/plain": {
|
|
7132
|
+
"schema": {
|
|
7133
|
+
"type": "string"
|
|
7134
|
+
},
|
|
7135
|
+
"example": "Express"
|
|
7136
|
+
}
|
|
7137
|
+
}
|
|
7138
|
+
},
|
|
7139
|
+
"Access-Control-Allow-Origin": {
|
|
7140
|
+
"content": {
|
|
7141
|
+
"text/plain": {
|
|
7142
|
+
"schema": {
|
|
7143
|
+
"type": "string"
|
|
7144
|
+
},
|
|
7145
|
+
"example": "*"
|
|
7146
|
+
}
|
|
6161
7147
|
}
|
|
6162
7148
|
},
|
|
6163
7149
|
"Content-Length": {
|
|
@@ -8484,10 +9470,123 @@
|
|
|
8484
9470
|
"$ref": "#/components/schemas/PromoteParticipant"
|
|
8485
9471
|
},
|
|
8486
9472
|
"example": {
|
|
8487
|
-
"status": "Success",
|
|
8488
|
-
"message": "Participante(s) promovidos(s) com sucesso",
|
|
8489
|
-
"participants": "556593077171",
|
|
8490
|
-
"groups": ["556593077171-1620997998@g.us"]
|
|
9473
|
+
"status": "Success",
|
|
9474
|
+
"message": "Participante(s) promovidos(s) com sucesso",
|
|
9475
|
+
"participants": "556593077171",
|
|
9476
|
+
"groups": ["556593077171-1620997998@g.us"]
|
|
9477
|
+
}
|
|
9478
|
+
}
|
|
9479
|
+
}
|
|
9480
|
+
}
|
|
9481
|
+
},
|
|
9482
|
+
"deprecated": false
|
|
9483
|
+
}
|
|
9484
|
+
},
|
|
9485
|
+
"/group-description": {
|
|
9486
|
+
"post": {
|
|
9487
|
+
"tags": ["Group"],
|
|
9488
|
+
"summary": "Set Group Description",
|
|
9489
|
+
"description": "Set group description (if allowed)",
|
|
9490
|
+
"operationId": "SetGroupDescription",
|
|
9491
|
+
"parameters": [],
|
|
9492
|
+
"requestBody": {
|
|
9493
|
+
"description": "",
|
|
9494
|
+
"content": {
|
|
9495
|
+
"application/json": {
|
|
9496
|
+
"schema": {
|
|
9497
|
+
"$ref": "#/components/schemas/SetGroupDescriptionRequest"
|
|
9498
|
+
},
|
|
9499
|
+
"example": {
|
|
9500
|
+
"groupId": "556593077171-1620997998",
|
|
9501
|
+
"description": "nova descricao do asdfasdf"
|
|
9502
|
+
}
|
|
9503
|
+
}
|
|
9504
|
+
},
|
|
9505
|
+
"required": true
|
|
9506
|
+
},
|
|
9507
|
+
"responses": {
|
|
9508
|
+
"200": {
|
|
9509
|
+
"description": "OK",
|
|
9510
|
+
"headers": {
|
|
9511
|
+
"X-Powered-By": {
|
|
9512
|
+
"content": {
|
|
9513
|
+
"text/plain": {
|
|
9514
|
+
"schema": {
|
|
9515
|
+
"type": "string"
|
|
9516
|
+
},
|
|
9517
|
+
"example": "Express"
|
|
9518
|
+
}
|
|
9519
|
+
}
|
|
9520
|
+
},
|
|
9521
|
+
"Access-Control-Allow-Origin": {
|
|
9522
|
+
"content": {
|
|
9523
|
+
"text/plain": {
|
|
9524
|
+
"schema": {
|
|
9525
|
+
"type": "string"
|
|
9526
|
+
},
|
|
9527
|
+
"example": "*"
|
|
9528
|
+
}
|
|
9529
|
+
}
|
|
9530
|
+
},
|
|
9531
|
+
"Content-Length": {
|
|
9532
|
+
"content": {
|
|
9533
|
+
"text/plain": {
|
|
9534
|
+
"schema": {
|
|
9535
|
+
"type": "string"
|
|
9536
|
+
},
|
|
9537
|
+
"example": "34"
|
|
9538
|
+
}
|
|
9539
|
+
}
|
|
9540
|
+
},
|
|
9541
|
+
"ETag": {
|
|
9542
|
+
"content": {
|
|
9543
|
+
"text/plain": {
|
|
9544
|
+
"schema": {
|
|
9545
|
+
"type": "string"
|
|
9546
|
+
},
|
|
9547
|
+
"example": "W/\"22-W7d6GnKQIjT0dvO2uOKyA/paxX4\""
|
|
9548
|
+
}
|
|
9549
|
+
}
|
|
9550
|
+
},
|
|
9551
|
+
"Date": {
|
|
9552
|
+
"content": {
|
|
9553
|
+
"text/plain": {
|
|
9554
|
+
"schema": {
|
|
9555
|
+
"type": "string"
|
|
9556
|
+
},
|
|
9557
|
+
"example": "Fri, 14 May 2021 15:18:28 GMT"
|
|
9558
|
+
}
|
|
9559
|
+
}
|
|
9560
|
+
},
|
|
9561
|
+
"Connection": {
|
|
9562
|
+
"content": {
|
|
9563
|
+
"text/plain": {
|
|
9564
|
+
"schema": {
|
|
9565
|
+
"type": "string"
|
|
9566
|
+
},
|
|
9567
|
+
"example": "keep-alive"
|
|
9568
|
+
}
|
|
9569
|
+
}
|
|
9570
|
+
},
|
|
9571
|
+
"Keep-Alive": {
|
|
9572
|
+
"content": {
|
|
9573
|
+
"text/plain": {
|
|
9574
|
+
"schema": {
|
|
9575
|
+
"type": "string"
|
|
9576
|
+
},
|
|
9577
|
+
"example": "timeout=5"
|
|
9578
|
+
}
|
|
9579
|
+
}
|
|
9580
|
+
}
|
|
9581
|
+
},
|
|
9582
|
+
"content": {
|
|
9583
|
+
"application/json; charset=utf-8": {
|
|
9584
|
+
"schema": {
|
|
9585
|
+
"$ref": "#/components/schemas/SetGroupDescription"
|
|
9586
|
+
},
|
|
9587
|
+
"example": {
|
|
9588
|
+
"status": "success",
|
|
9589
|
+
"response": {}
|
|
8491
9590
|
}
|
|
8492
9591
|
}
|
|
8493
9592
|
}
|
|
@@ -8496,23 +9595,24 @@
|
|
|
8496
9595
|
"deprecated": false
|
|
8497
9596
|
}
|
|
8498
9597
|
},
|
|
8499
|
-
"/group-
|
|
9598
|
+
"/group-property": {
|
|
8500
9599
|
"post": {
|
|
8501
9600
|
"tags": ["Group"],
|
|
8502
|
-
"summary": "Set Group
|
|
9601
|
+
"summary": "Set Group Property",
|
|
8503
9602
|
"description": "Set group description (if allowed)",
|
|
8504
|
-
"operationId": "
|
|
9603
|
+
"operationId": "SetGroupProperty",
|
|
8505
9604
|
"parameters": [],
|
|
8506
9605
|
"requestBody": {
|
|
8507
9606
|
"description": "",
|
|
8508
9607
|
"content": {
|
|
8509
9608
|
"application/json": {
|
|
8510
9609
|
"schema": {
|
|
8511
|
-
"$ref": "#/components/schemas/
|
|
9610
|
+
"$ref": "#/components/schemas/SetGroupPropertyRequest"
|
|
8512
9611
|
},
|
|
8513
9612
|
"example": {
|
|
8514
9613
|
"groupId": "556593077171-1620997998",
|
|
8515
|
-
"
|
|
9614
|
+
"property": "announcement",
|
|
9615
|
+
"value": false
|
|
8516
9616
|
}
|
|
8517
9617
|
}
|
|
8518
9618
|
},
|
|
@@ -8568,7 +9668,7 @@
|
|
|
8568
9668
|
"schema": {
|
|
8569
9669
|
"type": "string"
|
|
8570
9670
|
},
|
|
8571
|
-
"example": "Fri, 14 May 2021 15:
|
|
9671
|
+
"example": "Fri, 14 May 2021 15:22:06 GMT"
|
|
8572
9672
|
}
|
|
8573
9673
|
}
|
|
8574
9674
|
},
|
|
@@ -8596,7 +9696,7 @@
|
|
|
8596
9696
|
"content": {
|
|
8597
9697
|
"application/json; charset=utf-8": {
|
|
8598
9698
|
"schema": {
|
|
8599
|
-
"$ref": "#/components/schemas/
|
|
9699
|
+
"$ref": "#/components/schemas/SetGroupProperty"
|
|
8600
9700
|
},
|
|
8601
9701
|
"example": {
|
|
8602
9702
|
"status": "success",
|
|
@@ -8609,24 +9709,23 @@
|
|
|
8609
9709
|
"deprecated": false
|
|
8610
9710
|
}
|
|
8611
9711
|
},
|
|
8612
|
-
"/group-
|
|
9712
|
+
"/group-subject": {
|
|
8613
9713
|
"post": {
|
|
8614
9714
|
"tags": ["Group"],
|
|
8615
|
-
"summary": "Set Group
|
|
9715
|
+
"summary": "Set Group Subject",
|
|
8616
9716
|
"description": "Set group description (if allowed)",
|
|
8617
|
-
"operationId": "
|
|
9717
|
+
"operationId": "SetGroupSubject",
|
|
8618
9718
|
"parameters": [],
|
|
8619
9719
|
"requestBody": {
|
|
8620
9720
|
"description": "",
|
|
8621
9721
|
"content": {
|
|
8622
9722
|
"application/json": {
|
|
8623
9723
|
"schema": {
|
|
8624
|
-
"$ref": "#/components/schemas/
|
|
9724
|
+
"$ref": "#/components/schemas/SetGroupSubjectRequest"
|
|
8625
9725
|
},
|
|
8626
9726
|
"example": {
|
|
8627
9727
|
"groupId": "556593077171-1620997998",
|
|
8628
|
-
"
|
|
8629
|
-
"value": false
|
|
9728
|
+
"title": "announcement"
|
|
8630
9729
|
}
|
|
8631
9730
|
}
|
|
8632
9731
|
},
|
|
@@ -8682,7 +9781,7 @@
|
|
|
8682
9781
|
"schema": {
|
|
8683
9782
|
"type": "string"
|
|
8684
9783
|
},
|
|
8685
|
-
"example": "Fri, 14 May 2021 15:
|
|
9784
|
+
"example": "Fri, 14 May 2021 15:24:29 GMT"
|
|
8686
9785
|
}
|
|
8687
9786
|
}
|
|
8688
9787
|
},
|
|
@@ -8710,7 +9809,7 @@
|
|
|
8710
9809
|
"content": {
|
|
8711
9810
|
"application/json; charset=utf-8": {
|
|
8712
9811
|
"schema": {
|
|
8713
|
-
"$ref": "#/components/schemas/
|
|
9812
|
+
"$ref": "#/components/schemas/SetGroupSubject"
|
|
8714
9813
|
},
|
|
8715
9814
|
"example": {
|
|
8716
9815
|
"status": "success",
|
|
@@ -8723,23 +9822,23 @@
|
|
|
8723
9822
|
"deprecated": false
|
|
8724
9823
|
}
|
|
8725
9824
|
},
|
|
8726
|
-
"/
|
|
9825
|
+
"/messages-admins-only": {
|
|
8727
9826
|
"post": {
|
|
8728
9827
|
"tags": ["Group"],
|
|
8729
|
-
"summary": "Set
|
|
8730
|
-
"description": "
|
|
8731
|
-
"operationId": "
|
|
9828
|
+
"summary": "Set Messages Admins Only",
|
|
9829
|
+
"description": "Allow only admin to send messages with true or false",
|
|
9830
|
+
"operationId": "SetMessagesAdminsOnly",
|
|
8732
9831
|
"parameters": [],
|
|
8733
9832
|
"requestBody": {
|
|
8734
9833
|
"description": "",
|
|
8735
9834
|
"content": {
|
|
8736
9835
|
"application/json": {
|
|
8737
9836
|
"schema": {
|
|
8738
|
-
"$ref": "#/components/schemas/
|
|
9837
|
+
"$ref": "#/components/schemas/SetMessagesAdminsOnlyRequest"
|
|
8739
9838
|
},
|
|
8740
9839
|
"example": {
|
|
8741
9840
|
"groupId": "556593077171-1620997998",
|
|
8742
|
-
"
|
|
9841
|
+
"value": true
|
|
8743
9842
|
}
|
|
8744
9843
|
}
|
|
8745
9844
|
},
|
|
@@ -8775,7 +9874,7 @@
|
|
|
8775
9874
|
"schema": {
|
|
8776
9875
|
"type": "string"
|
|
8777
9876
|
},
|
|
8778
|
-
"example": "
|
|
9877
|
+
"example": "36"
|
|
8779
9878
|
}
|
|
8780
9879
|
}
|
|
8781
9880
|
},
|
|
@@ -8785,7 +9884,7 @@
|
|
|
8785
9884
|
"schema": {
|
|
8786
9885
|
"type": "string"
|
|
8787
9886
|
},
|
|
8788
|
-
"example": "W/\"
|
|
9887
|
+
"example": "W/\"24-Xm9Fmv/piJ8aftrp5VK0tqiuuAc\""
|
|
8789
9888
|
}
|
|
8790
9889
|
}
|
|
8791
9890
|
},
|
|
@@ -8795,7 +9894,7 @@
|
|
|
8795
9894
|
"schema": {
|
|
8796
9895
|
"type": "string"
|
|
8797
9896
|
},
|
|
8798
|
-
"example": "Fri, 14 May 2021 15:
|
|
9897
|
+
"example": "Fri, 14 May 2021 15:31:41 GMT"
|
|
8799
9898
|
}
|
|
8800
9899
|
}
|
|
8801
9900
|
},
|
|
@@ -8823,11 +9922,11 @@
|
|
|
8823
9922
|
"content": {
|
|
8824
9923
|
"application/json; charset=utf-8": {
|
|
8825
9924
|
"schema": {
|
|
8826
|
-
"$ref": "#/components/schemas/
|
|
9925
|
+
"$ref": "#/components/schemas/SetMessagesAdminsOnly"
|
|
8827
9926
|
},
|
|
8828
9927
|
"example": {
|
|
8829
9928
|
"status": "success",
|
|
8830
|
-
"response":
|
|
9929
|
+
"response": true
|
|
8831
9930
|
}
|
|
8832
9931
|
}
|
|
8833
9932
|
}
|
|
@@ -8836,23 +9935,24 @@
|
|
|
8836
9935
|
"deprecated": false
|
|
8837
9936
|
}
|
|
8838
9937
|
},
|
|
8839
|
-
"/
|
|
9938
|
+
"/group-pic": {
|
|
8840
9939
|
"post": {
|
|
8841
9940
|
"tags": ["Group"],
|
|
8842
|
-
"summary": "Set
|
|
8843
|
-
"description": "
|
|
8844
|
-
"operationId": "
|
|
9941
|
+
"summary": "Set Profile Pic for group",
|
|
9942
|
+
"description": "Change Profile Pic of Group",
|
|
9943
|
+
"operationId": "SetGroupProfilePic",
|
|
8845
9944
|
"parameters": [],
|
|
8846
9945
|
"requestBody": {
|
|
8847
9946
|
"description": "",
|
|
8848
9947
|
"content": {
|
|
8849
9948
|
"application/json": {
|
|
8850
9949
|
"schema": {
|
|
8851
|
-
"$ref": "#/components/schemas/
|
|
9950
|
+
"$ref": "#/components/schemas/SetGroupProfilePicRequest"
|
|
8852
9951
|
},
|
|
8853
9952
|
"example": {
|
|
8854
|
-
"
|
|
8855
|
-
"
|
|
9953
|
+
"phone": "120363025416793270@g.us",
|
|
9954
|
+
"path": "https://cdn.pixabay.com/photo/2016/02/10/21/57/heart-1192662__340.jpg",
|
|
9955
|
+
"isGroup": true
|
|
8856
9956
|
}
|
|
8857
9957
|
}
|
|
8858
9958
|
},
|
|
@@ -8936,7 +10036,7 @@
|
|
|
8936
10036
|
"content": {
|
|
8937
10037
|
"application/json; charset=utf-8": {
|
|
8938
10038
|
"schema": {
|
|
8939
|
-
"$ref": "#/components/schemas/
|
|
10039
|
+
"$ref": "#/components/schemas/SetGroupProfilePicRequest"
|
|
8940
10040
|
},
|
|
8941
10041
|
"example": {
|
|
8942
10042
|
"status": "success",
|
|
@@ -8965,6 +10065,22 @@
|
|
|
8965
10065
|
"deprecated": false
|
|
8966
10066
|
}
|
|
8967
10067
|
},
|
|
10068
|
+
"/host-device": {
|
|
10069
|
+
"get": {
|
|
10070
|
+
"tags": ["Phone Status"],
|
|
10071
|
+
"summary": "Get WID and data of connected device",
|
|
10072
|
+
"description": "Get WID and data of connected device",
|
|
10073
|
+
"operationId": "HostDevice",
|
|
10074
|
+
"parameters": [],
|
|
10075
|
+
"responses": {
|
|
10076
|
+
"200": {
|
|
10077
|
+
"description": "",
|
|
10078
|
+
"headers": {}
|
|
10079
|
+
}
|
|
10080
|
+
},
|
|
10081
|
+
"deprecated": false
|
|
10082
|
+
}
|
|
10083
|
+
},
|
|
8968
10084
|
"/block-contact": {
|
|
8969
10085
|
"post": {
|
|
8970
10086
|
"tags": ["Block list"],
|
|
@@ -15015,6 +16131,40 @@
|
|
|
15015
16131
|
"message": "Message deleted"
|
|
15016
16132
|
}
|
|
15017
16133
|
},
|
|
16134
|
+
"ReactMessageRequest": {
|
|
16135
|
+
"title": "ReactMessageRequest",
|
|
16136
|
+
"required": ["msgId", "reaction"],
|
|
16137
|
+
"type": "object",
|
|
16138
|
+
"properties": {
|
|
16139
|
+
"msgId": {
|
|
16140
|
+
"type": "string"
|
|
16141
|
+
},
|
|
16142
|
+
"reaction": {
|
|
16143
|
+
"type": "string"
|
|
16144
|
+
}
|
|
16145
|
+
},
|
|
16146
|
+
"example": {
|
|
16147
|
+
"phone": "false_556593077171@c.us_1B69CFDC0BDBAB37B2B628D90CBA0F47",
|
|
16148
|
+
"messageId": "🤯"
|
|
16149
|
+
}
|
|
16150
|
+
},
|
|
16151
|
+
"ReactMessage": {
|
|
16152
|
+
"title": "ReactMessage",
|
|
16153
|
+
"required": ["status", "message"],
|
|
16154
|
+
"type": "object",
|
|
16155
|
+
"properties": {
|
|
16156
|
+
"status": {
|
|
16157
|
+
"type": "string"
|
|
16158
|
+
},
|
|
16159
|
+
"message": {
|
|
16160
|
+
"type": "string"
|
|
16161
|
+
}
|
|
16162
|
+
},
|
|
16163
|
+
"example": {
|
|
16164
|
+
"status": "Success",
|
|
16165
|
+
"message": "Reação enviada"
|
|
16166
|
+
}
|
|
16167
|
+
},
|
|
15018
16168
|
"MarkUnseenRequest": {
|
|
15019
16169
|
"title": "MarkUnseenRequest",
|
|
15020
16170
|
"required": ["phone"],
|
|
@@ -16093,7 +17243,7 @@
|
|
|
16093
17243
|
},
|
|
16094
17244
|
"SendMentionedRequest": {
|
|
16095
17245
|
"title": "SendMentionedRequest",
|
|
16096
|
-
"required": ["phone", "message", "mentioned", "
|
|
17246
|
+
"required": ["phone", "message", "mentioned", "isGroup"],
|
|
16097
17247
|
"type": "object",
|
|
16098
17248
|
"properties": {
|
|
16099
17249
|
"phone": {
|
|
@@ -16109,7 +17259,7 @@
|
|
|
16109
17259
|
},
|
|
16110
17260
|
"description": ""
|
|
16111
17261
|
},
|
|
16112
|
-
"
|
|
17262
|
+
"isGroup": {
|
|
16113
17263
|
"type": "boolean"
|
|
16114
17264
|
}
|
|
16115
17265
|
},
|
|
@@ -16117,7 +17267,49 @@
|
|
|
16117
17267
|
"phone": "556593077171-1620997998",
|
|
16118
17268
|
"message": "ola como isso funciona @556593077171@c.us",
|
|
16119
17269
|
"mentioned": ["@556593077171@c.us"],
|
|
16120
|
-
"
|
|
17270
|
+
"isGroup": true
|
|
17271
|
+
}
|
|
17272
|
+
},
|
|
17273
|
+
"SendStickerRequest": {
|
|
17274
|
+
"title": "SendStickerRequest",
|
|
17275
|
+
"required": ["phone"],
|
|
17276
|
+
"type": "object",
|
|
17277
|
+
"properties": {
|
|
17278
|
+
"phone": {
|
|
17279
|
+
"type": "string"
|
|
17280
|
+
},
|
|
17281
|
+
"path": {
|
|
17282
|
+
"type": "string"
|
|
17283
|
+
},
|
|
17284
|
+
"isGroup": {
|
|
17285
|
+
"type": "boolean"
|
|
17286
|
+
}
|
|
17287
|
+
},
|
|
17288
|
+
"example": {
|
|
17289
|
+
"phone": "556593077171",
|
|
17290
|
+
"path": "https://www.camarabracodotrombudo.sc.gov.br/media/noticia/link-para-participacao-da-audiencia-publica-54.jpg",
|
|
17291
|
+
"isGroup": false
|
|
17292
|
+
}
|
|
17293
|
+
},
|
|
17294
|
+
"SendStickerGifRequest": {
|
|
17295
|
+
"title": "SendStickerGifRequest",
|
|
17296
|
+
"required": ["phone"],
|
|
17297
|
+
"type": "object",
|
|
17298
|
+
"properties": {
|
|
17299
|
+
"phone": {
|
|
17300
|
+
"type": "string"
|
|
17301
|
+
},
|
|
17302
|
+
"path": {
|
|
17303
|
+
"type": "string"
|
|
17304
|
+
},
|
|
17305
|
+
"isGroup": {
|
|
17306
|
+
"type": "boolean"
|
|
17307
|
+
}
|
|
17308
|
+
},
|
|
17309
|
+
"example": {
|
|
17310
|
+
"phone": "556593077171",
|
|
17311
|
+
"path": "https://media.giphy.com/media/hpXFi66bfQm7e81ohw/giphy.gif",
|
|
17312
|
+
"isGroup": false
|
|
16121
17313
|
}
|
|
16122
17314
|
},
|
|
16123
17315
|
"ChangeUsernameRequest": {
|
|
@@ -16176,6 +17368,127 @@
|
|
|
16176
17368
|
"status": "My new status"
|
|
16177
17369
|
}
|
|
16178
17370
|
},
|
|
17371
|
+
"SendImageStorieRequest": {
|
|
17372
|
+
"title": "SendImageStorieRequest",
|
|
17373
|
+
"required": ["path"],
|
|
17374
|
+
"type": "object",
|
|
17375
|
+
"properties": {
|
|
17376
|
+
"path": {
|
|
17377
|
+
"type": "string"
|
|
17378
|
+
}
|
|
17379
|
+
},
|
|
17380
|
+
"example": {
|
|
17381
|
+
"path": "https://pbs.twimg.com/profile_images/549882655932948480/LCZWmFyW_400x400.jpeg"
|
|
17382
|
+
}
|
|
17383
|
+
},
|
|
17384
|
+
"GetMyStatusRequest": {
|
|
17385
|
+
"title": "GetMyStatusRequest",
|
|
17386
|
+
"required": [""],
|
|
17387
|
+
"type": "object",
|
|
17388
|
+
"properties": {},
|
|
17389
|
+
"example": {}
|
|
17390
|
+
},
|
|
17391
|
+
"GetStatusRequest": {
|
|
17392
|
+
"title": "GetStatusRequest",
|
|
17393
|
+
"required": ["phone"],
|
|
17394
|
+
"type": "object",
|
|
17395
|
+
"properties": {
|
|
17396
|
+
"path": {
|
|
17397
|
+
"type": "string"
|
|
17398
|
+
}
|
|
17399
|
+
},
|
|
17400
|
+
"example": {
|
|
17401
|
+
"phone": "5561988888988"
|
|
17402
|
+
}
|
|
17403
|
+
},
|
|
17404
|
+
"SendVideoStorieRequest": {
|
|
17405
|
+
"title": "SendVideoStorieRequest",
|
|
17406
|
+
"required": ["path"],
|
|
17407
|
+
"type": "object",
|
|
17408
|
+
"properties": {
|
|
17409
|
+
"path": {
|
|
17410
|
+
"type": "string"
|
|
17411
|
+
}
|
|
17412
|
+
},
|
|
17413
|
+
"example": {
|
|
17414
|
+
"path": "https://file-examples.com/storage/fe21590a2962d597a9a51ad/2017/04/file_example_MP4_480_1_5MG.mp4"
|
|
17415
|
+
}
|
|
17416
|
+
},
|
|
17417
|
+
"SendTextStorieRequest": {
|
|
17418
|
+
"title": "SendTextStorieRequest",
|
|
17419
|
+
"required": ["text", "options"],
|
|
17420
|
+
"type": "object",
|
|
17421
|
+
"properties": {
|
|
17422
|
+
"text": {
|
|
17423
|
+
"type": "string"
|
|
17424
|
+
},
|
|
17425
|
+
"options": {
|
|
17426
|
+
"type": "string"
|
|
17427
|
+
}
|
|
17428
|
+
},
|
|
17429
|
+
"example": {
|
|
17430
|
+
"text": "Test Text Storye",
|
|
17431
|
+
"options": { "backgroundColor": "#0275d8", "font": 2 }
|
|
17432
|
+
}
|
|
17433
|
+
},
|
|
17434
|
+
"AddNewLabelRequest": {
|
|
17435
|
+
"title": "AddNewLabelRequest",
|
|
17436
|
+
"required": ["name"],
|
|
17437
|
+
"type": "object",
|
|
17438
|
+
"properties": {
|
|
17439
|
+
"name": {
|
|
17440
|
+
"type": "string"
|
|
17441
|
+
},
|
|
17442
|
+
"options": {
|
|
17443
|
+
"type": "string"
|
|
17444
|
+
}
|
|
17445
|
+
},
|
|
17446
|
+
"example": {
|
|
17447
|
+
"name": "Farmácia",
|
|
17448
|
+
"options": { "labelColor": "#dfaef0" }
|
|
17449
|
+
}
|
|
17450
|
+
},
|
|
17451
|
+
"AddOrRemoveLabelRequest": {
|
|
17452
|
+
"title": "AddOrRemoveLabelRequest",
|
|
17453
|
+
"required": ["name", "options"],
|
|
17454
|
+
"type": "object",
|
|
17455
|
+
"properties": {
|
|
17456
|
+
"name": {
|
|
17457
|
+
"type": "string"
|
|
17458
|
+
},
|
|
17459
|
+
"options": {
|
|
17460
|
+
"type": "string"
|
|
17461
|
+
}
|
|
17462
|
+
},
|
|
17463
|
+
"example": {
|
|
17464
|
+
"chatIds": ["5521988887878"],
|
|
17465
|
+
"options": [
|
|
17466
|
+
{ "labelId": "76", "type": "add" },
|
|
17467
|
+
{ "labelId": "75", "type": "remove" }
|
|
17468
|
+
]
|
|
17469
|
+
}
|
|
17470
|
+
},
|
|
17471
|
+
"SubscribePresenceRequest": {
|
|
17472
|
+
"title": "SubscribePresenceRequest",
|
|
17473
|
+
"required": ["phone"],
|
|
17474
|
+
"type": "object",
|
|
17475
|
+
"properties": {
|
|
17476
|
+
"phone": {
|
|
17477
|
+
"type": "string"
|
|
17478
|
+
},
|
|
17479
|
+
"isGroup": {
|
|
17480
|
+
"type": "boolean"
|
|
17481
|
+
},
|
|
17482
|
+
"all": {
|
|
17483
|
+
"type": "boolean"
|
|
17484
|
+
}
|
|
17485
|
+
},
|
|
17486
|
+
"example": {
|
|
17487
|
+
"phone": "556593077171",
|
|
17488
|
+
"isGroup": false,
|
|
17489
|
+
"all": false
|
|
17490
|
+
}
|
|
17491
|
+
},
|
|
16179
17492
|
"ChangeProfileStatus": {
|
|
16180
17493
|
"title": "ChangeProfileStatus",
|
|
16181
17494
|
"required": ["status"],
|
|
@@ -18031,6 +19344,43 @@
|
|
|
18031
19344
|
"value": true
|
|
18032
19345
|
}
|
|
18033
19346
|
},
|
|
19347
|
+
"SetGroupProfilePicRequest": {
|
|
19348
|
+
"title": "SetGroupProfilePicRequest",
|
|
19349
|
+
"required": ["phone", "path", "isGroup"],
|
|
19350
|
+
"type": "object",
|
|
19351
|
+
"properties": {
|
|
19352
|
+
"phone": {
|
|
19353
|
+
"type": "string"
|
|
19354
|
+
},
|
|
19355
|
+
"path": {
|
|
19356
|
+
"type": "string"
|
|
19357
|
+
},
|
|
19358
|
+
"isGroup": {
|
|
19359
|
+
"type": "boolean"
|
|
19360
|
+
}
|
|
19361
|
+
},
|
|
19362
|
+
"example": {
|
|
19363
|
+
"phone": "120363025416793270@g.us",
|
|
19364
|
+
"path": "https://www.camarabracodotrombudo.sc.gov.br/media/noticia/link-para-participacao-da-audiencia-publica-54.jpg"
|
|
19365
|
+
}
|
|
19366
|
+
},
|
|
19367
|
+
"SetGroupProfilePic": {
|
|
19368
|
+
"title": "SetGroupProfilePic",
|
|
19369
|
+
"required": ["status", "response"],
|
|
19370
|
+
"type": "object",
|
|
19371
|
+
"properties": {
|
|
19372
|
+
"status": {
|
|
19373
|
+
"type": "string"
|
|
19374
|
+
},
|
|
19375
|
+
"response": {
|
|
19376
|
+
"type": "boolean"
|
|
19377
|
+
}
|
|
19378
|
+
},
|
|
19379
|
+
"example": {
|
|
19380
|
+
"status": "success",
|
|
19381
|
+
"response": true
|
|
19382
|
+
}
|
|
19383
|
+
},
|
|
18034
19384
|
"SetMessagesAdminsOnly": {
|
|
18035
19385
|
"title": "SetMessagesAdminsOnly",
|
|
18036
19386
|
"required": ["status", "response"],
|
|
@@ -18195,6 +19545,14 @@
|
|
|
18195
19545
|
"name": "Profile",
|
|
18196
19546
|
"description": "Profile Methods"
|
|
18197
19547
|
},
|
|
19548
|
+
{
|
|
19549
|
+
"name": "Status Stories",
|
|
19550
|
+
"description": "Status Stories Methods"
|
|
19551
|
+
},
|
|
19552
|
+
{
|
|
19553
|
+
"name": "Labels",
|
|
19554
|
+
"description": "Labels Methods"
|
|
19555
|
+
},
|
|
18198
19556
|
{
|
|
18199
19557
|
"name": "Contact",
|
|
18200
19558
|
"description": "Contact Methods"
|