@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.
Files changed (72) hide show
  1. package/CLAUDE.md +96 -0
  2. package/LICENSE +21 -0
  3. package/README.md +403 -0
  4. package/dist/client/index.d.ts +16 -0
  5. package/dist/client/index.d.ts.map +1 -0
  6. package/dist/client/index.js +154 -0
  7. package/dist/client/index.js.map +1 -0
  8. package/dist/config/index.d.ts +85 -0
  9. package/dist/config/index.d.ts.map +1 -0
  10. package/dist/config/index.js +67 -0
  11. package/dist/config/index.js.map +1 -0
  12. package/dist/index.d.ts +5 -0
  13. package/dist/index.d.ts.map +1 -0
  14. package/dist/index.js +46 -0
  15. package/dist/index.js.map +1 -0
  16. package/dist/server.d.ts +20 -0
  17. package/dist/server.d.ts.map +1 -0
  18. package/dist/server.js +173 -0
  19. package/dist/server.js.map +1 -0
  20. package/dist/tools/account.d.ts +14 -0
  21. package/dist/tools/account.d.ts.map +1 -0
  22. package/dist/tools/account.js +78 -0
  23. package/dist/tools/account.js.map +1 -0
  24. package/dist/tools/chats.d.ts +14 -0
  25. package/dist/tools/chats.d.ts.map +1 -0
  26. package/dist/tools/chats.js +81 -0
  27. package/dist/tools/chats.js.map +1 -0
  28. package/dist/tools/contacts.d.ts +18 -0
  29. package/dist/tools/contacts.d.ts.map +1 -0
  30. package/dist/tools/contacts.js +213 -0
  31. package/dist/tools/contacts.js.map +1 -0
  32. package/dist/tools/groups.d.ts +12 -0
  33. package/dist/tools/groups.d.ts.map +1 -0
  34. package/dist/tools/groups.js +65 -0
  35. package/dist/tools/groups.js.map +1 -0
  36. package/dist/tools/instance.d.ts +12 -0
  37. package/dist/tools/instance.d.ts.map +1 -0
  38. package/dist/tools/instance.js +54 -0
  39. package/dist/tools/instance.js.map +1 -0
  40. package/dist/tools/messaging-advanced.d.ts +16 -0
  41. package/dist/tools/messaging-advanced.d.ts.map +1 -0
  42. package/dist/tools/messaging-advanced.js +386 -0
  43. package/dist/tools/messaging-advanced.js.map +1 -0
  44. package/dist/tools/messaging.d.ts +28 -0
  45. package/dist/tools/messaging.d.ts.map +1 -0
  46. package/dist/tools/messaging.js +491 -0
  47. package/dist/tools/messaging.js.map +1 -0
  48. package/dist/tools/session.d.ts +14 -0
  49. package/dist/tools/session.d.ts.map +1 -0
  50. package/dist/tools/session.js +61 -0
  51. package/dist/tools/session.js.map +1 -0
  52. package/dist/types/api.d.ts +2730 -0
  53. package/dist/types/api.d.ts.map +1 -0
  54. package/dist/types/api.js +6 -0
  55. package/dist/types/api.js.map +1 -0
  56. package/dist/types/webhooks.d.ts +1001 -0
  57. package/dist/types/webhooks.d.ts.map +1 -0
  58. package/dist/types/webhooks.js +6 -0
  59. package/dist/types/webhooks.js.map +1 -0
  60. package/dist/utils/errors.d.ts +39 -0
  61. package/dist/utils/errors.d.ts.map +1 -0
  62. package/dist/utils/errors.js +151 -0
  63. package/dist/utils/errors.js.map +1 -0
  64. package/dist/utils/logger.d.ts +12 -0
  65. package/dist/utils/logger.d.ts.map +1 -0
  66. package/dist/utils/logger.js +99 -0
  67. package/dist/utils/logger.js.map +1 -0
  68. package/dist/validation/schemas.d.ts +732 -0
  69. package/dist/validation/schemas.d.ts.map +1 -0
  70. package/dist/validation/schemas.js +269 -0
  71. package/dist/validation/schemas.js.map +1 -0
  72. package/package.json +83 -0
