@wsapichat/mcp-server 1.0.5 → 3.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/README.md +58 -339
- package/dist/client/index.d.ts +4 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +47 -28
- package/dist/client/index.js.map +1 -1
- package/dist/config/index.d.ts +19 -54
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +57 -29
- package/dist/config/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +42 -36
- package/dist/index.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +127 -59
- package/dist/server.js.map +1 -1
- package/dist/tools/calls.d.ts +6 -0
- package/dist/tools/calls.d.ts.map +1 -0
- package/dist/tools/calls.js +26 -0
- package/dist/tools/calls.js.map +1 -0
- package/dist/tools/chats.d.ts +19 -1
- package/dist/tools/chats.d.ts.map +1 -1
- package/dist/tools/chats.js +242 -39
- package/dist/tools/chats.js.map +1 -1
- package/dist/tools/communities.d.ts +36 -0
- package/dist/tools/communities.d.ts.map +1 -0
- package/dist/tools/communities.js +318 -0
- package/dist/tools/communities.js.map +1 -0
- package/dist/tools/contacts.d.ts +9 -9
- package/dist/tools/contacts.d.ts.map +1 -1
- package/dist/tools/contacts.js +68 -158
- package/dist/tools/contacts.js.map +1 -1
- package/dist/tools/groups.d.ts +33 -1
- package/dist/tools/groups.d.ts.map +1 -1
- package/dist/tools/groups.js +367 -33
- package/dist/tools/groups.js.map +1 -1
- package/dist/tools/media.d.ts +6 -0
- package/dist/tools/media.d.ts.map +1 -0
- package/dist/tools/media.js +39 -0
- package/dist/tools/media.js.map +1 -0
- package/dist/tools/messaging-advanced.d.ts +1 -1
- package/dist/tools/messaging-advanced.d.ts.map +1 -1
- package/dist/tools/messaging-advanced.js +135 -281
- package/dist/tools/messaging-advanced.js.map +1 -1
- package/dist/tools/messaging.d.ts +5 -1
- package/dist/tools/messaging.d.ts.map +1 -1
- package/dist/tools/messaging.js +241 -319
- package/dist/tools/messaging.js.map +1 -1
- package/dist/tools/newsletters.d.ts +16 -0
- package/dist/tools/newsletters.d.ts.map +1 -0
- package/dist/tools/newsletters.js +131 -0
- package/dist/tools/newsletters.js.map +1 -0
- package/dist/tools/session.d.ts +3 -1
- package/dist/tools/session.d.ts.map +1 -1
- package/dist/tools/session.js +72 -37
- package/dist/tools/session.js.map +1 -1
- package/dist/tools/status.d.ts +14 -0
- package/dist/tools/status.d.ts.map +1 -0
- package/dist/tools/status.js +106 -0
- package/dist/tools/status.js.map +1 -0
- package/dist/tools/users.d.ts +20 -0
- package/dist/tools/users.d.ts.map +1 -0
- package/dist/tools/users.js +175 -0
- package/dist/tools/users.js.map +1 -0
- package/dist/types/api.d.ts +4508 -1726
- package/dist/types/api.d.ts.map +1 -1
- package/dist/utils/errors.d.ts +1 -1
- package/dist/utils/errors.d.ts.map +1 -1
- package/dist/utils/errors.js +43 -42
- package/dist/utils/errors.js.map +1 -1
- package/dist/utils/logger.d.ts +1 -1
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js +22 -22
- package/dist/utils/logger.js.map +1 -1
- package/dist/validation/schemas.d.ts +310 -651
- package/dist/validation/schemas.d.ts.map +1 -1
- package/dist/validation/schemas.js +245 -153
- package/dist/validation/schemas.js.map +1 -1
- package/package.json +25 -25
- package/dist/tools/account.d.ts +0 -14
- package/dist/tools/account.d.ts.map +0 -1
- package/dist/tools/account.js +0 -78
- package/dist/tools/account.js.map +0 -1
- package/dist/tools/instance.d.ts +0 -12
- package/dist/tools/instance.d.ts.map +0 -1
- package/dist/tools/instance.js +0 -54
- package/dist/tools/instance.js.map +0 -1
- package/dist/types/webhooks.d.ts +0 -1001
- package/dist/types/webhooks.d.ts.map +0 -1
- package/dist/types/webhooks.js +0 -6
- package/dist/types/webhooks.js.map +0 -1
package/dist/types/webhooks.d.ts
DELETED
|
@@ -1,1001 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by openapi-typescript.
|
|
3
|
-
* Do not make direct changes to the file.
|
|
4
|
-
*/
|
|
5
|
-
export type paths = Record<string, never>;
|
|
6
|
-
export interface webhooks {
|
|
7
|
-
"call_offer": {
|
|
8
|
-
/**
|
|
9
|
-
* Call offer event
|
|
10
|
-
* @description Event emitted when a call offer is received
|
|
11
|
-
*/
|
|
12
|
-
post: operations["receiveCallOfferEvent"];
|
|
13
|
-
};
|
|
14
|
-
"call_terminate": {
|
|
15
|
-
/**
|
|
16
|
-
* Call terminate event
|
|
17
|
-
* @description Event emitted when a call is terminated
|
|
18
|
-
*/
|
|
19
|
-
post: operations["receiveCallTerminateEvent"];
|
|
20
|
-
};
|
|
21
|
-
"call_accept": {
|
|
22
|
-
/**
|
|
23
|
-
* Call accept event
|
|
24
|
-
* @description Event emitted when a call is accepted
|
|
25
|
-
*/
|
|
26
|
-
post: operations["receiveCallAcceptEvent"];
|
|
27
|
-
};
|
|
28
|
-
"chat_setting": {
|
|
29
|
-
/**
|
|
30
|
-
* Chat setting event
|
|
31
|
-
* @description Event for chat settings changes (mute, pin, read, archive, ephemeral)
|
|
32
|
-
*/
|
|
33
|
-
post: operations["receiveChatSettingEvent"];
|
|
34
|
-
};
|
|
35
|
-
"chat_presence": {
|
|
36
|
-
/**
|
|
37
|
-
* Chat presence event
|
|
38
|
-
* @description Event for chat presence updates (typing, recording, paused)
|
|
39
|
-
*/
|
|
40
|
-
post: operations["receiveChatPresenceEvent"];
|
|
41
|
-
};
|
|
42
|
-
"contact": {
|
|
43
|
-
/**
|
|
44
|
-
* Contact event
|
|
45
|
-
* @description Event for contact updates
|
|
46
|
-
*/
|
|
47
|
-
post: operations["receiveContactEvent"];
|
|
48
|
-
};
|
|
49
|
-
"group": {
|
|
50
|
-
/**
|
|
51
|
-
* Group event
|
|
52
|
-
* @description Event for group updates
|
|
53
|
-
*/
|
|
54
|
-
post: operations["receiveGroupEvent"];
|
|
55
|
-
};
|
|
56
|
-
"message": {
|
|
57
|
-
/**
|
|
58
|
-
* Message event
|
|
59
|
-
* @description Event for new messages (text, media, reaction, contact, etc.)
|
|
60
|
-
*/
|
|
61
|
-
post: operations["receiveMessageEvent"];
|
|
62
|
-
};
|
|
63
|
-
"message_read": {
|
|
64
|
-
/**
|
|
65
|
-
* Message read event
|
|
66
|
-
* @description Event for message read receipts
|
|
67
|
-
*/
|
|
68
|
-
post: operations["receiveMessageReadEvent"];
|
|
69
|
-
};
|
|
70
|
-
"message_delete": {
|
|
71
|
-
/**
|
|
72
|
-
* Message delete event
|
|
73
|
-
* @description Event for message deletions
|
|
74
|
-
*/
|
|
75
|
-
post: operations["receiveMessageDeleteEvent"];
|
|
76
|
-
};
|
|
77
|
-
"message_star": {
|
|
78
|
-
/**
|
|
79
|
-
* Message star event
|
|
80
|
-
* @description Event for message star/unstar actions
|
|
81
|
-
*/
|
|
82
|
-
post: operations["receiveMessageStarEvent"];
|
|
83
|
-
};
|
|
84
|
-
"message_history_sync": {
|
|
85
|
-
/**
|
|
86
|
-
* Message history sync event
|
|
87
|
-
* @description Event sent during initial pairing, containing the recent message history for each chat.
|
|
88
|
-
*/
|
|
89
|
-
post: operations["receiveMessageHistorySyncEvent"];
|
|
90
|
-
};
|
|
91
|
-
"logged_in": {
|
|
92
|
-
/**
|
|
93
|
-
* Logged in event
|
|
94
|
-
* @description Event emitted when the user is logged in
|
|
95
|
-
*/
|
|
96
|
-
post: operations["receiveLoggedInEvent"];
|
|
97
|
-
};
|
|
98
|
-
"logged_out": {
|
|
99
|
-
/**
|
|
100
|
-
* Logged out event
|
|
101
|
-
* @description Event emitted when the user is logged out
|
|
102
|
-
*/
|
|
103
|
-
post: operations["receiveLoggedOutEvent"];
|
|
104
|
-
};
|
|
105
|
-
"logged_error": {
|
|
106
|
-
/**
|
|
107
|
-
* Logged error event
|
|
108
|
-
* @description Event emitted when the user is logged in with an error
|
|
109
|
-
*/
|
|
110
|
-
post: operations["receiveLoggedErrorEvent"];
|
|
111
|
-
};
|
|
112
|
-
"user_push_name": {
|
|
113
|
-
/**
|
|
114
|
-
* User push name event
|
|
115
|
-
* @description Event for user push name updates
|
|
116
|
-
*/
|
|
117
|
-
post: operations["receiveUserPushNameEvent"];
|
|
118
|
-
};
|
|
119
|
-
"user_status": {
|
|
120
|
-
/**
|
|
121
|
-
* User status event
|
|
122
|
-
* @description Event for user status updates
|
|
123
|
-
*/
|
|
124
|
-
post: operations["receiveUserStatusEvent"];
|
|
125
|
-
};
|
|
126
|
-
"user_picture": {
|
|
127
|
-
/**
|
|
128
|
-
* User picture event
|
|
129
|
-
* @description Event for user picture updates
|
|
130
|
-
*/
|
|
131
|
-
post: operations["receiveUserPictureEvent"];
|
|
132
|
-
};
|
|
133
|
-
"user_presence": {
|
|
134
|
-
/**
|
|
135
|
-
* User presence event
|
|
136
|
-
* @description Event for user presence updates
|
|
137
|
-
*/
|
|
138
|
-
post: operations["receiveUserPresenceEvent"];
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
export interface components {
|
|
142
|
-
schemas: {
|
|
143
|
-
LoggedOutEvent: {
|
|
144
|
-
/** @description The reason for being logged out */
|
|
145
|
-
reason?: string;
|
|
146
|
-
};
|
|
147
|
-
LoggedInEvent: {
|
|
148
|
-
/** @description The device ID */
|
|
149
|
-
deviceId?: string;
|
|
150
|
-
};
|
|
151
|
-
LoggedErrorEvent: {
|
|
152
|
-
/** @description The error message */
|
|
153
|
-
error?: string;
|
|
154
|
-
/** @description The device ID */
|
|
155
|
-
id?: string;
|
|
156
|
-
};
|
|
157
|
-
ChatSettingEvent: {
|
|
158
|
-
/** @description The chat ID */
|
|
159
|
-
id: string;
|
|
160
|
-
/**
|
|
161
|
-
* @description The type of chat setting
|
|
162
|
-
* @enum {string}
|
|
163
|
-
*/
|
|
164
|
-
settingType: "mute" | "pin" | "read" | "archive" | "ephemeral";
|
|
165
|
-
mute?: {
|
|
166
|
-
isMuted?: boolean;
|
|
167
|
-
/** Format: date-time */
|
|
168
|
-
muteEndTime?: string;
|
|
169
|
-
};
|
|
170
|
-
pin?: {
|
|
171
|
-
isPinned?: boolean;
|
|
172
|
-
};
|
|
173
|
-
read?: {
|
|
174
|
-
isRead?: boolean;
|
|
175
|
-
};
|
|
176
|
-
archive?: {
|
|
177
|
-
isArchived?: boolean;
|
|
178
|
-
};
|
|
179
|
-
ephemeral?: {
|
|
180
|
-
/** @enum {string} */
|
|
181
|
-
expiration?: "false" | "24h" | "7d" | "90d";
|
|
182
|
-
sender?: components["schemas"]["Sender"];
|
|
183
|
-
};
|
|
184
|
-
};
|
|
185
|
-
ChatPresenceEvent: {
|
|
186
|
-
/** @description The chat ID */
|
|
187
|
-
id: string;
|
|
188
|
-
sender: components["schemas"]["Sender"];
|
|
189
|
-
/** @enum {string} */
|
|
190
|
-
state: "typing" | "recording" | "paused";
|
|
191
|
-
};
|
|
192
|
-
MessageEvent: {
|
|
193
|
-
/** @description The message ID */
|
|
194
|
-
id: string;
|
|
195
|
-
/**
|
|
196
|
-
* Format: date-time
|
|
197
|
-
* @description The message timestamp
|
|
198
|
-
*/
|
|
199
|
-
time: string;
|
|
200
|
-
/** @description The chat ID */
|
|
201
|
-
chatId: string;
|
|
202
|
-
sender: components["schemas"]["Sender"];
|
|
203
|
-
isGroup?: boolean;
|
|
204
|
-
isStatus?: boolean;
|
|
205
|
-
/** @enum {string} */
|
|
206
|
-
type: "text" | "media" | "reaction" | "contact" | "contactArray" | "pinInChat";
|
|
207
|
-
text?: string;
|
|
208
|
-
media?: {
|
|
209
|
-
/** @enum {string} */
|
|
210
|
-
mediaType?: "image" | "video" | "audio" | "voice" | "document" | "sticker";
|
|
211
|
-
mimeType?: string;
|
|
212
|
-
/** @description The media ID that should be used to download the media file */
|
|
213
|
-
id?: string;
|
|
214
|
-
fileLength?: number;
|
|
215
|
-
caption?: string;
|
|
216
|
-
height?: number;
|
|
217
|
-
width?: number;
|
|
218
|
-
jpegThumbnail?: string;
|
|
219
|
-
duration?: number;
|
|
220
|
-
filename?: string;
|
|
221
|
-
pageCount?: number;
|
|
222
|
-
title?: string;
|
|
223
|
-
};
|
|
224
|
-
reaction?: {
|
|
225
|
-
messageId?: string;
|
|
226
|
-
emoji?: string;
|
|
227
|
-
};
|
|
228
|
-
/** @description vCard data for a single contact */
|
|
229
|
-
contact?: string;
|
|
230
|
-
/** @description Array of vCard strings when message contains multiple contacts */
|
|
231
|
-
contactArray?: string[];
|
|
232
|
-
extendedText?: {
|
|
233
|
-
matchedText?: string;
|
|
234
|
-
description?: string;
|
|
235
|
-
title?: string;
|
|
236
|
-
jpegThumbnail?: string;
|
|
237
|
-
};
|
|
238
|
-
mentions?: string[];
|
|
239
|
-
reply_to?: {
|
|
240
|
-
id?: string;
|
|
241
|
-
sender?: components["schemas"]["Sender"];
|
|
242
|
-
is_forwarded?: boolean;
|
|
243
|
-
text?: string;
|
|
244
|
-
};
|
|
245
|
-
/** @enum {string} */
|
|
246
|
-
ephemeralExpiration?: "false" | "24h" | "7d" | "90d";
|
|
247
|
-
isEdit?: boolean;
|
|
248
|
-
edit?: {
|
|
249
|
-
/** Format: date-time */
|
|
250
|
-
originalMessageTime?: string;
|
|
251
|
-
originalMessageId?: string;
|
|
252
|
-
};
|
|
253
|
-
pin?: {
|
|
254
|
-
pinned?: boolean;
|
|
255
|
-
messageId?: string;
|
|
256
|
-
/** @enum {string} */
|
|
257
|
-
expiration?: "false" | "24h" | "7d" | "30d";
|
|
258
|
-
};
|
|
259
|
-
};
|
|
260
|
-
MessageReadEvent: {
|
|
261
|
-
/** @description The chat ID */
|
|
262
|
-
chatId: string;
|
|
263
|
-
sender: components["schemas"]["Sender"];
|
|
264
|
-
messageSender?: components["schemas"]["Sender"];
|
|
265
|
-
isGroup?: boolean;
|
|
266
|
-
messageIds?: string[];
|
|
267
|
-
/** Format: date-time */
|
|
268
|
-
time: string;
|
|
269
|
-
/** @enum {string} */
|
|
270
|
-
receiptType: "delivered" | "read" | "played" | "readSelf" | "sender" | "retry" | "serverError" | "inactive" | "peerMsg" | "historySync";
|
|
271
|
-
};
|
|
272
|
-
MessageDeleteEvent: {
|
|
273
|
-
/** @description The message ID */
|
|
274
|
-
id: string;
|
|
275
|
-
sender: components["schemas"]["Sender"];
|
|
276
|
-
/** @description The chat ID */
|
|
277
|
-
chatId: string;
|
|
278
|
-
/** Format: date-time */
|
|
279
|
-
time: string;
|
|
280
|
-
isDeletedForAll?: boolean;
|
|
281
|
-
isDeletedForMe?: boolean;
|
|
282
|
-
isStatus?: boolean;
|
|
283
|
-
};
|
|
284
|
-
MessageStarEvent: {
|
|
285
|
-
/** @description The message ID */
|
|
286
|
-
id: string;
|
|
287
|
-
/** @description The chat ID */
|
|
288
|
-
chatId: string;
|
|
289
|
-
sender: components["schemas"]["Sender"];
|
|
290
|
-
/**
|
|
291
|
-
* Format: date-time
|
|
292
|
-
* @description The timestamp when the star action occurred
|
|
293
|
-
*/
|
|
294
|
-
time: string;
|
|
295
|
-
/** @description Whether the message was starred (true) or unstarred (false) */
|
|
296
|
-
isStarred: boolean;
|
|
297
|
-
};
|
|
298
|
-
MessageHistorySyncEvent: {
|
|
299
|
-
messages?: components["schemas"]["MessageEvent"][];
|
|
300
|
-
};
|
|
301
|
-
ContactEvent: {
|
|
302
|
-
/** @description The contact's user ID */
|
|
303
|
-
id: string;
|
|
304
|
-
/** @description The contact's full name */
|
|
305
|
-
fullName: string;
|
|
306
|
-
/** @description Whether the contact is saved in the phone's address book */
|
|
307
|
-
inPhoneAddressBook: boolean;
|
|
308
|
-
};
|
|
309
|
-
GroupEvent: {
|
|
310
|
-
/** @description The group chat ID */
|
|
311
|
-
id: string;
|
|
312
|
-
sender: components["schemas"]["Sender"];
|
|
313
|
-
description?: {
|
|
314
|
-
topic?: string;
|
|
315
|
-
/** Format: date-time */
|
|
316
|
-
timestamp?: string;
|
|
317
|
-
};
|
|
318
|
-
};
|
|
319
|
-
UserPushNameEvent: {
|
|
320
|
-
/** @description The user's chat ID */
|
|
321
|
-
id: string;
|
|
322
|
-
/** @description The user's push name */
|
|
323
|
-
pushName: string;
|
|
324
|
-
};
|
|
325
|
-
UserStatusEvent: {
|
|
326
|
-
/** @description The user's chat ID */
|
|
327
|
-
id: string;
|
|
328
|
-
/** @description The user's status message */
|
|
329
|
-
status: string;
|
|
330
|
-
};
|
|
331
|
-
UserPictureEvent: {
|
|
332
|
-
/** @description The user's chat ID */
|
|
333
|
-
id: string;
|
|
334
|
-
sender: components["schemas"]["Sender"];
|
|
335
|
-
/** @description The ID of the user's profile picture */
|
|
336
|
-
pictureId: string;
|
|
337
|
-
};
|
|
338
|
-
UserPresenceEvent: {
|
|
339
|
-
/** @description The user's chat ID */
|
|
340
|
-
id: string;
|
|
341
|
-
/** @enum {string} */
|
|
342
|
-
status: "available" | "unavailable";
|
|
343
|
-
/** Format: date-time */
|
|
344
|
-
lastSeen?: string;
|
|
345
|
-
};
|
|
346
|
-
CallOfferEvent: {
|
|
347
|
-
/** @description The call ID */
|
|
348
|
-
id: string;
|
|
349
|
-
/** @description The caller's user ID */
|
|
350
|
-
caller: string;
|
|
351
|
-
/** @description The chat ID where the call is offered */
|
|
352
|
-
chatId: string;
|
|
353
|
-
/**
|
|
354
|
-
* Format: date-time
|
|
355
|
-
* @description The timestamp of the call offer
|
|
356
|
-
*/
|
|
357
|
-
time: string;
|
|
358
|
-
/** @description Whether the call is a video call */
|
|
359
|
-
isVideo?: boolean;
|
|
360
|
-
};
|
|
361
|
-
CallTerminateEvent: {
|
|
362
|
-
/** @description The call ID */
|
|
363
|
-
id: string;
|
|
364
|
-
/** @description The caller's user ID */
|
|
365
|
-
caller: string;
|
|
366
|
-
/**
|
|
367
|
-
* Format: date-time
|
|
368
|
-
* @description The timestamp when the call was terminated
|
|
369
|
-
*/
|
|
370
|
-
time: string;
|
|
371
|
-
/**
|
|
372
|
-
* @description The reason for call termination
|
|
373
|
-
* @enum {string}
|
|
374
|
-
*/
|
|
375
|
-
reason: "rejected" | "ended";
|
|
376
|
-
};
|
|
377
|
-
CallAcceptEvent: {
|
|
378
|
-
/** @description The call ID */
|
|
379
|
-
id: string;
|
|
380
|
-
/** @description The caller's user ID */
|
|
381
|
-
caller: string;
|
|
382
|
-
/**
|
|
383
|
-
* Format: date-time
|
|
384
|
-
* @description The timestamp when the call was accepted
|
|
385
|
-
*/
|
|
386
|
-
time: string;
|
|
387
|
-
};
|
|
388
|
-
Sender: {
|
|
389
|
-
/** @description The sender's ID */
|
|
390
|
-
id: string;
|
|
391
|
-
/** @description Whether the sender is the current user */
|
|
392
|
-
isMe?: boolean;
|
|
393
|
-
/** @description The sender's push name */
|
|
394
|
-
pushName?: string;
|
|
395
|
-
};
|
|
396
|
-
};
|
|
397
|
-
responses: never;
|
|
398
|
-
parameters: never;
|
|
399
|
-
requestBodies: never;
|
|
400
|
-
headers: never;
|
|
401
|
-
pathItems: never;
|
|
402
|
-
}
|
|
403
|
-
export type $defs = Record<string, never>;
|
|
404
|
-
export type external = Record<string, never>;
|
|
405
|
-
export interface operations {
|
|
406
|
-
/**
|
|
407
|
-
* Call offer event
|
|
408
|
-
* @description Event emitted when a call offer is received
|
|
409
|
-
*/
|
|
410
|
-
receiveCallOfferEvent: {
|
|
411
|
-
requestBody: {
|
|
412
|
-
content: {
|
|
413
|
-
/**
|
|
414
|
-
* @example {
|
|
415
|
-
* "instanceId": "ins_ABCdefGHIjk",
|
|
416
|
-
* "receivedAt": "2025-05-19T00:51:44.816Z",
|
|
417
|
-
* "eventType": "call_offer",
|
|
418
|
-
* "eventData": {
|
|
419
|
-
* "id": "call_123",
|
|
420
|
-
* "caller": "1234567890@s.whatsapp.net",
|
|
421
|
-
* "chatId": "1234567890@s.whatsapp.net",
|
|
422
|
-
* "time": "2025-05-19T00:51:44.816Z",
|
|
423
|
-
* "isVideo": true
|
|
424
|
-
* }
|
|
425
|
-
* }
|
|
426
|
-
*/
|
|
427
|
-
"application/json": components["schemas"]["CallOfferEvent"];
|
|
428
|
-
};
|
|
429
|
-
};
|
|
430
|
-
responses: {
|
|
431
|
-
/** @description Return a 200 status to indicate that the data was received successfully */
|
|
432
|
-
200: {
|
|
433
|
-
content: never;
|
|
434
|
-
};
|
|
435
|
-
};
|
|
436
|
-
};
|
|
437
|
-
/**
|
|
438
|
-
* Call terminate event
|
|
439
|
-
* @description Event emitted when a call is terminated
|
|
440
|
-
*/
|
|
441
|
-
receiveCallTerminateEvent: {
|
|
442
|
-
requestBody: {
|
|
443
|
-
content: {
|
|
444
|
-
/**
|
|
445
|
-
* @example {
|
|
446
|
-
* "instanceId": "ins_ABCdefGHIjk",
|
|
447
|
-
* "receivedAt": "2025-05-19T00:51:44.816Z",
|
|
448
|
-
* "eventType": "call_terminate",
|
|
449
|
-
* "eventData": {
|
|
450
|
-
* "id": "call_123",
|
|
451
|
-
* "caller": "1234567890@s.whatsapp.net",
|
|
452
|
-
* "time": "2025-05-19T00:51:44.816Z",
|
|
453
|
-
* "reason": "ended"
|
|
454
|
-
* }
|
|
455
|
-
* }
|
|
456
|
-
*/
|
|
457
|
-
"application/json": components["schemas"]["CallTerminateEvent"];
|
|
458
|
-
};
|
|
459
|
-
};
|
|
460
|
-
responses: {
|
|
461
|
-
/** @description Return a 200 status to indicate that the data was received successfully */
|
|
462
|
-
200: {
|
|
463
|
-
content: never;
|
|
464
|
-
};
|
|
465
|
-
};
|
|
466
|
-
};
|
|
467
|
-
/**
|
|
468
|
-
* Call accept event
|
|
469
|
-
* @description Event emitted when a call is accepted
|
|
470
|
-
*/
|
|
471
|
-
receiveCallAcceptEvent: {
|
|
472
|
-
requestBody: {
|
|
473
|
-
content: {
|
|
474
|
-
/**
|
|
475
|
-
* @example {
|
|
476
|
-
* "instanceId": "ins_ABCdefGHIjk",
|
|
477
|
-
* "receivedAt": "2025-05-19T00:51:44.816Z",
|
|
478
|
-
* "eventType": "call_accept",
|
|
479
|
-
* "eventData": {
|
|
480
|
-
* "id": "call_123",
|
|
481
|
-
* "caller": "1234567890@s.whatsapp.net",
|
|
482
|
-
* "time": "2025-05-19T00:51:44.816Z"
|
|
483
|
-
* }
|
|
484
|
-
* }
|
|
485
|
-
*/
|
|
486
|
-
"application/json": components["schemas"]["CallAcceptEvent"];
|
|
487
|
-
};
|
|
488
|
-
};
|
|
489
|
-
responses: {
|
|
490
|
-
/** @description Return a 200 status to indicate that the data was received successfully */
|
|
491
|
-
200: {
|
|
492
|
-
content: never;
|
|
493
|
-
};
|
|
494
|
-
};
|
|
495
|
-
};
|
|
496
|
-
/**
|
|
497
|
-
* Chat setting event
|
|
498
|
-
* @description Event for chat settings changes (mute, pin, read, archive, ephemeral)
|
|
499
|
-
*/
|
|
500
|
-
receiveChatSettingEvent: {
|
|
501
|
-
requestBody: {
|
|
502
|
-
content: {
|
|
503
|
-
/**
|
|
504
|
-
* @example {
|
|
505
|
-
* "instanceId": "ins_ABCdefGHIjk",
|
|
506
|
-
* "receivedAt": "2025-05-19T00:51:44.816Z",
|
|
507
|
-
* "eventType": "chat_setting",
|
|
508
|
-
* "eventData": {
|
|
509
|
-
* "id": "1234567890@s.whatsapp.net",
|
|
510
|
-
* "settingType": "mute",
|
|
511
|
-
* "mute": {
|
|
512
|
-
* "isMuted": true,
|
|
513
|
-
* "muteEndTime": "2025-05-20T00:51:44.816Z"
|
|
514
|
-
* }
|
|
515
|
-
* }
|
|
516
|
-
* }
|
|
517
|
-
*/
|
|
518
|
-
"application/json": components["schemas"]["ChatSettingEvent"];
|
|
519
|
-
};
|
|
520
|
-
};
|
|
521
|
-
responses: {
|
|
522
|
-
/** @description Return a 200 status to indicate that the data was received successfully */
|
|
523
|
-
200: {
|
|
524
|
-
content: never;
|
|
525
|
-
};
|
|
526
|
-
};
|
|
527
|
-
};
|
|
528
|
-
/**
|
|
529
|
-
* Chat presence event
|
|
530
|
-
* @description Event for chat presence updates (typing, recording, paused)
|
|
531
|
-
*/
|
|
532
|
-
receiveChatPresenceEvent: {
|
|
533
|
-
requestBody: {
|
|
534
|
-
content: {
|
|
535
|
-
/**
|
|
536
|
-
* @example {
|
|
537
|
-
* "instanceId": "ins_ABCdefGHIjk",
|
|
538
|
-
* "receivedAt": "2025-05-19T00:51:44.816Z",
|
|
539
|
-
* "eventType": "chat_presence",
|
|
540
|
-
* "eventData": {
|
|
541
|
-
* "id": "1234567890@s.whatsapp.net",
|
|
542
|
-
* "sender": {
|
|
543
|
-
* "id": "1234567890@s.whatsapp.net",
|
|
544
|
-
* "isMe": false,
|
|
545
|
-
* "pushName": "John Doe"
|
|
546
|
-
* },
|
|
547
|
-
* "state": "typing"
|
|
548
|
-
* }
|
|
549
|
-
* }
|
|
550
|
-
*/
|
|
551
|
-
"application/json": components["schemas"]["ChatPresenceEvent"];
|
|
552
|
-
};
|
|
553
|
-
};
|
|
554
|
-
responses: {
|
|
555
|
-
/** @description Return a 200 status to indicate that the data was received successfully */
|
|
556
|
-
200: {
|
|
557
|
-
content: never;
|
|
558
|
-
};
|
|
559
|
-
};
|
|
560
|
-
};
|
|
561
|
-
/**
|
|
562
|
-
* Contact event
|
|
563
|
-
* @description Event for contact updates
|
|
564
|
-
*/
|
|
565
|
-
receiveContactEvent: {
|
|
566
|
-
requestBody: {
|
|
567
|
-
content: {
|
|
568
|
-
/**
|
|
569
|
-
* @example {
|
|
570
|
-
* "instanceId": "ins_ABCdefGHIjk",
|
|
571
|
-
* "receivedAt": "2025-05-19T00:51:44.816Z",
|
|
572
|
-
* "eventType": "contact",
|
|
573
|
-
* "eventData": {
|
|
574
|
-
* "id": "1234567890@s.whatsapp.net",
|
|
575
|
-
* "fullName": "John Doe",
|
|
576
|
-
* "inPhoneAddressBook": true
|
|
577
|
-
* }
|
|
578
|
-
* }
|
|
579
|
-
*/
|
|
580
|
-
"application/json": components["schemas"]["ContactEvent"];
|
|
581
|
-
};
|
|
582
|
-
};
|
|
583
|
-
responses: {
|
|
584
|
-
/** @description Return a 200 status to indicate that the data was received successfully */
|
|
585
|
-
200: {
|
|
586
|
-
content: never;
|
|
587
|
-
};
|
|
588
|
-
};
|
|
589
|
-
};
|
|
590
|
-
/**
|
|
591
|
-
* Group event
|
|
592
|
-
* @description Event for group updates
|
|
593
|
-
*/
|
|
594
|
-
receiveGroupEvent: {
|
|
595
|
-
requestBody: {
|
|
596
|
-
content: {
|
|
597
|
-
/**
|
|
598
|
-
* @example {
|
|
599
|
-
* "instanceId": "ins_ABCdefGHIjk",
|
|
600
|
-
* "receivedAt": "2025-05-19T00:51:44.816Z",
|
|
601
|
-
* "eventType": "group",
|
|
602
|
-
* "eventData": {
|
|
603
|
-
* "id": "1234567890-1234567890@g.us",
|
|
604
|
-
* "sender": {
|
|
605
|
-
* "id": "1234567890@s.whatsapp.net",
|
|
606
|
-
* "isMe": false,
|
|
607
|
-
* "pushName": "John Doe"
|
|
608
|
-
* },
|
|
609
|
-
* "description": {
|
|
610
|
-
* "topic": "Group Chat",
|
|
611
|
-
* "timestamp": "2025-05-19T00:51:44.816Z"
|
|
612
|
-
* }
|
|
613
|
-
* }
|
|
614
|
-
* }
|
|
615
|
-
*/
|
|
616
|
-
"application/json": components["schemas"]["GroupEvent"];
|
|
617
|
-
};
|
|
618
|
-
};
|
|
619
|
-
responses: {
|
|
620
|
-
/** @description Return a 200 status to indicate that the data was received successfully */
|
|
621
|
-
200: {
|
|
622
|
-
content: never;
|
|
623
|
-
};
|
|
624
|
-
};
|
|
625
|
-
};
|
|
626
|
-
/**
|
|
627
|
-
* Message event
|
|
628
|
-
* @description Event for new messages (text, media, reaction, contact, etc.)
|
|
629
|
-
*/
|
|
630
|
-
receiveMessageEvent: {
|
|
631
|
-
requestBody: {
|
|
632
|
-
content: {
|
|
633
|
-
"application/json": components["schemas"]["MessageEvent"];
|
|
634
|
-
};
|
|
635
|
-
};
|
|
636
|
-
responses: {
|
|
637
|
-
/** @description Return a 200 status to indicate that the data was received successfully */
|
|
638
|
-
200: {
|
|
639
|
-
content: never;
|
|
640
|
-
};
|
|
641
|
-
};
|
|
642
|
-
};
|
|
643
|
-
/**
|
|
644
|
-
* Message read event
|
|
645
|
-
* @description Event for message read receipts
|
|
646
|
-
*/
|
|
647
|
-
receiveMessageReadEvent: {
|
|
648
|
-
requestBody: {
|
|
649
|
-
content: {
|
|
650
|
-
/**
|
|
651
|
-
* @example {
|
|
652
|
-
* "instanceId": "ins_ABCdefGHIjk",
|
|
653
|
-
* "receivedAt": "2025-05-19T00:51:44.816Z",
|
|
654
|
-
* "eventType": "message_read",
|
|
655
|
-
* "eventData": {
|
|
656
|
-
* "chatId": "1234567890@s.whatsapp.net",
|
|
657
|
-
* "sender": {
|
|
658
|
-
* "id": "1234567890@s.whatsapp.net",
|
|
659
|
-
* "isMe": false,
|
|
660
|
-
* "pushName": "John Doe"
|
|
661
|
-
* },
|
|
662
|
-
* "messageSender": {
|
|
663
|
-
* "id": "9876543210@s.whatsapp.net",
|
|
664
|
-
* "isMe": true,
|
|
665
|
-
* "pushName": "Me"
|
|
666
|
-
* },
|
|
667
|
-
* "isGroup": false,
|
|
668
|
-
* "messageIds": [
|
|
669
|
-
* 123456789012345
|
|
670
|
-
* ],
|
|
671
|
-
* "time": "2025-05-19T00:51:44.816Z",
|
|
672
|
-
* "receiptType": "read"
|
|
673
|
-
* }
|
|
674
|
-
* }
|
|
675
|
-
*/
|
|
676
|
-
"application/json": components["schemas"]["MessageReadEvent"];
|
|
677
|
-
};
|
|
678
|
-
};
|
|
679
|
-
responses: {
|
|
680
|
-
/** @description Return a 200 status to indicate that the data was received successfully */
|
|
681
|
-
200: {
|
|
682
|
-
content: never;
|
|
683
|
-
};
|
|
684
|
-
};
|
|
685
|
-
};
|
|
686
|
-
/**
|
|
687
|
-
* Message delete event
|
|
688
|
-
* @description Event for message deletions
|
|
689
|
-
*/
|
|
690
|
-
receiveMessageDeleteEvent: {
|
|
691
|
-
requestBody: {
|
|
692
|
-
content: {
|
|
693
|
-
/**
|
|
694
|
-
* @example {
|
|
695
|
-
* "instanceId": "ins_ABCdefGHIjk",
|
|
696
|
-
* "receivedAt": "2025-05-19T00:51:44.816Z",
|
|
697
|
-
* "eventType": "message_delete",
|
|
698
|
-
* "eventData": {
|
|
699
|
-
* "id": 123456789012345,
|
|
700
|
-
* "sender": {
|
|
701
|
-
* "id": "1234567890@s.whatsapp.net",
|
|
702
|
-
* "isMe": false,
|
|
703
|
-
* "pushName": "John Doe"
|
|
704
|
-
* },
|
|
705
|
-
* "chatId": "1234567890@s.whatsapp.net",
|
|
706
|
-
* "time": "2025-05-19T00:51:44.816Z",
|
|
707
|
-
* "isDeletedForAll": true,
|
|
708
|
-
* "isDeletedForMe": false,
|
|
709
|
-
* "isStatus": false
|
|
710
|
-
* }
|
|
711
|
-
* }
|
|
712
|
-
*/
|
|
713
|
-
"application/json": components["schemas"]["MessageDeleteEvent"];
|
|
714
|
-
};
|
|
715
|
-
};
|
|
716
|
-
responses: {
|
|
717
|
-
/** @description Return a 200 status to indicate that the data was received successfully */
|
|
718
|
-
200: {
|
|
719
|
-
content: never;
|
|
720
|
-
};
|
|
721
|
-
};
|
|
722
|
-
};
|
|
723
|
-
/**
|
|
724
|
-
* Message star event
|
|
725
|
-
* @description Event for message star/unstar actions
|
|
726
|
-
*/
|
|
727
|
-
receiveMessageStarEvent: {
|
|
728
|
-
requestBody: {
|
|
729
|
-
content: {
|
|
730
|
-
/**
|
|
731
|
-
* @example {
|
|
732
|
-
* "instanceId": "ins_ABCdefGHIjk",
|
|
733
|
-
* "receivedAt": "2025-05-19T00:51:44.816Z",
|
|
734
|
-
* "eventType": "message_star",
|
|
735
|
-
* "eventData": {
|
|
736
|
-
* "id": 123456789012345,
|
|
737
|
-
* "chatId": "1234567890@s.whatsapp.net",
|
|
738
|
-
* "sender": {
|
|
739
|
-
* "id": "1234567890@s.whatsapp.net",
|
|
740
|
-
* "isMe": false,
|
|
741
|
-
* "pushName": "John Doe"
|
|
742
|
-
* },
|
|
743
|
-
* "time": "2025-05-19T00:51:44.816Z",
|
|
744
|
-
* "isStarred": true
|
|
745
|
-
* }
|
|
746
|
-
* }
|
|
747
|
-
*/
|
|
748
|
-
"application/json": components["schemas"]["MessageStarEvent"];
|
|
749
|
-
};
|
|
750
|
-
};
|
|
751
|
-
responses: {
|
|
752
|
-
/** @description Return a 200 status to indicate that the data was received successfully */
|
|
753
|
-
200: {
|
|
754
|
-
content: never;
|
|
755
|
-
};
|
|
756
|
-
};
|
|
757
|
-
};
|
|
758
|
-
/**
|
|
759
|
-
* Message history sync event
|
|
760
|
-
* @description Event sent during initial pairing, containing the recent message history for each chat.
|
|
761
|
-
*/
|
|
762
|
-
receiveMessageHistorySyncEvent: {
|
|
763
|
-
requestBody: {
|
|
764
|
-
content: {
|
|
765
|
-
/**
|
|
766
|
-
* @example {
|
|
767
|
-
* "instanceId": "ins_ABCdefGHIjk",
|
|
768
|
-
* "receivedAt": "2025-05-19T00:51:44.816Z",
|
|
769
|
-
* "eventType": "message_history_sync",
|
|
770
|
-
* "eventData": {
|
|
771
|
-
* "messages": [
|
|
772
|
-
* {
|
|
773
|
-
* "id": 123456789012345,
|
|
774
|
-
* "time": "2025-05-19T00:51:44.816Z",
|
|
775
|
-
* "chatId": "1234567890@s.whatsapp.net",
|
|
776
|
-
* "sender": {
|
|
777
|
-
* "id": "1234567890@s.whatsapp.net",
|
|
778
|
-
* "isMe": false,
|
|
779
|
-
* "pushName": "John Doe"
|
|
780
|
-
* },
|
|
781
|
-
* "isGroup": false,
|
|
782
|
-
* "isStatus": false,
|
|
783
|
-
* "type": "text",
|
|
784
|
-
* "text": "Hello, world!"
|
|
785
|
-
* }
|
|
786
|
-
* ]
|
|
787
|
-
* }
|
|
788
|
-
* }
|
|
789
|
-
*/
|
|
790
|
-
"application/json": components["schemas"]["MessageHistorySyncEvent"];
|
|
791
|
-
};
|
|
792
|
-
};
|
|
793
|
-
responses: {
|
|
794
|
-
/** @description Return a 200 status to indicate that the data was received successfully */
|
|
795
|
-
200: {
|
|
796
|
-
content: never;
|
|
797
|
-
};
|
|
798
|
-
};
|
|
799
|
-
};
|
|
800
|
-
/**
|
|
801
|
-
* Logged in event
|
|
802
|
-
* @description Event emitted when the user is logged in
|
|
803
|
-
*/
|
|
804
|
-
receiveLoggedInEvent: {
|
|
805
|
-
requestBody: {
|
|
806
|
-
content: {
|
|
807
|
-
/**
|
|
808
|
-
* @example {
|
|
809
|
-
* "instanceId": "ins_ABCdefGHIjk",
|
|
810
|
-
* "receivedAt": "2025-05-19T00:51:44.816Z",
|
|
811
|
-
* "eventType": "logged_in",
|
|
812
|
-
* "eventData": {
|
|
813
|
-
* "deviceId": "device_123"
|
|
814
|
-
* }
|
|
815
|
-
* }
|
|
816
|
-
*/
|
|
817
|
-
"application/json": components["schemas"]["LoggedInEvent"];
|
|
818
|
-
};
|
|
819
|
-
};
|
|
820
|
-
responses: {
|
|
821
|
-
/** @description Return a 200 status to indicate that the data was received successfully */
|
|
822
|
-
200: {
|
|
823
|
-
content: never;
|
|
824
|
-
};
|
|
825
|
-
};
|
|
826
|
-
};
|
|
827
|
-
/**
|
|
828
|
-
* Logged out event
|
|
829
|
-
* @description Event emitted when the user is logged out
|
|
830
|
-
*/
|
|
831
|
-
receiveLoggedOutEvent: {
|
|
832
|
-
requestBody: {
|
|
833
|
-
content: {
|
|
834
|
-
/**
|
|
835
|
-
* @example {
|
|
836
|
-
* "instanceId": "ins_ABCdefGHIjk",
|
|
837
|
-
* "receivedAt": "2025-05-19T00:51:44.816Z",
|
|
838
|
-
* "eventType": "logged_out",
|
|
839
|
-
* "eventData": {
|
|
840
|
-
* "reason": "user_logged_out"
|
|
841
|
-
* }
|
|
842
|
-
* }
|
|
843
|
-
*/
|
|
844
|
-
"application/json": components["schemas"]["LoggedOutEvent"];
|
|
845
|
-
};
|
|
846
|
-
};
|
|
847
|
-
responses: {
|
|
848
|
-
/** @description Return a 200 status to indicate that the data was received successfully */
|
|
849
|
-
200: {
|
|
850
|
-
content: never;
|
|
851
|
-
};
|
|
852
|
-
};
|
|
853
|
-
};
|
|
854
|
-
/**
|
|
855
|
-
* Logged error event
|
|
856
|
-
* @description Event emitted when the user is logged in with an error
|
|
857
|
-
*/
|
|
858
|
-
receiveLoggedErrorEvent: {
|
|
859
|
-
requestBody: {
|
|
860
|
-
content: {
|
|
861
|
-
/**
|
|
862
|
-
* @example {
|
|
863
|
-
* "instanceId": "ins_ABCdefGHIjk",
|
|
864
|
-
* "receivedAt": "2025-05-19T00:51:44.816Z",
|
|
865
|
-
* "eventType": "logged_error",
|
|
866
|
-
* "eventData": {
|
|
867
|
-
* "error": "error_123",
|
|
868
|
-
* "id": "device_123"
|
|
869
|
-
* }
|
|
870
|
-
* }
|
|
871
|
-
*/
|
|
872
|
-
"application/json": components["schemas"]["LoggedErrorEvent"];
|
|
873
|
-
};
|
|
874
|
-
};
|
|
875
|
-
responses: {
|
|
876
|
-
/** @description Return a 200 status to indicate that the data was received successfully */
|
|
877
|
-
200: {
|
|
878
|
-
content: never;
|
|
879
|
-
};
|
|
880
|
-
};
|
|
881
|
-
};
|
|
882
|
-
/**
|
|
883
|
-
* User push name event
|
|
884
|
-
* @description Event for user push name updates
|
|
885
|
-
*/
|
|
886
|
-
receiveUserPushNameEvent: {
|
|
887
|
-
requestBody: {
|
|
888
|
-
content: {
|
|
889
|
-
/**
|
|
890
|
-
* @example {
|
|
891
|
-
* "instanceId": "ins_ABCdefGHIjk",
|
|
892
|
-
* "receivedAt": "2025-05-19T00:51:44.816Z",
|
|
893
|
-
* "eventType": "user_push_name",
|
|
894
|
-
* "eventData": {
|
|
895
|
-
* "id": "1234567890@s.whatsapp.net",
|
|
896
|
-
* "pushName": "John Doe"
|
|
897
|
-
* }
|
|
898
|
-
* }
|
|
899
|
-
*/
|
|
900
|
-
"application/json": components["schemas"]["UserPushNameEvent"];
|
|
901
|
-
};
|
|
902
|
-
};
|
|
903
|
-
responses: {
|
|
904
|
-
/** @description Return a 200 status to indicate that the data was received successfully */
|
|
905
|
-
200: {
|
|
906
|
-
content: never;
|
|
907
|
-
};
|
|
908
|
-
};
|
|
909
|
-
};
|
|
910
|
-
/**
|
|
911
|
-
* User status event
|
|
912
|
-
* @description Event for user status updates
|
|
913
|
-
*/
|
|
914
|
-
receiveUserStatusEvent: {
|
|
915
|
-
requestBody: {
|
|
916
|
-
content: {
|
|
917
|
-
/**
|
|
918
|
-
* @example {
|
|
919
|
-
* "instanceId": "ins_ABCdefGHIjk",
|
|
920
|
-
* "receivedAt": "2025-05-19T00:51:44.816Z",
|
|
921
|
-
* "eventType": "user_status",
|
|
922
|
-
* "eventData": {
|
|
923
|
-
* "id": "1234567890@s.whatsapp.net",
|
|
924
|
-
* "status": "Available"
|
|
925
|
-
* }
|
|
926
|
-
* }
|
|
927
|
-
*/
|
|
928
|
-
"application/json": components["schemas"]["UserStatusEvent"];
|
|
929
|
-
};
|
|
930
|
-
};
|
|
931
|
-
responses: {
|
|
932
|
-
/** @description Return a 200 status to indicate that the data was received successfully */
|
|
933
|
-
200: {
|
|
934
|
-
content: never;
|
|
935
|
-
};
|
|
936
|
-
};
|
|
937
|
-
};
|
|
938
|
-
/**
|
|
939
|
-
* User picture event
|
|
940
|
-
* @description Event for user picture updates
|
|
941
|
-
*/
|
|
942
|
-
receiveUserPictureEvent: {
|
|
943
|
-
requestBody: {
|
|
944
|
-
content: {
|
|
945
|
-
/**
|
|
946
|
-
* @example {
|
|
947
|
-
* "instanceId": "ins_ABCdefGHIjk",
|
|
948
|
-
* "receivedAt": "2025-05-19T00:51:44.816Z",
|
|
949
|
-
* "eventType": "user_picture",
|
|
950
|
-
* "eventData": {
|
|
951
|
-
* "id": "1234567890@s.whatsapp.net",
|
|
952
|
-
* "sender": {
|
|
953
|
-
* "id": "1234567890@s.whatsapp.net",
|
|
954
|
-
* "isMe": false,
|
|
955
|
-
* "pushName": "John Doe"
|
|
956
|
-
* },
|
|
957
|
-
* "pictureId": "picture_123"
|
|
958
|
-
* }
|
|
959
|
-
* }
|
|
960
|
-
*/
|
|
961
|
-
"application/json": components["schemas"]["UserPictureEvent"];
|
|
962
|
-
};
|
|
963
|
-
};
|
|
964
|
-
responses: {
|
|
965
|
-
/** @description Return a 200 status to indicate that the data was received successfully */
|
|
966
|
-
200: {
|
|
967
|
-
content: never;
|
|
968
|
-
};
|
|
969
|
-
};
|
|
970
|
-
};
|
|
971
|
-
/**
|
|
972
|
-
* User presence event
|
|
973
|
-
* @description Event for user presence updates
|
|
974
|
-
*/
|
|
975
|
-
receiveUserPresenceEvent: {
|
|
976
|
-
requestBody: {
|
|
977
|
-
content: {
|
|
978
|
-
/**
|
|
979
|
-
* @example {
|
|
980
|
-
* "instanceId": "ins_ABCdefGHIjk",
|
|
981
|
-
* "receivedAt": "2025-05-19T00:51:44.816Z",
|
|
982
|
-
* "eventType": "user_presence",
|
|
983
|
-
* "eventData": {
|
|
984
|
-
* "id": "1234567890@s.whatsapp.net",
|
|
985
|
-
* "status": "available",
|
|
986
|
-
* "lastSeen": "2025-05-19T00:51:44.816Z"
|
|
987
|
-
* }
|
|
988
|
-
* }
|
|
989
|
-
*/
|
|
990
|
-
"application/json": components["schemas"]["UserPresenceEvent"];
|
|
991
|
-
};
|
|
992
|
-
};
|
|
993
|
-
responses: {
|
|
994
|
-
/** @description Return a 200 status to indicate that the data was received successfully */
|
|
995
|
-
200: {
|
|
996
|
-
content: never;
|
|
997
|
-
};
|
|
998
|
-
};
|
|
999
|
-
};
|
|
1000
|
-
}
|
|
1001
|
-
//# sourceMappingURL=webhooks.d.ts.map
|