zaileys 1.1.32 → 1.1.34

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/dist/index.d.ts DELETED
@@ -1,2719 +0,0 @@
1
- import NodeCache from 'node-cache';
2
- import { Ora } from 'ora';
3
- import { z } from 'zod';
4
- import * as stream from 'stream';
5
- import { Readable } from 'stream';
6
-
7
- declare const AdapterDatabaseType: z.ZodDefault<z.ZodOptional<z.ZodObject<{
8
- type: z.ZodDefault<z.ZodEnum<["sqlite", "postgresql", "mysql"]>>;
9
- connection: z.ZodDefault<z.ZodOptional<z.ZodObject<{
10
- url: z.ZodDefault<z.ZodString>;
11
- }, "strip", z.ZodTypeAny, {
12
- url: string;
13
- }, {
14
- url?: string | undefined;
15
- }>>>;
16
- }, "strip", z.ZodTypeAny, {
17
- type: "sqlite" | "postgresql" | "mysql";
18
- connection: {
19
- url: string;
20
- };
21
- }, {
22
- type?: "sqlite" | "postgresql" | "mysql" | undefined;
23
- connection?: {
24
- url?: string | undefined;
25
- } | undefined;
26
- }>>>;
27
- declare const CitationType: z.ZodEffects<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnion<[z.ZodArray<z.ZodNumber, "many">, z.ZodPromise<z.ZodArray<z.ZodNumber, "many">>]>>>>, Record<string, number[]>, Record<string, (...args: unknown[]) => number[] | Promise<number[]>> | undefined>;
28
- declare const ClientClassesBaseType: z.ZodObject<{
29
- prefix: z.ZodOptional<z.ZodString>;
30
- ignoreMe: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
31
- showLogs: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
32
- autoMentions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
33
- autoOnline: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
34
- autoRead: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
35
- autoPresence: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
36
- autoRejectCall: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
37
- loadLLMSchemas: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
38
- webhooks: z.ZodOptional<z.ZodObject<{
39
- url: z.ZodString;
40
- }, "strip", z.ZodTypeAny, {
41
- url: string;
42
- }, {
43
- url: string;
44
- }>>;
45
- limiter: z.ZodOptional<z.ZodObject<{
46
- durationMs: z.ZodNumber;
47
- maxMessages: z.ZodNumber;
48
- }, "strip", z.ZodTypeAny, {
49
- durationMs: number;
50
- maxMessages: number;
51
- }, {
52
- durationMs: number;
53
- maxMessages: number;
54
- }>>;
55
- database: z.ZodDefault<z.ZodOptional<z.ZodObject<{
56
- type: z.ZodDefault<z.ZodEnum<["sqlite", "postgresql", "mysql"]>>;
57
- connection: z.ZodDefault<z.ZodOptional<z.ZodObject<{
58
- url: z.ZodDefault<z.ZodString>;
59
- }, "strip", z.ZodTypeAny, {
60
- url: string;
61
- }, {
62
- url?: string | undefined;
63
- }>>>;
64
- }, "strip", z.ZodTypeAny, {
65
- type: "sqlite" | "postgresql" | "mysql";
66
- connection: {
67
- url: string;
68
- };
69
- }, {
70
- type?: "sqlite" | "postgresql" | "mysql" | undefined;
71
- connection?: {
72
- url?: string | undefined;
73
- } | undefined;
74
- }>>>;
75
- citation: z.ZodEffects<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnion<[z.ZodArray<z.ZodNumber, "many">, z.ZodPromise<z.ZodArray<z.ZodNumber, "many">>]>>>>, Record<string, number[]>, Record<string, (...args: unknown[]) => number[] | Promise<number[]>> | undefined>;
76
- }, "strip", z.ZodTypeAny, {
77
- citation: Record<string, number[]>;
78
- ignoreMe: boolean;
79
- showLogs: boolean;
80
- autoMentions: boolean;
81
- autoOnline: boolean;
82
- autoRead: boolean;
83
- autoPresence: boolean;
84
- autoRejectCall: boolean;
85
- loadLLMSchemas: boolean;
86
- database: {
87
- type: "sqlite" | "postgresql" | "mysql";
88
- connection: {
89
- url: string;
90
- };
91
- };
92
- webhooks?: {
93
- url: string;
94
- } | undefined;
95
- prefix?: string | undefined;
96
- limiter?: {
97
- durationMs: number;
98
- maxMessages: number;
99
- } | undefined;
100
- }, {
101
- citation?: Record<string, (...args: unknown[]) => number[] | Promise<number[]>> | undefined;
102
- webhooks?: {
103
- url: string;
104
- } | undefined;
105
- prefix?: string | undefined;
106
- ignoreMe?: boolean | undefined;
107
- showLogs?: boolean | undefined;
108
- autoMentions?: boolean | undefined;
109
- autoOnline?: boolean | undefined;
110
- autoRead?: boolean | undefined;
111
- autoPresence?: boolean | undefined;
112
- autoRejectCall?: boolean | undefined;
113
- loadLLMSchemas?: boolean | undefined;
114
- limiter?: {
115
- durationMs: number;
116
- maxMessages: number;
117
- } | undefined;
118
- database?: {
119
- type?: "sqlite" | "postgresql" | "mysql" | undefined;
120
- connection?: {
121
- url?: string | undefined;
122
- } | undefined;
123
- } | undefined;
124
- }>;
125
- declare const ClientClassesType: z.ZodDiscriminatedUnion<"authType", [z.ZodObject<{
126
- authType: z.ZodLiteral<"pairing">;
127
- phoneNumber: z.ZodNumber;
128
- } & {
129
- prefix: z.ZodOptional<z.ZodString>;
130
- ignoreMe: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
131
- showLogs: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
132
- autoMentions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
133
- autoOnline: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
134
- autoRead: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
135
- autoPresence: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
136
- autoRejectCall: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
137
- loadLLMSchemas: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
138
- webhooks: z.ZodOptional<z.ZodObject<{
139
- url: z.ZodString;
140
- }, "strip", z.ZodTypeAny, {
141
- url: string;
142
- }, {
143
- url: string;
144
- }>>;
145
- limiter: z.ZodOptional<z.ZodObject<{
146
- durationMs: z.ZodNumber;
147
- maxMessages: z.ZodNumber;
148
- }, "strip", z.ZodTypeAny, {
149
- durationMs: number;
150
- maxMessages: number;
151
- }, {
152
- durationMs: number;
153
- maxMessages: number;
154
- }>>;
155
- database: z.ZodDefault<z.ZodOptional<z.ZodObject<{
156
- type: z.ZodDefault<z.ZodEnum<["sqlite", "postgresql", "mysql"]>>;
157
- connection: z.ZodDefault<z.ZodOptional<z.ZodObject<{
158
- url: z.ZodDefault<z.ZodString>;
159
- }, "strip", z.ZodTypeAny, {
160
- url: string;
161
- }, {
162
- url?: string | undefined;
163
- }>>>;
164
- }, "strip", z.ZodTypeAny, {
165
- type: "sqlite" | "postgresql" | "mysql";
166
- connection: {
167
- url: string;
168
- };
169
- }, {
170
- type?: "sqlite" | "postgresql" | "mysql" | undefined;
171
- connection?: {
172
- url?: string | undefined;
173
- } | undefined;
174
- }>>>;
175
- citation: z.ZodEffects<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnion<[z.ZodArray<z.ZodNumber, "many">, z.ZodPromise<z.ZodArray<z.ZodNumber, "many">>]>>>>, Record<string, number[]>, Record<string, (...args: unknown[]) => number[] | Promise<number[]>> | undefined>;
176
- }, "strip", z.ZodTypeAny, {
177
- citation: Record<string, number[]>;
178
- authType: "pairing";
179
- phoneNumber: number;
180
- ignoreMe: boolean;
181
- showLogs: boolean;
182
- autoMentions: boolean;
183
- autoOnline: boolean;
184
- autoRead: boolean;
185
- autoPresence: boolean;
186
- autoRejectCall: boolean;
187
- loadLLMSchemas: boolean;
188
- database: {
189
- type: "sqlite" | "postgresql" | "mysql";
190
- connection: {
191
- url: string;
192
- };
193
- };
194
- webhooks?: {
195
- url: string;
196
- } | undefined;
197
- prefix?: string | undefined;
198
- limiter?: {
199
- durationMs: number;
200
- maxMessages: number;
201
- } | undefined;
202
- }, {
203
- authType: "pairing";
204
- phoneNumber: number;
205
- citation?: Record<string, (...args: unknown[]) => number[] | Promise<number[]>> | undefined;
206
- webhooks?: {
207
- url: string;
208
- } | undefined;
209
- prefix?: string | undefined;
210
- ignoreMe?: boolean | undefined;
211
- showLogs?: boolean | undefined;
212
- autoMentions?: boolean | undefined;
213
- autoOnline?: boolean | undefined;
214
- autoRead?: boolean | undefined;
215
- autoPresence?: boolean | undefined;
216
- autoRejectCall?: boolean | undefined;
217
- loadLLMSchemas?: boolean | undefined;
218
- limiter?: {
219
- durationMs: number;
220
- maxMessages: number;
221
- } | undefined;
222
- database?: {
223
- type?: "sqlite" | "postgresql" | "mysql" | undefined;
224
- connection?: {
225
- url?: string | undefined;
226
- } | undefined;
227
- } | undefined;
228
- }>, z.ZodObject<{
229
- authType: z.ZodLiteral<"qr">;
230
- phoneNumber: z.ZodOptional<z.ZodUndefined>;
231
- } & {
232
- prefix: z.ZodOptional<z.ZodString>;
233
- ignoreMe: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
234
- showLogs: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
235
- autoMentions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
236
- autoOnline: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
237
- autoRead: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
238
- autoPresence: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
239
- autoRejectCall: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
240
- loadLLMSchemas: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
241
- webhooks: z.ZodOptional<z.ZodObject<{
242
- url: z.ZodString;
243
- }, "strip", z.ZodTypeAny, {
244
- url: string;
245
- }, {
246
- url: string;
247
- }>>;
248
- limiter: z.ZodOptional<z.ZodObject<{
249
- durationMs: z.ZodNumber;
250
- maxMessages: z.ZodNumber;
251
- }, "strip", z.ZodTypeAny, {
252
- durationMs: number;
253
- maxMessages: number;
254
- }, {
255
- durationMs: number;
256
- maxMessages: number;
257
- }>>;
258
- database: z.ZodDefault<z.ZodOptional<z.ZodObject<{
259
- type: z.ZodDefault<z.ZodEnum<["sqlite", "postgresql", "mysql"]>>;
260
- connection: z.ZodDefault<z.ZodOptional<z.ZodObject<{
261
- url: z.ZodDefault<z.ZodString>;
262
- }, "strip", z.ZodTypeAny, {
263
- url: string;
264
- }, {
265
- url?: string | undefined;
266
- }>>>;
267
- }, "strip", z.ZodTypeAny, {
268
- type: "sqlite" | "postgresql" | "mysql";
269
- connection: {
270
- url: string;
271
- };
272
- }, {
273
- type?: "sqlite" | "postgresql" | "mysql" | undefined;
274
- connection?: {
275
- url?: string | undefined;
276
- } | undefined;
277
- }>>>;
278
- citation: z.ZodEffects<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnion<[z.ZodArray<z.ZodNumber, "many">, z.ZodPromise<z.ZodArray<z.ZodNumber, "many">>]>>>>, Record<string, number[]>, Record<string, (...args: unknown[]) => number[] | Promise<number[]>> | undefined>;
279
- }, "strip", z.ZodTypeAny, {
280
- citation: Record<string, number[]>;
281
- authType: "qr";
282
- ignoreMe: boolean;
283
- showLogs: boolean;
284
- autoMentions: boolean;
285
- autoOnline: boolean;
286
- autoRead: boolean;
287
- autoPresence: boolean;
288
- autoRejectCall: boolean;
289
- loadLLMSchemas: boolean;
290
- database: {
291
- type: "sqlite" | "postgresql" | "mysql";
292
- connection: {
293
- url: string;
294
- };
295
- };
296
- webhooks?: {
297
- url: string;
298
- } | undefined;
299
- phoneNumber?: undefined;
300
- prefix?: string | undefined;
301
- limiter?: {
302
- durationMs: number;
303
- maxMessages: number;
304
- } | undefined;
305
- }, {
306
- authType: "qr";
307
- citation?: Record<string, (...args: unknown[]) => number[] | Promise<number[]>> | undefined;
308
- webhooks?: {
309
- url: string;
310
- } | undefined;
311
- phoneNumber?: undefined;
312
- prefix?: string | undefined;
313
- ignoreMe?: boolean | undefined;
314
- showLogs?: boolean | undefined;
315
- autoMentions?: boolean | undefined;
316
- autoOnline?: boolean | undefined;
317
- autoRead?: boolean | undefined;
318
- autoPresence?: boolean | undefined;
319
- autoRejectCall?: boolean | undefined;
320
- loadLLMSchemas?: boolean | undefined;
321
- limiter?: {
322
- durationMs: number;
323
- maxMessages: number;
324
- } | undefined;
325
- database?: {
326
- type?: "sqlite" | "postgresql" | "mysql" | undefined;
327
- connection?: {
328
- url?: string | undefined;
329
- } | undefined;
330
- } | undefined;
331
- }>]>;
332
-
333
- declare const WebhooksParserBaseType: z.ZodObject<{
334
- id: z.ZodString;
335
- method: z.ZodEnum<["GET", "POST"]>;
336
- host: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
337
- referer: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
338
- date: z.ZodString;
339
- size: z.ZodUnion<[z.ZodNumber, z.ZodUndefined]>;
340
- data: z.ZodObject<{
341
- query: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodNull]>;
342
- json: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodNull]>;
343
- form: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodNull]>;
344
- raw: z.ZodUnion<[z.ZodString, z.ZodNull]>;
345
- }, "strip", z.ZodTypeAny, {
346
- query: Record<string, any> | null;
347
- json: Record<string, any> | null;
348
- form: Record<string, any> | null;
349
- raw: string | null;
350
- }, {
351
- query: Record<string, any> | null;
352
- json: Record<string, any> | null;
353
- form: Record<string, any> | null;
354
- raw: string | null;
355
- }>;
356
- }, "strip", z.ZodTypeAny, {
357
- id: string;
358
- date: string;
359
- method: "GET" | "POST";
360
- data: {
361
- query: Record<string, any> | null;
362
- json: Record<string, any> | null;
363
- form: Record<string, any> | null;
364
- raw: string | null;
365
- };
366
- host?: string | undefined;
367
- referer?: string | undefined;
368
- size?: number | undefined;
369
- }, {
370
- id: string;
371
- date: string;
372
- method: "GET" | "POST";
373
- data: {
374
- query: Record<string, any> | null;
375
- json: Record<string, any> | null;
376
- form: Record<string, any> | null;
377
- raw: string | null;
378
- };
379
- host?: string | undefined;
380
- referer?: string | undefined;
381
- size?: number | undefined;
382
- }>;
383
-
384
- declare const EventConnectionType: z.ZodObject<{
385
- status: z.ZodEnum<["connecting", "open", "close"]>;
386
- }, "strip", z.ZodTypeAny, {
387
- status: "open" | "connecting" | "close";
388
- }, {
389
- status: "open" | "connecting" | "close";
390
- }>;
391
- declare const EventMessagesType: z.ZodObject<{
392
- chatId: z.ZodString;
393
- channelId: z.ZodString;
394
- uniqueId: z.ZodString;
395
- receiverId: z.ZodString;
396
- receiverName: z.ZodString;
397
- roomId: z.ZodString;
398
- roomName: z.ZodString;
399
- senderId: z.ZodString;
400
- senderName: z.ZodString;
401
- senderDevice: z.ZodEnum<["unknown", "android", "ios", "desktop", "web"]>;
402
- chatType: z.ZodEnum<["text", "text", "image", "contact", "location", "document", "audio", "video", "protocol", "contactsArray", "highlyStructured", "sendPayment", "liveLocation", "requestPayment", "declinePaymentRequest", "cancelPaymentRequest", "template", "sticker", "groupInvite", "templateButtonReply", "product", "deviceSent", "list", "viewOnce", "order", "listResponse", "ephemeral", "invoice", "buttons", "buttonsResponse", "paymentInvite", "interactive", "reaction", "sticker", "interactiveResponse", "pollCreation", "pollUpdate", "keepInChat", "document", "requestPhoneNumber", "viewOnce", "reaction", "text", "viewOnce", "pollCreation", "scheduledCallCreation", "groupMentioned", "pinInChat", "pollCreation", "scheduledCallEdit", "ptv", "botInvoke", "callLog", "encComment", "bcall", "lottieSticker", "event", "comment", "text", "text", "placeholder", "encEventUpdate"]>;
403
- timestamp: z.ZodNumber;
404
- mentions: z.ZodArray<z.ZodString, "many">;
405
- text: z.ZodNullable<z.ZodString>;
406
- links: z.ZodArray<z.ZodString, "many">;
407
- isPrefix: z.ZodBoolean;
408
- isSpam: z.ZodBoolean;
409
- isFromMe: z.ZodBoolean;
410
- isTagMe: z.ZodBoolean;
411
- isGroup: z.ZodBoolean;
412
- isStory: z.ZodBoolean;
413
- isViewOnce: z.ZodBoolean;
414
- isEdited: z.ZodBoolean;
415
- isDeleted: z.ZodBoolean;
416
- isPinned: z.ZodBoolean;
417
- isUnPinned: z.ZodBoolean;
418
- isChannel: z.ZodBoolean;
419
- isBroadcast: z.ZodBoolean;
420
- isEphemeral: z.ZodBoolean;
421
- isForwarded: z.ZodBoolean;
422
- citation: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
423
- media: z.ZodNullable<z.ZodObject<{
424
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
425
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
426
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
427
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
428
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
429
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
430
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
431
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
432
- }, z.ZodTypeAny, "passthrough">>>;
433
- message: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>;
434
- } & {
435
- replied: z.ZodNullable<z.ZodObject<{
436
- chatId: z.ZodString;
437
- channelId: z.ZodString;
438
- uniqueId: z.ZodString;
439
- receiverId: z.ZodString;
440
- receiverName: z.ZodString;
441
- roomId: z.ZodString;
442
- roomName: z.ZodString;
443
- senderId: z.ZodString;
444
- senderName: z.ZodString;
445
- senderDevice: z.ZodEnum<["unknown", "android", "ios", "desktop", "web"]>;
446
- chatType: z.ZodEnum<["text", "text", "image", "contact", "location", "document", "audio", "video", "protocol", "contactsArray", "highlyStructured", "sendPayment", "liveLocation", "requestPayment", "declinePaymentRequest", "cancelPaymentRequest", "template", "sticker", "groupInvite", "templateButtonReply", "product", "deviceSent", "list", "viewOnce", "order", "listResponse", "ephemeral", "invoice", "buttons", "buttonsResponse", "paymentInvite", "interactive", "reaction", "sticker", "interactiveResponse", "pollCreation", "pollUpdate", "keepInChat", "document", "requestPhoneNumber", "viewOnce", "reaction", "text", "viewOnce", "pollCreation", "scheduledCallCreation", "groupMentioned", "pinInChat", "pollCreation", "scheduledCallEdit", "ptv", "botInvoke", "callLog", "encComment", "bcall", "lottieSticker", "event", "comment", "text", "text", "placeholder", "encEventUpdate"]>;
447
- timestamp: z.ZodNumber;
448
- mentions: z.ZodArray<z.ZodString, "many">;
449
- text: z.ZodNullable<z.ZodString>;
450
- links: z.ZodArray<z.ZodString, "many">;
451
- isPrefix: z.ZodBoolean;
452
- isSpam: z.ZodBoolean;
453
- isFromMe: z.ZodBoolean;
454
- isTagMe: z.ZodBoolean;
455
- isGroup: z.ZodBoolean;
456
- isStory: z.ZodBoolean;
457
- isViewOnce: z.ZodBoolean;
458
- isEdited: z.ZodBoolean;
459
- isDeleted: z.ZodBoolean;
460
- isPinned: z.ZodBoolean;
461
- isUnPinned: z.ZodBoolean;
462
- isChannel: z.ZodBoolean;
463
- isBroadcast: z.ZodBoolean;
464
- isEphemeral: z.ZodBoolean;
465
- isForwarded: z.ZodBoolean;
466
- citation: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
467
- media: z.ZodNullable<z.ZodObject<{
468
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
469
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
470
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
471
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
472
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
473
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
474
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
475
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
476
- }, z.ZodTypeAny, "passthrough">>>;
477
- message: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>;
478
- }, "strip", z.ZodTypeAny, {
479
- channelId: string;
480
- uniqueId: string;
481
- message: (...args: unknown[]) => Record<string, any>;
482
- senderId: string;
483
- roomId: string;
484
- isGroup: boolean;
485
- text: string | null;
486
- chatId: string;
487
- receiverId: string;
488
- receiverName: string;
489
- roomName: string;
490
- senderName: string;
491
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
492
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
493
- timestamp: number;
494
- mentions: string[];
495
- links: string[];
496
- isPrefix: boolean;
497
- isSpam: boolean;
498
- isFromMe: boolean;
499
- isTagMe: boolean;
500
- isStory: boolean;
501
- isViewOnce: boolean;
502
- isEdited: boolean;
503
- isDeleted: boolean;
504
- isPinned: boolean;
505
- isUnPinned: boolean;
506
- isChannel: boolean;
507
- isBroadcast: boolean;
508
- isEphemeral: boolean;
509
- isForwarded: boolean;
510
- citation: Record<string, boolean> | null;
511
- media: z.objectOutputType<{
512
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
513
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
514
- }, z.ZodTypeAny, "passthrough"> | null;
515
- }, {
516
- channelId: string;
517
- uniqueId: string;
518
- message: (...args: unknown[]) => Record<string, any>;
519
- senderId: string;
520
- roomId: string;
521
- isGroup: boolean;
522
- text: string | null;
523
- chatId: string;
524
- receiverId: string;
525
- receiverName: string;
526
- roomName: string;
527
- senderName: string;
528
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
529
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
530
- timestamp: number;
531
- mentions: string[];
532
- links: string[];
533
- isPrefix: boolean;
534
- isSpam: boolean;
535
- isFromMe: boolean;
536
- isTagMe: boolean;
537
- isStory: boolean;
538
- isViewOnce: boolean;
539
- isEdited: boolean;
540
- isDeleted: boolean;
541
- isPinned: boolean;
542
- isUnPinned: boolean;
543
- isChannel: boolean;
544
- isBroadcast: boolean;
545
- isEphemeral: boolean;
546
- isForwarded: boolean;
547
- citation: Record<string, boolean> | null;
548
- media: z.objectInputType<{
549
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
550
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
551
- }, z.ZodTypeAny, "passthrough"> | null;
552
- }>>;
553
- }, "strip", z.ZodTypeAny, {
554
- channelId: string;
555
- uniqueId: string;
556
- message: (...args: unknown[]) => Record<string, any>;
557
- senderId: string;
558
- roomId: string;
559
- isGroup: boolean;
560
- text: string | null;
561
- chatId: string;
562
- receiverId: string;
563
- receiverName: string;
564
- roomName: string;
565
- senderName: string;
566
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
567
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
568
- timestamp: number;
569
- mentions: string[];
570
- links: string[];
571
- isPrefix: boolean;
572
- isSpam: boolean;
573
- isFromMe: boolean;
574
- isTagMe: boolean;
575
- isStory: boolean;
576
- isViewOnce: boolean;
577
- isEdited: boolean;
578
- isDeleted: boolean;
579
- isPinned: boolean;
580
- isUnPinned: boolean;
581
- isChannel: boolean;
582
- isBroadcast: boolean;
583
- isEphemeral: boolean;
584
- isForwarded: boolean;
585
- citation: Record<string, boolean> | null;
586
- media: z.objectOutputType<{
587
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
588
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
589
- }, z.ZodTypeAny, "passthrough"> | null;
590
- replied: {
591
- channelId: string;
592
- uniqueId: string;
593
- message: (...args: unknown[]) => Record<string, any>;
594
- senderId: string;
595
- roomId: string;
596
- isGroup: boolean;
597
- text: string | null;
598
- chatId: string;
599
- receiverId: string;
600
- receiverName: string;
601
- roomName: string;
602
- senderName: string;
603
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
604
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
605
- timestamp: number;
606
- mentions: string[];
607
- links: string[];
608
- isPrefix: boolean;
609
- isSpam: boolean;
610
- isFromMe: boolean;
611
- isTagMe: boolean;
612
- isStory: boolean;
613
- isViewOnce: boolean;
614
- isEdited: boolean;
615
- isDeleted: boolean;
616
- isPinned: boolean;
617
- isUnPinned: boolean;
618
- isChannel: boolean;
619
- isBroadcast: boolean;
620
- isEphemeral: boolean;
621
- isForwarded: boolean;
622
- citation: Record<string, boolean> | null;
623
- media: z.objectOutputType<{
624
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
625
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
626
- }, z.ZodTypeAny, "passthrough"> | null;
627
- } | null;
628
- }, {
629
- channelId: string;
630
- uniqueId: string;
631
- message: (...args: unknown[]) => Record<string, any>;
632
- senderId: string;
633
- roomId: string;
634
- isGroup: boolean;
635
- text: string | null;
636
- chatId: string;
637
- receiverId: string;
638
- receiverName: string;
639
- roomName: string;
640
- senderName: string;
641
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
642
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
643
- timestamp: number;
644
- mentions: string[];
645
- links: string[];
646
- isPrefix: boolean;
647
- isSpam: boolean;
648
- isFromMe: boolean;
649
- isTagMe: boolean;
650
- isStory: boolean;
651
- isViewOnce: boolean;
652
- isEdited: boolean;
653
- isDeleted: boolean;
654
- isPinned: boolean;
655
- isUnPinned: boolean;
656
- isChannel: boolean;
657
- isBroadcast: boolean;
658
- isEphemeral: boolean;
659
- isForwarded: boolean;
660
- citation: Record<string, boolean> | null;
661
- media: z.objectInputType<{
662
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
663
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
664
- }, z.ZodTypeAny, "passthrough"> | null;
665
- replied: {
666
- channelId: string;
667
- uniqueId: string;
668
- message: (...args: unknown[]) => Record<string, any>;
669
- senderId: string;
670
- roomId: string;
671
- isGroup: boolean;
672
- text: string | null;
673
- chatId: string;
674
- receiverId: string;
675
- receiverName: string;
676
- roomName: string;
677
- senderName: string;
678
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
679
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
680
- timestamp: number;
681
- mentions: string[];
682
- links: string[];
683
- isPrefix: boolean;
684
- isSpam: boolean;
685
- isFromMe: boolean;
686
- isTagMe: boolean;
687
- isStory: boolean;
688
- isViewOnce: boolean;
689
- isEdited: boolean;
690
- isDeleted: boolean;
691
- isPinned: boolean;
692
- isUnPinned: boolean;
693
- isChannel: boolean;
694
- isBroadcast: boolean;
695
- isEphemeral: boolean;
696
- isForwarded: boolean;
697
- citation: Record<string, boolean> | null;
698
- media: z.objectInputType<{
699
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
700
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
701
- }, z.ZodTypeAny, "passthrough"> | null;
702
- } | null;
703
- }>;
704
- declare const EventCallType: z.ZodObject<{
705
- callId: z.ZodString;
706
- roomId: z.ZodString;
707
- callerId: z.ZodString;
708
- date: z.ZodDate;
709
- offline: z.ZodBoolean;
710
- status: z.ZodEnum<["accept", "offer", "reject", "ringing", "terminate", "timeout"]>;
711
- isVideo: z.ZodBoolean;
712
- isGroup: z.ZodBoolean;
713
- }, "strip", z.ZodTypeAny, {
714
- status: "accept" | "offer" | "reject" | "ringing" | "terminate" | "timeout";
715
- callId: string;
716
- roomId: string;
717
- callerId: string;
718
- date: Date;
719
- offline: boolean;
720
- isVideo: boolean;
721
- isGroup: boolean;
722
- }, {
723
- status: "accept" | "offer" | "reject" | "ringing" | "terminate" | "timeout";
724
- callId: string;
725
- roomId: string;
726
- callerId: string;
727
- date: Date;
728
- offline: boolean;
729
- isVideo: boolean;
730
- isGroup: boolean;
731
- }>;
732
- declare const EventEnumType: z.ZodEnum<["connection", "messages", "calls", "webhooks"]>;
733
- type EventEnumType = z.infer<typeof EventEnumType>;
734
- type EventCallbackType = {
735
- connection: (ctx: z.infer<typeof EventConnectionType>) => void;
736
- messages: (ctx: z.infer<typeof EventMessagesType>) => void;
737
- calls: (ctx: z.infer<typeof EventCallType>) => void;
738
- webhooks: (ctx: z.infer<typeof WebhooksParserBaseType>) => void;
739
- };
740
-
741
- declare const chatsGetMessage: z.ZodObject<{
742
- chatId: z.ZodString;
743
- channelId: z.ZodString;
744
- uniqueId: z.ZodString;
745
- receiverId: z.ZodString;
746
- receiverName: z.ZodString;
747
- roomId: z.ZodString;
748
- roomName: z.ZodString;
749
- senderId: z.ZodString;
750
- senderName: z.ZodString;
751
- senderDevice: z.ZodEnum<["unknown", "android", "ios", "desktop", "web"]>;
752
- chatType: z.ZodEnum<["text", "text", "image", "contact", "location", "document", "audio", "video", "protocol", "contactsArray", "highlyStructured", "sendPayment", "liveLocation", "requestPayment", "declinePaymentRequest", "cancelPaymentRequest", "template", "sticker", "groupInvite", "templateButtonReply", "product", "deviceSent", "list", "viewOnce", "order", "listResponse", "ephemeral", "invoice", "buttons", "buttonsResponse", "paymentInvite", "interactive", "reaction", "sticker", "interactiveResponse", "pollCreation", "pollUpdate", "keepInChat", "document", "requestPhoneNumber", "viewOnce", "reaction", "text", "viewOnce", "pollCreation", "scheduledCallCreation", "groupMentioned", "pinInChat", "pollCreation", "scheduledCallEdit", "ptv", "botInvoke", "callLog", "encComment", "bcall", "lottieSticker", "event", "comment", "text", "text", "placeholder", "encEventUpdate"]>;
753
- timestamp: z.ZodNumber;
754
- mentions: z.ZodArray<z.ZodString, "many">;
755
- text: z.ZodNullable<z.ZodString>;
756
- links: z.ZodArray<z.ZodString, "many">;
757
- isPrefix: z.ZodBoolean;
758
- isSpam: z.ZodBoolean;
759
- isFromMe: z.ZodBoolean;
760
- isTagMe: z.ZodBoolean;
761
- isGroup: z.ZodBoolean;
762
- isStory: z.ZodBoolean;
763
- isViewOnce: z.ZodBoolean;
764
- isEdited: z.ZodBoolean;
765
- isDeleted: z.ZodBoolean;
766
- isPinned: z.ZodBoolean;
767
- isUnPinned: z.ZodBoolean;
768
- isChannel: z.ZodBoolean;
769
- isBroadcast: z.ZodBoolean;
770
- isEphemeral: z.ZodBoolean;
771
- isForwarded: z.ZodBoolean;
772
- citation: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
773
- media: z.ZodNullable<z.ZodObject<{
774
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
775
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
776
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
777
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
778
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
779
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
780
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
781
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
782
- }, z.ZodTypeAny, "passthrough">>>;
783
- message: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>;
784
- } & {
785
- replied: z.ZodNullable<z.ZodObject<{
786
- chatId: z.ZodString;
787
- channelId: z.ZodString;
788
- uniqueId: z.ZodString;
789
- receiverId: z.ZodString;
790
- receiverName: z.ZodString;
791
- roomId: z.ZodString;
792
- roomName: z.ZodString;
793
- senderId: z.ZodString;
794
- senderName: z.ZodString;
795
- senderDevice: z.ZodEnum<["unknown", "android", "ios", "desktop", "web"]>;
796
- chatType: z.ZodEnum<["text", "text", "image", "contact", "location", "document", "audio", "video", "protocol", "contactsArray", "highlyStructured", "sendPayment", "liveLocation", "requestPayment", "declinePaymentRequest", "cancelPaymentRequest", "template", "sticker", "groupInvite", "templateButtonReply", "product", "deviceSent", "list", "viewOnce", "order", "listResponse", "ephemeral", "invoice", "buttons", "buttonsResponse", "paymentInvite", "interactive", "reaction", "sticker", "interactiveResponse", "pollCreation", "pollUpdate", "keepInChat", "document", "requestPhoneNumber", "viewOnce", "reaction", "text", "viewOnce", "pollCreation", "scheduledCallCreation", "groupMentioned", "pinInChat", "pollCreation", "scheduledCallEdit", "ptv", "botInvoke", "callLog", "encComment", "bcall", "lottieSticker", "event", "comment", "text", "text", "placeholder", "encEventUpdate"]>;
797
- timestamp: z.ZodNumber;
798
- mentions: z.ZodArray<z.ZodString, "many">;
799
- text: z.ZodNullable<z.ZodString>;
800
- links: z.ZodArray<z.ZodString, "many">;
801
- isPrefix: z.ZodBoolean;
802
- isSpam: z.ZodBoolean;
803
- isFromMe: z.ZodBoolean;
804
- isTagMe: z.ZodBoolean;
805
- isGroup: z.ZodBoolean;
806
- isStory: z.ZodBoolean;
807
- isViewOnce: z.ZodBoolean;
808
- isEdited: z.ZodBoolean;
809
- isDeleted: z.ZodBoolean;
810
- isPinned: z.ZodBoolean;
811
- isUnPinned: z.ZodBoolean;
812
- isChannel: z.ZodBoolean;
813
- isBroadcast: z.ZodBoolean;
814
- isEphemeral: z.ZodBoolean;
815
- isForwarded: z.ZodBoolean;
816
- citation: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
817
- media: z.ZodNullable<z.ZodObject<{
818
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
819
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
820
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
821
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
822
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
823
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
824
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
825
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
826
- }, z.ZodTypeAny, "passthrough">>>;
827
- message: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>;
828
- }, "strip", z.ZodTypeAny, {
829
- channelId: string;
830
- uniqueId: string;
831
- message: (...args: unknown[]) => Record<string, any>;
832
- senderId: string;
833
- roomId: string;
834
- isGroup: boolean;
835
- text: string | null;
836
- chatId: string;
837
- receiverId: string;
838
- receiverName: string;
839
- roomName: string;
840
- senderName: string;
841
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
842
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
843
- timestamp: number;
844
- mentions: string[];
845
- links: string[];
846
- isPrefix: boolean;
847
- isSpam: boolean;
848
- isFromMe: boolean;
849
- isTagMe: boolean;
850
- isStory: boolean;
851
- isViewOnce: boolean;
852
- isEdited: boolean;
853
- isDeleted: boolean;
854
- isPinned: boolean;
855
- isUnPinned: boolean;
856
- isChannel: boolean;
857
- isBroadcast: boolean;
858
- isEphemeral: boolean;
859
- isForwarded: boolean;
860
- citation: Record<string, boolean> | null;
861
- media: z.objectOutputType<{
862
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
863
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
864
- }, z.ZodTypeAny, "passthrough"> | null;
865
- }, {
866
- channelId: string;
867
- uniqueId: string;
868
- message: (...args: unknown[]) => Record<string, any>;
869
- senderId: string;
870
- roomId: string;
871
- isGroup: boolean;
872
- text: string | null;
873
- chatId: string;
874
- receiverId: string;
875
- receiverName: string;
876
- roomName: string;
877
- senderName: string;
878
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
879
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
880
- timestamp: number;
881
- mentions: string[];
882
- links: string[];
883
- isPrefix: boolean;
884
- isSpam: boolean;
885
- isFromMe: boolean;
886
- isTagMe: boolean;
887
- isStory: boolean;
888
- isViewOnce: boolean;
889
- isEdited: boolean;
890
- isDeleted: boolean;
891
- isPinned: boolean;
892
- isUnPinned: boolean;
893
- isChannel: boolean;
894
- isBroadcast: boolean;
895
- isEphemeral: boolean;
896
- isForwarded: boolean;
897
- citation: Record<string, boolean> | null;
898
- media: z.objectInputType<{
899
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
900
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
901
- }, z.ZodTypeAny, "passthrough"> | null;
902
- }>>;
903
- }, "strip", z.ZodTypeAny, {
904
- channelId: string;
905
- uniqueId: string;
906
- message: (...args: unknown[]) => Record<string, any>;
907
- senderId: string;
908
- roomId: string;
909
- isGroup: boolean;
910
- text: string | null;
911
- chatId: string;
912
- receiverId: string;
913
- receiverName: string;
914
- roomName: string;
915
- senderName: string;
916
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
917
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
918
- timestamp: number;
919
- mentions: string[];
920
- links: string[];
921
- isPrefix: boolean;
922
- isSpam: boolean;
923
- isFromMe: boolean;
924
- isTagMe: boolean;
925
- isStory: boolean;
926
- isViewOnce: boolean;
927
- isEdited: boolean;
928
- isDeleted: boolean;
929
- isPinned: boolean;
930
- isUnPinned: boolean;
931
- isChannel: boolean;
932
- isBroadcast: boolean;
933
- isEphemeral: boolean;
934
- isForwarded: boolean;
935
- citation: Record<string, boolean> | null;
936
- media: z.objectOutputType<{
937
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
938
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
939
- }, z.ZodTypeAny, "passthrough"> | null;
940
- replied: {
941
- channelId: string;
942
- uniqueId: string;
943
- message: (...args: unknown[]) => Record<string, any>;
944
- senderId: string;
945
- roomId: string;
946
- isGroup: boolean;
947
- text: string | null;
948
- chatId: string;
949
- receiverId: string;
950
- receiverName: string;
951
- roomName: string;
952
- senderName: string;
953
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
954
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
955
- timestamp: number;
956
- mentions: string[];
957
- links: string[];
958
- isPrefix: boolean;
959
- isSpam: boolean;
960
- isFromMe: boolean;
961
- isTagMe: boolean;
962
- isStory: boolean;
963
- isViewOnce: boolean;
964
- isEdited: boolean;
965
- isDeleted: boolean;
966
- isPinned: boolean;
967
- isUnPinned: boolean;
968
- isChannel: boolean;
969
- isBroadcast: boolean;
970
- isEphemeral: boolean;
971
- isForwarded: boolean;
972
- citation: Record<string, boolean> | null;
973
- media: z.objectOutputType<{
974
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
975
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
976
- }, z.ZodTypeAny, "passthrough"> | null;
977
- } | null;
978
- }, {
979
- channelId: string;
980
- uniqueId: string;
981
- message: (...args: unknown[]) => Record<string, any>;
982
- senderId: string;
983
- roomId: string;
984
- isGroup: boolean;
985
- text: string | null;
986
- chatId: string;
987
- receiverId: string;
988
- receiverName: string;
989
- roomName: string;
990
- senderName: string;
991
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
992
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
993
- timestamp: number;
994
- mentions: string[];
995
- links: string[];
996
- isPrefix: boolean;
997
- isSpam: boolean;
998
- isFromMe: boolean;
999
- isTagMe: boolean;
1000
- isStory: boolean;
1001
- isViewOnce: boolean;
1002
- isEdited: boolean;
1003
- isDeleted: boolean;
1004
- isPinned: boolean;
1005
- isUnPinned: boolean;
1006
- isChannel: boolean;
1007
- isBroadcast: boolean;
1008
- isEphemeral: boolean;
1009
- isForwarded: boolean;
1010
- citation: Record<string, boolean> | null;
1011
- media: z.objectInputType<{
1012
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
1013
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
1014
- }, z.ZodTypeAny, "passthrough"> | null;
1015
- replied: {
1016
- channelId: string;
1017
- uniqueId: string;
1018
- message: (...args: unknown[]) => Record<string, any>;
1019
- senderId: string;
1020
- roomId: string;
1021
- isGroup: boolean;
1022
- text: string | null;
1023
- chatId: string;
1024
- receiverId: string;
1025
- receiverName: string;
1026
- roomName: string;
1027
- senderName: string;
1028
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
1029
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
1030
- timestamp: number;
1031
- mentions: string[];
1032
- links: string[];
1033
- isPrefix: boolean;
1034
- isSpam: boolean;
1035
- isFromMe: boolean;
1036
- isTagMe: boolean;
1037
- isStory: boolean;
1038
- isViewOnce: boolean;
1039
- isEdited: boolean;
1040
- isDeleted: boolean;
1041
- isPinned: boolean;
1042
- isUnPinned: boolean;
1043
- isChannel: boolean;
1044
- isBroadcast: boolean;
1045
- isEphemeral: boolean;
1046
- isForwarded: boolean;
1047
- citation: Record<string, boolean> | null;
1048
- media: z.objectInputType<{
1049
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
1050
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
1051
- }, z.ZodTypeAny, "passthrough"> | null;
1052
- } | null;
1053
- }>;
1054
- type chatsAdapter = {
1055
- getMessage: (chatId: string) => Promise<z.infer<typeof chatsGetMessage> | null>;
1056
- };
1057
-
1058
- declare const llmMessagesTable: z.ZodObject<{
1059
- channelId: z.ZodString;
1060
- uniqueId: z.ZodString;
1061
- model: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1062
- role: z.ZodString;
1063
- content: z.ZodString;
1064
- additional: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1065
- }, "strip", z.ZodTypeAny, {
1066
- channelId: string;
1067
- uniqueId: string;
1068
- role: string;
1069
- content: string;
1070
- model?: string | null | undefined;
1071
- additional?: string | null | undefined;
1072
- }, {
1073
- channelId: string;
1074
- uniqueId: string;
1075
- role: string;
1076
- content: string;
1077
- model?: string | null | undefined;
1078
- additional?: string | null | undefined;
1079
- }>;
1080
- declare const llmPersonalizationTable: z.ZodObject<{
1081
- uniqueId: z.ZodString;
1082
- senderId: z.ZodString;
1083
- content: z.ZodString;
1084
- }, "strip", z.ZodTypeAny, {
1085
- uniqueId: string;
1086
- content: string;
1087
- senderId: string;
1088
- }, {
1089
- uniqueId: string;
1090
- content: string;
1091
- senderId: string;
1092
- }>;
1093
- declare const llmRAGTable: z.ZodObject<{
1094
- metadata: z.ZodDefault<z.ZodObject<{
1095
- id: z.ZodDefault<z.ZodString>;
1096
- }, "strip", z.ZodTypeAny, {
1097
- id: string;
1098
- }, {
1099
- id?: string | undefined;
1100
- }>>;
1101
- pageContent: z.ZodString;
1102
- }, "strip", z.ZodTypeAny, {
1103
- metadata: {
1104
- id: string;
1105
- };
1106
- pageContent: string;
1107
- }, {
1108
- pageContent: string;
1109
- metadata?: {
1110
- id?: string | undefined;
1111
- } | undefined;
1112
- }>;
1113
- declare const addRAGType: z.ZodObject<Pick<{
1114
- metadata: z.ZodDefault<z.ZodObject<{
1115
- id: z.ZodDefault<z.ZodString>;
1116
- }, "strip", z.ZodTypeAny, {
1117
- id: string;
1118
- }, {
1119
- id?: string | undefined;
1120
- }>>;
1121
- pageContent: z.ZodString;
1122
- }, "pageContent">, "strip", z.ZodTypeAny, {
1123
- pageContent: string;
1124
- }, {
1125
- pageContent: string;
1126
- }>;
1127
- type llmsAdapter = {
1128
- addCompletion: (props: z.infer<typeof llmMessagesTable>) => Promise<z.infer<typeof llmMessagesTable>>;
1129
- deleteCompletion: (uniqueId: string) => Promise<boolean>;
1130
- updateCompletion: (uniqueId: string, props: Partial<z.infer<typeof llmMessagesTable>>) => Promise<z.infer<typeof llmMessagesTable>>;
1131
- clearCompletions: (channelId: string) => Promise<boolean>;
1132
- getCompletion: (uniqueId: string) => Promise<z.infer<typeof llmMessagesTable> | null>;
1133
- getCompletions: (channelId: string) => Promise<z.infer<typeof llmMessagesTable>[]>;
1134
- addPersonalization: (props: z.infer<typeof llmPersonalizationTable>) => Promise<z.infer<typeof llmPersonalizationTable>>;
1135
- deletePersonalization: (uniqueId: string) => Promise<boolean>;
1136
- clearPersonalization: (senderId: string) => Promise<boolean>;
1137
- getPersonalization: (senderId: string) => Promise<z.infer<typeof llmPersonalizationTable>[]>;
1138
- addRAG: (props: z.infer<typeof addRAGType>) => Promise<z.infer<typeof llmRAGTable>>;
1139
- deleteRAG: (id: string) => Promise<boolean>;
1140
- updateRAG: (id: string) => Promise<z.infer<typeof llmRAGTable>>;
1141
- clearRAGs: () => Promise<boolean>;
1142
- getRAG: (id: string) => Promise<z.infer<typeof llmRAGTable> | null>;
1143
- getRAGs: (keyword: string) => Promise<z.infer<typeof llmRAGTable>[]>;
1144
- };
1145
-
1146
- declare const MediaInputWorkerType: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>]>]>;
1147
- declare const TextWorkerBaseType: z.ZodUnion<[z.ZodString, z.ZodObject<{
1148
- image: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>]>]>;
1149
- text: z.ZodOptional<z.ZodString>;
1150
- }, "strict", z.ZodTypeAny, {
1151
- image: string | Buffer<ArrayBufferLike> | Readable;
1152
- text?: string | undefined;
1153
- }, {
1154
- image: string | Buffer<ArrayBufferLike> | Readable;
1155
- text?: string | undefined;
1156
- }>, z.ZodObject<{
1157
- video: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>]>]>;
1158
- text: z.ZodOptional<z.ZodString>;
1159
- }, "strict", z.ZodTypeAny, {
1160
- video: string | Buffer<ArrayBufferLike> | Readable;
1161
- text?: string | undefined;
1162
- }, {
1163
- video: string | Buffer<ArrayBufferLike> | Readable;
1164
- text?: string | undefined;
1165
- }>, z.ZodObject<{
1166
- note: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>]>]>;
1167
- }, "strict", z.ZodTypeAny, {
1168
- note: string | Buffer<ArrayBufferLike> | Readable;
1169
- }, {
1170
- note: string | Buffer<ArrayBufferLike> | Readable;
1171
- }>, z.ZodObject<{
1172
- gif: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>]>]>;
1173
- text: z.ZodOptional<z.ZodString>;
1174
- }, "strict", z.ZodTypeAny, {
1175
- gif: string | Buffer<ArrayBufferLike> | Readable;
1176
- text?: string | undefined;
1177
- }, {
1178
- gif: string | Buffer<ArrayBufferLike> | Readable;
1179
- text?: string | undefined;
1180
- }>, z.ZodObject<{
1181
- audio: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>]>]>;
1182
- }, "strict", z.ZodTypeAny, {
1183
- audio: string | Buffer<ArrayBufferLike> | Readable;
1184
- }, {
1185
- audio: string | Buffer<ArrayBufferLike> | Readable;
1186
- }>, z.ZodObject<{
1187
- voice: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>]>]>;
1188
- }, "strict", z.ZodTypeAny, {
1189
- voice: string | Buffer<ArrayBufferLike> | Readable;
1190
- }, {
1191
- voice: string | Buffer<ArrayBufferLike> | Readable;
1192
- }>, z.ZodObject<{
1193
- sticker: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>]>]>;
1194
- }, "strict", z.ZodTypeAny, {
1195
- sticker: string | Buffer<ArrayBufferLike> | Readable;
1196
- }, {
1197
- sticker: string | Buffer<ArrayBufferLike> | Readable;
1198
- }>]>;
1199
- declare const TextWorkerOptionsType: z.ZodObject<{
1200
- roomId: z.ZodString;
1201
- asForwarded: z.ZodOptional<z.ZodBoolean>;
1202
- asViewOnce: z.ZodOptional<z.ZodBoolean>;
1203
- asAI: z.ZodOptional<z.ZodBoolean>;
1204
- verifiedReply: z.ZodOptional<z.ZodEnum<["whatsapp", "meta", "chatgpt", "copilot", "instagram", "tiktok"]>>;
1205
- quoted: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
1206
- }, "strip", z.ZodTypeAny, {
1207
- roomId: string;
1208
- asForwarded?: boolean | undefined;
1209
- asViewOnce?: boolean | undefined;
1210
- asAI?: boolean | undefined;
1211
- verifiedReply?: "whatsapp" | "meta" | "chatgpt" | "copilot" | "instagram" | "tiktok" | undefined;
1212
- quoted?: ((...args: unknown[]) => Record<string, any>) | undefined;
1213
- }, {
1214
- roomId: string;
1215
- asForwarded?: boolean | undefined;
1216
- asViewOnce?: boolean | undefined;
1217
- asAI?: boolean | undefined;
1218
- verifiedReply?: "whatsapp" | "meta" | "chatgpt" | "copilot" | "instagram" | "tiktok" | undefined;
1219
- quoted?: ((...args: unknown[]) => Record<string, any>) | undefined;
1220
- }>;
1221
- declare const LocationWorkerOptionsType: z.ZodObject<{
1222
- roomId: z.ZodString;
1223
- asForwarded: z.ZodOptional<z.ZodBoolean>;
1224
- asViewOnce: z.ZodOptional<z.ZodBoolean>;
1225
- asAI: z.ZodOptional<z.ZodBoolean>;
1226
- verifiedReply: z.ZodOptional<z.ZodEnum<["whatsapp", "meta", "chatgpt", "copilot", "instagram", "tiktok"]>>;
1227
- quoted: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
1228
- }, "strip", z.ZodTypeAny, {
1229
- roomId: string;
1230
- asForwarded?: boolean | undefined;
1231
- asViewOnce?: boolean | undefined;
1232
- asAI?: boolean | undefined;
1233
- verifiedReply?: "whatsapp" | "meta" | "chatgpt" | "copilot" | "instagram" | "tiktok" | undefined;
1234
- quoted?: ((...args: unknown[]) => Record<string, any>) | undefined;
1235
- }, {
1236
- roomId: string;
1237
- asForwarded?: boolean | undefined;
1238
- asViewOnce?: boolean | undefined;
1239
- asAI?: boolean | undefined;
1240
- verifiedReply?: "whatsapp" | "meta" | "chatgpt" | "copilot" | "instagram" | "tiktok" | undefined;
1241
- quoted?: ((...args: unknown[]) => Record<string, any>) | undefined;
1242
- }>;
1243
- declare const LocationWorkerBaseType: z.ZodObject<{
1244
- latitude: z.ZodNumber;
1245
- longitude: z.ZodNumber;
1246
- title: z.ZodOptional<z.ZodString>;
1247
- footer: z.ZodOptional<z.ZodString>;
1248
- }, "strip", z.ZodTypeAny, {
1249
- latitude: number;
1250
- longitude: number;
1251
- title?: string | undefined;
1252
- footer?: string | undefined;
1253
- }, {
1254
- latitude: number;
1255
- longitude: number;
1256
- title?: string | undefined;
1257
- footer?: string | undefined;
1258
- }>;
1259
- declare const ContactWorkerOptionsType: z.ZodObject<{
1260
- roomId: z.ZodString;
1261
- asForwarded: z.ZodOptional<z.ZodBoolean>;
1262
- asViewOnce: z.ZodOptional<z.ZodBoolean>;
1263
- asAI: z.ZodOptional<z.ZodBoolean>;
1264
- verifiedReply: z.ZodOptional<z.ZodEnum<["whatsapp", "meta", "chatgpt", "copilot", "instagram", "tiktok"]>>;
1265
- quoted: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
1266
- }, "strip", z.ZodTypeAny, {
1267
- roomId: string;
1268
- asForwarded?: boolean | undefined;
1269
- asViewOnce?: boolean | undefined;
1270
- asAI?: boolean | undefined;
1271
- verifiedReply?: "whatsapp" | "meta" | "chatgpt" | "copilot" | "instagram" | "tiktok" | undefined;
1272
- quoted?: ((...args: unknown[]) => Record<string, any>) | undefined;
1273
- }, {
1274
- roomId: string;
1275
- asForwarded?: boolean | undefined;
1276
- asViewOnce?: boolean | undefined;
1277
- asAI?: boolean | undefined;
1278
- verifiedReply?: "whatsapp" | "meta" | "chatgpt" | "copilot" | "instagram" | "tiktok" | undefined;
1279
- quoted?: ((...args: unknown[]) => Record<string, any>) | undefined;
1280
- }>;
1281
- declare const ContactWorkerBaseType: z.ZodObject<{
1282
- fullname: z.ZodString;
1283
- nickname: z.ZodOptional<z.ZodString>;
1284
- organization: z.ZodOptional<z.ZodString>;
1285
- role: z.ZodOptional<z.ZodString>;
1286
- email: z.ZodOptional<z.ZodString>;
1287
- whatsAppNumber: z.ZodNumber;
1288
- callNumber: z.ZodOptional<z.ZodNumber>;
1289
- voiceNumber: z.ZodOptional<z.ZodNumber>;
1290
- website: z.ZodOptional<z.ZodString>;
1291
- homeAddress: z.ZodOptional<z.ZodString>;
1292
- workAddress: z.ZodOptional<z.ZodString>;
1293
- avatar: z.ZodOptional<z.ZodString>;
1294
- }, "strip", z.ZodTypeAny, {
1295
- fullname: string;
1296
- whatsAppNumber: number;
1297
- role?: string | undefined;
1298
- nickname?: string | undefined;
1299
- organization?: string | undefined;
1300
- email?: string | undefined;
1301
- callNumber?: number | undefined;
1302
- voiceNumber?: number | undefined;
1303
- website?: string | undefined;
1304
- homeAddress?: string | undefined;
1305
- workAddress?: string | undefined;
1306
- avatar?: string | undefined;
1307
- }, {
1308
- fullname: string;
1309
- whatsAppNumber: number;
1310
- role?: string | undefined;
1311
- nickname?: string | undefined;
1312
- organization?: string | undefined;
1313
- email?: string | undefined;
1314
- callNumber?: number | undefined;
1315
- voiceNumber?: number | undefined;
1316
- website?: string | undefined;
1317
- homeAddress?: string | undefined;
1318
- workAddress?: string | undefined;
1319
- avatar?: string | undefined;
1320
- }>;
1321
- declare const ReactionWorkerOptionsType: z.ZodObject<{
1322
- message: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>;
1323
- }, "strip", z.ZodTypeAny, {
1324
- message: (...args: unknown[]) => Record<string, any>;
1325
- }, {
1326
- message: (...args: unknown[]) => Record<string, any>;
1327
- }>;
1328
- declare const ReactionWorkerBaseType: z.ZodString;
1329
- declare const PinWorkerOptionsType: z.ZodObject<{
1330
- message: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>;
1331
- }, "strip", z.ZodTypeAny, {
1332
- message: (...args: unknown[]) => Record<string, any>;
1333
- }, {
1334
- message: (...args: unknown[]) => Record<string, any>;
1335
- }>;
1336
- declare const PinWorkerBaseType: z.ZodObject<{
1337
- action: z.ZodEnum<["pin", "unpin"]>;
1338
- expired: z.ZodEnum<["24h", "7d", "30d"]>;
1339
- }, "strip", z.ZodTypeAny, {
1340
- action: "pin" | "unpin";
1341
- expired: "24h" | "7d" | "30d";
1342
- }, {
1343
- action: "pin" | "unpin";
1344
- expired: "24h" | "7d" | "30d";
1345
- }>;
1346
- declare const PollWorkerOptionsType: z.ZodObject<Pick<{
1347
- roomId: z.ZodString;
1348
- asForwarded: z.ZodOptional<z.ZodBoolean>;
1349
- asViewOnce: z.ZodOptional<z.ZodBoolean>;
1350
- asAI: z.ZodOptional<z.ZodBoolean>;
1351
- verifiedReply: z.ZodOptional<z.ZodEnum<["whatsapp", "meta", "chatgpt", "copilot", "instagram", "tiktok"]>>;
1352
- quoted: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
1353
- }, "roomId">, "strip", z.ZodTypeAny, {
1354
- roomId: string;
1355
- }, {
1356
- roomId: string;
1357
- }>;
1358
- declare const PollWorkerBaseType: z.ZodObject<{
1359
- name: z.ZodString;
1360
- answers: z.ZodArray<z.ZodString, "many">;
1361
- multipleAnswers: z.ZodOptional<z.ZodBoolean>;
1362
- }, "strip", z.ZodTypeAny, {
1363
- name: string;
1364
- answers: string[];
1365
- multipleAnswers?: boolean | undefined;
1366
- }, {
1367
- name: string;
1368
- answers: string[];
1369
- multipleAnswers?: boolean | undefined;
1370
- }>;
1371
- declare const EditWorkerOptionsType: z.ZodObject<{
1372
- message: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>;
1373
- }, "strip", z.ZodTypeAny, {
1374
- message: (...args: unknown[]) => Record<string, any>;
1375
- }, {
1376
- message: (...args: unknown[]) => Record<string, any>;
1377
- }>;
1378
- declare const EditWorkerBaseType: z.ZodString;
1379
- declare const DeleteWorkerBaseType: z.ZodObject<{
1380
- message: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>;
1381
- }, "strip", z.ZodTypeAny, {
1382
- message: (...args: unknown[]) => Record<string, any>;
1383
- }, {
1384
- message: (...args: unknown[]) => Record<string, any>;
1385
- }>;
1386
- declare const RejectCallWorkerBaseType: z.ZodObject<{
1387
- callId: z.ZodString;
1388
- callerId: z.ZodString;
1389
- }, "strip", z.ZodTypeAny, {
1390
- callId: string;
1391
- callerId: string;
1392
- }, {
1393
- callId: string;
1394
- callerId: string;
1395
- }>;
1396
- declare const MuteWorkerOptionsType: z.ZodObject<Pick<{
1397
- roomId: z.ZodString;
1398
- asForwarded: z.ZodOptional<z.ZodBoolean>;
1399
- asViewOnce: z.ZodOptional<z.ZodBoolean>;
1400
- asAI: z.ZodOptional<z.ZodBoolean>;
1401
- verifiedReply: z.ZodOptional<z.ZodEnum<["whatsapp", "meta", "chatgpt", "copilot", "instagram", "tiktok"]>>;
1402
- quoted: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
1403
- }, "roomId">, "strip", z.ZodTypeAny, {
1404
- roomId: string;
1405
- }, {
1406
- roomId: string;
1407
- }>;
1408
- declare const MuteWorkerBaseType: z.ZodObject<{
1409
- expired: z.ZodEnum<["remove", "8h", "7d"]>;
1410
- }, "strip", z.ZodTypeAny, {
1411
- expired: "7d" | "remove" | "8h";
1412
- }, {
1413
- expired: "7d" | "remove" | "8h";
1414
- }>;
1415
- declare const ProfileWorkerBaseType: z.ZodString;
1416
- declare const ProfileWorkerBaseOutputType: z.ZodObject<{
1417
- type: z.ZodEnum<["group", "user"]>;
1418
- id: z.ZodString;
1419
- name: z.ZodString;
1420
- bio: z.ZodString;
1421
- avatar: z.ZodString;
1422
- ephemeralDuration: z.ZodOptional<z.ZodNumber>;
1423
- isRestrict: z.ZodOptional<z.ZodBoolean>;
1424
- isAnnounce: z.ZodOptional<z.ZodBoolean>;
1425
- isCommunity: z.ZodOptional<z.ZodBoolean>;
1426
- isCommunityAnnounce: z.ZodOptional<z.ZodBoolean>;
1427
- isJoinApprovalMode: z.ZodOptional<z.ZodBoolean>;
1428
- isMemberAddMode: z.ZodOptional<z.ZodBoolean>;
1429
- owner: z.ZodNullable<z.ZodObject<{
1430
- type: z.ZodLiteral<"user">;
1431
- id: z.ZodString;
1432
- }, "strip", z.ZodTypeAny, {
1433
- type: "user";
1434
- id: string;
1435
- }, {
1436
- type: "user";
1437
- id: string;
1438
- }>>;
1439
- roomCreatedAt: z.ZodOptional<z.ZodNumber>;
1440
- nameUpdatedAt: z.ZodOptional<z.ZodNumber>;
1441
- bioUpdatedAt: z.ZodOptional<z.ZodNumber>;
1442
- membersLength: z.ZodOptional<z.ZodNumber>;
1443
- members: z.ZodOptional<z.ZodArray<z.ZodObject<{
1444
- type: z.ZodEnum<["user", "admin", "superadmin"]>;
1445
- id: z.ZodString;
1446
- }, "strip", z.ZodTypeAny, {
1447
- type: "user" | "admin" | "superadmin";
1448
- id: string;
1449
- }, {
1450
- type: "user" | "admin" | "superadmin";
1451
- id: string;
1452
- }>, "many">>;
1453
- }, "strip", z.ZodTypeAny, {
1454
- type: "user" | "group";
1455
- id: string;
1456
- name: string;
1457
- owner: {
1458
- type: "user";
1459
- id: string;
1460
- } | null;
1461
- avatar: string;
1462
- bio: string;
1463
- isCommunity?: boolean | undefined;
1464
- isCommunityAnnounce?: boolean | undefined;
1465
- ephemeralDuration?: number | undefined;
1466
- isRestrict?: boolean | undefined;
1467
- isAnnounce?: boolean | undefined;
1468
- isJoinApprovalMode?: boolean | undefined;
1469
- isMemberAddMode?: boolean | undefined;
1470
- roomCreatedAt?: number | undefined;
1471
- nameUpdatedAt?: number | undefined;
1472
- bioUpdatedAt?: number | undefined;
1473
- membersLength?: number | undefined;
1474
- members?: {
1475
- type: "user" | "admin" | "superadmin";
1476
- id: string;
1477
- }[] | undefined;
1478
- }, {
1479
- type: "user" | "group";
1480
- id: string;
1481
- name: string;
1482
- owner: {
1483
- type: "user";
1484
- id: string;
1485
- } | null;
1486
- avatar: string;
1487
- bio: string;
1488
- isCommunity?: boolean | undefined;
1489
- isCommunityAnnounce?: boolean | undefined;
1490
- ephemeralDuration?: number | undefined;
1491
- isRestrict?: boolean | undefined;
1492
- isAnnounce?: boolean | undefined;
1493
- isJoinApprovalMode?: boolean | undefined;
1494
- isMemberAddMode?: boolean | undefined;
1495
- roomCreatedAt?: number | undefined;
1496
- nameUpdatedAt?: number | undefined;
1497
- bioUpdatedAt?: number | undefined;
1498
- membersLength?: number | undefined;
1499
- members?: {
1500
- type: "user" | "admin" | "superadmin";
1501
- id: string;
1502
- }[] | undefined;
1503
- }>;
1504
- declare const PresenceWorkerOptionsType: z.ZodObject<Pick<{
1505
- roomId: z.ZodString;
1506
- asForwarded: z.ZodOptional<z.ZodBoolean>;
1507
- asViewOnce: z.ZodOptional<z.ZodBoolean>;
1508
- asAI: z.ZodOptional<z.ZodBoolean>;
1509
- verifiedReply: z.ZodOptional<z.ZodEnum<["whatsapp", "meta", "chatgpt", "copilot", "instagram", "tiktok"]>>;
1510
- quoted: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
1511
- }, "roomId">, "strip", z.ZodTypeAny, {
1512
- roomId: string;
1513
- }, {
1514
- roomId: string;
1515
- }>;
1516
- declare const PresenceWorkerBaseType: z.ZodEnum<["typing", "recording", "online", "offline", "paused"]>;
1517
-
1518
- declare class Worker {
1519
- private wa;
1520
- private parser;
1521
- private caching;
1522
- constructor(wa: {
1523
- client: Client;
1524
- db: Client["db"];
1525
- socket: Client["socket"];
1526
- });
1527
- private sendMessage;
1528
- text(input: z.infer<typeof TextWorkerBaseType>, options: z.infer<typeof TextWorkerOptionsType>): Promise<{
1529
- channelId: string;
1530
- uniqueId: string;
1531
- message: (...args: unknown[]) => Record<string, any>;
1532
- senderId: string;
1533
- roomId: string;
1534
- isGroup: boolean;
1535
- text: string | null;
1536
- chatId: string;
1537
- receiverId: string;
1538
- receiverName: string;
1539
- roomName: string;
1540
- senderName: string;
1541
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
1542
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
1543
- timestamp: number;
1544
- mentions: string[];
1545
- links: string[];
1546
- isPrefix: boolean;
1547
- isSpam: boolean;
1548
- isFromMe: boolean;
1549
- isTagMe: boolean;
1550
- isStory: boolean;
1551
- isViewOnce: boolean;
1552
- isEdited: boolean;
1553
- isDeleted: boolean;
1554
- isPinned: boolean;
1555
- isUnPinned: boolean;
1556
- isChannel: boolean;
1557
- isBroadcast: boolean;
1558
- isEphemeral: boolean;
1559
- isForwarded: boolean;
1560
- citation: Record<string, boolean> | null;
1561
- media: z.objectOutputType<{
1562
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
1563
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
1564
- }, z.ZodTypeAny, "passthrough"> | null;
1565
- replied: {
1566
- channelId: string;
1567
- uniqueId: string;
1568
- message: (...args: unknown[]) => Record<string, any>;
1569
- senderId: string;
1570
- roomId: string;
1571
- isGroup: boolean;
1572
- text: string | null;
1573
- chatId: string;
1574
- receiverId: string;
1575
- receiverName: string;
1576
- roomName: string;
1577
- senderName: string;
1578
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
1579
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
1580
- timestamp: number;
1581
- mentions: string[];
1582
- links: string[];
1583
- isPrefix: boolean;
1584
- isSpam: boolean;
1585
- isFromMe: boolean;
1586
- isTagMe: boolean;
1587
- isStory: boolean;
1588
- isViewOnce: boolean;
1589
- isEdited: boolean;
1590
- isDeleted: boolean;
1591
- isPinned: boolean;
1592
- isUnPinned: boolean;
1593
- isChannel: boolean;
1594
- isBroadcast: boolean;
1595
- isEphemeral: boolean;
1596
- isForwarded: boolean;
1597
- citation: Record<string, boolean> | null;
1598
- media: z.objectOutputType<{
1599
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
1600
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
1601
- }, z.ZodTypeAny, "passthrough"> | null;
1602
- } | null;
1603
- } | null>;
1604
- location(loc: z.infer<typeof LocationWorkerBaseType>, options: z.infer<typeof LocationWorkerOptionsType>): Promise<{
1605
- channelId: string;
1606
- uniqueId: string;
1607
- message: (...args: unknown[]) => Record<string, any>;
1608
- senderId: string;
1609
- roomId: string;
1610
- isGroup: boolean;
1611
- text: string | null;
1612
- chatId: string;
1613
- receiverId: string;
1614
- receiverName: string;
1615
- roomName: string;
1616
- senderName: string;
1617
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
1618
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
1619
- timestamp: number;
1620
- mentions: string[];
1621
- links: string[];
1622
- isPrefix: boolean;
1623
- isSpam: boolean;
1624
- isFromMe: boolean;
1625
- isTagMe: boolean;
1626
- isStory: boolean;
1627
- isViewOnce: boolean;
1628
- isEdited: boolean;
1629
- isDeleted: boolean;
1630
- isPinned: boolean;
1631
- isUnPinned: boolean;
1632
- isChannel: boolean;
1633
- isBroadcast: boolean;
1634
- isEphemeral: boolean;
1635
- isForwarded: boolean;
1636
- citation: Record<string, boolean> | null;
1637
- media: z.objectOutputType<{
1638
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
1639
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
1640
- }, z.ZodTypeAny, "passthrough"> | null;
1641
- replied: {
1642
- channelId: string;
1643
- uniqueId: string;
1644
- message: (...args: unknown[]) => Record<string, any>;
1645
- senderId: string;
1646
- roomId: string;
1647
- isGroup: boolean;
1648
- text: string | null;
1649
- chatId: string;
1650
- receiverId: string;
1651
- receiverName: string;
1652
- roomName: string;
1653
- senderName: string;
1654
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
1655
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
1656
- timestamp: number;
1657
- mentions: string[];
1658
- links: string[];
1659
- isPrefix: boolean;
1660
- isSpam: boolean;
1661
- isFromMe: boolean;
1662
- isTagMe: boolean;
1663
- isStory: boolean;
1664
- isViewOnce: boolean;
1665
- isEdited: boolean;
1666
- isDeleted: boolean;
1667
- isPinned: boolean;
1668
- isUnPinned: boolean;
1669
- isChannel: boolean;
1670
- isBroadcast: boolean;
1671
- isEphemeral: boolean;
1672
- isForwarded: boolean;
1673
- citation: Record<string, boolean> | null;
1674
- media: z.objectOutputType<{
1675
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
1676
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
1677
- }, z.ZodTypeAny, "passthrough"> | null;
1678
- } | null;
1679
- } | null>;
1680
- contact(vcard: z.infer<typeof ContactWorkerBaseType>, options: z.infer<typeof ContactWorkerOptionsType>): Promise<{
1681
- channelId: string;
1682
- uniqueId: string;
1683
- message: (...args: unknown[]) => Record<string, any>;
1684
- senderId: string;
1685
- roomId: string;
1686
- isGroup: boolean;
1687
- text: string | null;
1688
- chatId: string;
1689
- receiverId: string;
1690
- receiverName: string;
1691
- roomName: string;
1692
- senderName: string;
1693
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
1694
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
1695
- timestamp: number;
1696
- mentions: string[];
1697
- links: string[];
1698
- isPrefix: boolean;
1699
- isSpam: boolean;
1700
- isFromMe: boolean;
1701
- isTagMe: boolean;
1702
- isStory: boolean;
1703
- isViewOnce: boolean;
1704
- isEdited: boolean;
1705
- isDeleted: boolean;
1706
- isPinned: boolean;
1707
- isUnPinned: boolean;
1708
- isChannel: boolean;
1709
- isBroadcast: boolean;
1710
- isEphemeral: boolean;
1711
- isForwarded: boolean;
1712
- citation: Record<string, boolean> | null;
1713
- media: z.objectOutputType<{
1714
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
1715
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
1716
- }, z.ZodTypeAny, "passthrough"> | null;
1717
- replied: {
1718
- channelId: string;
1719
- uniqueId: string;
1720
- message: (...args: unknown[]) => Record<string, any>;
1721
- senderId: string;
1722
- roomId: string;
1723
- isGroup: boolean;
1724
- text: string | null;
1725
- chatId: string;
1726
- receiverId: string;
1727
- receiverName: string;
1728
- roomName: string;
1729
- senderName: string;
1730
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
1731
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
1732
- timestamp: number;
1733
- mentions: string[];
1734
- links: string[];
1735
- isPrefix: boolean;
1736
- isSpam: boolean;
1737
- isFromMe: boolean;
1738
- isTagMe: boolean;
1739
- isStory: boolean;
1740
- isViewOnce: boolean;
1741
- isEdited: boolean;
1742
- isDeleted: boolean;
1743
- isPinned: boolean;
1744
- isUnPinned: boolean;
1745
- isChannel: boolean;
1746
- isBroadcast: boolean;
1747
- isEphemeral: boolean;
1748
- isForwarded: boolean;
1749
- citation: Record<string, boolean> | null;
1750
- media: z.objectOutputType<{
1751
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
1752
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
1753
- }, z.ZodTypeAny, "passthrough"> | null;
1754
- } | null;
1755
- } | null>;
1756
- reaction(emoticon: z.infer<typeof ReactionWorkerBaseType>, options: z.infer<typeof ReactionWorkerOptionsType>): Promise<{
1757
- channelId: string;
1758
- uniqueId: string;
1759
- message: (...args: unknown[]) => Record<string, any>;
1760
- senderId: string;
1761
- roomId: string;
1762
- isGroup: boolean;
1763
- text: string | null;
1764
- chatId: string;
1765
- receiverId: string;
1766
- receiverName: string;
1767
- roomName: string;
1768
- senderName: string;
1769
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
1770
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
1771
- timestamp: number;
1772
- mentions: string[];
1773
- links: string[];
1774
- isPrefix: boolean;
1775
- isSpam: boolean;
1776
- isFromMe: boolean;
1777
- isTagMe: boolean;
1778
- isStory: boolean;
1779
- isViewOnce: boolean;
1780
- isEdited: boolean;
1781
- isDeleted: boolean;
1782
- isPinned: boolean;
1783
- isUnPinned: boolean;
1784
- isChannel: boolean;
1785
- isBroadcast: boolean;
1786
- isEphemeral: boolean;
1787
- isForwarded: boolean;
1788
- citation: Record<string, boolean> | null;
1789
- media: z.objectOutputType<{
1790
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
1791
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
1792
- }, z.ZodTypeAny, "passthrough"> | null;
1793
- replied: {
1794
- channelId: string;
1795
- uniqueId: string;
1796
- message: (...args: unknown[]) => Record<string, any>;
1797
- senderId: string;
1798
- roomId: string;
1799
- isGroup: boolean;
1800
- text: string | null;
1801
- chatId: string;
1802
- receiverId: string;
1803
- receiverName: string;
1804
- roomName: string;
1805
- senderName: string;
1806
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
1807
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
1808
- timestamp: number;
1809
- mentions: string[];
1810
- links: string[];
1811
- isPrefix: boolean;
1812
- isSpam: boolean;
1813
- isFromMe: boolean;
1814
- isTagMe: boolean;
1815
- isStory: boolean;
1816
- isViewOnce: boolean;
1817
- isEdited: boolean;
1818
- isDeleted: boolean;
1819
- isPinned: boolean;
1820
- isUnPinned: boolean;
1821
- isChannel: boolean;
1822
- isBroadcast: boolean;
1823
- isEphemeral: boolean;
1824
- isForwarded: boolean;
1825
- citation: Record<string, boolean> | null;
1826
- media: z.objectOutputType<{
1827
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
1828
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
1829
- }, z.ZodTypeAny, "passthrough"> | null;
1830
- } | null;
1831
- } | null>;
1832
- pin(pin: z.infer<typeof PinWorkerBaseType>, options: z.infer<typeof PinWorkerOptionsType>): Promise<{
1833
- channelId: string;
1834
- uniqueId: string;
1835
- message: (...args: unknown[]) => Record<string, any>;
1836
- senderId: string;
1837
- roomId: string;
1838
- isGroup: boolean;
1839
- text: string | null;
1840
- chatId: string;
1841
- receiverId: string;
1842
- receiverName: string;
1843
- roomName: string;
1844
- senderName: string;
1845
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
1846
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
1847
- timestamp: number;
1848
- mentions: string[];
1849
- links: string[];
1850
- isPrefix: boolean;
1851
- isSpam: boolean;
1852
- isFromMe: boolean;
1853
- isTagMe: boolean;
1854
- isStory: boolean;
1855
- isViewOnce: boolean;
1856
- isEdited: boolean;
1857
- isDeleted: boolean;
1858
- isPinned: boolean;
1859
- isUnPinned: boolean;
1860
- isChannel: boolean;
1861
- isBroadcast: boolean;
1862
- isEphemeral: boolean;
1863
- isForwarded: boolean;
1864
- citation: Record<string, boolean> | null;
1865
- media: z.objectOutputType<{
1866
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
1867
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
1868
- }, z.ZodTypeAny, "passthrough"> | null;
1869
- replied: {
1870
- channelId: string;
1871
- uniqueId: string;
1872
- message: (...args: unknown[]) => Record<string, any>;
1873
- senderId: string;
1874
- roomId: string;
1875
- isGroup: boolean;
1876
- text: string | null;
1877
- chatId: string;
1878
- receiverId: string;
1879
- receiverName: string;
1880
- roomName: string;
1881
- senderName: string;
1882
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
1883
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
1884
- timestamp: number;
1885
- mentions: string[];
1886
- links: string[];
1887
- isPrefix: boolean;
1888
- isSpam: boolean;
1889
- isFromMe: boolean;
1890
- isTagMe: boolean;
1891
- isStory: boolean;
1892
- isViewOnce: boolean;
1893
- isEdited: boolean;
1894
- isDeleted: boolean;
1895
- isPinned: boolean;
1896
- isUnPinned: boolean;
1897
- isChannel: boolean;
1898
- isBroadcast: boolean;
1899
- isEphemeral: boolean;
1900
- isForwarded: boolean;
1901
- citation: Record<string, boolean> | null;
1902
- media: z.objectOutputType<{
1903
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
1904
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
1905
- }, z.ZodTypeAny, "passthrough"> | null;
1906
- } | null;
1907
- } | null>;
1908
- poll(poll: z.infer<typeof PollWorkerBaseType>, options: z.infer<typeof PollWorkerOptionsType>): Promise<{
1909
- channelId: string;
1910
- uniqueId: string;
1911
- message: (...args: unknown[]) => Record<string, any>;
1912
- senderId: string;
1913
- roomId: string;
1914
- isGroup: boolean;
1915
- text: string | null;
1916
- chatId: string;
1917
- receiverId: string;
1918
- receiverName: string;
1919
- roomName: string;
1920
- senderName: string;
1921
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
1922
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
1923
- timestamp: number;
1924
- mentions: string[];
1925
- links: string[];
1926
- isPrefix: boolean;
1927
- isSpam: boolean;
1928
- isFromMe: boolean;
1929
- isTagMe: boolean;
1930
- isStory: boolean;
1931
- isViewOnce: boolean;
1932
- isEdited: boolean;
1933
- isDeleted: boolean;
1934
- isPinned: boolean;
1935
- isUnPinned: boolean;
1936
- isChannel: boolean;
1937
- isBroadcast: boolean;
1938
- isEphemeral: boolean;
1939
- isForwarded: boolean;
1940
- citation: Record<string, boolean> | null;
1941
- media: z.objectOutputType<{
1942
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
1943
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
1944
- }, z.ZodTypeAny, "passthrough"> | null;
1945
- replied: {
1946
- channelId: string;
1947
- uniqueId: string;
1948
- message: (...args: unknown[]) => Record<string, any>;
1949
- senderId: string;
1950
- roomId: string;
1951
- isGroup: boolean;
1952
- text: string | null;
1953
- chatId: string;
1954
- receiverId: string;
1955
- receiverName: string;
1956
- roomName: string;
1957
- senderName: string;
1958
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
1959
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
1960
- timestamp: number;
1961
- mentions: string[];
1962
- links: string[];
1963
- isPrefix: boolean;
1964
- isSpam: boolean;
1965
- isFromMe: boolean;
1966
- isTagMe: boolean;
1967
- isStory: boolean;
1968
- isViewOnce: boolean;
1969
- isEdited: boolean;
1970
- isDeleted: boolean;
1971
- isPinned: boolean;
1972
- isUnPinned: boolean;
1973
- isChannel: boolean;
1974
- isBroadcast: boolean;
1975
- isEphemeral: boolean;
1976
- isForwarded: boolean;
1977
- citation: Record<string, boolean> | null;
1978
- media: z.objectOutputType<{
1979
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
1980
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
1981
- }, z.ZodTypeAny, "passthrough"> | null;
1982
- } | null;
1983
- } | null>;
1984
- edit(text: z.infer<typeof EditWorkerBaseType>, options: z.infer<typeof EditWorkerOptionsType>): Promise<{
1985
- channelId: string;
1986
- uniqueId: string;
1987
- message: (...args: unknown[]) => Record<string, any>;
1988
- senderId: string;
1989
- roomId: string;
1990
- isGroup: boolean;
1991
- text: string | null;
1992
- chatId: string;
1993
- receiverId: string;
1994
- receiverName: string;
1995
- roomName: string;
1996
- senderName: string;
1997
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
1998
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
1999
- timestamp: number;
2000
- mentions: string[];
2001
- links: string[];
2002
- isPrefix: boolean;
2003
- isSpam: boolean;
2004
- isFromMe: boolean;
2005
- isTagMe: boolean;
2006
- isStory: boolean;
2007
- isViewOnce: boolean;
2008
- isEdited: boolean;
2009
- isDeleted: boolean;
2010
- isPinned: boolean;
2011
- isUnPinned: boolean;
2012
- isChannel: boolean;
2013
- isBroadcast: boolean;
2014
- isEphemeral: boolean;
2015
- isForwarded: boolean;
2016
- citation: Record<string, boolean> | null;
2017
- media: z.objectOutputType<{
2018
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
2019
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
2020
- }, z.ZodTypeAny, "passthrough"> | null;
2021
- replied: {
2022
- channelId: string;
2023
- uniqueId: string;
2024
- message: (...args: unknown[]) => Record<string, any>;
2025
- senderId: string;
2026
- roomId: string;
2027
- isGroup: boolean;
2028
- text: string | null;
2029
- chatId: string;
2030
- receiverId: string;
2031
- receiverName: string;
2032
- roomName: string;
2033
- senderName: string;
2034
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
2035
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
2036
- timestamp: number;
2037
- mentions: string[];
2038
- links: string[];
2039
- isPrefix: boolean;
2040
- isSpam: boolean;
2041
- isFromMe: boolean;
2042
- isTagMe: boolean;
2043
- isStory: boolean;
2044
- isViewOnce: boolean;
2045
- isEdited: boolean;
2046
- isDeleted: boolean;
2047
- isPinned: boolean;
2048
- isUnPinned: boolean;
2049
- isChannel: boolean;
2050
- isBroadcast: boolean;
2051
- isEphemeral: boolean;
2052
- isForwarded: boolean;
2053
- citation: Record<string, boolean> | null;
2054
- media: z.objectOutputType<{
2055
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
2056
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
2057
- }, z.ZodTypeAny, "passthrough"> | null;
2058
- } | null;
2059
- } | null>;
2060
- delete(del: z.infer<typeof DeleteWorkerBaseType>): Promise<{
2061
- channelId: string;
2062
- uniqueId: string;
2063
- message: (...args: unknown[]) => Record<string, any>;
2064
- senderId: string;
2065
- roomId: string;
2066
- isGroup: boolean;
2067
- text: string | null;
2068
- chatId: string;
2069
- receiverId: string;
2070
- receiverName: string;
2071
- roomName: string;
2072
- senderName: string;
2073
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
2074
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
2075
- timestamp: number;
2076
- mentions: string[];
2077
- links: string[];
2078
- isPrefix: boolean;
2079
- isSpam: boolean;
2080
- isFromMe: boolean;
2081
- isTagMe: boolean;
2082
- isStory: boolean;
2083
- isViewOnce: boolean;
2084
- isEdited: boolean;
2085
- isDeleted: boolean;
2086
- isPinned: boolean;
2087
- isUnPinned: boolean;
2088
- isChannel: boolean;
2089
- isBroadcast: boolean;
2090
- isEphemeral: boolean;
2091
- isForwarded: boolean;
2092
- citation: Record<string, boolean> | null;
2093
- media: z.objectOutputType<{
2094
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
2095
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
2096
- }, z.ZodTypeAny, "passthrough"> | null;
2097
- replied: {
2098
- channelId: string;
2099
- uniqueId: string;
2100
- message: (...args: unknown[]) => Record<string, any>;
2101
- senderId: string;
2102
- roomId: string;
2103
- isGroup: boolean;
2104
- text: string | null;
2105
- chatId: string;
2106
- receiverId: string;
2107
- receiverName: string;
2108
- roomName: string;
2109
- senderName: string;
2110
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
2111
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
2112
- timestamp: number;
2113
- mentions: string[];
2114
- links: string[];
2115
- isPrefix: boolean;
2116
- isSpam: boolean;
2117
- isFromMe: boolean;
2118
- isTagMe: boolean;
2119
- isStory: boolean;
2120
- isViewOnce: boolean;
2121
- isEdited: boolean;
2122
- isDeleted: boolean;
2123
- isPinned: boolean;
2124
- isUnPinned: boolean;
2125
- isChannel: boolean;
2126
- isBroadcast: boolean;
2127
- isEphemeral: boolean;
2128
- isForwarded: boolean;
2129
- citation: Record<string, boolean> | null;
2130
- media: z.objectOutputType<{
2131
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
2132
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
2133
- }, z.ZodTypeAny, "passthrough"> | null;
2134
- } | null;
2135
- } | null>;
2136
- rejectCall(call: z.infer<typeof RejectCallWorkerBaseType>): Promise<void | undefined>;
2137
- mute(mute: z.infer<typeof MuteWorkerBaseType>, options: z.infer<typeof MuteWorkerOptionsType>): Promise<void | undefined>;
2138
- profile(roomId: z.infer<typeof ProfileWorkerBaseType>): Promise<z.infer<typeof ProfileWorkerBaseOutputType> | null>;
2139
- presence(action: z.infer<typeof PresenceWorkerBaseType>, options: z.infer<typeof PresenceWorkerOptionsType>): Promise<void | undefined>;
2140
- private addCompletion;
2141
- private deleteCompletion;
2142
- private updateCompletion;
2143
- private clearCompletions;
2144
- private getCompletion;
2145
- private getCompletions;
2146
- private addPersonalization;
2147
- private deletePersonalization;
2148
- private clearPersonalization;
2149
- private getPersonalization;
2150
- private addRAG;
2151
- private deleteRAG;
2152
- private updateRAG;
2153
- private clearRAGs;
2154
- private getRAG;
2155
- private getRAGs;
2156
- private getMessage;
2157
- llms: llmsAdapter;
2158
- chats: chatsAdapter;
2159
- }
2160
-
2161
- declare class Client {
2162
- private props;
2163
- options: z.infer<typeof ClientClassesType>;
2164
- cache: NodeCache;
2165
- private chatId;
2166
- private logger;
2167
- private db;
2168
- private socket;
2169
- private events;
2170
- private spinners;
2171
- private worker;
2172
- constructor(props: z.input<typeof ClientClassesType>);
2173
- initialize(): Promise<void>;
2174
- startSpinner(key: string, message: string): Ora;
2175
- stopSpinner(key: string, succeed: boolean, message?: string): void;
2176
- failSpinner(key: string, message?: string): void;
2177
- on<T extends EventEnumType>(event: T, handler: EventCallbackType[T]): void;
2178
- emit<T extends EventEnumType>(event: T, ...args: Parameters<EventCallbackType[T]>): void;
2179
- }
2180
- interface Client extends Worker {
2181
- }
2182
-
2183
- declare const CallsParserBaseType: z.ZodObject<{
2184
- callId: z.ZodString;
2185
- roomId: z.ZodString;
2186
- callerId: z.ZodString;
2187
- date: z.ZodDate;
2188
- offline: z.ZodBoolean;
2189
- status: z.ZodEnum<["accept", "offer", "reject", "ringing", "terminate", "timeout"]>;
2190
- isVideo: z.ZodBoolean;
2191
- isGroup: z.ZodBoolean;
2192
- }, "strip", z.ZodTypeAny, {
2193
- status: "accept" | "offer" | "reject" | "ringing" | "terminate" | "timeout";
2194
- callId: string;
2195
- roomId: string;
2196
- callerId: string;
2197
- date: Date;
2198
- offline: boolean;
2199
- isVideo: boolean;
2200
- isGroup: boolean;
2201
- }, {
2202
- status: "accept" | "offer" | "reject" | "ringing" | "terminate" | "timeout";
2203
- callId: string;
2204
- roomId: string;
2205
- callerId: string;
2206
- date: Date;
2207
- offline: boolean;
2208
- isVideo: boolean;
2209
- isGroup: boolean;
2210
- }>;
2211
-
2212
- declare const MessagesMediaType: {
2213
- readonly text: "text";
2214
- readonly conversation: "text";
2215
- readonly imageMessage: "image";
2216
- readonly contactMessage: "contact";
2217
- readonly locationMessage: "location";
2218
- readonly documentMessage: "document";
2219
- readonly audioMessage: "audio";
2220
- readonly videoMessage: "video";
2221
- readonly protocolMessage: "protocol";
2222
- readonly contactsArrayMessage: "contactsArray";
2223
- readonly highlyStructuredMessage: "highlyStructured";
2224
- readonly sendPaymentMessage: "sendPayment";
2225
- readonly liveLocationMessage: "liveLocation";
2226
- readonly requestPaymentMessage: "requestPayment";
2227
- readonly declinePaymentRequestMessage: "declinePaymentRequest";
2228
- readonly cancelPaymentRequestMessage: "cancelPaymentRequest";
2229
- readonly templateMessage: "template";
2230
- readonly stickerMessage: "sticker";
2231
- readonly groupInviteMessage: "groupInvite";
2232
- readonly templateButtonReplyMessage: "templateButtonReply";
2233
- readonly productMessage: "product";
2234
- readonly deviceSentMessage: "deviceSent";
2235
- readonly listMessage: "list";
2236
- readonly viewOnceMessage: "viewOnce";
2237
- readonly orderMessage: "order";
2238
- readonly listResponseMessage: "listResponse";
2239
- readonly ephemeralMessage: "ephemeral";
2240
- readonly invoiceMessage: "invoice";
2241
- readonly buttonsMessage: "buttons";
2242
- readonly buttonsResponseMessage: "buttonsResponse";
2243
- readonly paymentInviteMessage: "paymentInvite";
2244
- readonly interactiveMessage: "interactive";
2245
- readonly reactionMessage: "reaction";
2246
- readonly stickerSyncRmrMessage: "sticker";
2247
- readonly interactiveResponseMessage: "interactiveResponse";
2248
- readonly pollCreationMessage: "pollCreation";
2249
- readonly pollUpdateMessage: "pollUpdate";
2250
- readonly keepInChatMessage: "keepInChat";
2251
- readonly documentWithCaptionMessage: "document";
2252
- readonly requestPhoneNumberMessage: "requestPhoneNumber";
2253
- readonly viewOnceMessageV2: "viewOnce";
2254
- readonly encReactionMessage: "reaction";
2255
- readonly editedMessage: "text";
2256
- readonly viewOnceMessageV2Extension: "viewOnce";
2257
- readonly pollCreationMessageV2: "pollCreation";
2258
- readonly scheduledCallCreationMessage: "scheduledCallCreation";
2259
- readonly groupMentionedMessage: "groupMentioned";
2260
- readonly pinInChatMessage: "pinInChat";
2261
- readonly pollCreationMessageV3: "pollCreation";
2262
- readonly scheduledCallEditMessage: "scheduledCallEdit";
2263
- readonly ptvMessage: "ptv";
2264
- readonly botInvokeMessage: "botInvoke";
2265
- readonly callLogMesssage: "callLog";
2266
- readonly encCommentMessage: "encComment";
2267
- readonly bcallMessage: "bcall";
2268
- readonly lottieStickerMessage: "lottieSticker";
2269
- readonly eventMessage: "event";
2270
- readonly commentMessage: "comment";
2271
- readonly newsletterAdminInviteMessage: "text";
2272
- readonly extendedTextMessageWithParentKey: "text";
2273
- readonly extendedTextMessage: "text";
2274
- readonly placeholderMessage: "placeholder";
2275
- readonly encEventUpdateMessage: "encEventUpdate";
2276
- };
2277
- declare const MessagesVerifiedPlatformType: {
2278
- readonly whatsapp: "0@s.whatsapp.net";
2279
- readonly meta: "13135550002@s.whatsapp.net";
2280
- readonly chatgpt: "18002428478@s.whatsapp.net";
2281
- readonly copilot: "18772241042@s.whatsapp.net";
2282
- readonly instagram: "447723442971@s.whatsapp.net";
2283
- readonly tiktok: "6285574670498@s.whatsapp.net";
2284
- };
2285
- declare const MessagesEnumType: z.ZodEnum<["text", "text", "image", "contact", "location", "document", "audio", "video", "protocol", "contactsArray", "highlyStructured", "sendPayment", "liveLocation", "requestPayment", "declinePaymentRequest", "cancelPaymentRequest", "template", "sticker", "groupInvite", "templateButtonReply", "product", "deviceSent", "list", "viewOnce", "order", "listResponse", "ephemeral", "invoice", "buttons", "buttonsResponse", "paymentInvite", "interactive", "reaction", "sticker", "interactiveResponse", "pollCreation", "pollUpdate", "keepInChat", "document", "requestPhoneNumber", "viewOnce", "reaction", "text", "viewOnce", "pollCreation", "scheduledCallCreation", "groupMentioned", "pinInChat", "pollCreation", "scheduledCallEdit", "ptv", "botInvoke", "callLog", "encComment", "bcall", "lottieSticker", "event", "comment", "text", "text", "placeholder", "encEventUpdate"]>;
2286
- declare const MessagesDeviceEnumType: z.ZodEnum<["unknown", "android", "ios", "desktop", "web"]>;
2287
- declare const MessagesParserBaseType: z.ZodObject<{
2288
- chatId: z.ZodString;
2289
- channelId: z.ZodString;
2290
- uniqueId: z.ZodString;
2291
- receiverId: z.ZodString;
2292
- receiverName: z.ZodString;
2293
- roomId: z.ZodString;
2294
- roomName: z.ZodString;
2295
- senderId: z.ZodString;
2296
- senderName: z.ZodString;
2297
- senderDevice: z.ZodEnum<["unknown", "android", "ios", "desktop", "web"]>;
2298
- chatType: z.ZodEnum<["text", "text", "image", "contact", "location", "document", "audio", "video", "protocol", "contactsArray", "highlyStructured", "sendPayment", "liveLocation", "requestPayment", "declinePaymentRequest", "cancelPaymentRequest", "template", "sticker", "groupInvite", "templateButtonReply", "product", "deviceSent", "list", "viewOnce", "order", "listResponse", "ephemeral", "invoice", "buttons", "buttonsResponse", "paymentInvite", "interactive", "reaction", "sticker", "interactiveResponse", "pollCreation", "pollUpdate", "keepInChat", "document", "requestPhoneNumber", "viewOnce", "reaction", "text", "viewOnce", "pollCreation", "scheduledCallCreation", "groupMentioned", "pinInChat", "pollCreation", "scheduledCallEdit", "ptv", "botInvoke", "callLog", "encComment", "bcall", "lottieSticker", "event", "comment", "text", "text", "placeholder", "encEventUpdate"]>;
2299
- timestamp: z.ZodNumber;
2300
- mentions: z.ZodArray<z.ZodString, "many">;
2301
- text: z.ZodNullable<z.ZodString>;
2302
- links: z.ZodArray<z.ZodString, "many">;
2303
- isPrefix: z.ZodBoolean;
2304
- isSpam: z.ZodBoolean;
2305
- isFromMe: z.ZodBoolean;
2306
- isTagMe: z.ZodBoolean;
2307
- isGroup: z.ZodBoolean;
2308
- isStory: z.ZodBoolean;
2309
- isViewOnce: z.ZodBoolean;
2310
- isEdited: z.ZodBoolean;
2311
- isDeleted: z.ZodBoolean;
2312
- isPinned: z.ZodBoolean;
2313
- isUnPinned: z.ZodBoolean;
2314
- isChannel: z.ZodBoolean;
2315
- isBroadcast: z.ZodBoolean;
2316
- isEphemeral: z.ZodBoolean;
2317
- isForwarded: z.ZodBoolean;
2318
- citation: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
2319
- media: z.ZodNullable<z.ZodObject<{
2320
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
2321
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Readable, z.ZodTypeDef, Readable>>;
2322
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2323
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
2324
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Readable, z.ZodTypeDef, Readable>>;
2325
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2326
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
2327
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Readable, z.ZodTypeDef, Readable>>;
2328
- }, z.ZodTypeAny, "passthrough">>>;
2329
- message: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>;
2330
- }, "strip", z.ZodTypeAny, {
2331
- channelId: string;
2332
- uniqueId: string;
2333
- message: (...args: unknown[]) => Record<string, any>;
2334
- senderId: string;
2335
- roomId: string;
2336
- isGroup: boolean;
2337
- text: string | null;
2338
- chatId: string;
2339
- receiverId: string;
2340
- receiverName: string;
2341
- roomName: string;
2342
- senderName: string;
2343
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
2344
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
2345
- timestamp: number;
2346
- mentions: string[];
2347
- links: string[];
2348
- isPrefix: boolean;
2349
- isSpam: boolean;
2350
- isFromMe: boolean;
2351
- isTagMe: boolean;
2352
- isStory: boolean;
2353
- isViewOnce: boolean;
2354
- isEdited: boolean;
2355
- isDeleted: boolean;
2356
- isPinned: boolean;
2357
- isUnPinned: boolean;
2358
- isChannel: boolean;
2359
- isBroadcast: boolean;
2360
- isEphemeral: boolean;
2361
- isForwarded: boolean;
2362
- citation: Record<string, boolean> | null;
2363
- media: z.objectOutputType<{
2364
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
2365
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Readable, z.ZodTypeDef, Readable>>;
2366
- }, z.ZodTypeAny, "passthrough"> | null;
2367
- }, {
2368
- channelId: string;
2369
- uniqueId: string;
2370
- message: (...args: unknown[]) => Record<string, any>;
2371
- senderId: string;
2372
- roomId: string;
2373
- isGroup: boolean;
2374
- text: string | null;
2375
- chatId: string;
2376
- receiverId: string;
2377
- receiverName: string;
2378
- roomName: string;
2379
- senderName: string;
2380
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
2381
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
2382
- timestamp: number;
2383
- mentions: string[];
2384
- links: string[];
2385
- isPrefix: boolean;
2386
- isSpam: boolean;
2387
- isFromMe: boolean;
2388
- isTagMe: boolean;
2389
- isStory: boolean;
2390
- isViewOnce: boolean;
2391
- isEdited: boolean;
2392
- isDeleted: boolean;
2393
- isPinned: boolean;
2394
- isUnPinned: boolean;
2395
- isChannel: boolean;
2396
- isBroadcast: boolean;
2397
- isEphemeral: boolean;
2398
- isForwarded: boolean;
2399
- citation: Record<string, boolean> | null;
2400
- media: z.objectInputType<{
2401
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
2402
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Readable, z.ZodTypeDef, Readable>>;
2403
- }, z.ZodTypeAny, "passthrough"> | null;
2404
- }>;
2405
- declare const MessagesParserType: z.ZodObject<{
2406
- chatId: z.ZodString;
2407
- channelId: z.ZodString;
2408
- uniqueId: z.ZodString;
2409
- receiverId: z.ZodString;
2410
- receiverName: z.ZodString;
2411
- roomId: z.ZodString;
2412
- roomName: z.ZodString;
2413
- senderId: z.ZodString;
2414
- senderName: z.ZodString;
2415
- senderDevice: z.ZodEnum<["unknown", "android", "ios", "desktop", "web"]>;
2416
- chatType: z.ZodEnum<["text", "text", "image", "contact", "location", "document", "audio", "video", "protocol", "contactsArray", "highlyStructured", "sendPayment", "liveLocation", "requestPayment", "declinePaymentRequest", "cancelPaymentRequest", "template", "sticker", "groupInvite", "templateButtonReply", "product", "deviceSent", "list", "viewOnce", "order", "listResponse", "ephemeral", "invoice", "buttons", "buttonsResponse", "paymentInvite", "interactive", "reaction", "sticker", "interactiveResponse", "pollCreation", "pollUpdate", "keepInChat", "document", "requestPhoneNumber", "viewOnce", "reaction", "text", "viewOnce", "pollCreation", "scheduledCallCreation", "groupMentioned", "pinInChat", "pollCreation", "scheduledCallEdit", "ptv", "botInvoke", "callLog", "encComment", "bcall", "lottieSticker", "event", "comment", "text", "text", "placeholder", "encEventUpdate"]>;
2417
- timestamp: z.ZodNumber;
2418
- mentions: z.ZodArray<z.ZodString, "many">;
2419
- text: z.ZodNullable<z.ZodString>;
2420
- links: z.ZodArray<z.ZodString, "many">;
2421
- isPrefix: z.ZodBoolean;
2422
- isSpam: z.ZodBoolean;
2423
- isFromMe: z.ZodBoolean;
2424
- isTagMe: z.ZodBoolean;
2425
- isGroup: z.ZodBoolean;
2426
- isStory: z.ZodBoolean;
2427
- isViewOnce: z.ZodBoolean;
2428
- isEdited: z.ZodBoolean;
2429
- isDeleted: z.ZodBoolean;
2430
- isPinned: z.ZodBoolean;
2431
- isUnPinned: z.ZodBoolean;
2432
- isChannel: z.ZodBoolean;
2433
- isBroadcast: z.ZodBoolean;
2434
- isEphemeral: z.ZodBoolean;
2435
- isForwarded: z.ZodBoolean;
2436
- citation: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
2437
- media: z.ZodNullable<z.ZodObject<{
2438
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
2439
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Readable, z.ZodTypeDef, Readable>>;
2440
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2441
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
2442
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Readable, z.ZodTypeDef, Readable>>;
2443
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2444
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
2445
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Readable, z.ZodTypeDef, Readable>>;
2446
- }, z.ZodTypeAny, "passthrough">>>;
2447
- message: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>;
2448
- } & {
2449
- replied: z.ZodNullable<z.ZodObject<{
2450
- chatId: z.ZodString;
2451
- channelId: z.ZodString;
2452
- uniqueId: z.ZodString;
2453
- receiverId: z.ZodString;
2454
- receiverName: z.ZodString;
2455
- roomId: z.ZodString;
2456
- roomName: z.ZodString;
2457
- senderId: z.ZodString;
2458
- senderName: z.ZodString;
2459
- senderDevice: z.ZodEnum<["unknown", "android", "ios", "desktop", "web"]>;
2460
- chatType: z.ZodEnum<["text", "text", "image", "contact", "location", "document", "audio", "video", "protocol", "contactsArray", "highlyStructured", "sendPayment", "liveLocation", "requestPayment", "declinePaymentRequest", "cancelPaymentRequest", "template", "sticker", "groupInvite", "templateButtonReply", "product", "deviceSent", "list", "viewOnce", "order", "listResponse", "ephemeral", "invoice", "buttons", "buttonsResponse", "paymentInvite", "interactive", "reaction", "sticker", "interactiveResponse", "pollCreation", "pollUpdate", "keepInChat", "document", "requestPhoneNumber", "viewOnce", "reaction", "text", "viewOnce", "pollCreation", "scheduledCallCreation", "groupMentioned", "pinInChat", "pollCreation", "scheduledCallEdit", "ptv", "botInvoke", "callLog", "encComment", "bcall", "lottieSticker", "event", "comment", "text", "text", "placeholder", "encEventUpdate"]>;
2461
- timestamp: z.ZodNumber;
2462
- mentions: z.ZodArray<z.ZodString, "many">;
2463
- text: z.ZodNullable<z.ZodString>;
2464
- links: z.ZodArray<z.ZodString, "many">;
2465
- isPrefix: z.ZodBoolean;
2466
- isSpam: z.ZodBoolean;
2467
- isFromMe: z.ZodBoolean;
2468
- isTagMe: z.ZodBoolean;
2469
- isGroup: z.ZodBoolean;
2470
- isStory: z.ZodBoolean;
2471
- isViewOnce: z.ZodBoolean;
2472
- isEdited: z.ZodBoolean;
2473
- isDeleted: z.ZodBoolean;
2474
- isPinned: z.ZodBoolean;
2475
- isUnPinned: z.ZodBoolean;
2476
- isChannel: z.ZodBoolean;
2477
- isBroadcast: z.ZodBoolean;
2478
- isEphemeral: z.ZodBoolean;
2479
- isForwarded: z.ZodBoolean;
2480
- citation: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
2481
- media: z.ZodNullable<z.ZodObject<{
2482
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
2483
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Readable, z.ZodTypeDef, Readable>>;
2484
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2485
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
2486
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Readable, z.ZodTypeDef, Readable>>;
2487
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2488
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
2489
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Readable, z.ZodTypeDef, Readable>>;
2490
- }, z.ZodTypeAny, "passthrough">>>;
2491
- message: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>;
2492
- }, "strip", z.ZodTypeAny, {
2493
- channelId: string;
2494
- uniqueId: string;
2495
- message: (...args: unknown[]) => Record<string, any>;
2496
- senderId: string;
2497
- roomId: string;
2498
- isGroup: boolean;
2499
- text: string | null;
2500
- chatId: string;
2501
- receiverId: string;
2502
- receiverName: string;
2503
- roomName: string;
2504
- senderName: string;
2505
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
2506
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
2507
- timestamp: number;
2508
- mentions: string[];
2509
- links: string[];
2510
- isPrefix: boolean;
2511
- isSpam: boolean;
2512
- isFromMe: boolean;
2513
- isTagMe: boolean;
2514
- isStory: boolean;
2515
- isViewOnce: boolean;
2516
- isEdited: boolean;
2517
- isDeleted: boolean;
2518
- isPinned: boolean;
2519
- isUnPinned: boolean;
2520
- isChannel: boolean;
2521
- isBroadcast: boolean;
2522
- isEphemeral: boolean;
2523
- isForwarded: boolean;
2524
- citation: Record<string, boolean> | null;
2525
- media: z.objectOutputType<{
2526
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
2527
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Readable, z.ZodTypeDef, Readable>>;
2528
- }, z.ZodTypeAny, "passthrough"> | null;
2529
- }, {
2530
- channelId: string;
2531
- uniqueId: string;
2532
- message: (...args: unknown[]) => Record<string, any>;
2533
- senderId: string;
2534
- roomId: string;
2535
- isGroup: boolean;
2536
- text: string | null;
2537
- chatId: string;
2538
- receiverId: string;
2539
- receiverName: string;
2540
- roomName: string;
2541
- senderName: string;
2542
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
2543
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
2544
- timestamp: number;
2545
- mentions: string[];
2546
- links: string[];
2547
- isPrefix: boolean;
2548
- isSpam: boolean;
2549
- isFromMe: boolean;
2550
- isTagMe: boolean;
2551
- isStory: boolean;
2552
- isViewOnce: boolean;
2553
- isEdited: boolean;
2554
- isDeleted: boolean;
2555
- isPinned: boolean;
2556
- isUnPinned: boolean;
2557
- isChannel: boolean;
2558
- isBroadcast: boolean;
2559
- isEphemeral: boolean;
2560
- isForwarded: boolean;
2561
- citation: Record<string, boolean> | null;
2562
- media: z.objectInputType<{
2563
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
2564
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Readable, z.ZodTypeDef, Readable>>;
2565
- }, z.ZodTypeAny, "passthrough"> | null;
2566
- }>>;
2567
- }, "strip", z.ZodTypeAny, {
2568
- channelId: string;
2569
- uniqueId: string;
2570
- message: (...args: unknown[]) => Record<string, any>;
2571
- senderId: string;
2572
- roomId: string;
2573
- isGroup: boolean;
2574
- text: string | null;
2575
- chatId: string;
2576
- receiverId: string;
2577
- receiverName: string;
2578
- roomName: string;
2579
- senderName: string;
2580
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
2581
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
2582
- timestamp: number;
2583
- mentions: string[];
2584
- links: string[];
2585
- isPrefix: boolean;
2586
- isSpam: boolean;
2587
- isFromMe: boolean;
2588
- isTagMe: boolean;
2589
- isStory: boolean;
2590
- isViewOnce: boolean;
2591
- isEdited: boolean;
2592
- isDeleted: boolean;
2593
- isPinned: boolean;
2594
- isUnPinned: boolean;
2595
- isChannel: boolean;
2596
- isBroadcast: boolean;
2597
- isEphemeral: boolean;
2598
- isForwarded: boolean;
2599
- citation: Record<string, boolean> | null;
2600
- media: z.objectOutputType<{
2601
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
2602
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Readable, z.ZodTypeDef, Readable>>;
2603
- }, z.ZodTypeAny, "passthrough"> | null;
2604
- replied: {
2605
- channelId: string;
2606
- uniqueId: string;
2607
- message: (...args: unknown[]) => Record<string, any>;
2608
- senderId: string;
2609
- roomId: string;
2610
- isGroup: boolean;
2611
- text: string | null;
2612
- chatId: string;
2613
- receiverId: string;
2614
- receiverName: string;
2615
- roomName: string;
2616
- senderName: string;
2617
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
2618
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
2619
- timestamp: number;
2620
- mentions: string[];
2621
- links: string[];
2622
- isPrefix: boolean;
2623
- isSpam: boolean;
2624
- isFromMe: boolean;
2625
- isTagMe: boolean;
2626
- isStory: boolean;
2627
- isViewOnce: boolean;
2628
- isEdited: boolean;
2629
- isDeleted: boolean;
2630
- isPinned: boolean;
2631
- isUnPinned: boolean;
2632
- isChannel: boolean;
2633
- isBroadcast: boolean;
2634
- isEphemeral: boolean;
2635
- isForwarded: boolean;
2636
- citation: Record<string, boolean> | null;
2637
- media: z.objectOutputType<{
2638
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
2639
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Readable, z.ZodTypeDef, Readable>>;
2640
- }, z.ZodTypeAny, "passthrough"> | null;
2641
- } | null;
2642
- }, {
2643
- channelId: string;
2644
- uniqueId: string;
2645
- message: (...args: unknown[]) => Record<string, any>;
2646
- senderId: string;
2647
- roomId: string;
2648
- isGroup: boolean;
2649
- text: string | null;
2650
- chatId: string;
2651
- receiverId: string;
2652
- receiverName: string;
2653
- roomName: string;
2654
- senderName: string;
2655
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
2656
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
2657
- timestamp: number;
2658
- mentions: string[];
2659
- links: string[];
2660
- isPrefix: boolean;
2661
- isSpam: boolean;
2662
- isFromMe: boolean;
2663
- isTagMe: boolean;
2664
- isStory: boolean;
2665
- isViewOnce: boolean;
2666
- isEdited: boolean;
2667
- isDeleted: boolean;
2668
- isPinned: boolean;
2669
- isUnPinned: boolean;
2670
- isChannel: boolean;
2671
- isBroadcast: boolean;
2672
- isEphemeral: boolean;
2673
- isForwarded: boolean;
2674
- citation: Record<string, boolean> | null;
2675
- media: z.objectInputType<{
2676
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
2677
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Readable, z.ZodTypeDef, Readable>>;
2678
- }, z.ZodTypeAny, "passthrough"> | null;
2679
- replied: {
2680
- channelId: string;
2681
- uniqueId: string;
2682
- message: (...args: unknown[]) => Record<string, any>;
2683
- senderId: string;
2684
- roomId: string;
2685
- isGroup: boolean;
2686
- text: string | null;
2687
- chatId: string;
2688
- receiverId: string;
2689
- receiverName: string;
2690
- roomName: string;
2691
- senderName: string;
2692
- senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
2693
- chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
2694
- timestamp: number;
2695
- mentions: string[];
2696
- links: string[];
2697
- isPrefix: boolean;
2698
- isSpam: boolean;
2699
- isFromMe: boolean;
2700
- isTagMe: boolean;
2701
- isStory: boolean;
2702
- isViewOnce: boolean;
2703
- isEdited: boolean;
2704
- isDeleted: boolean;
2705
- isPinned: boolean;
2706
- isUnPinned: boolean;
2707
- isChannel: boolean;
2708
- isBroadcast: boolean;
2709
- isEphemeral: boolean;
2710
- isForwarded: boolean;
2711
- citation: Record<string, boolean> | null;
2712
- media: z.objectInputType<{
2713
- buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
2714
- stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Readable, z.ZodTypeDef, Readable>>;
2715
- }, z.ZodTypeAny, "passthrough"> | null;
2716
- } | null;
2717
- }>;
2718
-
2719
- export { AdapterDatabaseType, CallsParserBaseType, CitationType, Client, ClientClassesBaseType, ClientClassesType, ContactWorkerBaseType, ContactWorkerOptionsType, DeleteWorkerBaseType, EditWorkerBaseType, EditWorkerOptionsType, type EventCallbackType, EventEnumType, LocationWorkerBaseType, LocationWorkerOptionsType, MediaInputWorkerType, MessagesDeviceEnumType, MessagesEnumType, MessagesMediaType, MessagesParserBaseType, MessagesParserType, MessagesVerifiedPlatformType, MuteWorkerBaseType, MuteWorkerOptionsType, PinWorkerBaseType, PinWorkerOptionsType, PollWorkerBaseType, PollWorkerOptionsType, PresenceWorkerBaseType, PresenceWorkerOptionsType, ProfileWorkerBaseOutputType, ProfileWorkerBaseType, ReactionWorkerBaseType, ReactionWorkerOptionsType, RejectCallWorkerBaseType, TextWorkerBaseType, TextWorkerOptionsType, addRAGType, llmMessagesTable, llmPersonalizationTable, llmRAGTable, type llmsAdapter };