@@ -0,0 +1,732 @@
1
+ import { z } from 'zod';
2
+ export declare const sendTextMessageSchema: z.ZodObject<{
3
+ to: z.ZodUnion<[z.ZodString, z.ZodString]>;
4
+ text: z.ZodString;
5
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6
+ replyTo: z.ZodOptional<z.ZodString>;
7
+ isForwarded: z.ZodOptional<z.ZodBoolean>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ text: string;
10
+ to: string;
11
+ mentions?: string[] | undefined;
12
+ replyTo?: string | undefined;
13
+ isForwarded?: boolean | undefined;
14
+ }, {
15
+ text: string;
16
+ to: string;
17
+ mentions?: string[] | undefined;
18
+ replyTo?: string | undefined;
19
+ isForwarded?: boolean | undefined;
20
+ }>;
21
+ export declare const sendImageMessageSchema: z.ZodEffects<z.ZodObject<{
22
+ to: z.ZodUnion<[z.ZodString, z.ZodString]>;
23
+ imageBase64: z.ZodOptional<z.ZodString>;
24
+ imageURL: z.ZodOptional<z.ZodString>;
25
+ mimeType: z.ZodEnum<["image/jpeg", "image/png", "image/webp", "image/gif"]>;
26
+ caption: z.ZodOptional<z.ZodString>;
27
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
28
+ replyTo: z.ZodOptional<z.ZodString>;
29
+ isForwarded: z.ZodOptional<z.ZodBoolean>;
30
+ viewOnce: z.ZodOptional<z.ZodBoolean>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ to: string;
33
+ mimeType: "image/jpeg" | "image/png" | "image/webp" | "image/gif";
34
+ mentions?: string[] | undefined;
35
+ replyTo?: string | undefined;
36
+ isForwarded?: boolean | undefined;
37
+ imageBase64?: string | undefined;
38
+ imageURL?: string | undefined;
39
+ caption?: string | undefined;
40
+ viewOnce?: boolean | undefined;
41
+ }, {
42
+ to: string;
43
+ mimeType: "image/jpeg" | "image/png" | "image/webp" | "image/gif";
44
+ mentions?: string[] | undefined;
45
+ replyTo?: string | undefined;
46
+ isForwarded?: boolean | undefined;
47
+ imageBase64?: string | undefined;
48
+ imageURL?: string | undefined;
49
+ caption?: string | undefined;
50
+ viewOnce?: boolean | undefined;
51
+ }>, {
52
+ to: string;
53
+ mimeType: "image/jpeg" | "image/png" | "image/webp" | "image/gif";
54
+ mentions?: string[] | undefined;
55
+ replyTo?: string | undefined;
56
+ isForwarded?: boolean | undefined;
57
+ imageBase64?: string | undefined;
58
+ imageURL?: string | undefined;
59
+ caption?: string | undefined;
60
+ viewOnce?: boolean | undefined;
61
+ }, {
62
+ to: string;
63
+ mimeType: "image/jpeg" | "image/png" | "image/webp" | "image/gif";
64
+ mentions?: string[] | undefined;
65
+ replyTo?: string | undefined;
66
+ isForwarded?: boolean | undefined;
67
+ imageBase64?: string | undefined;
68
+ imageURL?: string | undefined;
69
+ caption?: string | undefined;
70
+ viewOnce?: boolean | undefined;
71
+ }>;
72
+ export declare const sendVideoMessageSchema: z.ZodEffects<z.ZodObject<{
73
+ to: z.ZodUnion<[z.ZodString, z.ZodString]>;
74
+ videoBase64: z.ZodOptional<z.ZodString>;
75
+ videoURL: z.ZodOptional<z.ZodString>;
76
+ mimeType: z.ZodEnum<["video/mp4", "video/3gp", "video/mov", "video/avi"]>;
77
+ caption: z.ZodOptional<z.ZodString>;
78
+ viewOnce: z.ZodOptional<z.ZodBoolean>;
79
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
80
+ replyTo: z.ZodOptional<z.ZodString>;
81
+ isForwarded: z.ZodOptional<z.ZodBoolean>;
82
+ }, "strip", z.ZodTypeAny, {
83
+ to: string;
84
+ mimeType: "video/mp4" | "video/3gp" | "video/mov" | "video/avi";
85
+ mentions?: string[] | undefined;
86
+ replyTo?: string | undefined;
87
+ isForwarded?: boolean | undefined;
88
+ caption?: string | undefined;
89
+ viewOnce?: boolean | undefined;
90
+ videoBase64?: string | undefined;
91
+ videoURL?: string | undefined;
92
+ }, {
93
+ to: string;
94
+ mimeType: "video/mp4" | "video/3gp" | "video/mov" | "video/avi";
95
+ mentions?: string[] | undefined;
96
+ replyTo?: string | undefined;
97
+ isForwarded?: boolean | undefined;
98
+ caption?: string | undefined;
99
+ viewOnce?: boolean | undefined;
100
+ videoBase64?: string | undefined;
101
+ videoURL?: string | undefined;
102
+ }>, {
103
+ to: string;
104
+ mimeType: "video/mp4" | "video/3gp" | "video/mov" | "video/avi";
105
+ mentions?: string[] | undefined;
106
+ replyTo?: string | undefined;
107
+ isForwarded?: boolean | undefined;
108
+ caption?: string | undefined;
109
+ viewOnce?: boolean | undefined;
110
+ videoBase64?: string | undefined;
111
+ videoURL?: string | undefined;
112
+ }, {
113
+ to: string;
114
+ mimeType: "video/mp4" | "video/3gp" | "video/mov" | "video/avi";
115
+ mentions?: string[] | undefined;
116
+ replyTo?: string | undefined;
117
+ isForwarded?: boolean | undefined;
118
+ caption?: string | undefined;
119
+ viewOnce?: boolean | undefined;
120
+ videoBase64?: string | undefined;
121
+ videoURL?: string | undefined;
122
+ }>;
123
+ export declare const sendAudioMessageSchema: z.ZodEffects<z.ZodObject<{
124
+ to: z.ZodUnion<[z.ZodString, z.ZodString]>;
125
+ audioBase64: z.ZodOptional<z.ZodString>;
126
+ audioURL: z.ZodOptional<z.ZodString>;
127
+ mimeType: z.ZodEnum<["audio/mpeg", "audio/mp3", "audio/ogg", "audio/wav"]>;
128
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
129
+ replyTo: z.ZodOptional<z.ZodString>;
130
+ isForwarded: z.ZodOptional<z.ZodBoolean>;
131
+ viewOnce: z.ZodOptional<z.ZodBoolean>;
132
+ }, "strip", z.ZodTypeAny, {
133
+ to: string;
134
+ mimeType: "audio/mpeg" | "audio/mp3" | "audio/ogg" | "audio/wav";
135
+ mentions?: string[] | undefined;
136
+ replyTo?: string | undefined;
137
+ isForwarded?: boolean | undefined;
138
+ viewOnce?: boolean | undefined;
139
+ audioBase64?: string | undefined;
140
+ audioURL?: string | undefined;
141
+ }, {
142
+ to: string;
143
+ mimeType: "audio/mpeg" | "audio/mp3" | "audio/ogg" | "audio/wav";
144
+ mentions?: string[] | undefined;
145
+ replyTo?: string | undefined;
146
+ isForwarded?: boolean | undefined;
147
+ viewOnce?: boolean | undefined;
148
+ audioBase64?: string | undefined;
149
+ audioURL?: string | undefined;
150
+ }>, {
151
+ to: string;
152
+ mimeType: "audio/mpeg" | "audio/mp3" | "audio/ogg" | "audio/wav";
153
+ mentions?: string[] | undefined;
154
+ replyTo?: string | undefined;
155
+ isForwarded?: boolean | undefined;
156
+ viewOnce?: boolean | undefined;
157
+ audioBase64?: string | undefined;
158
+ audioURL?: string | undefined;
159
+ }, {
160
+ to: string;
161
+ mimeType: "audio/mpeg" | "audio/mp3" | "audio/ogg" | "audio/wav";
162
+ mentions?: string[] | undefined;
163
+ replyTo?: string | undefined;
164
+ isForwarded?: boolean | undefined;
165
+ viewOnce?: boolean | undefined;
166
+ audioBase64?: string | undefined;
167
+ audioURL?: string | undefined;
168
+ }>;
169
+ export declare const sendVoiceMessageSchema: z.ZodEffects<z.ZodObject<{
170
+ to: z.ZodUnion<[z.ZodString, z.ZodString]>;
171
+ voiceBase64: z.ZodOptional<z.ZodString>;
172
+ voiceURL: z.ZodOptional<z.ZodString>;
173
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
174
+ replyTo: z.ZodOptional<z.ZodString>;
175
+ isForwarded: z.ZodOptional<z.ZodBoolean>;
176
+ viewOnce: z.ZodOptional<z.ZodBoolean>;
177
+ }, "strip", z.ZodTypeAny, {
178
+ to: string;
179
+ mentions?: string[] | undefined;
180
+ replyTo?: string | undefined;
181
+ isForwarded?: boolean | undefined;
182
+ viewOnce?: boolean | undefined;
183
+ voiceBase64?: string | undefined;
184
+ voiceURL?: string | undefined;
185
+ }, {
186
+ to: string;
187
+ mentions?: string[] | undefined;
188
+ replyTo?: string | undefined;
189
+ isForwarded?: boolean | undefined;
190
+ viewOnce?: boolean | undefined;
191
+ voiceBase64?: string | undefined;
192
+ voiceURL?: string | undefined;
193
+ }>, {
194
+ to: string;
195
+ mentions?: string[] | undefined;
196
+ replyTo?: string | undefined;
197
+ isForwarded?: boolean | undefined;
198
+ viewOnce?: boolean | undefined;
199
+ voiceBase64?: string | undefined;
200
+ voiceURL?: string | undefined;
201
+ }, {
202
+ to: string;
203
+ mentions?: string[] | undefined;
204
+ replyTo?: string | undefined;
205
+ isForwarded?: boolean | undefined;
206
+ viewOnce?: boolean | undefined;
207
+ voiceBase64?: string | undefined;
208
+ voiceURL?: string | undefined;
209
+ }>;
210
+ export declare const sendDocumentMessageSchema: z.ZodEffects<z.ZodObject<{
211
+ to: z.ZodUnion<[z.ZodString, z.ZodString]>;
212
+ documentBase64: z.ZodOptional<z.ZodString>;
213
+ documentURL: z.ZodOptional<z.ZodString>;
214
+ fileName: z.ZodString;
215
+ caption: z.ZodOptional<z.ZodString>;
216
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
217
+ replyTo: z.ZodOptional<z.ZodString>;
218
+ isForwarded: z.ZodOptional<z.ZodBoolean>;
219
+ }, "strip", z.ZodTypeAny, {
220
+ to: string;
221
+ fileName: string;
222
+ mentions?: string[] | undefined;
223
+ replyTo?: string | undefined;
224
+ isForwarded?: boolean | undefined;
225
+ caption?: string | undefined;
226
+ documentBase64?: string | undefined;
227
+ documentURL?: string | undefined;
228
+ }, {
229
+ to: string;
230
+ fileName: string;
231
+ mentions?: string[] | undefined;
232
+ replyTo?: string | undefined;
233
+ isForwarded?: boolean | undefined;
234
+ caption?: string | undefined;
235
+ documentBase64?: string | undefined;
236
+ documentURL?: string | undefined;
237
+ }>, {
238
+ to: string;
239
+ fileName: string;
240
+ mentions?: string[] | undefined;
241
+ replyTo?: string | undefined;
242
+ isForwarded?: boolean | undefined;
243
+ caption?: string | undefined;
244
+ documentBase64?: string | undefined;
245
+ documentURL?: string | undefined;
246
+ }, {
247
+ to: string;
248
+ fileName: string;
249
+ mentions?: string[] | undefined;
250
+ replyTo?: string | undefined;
251
+ isForwarded?: boolean | undefined;
252
+ caption?: string | undefined;
253
+ documentBase64?: string | undefined;
254
+ documentURL?: string | undefined;
255
+ }>;
256
+ export declare const sendStickerMessageSchema: z.ZodEffects<z.ZodObject<{
257
+ to: z.ZodUnion<[z.ZodString, z.ZodString]>;
258
+ stickerBase64: z.ZodOptional<z.ZodString>;
259
+ stickerURL: z.ZodOptional<z.ZodString>;
260
+ mimeType: z.ZodEnum<["image/webp"]>;
261
+ isAnimated: z.ZodOptional<z.ZodBoolean>;
262
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
263
+ replyTo: z.ZodOptional<z.ZodString>;
264
+ isForwarded: z.ZodOptional<z.ZodBoolean>;
265
+ }, "strip", z.ZodTypeAny, {
266
+ to: string;
267
+ mimeType: "image/webp";
268
+ mentions?: string[] | undefined;
269
+ replyTo?: string | undefined;
270
+ isForwarded?: boolean | undefined;
271
+ stickerBase64?: string | undefined;
272
+ stickerURL?: string | undefined;
273
+ isAnimated?: boolean | undefined;
274
+ }, {
275
+ to: string;
276
+ mimeType: "image/webp";
277
+ mentions?: string[] | undefined;
278
+ replyTo?: string | undefined;
279
+ isForwarded?: boolean | undefined;
280
+ stickerBase64?: string | undefined;
281
+ stickerURL?: string | undefined;
282
+ isAnimated?: boolean | undefined;
283
+ }>, {
284
+ to: string;
285
+ mimeType: "image/webp";
286
+ mentions?: string[] | undefined;
287
+ replyTo?: string | undefined;
288
+ isForwarded?: boolean | undefined;
289
+ stickerBase64?: string | undefined;
290
+ stickerURL?: string | undefined;
291
+ isAnimated?: boolean | undefined;
292
+ }, {
293
+ to: string;
294
+ mimeType: "image/webp";
295
+ mentions?: string[] | undefined;
296
+ replyTo?: string | undefined;
297
+ isForwarded?: boolean | undefined;
298
+ stickerBase64?: string | undefined;
299
+ stickerURL?: string | undefined;
300
+ isAnimated?: boolean | undefined;
301
+ }>;
302
+ export declare const sendLocationMessageSchema: z.ZodObject<{
303
+ to: z.ZodUnion<[z.ZodString, z.ZodString]>;
304
+ latitude: z.ZodNumber;
305
+ longitude: z.ZodNumber;
306
+ name: z.ZodOptional<z.ZodString>;
307
+ address: z.ZodOptional<z.ZodString>;
308
+ url: z.ZodOptional<z.ZodString>;
309
+ }, "strip", z.ZodTypeAny, {
310
+ to: string;
311
+ latitude: number;
312
+ longitude: number;
313
+ url?: string | undefined;
314
+ name?: string | undefined;
315
+ address?: string | undefined;
316
+ }, {
317
+ to: string;
318
+ latitude: number;
319
+ longitude: number;
320
+ url?: string | undefined;
321
+ name?: string | undefined;
322
+ address?: string | undefined;
323
+ }>;
324
+ export declare const sendContactMessageSchema: z.ZodEffects<z.ZodObject<{
325
+ to: z.ZodUnion<[z.ZodString, z.ZodString]>;
326
+ displayName: z.ZodOptional<z.ZodString>;
327
+ vCard: z.ZodOptional<z.ZodString>;
328
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
329
+ replyTo: z.ZodOptional<z.ZodString>;
330
+ isForwarded: z.ZodOptional<z.ZodBoolean>;
331
+ }, "strip", z.ZodTypeAny, {
332
+ to: string;
333
+ mentions?: string[] | undefined;
334
+ replyTo?: string | undefined;
335
+ isForwarded?: boolean | undefined;
336
+ displayName?: string | undefined;
337
+ vCard?: string | undefined;
338
+ }, {
339
+ to: string;
340
+ mentions?: string[] | undefined;
341
+ replyTo?: string | undefined;
342
+ isForwarded?: boolean | undefined;
343
+ displayName?: string | undefined;
344
+ vCard?: string | undefined;
345
+ }>, {
346
+ to: string;
347
+ mentions?: string[] | undefined;
348
+ replyTo?: string | undefined;
349
+ isForwarded?: boolean | undefined;
350
+ displayName?: string | undefined;
351
+ vCard?: string | undefined;
352
+ }, {
353
+ to: string;
354
+ mentions?: string[] | undefined;
355
+ replyTo?: string | undefined;
356
+ isForwarded?: boolean | undefined;
357
+ displayName?: string | undefined;
358
+ vCard?: string | undefined;
359
+ }>;
360
+ export declare const sendReactionMessageSchema: z.ZodObject<{
361
+ messageId: z.ZodString;
362
+ to: z.ZodUnion<[z.ZodString, z.ZodString]>;
363
+ senderId: z.ZodString;
364
+ reaction: z.ZodString;
365
+ }, "strip", z.ZodTypeAny, {
366
+ to: string;
367
+ messageId: string;
368
+ senderId: string;
369
+ reaction: string;
370
+ }, {
371
+ to: string;
372
+ messageId: string;
373
+ senderId: string;
374
+ reaction: string;
375
+ }>;
376
+ export declare const sendLinkMessageSchema: z.ZodObject<{
377
+ to: z.ZodUnion<[z.ZodString, z.ZodString]>;
378
+ text: z.ZodString;
379
+ url: z.ZodString;
380
+ title: z.ZodOptional<z.ZodString>;
381
+ description: z.ZodOptional<z.ZodString>;
382
+ jpegThumbnail: z.ZodOptional<z.ZodString>;
383
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
384
+ replyTo: z.ZodOptional<z.ZodString>;
385
+ isForwarded: z.ZodOptional<z.ZodBoolean>;
386
+ }, "strip", z.ZodTypeAny, {
387
+ url: string;
388
+ text: string;
389
+ to: string;
390
+ mentions?: string[] | undefined;
391
+ replyTo?: string | undefined;
392
+ isForwarded?: boolean | undefined;
393
+ title?: string | undefined;
394
+ description?: string | undefined;
395
+ jpegThumbnail?: string | undefined;
396
+ }, {
397
+ url: string;
398
+ text: string;
399
+ to: string;
400
+ mentions?: string[] | undefined;
401
+ replyTo?: string | undefined;
402
+ isForwarded?: boolean | undefined;
403
+ title?: string | undefined;
404
+ description?: string | undefined;
405
+ jpegThumbnail?: string | undefined;
406
+ }>;
407
+ export declare const editMessageSchema: z.ZodObject<{
408
+ messageId: z.ZodString;
409
+ to: z.ZodUnion<[z.ZodString, z.ZodString]>;
410
+ text: z.ZodString;
411
+ }, "strip", z.ZodTypeAny, {
412
+ text: string;
413
+ to: string;
414
+ messageId: string;
415
+ }, {
416
+ text: string;
417
+ to: string;
418
+ messageId: string;
419
+ }>;
420
+ export declare const deleteMessageSchema: z.ZodObject<{
421
+ messageId: z.ZodString;
422
+ chatId: z.ZodUnion<[z.ZodString, z.ZodString]>;
423
+ senderId: z.ZodString;
424
+ }, "strip", z.ZodTypeAny, {
425
+ messageId: string;
426
+ senderId: string;
427
+ chatId: string;
428
+ }, {
429
+ messageId: string;
430
+ senderId: string;
431
+ chatId: string;
432
+ }>;
433
+ export declare const deleteMessageForMeSchema: z.ZodObject<{
434
+ messageId: z.ZodString;
435
+ chatId: z.ZodUnion<[z.ZodString, z.ZodString]>;
436
+ senderId: z.ZodString;
437
+ ifFromMe: z.ZodBoolean;
438
+ time: z.ZodString;
439
+ }, "strip", z.ZodTypeAny, {
440
+ messageId: string;
441
+ senderId: string;
442
+ chatId: string;
443
+ ifFromMe: boolean;
444
+ time: string;
445
+ }, {
446
+ messageId: string;
447
+ senderId: string;
448
+ chatId: string;
449
+ ifFromMe: boolean;
450
+ time: string;
451
+ }>;
452
+ export declare const markMessageAsReadSchema: z.ZodObject<{
453
+ messageId: z.ZodString;
454
+ chatId: z.ZodUnion<[z.ZodString, z.ZodString]>;
455
+ senderId: z.ZodString;
456
+ receiptType: z.ZodEnum<["delivered", "sender", "read", "played"]>;
457
+ }, "strip", z.ZodTypeAny, {
458
+ messageId: string;
459
+ senderId: string;
460
+ chatId: string;
461
+ receiptType: "delivered" | "sender" | "read" | "played";
462
+ }, {
463
+ messageId: string;
464
+ senderId: string;
465
+ chatId: string;
466
+ receiptType: "delivered" | "sender" | "read" | "played";
467
+ }>;
468
+ export declare const starMessageSchema: z.ZodObject<{
469
+ messageId: z.ZodString;
470
+ chatId: z.ZodUnion<[z.ZodString, z.ZodString]>;
471
+ senderId: z.ZodString;
472
+ }, "strip", z.ZodTypeAny, {
473
+ messageId: string;
474
+ senderId: string;
475
+ chatId: string;
476
+ }, {
477
+ messageId: string;
478
+ senderId: string;
479
+ chatId: string;
480
+ }>;
481
+ export declare const getContactSchema: z.ZodObject<{
482
+ contactId: z.ZodString;
483
+ }, "strip", z.ZodTypeAny, {
484
+ contactId: string;
485
+ }, {
486
+ contactId: string;
487
+ }>;
488
+ export declare const createContactSchema: z.ZodObject<{
489
+ id: z.ZodString;
490
+ fullName: z.ZodString;
491
+ firstName: z.ZodString;
492
+ }, "strip", z.ZodTypeAny, {
493
+ id: string;
494
+ fullName: string;
495
+ firstName: string;
496
+ }, {
497
+ id: string;
498
+ fullName: string;
499
+ firstName: string;
500
+ }>;
501
+ export declare const updateContactSchema: z.ZodObject<{
502
+ contactId: z.ZodString;
503
+ fullName: z.ZodString;
504
+ firstName: z.ZodString;
505
+ }, "strip", z.ZodTypeAny, {
506
+ contactId: string;
507
+ fullName: string;
508
+ firstName: string;
509
+ }, {
510
+ contactId: string;
511
+ fullName: string;
512
+ firstName: string;
513
+ }>;
514
+ export declare const updateContactFullNameSchema: z.ZodObject<{
515
+ contactId: z.ZodString;
516
+ fullName: z.ZodString;
517
+ }, "strip", z.ZodTypeAny, {
518
+ contactId: string;
519
+ fullName: string;
520
+ }, {
521
+ contactId: string;
522
+ fullName: string;
523
+ }>;
524
+ export declare const createGroupSchema: z.ZodObject<{
525
+ name: z.ZodString;
526
+ participants: z.ZodArray<z.ZodString, "many">;
527
+ }, "strip", z.ZodTypeAny, {
528
+ name: string;
529
+ participants: string[];
530
+ }, {
531
+ name: string;
532
+ participants: string[];
533
+ }>;
534
+ export declare const getGroupSchema: z.ZodObject<{
535
+ groupId: z.ZodString;
536
+ }, "strip", z.ZodTypeAny, {
537
+ groupId: string;
538
+ }, {
539
+ groupId: string;
540
+ }>;
541
+ export declare const updateGroupNameSchema: z.ZodObject<{
542
+ groupId: z.ZodString;
543
+ name: z.ZodString;
544
+ }, "strip", z.ZodTypeAny, {
545
+ name: string;
546
+ groupId: string;
547
+ }, {
548
+ name: string;
549
+ groupId: string;
550
+ }>;
551
+ export declare const updateGroupDescriptionSchema: z.ZodObject<{
552
+ groupId: z.ZodString;
553
+ description: z.ZodString;
554
+ }, "strip", z.ZodTypeAny, {
555
+ description: string;
556
+ groupId: string;
557
+ }, {
558
+ description: string;
559
+ groupId: string;
560
+ }>;
561
+ export declare const updateGroupParticipantsSchema: z.ZodObject<{
562
+ groupId: z.ZodString;
563
+ participants: z.ZodArray<z.ZodString, "many">;
564
+ }, "strip", z.ZodTypeAny, {
565
+ participants: string[];
566
+ groupId: string;
567
+ }, {
568
+ participants: string[];
569
+ groupId: string;
570
+ }>;
571
+ export declare const setGroupPictureSchema: z.ZodObject<{
572
+ groupId: z.ZodString;
573
+ pictureBase64: z.ZodString;
574
+ }, "strip", z.ZodTypeAny, {
575
+ groupId: string;
576
+ pictureBase64: string;
577
+ }, {
578
+ groupId: string;
579
+ pictureBase64: string;
580
+ }>;
581
+ export declare const getChatSchema: z.ZodObject<{
582
+ chatId: z.ZodUnion<[z.ZodString, z.ZodString]>;
583
+ }, "strip", z.ZodTypeAny, {
584
+ chatId: string;
585
+ }, {
586
+ chatId: string;
587
+ }>;
588
+ export declare const setChatPresenceSchema: z.ZodObject<{
589
+ chatId: z.ZodUnion<[z.ZodString, z.ZodString]>;
590
+ state: z.ZodEnum<["typing", "recording", "paused"]>;
591
+ }, "strip", z.ZodTypeAny, {
592
+ chatId: string;
593
+ state: "typing" | "recording" | "paused";
594
+ }, {
595
+ chatId: string;
596
+ state: "typing" | "recording" | "paused";
597
+ }>;
598
+ export declare const updateChatEphemeralSchema: z.ZodObject<{
599
+ chatId: z.ZodUnion<[z.ZodString, z.ZodString]>;
600
+ ephemeralExpiration: z.ZodEnum<["off", "24h", "7d", "90d"]>;
601
+ }, "strip", z.ZodTypeAny, {
602
+ chatId: string;
603
+ ephemeralExpiration: "off" | "24h" | "7d" | "90d";
604
+ }, {
605
+ chatId: string;
606
+ ephemeralExpiration: "off" | "24h" | "7d" | "90d";
607
+ }>;
608
+ export declare const updateChatMuteSchema: z.ZodObject<{
609
+ chatId: z.ZodUnion<[z.ZodString, z.ZodString]>;
610
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
611
+ }, "strip", z.ZodTypeAny, {
612
+ chatId: string;
613
+ duration?: string | null | undefined;
614
+ }, {
615
+ chatId: string;
616
+ duration?: string | null | undefined;
617
+ }>;
618
+ export declare const updateChatPinSchema: z.ZodObject<{
619
+ chatId: z.ZodUnion<[z.ZodString, z.ZodString]>;
620
+ pinned: z.ZodBoolean;
621
+ }, "strip", z.ZodTypeAny, {
622
+ chatId: string;
623
+ pinned: boolean;
624
+ }, {
625
+ chatId: string;
626
+ pinned: boolean;
627
+ }>;
628
+ export declare const updateChatArchiveSchema: z.ZodObject<{
629
+ chatId: z.ZodUnion<[z.ZodString, z.ZodString]>;
630
+ archived: z.ZodBoolean;
631
+ }, "strip", z.ZodTypeAny, {
632
+ chatId: string;
633
+ archived: boolean;
634
+ }, {
635
+ chatId: string;
636
+ archived: boolean;
637
+ }>;
638
+ export declare const markChatAsReadSchema: z.ZodObject<{
639
+ chatId: z.ZodUnion<[z.ZodString, z.ZodString]>;
640
+ read: z.ZodBoolean;
641
+ }, "strip", z.ZodTypeAny, {
642
+ read: boolean;
643
+ chatId: string;
644
+ }, {
645
+ read: boolean;
646
+ chatId: string;
647
+ }>;
648
+ export declare const setAccountNameSchema: z.ZodObject<{
649
+ name: z.ZodString;
650
+ }, "strip", z.ZodTypeAny, {
651
+ name: string;
652
+ }, {
653
+ name: string;
654
+ }>;
655
+ export declare const setAccountPictureSchema: z.ZodObject<{
656
+ pictureBase64: z.ZodString;
657
+ }, "strip", z.ZodTypeAny, {
658
+ pictureBase64: string;
659
+ }, {
660
+ pictureBase64: string;
661
+ }>;
662
+ export declare const setAccountPresenceSchema: z.ZodObject<{
663
+ status: z.ZodEnum<["available", "unavailable"]>;
664
+ }, "strip", z.ZodTypeAny, {
665
+ status: "available" | "unavailable";
666
+ }, {
667
+ status: "available" | "unavailable";
668
+ }>;
669
+ export declare const setAccountStatusSchema: z.ZodObject<{
670
+ status: z.ZodString;
671
+ }, "strip", z.ZodTypeAny, {
672
+ status: string;
673
+ }, {
674
+ status: string;
675
+ }>;
676
+ export declare const getSessionLoginCodeSchema: z.ZodObject<{
677
+ phone: z.ZodString;
678
+ }, "strip", z.ZodTypeAny, {
679
+ phone: string;
680
+ }, {
681
+ phone: string;
682
+ }>;
683
+ export declare const updateInstanceSettingsSchema: z.ZodObject<{
684
+ name: z.ZodOptional<z.ZodString>;
685
+ description: z.ZodOptional<z.ZodString>;
686
+ pullMode: z.ZodOptional<z.ZodBoolean>;
687
+ }, "strip", z.ZodTypeAny, {
688
+ name?: string | undefined;
689
+ description?: string | undefined;
690
+ pullMode?: boolean | undefined;
691
+ }, {
692
+ name?: string | undefined;
693
+ description?: string | undefined;
694
+ pullMode?: boolean | undefined;
695
+ }>;
696
+ export declare const rejectCallSchema: z.ZodObject<{
697
+ callId: z.ZodString;
698
+ callerId: z.ZodString;
699
+ }, "strip", z.ZodTypeAny, {
700
+ callId: string;
701
+ callerId: string;
702
+ }, {
703
+ callId: string;
704
+ callerId: string;
705
+ }>;
706
+ export declare const downloadMediaSchema: z.ZodObject<{
707
+ id: z.ZodString;
708
+ }, "strip", z.ZodTypeAny, {
709
+ id: string;
710
+ }, {
711
+ id: string;
712
+ }>;
713
+ export declare const getUserSchema: z.ZodObject<{
714
+ phone: z.ZodString;
715
+ }, "strip", z.ZodTypeAny, {
716
+ phone: string;
717
+ }, {
718
+ phone: string;
719
+ }>;
720
+ export declare function validateInput<T>(schema: z.ZodSchema<T>, data: unknown): T;
721
+ export type SendTextMessageInput = z.infer<typeof sendTextMessageSchema>;
722
+ export type SendImageMessageInput = z.infer<typeof sendImageMessageSchema>;
723
+ export type SendVideoMessageInput = z.infer<typeof sendVideoMessageSchema>;
724
+ export type SendAudioMessageInput = z.infer<typeof sendAudioMessageSchema>;
725
+ export type SendVoiceMessageInput = z.infer<typeof sendVoiceMessageSchema>;
726
+ export type SendDocumentMessageInput = z.infer<typeof sendDocumentMessageSchema>;
727
+ export type SendStickerMessageInput = z.infer<typeof sendStickerMessageSchema>;
728
+ export type SendLocationMessageInput = z.infer<typeof sendLocationMessageSchema>;
729
+ export type SendContactMessageInput = z.infer<typeof sendContactMessageSchema>;
730
+ export type SendReactionMessageInput = z.infer<typeof sendReactionMessageSchema>;
731
+ export type SendLinkMessageInput = z.infer<typeof sendLinkMessageSchema>;
732
+ //# sourceMappingURL=schemas.d.ts.map