@wsapichat/mcp-server 1.0.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/CLAUDE.md +96 -0
- package/LICENSE +21 -0
- package/README.md +403 -0
- package/dist/client/index.d.ts +16 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +154 -0
- package/dist/client/index.js.map +1 -0
- package/dist/config/index.d.ts +85 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +67 -0
- package/dist/config/index.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +46 -0
- package/dist/index.js.map +1 -0
- package/dist/server.d.ts +20 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +173 -0
- package/dist/server.js.map +1 -0
- package/dist/tools/account.d.ts +14 -0
- package/dist/tools/account.d.ts.map +1 -0
- package/dist/tools/account.js +78 -0
- package/dist/tools/account.js.map +1 -0
- package/dist/tools/chats.d.ts +14 -0
- package/dist/tools/chats.d.ts.map +1 -0
- package/dist/tools/chats.js +81 -0
- package/dist/tools/chats.js.map +1 -0
- package/dist/tools/contacts.d.ts +18 -0
- package/dist/tools/contacts.d.ts.map +1 -0
- package/dist/tools/contacts.js +213 -0
- package/dist/tools/contacts.js.map +1 -0
- package/dist/tools/groups.d.ts +12 -0
- package/dist/tools/groups.d.ts.map +1 -0
- package/dist/tools/groups.js +65 -0
- package/dist/tools/groups.js.map +1 -0
- package/dist/tools/instance.d.ts +12 -0
- package/dist/tools/instance.d.ts.map +1 -0
- package/dist/tools/instance.js +54 -0
- package/dist/tools/instance.js.map +1 -0
- package/dist/tools/messaging-advanced.d.ts +16 -0
- package/dist/tools/messaging-advanced.d.ts.map +1 -0
- package/dist/tools/messaging-advanced.js +386 -0
- package/dist/tools/messaging-advanced.js.map +1 -0
- package/dist/tools/messaging.d.ts +28 -0
- package/dist/tools/messaging.d.ts.map +1 -0
- package/dist/tools/messaging.js +491 -0
- package/dist/tools/messaging.js.map +1 -0
- package/dist/tools/session.d.ts +14 -0
- package/dist/tools/session.d.ts.map +1 -0
- package/dist/tools/session.js +61 -0
- package/dist/tools/session.js.map +1 -0
- package/dist/types/api.d.ts +2730 -0
- package/dist/types/api.d.ts.map +1 -0
- package/dist/types/api.js +6 -0
- package/dist/types/api.js.map +1 -0
- package/dist/types/webhooks.d.ts +1001 -0
- package/dist/types/webhooks.d.ts.map +1 -0
- package/dist/types/webhooks.js +6 -0
- package/dist/types/webhooks.js.map +1 -0
- package/dist/utils/errors.d.ts +39 -0
- package/dist/utils/errors.d.ts.map +1 -0
- package/dist/utils/errors.js +151 -0
- package/dist/utils/errors.js.map +1 -0
- package/dist/utils/logger.d.ts +12 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +99 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/validation/schemas.d.ts +732 -0
- package/dist/validation/schemas.d.ts.map +1 -0
- package/dist/validation/schemas.js +269 -0
- package/dist/validation/schemas.js.map +1 -0
- package/package.json +83 -0
|
@@ -0,0 +1,2730 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
export interface paths {
|
|
6
|
+
"/account/info": {
|
|
7
|
+
/**
|
|
8
|
+
* Get account information
|
|
9
|
+
* @description Retrieve the current account information including ID, name, and status.
|
|
10
|
+
*/
|
|
11
|
+
get: operations["getAccountInfo"];
|
|
12
|
+
};
|
|
13
|
+
"/account/name": {
|
|
14
|
+
/** Set account name */
|
|
15
|
+
put: operations["setAccountName"];
|
|
16
|
+
};
|
|
17
|
+
"/account/picture": {
|
|
18
|
+
/** Set account profile picture */
|
|
19
|
+
post: operations["setAccountPicture"];
|
|
20
|
+
};
|
|
21
|
+
"/account/presence": {
|
|
22
|
+
/** Set account presence */
|
|
23
|
+
put: operations["setAccountPresence"];
|
|
24
|
+
};
|
|
25
|
+
"/account/status": {
|
|
26
|
+
/** Set account status */
|
|
27
|
+
put: operations["setAccountStatus"];
|
|
28
|
+
};
|
|
29
|
+
"/calls/{callId}/reject": {
|
|
30
|
+
/** Reject an incoming call */
|
|
31
|
+
put: operations["updateCallsReject"];
|
|
32
|
+
};
|
|
33
|
+
"/chats": {
|
|
34
|
+
/** List all WhatsApp chats */
|
|
35
|
+
get: operations["getChats"];
|
|
36
|
+
};
|
|
37
|
+
"/chats/{chatId}": {
|
|
38
|
+
/** Get chat information */
|
|
39
|
+
get: operations["getChat"];
|
|
40
|
+
/** Delete chat */
|
|
41
|
+
delete: operations["deleteChat"];
|
|
42
|
+
};
|
|
43
|
+
"/chats/{chatId}/presence": {
|
|
44
|
+
/** Update chat presence */
|
|
45
|
+
put: operations["setChatPresence"];
|
|
46
|
+
};
|
|
47
|
+
"/chats/{chatId}/ephemeral": {
|
|
48
|
+
/** Set ephemeral message expiration */
|
|
49
|
+
put: operations["updateChatEphemeral"];
|
|
50
|
+
};
|
|
51
|
+
"/chats/{chatId}/mute": {
|
|
52
|
+
/** Mute chat */
|
|
53
|
+
put: operations["updateChatMute"];
|
|
54
|
+
};
|
|
55
|
+
"/chats/{chatId}/pin": {
|
|
56
|
+
/** Pin or unpin chat */
|
|
57
|
+
put: operations["updateChatPin"];
|
|
58
|
+
};
|
|
59
|
+
"/chats/{chatId}/archive": {
|
|
60
|
+
/** Archive or unarchive chat */
|
|
61
|
+
put: operations["updateChatArchive"];
|
|
62
|
+
};
|
|
63
|
+
"/chats/{chatId}/read": {
|
|
64
|
+
/** Mark chat as read */
|
|
65
|
+
put: operations["markChatAsRead"];
|
|
66
|
+
};
|
|
67
|
+
"/contacts": {
|
|
68
|
+
/** List all WhatsApp contacts */
|
|
69
|
+
get: operations["getContacts"];
|
|
70
|
+
/** Create a new WhatsApp contact */
|
|
71
|
+
post: operations["createContact"];
|
|
72
|
+
};
|
|
73
|
+
"/contacts/{contactId}": {
|
|
74
|
+
/** Get contact information */
|
|
75
|
+
get: operations["getContact"];
|
|
76
|
+
/** Update contact information */
|
|
77
|
+
put: operations["updateContact"];
|
|
78
|
+
};
|
|
79
|
+
"/contacts/{contactId}/picture": {
|
|
80
|
+
/** Get contact profile picture */
|
|
81
|
+
get: operations["getContactsPicture"];
|
|
82
|
+
};
|
|
83
|
+
"/contacts/{contactId}/business": {
|
|
84
|
+
/** Get contact business profile */
|
|
85
|
+
get: operations["getContactsBusiness"];
|
|
86
|
+
};
|
|
87
|
+
"/contacts/{contactId}/fullName": {
|
|
88
|
+
/** Update contact full name */
|
|
89
|
+
put: operations["updateContactsFullname"];
|
|
90
|
+
};
|
|
91
|
+
"/contacts/{contactId}/presence": {
|
|
92
|
+
/** Subscribe to contact presence updates */
|
|
93
|
+
post: operations["createContactsPresence"];
|
|
94
|
+
};
|
|
95
|
+
"/groups": {
|
|
96
|
+
/** List all WhatsApp groups */
|
|
97
|
+
get: operations["getGroups"];
|
|
98
|
+
/** Create a new WhatsApp group */
|
|
99
|
+
post: operations["createGroup"];
|
|
100
|
+
};
|
|
101
|
+
"/groups/{groupId}": {
|
|
102
|
+
/** Get group information */
|
|
103
|
+
get: operations["getGroup"];
|
|
104
|
+
/** Delete group */
|
|
105
|
+
delete: operations["deleteGroup"];
|
|
106
|
+
};
|
|
107
|
+
"/groups/{groupId}/description": {
|
|
108
|
+
/** Update group description */
|
|
109
|
+
put: operations["setGroupsDescription"];
|
|
110
|
+
};
|
|
111
|
+
"/groups/{groupId}/name": {
|
|
112
|
+
/** Update group name */
|
|
113
|
+
put: operations["setGroupsName"];
|
|
114
|
+
};
|
|
115
|
+
"/groups/{groupId}/picture": {
|
|
116
|
+
/** Set group picture */
|
|
117
|
+
post: operations["createGroupsPicture"];
|
|
118
|
+
};
|
|
119
|
+
"/groups/{groupId}/invite-link": {
|
|
120
|
+
/** Get group invite link */
|
|
121
|
+
get: operations["getGroupInviteLink"];
|
|
122
|
+
};
|
|
123
|
+
"/groups/{groupId}/requests": {
|
|
124
|
+
/** List group invite requests */
|
|
125
|
+
get: operations["getGroupsRequests"];
|
|
126
|
+
};
|
|
127
|
+
"/groups/{groupId}/participants": {
|
|
128
|
+
/** Update group participants */
|
|
129
|
+
put: operations["updateGroupsParticipants"];
|
|
130
|
+
};
|
|
131
|
+
"/group-invites/{inviteCode}": {
|
|
132
|
+
/** Get group invite information */
|
|
133
|
+
get: operations["getGroupInviteInfo"];
|
|
134
|
+
};
|
|
135
|
+
"/instance/settings": {
|
|
136
|
+
/** Get instance settings */
|
|
137
|
+
get: operations["getInstanceSettings"];
|
|
138
|
+
/** Update instance settings */
|
|
139
|
+
put: operations["updateInstanceSettings"];
|
|
140
|
+
};
|
|
141
|
+
"/instance/apikey": {
|
|
142
|
+
/** Update instance API key */
|
|
143
|
+
put: operations["updateApiKey"];
|
|
144
|
+
};
|
|
145
|
+
"/instance/restart": {
|
|
146
|
+
/** Restart instance */
|
|
147
|
+
put: operations["restartInstance"];
|
|
148
|
+
};
|
|
149
|
+
"/media/download": {
|
|
150
|
+
/**
|
|
151
|
+
* Download media file
|
|
152
|
+
* @description Download a media file that was received. The id corresponds to the media.id field.
|
|
153
|
+
*/
|
|
154
|
+
get: operations["getMediaDownload"];
|
|
155
|
+
};
|
|
156
|
+
"/messages/text": {
|
|
157
|
+
/**
|
|
158
|
+
* Send a text message
|
|
159
|
+
* @description Send a text message to a WhatsApp contact or group. The response contains the MessageID, that can be used later for different actions, like reply, delete, forward, star, etc.
|
|
160
|
+
*/
|
|
161
|
+
post: operations["sendTextMessage"];
|
|
162
|
+
};
|
|
163
|
+
"/messages/link": {
|
|
164
|
+
/**
|
|
165
|
+
* Send a link message
|
|
166
|
+
* @description Send a link message to a WhatsApp contact or group. The url contains the link. It can also contain a title and description and additionally a thumbnail (jpeg base64 encoded). The response contains the MessageID
|
|
167
|
+
*/
|
|
168
|
+
post: operations["sendLinkMessage"];
|
|
169
|
+
};
|
|
170
|
+
"/messages/image": {
|
|
171
|
+
/**
|
|
172
|
+
* Send an image message
|
|
173
|
+
* @description Send an image message to a WhatsApp contact or group. The image can be sent as a URL (that will be downloaded and sent as an image) or as a base64 encoded string. The response contains the MessageID.
|
|
174
|
+
*/
|
|
175
|
+
post: operations["sendImageMessage"];
|
|
176
|
+
};
|
|
177
|
+
"/messages/video": {
|
|
178
|
+
/**
|
|
179
|
+
* Send a video message
|
|
180
|
+
* @description Send a video message to a WhatsApp contact or group. The video can be sent as a URL (that will be downloaded and sent as a video) or as a base64 encoded string. The response contains the MessageID.
|
|
181
|
+
*/
|
|
182
|
+
post: operations["sendVideoMessage"];
|
|
183
|
+
};
|
|
184
|
+
"/messages/sticker": {
|
|
185
|
+
/**
|
|
186
|
+
* Send a sticker message
|
|
187
|
+
* @description Send a sticker message to a WhatsApp contact or group. The sticker can be sent as a URL (that will be downloaded and sent as a sticker) or as a base64 encoded string. The response contains the MessageID.
|
|
188
|
+
*/
|
|
189
|
+
post: operations["sendStickerMessage"];
|
|
190
|
+
};
|
|
191
|
+
"/messages/audio": {
|
|
192
|
+
/** Send an audio message */
|
|
193
|
+
post: operations["sendAudioMessage"];
|
|
194
|
+
};
|
|
195
|
+
"/messages/voice": {
|
|
196
|
+
/** Send a voice message */
|
|
197
|
+
post: operations["sendVoiceMessage"];
|
|
198
|
+
};
|
|
199
|
+
"/messages/document": {
|
|
200
|
+
/** Send a document message */
|
|
201
|
+
post: operations["sendDocumentMessage"];
|
|
202
|
+
};
|
|
203
|
+
"/messages/contact": {
|
|
204
|
+
/** Send a contact message */
|
|
205
|
+
post: operations["sendContactMessage"];
|
|
206
|
+
};
|
|
207
|
+
"/messages/location": {
|
|
208
|
+
/** Send a location message */
|
|
209
|
+
post: operations["sendLocationMessage"];
|
|
210
|
+
};
|
|
211
|
+
"/messages/{messageId}/reaction": {
|
|
212
|
+
/** Send a reaction to a message */
|
|
213
|
+
post: operations["sendReactionMessage"];
|
|
214
|
+
};
|
|
215
|
+
"/messages/{messageId}/text": {
|
|
216
|
+
/** Edit a text message */
|
|
217
|
+
put: operations["updateMessagesText"];
|
|
218
|
+
};
|
|
219
|
+
"/messages/{messageId}/read": {
|
|
220
|
+
/** Mark a message as read */
|
|
221
|
+
put: operations["updateMessagesRead"];
|
|
222
|
+
};
|
|
223
|
+
"/messages/{messageId}/star": {
|
|
224
|
+
/** Star a message */
|
|
225
|
+
put: operations["updateMessagesStar"];
|
|
226
|
+
};
|
|
227
|
+
"/messages/{messageId}/delete": {
|
|
228
|
+
/** Delete a message */
|
|
229
|
+
put: operations["updateMessagesDelete"];
|
|
230
|
+
};
|
|
231
|
+
"/messages/{messageId}/delete/forme": {
|
|
232
|
+
/** Delete a message for me only */
|
|
233
|
+
put: operations["updateMessagesDeleteForme"];
|
|
234
|
+
};
|
|
235
|
+
"/session/login/qr/image": {
|
|
236
|
+
/**
|
|
237
|
+
* Get QR code image for WhatsApp login
|
|
238
|
+
* @description Retrieve the QR code image for logging into WhatsApp. The image can be displayed to the user for scanning.
|
|
239
|
+
*/
|
|
240
|
+
get: operations["getSessionLoginQrImage"];
|
|
241
|
+
};
|
|
242
|
+
"/session/login/qr/code": {
|
|
243
|
+
/** Get QR code string for WhatsApp login */
|
|
244
|
+
get: operations["getSessionLoginQrCode"];
|
|
245
|
+
};
|
|
246
|
+
"/session/login/code/{phone}": {
|
|
247
|
+
/**
|
|
248
|
+
* Get login code for WhatsApp
|
|
249
|
+
* @description Retrieve the login code for the specified phone number. The code should be used in the Whatsapp app link process.
|
|
250
|
+
*/
|
|
251
|
+
get: operations["getSessionLoginCode"];
|
|
252
|
+
};
|
|
253
|
+
"/session/status": {
|
|
254
|
+
/** Get WhatsApp session status */
|
|
255
|
+
get: operations["getSessionStatus"];
|
|
256
|
+
};
|
|
257
|
+
"/session/logout": {
|
|
258
|
+
/** Logout from WhatsApp */
|
|
259
|
+
post: operations["createSessionLogout"];
|
|
260
|
+
};
|
|
261
|
+
"/users/{phone}": {
|
|
262
|
+
/** Get user information */
|
|
263
|
+
get: operations["getUser"];
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
export interface components {
|
|
267
|
+
schemas: {
|
|
268
|
+
Error: {
|
|
269
|
+
/** @description A URI reference that identifies the problem type */
|
|
270
|
+
type: string;
|
|
271
|
+
/** @description A short, human-readable summary of the problem type */
|
|
272
|
+
title: string;
|
|
273
|
+
/** @description The HTTP status code generated by the origin server for this occurrence of the problem */
|
|
274
|
+
status: number;
|
|
275
|
+
/** @description A human-readable explanation specific to this occurrence of the problem */
|
|
276
|
+
detail: string;
|
|
277
|
+
};
|
|
278
|
+
SessionStatusResponse: {
|
|
279
|
+
/** @description Whether the client is connected to WhatsApp */
|
|
280
|
+
connected?: boolean;
|
|
281
|
+
/** @description Whether the client is logged in */
|
|
282
|
+
isLoggedIn?: boolean;
|
|
283
|
+
};
|
|
284
|
+
GeneratePairCodeResponse: {
|
|
285
|
+
/** @description The generated pair code */
|
|
286
|
+
code?: string;
|
|
287
|
+
};
|
|
288
|
+
GenerateQRCodeResponse: {
|
|
289
|
+
/** @description The generated QR code */
|
|
290
|
+
qrCode?: string;
|
|
291
|
+
};
|
|
292
|
+
InstanceSettings: {
|
|
293
|
+
/** @description The name of the instance */
|
|
294
|
+
name?: string;
|
|
295
|
+
/** @description The description of the instance */
|
|
296
|
+
description?: string;
|
|
297
|
+
/** @description Whether to use pull mode for events */
|
|
298
|
+
pullMode?: boolean;
|
|
299
|
+
};
|
|
300
|
+
InstanceSettingsRequest: {
|
|
301
|
+
/** @description The name of the instance */
|
|
302
|
+
name?: string;
|
|
303
|
+
/** @description The description of the instance */
|
|
304
|
+
description?: string;
|
|
305
|
+
/** @description Whether to use pull mode for events */
|
|
306
|
+
pullMode?: boolean;
|
|
307
|
+
};
|
|
308
|
+
SendTextRequest: {
|
|
309
|
+
/** @description Recipient's contact number or group. For contacts it should be the full phone number and can include the whatsapp subfix (e.g. 1234567890@s.whatsapp.net). For groups should contain the groups subfix (e.g. 123456789012344555234@g.us). */
|
|
310
|
+
to: string;
|
|
311
|
+
/** @description Message text content */
|
|
312
|
+
text: string;
|
|
313
|
+
/** @description List of mentioned phone numbers. The numbers included in this list should be referenced as @<number> in the message text. (e.g. "Hello @1234567890"). */
|
|
314
|
+
mentions?: string[];
|
|
315
|
+
/** @description ID of the message being replied to */
|
|
316
|
+
replyTo?: string;
|
|
317
|
+
/** @description Whether the message is forwarded (if true, it will be marked as forwarded in WhatsApp) */
|
|
318
|
+
isForwarded?: boolean;
|
|
319
|
+
};
|
|
320
|
+
SendLinkRequest: {
|
|
321
|
+
to: string;
|
|
322
|
+
text: string;
|
|
323
|
+
url: string;
|
|
324
|
+
title?: string;
|
|
325
|
+
description?: string;
|
|
326
|
+
/** Format: byte */
|
|
327
|
+
jpegThumbnail?: string;
|
|
328
|
+
mentions?: string[];
|
|
329
|
+
replyTo?: string;
|
|
330
|
+
isForwarded?: boolean;
|
|
331
|
+
};
|
|
332
|
+
SendImageRequest: {
|
|
333
|
+
to: string;
|
|
334
|
+
/** Format: byte */
|
|
335
|
+
imageBase64?: string;
|
|
336
|
+
imageURL?: string;
|
|
337
|
+
mimeType: string;
|
|
338
|
+
caption?: string;
|
|
339
|
+
mentions?: string[];
|
|
340
|
+
replyTo?: string;
|
|
341
|
+
isForwarded?: boolean;
|
|
342
|
+
viewOnce?: boolean;
|
|
343
|
+
};
|
|
344
|
+
SendVideoRequest: {
|
|
345
|
+
/** @description Recipient's contact number or group. For contacts it should be the full phone number and can include the whatsapp subfix (e.g. 1234567890@s.whatsapp.net). For groups should contain the groups subfix (e.g. 123456789012344555234@g.us). */
|
|
346
|
+
to: string;
|
|
347
|
+
/**
|
|
348
|
+
* Format: byte
|
|
349
|
+
* @description Base64 encoded video content. This field is required if videoURL is not provided.
|
|
350
|
+
*/
|
|
351
|
+
videoBase64?: string;
|
|
352
|
+
/** @description URL of the video. This field is required if videoBase64 is not provided. */
|
|
353
|
+
videoURL?: string;
|
|
354
|
+
/** @description MIME type of the video (e.g. "video/mp4"). */
|
|
355
|
+
mimeType: string;
|
|
356
|
+
/** @description Caption for the video. It's displayed below the video in the chat. */
|
|
357
|
+
caption?: string;
|
|
358
|
+
/** @description Whether the video should be sent as a view once message (if true, the video will disappear after being viewed). */
|
|
359
|
+
viewOnce?: boolean;
|
|
360
|
+
/** @description List of mentioned phone numbers. The numbers included in this list should be referenced as @<number> in the message text. (e.g. "Hello @1234567890"). */
|
|
361
|
+
mentions?: string[];
|
|
362
|
+
/** @description ID of the message being replied to */
|
|
363
|
+
replyTo?: string;
|
|
364
|
+
/** @description Whether the message is forwarded (if true, it will be marked as forwarded in WhatsApp) */
|
|
365
|
+
isForwarded?: boolean;
|
|
366
|
+
};
|
|
367
|
+
SendAudioRequest: {
|
|
368
|
+
to: string;
|
|
369
|
+
/** Format: byte */
|
|
370
|
+
audioBase64?: string;
|
|
371
|
+
audioURL?: string;
|
|
372
|
+
mimeType: string;
|
|
373
|
+
mentions?: string[];
|
|
374
|
+
replyTo?: string;
|
|
375
|
+
isForwarded?: boolean;
|
|
376
|
+
viewOnce?: boolean;
|
|
377
|
+
};
|
|
378
|
+
SendVoiceRequest: {
|
|
379
|
+
to: string;
|
|
380
|
+
/** Format: byte */
|
|
381
|
+
voiceBase64?: string;
|
|
382
|
+
voiceURL?: string;
|
|
383
|
+
mentions?: string[];
|
|
384
|
+
replyTo?: string;
|
|
385
|
+
isForwarded?: boolean;
|
|
386
|
+
viewOnce?: boolean;
|
|
387
|
+
};
|
|
388
|
+
SendDocumentRequest: {
|
|
389
|
+
to: string;
|
|
390
|
+
/** Format: byte */
|
|
391
|
+
documentBase64?: string;
|
|
392
|
+
documentURL?: string;
|
|
393
|
+
fileName: string;
|
|
394
|
+
caption?: string;
|
|
395
|
+
mentions?: string[];
|
|
396
|
+
replyTo?: string;
|
|
397
|
+
isForwarded?: boolean;
|
|
398
|
+
};
|
|
399
|
+
SendStickerRequest: {
|
|
400
|
+
/** @description Recipient's contact number or group. For contacts it should be the full phone number and can include the whatsapp subfix (e.g. 1234567890@s.whatsapp.net). For groups should contain the groups subfix (e.g. 123456789012344555234@g.us). */
|
|
401
|
+
to: string;
|
|
402
|
+
/** Format: byte */
|
|
403
|
+
stickerBase64?: string;
|
|
404
|
+
stickerURL?: string;
|
|
405
|
+
mimeType: string;
|
|
406
|
+
isAnimated?: boolean;
|
|
407
|
+
/** @description List of mentioned phone numbers. The numbers included in this list should be referenced as @<number> in the message text. (e.g. "Hello @1234567890"). */
|
|
408
|
+
mentions?: string[];
|
|
409
|
+
/** @description ID of the message being replied to */
|
|
410
|
+
replyTo?: string;
|
|
411
|
+
/** @description Whether the message is forwarded (if true, it will be marked as forwarded in WhatsApp) */
|
|
412
|
+
isForwarded?: boolean;
|
|
413
|
+
};
|
|
414
|
+
SendReactionRequest: {
|
|
415
|
+
to: string;
|
|
416
|
+
senderId: string;
|
|
417
|
+
reaction: string;
|
|
418
|
+
};
|
|
419
|
+
SendContactRequest: {
|
|
420
|
+
to: string;
|
|
421
|
+
/** @description Display name for the contact. Required if vCard is not provided. */
|
|
422
|
+
displayName?: string;
|
|
423
|
+
/** @description Raw vCard string. Required if displayName is not provided. */
|
|
424
|
+
vCard?: string;
|
|
425
|
+
mentions?: string[];
|
|
426
|
+
replyTo?: string;
|
|
427
|
+
isForwarded?: boolean;
|
|
428
|
+
};
|
|
429
|
+
SendLocationRequest: {
|
|
430
|
+
to: string;
|
|
431
|
+
/** Format: float */
|
|
432
|
+
latitude: number;
|
|
433
|
+
/** Format: float */
|
|
434
|
+
longitude: number;
|
|
435
|
+
name?: string;
|
|
436
|
+
address?: string;
|
|
437
|
+
url?: string;
|
|
438
|
+
};
|
|
439
|
+
MarkMessageAsReadRequest: {
|
|
440
|
+
chatId: string;
|
|
441
|
+
senderId: string;
|
|
442
|
+
/** @enum {string} */
|
|
443
|
+
receiptType: "delivered" | "sender" | "read" | "played";
|
|
444
|
+
};
|
|
445
|
+
StarMessageRequest: {
|
|
446
|
+
chatId: string;
|
|
447
|
+
senderId: string;
|
|
448
|
+
};
|
|
449
|
+
RejectCallRequest: {
|
|
450
|
+
/** @description JID of the call creator */
|
|
451
|
+
callerId: string;
|
|
452
|
+
};
|
|
453
|
+
DeleteMessageRequest: {
|
|
454
|
+
/** @description ID of the chat containing the message */
|
|
455
|
+
chatId: string;
|
|
456
|
+
/** @description ID of the message sender */
|
|
457
|
+
senderId: string;
|
|
458
|
+
};
|
|
459
|
+
DeleteMessageForMeRequest: {
|
|
460
|
+
/** @description ID of the chat containing the message */
|
|
461
|
+
chatId: string;
|
|
462
|
+
/** @description ID of the message sender */
|
|
463
|
+
senderId: string;
|
|
464
|
+
/** @description If the message to delete is from the sender */
|
|
465
|
+
ifFromMe: boolean;
|
|
466
|
+
/**
|
|
467
|
+
* Format: date-time
|
|
468
|
+
* @description Time when the message was sent (could be aproximate, but is required)
|
|
469
|
+
*/
|
|
470
|
+
Time: string;
|
|
471
|
+
};
|
|
472
|
+
ChatInfo: {
|
|
473
|
+
/** @description Chat JID */
|
|
474
|
+
id: string;
|
|
475
|
+
/** @description LID associated with the chat when available */
|
|
476
|
+
lid?: string | null;
|
|
477
|
+
/** @description Indicates whether the chat is read-only */
|
|
478
|
+
isReadOnly: boolean;
|
|
479
|
+
/** @description Indicates whether the chat is a group chat */
|
|
480
|
+
isGroup: boolean;
|
|
481
|
+
/** @description Indicates whether the chat is archived */
|
|
482
|
+
isArchived: boolean;
|
|
483
|
+
/** @description Indicates whether the chat is pinned */
|
|
484
|
+
isPinned: boolean;
|
|
485
|
+
/** @description Indicates whether ephemeral messages are enabled */
|
|
486
|
+
isEphemeral: boolean;
|
|
487
|
+
/**
|
|
488
|
+
* @description Ephemeral message expiration policy
|
|
489
|
+
* @enum {string|null}
|
|
490
|
+
*/
|
|
491
|
+
ephemeralExpiration?: "off" | "24h" | "7d" | "90d" | null;
|
|
492
|
+
/** @description Indicates whether the chat is muted */
|
|
493
|
+
isMuted: boolean;
|
|
494
|
+
/**
|
|
495
|
+
* Format: date-time
|
|
496
|
+
* @description When the mute configuration expires, if applicable
|
|
497
|
+
*/
|
|
498
|
+
muteEndTime?: string | null;
|
|
499
|
+
/** @description Indicates whether the chat is flagged as spam */
|
|
500
|
+
isSpam: boolean;
|
|
501
|
+
};
|
|
502
|
+
ContactInfo: {
|
|
503
|
+
/** @description Contact JID */
|
|
504
|
+
id: string;
|
|
505
|
+
/** @description LID associated with the contact when available */
|
|
506
|
+
lid?: string | null;
|
|
507
|
+
/** @description Contact full name */
|
|
508
|
+
fullName: string;
|
|
509
|
+
/** @description Contact business name */
|
|
510
|
+
businessName: string;
|
|
511
|
+
/** @description Contact push name */
|
|
512
|
+
pushName: string;
|
|
513
|
+
/** @description Contact status message */
|
|
514
|
+
status: string;
|
|
515
|
+
/** @description Current profile picture identifier */
|
|
516
|
+
pictureId: string;
|
|
517
|
+
/** @description Indicates if the contact is in the phone address book */
|
|
518
|
+
inPhoneAddressBook: boolean;
|
|
519
|
+
};
|
|
520
|
+
ContactBusinessProfile: {
|
|
521
|
+
/** @description Business profile identifier */
|
|
522
|
+
id: string;
|
|
523
|
+
/** @description Physical address of the business */
|
|
524
|
+
address: string;
|
|
525
|
+
/** @description Business description */
|
|
526
|
+
description: string;
|
|
527
|
+
/** @description Contact email address for the business */
|
|
528
|
+
email: string;
|
|
529
|
+
/** @description Business website URL */
|
|
530
|
+
website: string;
|
|
531
|
+
/**
|
|
532
|
+
* Format: double
|
|
533
|
+
* @description Latitude of the business location
|
|
534
|
+
*/
|
|
535
|
+
latitude: number;
|
|
536
|
+
/**
|
|
537
|
+
* Format: double
|
|
538
|
+
* @description Longitude of the business location
|
|
539
|
+
*/
|
|
540
|
+
longitude: number;
|
|
541
|
+
/** @description Date when the business joined WhatsApp */
|
|
542
|
+
memberSince: string;
|
|
543
|
+
/** @description Categories associated with the business */
|
|
544
|
+
categories: components["schemas"]["ContactBusinessCategory"][];
|
|
545
|
+
/** @description Time zone used for the business hours */
|
|
546
|
+
businessHoursTimeZone: string;
|
|
547
|
+
/** @description Opening hours for the business */
|
|
548
|
+
businessHours: components["schemas"]["BusinessHours"][];
|
|
549
|
+
/** @description Additional profile options represented as key-value pairs */
|
|
550
|
+
profileOptions: {
|
|
551
|
+
[key: string]: string;
|
|
552
|
+
};
|
|
553
|
+
};
|
|
554
|
+
ContactBusinessCategory: {
|
|
555
|
+
/** @description Category identifier */
|
|
556
|
+
id: string;
|
|
557
|
+
/** @description Category display name */
|
|
558
|
+
name: string;
|
|
559
|
+
};
|
|
560
|
+
BusinessHours: {
|
|
561
|
+
/** @description Day of the week the schedule applies to */
|
|
562
|
+
dayOfWeek: string;
|
|
563
|
+
/** @description Business hours mode (for example OPEN or CLOSED) */
|
|
564
|
+
mode: string;
|
|
565
|
+
/** @description Opening time in HH:mm format */
|
|
566
|
+
openTime: string;
|
|
567
|
+
/** @description Closing time in HH:mm format */
|
|
568
|
+
closeTime: string;
|
|
569
|
+
};
|
|
570
|
+
ContactPicture: {
|
|
571
|
+
/** @description Identifier of the contact picture */
|
|
572
|
+
pictureId: string;
|
|
573
|
+
/** @description Download URL for the contact picture */
|
|
574
|
+
pictureUrl: string;
|
|
575
|
+
};
|
|
576
|
+
};
|
|
577
|
+
responses: never;
|
|
578
|
+
parameters: {
|
|
579
|
+
/** @description The ID of the WhatsApp instance */
|
|
580
|
+
InstanceIdHeader: string;
|
|
581
|
+
};
|
|
582
|
+
requestBodies: never;
|
|
583
|
+
headers: never;
|
|
584
|
+
pathItems: never;
|
|
585
|
+
}
|
|
586
|
+
export type $defs = Record<string, never>;
|
|
587
|
+
export type external = Record<string, never>;
|
|
588
|
+
export interface operations {
|
|
589
|
+
/**
|
|
590
|
+
* Get account information
|
|
591
|
+
* @description Retrieve the current account information including ID, name, and status.
|
|
592
|
+
*/
|
|
593
|
+
getAccountInfo: {
|
|
594
|
+
parameters: {
|
|
595
|
+
header: {
|
|
596
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
597
|
+
};
|
|
598
|
+
};
|
|
599
|
+
responses: {
|
|
600
|
+
/** @description Account information */
|
|
601
|
+
200: {
|
|
602
|
+
content: {
|
|
603
|
+
"application/json": {
|
|
604
|
+
/** @description Account ID */
|
|
605
|
+
jid?: string;
|
|
606
|
+
/** @description Account name */
|
|
607
|
+
name?: string;
|
|
608
|
+
/** @description Account status */
|
|
609
|
+
status?: string;
|
|
610
|
+
};
|
|
611
|
+
};
|
|
612
|
+
};
|
|
613
|
+
/** @description Bad request */
|
|
614
|
+
400: {
|
|
615
|
+
content: {
|
|
616
|
+
"application/json": components["schemas"]["Error"];
|
|
617
|
+
};
|
|
618
|
+
};
|
|
619
|
+
/** @description Internal server error */
|
|
620
|
+
500: {
|
|
621
|
+
content: {
|
|
622
|
+
"application/json": components["schemas"]["Error"];
|
|
623
|
+
};
|
|
624
|
+
};
|
|
625
|
+
};
|
|
626
|
+
};
|
|
627
|
+
/** Set account name */
|
|
628
|
+
setAccountName: {
|
|
629
|
+
parameters: {
|
|
630
|
+
header: {
|
|
631
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
632
|
+
};
|
|
633
|
+
};
|
|
634
|
+
requestBody: {
|
|
635
|
+
content: {
|
|
636
|
+
"application/json": {
|
|
637
|
+
/** @description New account name */
|
|
638
|
+
name: string;
|
|
639
|
+
};
|
|
640
|
+
};
|
|
641
|
+
};
|
|
642
|
+
responses: {
|
|
643
|
+
/** @description Account name updated successfully */
|
|
644
|
+
204: {
|
|
645
|
+
content: never;
|
|
646
|
+
};
|
|
647
|
+
/** @description Bad request */
|
|
648
|
+
400: {
|
|
649
|
+
content: {
|
|
650
|
+
"application/json": components["schemas"]["Error"];
|
|
651
|
+
};
|
|
652
|
+
};
|
|
653
|
+
/** @description Internal server error */
|
|
654
|
+
500: {
|
|
655
|
+
content: {
|
|
656
|
+
"application/json": components["schemas"]["Error"];
|
|
657
|
+
};
|
|
658
|
+
};
|
|
659
|
+
};
|
|
660
|
+
};
|
|
661
|
+
/** Set account profile picture */
|
|
662
|
+
setAccountPicture: {
|
|
663
|
+
parameters: {
|
|
664
|
+
header: {
|
|
665
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
666
|
+
};
|
|
667
|
+
};
|
|
668
|
+
requestBody: {
|
|
669
|
+
content: {
|
|
670
|
+
"application/json": {
|
|
671
|
+
/** @description Base64 encoded image data */
|
|
672
|
+
pictureBase64: string;
|
|
673
|
+
};
|
|
674
|
+
};
|
|
675
|
+
};
|
|
676
|
+
responses: {
|
|
677
|
+
/** @description Profile picture updated successfully */
|
|
678
|
+
201: {
|
|
679
|
+
content: {
|
|
680
|
+
"application/json": {
|
|
681
|
+
/** @description Picture ID */
|
|
682
|
+
id?: string;
|
|
683
|
+
};
|
|
684
|
+
};
|
|
685
|
+
};
|
|
686
|
+
/** @description Bad request */
|
|
687
|
+
400: {
|
|
688
|
+
content: {
|
|
689
|
+
"application/json": components["schemas"]["Error"];
|
|
690
|
+
};
|
|
691
|
+
};
|
|
692
|
+
/** @description Internal server error */
|
|
693
|
+
500: {
|
|
694
|
+
content: {
|
|
695
|
+
"application/json": components["schemas"]["Error"];
|
|
696
|
+
};
|
|
697
|
+
};
|
|
698
|
+
};
|
|
699
|
+
};
|
|
700
|
+
/** Set account presence */
|
|
701
|
+
setAccountPresence: {
|
|
702
|
+
parameters: {
|
|
703
|
+
header: {
|
|
704
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
705
|
+
};
|
|
706
|
+
};
|
|
707
|
+
requestBody: {
|
|
708
|
+
content: {
|
|
709
|
+
"application/json": {
|
|
710
|
+
/**
|
|
711
|
+
* @description Presence status
|
|
712
|
+
* @enum {string}
|
|
713
|
+
*/
|
|
714
|
+
status: "available" | "unavailable";
|
|
715
|
+
};
|
|
716
|
+
};
|
|
717
|
+
};
|
|
718
|
+
responses: {
|
|
719
|
+
/** @description Presence updated successfully */
|
|
720
|
+
204: {
|
|
721
|
+
content: never;
|
|
722
|
+
};
|
|
723
|
+
/** @description Bad request */
|
|
724
|
+
400: {
|
|
725
|
+
content: {
|
|
726
|
+
"application/json": components["schemas"]["Error"];
|
|
727
|
+
};
|
|
728
|
+
};
|
|
729
|
+
/** @description Internal server error */
|
|
730
|
+
500: {
|
|
731
|
+
content: {
|
|
732
|
+
"application/json": components["schemas"]["Error"];
|
|
733
|
+
};
|
|
734
|
+
};
|
|
735
|
+
};
|
|
736
|
+
};
|
|
737
|
+
/** Set account status */
|
|
738
|
+
setAccountStatus: {
|
|
739
|
+
parameters: {
|
|
740
|
+
header: {
|
|
741
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
742
|
+
};
|
|
743
|
+
};
|
|
744
|
+
requestBody: {
|
|
745
|
+
content: {
|
|
746
|
+
"application/json": {
|
|
747
|
+
/** @description Account status message */
|
|
748
|
+
status: string;
|
|
749
|
+
};
|
|
750
|
+
};
|
|
751
|
+
};
|
|
752
|
+
responses: {
|
|
753
|
+
/** @description Status updated successfully */
|
|
754
|
+
204: {
|
|
755
|
+
content: never;
|
|
756
|
+
};
|
|
757
|
+
/** @description Bad request */
|
|
758
|
+
400: {
|
|
759
|
+
content: {
|
|
760
|
+
"application/json": components["schemas"]["Error"];
|
|
761
|
+
};
|
|
762
|
+
};
|
|
763
|
+
/** @description Internal server error */
|
|
764
|
+
500: {
|
|
765
|
+
content: {
|
|
766
|
+
"application/json": components["schemas"]["Error"];
|
|
767
|
+
};
|
|
768
|
+
};
|
|
769
|
+
};
|
|
770
|
+
};
|
|
771
|
+
/** Reject an incoming call */
|
|
772
|
+
updateCallsReject: {
|
|
773
|
+
parameters: {
|
|
774
|
+
header: {
|
|
775
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
776
|
+
};
|
|
777
|
+
path: {
|
|
778
|
+
callId: string;
|
|
779
|
+
};
|
|
780
|
+
};
|
|
781
|
+
requestBody: {
|
|
782
|
+
content: {
|
|
783
|
+
"application/json": components["schemas"]["RejectCallRequest"];
|
|
784
|
+
};
|
|
785
|
+
};
|
|
786
|
+
responses: {
|
|
787
|
+
/** @description Call rejected successfully */
|
|
788
|
+
204: {
|
|
789
|
+
content: never;
|
|
790
|
+
};
|
|
791
|
+
/** @description Bad request */
|
|
792
|
+
400: {
|
|
793
|
+
content: {
|
|
794
|
+
"application/json": components["schemas"]["Error"];
|
|
795
|
+
};
|
|
796
|
+
};
|
|
797
|
+
/** @description Internal server error */
|
|
798
|
+
500: {
|
|
799
|
+
content: {
|
|
800
|
+
"application/json": components["schemas"]["Error"];
|
|
801
|
+
};
|
|
802
|
+
};
|
|
803
|
+
};
|
|
804
|
+
};
|
|
805
|
+
/** List all WhatsApp chats */
|
|
806
|
+
getChats: {
|
|
807
|
+
parameters: {
|
|
808
|
+
header: {
|
|
809
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
810
|
+
};
|
|
811
|
+
};
|
|
812
|
+
responses: {
|
|
813
|
+
/** @description List of chats */
|
|
814
|
+
200: {
|
|
815
|
+
content: {
|
|
816
|
+
"application/json": components["schemas"]["ChatInfo"][];
|
|
817
|
+
};
|
|
818
|
+
};
|
|
819
|
+
/** @description Bad request */
|
|
820
|
+
400: {
|
|
821
|
+
content: {
|
|
822
|
+
"application/json": components["schemas"]["Error"];
|
|
823
|
+
};
|
|
824
|
+
};
|
|
825
|
+
/** @description Internal server error */
|
|
826
|
+
500: {
|
|
827
|
+
content: {
|
|
828
|
+
"application/json": components["schemas"]["Error"];
|
|
829
|
+
};
|
|
830
|
+
};
|
|
831
|
+
};
|
|
832
|
+
};
|
|
833
|
+
/** Get chat information */
|
|
834
|
+
getChat: {
|
|
835
|
+
parameters: {
|
|
836
|
+
header: {
|
|
837
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
838
|
+
};
|
|
839
|
+
path: {
|
|
840
|
+
chatId: string;
|
|
841
|
+
};
|
|
842
|
+
};
|
|
843
|
+
responses: {
|
|
844
|
+
/** @description Chat information */
|
|
845
|
+
200: {
|
|
846
|
+
content: {
|
|
847
|
+
"application/json": components["schemas"]["ChatInfo"];
|
|
848
|
+
};
|
|
849
|
+
};
|
|
850
|
+
/** @description Bad request */
|
|
851
|
+
400: {
|
|
852
|
+
content: {
|
|
853
|
+
"application/json": components["schemas"]["Error"];
|
|
854
|
+
};
|
|
855
|
+
};
|
|
856
|
+
/** @description Internal server error */
|
|
857
|
+
500: {
|
|
858
|
+
content: {
|
|
859
|
+
"application/json": components["schemas"]["Error"];
|
|
860
|
+
};
|
|
861
|
+
};
|
|
862
|
+
};
|
|
863
|
+
};
|
|
864
|
+
/** Delete chat */
|
|
865
|
+
deleteChat: {
|
|
866
|
+
parameters: {
|
|
867
|
+
header: {
|
|
868
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
869
|
+
};
|
|
870
|
+
path: {
|
|
871
|
+
chatId: string;
|
|
872
|
+
};
|
|
873
|
+
};
|
|
874
|
+
responses: {
|
|
875
|
+
/** @description Chat deleted successfully */
|
|
876
|
+
204: {
|
|
877
|
+
content: never;
|
|
878
|
+
};
|
|
879
|
+
/** @description Bad request */
|
|
880
|
+
400: {
|
|
881
|
+
content: {
|
|
882
|
+
"application/json": components["schemas"]["Error"];
|
|
883
|
+
};
|
|
884
|
+
};
|
|
885
|
+
/** @description Internal server error */
|
|
886
|
+
500: {
|
|
887
|
+
content: {
|
|
888
|
+
"application/json": components["schemas"]["Error"];
|
|
889
|
+
};
|
|
890
|
+
};
|
|
891
|
+
};
|
|
892
|
+
};
|
|
893
|
+
/** Update chat presence */
|
|
894
|
+
setChatPresence: {
|
|
895
|
+
parameters: {
|
|
896
|
+
header: {
|
|
897
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
898
|
+
};
|
|
899
|
+
path: {
|
|
900
|
+
chatId: string;
|
|
901
|
+
};
|
|
902
|
+
};
|
|
903
|
+
requestBody: {
|
|
904
|
+
content: {
|
|
905
|
+
"application/json": {
|
|
906
|
+
/**
|
|
907
|
+
* @description Presence state
|
|
908
|
+
* @enum {string}
|
|
909
|
+
*/
|
|
910
|
+
state: "typing" | "recording" | "paused";
|
|
911
|
+
};
|
|
912
|
+
};
|
|
913
|
+
};
|
|
914
|
+
responses: {
|
|
915
|
+
/** @description Presence updated successfully */
|
|
916
|
+
204: {
|
|
917
|
+
content: never;
|
|
918
|
+
};
|
|
919
|
+
/** @description Bad request */
|
|
920
|
+
400: {
|
|
921
|
+
content: {
|
|
922
|
+
"application/json": components["schemas"]["Error"];
|
|
923
|
+
};
|
|
924
|
+
};
|
|
925
|
+
/** @description Internal server error */
|
|
926
|
+
500: {
|
|
927
|
+
content: {
|
|
928
|
+
"application/json": components["schemas"]["Error"];
|
|
929
|
+
};
|
|
930
|
+
};
|
|
931
|
+
};
|
|
932
|
+
};
|
|
933
|
+
/** Set ephemeral message expiration */
|
|
934
|
+
updateChatEphemeral: {
|
|
935
|
+
parameters: {
|
|
936
|
+
header: {
|
|
937
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
938
|
+
};
|
|
939
|
+
path: {
|
|
940
|
+
chatId: string;
|
|
941
|
+
};
|
|
942
|
+
};
|
|
943
|
+
requestBody: {
|
|
944
|
+
content: {
|
|
945
|
+
"application/json": {
|
|
946
|
+
/**
|
|
947
|
+
* @description Message expiration time
|
|
948
|
+
* @enum {string}
|
|
949
|
+
*/
|
|
950
|
+
ephemeralExpiration: "off" | "24h" | "7d" | "90d";
|
|
951
|
+
};
|
|
952
|
+
};
|
|
953
|
+
};
|
|
954
|
+
responses: {
|
|
955
|
+
/** @description Ephemeral expiration set successfully */
|
|
956
|
+
204: {
|
|
957
|
+
content: never;
|
|
958
|
+
};
|
|
959
|
+
/** @description Bad request */
|
|
960
|
+
400: {
|
|
961
|
+
content: {
|
|
962
|
+
"application/json": components["schemas"]["Error"];
|
|
963
|
+
};
|
|
964
|
+
};
|
|
965
|
+
/** @description Internal server error */
|
|
966
|
+
500: {
|
|
967
|
+
content: {
|
|
968
|
+
"application/json": components["schemas"]["Error"];
|
|
969
|
+
};
|
|
970
|
+
};
|
|
971
|
+
};
|
|
972
|
+
};
|
|
973
|
+
/** Mute chat */
|
|
974
|
+
updateChatMute: {
|
|
975
|
+
parameters: {
|
|
976
|
+
header: {
|
|
977
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
978
|
+
};
|
|
979
|
+
path: {
|
|
980
|
+
chatId: string;
|
|
981
|
+
};
|
|
982
|
+
};
|
|
983
|
+
requestBody: {
|
|
984
|
+
content: {
|
|
985
|
+
"application/json": {
|
|
986
|
+
/** @description Duration preset for muting the chat (for example '8h', '1w', 'always'); omit or set to null to unmute */
|
|
987
|
+
duration?: string | null;
|
|
988
|
+
};
|
|
989
|
+
};
|
|
990
|
+
};
|
|
991
|
+
responses: {
|
|
992
|
+
/** @description Chat muted successfully */
|
|
993
|
+
204: {
|
|
994
|
+
content: never;
|
|
995
|
+
};
|
|
996
|
+
/** @description Bad request */
|
|
997
|
+
400: {
|
|
998
|
+
content: {
|
|
999
|
+
"application/json": components["schemas"]["Error"];
|
|
1000
|
+
};
|
|
1001
|
+
};
|
|
1002
|
+
/** @description Internal server error */
|
|
1003
|
+
500: {
|
|
1004
|
+
content: {
|
|
1005
|
+
"application/json": components["schemas"]["Error"];
|
|
1006
|
+
};
|
|
1007
|
+
};
|
|
1008
|
+
};
|
|
1009
|
+
};
|
|
1010
|
+
/** Pin or unpin chat */
|
|
1011
|
+
updateChatPin: {
|
|
1012
|
+
parameters: {
|
|
1013
|
+
header: {
|
|
1014
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
1015
|
+
};
|
|
1016
|
+
path: {
|
|
1017
|
+
chatId: string;
|
|
1018
|
+
};
|
|
1019
|
+
};
|
|
1020
|
+
requestBody: {
|
|
1021
|
+
content: {
|
|
1022
|
+
"application/json": {
|
|
1023
|
+
/** @description Whether to pin or unpin the chat */
|
|
1024
|
+
pinned: boolean;
|
|
1025
|
+
};
|
|
1026
|
+
};
|
|
1027
|
+
};
|
|
1028
|
+
responses: {
|
|
1029
|
+
/** @description Chat pin status updated successfully */
|
|
1030
|
+
204: {
|
|
1031
|
+
content: never;
|
|
1032
|
+
};
|
|
1033
|
+
/** @description Bad request */
|
|
1034
|
+
400: {
|
|
1035
|
+
content: {
|
|
1036
|
+
"application/json": components["schemas"]["Error"];
|
|
1037
|
+
};
|
|
1038
|
+
};
|
|
1039
|
+
/** @description Internal server error */
|
|
1040
|
+
500: {
|
|
1041
|
+
content: {
|
|
1042
|
+
"application/json": components["schemas"]["Error"];
|
|
1043
|
+
};
|
|
1044
|
+
};
|
|
1045
|
+
};
|
|
1046
|
+
};
|
|
1047
|
+
/** Archive or unarchive chat */
|
|
1048
|
+
updateChatArchive: {
|
|
1049
|
+
parameters: {
|
|
1050
|
+
header: {
|
|
1051
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
1052
|
+
};
|
|
1053
|
+
path: {
|
|
1054
|
+
chatId: string;
|
|
1055
|
+
};
|
|
1056
|
+
};
|
|
1057
|
+
requestBody: {
|
|
1058
|
+
content: {
|
|
1059
|
+
"application/json": {
|
|
1060
|
+
/** @description Whether to archive or unarchive the chat */
|
|
1061
|
+
archived: boolean;
|
|
1062
|
+
};
|
|
1063
|
+
};
|
|
1064
|
+
};
|
|
1065
|
+
responses: {
|
|
1066
|
+
/** @description Chat archive status updated successfully */
|
|
1067
|
+
204: {
|
|
1068
|
+
content: never;
|
|
1069
|
+
};
|
|
1070
|
+
/** @description Bad request */
|
|
1071
|
+
400: {
|
|
1072
|
+
content: {
|
|
1073
|
+
"application/json": components["schemas"]["Error"];
|
|
1074
|
+
};
|
|
1075
|
+
};
|
|
1076
|
+
/** @description Internal server error */
|
|
1077
|
+
500: {
|
|
1078
|
+
content: {
|
|
1079
|
+
"application/json": components["schemas"]["Error"];
|
|
1080
|
+
};
|
|
1081
|
+
};
|
|
1082
|
+
};
|
|
1083
|
+
};
|
|
1084
|
+
/** Mark chat as read */
|
|
1085
|
+
markChatAsRead: {
|
|
1086
|
+
parameters: {
|
|
1087
|
+
header: {
|
|
1088
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
1089
|
+
};
|
|
1090
|
+
path: {
|
|
1091
|
+
chatId: string;
|
|
1092
|
+
};
|
|
1093
|
+
};
|
|
1094
|
+
requestBody: {
|
|
1095
|
+
content: {
|
|
1096
|
+
"application/json": {
|
|
1097
|
+
/** @description Whether to mark the chat as read */
|
|
1098
|
+
read: boolean;
|
|
1099
|
+
};
|
|
1100
|
+
};
|
|
1101
|
+
};
|
|
1102
|
+
responses: {
|
|
1103
|
+
/** @description Chat marked as read successfully */
|
|
1104
|
+
204: {
|
|
1105
|
+
content: never;
|
|
1106
|
+
};
|
|
1107
|
+
/** @description Bad request */
|
|
1108
|
+
400: {
|
|
1109
|
+
content: {
|
|
1110
|
+
"application/json": components["schemas"]["Error"];
|
|
1111
|
+
};
|
|
1112
|
+
};
|
|
1113
|
+
/** @description Internal server error */
|
|
1114
|
+
500: {
|
|
1115
|
+
content: {
|
|
1116
|
+
"application/json": components["schemas"]["Error"];
|
|
1117
|
+
};
|
|
1118
|
+
};
|
|
1119
|
+
};
|
|
1120
|
+
};
|
|
1121
|
+
/** List all WhatsApp contacts */
|
|
1122
|
+
getContacts: {
|
|
1123
|
+
parameters: {
|
|
1124
|
+
header: {
|
|
1125
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
1126
|
+
};
|
|
1127
|
+
};
|
|
1128
|
+
responses: {
|
|
1129
|
+
/** @description List of contacts */
|
|
1130
|
+
200: {
|
|
1131
|
+
content: {
|
|
1132
|
+
"application/json": components["schemas"]["ContactInfo"][];
|
|
1133
|
+
};
|
|
1134
|
+
};
|
|
1135
|
+
/** @description Bad request */
|
|
1136
|
+
400: {
|
|
1137
|
+
content: {
|
|
1138
|
+
"application/json": components["schemas"]["Error"];
|
|
1139
|
+
};
|
|
1140
|
+
};
|
|
1141
|
+
/** @description Internal server error */
|
|
1142
|
+
500: {
|
|
1143
|
+
content: {
|
|
1144
|
+
"application/json": components["schemas"]["Error"];
|
|
1145
|
+
};
|
|
1146
|
+
};
|
|
1147
|
+
};
|
|
1148
|
+
};
|
|
1149
|
+
/** Create a new WhatsApp contact */
|
|
1150
|
+
createContact: {
|
|
1151
|
+
parameters: {
|
|
1152
|
+
header: {
|
|
1153
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
1154
|
+
};
|
|
1155
|
+
};
|
|
1156
|
+
requestBody: {
|
|
1157
|
+
content: {
|
|
1158
|
+
"application/json": {
|
|
1159
|
+
/** @description Contact ID */
|
|
1160
|
+
id: string;
|
|
1161
|
+
/** @description Contact's full name */
|
|
1162
|
+
fullName: string;
|
|
1163
|
+
/** @description Contact's first name */
|
|
1164
|
+
firstName: string;
|
|
1165
|
+
};
|
|
1166
|
+
};
|
|
1167
|
+
};
|
|
1168
|
+
responses: {
|
|
1169
|
+
/** @description Contact created successfully */
|
|
1170
|
+
204: {
|
|
1171
|
+
content: never;
|
|
1172
|
+
};
|
|
1173
|
+
/** @description Bad request */
|
|
1174
|
+
400: {
|
|
1175
|
+
content: {
|
|
1176
|
+
"application/json": components["schemas"]["Error"];
|
|
1177
|
+
};
|
|
1178
|
+
};
|
|
1179
|
+
/** @description Internal server error */
|
|
1180
|
+
500: {
|
|
1181
|
+
content: {
|
|
1182
|
+
"application/json": components["schemas"]["Error"];
|
|
1183
|
+
};
|
|
1184
|
+
};
|
|
1185
|
+
};
|
|
1186
|
+
};
|
|
1187
|
+
/** Get contact information */
|
|
1188
|
+
getContact: {
|
|
1189
|
+
parameters: {
|
|
1190
|
+
header: {
|
|
1191
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
1192
|
+
};
|
|
1193
|
+
path: {
|
|
1194
|
+
contactId: string;
|
|
1195
|
+
};
|
|
1196
|
+
};
|
|
1197
|
+
responses: {
|
|
1198
|
+
/** @description Contact information */
|
|
1199
|
+
200: {
|
|
1200
|
+
content: {
|
|
1201
|
+
"application/json": components["schemas"]["ContactInfo"];
|
|
1202
|
+
};
|
|
1203
|
+
};
|
|
1204
|
+
/** @description Bad request */
|
|
1205
|
+
400: {
|
|
1206
|
+
content: {
|
|
1207
|
+
"application/json": components["schemas"]["Error"];
|
|
1208
|
+
};
|
|
1209
|
+
};
|
|
1210
|
+
/** @description Internal server error */
|
|
1211
|
+
500: {
|
|
1212
|
+
content: {
|
|
1213
|
+
"application/json": components["schemas"]["Error"];
|
|
1214
|
+
};
|
|
1215
|
+
};
|
|
1216
|
+
};
|
|
1217
|
+
};
|
|
1218
|
+
/** Update contact information */
|
|
1219
|
+
updateContact: {
|
|
1220
|
+
parameters: {
|
|
1221
|
+
header: {
|
|
1222
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
1223
|
+
};
|
|
1224
|
+
path: {
|
|
1225
|
+
contactId: string;
|
|
1226
|
+
};
|
|
1227
|
+
};
|
|
1228
|
+
requestBody: {
|
|
1229
|
+
content: {
|
|
1230
|
+
"application/json": {
|
|
1231
|
+
/** @description Contact's full name */
|
|
1232
|
+
fullName: string;
|
|
1233
|
+
/** @description Contact's first name */
|
|
1234
|
+
firstName: string;
|
|
1235
|
+
};
|
|
1236
|
+
};
|
|
1237
|
+
};
|
|
1238
|
+
responses: {
|
|
1239
|
+
/** @description Contact updated successfully */
|
|
1240
|
+
204: {
|
|
1241
|
+
content: never;
|
|
1242
|
+
};
|
|
1243
|
+
/** @description Bad request */
|
|
1244
|
+
400: {
|
|
1245
|
+
content: {
|
|
1246
|
+
"application/json": components["schemas"]["Error"];
|
|
1247
|
+
};
|
|
1248
|
+
};
|
|
1249
|
+
/** @description Internal server error */
|
|
1250
|
+
500: {
|
|
1251
|
+
content: {
|
|
1252
|
+
"application/json": components["schemas"]["Error"];
|
|
1253
|
+
};
|
|
1254
|
+
};
|
|
1255
|
+
};
|
|
1256
|
+
};
|
|
1257
|
+
/** Get contact profile picture */
|
|
1258
|
+
getContactsPicture: {
|
|
1259
|
+
parameters: {
|
|
1260
|
+
header: {
|
|
1261
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
1262
|
+
};
|
|
1263
|
+
path: {
|
|
1264
|
+
contactId: string;
|
|
1265
|
+
};
|
|
1266
|
+
};
|
|
1267
|
+
responses: {
|
|
1268
|
+
/** @description Contact profile picture */
|
|
1269
|
+
200: {
|
|
1270
|
+
content: {
|
|
1271
|
+
"application/json": components["schemas"]["ContactPicture"];
|
|
1272
|
+
};
|
|
1273
|
+
};
|
|
1274
|
+
/** @description Bad request */
|
|
1275
|
+
400: {
|
|
1276
|
+
content: {
|
|
1277
|
+
"application/json": components["schemas"]["Error"];
|
|
1278
|
+
};
|
|
1279
|
+
};
|
|
1280
|
+
/** @description Internal server error */
|
|
1281
|
+
500: {
|
|
1282
|
+
content: {
|
|
1283
|
+
"application/json": components["schemas"]["Error"];
|
|
1284
|
+
};
|
|
1285
|
+
};
|
|
1286
|
+
};
|
|
1287
|
+
};
|
|
1288
|
+
/** Get contact business profile */
|
|
1289
|
+
getContactsBusiness: {
|
|
1290
|
+
parameters: {
|
|
1291
|
+
header: {
|
|
1292
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
1293
|
+
};
|
|
1294
|
+
path: {
|
|
1295
|
+
contactId: string;
|
|
1296
|
+
};
|
|
1297
|
+
};
|
|
1298
|
+
responses: {
|
|
1299
|
+
/** @description Business profile information */
|
|
1300
|
+
200: {
|
|
1301
|
+
content: {
|
|
1302
|
+
"application/json": components["schemas"]["ContactBusinessProfile"];
|
|
1303
|
+
};
|
|
1304
|
+
};
|
|
1305
|
+
/** @description Bad request */
|
|
1306
|
+
400: {
|
|
1307
|
+
content: {
|
|
1308
|
+
"application/json": components["schemas"]["Error"];
|
|
1309
|
+
};
|
|
1310
|
+
};
|
|
1311
|
+
/** @description Internal server error */
|
|
1312
|
+
500: {
|
|
1313
|
+
content: {
|
|
1314
|
+
"application/json": components["schemas"]["Error"];
|
|
1315
|
+
};
|
|
1316
|
+
};
|
|
1317
|
+
};
|
|
1318
|
+
};
|
|
1319
|
+
/** Update contact full name */
|
|
1320
|
+
updateContactsFullname: {
|
|
1321
|
+
parameters: {
|
|
1322
|
+
header: {
|
|
1323
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
1324
|
+
};
|
|
1325
|
+
path: {
|
|
1326
|
+
contactId: string;
|
|
1327
|
+
};
|
|
1328
|
+
};
|
|
1329
|
+
requestBody: {
|
|
1330
|
+
content: {
|
|
1331
|
+
"application/json": {
|
|
1332
|
+
/** @description New full name for the contact */
|
|
1333
|
+
fullName: string;
|
|
1334
|
+
};
|
|
1335
|
+
};
|
|
1336
|
+
};
|
|
1337
|
+
responses: {
|
|
1338
|
+
/** @description Contact name updated successfully */
|
|
1339
|
+
204: {
|
|
1340
|
+
content: never;
|
|
1341
|
+
};
|
|
1342
|
+
/** @description Bad request */
|
|
1343
|
+
400: {
|
|
1344
|
+
content: {
|
|
1345
|
+
"application/json": components["schemas"]["Error"];
|
|
1346
|
+
};
|
|
1347
|
+
};
|
|
1348
|
+
/** @description Internal server error */
|
|
1349
|
+
500: {
|
|
1350
|
+
content: {
|
|
1351
|
+
"application/json": components["schemas"]["Error"];
|
|
1352
|
+
};
|
|
1353
|
+
};
|
|
1354
|
+
};
|
|
1355
|
+
};
|
|
1356
|
+
/** Subscribe to contact presence updates */
|
|
1357
|
+
createContactsPresence: {
|
|
1358
|
+
parameters: {
|
|
1359
|
+
header: {
|
|
1360
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
1361
|
+
};
|
|
1362
|
+
path: {
|
|
1363
|
+
contactId: string;
|
|
1364
|
+
};
|
|
1365
|
+
};
|
|
1366
|
+
responses: {
|
|
1367
|
+
/** @description Successfully subscribed to presence updates */
|
|
1368
|
+
204: {
|
|
1369
|
+
content: never;
|
|
1370
|
+
};
|
|
1371
|
+
/** @description Bad request */
|
|
1372
|
+
400: {
|
|
1373
|
+
content: {
|
|
1374
|
+
"application/json": components["schemas"]["Error"];
|
|
1375
|
+
};
|
|
1376
|
+
};
|
|
1377
|
+
/** @description Internal server error */
|
|
1378
|
+
500: {
|
|
1379
|
+
content: {
|
|
1380
|
+
"application/json": components["schemas"]["Error"];
|
|
1381
|
+
};
|
|
1382
|
+
};
|
|
1383
|
+
};
|
|
1384
|
+
};
|
|
1385
|
+
/** List all WhatsApp groups */
|
|
1386
|
+
getGroups: {
|
|
1387
|
+
parameters: {
|
|
1388
|
+
header: {
|
|
1389
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
1390
|
+
};
|
|
1391
|
+
};
|
|
1392
|
+
responses: {
|
|
1393
|
+
/** @description List of groups */
|
|
1394
|
+
200: {
|
|
1395
|
+
content: {
|
|
1396
|
+
"application/json": {
|
|
1397
|
+
/** @description Group ID */
|
|
1398
|
+
id?: string;
|
|
1399
|
+
/** @description Group name */
|
|
1400
|
+
name?: string;
|
|
1401
|
+
/** @description Group description */
|
|
1402
|
+
description?: string;
|
|
1403
|
+
/** @description Group picture URL */
|
|
1404
|
+
picture?: string;
|
|
1405
|
+
/** @description Group invite link */
|
|
1406
|
+
inviteLink?: string;
|
|
1407
|
+
participants?: string[];
|
|
1408
|
+
}[];
|
|
1409
|
+
};
|
|
1410
|
+
};
|
|
1411
|
+
/** @description Bad request */
|
|
1412
|
+
400: {
|
|
1413
|
+
content: {
|
|
1414
|
+
"application/json": components["schemas"]["Error"];
|
|
1415
|
+
};
|
|
1416
|
+
};
|
|
1417
|
+
/** @description Internal server error */
|
|
1418
|
+
500: {
|
|
1419
|
+
content: {
|
|
1420
|
+
"application/json": components["schemas"]["Error"];
|
|
1421
|
+
};
|
|
1422
|
+
};
|
|
1423
|
+
};
|
|
1424
|
+
};
|
|
1425
|
+
/** Create a new WhatsApp group */
|
|
1426
|
+
createGroup: {
|
|
1427
|
+
parameters: {
|
|
1428
|
+
header: {
|
|
1429
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
1430
|
+
};
|
|
1431
|
+
};
|
|
1432
|
+
requestBody: {
|
|
1433
|
+
content: {
|
|
1434
|
+
"application/json": {
|
|
1435
|
+
/** @description Group name */
|
|
1436
|
+
name: string;
|
|
1437
|
+
participants: string[];
|
|
1438
|
+
};
|
|
1439
|
+
};
|
|
1440
|
+
};
|
|
1441
|
+
responses: {
|
|
1442
|
+
/** @description Group created successfully */
|
|
1443
|
+
201: {
|
|
1444
|
+
content: {
|
|
1445
|
+
"application/json": {
|
|
1446
|
+
/** @description Group ID */
|
|
1447
|
+
id?: string;
|
|
1448
|
+
};
|
|
1449
|
+
};
|
|
1450
|
+
};
|
|
1451
|
+
/** @description Bad request */
|
|
1452
|
+
400: {
|
|
1453
|
+
content: {
|
|
1454
|
+
"application/json": components["schemas"]["Error"];
|
|
1455
|
+
};
|
|
1456
|
+
};
|
|
1457
|
+
/** @description Internal server error */
|
|
1458
|
+
500: {
|
|
1459
|
+
content: {
|
|
1460
|
+
"application/json": components["schemas"]["Error"];
|
|
1461
|
+
};
|
|
1462
|
+
};
|
|
1463
|
+
};
|
|
1464
|
+
};
|
|
1465
|
+
/** Get group information */
|
|
1466
|
+
getGroup: {
|
|
1467
|
+
parameters: {
|
|
1468
|
+
header: {
|
|
1469
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
1470
|
+
};
|
|
1471
|
+
path: {
|
|
1472
|
+
groupId: string;
|
|
1473
|
+
};
|
|
1474
|
+
};
|
|
1475
|
+
responses: {
|
|
1476
|
+
/** @description Group information */
|
|
1477
|
+
200: {
|
|
1478
|
+
content: {
|
|
1479
|
+
"application/json": {
|
|
1480
|
+
/** @description Group ID */
|
|
1481
|
+
id?: string;
|
|
1482
|
+
/** @description Group name */
|
|
1483
|
+
name?: string;
|
|
1484
|
+
/** @description Group description */
|
|
1485
|
+
description?: string;
|
|
1486
|
+
/** @description Group picture URL */
|
|
1487
|
+
picture?: string;
|
|
1488
|
+
/** @description Group invite link */
|
|
1489
|
+
inviteLink?: string;
|
|
1490
|
+
participants?: string[];
|
|
1491
|
+
};
|
|
1492
|
+
};
|
|
1493
|
+
};
|
|
1494
|
+
/** @description Bad request */
|
|
1495
|
+
400: {
|
|
1496
|
+
content: {
|
|
1497
|
+
"application/json": components["schemas"]["Error"];
|
|
1498
|
+
};
|
|
1499
|
+
};
|
|
1500
|
+
/** @description Internal server error */
|
|
1501
|
+
500: {
|
|
1502
|
+
content: {
|
|
1503
|
+
"application/json": components["schemas"]["Error"];
|
|
1504
|
+
};
|
|
1505
|
+
};
|
|
1506
|
+
};
|
|
1507
|
+
};
|
|
1508
|
+
/** Delete group */
|
|
1509
|
+
deleteGroup: {
|
|
1510
|
+
parameters: {
|
|
1511
|
+
header: {
|
|
1512
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
1513
|
+
};
|
|
1514
|
+
path: {
|
|
1515
|
+
groupId: string;
|
|
1516
|
+
};
|
|
1517
|
+
};
|
|
1518
|
+
responses: {
|
|
1519
|
+
/** @description Group deleted successfully */
|
|
1520
|
+
204: {
|
|
1521
|
+
content: never;
|
|
1522
|
+
};
|
|
1523
|
+
/** @description Bad request */
|
|
1524
|
+
400: {
|
|
1525
|
+
content: {
|
|
1526
|
+
"application/json": components["schemas"]["Error"];
|
|
1527
|
+
};
|
|
1528
|
+
};
|
|
1529
|
+
/** @description Internal server error */
|
|
1530
|
+
500: {
|
|
1531
|
+
content: {
|
|
1532
|
+
"application/json": components["schemas"]["Error"];
|
|
1533
|
+
};
|
|
1534
|
+
};
|
|
1535
|
+
};
|
|
1536
|
+
};
|
|
1537
|
+
/** Update group description */
|
|
1538
|
+
setGroupsDescription: {
|
|
1539
|
+
parameters: {
|
|
1540
|
+
header: {
|
|
1541
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
1542
|
+
};
|
|
1543
|
+
path: {
|
|
1544
|
+
groupId: string;
|
|
1545
|
+
};
|
|
1546
|
+
};
|
|
1547
|
+
requestBody: {
|
|
1548
|
+
content: {
|
|
1549
|
+
"application/json": {
|
|
1550
|
+
/** @description New group description */
|
|
1551
|
+
description: string;
|
|
1552
|
+
};
|
|
1553
|
+
};
|
|
1554
|
+
};
|
|
1555
|
+
responses: {
|
|
1556
|
+
/** @description Group description updated successfully */
|
|
1557
|
+
204: {
|
|
1558
|
+
content: never;
|
|
1559
|
+
};
|
|
1560
|
+
/** @description Bad request */
|
|
1561
|
+
400: {
|
|
1562
|
+
content: {
|
|
1563
|
+
"application/json": components["schemas"]["Error"];
|
|
1564
|
+
};
|
|
1565
|
+
};
|
|
1566
|
+
/** @description Internal server error */
|
|
1567
|
+
500: {
|
|
1568
|
+
content: {
|
|
1569
|
+
"application/json": components["schemas"]["Error"];
|
|
1570
|
+
};
|
|
1571
|
+
};
|
|
1572
|
+
};
|
|
1573
|
+
};
|
|
1574
|
+
/** Update group name */
|
|
1575
|
+
setGroupsName: {
|
|
1576
|
+
parameters: {
|
|
1577
|
+
header: {
|
|
1578
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
1579
|
+
};
|
|
1580
|
+
path: {
|
|
1581
|
+
groupId: string;
|
|
1582
|
+
};
|
|
1583
|
+
};
|
|
1584
|
+
requestBody: {
|
|
1585
|
+
content: {
|
|
1586
|
+
"application/json": {
|
|
1587
|
+
/** @description New group name */
|
|
1588
|
+
name: string;
|
|
1589
|
+
};
|
|
1590
|
+
};
|
|
1591
|
+
};
|
|
1592
|
+
responses: {
|
|
1593
|
+
/** @description Group name updated successfully */
|
|
1594
|
+
204: {
|
|
1595
|
+
content: never;
|
|
1596
|
+
};
|
|
1597
|
+
/** @description Bad request */
|
|
1598
|
+
400: {
|
|
1599
|
+
content: {
|
|
1600
|
+
"application/json": components["schemas"]["Error"];
|
|
1601
|
+
};
|
|
1602
|
+
};
|
|
1603
|
+
/** @description Internal server error */
|
|
1604
|
+
500: {
|
|
1605
|
+
content: {
|
|
1606
|
+
"application/json": components["schemas"]["Error"];
|
|
1607
|
+
};
|
|
1608
|
+
};
|
|
1609
|
+
};
|
|
1610
|
+
};
|
|
1611
|
+
/** Set group picture */
|
|
1612
|
+
createGroupsPicture: {
|
|
1613
|
+
parameters: {
|
|
1614
|
+
header: {
|
|
1615
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
1616
|
+
};
|
|
1617
|
+
path: {
|
|
1618
|
+
groupId: string;
|
|
1619
|
+
};
|
|
1620
|
+
};
|
|
1621
|
+
requestBody: {
|
|
1622
|
+
content: {
|
|
1623
|
+
"application/json": {
|
|
1624
|
+
/** @description Base64 encoded image data */
|
|
1625
|
+
pictureBase64: string;
|
|
1626
|
+
};
|
|
1627
|
+
};
|
|
1628
|
+
};
|
|
1629
|
+
responses: {
|
|
1630
|
+
/** @description Group picture updated successfully */
|
|
1631
|
+
201: {
|
|
1632
|
+
content: {
|
|
1633
|
+
"application/json": {
|
|
1634
|
+
/** @description Picture ID */
|
|
1635
|
+
id?: string;
|
|
1636
|
+
};
|
|
1637
|
+
};
|
|
1638
|
+
};
|
|
1639
|
+
/** @description Bad request */
|
|
1640
|
+
400: {
|
|
1641
|
+
content: {
|
|
1642
|
+
"application/json": components["schemas"]["Error"];
|
|
1643
|
+
};
|
|
1644
|
+
};
|
|
1645
|
+
/** @description Internal server error */
|
|
1646
|
+
500: {
|
|
1647
|
+
content: {
|
|
1648
|
+
"application/json": components["schemas"]["Error"];
|
|
1649
|
+
};
|
|
1650
|
+
};
|
|
1651
|
+
};
|
|
1652
|
+
};
|
|
1653
|
+
/** Get group invite link */
|
|
1654
|
+
getGroupInviteLink: {
|
|
1655
|
+
parameters: {
|
|
1656
|
+
header: {
|
|
1657
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
1658
|
+
};
|
|
1659
|
+
path: {
|
|
1660
|
+
groupId: string;
|
|
1661
|
+
};
|
|
1662
|
+
};
|
|
1663
|
+
responses: {
|
|
1664
|
+
/** @description Group invite link */
|
|
1665
|
+
200: {
|
|
1666
|
+
content: {
|
|
1667
|
+
"application/json": string;
|
|
1668
|
+
};
|
|
1669
|
+
};
|
|
1670
|
+
/** @description Bad request */
|
|
1671
|
+
400: {
|
|
1672
|
+
content: {
|
|
1673
|
+
"application/json": components["schemas"]["Error"];
|
|
1674
|
+
};
|
|
1675
|
+
};
|
|
1676
|
+
/** @description Internal server error */
|
|
1677
|
+
500: {
|
|
1678
|
+
content: {
|
|
1679
|
+
"application/json": components["schemas"]["Error"];
|
|
1680
|
+
};
|
|
1681
|
+
};
|
|
1682
|
+
};
|
|
1683
|
+
};
|
|
1684
|
+
/** List group invite requests */
|
|
1685
|
+
getGroupsRequests: {
|
|
1686
|
+
parameters: {
|
|
1687
|
+
header: {
|
|
1688
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
1689
|
+
};
|
|
1690
|
+
path: {
|
|
1691
|
+
groupId: string;
|
|
1692
|
+
};
|
|
1693
|
+
};
|
|
1694
|
+
responses: {
|
|
1695
|
+
/** @description List of invite requests */
|
|
1696
|
+
200: {
|
|
1697
|
+
content: {
|
|
1698
|
+
"application/json": string[];
|
|
1699
|
+
};
|
|
1700
|
+
};
|
|
1701
|
+
/** @description Bad request */
|
|
1702
|
+
400: {
|
|
1703
|
+
content: {
|
|
1704
|
+
"application/json": components["schemas"]["Error"];
|
|
1705
|
+
};
|
|
1706
|
+
};
|
|
1707
|
+
/** @description Internal server error */
|
|
1708
|
+
500: {
|
|
1709
|
+
content: {
|
|
1710
|
+
"application/json": components["schemas"]["Error"];
|
|
1711
|
+
};
|
|
1712
|
+
};
|
|
1713
|
+
};
|
|
1714
|
+
};
|
|
1715
|
+
/** Update group participants */
|
|
1716
|
+
updateGroupsParticipants: {
|
|
1717
|
+
parameters: {
|
|
1718
|
+
header: {
|
|
1719
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
1720
|
+
};
|
|
1721
|
+
path: {
|
|
1722
|
+
groupId: string;
|
|
1723
|
+
};
|
|
1724
|
+
};
|
|
1725
|
+
requestBody: {
|
|
1726
|
+
content: {
|
|
1727
|
+
"application/json": {
|
|
1728
|
+
participants: string[];
|
|
1729
|
+
};
|
|
1730
|
+
};
|
|
1731
|
+
};
|
|
1732
|
+
responses: {
|
|
1733
|
+
/** @description Group participants updated successfully */
|
|
1734
|
+
204: {
|
|
1735
|
+
content: never;
|
|
1736
|
+
};
|
|
1737
|
+
/** @description Bad request */
|
|
1738
|
+
400: {
|
|
1739
|
+
content: {
|
|
1740
|
+
"application/json": components["schemas"]["Error"];
|
|
1741
|
+
};
|
|
1742
|
+
};
|
|
1743
|
+
/** @description Internal server error */
|
|
1744
|
+
500: {
|
|
1745
|
+
content: {
|
|
1746
|
+
"application/json": components["schemas"]["Error"];
|
|
1747
|
+
};
|
|
1748
|
+
};
|
|
1749
|
+
};
|
|
1750
|
+
};
|
|
1751
|
+
/** Get group invite information */
|
|
1752
|
+
getGroupInviteInfo: {
|
|
1753
|
+
parameters: {
|
|
1754
|
+
header: {
|
|
1755
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
1756
|
+
};
|
|
1757
|
+
path: {
|
|
1758
|
+
inviteCode: string;
|
|
1759
|
+
};
|
|
1760
|
+
};
|
|
1761
|
+
responses: {
|
|
1762
|
+
/** @description Group invite information */
|
|
1763
|
+
200: {
|
|
1764
|
+
content: {
|
|
1765
|
+
"application/json": {
|
|
1766
|
+
/** @description Invite code */
|
|
1767
|
+
code?: string;
|
|
1768
|
+
/** @description Group ID */
|
|
1769
|
+
group?: string;
|
|
1770
|
+
/** @description Invite expiration date */
|
|
1771
|
+
expires?: string;
|
|
1772
|
+
};
|
|
1773
|
+
};
|
|
1774
|
+
};
|
|
1775
|
+
/** @description Bad request */
|
|
1776
|
+
400: {
|
|
1777
|
+
content: {
|
|
1778
|
+
"application/json": components["schemas"]["Error"];
|
|
1779
|
+
};
|
|
1780
|
+
};
|
|
1781
|
+
/** @description Internal server error */
|
|
1782
|
+
500: {
|
|
1783
|
+
content: {
|
|
1784
|
+
"application/json": components["schemas"]["Error"];
|
|
1785
|
+
};
|
|
1786
|
+
};
|
|
1787
|
+
};
|
|
1788
|
+
};
|
|
1789
|
+
/** Get instance settings */
|
|
1790
|
+
getInstanceSettings: {
|
|
1791
|
+
parameters: {
|
|
1792
|
+
header: {
|
|
1793
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
1794
|
+
};
|
|
1795
|
+
};
|
|
1796
|
+
responses: {
|
|
1797
|
+
/** @description Instance settings */
|
|
1798
|
+
200: {
|
|
1799
|
+
content: {
|
|
1800
|
+
"application/json": components["schemas"]["InstanceSettings"];
|
|
1801
|
+
};
|
|
1802
|
+
};
|
|
1803
|
+
/** @description Bad request */
|
|
1804
|
+
400: {
|
|
1805
|
+
content: {
|
|
1806
|
+
"application/json": components["schemas"]["Error"];
|
|
1807
|
+
};
|
|
1808
|
+
};
|
|
1809
|
+
/** @description Internal server error */
|
|
1810
|
+
500: {
|
|
1811
|
+
content: {
|
|
1812
|
+
"application/json": components["schemas"]["Error"];
|
|
1813
|
+
};
|
|
1814
|
+
};
|
|
1815
|
+
};
|
|
1816
|
+
};
|
|
1817
|
+
/** Update instance settings */
|
|
1818
|
+
updateInstanceSettings: {
|
|
1819
|
+
parameters: {
|
|
1820
|
+
header: {
|
|
1821
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
1822
|
+
};
|
|
1823
|
+
};
|
|
1824
|
+
requestBody: {
|
|
1825
|
+
content: {
|
|
1826
|
+
"application/json": components["schemas"]["InstanceSettingsRequest"];
|
|
1827
|
+
};
|
|
1828
|
+
};
|
|
1829
|
+
responses: {
|
|
1830
|
+
/** @description Instance settings */
|
|
1831
|
+
200: {
|
|
1832
|
+
content: {
|
|
1833
|
+
"application/json": components["schemas"]["InstanceSettings"];
|
|
1834
|
+
};
|
|
1835
|
+
};
|
|
1836
|
+
/** @description Bad request */
|
|
1837
|
+
400: {
|
|
1838
|
+
content: {
|
|
1839
|
+
"application/json": components["schemas"]["Error"];
|
|
1840
|
+
};
|
|
1841
|
+
};
|
|
1842
|
+
/** @description Internal server error */
|
|
1843
|
+
500: {
|
|
1844
|
+
content: {
|
|
1845
|
+
"application/json": components["schemas"]["Error"];
|
|
1846
|
+
};
|
|
1847
|
+
};
|
|
1848
|
+
};
|
|
1849
|
+
};
|
|
1850
|
+
/** Update instance API key */
|
|
1851
|
+
updateApiKey: {
|
|
1852
|
+
parameters: {
|
|
1853
|
+
header: {
|
|
1854
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
1855
|
+
};
|
|
1856
|
+
};
|
|
1857
|
+
responses: {
|
|
1858
|
+
/** @description Instance settings */
|
|
1859
|
+
200: {
|
|
1860
|
+
content: {
|
|
1861
|
+
"application/json": string;
|
|
1862
|
+
};
|
|
1863
|
+
};
|
|
1864
|
+
/** @description Bad request */
|
|
1865
|
+
400: {
|
|
1866
|
+
content: {
|
|
1867
|
+
"application/json": components["schemas"]["Error"];
|
|
1868
|
+
};
|
|
1869
|
+
};
|
|
1870
|
+
/** @description Internal server error */
|
|
1871
|
+
500: {
|
|
1872
|
+
content: {
|
|
1873
|
+
"application/json": components["schemas"]["Error"];
|
|
1874
|
+
};
|
|
1875
|
+
};
|
|
1876
|
+
};
|
|
1877
|
+
};
|
|
1878
|
+
/** Restart instance */
|
|
1879
|
+
restartInstance: {
|
|
1880
|
+
parameters: {
|
|
1881
|
+
header: {
|
|
1882
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
1883
|
+
};
|
|
1884
|
+
};
|
|
1885
|
+
responses: {
|
|
1886
|
+
/** @description Instance restarted successfully */
|
|
1887
|
+
204: {
|
|
1888
|
+
content: never;
|
|
1889
|
+
};
|
|
1890
|
+
/** @description Bad request */
|
|
1891
|
+
400: {
|
|
1892
|
+
content: {
|
|
1893
|
+
"application/json": components["schemas"]["Error"];
|
|
1894
|
+
};
|
|
1895
|
+
};
|
|
1896
|
+
/** @description Internal server error */
|
|
1897
|
+
500: {
|
|
1898
|
+
content: {
|
|
1899
|
+
"application/json": components["schemas"]["Error"];
|
|
1900
|
+
};
|
|
1901
|
+
};
|
|
1902
|
+
};
|
|
1903
|
+
};
|
|
1904
|
+
/**
|
|
1905
|
+
* Download media file
|
|
1906
|
+
* @description Download a media file that was received. The id corresponds to the media.id field.
|
|
1907
|
+
*/
|
|
1908
|
+
getMediaDownload: {
|
|
1909
|
+
parameters: {
|
|
1910
|
+
query: {
|
|
1911
|
+
/** @description The ID of the media file to download */
|
|
1912
|
+
id: string;
|
|
1913
|
+
};
|
|
1914
|
+
header: {
|
|
1915
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
1916
|
+
};
|
|
1917
|
+
};
|
|
1918
|
+
responses: {
|
|
1919
|
+
/** @description Media file */
|
|
1920
|
+
200: {
|
|
1921
|
+
content: {
|
|
1922
|
+
"application/octet-stream": string;
|
|
1923
|
+
};
|
|
1924
|
+
};
|
|
1925
|
+
/** @description Bad request */
|
|
1926
|
+
400: {
|
|
1927
|
+
content: {
|
|
1928
|
+
"application/json": components["schemas"]["Error"];
|
|
1929
|
+
};
|
|
1930
|
+
};
|
|
1931
|
+
/** @description Internal server error */
|
|
1932
|
+
500: {
|
|
1933
|
+
content: {
|
|
1934
|
+
"application/json": components["schemas"]["Error"];
|
|
1935
|
+
};
|
|
1936
|
+
};
|
|
1937
|
+
};
|
|
1938
|
+
};
|
|
1939
|
+
/**
|
|
1940
|
+
* Send a text message
|
|
1941
|
+
* @description Send a text message to a WhatsApp contact or group. The response contains the MessageID, that can be used later for different actions, like reply, delete, forward, star, etc.
|
|
1942
|
+
*/
|
|
1943
|
+
sendTextMessage: {
|
|
1944
|
+
parameters: {
|
|
1945
|
+
header: {
|
|
1946
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
1947
|
+
};
|
|
1948
|
+
};
|
|
1949
|
+
requestBody: {
|
|
1950
|
+
content: {
|
|
1951
|
+
"application/json": components["schemas"]["SendTextRequest"];
|
|
1952
|
+
};
|
|
1953
|
+
};
|
|
1954
|
+
responses: {
|
|
1955
|
+
/** @description Message sent successfully */
|
|
1956
|
+
201: {
|
|
1957
|
+
content: {
|
|
1958
|
+
"application/json": {
|
|
1959
|
+
/** @description Unique message ID */
|
|
1960
|
+
id?: string;
|
|
1961
|
+
};
|
|
1962
|
+
};
|
|
1963
|
+
};
|
|
1964
|
+
/** @description Bad request */
|
|
1965
|
+
400: {
|
|
1966
|
+
content: {
|
|
1967
|
+
"application/json": components["schemas"]["Error"];
|
|
1968
|
+
};
|
|
1969
|
+
};
|
|
1970
|
+
/** @description Internal server error */
|
|
1971
|
+
500: {
|
|
1972
|
+
content: {
|
|
1973
|
+
"application/json": components["schemas"]["Error"];
|
|
1974
|
+
};
|
|
1975
|
+
};
|
|
1976
|
+
};
|
|
1977
|
+
};
|
|
1978
|
+
/**
|
|
1979
|
+
* Send a link message
|
|
1980
|
+
* @description Send a link message to a WhatsApp contact or group. The url contains the link. It can also contain a title and description and additionally a thumbnail (jpeg base64 encoded). The response contains the MessageID
|
|
1981
|
+
*/
|
|
1982
|
+
sendLinkMessage: {
|
|
1983
|
+
parameters: {
|
|
1984
|
+
header: {
|
|
1985
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
1986
|
+
};
|
|
1987
|
+
};
|
|
1988
|
+
requestBody: {
|
|
1989
|
+
content: {
|
|
1990
|
+
"application/json": components["schemas"]["SendLinkRequest"];
|
|
1991
|
+
};
|
|
1992
|
+
};
|
|
1993
|
+
responses: {
|
|
1994
|
+
/** @description Link message sent successfully */
|
|
1995
|
+
201: {
|
|
1996
|
+
content: {
|
|
1997
|
+
"application/json": {
|
|
1998
|
+
id?: string;
|
|
1999
|
+
};
|
|
2000
|
+
};
|
|
2001
|
+
};
|
|
2002
|
+
/** @description Bad request */
|
|
2003
|
+
400: {
|
|
2004
|
+
content: {
|
|
2005
|
+
"application/json": components["schemas"]["Error"];
|
|
2006
|
+
};
|
|
2007
|
+
};
|
|
2008
|
+
/** @description Internal server error */
|
|
2009
|
+
500: {
|
|
2010
|
+
content: {
|
|
2011
|
+
"application/json": components["schemas"]["Error"];
|
|
2012
|
+
};
|
|
2013
|
+
};
|
|
2014
|
+
};
|
|
2015
|
+
};
|
|
2016
|
+
/**
|
|
2017
|
+
* Send an image message
|
|
2018
|
+
* @description Send an image message to a WhatsApp contact or group. The image can be sent as a URL (that will be downloaded and sent as an image) or as a base64 encoded string. The response contains the MessageID.
|
|
2019
|
+
*/
|
|
2020
|
+
sendImageMessage: {
|
|
2021
|
+
parameters: {
|
|
2022
|
+
header: {
|
|
2023
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
2024
|
+
};
|
|
2025
|
+
};
|
|
2026
|
+
requestBody: {
|
|
2027
|
+
content: {
|
|
2028
|
+
"application/json": components["schemas"]["SendImageRequest"];
|
|
2029
|
+
};
|
|
2030
|
+
};
|
|
2031
|
+
responses: {
|
|
2032
|
+
/** @description Image message sent successfully */
|
|
2033
|
+
201: {
|
|
2034
|
+
content: {
|
|
2035
|
+
"application/json": {
|
|
2036
|
+
id?: string;
|
|
2037
|
+
};
|
|
2038
|
+
};
|
|
2039
|
+
};
|
|
2040
|
+
/** @description Bad request */
|
|
2041
|
+
400: {
|
|
2042
|
+
content: {
|
|
2043
|
+
"application/json": components["schemas"]["Error"];
|
|
2044
|
+
};
|
|
2045
|
+
};
|
|
2046
|
+
/** @description Internal server error */
|
|
2047
|
+
500: {
|
|
2048
|
+
content: {
|
|
2049
|
+
"application/json": components["schemas"]["Error"];
|
|
2050
|
+
};
|
|
2051
|
+
};
|
|
2052
|
+
};
|
|
2053
|
+
};
|
|
2054
|
+
/**
|
|
2055
|
+
* Send a video message
|
|
2056
|
+
* @description Send a video message to a WhatsApp contact or group. The video can be sent as a URL (that will be downloaded and sent as a video) or as a base64 encoded string. The response contains the MessageID.
|
|
2057
|
+
*/
|
|
2058
|
+
sendVideoMessage: {
|
|
2059
|
+
parameters: {
|
|
2060
|
+
header: {
|
|
2061
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
2062
|
+
};
|
|
2063
|
+
};
|
|
2064
|
+
requestBody: {
|
|
2065
|
+
content: {
|
|
2066
|
+
"application/json": components["schemas"]["SendVideoRequest"];
|
|
2067
|
+
};
|
|
2068
|
+
};
|
|
2069
|
+
responses: {
|
|
2070
|
+
/** @description Video message sent successfully */
|
|
2071
|
+
201: {
|
|
2072
|
+
content: {
|
|
2073
|
+
"application/json": {
|
|
2074
|
+
id?: string;
|
|
2075
|
+
};
|
|
2076
|
+
};
|
|
2077
|
+
};
|
|
2078
|
+
/** @description Bad request */
|
|
2079
|
+
400: {
|
|
2080
|
+
content: {
|
|
2081
|
+
"application/json": components["schemas"]["Error"];
|
|
2082
|
+
};
|
|
2083
|
+
};
|
|
2084
|
+
/** @description Internal server error */
|
|
2085
|
+
500: {
|
|
2086
|
+
content: {
|
|
2087
|
+
"application/json": components["schemas"]["Error"];
|
|
2088
|
+
};
|
|
2089
|
+
};
|
|
2090
|
+
};
|
|
2091
|
+
};
|
|
2092
|
+
/**
|
|
2093
|
+
* Send a sticker message
|
|
2094
|
+
* @description Send a sticker message to a WhatsApp contact or group. The sticker can be sent as a URL (that will be downloaded and sent as a sticker) or as a base64 encoded string. The response contains the MessageID.
|
|
2095
|
+
*/
|
|
2096
|
+
sendStickerMessage: {
|
|
2097
|
+
parameters: {
|
|
2098
|
+
header: {
|
|
2099
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
2100
|
+
};
|
|
2101
|
+
};
|
|
2102
|
+
requestBody: {
|
|
2103
|
+
content: {
|
|
2104
|
+
"application/json": components["schemas"]["SendStickerRequest"];
|
|
2105
|
+
};
|
|
2106
|
+
};
|
|
2107
|
+
responses: {
|
|
2108
|
+
/** @description Sticker message sent successfully */
|
|
2109
|
+
201: {
|
|
2110
|
+
content: {
|
|
2111
|
+
"application/json": {
|
|
2112
|
+
id?: string;
|
|
2113
|
+
};
|
|
2114
|
+
};
|
|
2115
|
+
};
|
|
2116
|
+
/** @description Bad request */
|
|
2117
|
+
400: {
|
|
2118
|
+
content: {
|
|
2119
|
+
"application/json": components["schemas"]["Error"];
|
|
2120
|
+
};
|
|
2121
|
+
};
|
|
2122
|
+
/** @description Internal server error */
|
|
2123
|
+
500: {
|
|
2124
|
+
content: {
|
|
2125
|
+
"application/json": components["schemas"]["Error"];
|
|
2126
|
+
};
|
|
2127
|
+
};
|
|
2128
|
+
};
|
|
2129
|
+
};
|
|
2130
|
+
/** Send an audio message */
|
|
2131
|
+
sendAudioMessage: {
|
|
2132
|
+
parameters: {
|
|
2133
|
+
header: {
|
|
2134
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
2135
|
+
};
|
|
2136
|
+
};
|
|
2137
|
+
requestBody: {
|
|
2138
|
+
content: {
|
|
2139
|
+
"application/json": components["schemas"]["SendAudioRequest"];
|
|
2140
|
+
};
|
|
2141
|
+
};
|
|
2142
|
+
responses: {
|
|
2143
|
+
/** @description Audio message sent successfully */
|
|
2144
|
+
201: {
|
|
2145
|
+
content: {
|
|
2146
|
+
"application/json": {
|
|
2147
|
+
id?: string;
|
|
2148
|
+
};
|
|
2149
|
+
};
|
|
2150
|
+
};
|
|
2151
|
+
/** @description Bad request */
|
|
2152
|
+
400: {
|
|
2153
|
+
content: {
|
|
2154
|
+
"application/json": components["schemas"]["Error"];
|
|
2155
|
+
};
|
|
2156
|
+
};
|
|
2157
|
+
/** @description Internal server error */
|
|
2158
|
+
500: {
|
|
2159
|
+
content: {
|
|
2160
|
+
"application/json": components["schemas"]["Error"];
|
|
2161
|
+
};
|
|
2162
|
+
};
|
|
2163
|
+
};
|
|
2164
|
+
};
|
|
2165
|
+
/** Send a voice message */
|
|
2166
|
+
sendVoiceMessage: {
|
|
2167
|
+
parameters: {
|
|
2168
|
+
header: {
|
|
2169
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
2170
|
+
};
|
|
2171
|
+
};
|
|
2172
|
+
requestBody: {
|
|
2173
|
+
content: {
|
|
2174
|
+
"application/json": components["schemas"]["SendVoiceRequest"];
|
|
2175
|
+
};
|
|
2176
|
+
};
|
|
2177
|
+
responses: {
|
|
2178
|
+
/** @description Voice message sent successfully */
|
|
2179
|
+
201: {
|
|
2180
|
+
content: {
|
|
2181
|
+
"application/json": {
|
|
2182
|
+
id?: string;
|
|
2183
|
+
};
|
|
2184
|
+
};
|
|
2185
|
+
};
|
|
2186
|
+
/** @description Bad request */
|
|
2187
|
+
400: {
|
|
2188
|
+
content: {
|
|
2189
|
+
"application/json": components["schemas"]["Error"];
|
|
2190
|
+
};
|
|
2191
|
+
};
|
|
2192
|
+
/** @description Internal server error */
|
|
2193
|
+
500: {
|
|
2194
|
+
content: {
|
|
2195
|
+
"application/json": components["schemas"]["Error"];
|
|
2196
|
+
};
|
|
2197
|
+
};
|
|
2198
|
+
};
|
|
2199
|
+
};
|
|
2200
|
+
/** Send a document message */
|
|
2201
|
+
sendDocumentMessage: {
|
|
2202
|
+
parameters: {
|
|
2203
|
+
header: {
|
|
2204
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
2205
|
+
};
|
|
2206
|
+
};
|
|
2207
|
+
requestBody: {
|
|
2208
|
+
content: {
|
|
2209
|
+
"application/json": components["schemas"]["SendDocumentRequest"];
|
|
2210
|
+
};
|
|
2211
|
+
};
|
|
2212
|
+
responses: {
|
|
2213
|
+
/** @description Document message sent successfully */
|
|
2214
|
+
201: {
|
|
2215
|
+
content: {
|
|
2216
|
+
"application/json": {
|
|
2217
|
+
id?: string;
|
|
2218
|
+
};
|
|
2219
|
+
};
|
|
2220
|
+
};
|
|
2221
|
+
/** @description Bad request */
|
|
2222
|
+
400: {
|
|
2223
|
+
content: {
|
|
2224
|
+
"application/json": components["schemas"]["Error"];
|
|
2225
|
+
};
|
|
2226
|
+
};
|
|
2227
|
+
/** @description Internal server error */
|
|
2228
|
+
500: {
|
|
2229
|
+
content: {
|
|
2230
|
+
"application/json": components["schemas"]["Error"];
|
|
2231
|
+
};
|
|
2232
|
+
};
|
|
2233
|
+
};
|
|
2234
|
+
};
|
|
2235
|
+
/** Send a contact message */
|
|
2236
|
+
sendContactMessage: {
|
|
2237
|
+
parameters: {
|
|
2238
|
+
header: {
|
|
2239
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
2240
|
+
};
|
|
2241
|
+
};
|
|
2242
|
+
requestBody: {
|
|
2243
|
+
content: {
|
|
2244
|
+
"application/json": components["schemas"]["SendContactRequest"];
|
|
2245
|
+
};
|
|
2246
|
+
};
|
|
2247
|
+
responses: {
|
|
2248
|
+
/** @description Contact message sent successfully */
|
|
2249
|
+
201: {
|
|
2250
|
+
content: {
|
|
2251
|
+
"application/json": {
|
|
2252
|
+
id?: string;
|
|
2253
|
+
};
|
|
2254
|
+
};
|
|
2255
|
+
};
|
|
2256
|
+
/** @description Bad request */
|
|
2257
|
+
400: {
|
|
2258
|
+
content: {
|
|
2259
|
+
"application/json": components["schemas"]["Error"];
|
|
2260
|
+
};
|
|
2261
|
+
};
|
|
2262
|
+
/** @description Internal server error */
|
|
2263
|
+
500: {
|
|
2264
|
+
content: {
|
|
2265
|
+
"application/json": components["schemas"]["Error"];
|
|
2266
|
+
};
|
|
2267
|
+
};
|
|
2268
|
+
};
|
|
2269
|
+
};
|
|
2270
|
+
/** Send a location message */
|
|
2271
|
+
sendLocationMessage: {
|
|
2272
|
+
parameters: {
|
|
2273
|
+
header: {
|
|
2274
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
2275
|
+
};
|
|
2276
|
+
};
|
|
2277
|
+
requestBody: {
|
|
2278
|
+
content: {
|
|
2279
|
+
"application/json": components["schemas"]["SendLocationRequest"];
|
|
2280
|
+
};
|
|
2281
|
+
};
|
|
2282
|
+
responses: {
|
|
2283
|
+
/** @description Location message sent successfully */
|
|
2284
|
+
201: {
|
|
2285
|
+
content: {
|
|
2286
|
+
"application/json": {
|
|
2287
|
+
id?: string;
|
|
2288
|
+
};
|
|
2289
|
+
};
|
|
2290
|
+
};
|
|
2291
|
+
/** @description Bad request */
|
|
2292
|
+
400: {
|
|
2293
|
+
content: {
|
|
2294
|
+
"application/json": components["schemas"]["Error"];
|
|
2295
|
+
};
|
|
2296
|
+
};
|
|
2297
|
+
/** @description Internal server error */
|
|
2298
|
+
500: {
|
|
2299
|
+
content: {
|
|
2300
|
+
"application/json": components["schemas"]["Error"];
|
|
2301
|
+
};
|
|
2302
|
+
};
|
|
2303
|
+
};
|
|
2304
|
+
};
|
|
2305
|
+
/** Send a reaction to a message */
|
|
2306
|
+
sendReactionMessage: {
|
|
2307
|
+
parameters: {
|
|
2308
|
+
header: {
|
|
2309
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
2310
|
+
};
|
|
2311
|
+
path: {
|
|
2312
|
+
messageId: string;
|
|
2313
|
+
};
|
|
2314
|
+
};
|
|
2315
|
+
requestBody: {
|
|
2316
|
+
content: {
|
|
2317
|
+
"application/json": components["schemas"]["SendReactionRequest"];
|
|
2318
|
+
};
|
|
2319
|
+
};
|
|
2320
|
+
responses: {
|
|
2321
|
+
/** @description Reaction sent successfully */
|
|
2322
|
+
201: {
|
|
2323
|
+
content: {
|
|
2324
|
+
"application/json": {
|
|
2325
|
+
id?: string;
|
|
2326
|
+
};
|
|
2327
|
+
};
|
|
2328
|
+
};
|
|
2329
|
+
/** @description Bad request */
|
|
2330
|
+
400: {
|
|
2331
|
+
content: {
|
|
2332
|
+
"application/json": components["schemas"]["Error"];
|
|
2333
|
+
};
|
|
2334
|
+
};
|
|
2335
|
+
/** @description Internal server error */
|
|
2336
|
+
500: {
|
|
2337
|
+
content: {
|
|
2338
|
+
"application/json": components["schemas"]["Error"];
|
|
2339
|
+
};
|
|
2340
|
+
};
|
|
2341
|
+
};
|
|
2342
|
+
};
|
|
2343
|
+
/** Edit a text message */
|
|
2344
|
+
updateMessagesText: {
|
|
2345
|
+
parameters: {
|
|
2346
|
+
header: {
|
|
2347
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
2348
|
+
};
|
|
2349
|
+
path: {
|
|
2350
|
+
messageId: string;
|
|
2351
|
+
};
|
|
2352
|
+
};
|
|
2353
|
+
requestBody: {
|
|
2354
|
+
content: {
|
|
2355
|
+
"application/json": components["schemas"]["SendTextRequest"];
|
|
2356
|
+
};
|
|
2357
|
+
};
|
|
2358
|
+
responses: {
|
|
2359
|
+
/** @description Message edited successfully */
|
|
2360
|
+
201: {
|
|
2361
|
+
content: {
|
|
2362
|
+
"application/json": {
|
|
2363
|
+
id?: string;
|
|
2364
|
+
};
|
|
2365
|
+
};
|
|
2366
|
+
};
|
|
2367
|
+
/** @description Bad request */
|
|
2368
|
+
400: {
|
|
2369
|
+
content: {
|
|
2370
|
+
"application/json": components["schemas"]["Error"];
|
|
2371
|
+
};
|
|
2372
|
+
};
|
|
2373
|
+
/** @description Internal server error */
|
|
2374
|
+
500: {
|
|
2375
|
+
content: {
|
|
2376
|
+
"application/json": components["schemas"]["Error"];
|
|
2377
|
+
};
|
|
2378
|
+
};
|
|
2379
|
+
};
|
|
2380
|
+
};
|
|
2381
|
+
/** Mark a message as read */
|
|
2382
|
+
updateMessagesRead: {
|
|
2383
|
+
parameters: {
|
|
2384
|
+
header: {
|
|
2385
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
2386
|
+
};
|
|
2387
|
+
path: {
|
|
2388
|
+
messageId: string;
|
|
2389
|
+
};
|
|
2390
|
+
};
|
|
2391
|
+
requestBody: {
|
|
2392
|
+
content: {
|
|
2393
|
+
/**
|
|
2394
|
+
* @example {
|
|
2395
|
+
* "chatId": "1234567890@s.whatsapp.net",
|
|
2396
|
+
* "senderId": "1234567890@s.whatsapp.net",
|
|
2397
|
+
* "receiptType": "read"
|
|
2398
|
+
* }
|
|
2399
|
+
*/
|
|
2400
|
+
"application/json": components["schemas"]["MarkMessageAsReadRequest"];
|
|
2401
|
+
};
|
|
2402
|
+
};
|
|
2403
|
+
responses: {
|
|
2404
|
+
/** @description Message marked as read successfully */
|
|
2405
|
+
200: {
|
|
2406
|
+
content: never;
|
|
2407
|
+
};
|
|
2408
|
+
/** @description Bad request */
|
|
2409
|
+
400: {
|
|
2410
|
+
content: {
|
|
2411
|
+
"application/json": components["schemas"]["Error"];
|
|
2412
|
+
};
|
|
2413
|
+
};
|
|
2414
|
+
/** @description Internal server error */
|
|
2415
|
+
500: {
|
|
2416
|
+
content: {
|
|
2417
|
+
"application/json": components["schemas"]["Error"];
|
|
2418
|
+
};
|
|
2419
|
+
};
|
|
2420
|
+
};
|
|
2421
|
+
};
|
|
2422
|
+
/** Star a message */
|
|
2423
|
+
updateMessagesStar: {
|
|
2424
|
+
parameters: {
|
|
2425
|
+
header: {
|
|
2426
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
2427
|
+
};
|
|
2428
|
+
path: {
|
|
2429
|
+
messageId: string;
|
|
2430
|
+
};
|
|
2431
|
+
};
|
|
2432
|
+
requestBody: {
|
|
2433
|
+
content: {
|
|
2434
|
+
/**
|
|
2435
|
+
* @example {
|
|
2436
|
+
* "chatId": "1234567890@s.whatsapp.net",
|
|
2437
|
+
* "senderId": "1234567890@s.whatsapp.net"
|
|
2438
|
+
* }
|
|
2439
|
+
*/
|
|
2440
|
+
"application/json": components["schemas"]["StarMessageRequest"];
|
|
2441
|
+
};
|
|
2442
|
+
};
|
|
2443
|
+
responses: {
|
|
2444
|
+
/** @description Message starred successfully */
|
|
2445
|
+
200: {
|
|
2446
|
+
content: never;
|
|
2447
|
+
};
|
|
2448
|
+
/** @description Bad request */
|
|
2449
|
+
400: {
|
|
2450
|
+
content: {
|
|
2451
|
+
"application/json": components["schemas"]["Error"];
|
|
2452
|
+
};
|
|
2453
|
+
};
|
|
2454
|
+
/** @description Internal server error */
|
|
2455
|
+
500: {
|
|
2456
|
+
content: {
|
|
2457
|
+
"application/json": components["schemas"]["Error"];
|
|
2458
|
+
};
|
|
2459
|
+
};
|
|
2460
|
+
};
|
|
2461
|
+
};
|
|
2462
|
+
/** Delete a message */
|
|
2463
|
+
updateMessagesDelete: {
|
|
2464
|
+
parameters: {
|
|
2465
|
+
header: {
|
|
2466
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
2467
|
+
};
|
|
2468
|
+
path: {
|
|
2469
|
+
messageId: string;
|
|
2470
|
+
};
|
|
2471
|
+
};
|
|
2472
|
+
requestBody: {
|
|
2473
|
+
content: {
|
|
2474
|
+
/**
|
|
2475
|
+
* @example {
|
|
2476
|
+
* "chatId": "1234567890@s.whatsapp.net",
|
|
2477
|
+
* "senderId": "1234567890@s.whatsapp.net"
|
|
2478
|
+
* }
|
|
2479
|
+
*/
|
|
2480
|
+
"application/json": components["schemas"]["DeleteMessageRequest"];
|
|
2481
|
+
};
|
|
2482
|
+
};
|
|
2483
|
+
responses: {
|
|
2484
|
+
/** @description Message deleted successfully */
|
|
2485
|
+
200: {
|
|
2486
|
+
content: never;
|
|
2487
|
+
};
|
|
2488
|
+
/** @description Bad request */
|
|
2489
|
+
400: {
|
|
2490
|
+
content: {
|
|
2491
|
+
"application/json": components["schemas"]["Error"];
|
|
2492
|
+
};
|
|
2493
|
+
};
|
|
2494
|
+
/** @description Internal server error */
|
|
2495
|
+
500: {
|
|
2496
|
+
content: {
|
|
2497
|
+
"application/json": components["schemas"]["Error"];
|
|
2498
|
+
};
|
|
2499
|
+
};
|
|
2500
|
+
};
|
|
2501
|
+
};
|
|
2502
|
+
/** Delete a message for me only */
|
|
2503
|
+
updateMessagesDeleteForme: {
|
|
2504
|
+
parameters: {
|
|
2505
|
+
header: {
|
|
2506
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
2507
|
+
};
|
|
2508
|
+
path: {
|
|
2509
|
+
messageId: string;
|
|
2510
|
+
};
|
|
2511
|
+
};
|
|
2512
|
+
requestBody: {
|
|
2513
|
+
content: {
|
|
2514
|
+
/**
|
|
2515
|
+
* @example {
|
|
2516
|
+
* "chatId": "1234567890@s.whatsapp.net",
|
|
2517
|
+
* "senderId": "1234567890@s.whatsapp.net",
|
|
2518
|
+
* "ifFromMe": true,
|
|
2519
|
+
* "Time": "2025-05-19T00:51:44.816Z"
|
|
2520
|
+
* }
|
|
2521
|
+
*/
|
|
2522
|
+
"application/json": components["schemas"]["DeleteMessageForMeRequest"];
|
|
2523
|
+
};
|
|
2524
|
+
};
|
|
2525
|
+
responses: {
|
|
2526
|
+
/** @description Message deleted for me successfully */
|
|
2527
|
+
200: {
|
|
2528
|
+
content: never;
|
|
2529
|
+
};
|
|
2530
|
+
/** @description Bad request */
|
|
2531
|
+
400: {
|
|
2532
|
+
content: {
|
|
2533
|
+
"application/json": components["schemas"]["Error"];
|
|
2534
|
+
};
|
|
2535
|
+
};
|
|
2536
|
+
/** @description Internal server error */
|
|
2537
|
+
500: {
|
|
2538
|
+
content: {
|
|
2539
|
+
"application/json": components["schemas"]["Error"];
|
|
2540
|
+
};
|
|
2541
|
+
};
|
|
2542
|
+
};
|
|
2543
|
+
};
|
|
2544
|
+
/**
|
|
2545
|
+
* Get QR code image for WhatsApp login
|
|
2546
|
+
* @description Retrieve the QR code image for logging into WhatsApp. The image can be displayed to the user for scanning.
|
|
2547
|
+
*/
|
|
2548
|
+
getSessionLoginQrImage: {
|
|
2549
|
+
parameters: {
|
|
2550
|
+
header: {
|
|
2551
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
2552
|
+
};
|
|
2553
|
+
};
|
|
2554
|
+
responses: {
|
|
2555
|
+
/** @description QR code image */
|
|
2556
|
+
200: {
|
|
2557
|
+
content: {
|
|
2558
|
+
"image/png": string;
|
|
2559
|
+
};
|
|
2560
|
+
};
|
|
2561
|
+
/** @description Bad request */
|
|
2562
|
+
400: {
|
|
2563
|
+
content: {
|
|
2564
|
+
"application/json": components["schemas"]["Error"];
|
|
2565
|
+
};
|
|
2566
|
+
};
|
|
2567
|
+
/** @description Internal server error */
|
|
2568
|
+
500: {
|
|
2569
|
+
content: {
|
|
2570
|
+
"application/json": components["schemas"]["Error"];
|
|
2571
|
+
};
|
|
2572
|
+
};
|
|
2573
|
+
};
|
|
2574
|
+
};
|
|
2575
|
+
/** Get QR code string for WhatsApp login */
|
|
2576
|
+
getSessionLoginQrCode: {
|
|
2577
|
+
parameters: {
|
|
2578
|
+
header: {
|
|
2579
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
2580
|
+
};
|
|
2581
|
+
};
|
|
2582
|
+
responses: {
|
|
2583
|
+
/** @description QR code string */
|
|
2584
|
+
200: {
|
|
2585
|
+
content: {
|
|
2586
|
+
"application/json": components["schemas"]["GenerateQRCodeResponse"];
|
|
2587
|
+
};
|
|
2588
|
+
};
|
|
2589
|
+
/** @description Bad request */
|
|
2590
|
+
400: {
|
|
2591
|
+
content: {
|
|
2592
|
+
"application/json": components["schemas"]["Error"];
|
|
2593
|
+
};
|
|
2594
|
+
};
|
|
2595
|
+
/** @description Internal server error */
|
|
2596
|
+
500: {
|
|
2597
|
+
content: {
|
|
2598
|
+
"application/json": components["schemas"]["Error"];
|
|
2599
|
+
};
|
|
2600
|
+
};
|
|
2601
|
+
};
|
|
2602
|
+
};
|
|
2603
|
+
/**
|
|
2604
|
+
* Get login code for WhatsApp
|
|
2605
|
+
* @description Retrieve the login code for the specified phone number. The code should be used in the Whatsapp app link process.
|
|
2606
|
+
*/
|
|
2607
|
+
getSessionLoginCode: {
|
|
2608
|
+
parameters: {
|
|
2609
|
+
header: {
|
|
2610
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
2611
|
+
};
|
|
2612
|
+
path: {
|
|
2613
|
+
phone: string;
|
|
2614
|
+
};
|
|
2615
|
+
};
|
|
2616
|
+
responses: {
|
|
2617
|
+
/** @description Login code */
|
|
2618
|
+
200: {
|
|
2619
|
+
content: {
|
|
2620
|
+
"application/json": components["schemas"]["GeneratePairCodeResponse"];
|
|
2621
|
+
};
|
|
2622
|
+
};
|
|
2623
|
+
/** @description Bad request */
|
|
2624
|
+
400: {
|
|
2625
|
+
content: {
|
|
2626
|
+
"application/json": components["schemas"]["Error"];
|
|
2627
|
+
};
|
|
2628
|
+
};
|
|
2629
|
+
/** @description Internal server error */
|
|
2630
|
+
500: {
|
|
2631
|
+
content: {
|
|
2632
|
+
"application/json": components["schemas"]["Error"];
|
|
2633
|
+
};
|
|
2634
|
+
};
|
|
2635
|
+
};
|
|
2636
|
+
};
|
|
2637
|
+
/** Get WhatsApp session status */
|
|
2638
|
+
getSessionStatus: {
|
|
2639
|
+
parameters: {
|
|
2640
|
+
header: {
|
|
2641
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
2642
|
+
};
|
|
2643
|
+
};
|
|
2644
|
+
responses: {
|
|
2645
|
+
/** @description Session status */
|
|
2646
|
+
200: {
|
|
2647
|
+
content: {
|
|
2648
|
+
"application/json": components["schemas"]["SessionStatusResponse"];
|
|
2649
|
+
};
|
|
2650
|
+
};
|
|
2651
|
+
/** @description Bad request */
|
|
2652
|
+
400: {
|
|
2653
|
+
content: {
|
|
2654
|
+
"application/json": components["schemas"]["Error"];
|
|
2655
|
+
};
|
|
2656
|
+
};
|
|
2657
|
+
/** @description Internal server error */
|
|
2658
|
+
500: {
|
|
2659
|
+
content: {
|
|
2660
|
+
"application/json": components["schemas"]["Error"];
|
|
2661
|
+
};
|
|
2662
|
+
};
|
|
2663
|
+
};
|
|
2664
|
+
};
|
|
2665
|
+
/** Logout from WhatsApp */
|
|
2666
|
+
createSessionLogout: {
|
|
2667
|
+
parameters: {
|
|
2668
|
+
header: {
|
|
2669
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
2670
|
+
};
|
|
2671
|
+
};
|
|
2672
|
+
responses: {
|
|
2673
|
+
/** @description Logged out successfully */
|
|
2674
|
+
204: {
|
|
2675
|
+
content: never;
|
|
2676
|
+
};
|
|
2677
|
+
/** @description Bad request */
|
|
2678
|
+
400: {
|
|
2679
|
+
content: {
|
|
2680
|
+
"application/json": components["schemas"]["Error"];
|
|
2681
|
+
};
|
|
2682
|
+
};
|
|
2683
|
+
/** @description Internal server error */
|
|
2684
|
+
500: {
|
|
2685
|
+
content: {
|
|
2686
|
+
"application/json": components["schemas"]["Error"];
|
|
2687
|
+
};
|
|
2688
|
+
};
|
|
2689
|
+
};
|
|
2690
|
+
};
|
|
2691
|
+
/** Get user information */
|
|
2692
|
+
getUser: {
|
|
2693
|
+
parameters: {
|
|
2694
|
+
header: {
|
|
2695
|
+
"X-Instance-Id": components["parameters"]["InstanceIdHeader"];
|
|
2696
|
+
};
|
|
2697
|
+
path: {
|
|
2698
|
+
phone: string;
|
|
2699
|
+
};
|
|
2700
|
+
};
|
|
2701
|
+
responses: {
|
|
2702
|
+
/** @description User information */
|
|
2703
|
+
200: {
|
|
2704
|
+
content: {
|
|
2705
|
+
"application/json": {
|
|
2706
|
+
/** @description User JID */
|
|
2707
|
+
jid?: string;
|
|
2708
|
+
/** @description User name */
|
|
2709
|
+
name?: string;
|
|
2710
|
+
/** @description User status */
|
|
2711
|
+
status?: string;
|
|
2712
|
+
};
|
|
2713
|
+
};
|
|
2714
|
+
};
|
|
2715
|
+
/** @description Bad request */
|
|
2716
|
+
400: {
|
|
2717
|
+
content: {
|
|
2718
|
+
"application/json": components["schemas"]["Error"];
|
|
2719
|
+
};
|
|
2720
|
+
};
|
|
2721
|
+
/** @description Internal server error */
|
|
2722
|
+
500: {
|
|
2723
|
+
content: {
|
|
2724
|
+
"application/json": components["schemas"]["Error"];
|
|
2725
|
+
};
|
|
2726
|
+
};
|
|
2727
|
+
};
|
|
2728
|
+
};
|
|
2729
|
+
}
|
|
2730
|
+
//# sourceMappingURL=api.d.ts.map
|