@open-wa/schema 5.4.0 → 5.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/dist/calling-media--BLrFrPc.cjs +113 -0
  2. package/dist/calling-media--BLrFrPc.cjs.map +1 -0
  3. package/dist/calling-media-BNTYvogE.mjs +60 -0
  4. package/dist/calling-media-BNTYvogE.mjs.map +1 -0
  5. package/dist/calling-media-CeGgSzhw.d.cts +48 -0
  6. package/dist/calling-media-CeGgSzhw.d.cts.map +1 -0
  7. package/dist/calling-media-CeGgSzhw.d.mts +48 -0
  8. package/dist/calling-media-CeGgSzhw.d.mts.map +1 -0
  9. package/dist/calling-media.cjs +8 -0
  10. package/dist/calling-media.d.cts +2 -0
  11. package/dist/calling-media.d.mts +2 -0
  12. package/dist/calling-media.mjs +2 -0
  13. package/dist/generated/index.cjs +94 -3
  14. package/dist/generated/index.cjs.map +1 -1
  15. package/dist/generated/index.d.cts +2328 -133
  16. package/dist/generated/index.d.cts.map +1 -1
  17. package/dist/generated/index.d.mts +2328 -133
  18. package/dist/generated/index.d.mts.map +1 -1
  19. package/dist/generated/index.mjs +94 -3
  20. package/dist/generated/index.mjs.map +1 -1
  21. package/dist/{index-C9Ad0lEr.d.cts → index-BWvNXopK.d.cts} +2375 -41
  22. package/dist/index-BWvNXopK.d.cts.map +1 -0
  23. package/dist/{index-D0QN2PaW.d.mts → index-Co8HQxm8.d.mts} +2375 -41
  24. package/dist/index-Co8HQxm8.d.mts.map +1 -0
  25. package/dist/index.cjs +191 -20
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.cts +3 -2
  28. package/dist/index.d.mts +3 -2
  29. package/dist/index.mjs +105 -21
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/methods/index.cjs +34 -1
  32. package/dist/methods/index.d.cts +2 -2
  33. package/dist/methods/index.d.mts +2 -2
  34. package/dist/methods/index.mjs +2 -2
  35. package/dist/{methods-BhLsQNtL.mjs → methods-BH7nDC3z.mjs} +816 -51
  36. package/dist/methods-BH7nDC3z.mjs.map +1 -0
  37. package/dist/{methods-BGmdzjd3.cjs → methods-DpDzgsbe.cjs} +1284 -63
  38. package/dist/methods-DpDzgsbe.cjs.map +1 -0
  39. package/package.json +15 -4
  40. package/src/calling-media.ts +64 -0
  41. package/src/calling-wire.ts +17 -0
  42. package/src/calling.ts +61 -0
  43. package/src/common-types.ts +16 -0
  44. package/src/effect-projection.ts +67 -0
  45. package/src/events/calls.ts +12 -0
  46. package/src/events/groups.ts +30 -6
  47. package/src/events/index.ts +4 -0
  48. package/src/events/messaging.ts +7 -7
  49. package/src/events/polls.ts +11 -0
  50. package/src/events/registry.ts +2 -1
  51. package/src/events/whatsapp-events.ts +13 -0
  52. package/src/generated/AliasMap.ts +30 -1
  53. package/src/generated/BaseClient.ts +153 -8
  54. package/src/generated/BaseNamespacedClient.ts +36 -1
  55. package/src/generated/openapi.json +22999 -12765
  56. package/src/generated/types.ts +87 -0
  57. package/src/index.ts +10 -0
  58. package/src/license.ts +10 -0
  59. package/src/media-options.ts +46 -0
  60. package/src/methods/calls.ts +23 -0
  61. package/src/methods/contacts.ts +10 -1
  62. package/src/methods/groups.ts +9 -3
  63. package/src/methods/index.ts +2 -0
  64. package/src/methods/messaging.ts +159 -45
  65. package/src/methods/session.ts +10 -0
  66. package/src/methods/whatsapp-events.ts +35 -0
  67. package/src/polls.ts +37 -0
  68. package/src/session-refresh.ts +15 -0
  69. package/src/whatsapp-event-registry.ts +17 -0
  70. package/src/whatsapp-events.ts +91 -0
  71. package/dist/index-C9Ad0lEr.d.cts.map +0 -1
  72. package/dist/index-D0QN2PaW.d.mts.map +0 -1
  73. package/dist/methods-BGmdzjd3.cjs.map +0 -1
  74. package/dist/methods-BhLsQNtL.mjs.map +0 -1
@@ -1,7 +1,9 @@
1
+ import { n as AudioOutput, r as CallMediaOptions, t as AudioInput, u as VideoInput } from "./calling-media-CeGgSzhw.cjs";
1
2
  import { F as LicenseTier, p as OpenWAMethodSchema } from "./http-manifest-CqjUoaDB.cjs";
2
3
  import "./implementor-ACLHTHby.cjs";
3
4
  import { z } from "zod";
4
5
  import { CLOUD_PROVIDERS, CloudUploadOptions, CloudUploadOptionsSchema, Config, Config as ClientConfig, ConfigSchema, ConfigSchema as ClientConfigSchema, DIRECTORY_STRATEGY, DeepPartialConfig, DevTools, DevToolsSchema, LoggingTransport, LoggingTransportSchema, NotificationLanguage, OnError, PartialConfig, PartialConfigSchema, ProxyServerCredentials, ProxyServerCredentialsSchema, QRFormat, S3Sync, S3SyncSchema, SessionData, SessionDataSchema, StrictConfig, StrictConfigSchema, Viewport, ViewportSchema, getDefaultConfig, parseConfig, validateConfig } from "@open-wa/config";
6
+ import { Schema } from "effect";
5
7
  //#endregion
6
8
  //#region src/client-config.d.ts
7
9
  declare function migrateV4Config(oldConfig: Record<string, unknown>): Record<string, unknown>;
@@ -50,6 +52,9 @@ declare enum MessageTypes {
50
52
  VOICE = "ptt",
51
53
  IMAGE = "image",
52
54
  VIDEO = "video",
55
+ ALBUM = "album",
56
+ EVENT_CREATION = "event_creation",
57
+ EVENT_RESPONSE = "event_response",
53
58
  DOCUMENT = "document",
54
59
  STICKER = "sticker",
55
60
  LOCATION = "location",
@@ -70,6 +75,8 @@ declare enum MessageAck {
70
75
  ACK_PLAYED = 4
71
76
  }
72
77
  declare enum SimpleListener {
78
+ Event = "onEvent",
79
+ EventResponse = "onEventResponse",
73
80
  Message = "onMessage",
74
81
  AnyMessage = "onAnyMessage",
75
82
  MessageDeleted = "onMessageDeleted",
@@ -220,6 +227,88 @@ declare const MessageSchema: z.ZodObject<{
220
227
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
221
228
  mentionedJidList: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>;
222
229
  caption: z.ZodOptional<z.ZodString>;
230
+ event: z.ZodOptional<z.ZodType<{
231
+ readonly id: string;
232
+ readonly chatId: string;
233
+ readonly creatorId: string;
234
+ readonly name: string;
235
+ readonly startTime: number;
236
+ readonly endTime?: number | undefined;
237
+ readonly description?: string | undefined;
238
+ readonly location?: {
239
+ readonly name?: string | undefined;
240
+ readonly latitude?: number | undefined;
241
+ readonly longitude?: number | undefined;
242
+ } | undefined;
243
+ readonly joinLink?: string | undefined;
244
+ readonly isScheduledCall?: boolean | undefined;
245
+ readonly extraGuestsAllowed?: boolean | undefined;
246
+ readonly isCanceled: boolean;
247
+ readonly fromMe: boolean;
248
+ readonly timestamp: number;
249
+ }, {
250
+ readonly id: string;
251
+ readonly chatId: string;
252
+ readonly creatorId: string;
253
+ readonly name: string;
254
+ readonly startTime: number;
255
+ readonly endTime?: number | undefined;
256
+ readonly description?: string | undefined;
257
+ readonly location?: {
258
+ readonly name?: string | undefined;
259
+ readonly latitude?: number | undefined;
260
+ readonly longitude?: number | undefined;
261
+ } | undefined;
262
+ readonly joinLink?: string | undefined;
263
+ readonly isScheduledCall?: boolean | undefined;
264
+ readonly extraGuestsAllowed?: boolean | undefined;
265
+ readonly isCanceled: boolean;
266
+ readonly fromMe: boolean;
267
+ readonly timestamp: number;
268
+ }, z.core.$ZodTypeInternals<{
269
+ readonly id: string;
270
+ readonly chatId: string;
271
+ readonly creatorId: string;
272
+ readonly name: string;
273
+ readonly startTime: number;
274
+ readonly endTime?: number | undefined;
275
+ readonly description?: string | undefined;
276
+ readonly location?: {
277
+ readonly name?: string | undefined;
278
+ readonly latitude?: number | undefined;
279
+ readonly longitude?: number | undefined;
280
+ } | undefined;
281
+ readonly joinLink?: string | undefined;
282
+ readonly isScheduledCall?: boolean | undefined;
283
+ readonly extraGuestsAllowed?: boolean | undefined;
284
+ readonly isCanceled: boolean;
285
+ readonly fromMe: boolean;
286
+ readonly timestamp: number;
287
+ }, {
288
+ readonly id: string;
289
+ readonly chatId: string;
290
+ readonly creatorId: string;
291
+ readonly name: string;
292
+ readonly startTime: number;
293
+ readonly endTime?: number | undefined;
294
+ readonly description?: string | undefined;
295
+ readonly location?: {
296
+ readonly name?: string | undefined;
297
+ readonly latitude?: number | undefined;
298
+ readonly longitude?: number | undefined;
299
+ } | undefined;
300
+ readonly joinLink?: string | undefined;
301
+ readonly isScheduledCall?: boolean | undefined;
302
+ readonly extraGuestsAllowed?: boolean | undefined;
303
+ readonly isCanceled: boolean;
304
+ readonly fromMe: boolean;
305
+ readonly timestamp: number;
306
+ }>>>;
307
+ expectedImageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
308
+ expectedVideoCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
309
+ parentMsgKey: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
310
+ associationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
311
+ isGif: z.ZodOptional<z.ZodBoolean>;
223
312
  timestamp: z.ZodNumber;
224
313
  content: z.ZodString;
225
314
  isGroupMsg: z.ZodBoolean;
@@ -632,6 +721,88 @@ declare const OrderSchema: z.ZodObject<{
632
721
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
633
722
  mentionedJidList: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>;
634
723
  caption: z.ZodOptional<z.ZodString>;
724
+ event: z.ZodOptional<z.ZodType<{
725
+ readonly id: string;
726
+ readonly chatId: string;
727
+ readonly creatorId: string;
728
+ readonly name: string;
729
+ readonly startTime: number;
730
+ readonly endTime?: number | undefined;
731
+ readonly description?: string | undefined;
732
+ readonly location?: {
733
+ readonly name?: string | undefined;
734
+ readonly latitude?: number | undefined;
735
+ readonly longitude?: number | undefined;
736
+ } | undefined;
737
+ readonly joinLink?: string | undefined;
738
+ readonly isScheduledCall?: boolean | undefined;
739
+ readonly extraGuestsAllowed?: boolean | undefined;
740
+ readonly isCanceled: boolean;
741
+ readonly fromMe: boolean;
742
+ readonly timestamp: number;
743
+ }, {
744
+ readonly id: string;
745
+ readonly chatId: string;
746
+ readonly creatorId: string;
747
+ readonly name: string;
748
+ readonly startTime: number;
749
+ readonly endTime?: number | undefined;
750
+ readonly description?: string | undefined;
751
+ readonly location?: {
752
+ readonly name?: string | undefined;
753
+ readonly latitude?: number | undefined;
754
+ readonly longitude?: number | undefined;
755
+ } | undefined;
756
+ readonly joinLink?: string | undefined;
757
+ readonly isScheduledCall?: boolean | undefined;
758
+ readonly extraGuestsAllowed?: boolean | undefined;
759
+ readonly isCanceled: boolean;
760
+ readonly fromMe: boolean;
761
+ readonly timestamp: number;
762
+ }, z.core.$ZodTypeInternals<{
763
+ readonly id: string;
764
+ readonly chatId: string;
765
+ readonly creatorId: string;
766
+ readonly name: string;
767
+ readonly startTime: number;
768
+ readonly endTime?: number | undefined;
769
+ readonly description?: string | undefined;
770
+ readonly location?: {
771
+ readonly name?: string | undefined;
772
+ readonly latitude?: number | undefined;
773
+ readonly longitude?: number | undefined;
774
+ } | undefined;
775
+ readonly joinLink?: string | undefined;
776
+ readonly isScheduledCall?: boolean | undefined;
777
+ readonly extraGuestsAllowed?: boolean | undefined;
778
+ readonly isCanceled: boolean;
779
+ readonly fromMe: boolean;
780
+ readonly timestamp: number;
781
+ }, {
782
+ readonly id: string;
783
+ readonly chatId: string;
784
+ readonly creatorId: string;
785
+ readonly name: string;
786
+ readonly startTime: number;
787
+ readonly endTime?: number | undefined;
788
+ readonly description?: string | undefined;
789
+ readonly location?: {
790
+ readonly name?: string | undefined;
791
+ readonly latitude?: number | undefined;
792
+ readonly longitude?: number | undefined;
793
+ } | undefined;
794
+ readonly joinLink?: string | undefined;
795
+ readonly isScheduledCall?: boolean | undefined;
796
+ readonly extraGuestsAllowed?: boolean | undefined;
797
+ readonly isCanceled: boolean;
798
+ readonly fromMe: boolean;
799
+ readonly timestamp: number;
800
+ }>>>;
801
+ expectedImageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
802
+ expectedVideoCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
803
+ parentMsgKey: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
804
+ associationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
805
+ isGif: z.ZodOptional<z.ZodBoolean>;
635
806
  timestamp: z.ZodNumber;
636
807
  content: z.ZodString;
637
808
  isGroupMsg: z.ZodBoolean;
@@ -851,6 +1022,88 @@ declare const StorySchema: z.ZodObject<{
851
1022
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
852
1023
  mentionedJidList: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>;
853
1024
  caption: z.ZodOptional<z.ZodString>;
1025
+ event: z.ZodOptional<z.ZodType<{
1026
+ readonly id: string;
1027
+ readonly chatId: string;
1028
+ readonly creatorId: string;
1029
+ readonly name: string;
1030
+ readonly startTime: number;
1031
+ readonly endTime?: number | undefined;
1032
+ readonly description?: string | undefined;
1033
+ readonly location?: {
1034
+ readonly name?: string | undefined;
1035
+ readonly latitude?: number | undefined;
1036
+ readonly longitude?: number | undefined;
1037
+ } | undefined;
1038
+ readonly joinLink?: string | undefined;
1039
+ readonly isScheduledCall?: boolean | undefined;
1040
+ readonly extraGuestsAllowed?: boolean | undefined;
1041
+ readonly isCanceled: boolean;
1042
+ readonly fromMe: boolean;
1043
+ readonly timestamp: number;
1044
+ }, {
1045
+ readonly id: string;
1046
+ readonly chatId: string;
1047
+ readonly creatorId: string;
1048
+ readonly name: string;
1049
+ readonly startTime: number;
1050
+ readonly endTime?: number | undefined;
1051
+ readonly description?: string | undefined;
1052
+ readonly location?: {
1053
+ readonly name?: string | undefined;
1054
+ readonly latitude?: number | undefined;
1055
+ readonly longitude?: number | undefined;
1056
+ } | undefined;
1057
+ readonly joinLink?: string | undefined;
1058
+ readonly isScheduledCall?: boolean | undefined;
1059
+ readonly extraGuestsAllowed?: boolean | undefined;
1060
+ readonly isCanceled: boolean;
1061
+ readonly fromMe: boolean;
1062
+ readonly timestamp: number;
1063
+ }, z.core.$ZodTypeInternals<{
1064
+ readonly id: string;
1065
+ readonly chatId: string;
1066
+ readonly creatorId: string;
1067
+ readonly name: string;
1068
+ readonly startTime: number;
1069
+ readonly endTime?: number | undefined;
1070
+ readonly description?: string | undefined;
1071
+ readonly location?: {
1072
+ readonly name?: string | undefined;
1073
+ readonly latitude?: number | undefined;
1074
+ readonly longitude?: number | undefined;
1075
+ } | undefined;
1076
+ readonly joinLink?: string | undefined;
1077
+ readonly isScheduledCall?: boolean | undefined;
1078
+ readonly extraGuestsAllowed?: boolean | undefined;
1079
+ readonly isCanceled: boolean;
1080
+ readonly fromMe: boolean;
1081
+ readonly timestamp: number;
1082
+ }, {
1083
+ readonly id: string;
1084
+ readonly chatId: string;
1085
+ readonly creatorId: string;
1086
+ readonly name: string;
1087
+ readonly startTime: number;
1088
+ readonly endTime?: number | undefined;
1089
+ readonly description?: string | undefined;
1090
+ readonly location?: {
1091
+ readonly name?: string | undefined;
1092
+ readonly latitude?: number | undefined;
1093
+ readonly longitude?: number | undefined;
1094
+ } | undefined;
1095
+ readonly joinLink?: string | undefined;
1096
+ readonly isScheduledCall?: boolean | undefined;
1097
+ readonly extraGuestsAllowed?: boolean | undefined;
1098
+ readonly isCanceled: boolean;
1099
+ readonly fromMe: boolean;
1100
+ readonly timestamp: number;
1101
+ }>>>;
1102
+ expectedImageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1103
+ expectedVideoCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1104
+ parentMsgKey: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
1105
+ associationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1106
+ isGif: z.ZodOptional<z.ZodBoolean>;
854
1107
  timestamp: z.ZodNumber;
855
1108
  content: z.ZodString;
856
1109
  isGroupMsg: z.ZodBoolean;
@@ -998,6 +1251,82 @@ declare function successResponseSchema(schema: z.ZodType): {
998
1251
  //#endregion
999
1252
  //#region src/methods/messaging.d.ts
1000
1253
  declare const SendTextResultSchema: z.core.$ZodBranded<z.ZodString, "MessageId", "out">;
1254
+ declare const StickerJobSchema: z.ZodObject<{
1255
+ effects: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1256
+ name: z.ZodString;
1257
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1258
+ }, z.core.$strict>]>>>;
1259
+ backend: z.ZodOptional<z.ZodEnum<{
1260
+ auto: "auto";
1261
+ browser: "browser";
1262
+ standalone: "standalone";
1263
+ }>>;
1264
+ quality: z.ZodOptional<z.ZodNumber>;
1265
+ fit: z.ZodOptional<z.ZodEnum<{
1266
+ contain: "contain";
1267
+ cover: "cover";
1268
+ }>>;
1269
+ circle: z.ZodOptional<z.ZodBoolean>;
1270
+ background: z.ZodOptional<z.ZodString>;
1271
+ trim: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1272
+ fps: z.ZodOptional<z.ZodNumber>;
1273
+ loopCount: z.ZodOptional<z.ZodNumber>;
1274
+ author: z.ZodOptional<z.ZodString>;
1275
+ pack: z.ZodOptional<z.ZodString>;
1276
+ quotedMsgId: z.ZodOptional<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
1277
+ }, z.core.$strict>;
1278
+ declare const sendSticker: OpenWAMethodSchema<z.ZodObject<{
1279
+ to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
1280
+ input: z.ZodString;
1281
+ job: z.ZodOptional<z.ZodObject<{
1282
+ effects: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1283
+ name: z.ZodString;
1284
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1285
+ }, z.core.$strict>]>>>;
1286
+ backend: z.ZodOptional<z.ZodEnum<{
1287
+ auto: "auto";
1288
+ browser: "browser";
1289
+ standalone: "standalone";
1290
+ }>>;
1291
+ quality: z.ZodOptional<z.ZodNumber>;
1292
+ fit: z.ZodOptional<z.ZodEnum<{
1293
+ contain: "contain";
1294
+ cover: "cover";
1295
+ }>>;
1296
+ circle: z.ZodOptional<z.ZodBoolean>;
1297
+ background: z.ZodOptional<z.ZodString>;
1298
+ trim: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1299
+ fps: z.ZodOptional<z.ZodNumber>;
1300
+ loopCount: z.ZodOptional<z.ZodNumber>;
1301
+ author: z.ZodOptional<z.ZodString>;
1302
+ pack: z.ZodOptional<z.ZodString>;
1303
+ quotedMsgId: z.ZodOptional<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
1304
+ }, z.core.$strict>>;
1305
+ }, z.core.$strip>, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
1306
+ declare const AlbumMediaSchema: z.ZodObject<{
1307
+ file: z.ZodString;
1308
+ filename: z.ZodString;
1309
+ isGif: z.ZodOptional<z.ZodBoolean>;
1310
+ }, z.core.$strip>;
1311
+ type AlbumMedia = z.infer<typeof AlbumMediaSchema>;
1312
+ declare const AlbumSendResultSchema: z.ZodObject<{
1313
+ albumId: z.core.$ZodBranded<z.ZodString, "MessageId", "out">;
1314
+ messageIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
1315
+ }, z.core.$strip>;
1316
+ type AlbumSendResult = z.infer<typeof AlbumSendResultSchema>;
1317
+ declare const sendAlbum: OpenWAMethodSchema<z.ZodObject<{
1318
+ to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
1319
+ media: z.ZodArray<z.ZodObject<{
1320
+ file: z.ZodString;
1321
+ filename: z.ZodString;
1322
+ isGif: z.ZodOptional<z.ZodBoolean>;
1323
+ }, z.core.$strip>>;
1324
+ caption: z.ZodDefault<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
1325
+ quotedMsgId: z.ZodOptional<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
1326
+ }, z.core.$strip>, z.ZodObject<{
1327
+ albumId: z.core.$ZodBranded<z.ZodString, "MessageId", "out">;
1328
+ messageIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
1329
+ }, z.core.$strip>>;
1001
1330
  declare const sendText: OpenWAMethodSchema<z.ZodObject<{
1002
1331
  to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
1003
1332
  content: z.core.$ZodBranded<z.ZodString, "Content", "out">;
@@ -1030,43 +1359,100 @@ declare const sendPaymentRequest: OpenWAMethodSchema<z.ZodObject<{
1030
1359
  }, z.core.$loose>]>, z.ZodBoolean]>>;
1031
1360
  declare const sendImage: OpenWAMethodSchema<z.ZodObject<{
1032
1361
  to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
1033
- imgData: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Buffer<ArrayBufferLike>>]>, z.ZodTransform<unknown, string | Buffer<ArrayBufferLike>>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
1034
- filename: z.ZodOptional<z.ZodString>;
1035
- caption: z.ZodOptional<z.ZodString>;
1036
- id: z.ZodOptional<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
1037
- waitForId: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1038
- }, z.core.$strip>, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "MessageId", "out">, z.ZodObject<{
1362
+ file: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Buffer<ArrayBufferLike>>]>, z.ZodTransform<unknown, string | Buffer<ArrayBufferLike>>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
1363
+ filename: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1364
+ options: z.ZodDefault<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1365
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
1366
+ caption: z.ZodOptional<z.ZodString>;
1367
+ viewOnce: z.ZodOptional<z.ZodBoolean>;
1368
+ type: z.ZodOptional<z.ZodLiteral<"auto">>;
1369
+ }, z.core.$strict>, z.ZodObject<{
1370
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
1371
+ caption: z.ZodOptional<z.ZodString>;
1372
+ viewOnce: z.ZodOptional<z.ZodBoolean>;
1373
+ type: z.ZodLiteral<"image">;
1374
+ }, z.core.$strict>, z.ZodObject<{
1375
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
1376
+ caption: z.ZodOptional<z.ZodString>;
1377
+ viewOnce: z.ZodOptional<z.ZodBoolean>;
1378
+ type: z.ZodLiteral<"video">;
1379
+ isGif: z.ZodOptional<z.ZodBoolean>;
1380
+ videoNote: z.ZodOptional<z.ZodBoolean>;
1381
+ }, z.core.$strict>, z.ZodObject<{
1382
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
1383
+ viewOnce: z.ZodOptional<z.ZodBoolean>;
1384
+ type: z.ZodLiteral<"audio">;
1385
+ ptt: z.ZodOptional<z.ZodBoolean>;
1386
+ }, z.core.$strict>, z.ZodObject<{
1387
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
1388
+ caption: z.ZodOptional<z.ZodString>;
1389
+ type: z.ZodLiteral<"document">;
1390
+ }, z.core.$strict>], "type">>>;
1391
+ }, z.core.$strip>, z.ZodUnion<[z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "MessageId", "out">, z.ZodObject<{
1039
1392
  _serialized: z.ZodString;
1040
- }, z.core.$loose>]>, z.ZodBoolean]>, z.ZodString]>>;
1393
+ }, z.core.$loose>]>, z.ZodBoolean]>>;
1041
1394
  declare const sendFile: OpenWAMethodSchema<z.ZodObject<{
1042
1395
  to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
1043
1396
  file: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Buffer<ArrayBufferLike>>]>, z.ZodTransform<unknown, string | Buffer<ArrayBufferLike>>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
1044
- filename: z.ZodOptional<z.ZodString>;
1045
- caption: z.ZodOptional<z.ZodString>;
1397
+ filename: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1398
+ options: z.ZodDefault<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1399
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
1400
+ caption: z.ZodOptional<z.ZodString>;
1401
+ viewOnce: z.ZodOptional<z.ZodBoolean>;
1402
+ type: z.ZodOptional<z.ZodLiteral<"auto">>;
1403
+ }, z.core.$strict>, z.ZodObject<{
1404
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
1405
+ caption: z.ZodOptional<z.ZodString>;
1406
+ viewOnce: z.ZodOptional<z.ZodBoolean>;
1407
+ type: z.ZodLiteral<"image">;
1408
+ }, z.core.$strict>, z.ZodObject<{
1409
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
1410
+ caption: z.ZodOptional<z.ZodString>;
1411
+ viewOnce: z.ZodOptional<z.ZodBoolean>;
1412
+ type: z.ZodLiteral<"video">;
1413
+ isGif: z.ZodOptional<z.ZodBoolean>;
1414
+ videoNote: z.ZodOptional<z.ZodBoolean>;
1415
+ }, z.core.$strict>, z.ZodObject<{
1416
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
1417
+ viewOnce: z.ZodOptional<z.ZodBoolean>;
1418
+ type: z.ZodLiteral<"audio">;
1419
+ ptt: z.ZodOptional<z.ZodBoolean>;
1420
+ }, z.core.$strict>, z.ZodObject<{
1421
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
1422
+ caption: z.ZodOptional<z.ZodString>;
1423
+ type: z.ZodLiteral<"document">;
1424
+ }, z.core.$strict>], "type">>>;
1046
1425
  }, z.core.$strip>, z.ZodUnion<[z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "MessageId", "out">, z.ZodObject<{
1047
1426
  _serialized: z.ZodString;
1048
- }, z.core.$loose>]>, z.ZodString]>>;
1427
+ }, z.core.$loose>]>, z.ZodBoolean]>>;
1049
1428
  declare const sendAudio: OpenWAMethodSchema<z.ZodObject<{
1050
1429
  to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
1051
1430
  file: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Buffer<ArrayBufferLike>>]>, z.ZodTransform<unknown, string | Buffer<ArrayBufferLike>>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
1052
- filename: z.ZodOptional<z.ZodString>;
1053
- quotedMsgId: z.ZodOptional<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
1431
+ filename: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1432
+ options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1433
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
1434
+ }, z.core.$strict>>>;
1054
1435
  }, z.core.$strip>, z.ZodUnion<[z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "MessageId", "out">, z.ZodObject<{
1055
1436
  _serialized: z.ZodString;
1056
1437
  }, z.core.$loose>]>, z.ZodBoolean]>>;
1057
1438
  declare const sendPtt: OpenWAMethodSchema<z.ZodObject<{
1058
1439
  to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
1059
1440
  file: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Buffer<ArrayBufferLike>>]>, z.ZodTransform<unknown, string | Buffer<ArrayBufferLike>>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
1060
- quotedMsgId: z.ZodOptional<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
1441
+ options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1442
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
1443
+ viewOnce: z.ZodOptional<z.ZodBoolean>;
1444
+ }, z.core.$strict>>>;
1061
1445
  }, z.core.$strip>, z.ZodUnion<[z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "MessageId", "out">, z.ZodObject<{
1062
1446
  _serialized: z.ZodString;
1063
1447
  }, z.core.$loose>]>, z.ZodBoolean]>>;
1064
1448
  declare const sendVideoAsGif: OpenWAMethodSchema<z.ZodObject<{
1065
1449
  to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
1066
1450
  file: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Buffer<ArrayBufferLike>>]>, z.ZodTransform<unknown, string | Buffer<ArrayBufferLike>>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
1067
- filename: z.ZodOptional<z.ZodString>;
1068
- caption: z.ZodOptional<z.ZodString>;
1069
- quotedMsgId: z.ZodOptional<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
1451
+ filename: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1452
+ options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1453
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
1454
+ caption: z.ZodOptional<z.ZodString>;
1455
+ }, z.core.$strict>>>;
1070
1456
  }, z.core.$strip>, z.ZodUnion<[z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "MessageId", "out">, z.ZodObject<{
1071
1457
  _serialized: z.ZodString;
1072
1458
  }, z.core.$loose>]>, z.ZodBoolean]>>;
@@ -1085,13 +1471,17 @@ declare const sendVCard: OpenWAMethodSchema<z.ZodObject<{
1085
1471
  vcard: z.ZodString;
1086
1472
  contactName: z.ZodOptional<z.ZodString>;
1087
1473
  contactNumber: z.ZodOptional<z.ZodString>;
1088
- }, z.core.$strip>, z.ZodBoolean>;
1474
+ }, z.core.$strip>, z.ZodUnion<[z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "MessageId", "out">, z.ZodObject<{
1475
+ _serialized: z.ZodString;
1476
+ }, z.core.$loose>]>, z.ZodBoolean]>>;
1089
1477
  declare const sendContact: OpenWAMethodSchema<z.ZodObject<{
1090
1478
  to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
1091
1479
  contactId: z.ZodUnion<[z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>, z.ZodArray<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>]>;
1092
1480
  }, z.core.$strip>, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "MessageId", "out">, z.ZodObject<{
1093
1481
  _serialized: z.ZodString;
1094
- }, z.core.$loose>]>, z.ZodBoolean]>, z.ZodVoid]>>;
1482
+ }, z.core.$loose>]>, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<[z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "MessageId", "out">, z.ZodObject<{
1483
+ _serialized: z.ZodString;
1484
+ }, z.core.$loose>]>, z.ZodBoolean]>>]>>;
1095
1485
  declare const sendMultipleContacts: OpenWAMethodSchema<z.ZodObject<{
1096
1486
  to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
1097
1487
  contactIds: z.ZodArray<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>;
@@ -1130,10 +1520,58 @@ declare const sendPoll: OpenWAMethodSchema<z.ZodObject<{
1130
1520
  to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
1131
1521
  name: z.ZodString;
1132
1522
  options: z.ZodArray<z.ZodString>;
1133
- selectableCount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1523
+ config: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1524
+ selectableCount: z.ZodOptional<z.ZodNumber>;
1525
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
1526
+ endTime: z.ZodOptional<z.ZodNumber>;
1527
+ hideVoterNames: z.ZodOptional<z.ZodBoolean>;
1528
+ }, z.core.$strict>>>;
1134
1529
  }, z.core.$strip>, z.ZodUnion<[z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "MessageId", "out">, z.ZodObject<{
1135
1530
  _serialized: z.ZodString;
1136
1531
  }, z.core.$loose>]>, z.ZodBoolean]>>;
1532
+ declare const voteOnPoll: OpenWAMethodSchema<z.ZodObject<{
1533
+ messageId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
1534
+ optionIds: z.ZodArray<z.ZodNumber>;
1535
+ }, z.core.$strip>, z.ZodBoolean>;
1536
+ declare const getPollResults: OpenWAMethodSchema<z.ZodObject<{
1537
+ messageId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
1538
+ }, z.core.$strip>, z.ZodObject<{
1539
+ pollId: z.core.$ZodBranded<z.ZodString, "MessageId", "out">;
1540
+ chatId: z.core.$ZodBranded<z.ZodString, "ChatId", "out">;
1541
+ name: z.ZodString;
1542
+ selectableCount: z.ZodNumber;
1543
+ endTime: z.ZodOptional<z.ZodNumber>;
1544
+ isClosed: z.ZodBoolean;
1545
+ hideVoterNames: z.ZodBoolean;
1546
+ options: z.ZodArray<z.ZodObject<{
1547
+ id: z.ZodNumber;
1548
+ name: z.ZodString;
1549
+ count: z.ZodNumber;
1550
+ }, z.core.$strict>>;
1551
+ voterCount: z.ZodNumber;
1552
+ votes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1553
+ pollId: z.core.$ZodBranded<z.ZodString, "MessageId", "out">;
1554
+ chatId: z.core.$ZodBranded<z.ZodString, "ChatId", "out">;
1555
+ id: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
1556
+ senderId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
1557
+ selectedOptionIds: z.ZodArray<z.ZodNumber>;
1558
+ timestamp: z.ZodNumber;
1559
+ fromMe: z.ZodBoolean;
1560
+ hideVoterNames: z.ZodBoolean;
1561
+ }, z.core.$strict>>>;
1562
+ scope: z.ZodLiteral<"synced">;
1563
+ }, z.core.$strict>>;
1564
+ declare const pinMessage: OpenWAMethodSchema<z.ZodObject<{
1565
+ messageId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
1566
+ duration: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
1567
+ OneDay: "OneDay";
1568
+ SevenDays: "SevenDays";
1569
+ ThirtyDays: "ThirtyDays";
1570
+ }>>>;
1571
+ }, z.core.$strip>, z.ZodBoolean>;
1572
+ declare const unpinMessage: OpenWAMethodSchema<z.ZodObject<{
1573
+ messageId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
1574
+ }, z.core.$strip>, z.ZodBoolean>;
1137
1575
  declare const sendBanner: OpenWAMethodSchema<z.ZodObject<{
1138
1576
  to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
1139
1577
  base64: z.ZodString;
@@ -1217,6 +1655,309 @@ declare const getMessageById: OpenWAMethodSchema<z.ZodObject<{
1217
1655
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
1218
1656
  mentionedJidList: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>;
1219
1657
  caption: z.ZodOptional<z.ZodString>;
1658
+ event: z.ZodOptional<z.ZodType<{
1659
+ readonly id: string;
1660
+ readonly chatId: string;
1661
+ readonly creatorId: string;
1662
+ readonly name: string;
1663
+ readonly startTime: number;
1664
+ readonly endTime?: number | undefined;
1665
+ readonly description?: string | undefined;
1666
+ readonly location?: {
1667
+ readonly name?: string | undefined;
1668
+ readonly latitude?: number | undefined;
1669
+ readonly longitude?: number | undefined;
1670
+ } | undefined;
1671
+ readonly joinLink?: string | undefined;
1672
+ readonly isScheduledCall?: boolean | undefined;
1673
+ readonly extraGuestsAllowed?: boolean | undefined;
1674
+ readonly isCanceled: boolean;
1675
+ readonly fromMe: boolean;
1676
+ readonly timestamp: number;
1677
+ }, {
1678
+ readonly id: string;
1679
+ readonly chatId: string;
1680
+ readonly creatorId: string;
1681
+ readonly name: string;
1682
+ readonly startTime: number;
1683
+ readonly endTime?: number | undefined;
1684
+ readonly description?: string | undefined;
1685
+ readonly location?: {
1686
+ readonly name?: string | undefined;
1687
+ readonly latitude?: number | undefined;
1688
+ readonly longitude?: number | undefined;
1689
+ } | undefined;
1690
+ readonly joinLink?: string | undefined;
1691
+ readonly isScheduledCall?: boolean | undefined;
1692
+ readonly extraGuestsAllowed?: boolean | undefined;
1693
+ readonly isCanceled: boolean;
1694
+ readonly fromMe: boolean;
1695
+ readonly timestamp: number;
1696
+ }, z.core.$ZodTypeInternals<{
1697
+ readonly id: string;
1698
+ readonly chatId: string;
1699
+ readonly creatorId: string;
1700
+ readonly name: string;
1701
+ readonly startTime: number;
1702
+ readonly endTime?: number | undefined;
1703
+ readonly description?: string | undefined;
1704
+ readonly location?: {
1705
+ readonly name?: string | undefined;
1706
+ readonly latitude?: number | undefined;
1707
+ readonly longitude?: number | undefined;
1708
+ } | undefined;
1709
+ readonly joinLink?: string | undefined;
1710
+ readonly isScheduledCall?: boolean | undefined;
1711
+ readonly extraGuestsAllowed?: boolean | undefined;
1712
+ readonly isCanceled: boolean;
1713
+ readonly fromMe: boolean;
1714
+ readonly timestamp: number;
1715
+ }, {
1716
+ readonly id: string;
1717
+ readonly chatId: string;
1718
+ readonly creatorId: string;
1719
+ readonly name: string;
1720
+ readonly startTime: number;
1721
+ readonly endTime?: number | undefined;
1722
+ readonly description?: string | undefined;
1723
+ readonly location?: {
1724
+ readonly name?: string | undefined;
1725
+ readonly latitude?: number | undefined;
1726
+ readonly longitude?: number | undefined;
1727
+ } | undefined;
1728
+ readonly joinLink?: string | undefined;
1729
+ readonly isScheduledCall?: boolean | undefined;
1730
+ readonly extraGuestsAllowed?: boolean | undefined;
1731
+ readonly isCanceled: boolean;
1732
+ readonly fromMe: boolean;
1733
+ readonly timestamp: number;
1734
+ }>>>;
1735
+ expectedImageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1736
+ expectedVideoCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1737
+ parentMsgKey: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
1738
+ associationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1739
+ isGif: z.ZodOptional<z.ZodBoolean>;
1740
+ timestamp: z.ZodNumber;
1741
+ content: z.ZodString;
1742
+ isGroupMsg: z.ZodBoolean;
1743
+ isMMS: z.ZodOptional<z.ZodBoolean>;
1744
+ isMedia: z.ZodBoolean;
1745
+ isNotification: z.ZodBoolean;
1746
+ isPSA: z.ZodOptional<z.ZodBoolean>;
1747
+ fromMe: z.ZodBoolean;
1748
+ chatId: z.core.$ZodBranded<z.ZodString, "ChatId", "out">;
1749
+ author: z.ZodOptional<z.ZodString>;
1750
+ clientUrl: z.ZodOptional<z.ZodString>;
1751
+ deprecatedMms3Url: z.ZodOptional<z.ZodString>;
1752
+ isQuotedMsgAvailable: z.ZodBoolean;
1753
+ quotedMsg: z.ZodOptional<z.ZodAny>;
1754
+ quotedMsgObj: z.ZodOptional<z.ZodAny>;
1755
+ senderId: z.ZodOptional<z.ZodString>;
1756
+ sender: z.ZodObject<{
1757
+ id: z.core.$ZodBranded<z.ZodString, "ContactId", "out">;
1758
+ name: z.ZodOptional<z.ZodString>;
1759
+ shortName: z.ZodOptional<z.ZodString>;
1760
+ pushname: z.ZodOptional<z.ZodString>;
1761
+ formattedName: z.ZodOptional<z.ZodString>;
1762
+ isBusiness: z.ZodOptional<z.ZodBoolean>;
1763
+ isEnterprise: z.ZodOptional<z.ZodBoolean>;
1764
+ isMe: z.ZodOptional<z.ZodBoolean>;
1765
+ isMyContact: z.ZodOptional<z.ZodBoolean>;
1766
+ isPSA: z.ZodOptional<z.ZodBoolean>;
1767
+ isUser: z.ZodOptional<z.ZodBoolean>;
1768
+ isWAContact: z.ZodOptional<z.ZodBoolean>;
1769
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
1770
+ msgs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
1771
+ profilePicThumbObj: z.ZodOptional<z.ZodObject<{
1772
+ eurl: z.ZodOptional<z.ZodString>;
1773
+ id: z.ZodOptional<z.ZodObject<{
1774
+ server: z.ZodString;
1775
+ user: z.ZodString;
1776
+ _serialized: z.ZodString;
1777
+ }, z.core.$strip>>;
1778
+ img: z.ZodOptional<z.ZodString>;
1779
+ imgFull: z.ZodOptional<z.ZodString>;
1780
+ tag: z.ZodOptional<z.ZodString>;
1781
+ }, z.core.$strip>>;
1782
+ statusMute: z.ZodOptional<z.ZodBoolean>;
1783
+ type: z.ZodOptional<z.ZodString>;
1784
+ verifiedLevel: z.ZodOptional<z.ZodNumber>;
1785
+ verifiedName: z.ZodOptional<z.ZodString>;
1786
+ isOnline: z.ZodOptional<z.ZodBoolean>;
1787
+ lastSeen: z.ZodOptional<z.ZodNumber>;
1788
+ }, z.core.$loose>;
1789
+ chat: z.ZodObject<{
1790
+ id: z.core.$ZodBranded<z.ZodString, "ChatId", "out">;
1791
+ name: z.ZodOptional<z.ZodString>;
1792
+ formattedTitle: z.ZodOptional<z.ZodString>;
1793
+ isGroup: z.ZodBoolean;
1794
+ contact: z.ZodNullable<z.ZodObject<{
1795
+ id: z.core.$ZodBranded<z.ZodString, "ContactId", "out">;
1796
+ name: z.ZodOptional<z.ZodString>;
1797
+ shortName: z.ZodOptional<z.ZodString>;
1798
+ pushname: z.ZodOptional<z.ZodString>;
1799
+ formattedName: z.ZodOptional<z.ZodString>;
1800
+ isBusiness: z.ZodOptional<z.ZodBoolean>;
1801
+ isEnterprise: z.ZodOptional<z.ZodBoolean>;
1802
+ isMe: z.ZodOptional<z.ZodBoolean>;
1803
+ isMyContact: z.ZodOptional<z.ZodBoolean>;
1804
+ isPSA: z.ZodOptional<z.ZodBoolean>;
1805
+ isUser: z.ZodOptional<z.ZodBoolean>;
1806
+ isWAContact: z.ZodOptional<z.ZodBoolean>;
1807
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
1808
+ msgs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
1809
+ profilePicThumbObj: z.ZodOptional<z.ZodObject<{
1810
+ eurl: z.ZodOptional<z.ZodString>;
1811
+ id: z.ZodOptional<z.ZodObject<{
1812
+ server: z.ZodString;
1813
+ user: z.ZodString;
1814
+ _serialized: z.ZodString;
1815
+ }, z.core.$strip>>;
1816
+ img: z.ZodOptional<z.ZodString>;
1817
+ imgFull: z.ZodOptional<z.ZodString>;
1818
+ tag: z.ZodOptional<z.ZodString>;
1819
+ }, z.core.$strip>>;
1820
+ statusMute: z.ZodOptional<z.ZodBoolean>;
1821
+ type: z.ZodOptional<z.ZodString>;
1822
+ verifiedLevel: z.ZodOptional<z.ZodNumber>;
1823
+ verifiedName: z.ZodOptional<z.ZodString>;
1824
+ isOnline: z.ZodOptional<z.ZodBoolean>;
1825
+ lastSeen: z.ZodOptional<z.ZodNumber>;
1826
+ }, z.core.$loose>>;
1827
+ groupMetadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1828
+ id: z.core.$ZodBranded<z.ZodString, "GroupId", "out">;
1829
+ subject: z.ZodString;
1830
+ creation: z.ZodNumber;
1831
+ owner: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
1832
+ desc: z.ZodOptional<z.ZodString>;
1833
+ descTime: z.ZodOptional<z.ZodNumber>;
1834
+ descOwner: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
1835
+ restrict: z.ZodOptional<z.ZodBoolean>;
1836
+ announce: z.ZodOptional<z.ZodBoolean>;
1837
+ participants: z.ZodArray<z.ZodObject<{
1838
+ id: z.core.$ZodBranded<z.ZodString, "ContactId", "out">;
1839
+ isAdmin: z.ZodBoolean;
1840
+ isSuperAdmin: z.ZodOptional<z.ZodBoolean>;
1841
+ }, z.core.$strip>>;
1842
+ }, z.core.$loose>>>;
1843
+ presence: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1844
+ t: z.ZodOptional<z.ZodNumber>;
1845
+ unreadCount: z.ZodOptional<z.ZodNumber>;
1846
+ lastReceivedKey: z.ZodOptional<z.ZodAny>;
1847
+ msgs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
1848
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
1849
+ muteExpiration: z.ZodOptional<z.ZodNumber>;
1850
+ notSpam: z.ZodOptional<z.ZodBoolean>;
1851
+ pin: z.ZodOptional<z.ZodNumber>;
1852
+ ack: z.ZodOptional<z.ZodAny>;
1853
+ }, z.core.$loose>;
1854
+ }, z.core.$loose>>, z.ZodLiteral<false>]>>;
1855
+ declare const getAlbumMessages: OpenWAMethodSchema<z.ZodObject<{
1856
+ messageId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
1857
+ }, z.core.$strip>, z.ZodUnion<[z.ZodArray<z.ZodObject<{
1858
+ id: z.core.$ZodBranded<z.ZodString, "MessageId", "out">;
1859
+ body: z.ZodString;
1860
+ type: z.ZodEnum<typeof MessageTypes>;
1861
+ t: z.ZodNumber;
1862
+ notifyName: z.ZodOptional<z.ZodString>;
1863
+ from: z.core.$ZodBranded<z.ZodString, "ChatId", "out">;
1864
+ to: z.core.$ZodBranded<z.ZodString, "ChatId", "out">;
1865
+ self: z.ZodEnum<{
1866
+ in: "in";
1867
+ out: "out";
1868
+ }>;
1869
+ ack: z.ZodEnum<typeof MessageAck>;
1870
+ invis: z.ZodOptional<z.ZodBoolean>;
1871
+ isNewMsg: z.ZodOptional<z.ZodBoolean>;
1872
+ star: z.ZodOptional<z.ZodBoolean>;
1873
+ recvFresh: z.ZodOptional<z.ZodBoolean>;
1874
+ broadcast: z.ZodOptional<z.ZodBoolean>;
1875
+ isForwarded: z.ZodOptional<z.ZodBoolean>;
1876
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
1877
+ mentionedJidList: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>;
1878
+ caption: z.ZodOptional<z.ZodString>;
1879
+ event: z.ZodOptional<z.ZodType<{
1880
+ readonly id: string;
1881
+ readonly chatId: string;
1882
+ readonly creatorId: string;
1883
+ readonly name: string;
1884
+ readonly startTime: number;
1885
+ readonly endTime?: number | undefined;
1886
+ readonly description?: string | undefined;
1887
+ readonly location?: {
1888
+ readonly name?: string | undefined;
1889
+ readonly latitude?: number | undefined;
1890
+ readonly longitude?: number | undefined;
1891
+ } | undefined;
1892
+ readonly joinLink?: string | undefined;
1893
+ readonly isScheduledCall?: boolean | undefined;
1894
+ readonly extraGuestsAllowed?: boolean | undefined;
1895
+ readonly isCanceled: boolean;
1896
+ readonly fromMe: boolean;
1897
+ readonly timestamp: number;
1898
+ }, {
1899
+ readonly id: string;
1900
+ readonly chatId: string;
1901
+ readonly creatorId: string;
1902
+ readonly name: string;
1903
+ readonly startTime: number;
1904
+ readonly endTime?: number | undefined;
1905
+ readonly description?: string | undefined;
1906
+ readonly location?: {
1907
+ readonly name?: string | undefined;
1908
+ readonly latitude?: number | undefined;
1909
+ readonly longitude?: number | undefined;
1910
+ } | undefined;
1911
+ readonly joinLink?: string | undefined;
1912
+ readonly isScheduledCall?: boolean | undefined;
1913
+ readonly extraGuestsAllowed?: boolean | undefined;
1914
+ readonly isCanceled: boolean;
1915
+ readonly fromMe: boolean;
1916
+ readonly timestamp: number;
1917
+ }, z.core.$ZodTypeInternals<{
1918
+ readonly id: string;
1919
+ readonly chatId: string;
1920
+ readonly creatorId: string;
1921
+ readonly name: string;
1922
+ readonly startTime: number;
1923
+ readonly endTime?: number | undefined;
1924
+ readonly description?: string | undefined;
1925
+ readonly location?: {
1926
+ readonly name?: string | undefined;
1927
+ readonly latitude?: number | undefined;
1928
+ readonly longitude?: number | undefined;
1929
+ } | undefined;
1930
+ readonly joinLink?: string | undefined;
1931
+ readonly isScheduledCall?: boolean | undefined;
1932
+ readonly extraGuestsAllowed?: boolean | undefined;
1933
+ readonly isCanceled: boolean;
1934
+ readonly fromMe: boolean;
1935
+ readonly timestamp: number;
1936
+ }, {
1937
+ readonly id: string;
1938
+ readonly chatId: string;
1939
+ readonly creatorId: string;
1940
+ readonly name: string;
1941
+ readonly startTime: number;
1942
+ readonly endTime?: number | undefined;
1943
+ readonly description?: string | undefined;
1944
+ readonly location?: {
1945
+ readonly name?: string | undefined;
1946
+ readonly latitude?: number | undefined;
1947
+ readonly longitude?: number | undefined;
1948
+ } | undefined;
1949
+ readonly joinLink?: string | undefined;
1950
+ readonly isScheduledCall?: boolean | undefined;
1951
+ readonly extraGuestsAllowed?: boolean | undefined;
1952
+ readonly isCanceled: boolean;
1953
+ readonly fromMe: boolean;
1954
+ readonly timestamp: number;
1955
+ }>>>;
1956
+ expectedImageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1957
+ expectedVideoCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1958
+ parentMsgKey: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
1959
+ associationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1960
+ isGif: z.ZodOptional<z.ZodBoolean>;
1220
1961
  timestamp: z.ZodNumber;
1221
1962
  content: z.ZodString;
1222
1963
  isGroupMsg: z.ZodBoolean;
@@ -1358,6 +2099,88 @@ declare const getAllMessages: OpenWAMethodSchema<z.ZodObject<{
1358
2099
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
1359
2100
  mentionedJidList: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>;
1360
2101
  caption: z.ZodOptional<z.ZodString>;
2102
+ event: z.ZodOptional<z.ZodType<{
2103
+ readonly id: string;
2104
+ readonly chatId: string;
2105
+ readonly creatorId: string;
2106
+ readonly name: string;
2107
+ readonly startTime: number;
2108
+ readonly endTime?: number | undefined;
2109
+ readonly description?: string | undefined;
2110
+ readonly location?: {
2111
+ readonly name?: string | undefined;
2112
+ readonly latitude?: number | undefined;
2113
+ readonly longitude?: number | undefined;
2114
+ } | undefined;
2115
+ readonly joinLink?: string | undefined;
2116
+ readonly isScheduledCall?: boolean | undefined;
2117
+ readonly extraGuestsAllowed?: boolean | undefined;
2118
+ readonly isCanceled: boolean;
2119
+ readonly fromMe: boolean;
2120
+ readonly timestamp: number;
2121
+ }, {
2122
+ readonly id: string;
2123
+ readonly chatId: string;
2124
+ readonly creatorId: string;
2125
+ readonly name: string;
2126
+ readonly startTime: number;
2127
+ readonly endTime?: number | undefined;
2128
+ readonly description?: string | undefined;
2129
+ readonly location?: {
2130
+ readonly name?: string | undefined;
2131
+ readonly latitude?: number | undefined;
2132
+ readonly longitude?: number | undefined;
2133
+ } | undefined;
2134
+ readonly joinLink?: string | undefined;
2135
+ readonly isScheduledCall?: boolean | undefined;
2136
+ readonly extraGuestsAllowed?: boolean | undefined;
2137
+ readonly isCanceled: boolean;
2138
+ readonly fromMe: boolean;
2139
+ readonly timestamp: number;
2140
+ }, z.core.$ZodTypeInternals<{
2141
+ readonly id: string;
2142
+ readonly chatId: string;
2143
+ readonly creatorId: string;
2144
+ readonly name: string;
2145
+ readonly startTime: number;
2146
+ readonly endTime?: number | undefined;
2147
+ readonly description?: string | undefined;
2148
+ readonly location?: {
2149
+ readonly name?: string | undefined;
2150
+ readonly latitude?: number | undefined;
2151
+ readonly longitude?: number | undefined;
2152
+ } | undefined;
2153
+ readonly joinLink?: string | undefined;
2154
+ readonly isScheduledCall?: boolean | undefined;
2155
+ readonly extraGuestsAllowed?: boolean | undefined;
2156
+ readonly isCanceled: boolean;
2157
+ readonly fromMe: boolean;
2158
+ readonly timestamp: number;
2159
+ }, {
2160
+ readonly id: string;
2161
+ readonly chatId: string;
2162
+ readonly creatorId: string;
2163
+ readonly name: string;
2164
+ readonly startTime: number;
2165
+ readonly endTime?: number | undefined;
2166
+ readonly description?: string | undefined;
2167
+ readonly location?: {
2168
+ readonly name?: string | undefined;
2169
+ readonly latitude?: number | undefined;
2170
+ readonly longitude?: number | undefined;
2171
+ } | undefined;
2172
+ readonly joinLink?: string | undefined;
2173
+ readonly isScheduledCall?: boolean | undefined;
2174
+ readonly extraGuestsAllowed?: boolean | undefined;
2175
+ readonly isCanceled: boolean;
2176
+ readonly fromMe: boolean;
2177
+ readonly timestamp: number;
2178
+ }>>>;
2179
+ expectedImageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2180
+ expectedVideoCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2181
+ parentMsgKey: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
2182
+ associationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2183
+ isGif: z.ZodOptional<z.ZodBoolean>;
1361
2184
  timestamp: z.ZodNumber;
1362
2185
  content: z.ZodString;
1363
2186
  isGroupMsg: z.ZodBoolean;
@@ -1497,6 +2320,88 @@ declare const getMyLastMessage: OpenWAMethodSchema<z.ZodObject<{
1497
2320
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
1498
2321
  mentionedJidList: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>;
1499
2322
  caption: z.ZodOptional<z.ZodString>;
2323
+ event: z.ZodOptional<z.ZodType<{
2324
+ readonly id: string;
2325
+ readonly chatId: string;
2326
+ readonly creatorId: string;
2327
+ readonly name: string;
2328
+ readonly startTime: number;
2329
+ readonly endTime?: number | undefined;
2330
+ readonly description?: string | undefined;
2331
+ readonly location?: {
2332
+ readonly name?: string | undefined;
2333
+ readonly latitude?: number | undefined;
2334
+ readonly longitude?: number | undefined;
2335
+ } | undefined;
2336
+ readonly joinLink?: string | undefined;
2337
+ readonly isScheduledCall?: boolean | undefined;
2338
+ readonly extraGuestsAllowed?: boolean | undefined;
2339
+ readonly isCanceled: boolean;
2340
+ readonly fromMe: boolean;
2341
+ readonly timestamp: number;
2342
+ }, {
2343
+ readonly id: string;
2344
+ readonly chatId: string;
2345
+ readonly creatorId: string;
2346
+ readonly name: string;
2347
+ readonly startTime: number;
2348
+ readonly endTime?: number | undefined;
2349
+ readonly description?: string | undefined;
2350
+ readonly location?: {
2351
+ readonly name?: string | undefined;
2352
+ readonly latitude?: number | undefined;
2353
+ readonly longitude?: number | undefined;
2354
+ } | undefined;
2355
+ readonly joinLink?: string | undefined;
2356
+ readonly isScheduledCall?: boolean | undefined;
2357
+ readonly extraGuestsAllowed?: boolean | undefined;
2358
+ readonly isCanceled: boolean;
2359
+ readonly fromMe: boolean;
2360
+ readonly timestamp: number;
2361
+ }, z.core.$ZodTypeInternals<{
2362
+ readonly id: string;
2363
+ readonly chatId: string;
2364
+ readonly creatorId: string;
2365
+ readonly name: string;
2366
+ readonly startTime: number;
2367
+ readonly endTime?: number | undefined;
2368
+ readonly description?: string | undefined;
2369
+ readonly location?: {
2370
+ readonly name?: string | undefined;
2371
+ readonly latitude?: number | undefined;
2372
+ readonly longitude?: number | undefined;
2373
+ } | undefined;
2374
+ readonly joinLink?: string | undefined;
2375
+ readonly isScheduledCall?: boolean | undefined;
2376
+ readonly extraGuestsAllowed?: boolean | undefined;
2377
+ readonly isCanceled: boolean;
2378
+ readonly fromMe: boolean;
2379
+ readonly timestamp: number;
2380
+ }, {
2381
+ readonly id: string;
2382
+ readonly chatId: string;
2383
+ readonly creatorId: string;
2384
+ readonly name: string;
2385
+ readonly startTime: number;
2386
+ readonly endTime?: number | undefined;
2387
+ readonly description?: string | undefined;
2388
+ readonly location?: {
2389
+ readonly name?: string | undefined;
2390
+ readonly latitude?: number | undefined;
2391
+ readonly longitude?: number | undefined;
2392
+ } | undefined;
2393
+ readonly joinLink?: string | undefined;
2394
+ readonly isScheduledCall?: boolean | undefined;
2395
+ readonly extraGuestsAllowed?: boolean | undefined;
2396
+ readonly isCanceled: boolean;
2397
+ readonly fromMe: boolean;
2398
+ readonly timestamp: number;
2399
+ }>>>;
2400
+ expectedImageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2401
+ expectedVideoCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2402
+ parentMsgKey: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
2403
+ associationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2404
+ isGif: z.ZodOptional<z.ZodBoolean>;
1500
2405
  timestamp: z.ZodNumber;
1501
2406
  content: z.ZodString;
1502
2407
  isGroupMsg: z.ZodBoolean;
@@ -1636,6 +2541,88 @@ declare const getStarredMessages: OpenWAMethodSchema<z.ZodObject<{
1636
2541
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
1637
2542
  mentionedJidList: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>;
1638
2543
  caption: z.ZodOptional<z.ZodString>;
2544
+ event: z.ZodOptional<z.ZodType<{
2545
+ readonly id: string;
2546
+ readonly chatId: string;
2547
+ readonly creatorId: string;
2548
+ readonly name: string;
2549
+ readonly startTime: number;
2550
+ readonly endTime?: number | undefined;
2551
+ readonly description?: string | undefined;
2552
+ readonly location?: {
2553
+ readonly name?: string | undefined;
2554
+ readonly latitude?: number | undefined;
2555
+ readonly longitude?: number | undefined;
2556
+ } | undefined;
2557
+ readonly joinLink?: string | undefined;
2558
+ readonly isScheduledCall?: boolean | undefined;
2559
+ readonly extraGuestsAllowed?: boolean | undefined;
2560
+ readonly isCanceled: boolean;
2561
+ readonly fromMe: boolean;
2562
+ readonly timestamp: number;
2563
+ }, {
2564
+ readonly id: string;
2565
+ readonly chatId: string;
2566
+ readonly creatorId: string;
2567
+ readonly name: string;
2568
+ readonly startTime: number;
2569
+ readonly endTime?: number | undefined;
2570
+ readonly description?: string | undefined;
2571
+ readonly location?: {
2572
+ readonly name?: string | undefined;
2573
+ readonly latitude?: number | undefined;
2574
+ readonly longitude?: number | undefined;
2575
+ } | undefined;
2576
+ readonly joinLink?: string | undefined;
2577
+ readonly isScheduledCall?: boolean | undefined;
2578
+ readonly extraGuestsAllowed?: boolean | undefined;
2579
+ readonly isCanceled: boolean;
2580
+ readonly fromMe: boolean;
2581
+ readonly timestamp: number;
2582
+ }, z.core.$ZodTypeInternals<{
2583
+ readonly id: string;
2584
+ readonly chatId: string;
2585
+ readonly creatorId: string;
2586
+ readonly name: string;
2587
+ readonly startTime: number;
2588
+ readonly endTime?: number | undefined;
2589
+ readonly description?: string | undefined;
2590
+ readonly location?: {
2591
+ readonly name?: string | undefined;
2592
+ readonly latitude?: number | undefined;
2593
+ readonly longitude?: number | undefined;
2594
+ } | undefined;
2595
+ readonly joinLink?: string | undefined;
2596
+ readonly isScheduledCall?: boolean | undefined;
2597
+ readonly extraGuestsAllowed?: boolean | undefined;
2598
+ readonly isCanceled: boolean;
2599
+ readonly fromMe: boolean;
2600
+ readonly timestamp: number;
2601
+ }, {
2602
+ readonly id: string;
2603
+ readonly chatId: string;
2604
+ readonly creatorId: string;
2605
+ readonly name: string;
2606
+ readonly startTime: number;
2607
+ readonly endTime?: number | undefined;
2608
+ readonly description?: string | undefined;
2609
+ readonly location?: {
2610
+ readonly name?: string | undefined;
2611
+ readonly latitude?: number | undefined;
2612
+ readonly longitude?: number | undefined;
2613
+ } | undefined;
2614
+ readonly joinLink?: string | undefined;
2615
+ readonly isScheduledCall?: boolean | undefined;
2616
+ readonly extraGuestsAllowed?: boolean | undefined;
2617
+ readonly isCanceled: boolean;
2618
+ readonly fromMe: boolean;
2619
+ readonly timestamp: number;
2620
+ }>>>;
2621
+ expectedImageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2622
+ expectedVideoCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2623
+ parentMsgKey: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
2624
+ associationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2625
+ isGif: z.ZodOptional<z.ZodBoolean>;
1639
2626
  timestamp: z.ZodNumber;
1640
2627
  content: z.ZodString;
1641
2628
  isGroupMsg: z.ZodBoolean;
@@ -1773,6 +2760,88 @@ declare const getUnsentMessages: OpenWAMethodSchema<z.ZodObject<{}, z.core.$stri
1773
2760
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
1774
2761
  mentionedJidList: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>;
1775
2762
  caption: z.ZodOptional<z.ZodString>;
2763
+ event: z.ZodOptional<z.ZodType<{
2764
+ readonly id: string;
2765
+ readonly chatId: string;
2766
+ readonly creatorId: string;
2767
+ readonly name: string;
2768
+ readonly startTime: number;
2769
+ readonly endTime?: number | undefined;
2770
+ readonly description?: string | undefined;
2771
+ readonly location?: {
2772
+ readonly name?: string | undefined;
2773
+ readonly latitude?: number | undefined;
2774
+ readonly longitude?: number | undefined;
2775
+ } | undefined;
2776
+ readonly joinLink?: string | undefined;
2777
+ readonly isScheduledCall?: boolean | undefined;
2778
+ readonly extraGuestsAllowed?: boolean | undefined;
2779
+ readonly isCanceled: boolean;
2780
+ readonly fromMe: boolean;
2781
+ readonly timestamp: number;
2782
+ }, {
2783
+ readonly id: string;
2784
+ readonly chatId: string;
2785
+ readonly creatorId: string;
2786
+ readonly name: string;
2787
+ readonly startTime: number;
2788
+ readonly endTime?: number | undefined;
2789
+ readonly description?: string | undefined;
2790
+ readonly location?: {
2791
+ readonly name?: string | undefined;
2792
+ readonly latitude?: number | undefined;
2793
+ readonly longitude?: number | undefined;
2794
+ } | undefined;
2795
+ readonly joinLink?: string | undefined;
2796
+ readonly isScheduledCall?: boolean | undefined;
2797
+ readonly extraGuestsAllowed?: boolean | undefined;
2798
+ readonly isCanceled: boolean;
2799
+ readonly fromMe: boolean;
2800
+ readonly timestamp: number;
2801
+ }, z.core.$ZodTypeInternals<{
2802
+ readonly id: string;
2803
+ readonly chatId: string;
2804
+ readonly creatorId: string;
2805
+ readonly name: string;
2806
+ readonly startTime: number;
2807
+ readonly endTime?: number | undefined;
2808
+ readonly description?: string | undefined;
2809
+ readonly location?: {
2810
+ readonly name?: string | undefined;
2811
+ readonly latitude?: number | undefined;
2812
+ readonly longitude?: number | undefined;
2813
+ } | undefined;
2814
+ readonly joinLink?: string | undefined;
2815
+ readonly isScheduledCall?: boolean | undefined;
2816
+ readonly extraGuestsAllowed?: boolean | undefined;
2817
+ readonly isCanceled: boolean;
2818
+ readonly fromMe: boolean;
2819
+ readonly timestamp: number;
2820
+ }, {
2821
+ readonly id: string;
2822
+ readonly chatId: string;
2823
+ readonly creatorId: string;
2824
+ readonly name: string;
2825
+ readonly startTime: number;
2826
+ readonly endTime?: number | undefined;
2827
+ readonly description?: string | undefined;
2828
+ readonly location?: {
2829
+ readonly name?: string | undefined;
2830
+ readonly latitude?: number | undefined;
2831
+ readonly longitude?: number | undefined;
2832
+ } | undefined;
2833
+ readonly joinLink?: string | undefined;
2834
+ readonly isScheduledCall?: boolean | undefined;
2835
+ readonly extraGuestsAllowed?: boolean | undefined;
2836
+ readonly isCanceled: boolean;
2837
+ readonly fromMe: boolean;
2838
+ readonly timestamp: number;
2839
+ }>>>;
2840
+ expectedImageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2841
+ expectedVideoCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2842
+ parentMsgKey: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
2843
+ associationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2844
+ isGif: z.ZodOptional<z.ZodBoolean>;
1776
2845
  timestamp: z.ZodNumber;
1777
2846
  content: z.ZodString;
1778
2847
  isGroupMsg: z.ZodBoolean;
@@ -1927,6 +2996,10 @@ declare const starMessage: OpenWAMethodSchema<z.ZodObject<{
1927
2996
  declare const unstarMessage: OpenWAMethodSchema<z.ZodObject<{
1928
2997
  messageId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
1929
2998
  }, z.core.$strip>, z.ZodBoolean>;
2999
+ declare const editMessage: OpenWAMethodSchema<z.ZodObject<{
3000
+ messageId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
3001
+ newContent: z.ZodString;
3002
+ }, z.core.$strip>, z.ZodBoolean>;
1930
3003
  declare const react: OpenWAMethodSchema<z.ZodObject<{
1931
3004
  messageId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
1932
3005
  emoji: z.ZodString;
@@ -1960,6 +3033,88 @@ declare const loadEarlierMessages: OpenWAMethodSchema<z.ZodObject<{
1960
3033
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
1961
3034
  mentionedJidList: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>;
1962
3035
  caption: z.ZodOptional<z.ZodString>;
3036
+ event: z.ZodOptional<z.ZodType<{
3037
+ readonly id: string;
3038
+ readonly chatId: string;
3039
+ readonly creatorId: string;
3040
+ readonly name: string;
3041
+ readonly startTime: number;
3042
+ readonly endTime?: number | undefined;
3043
+ readonly description?: string | undefined;
3044
+ readonly location?: {
3045
+ readonly name?: string | undefined;
3046
+ readonly latitude?: number | undefined;
3047
+ readonly longitude?: number | undefined;
3048
+ } | undefined;
3049
+ readonly joinLink?: string | undefined;
3050
+ readonly isScheduledCall?: boolean | undefined;
3051
+ readonly extraGuestsAllowed?: boolean | undefined;
3052
+ readonly isCanceled: boolean;
3053
+ readonly fromMe: boolean;
3054
+ readonly timestamp: number;
3055
+ }, {
3056
+ readonly id: string;
3057
+ readonly chatId: string;
3058
+ readonly creatorId: string;
3059
+ readonly name: string;
3060
+ readonly startTime: number;
3061
+ readonly endTime?: number | undefined;
3062
+ readonly description?: string | undefined;
3063
+ readonly location?: {
3064
+ readonly name?: string | undefined;
3065
+ readonly latitude?: number | undefined;
3066
+ readonly longitude?: number | undefined;
3067
+ } | undefined;
3068
+ readonly joinLink?: string | undefined;
3069
+ readonly isScheduledCall?: boolean | undefined;
3070
+ readonly extraGuestsAllowed?: boolean | undefined;
3071
+ readonly isCanceled: boolean;
3072
+ readonly fromMe: boolean;
3073
+ readonly timestamp: number;
3074
+ }, z.core.$ZodTypeInternals<{
3075
+ readonly id: string;
3076
+ readonly chatId: string;
3077
+ readonly creatorId: string;
3078
+ readonly name: string;
3079
+ readonly startTime: number;
3080
+ readonly endTime?: number | undefined;
3081
+ readonly description?: string | undefined;
3082
+ readonly location?: {
3083
+ readonly name?: string | undefined;
3084
+ readonly latitude?: number | undefined;
3085
+ readonly longitude?: number | undefined;
3086
+ } | undefined;
3087
+ readonly joinLink?: string | undefined;
3088
+ readonly isScheduledCall?: boolean | undefined;
3089
+ readonly extraGuestsAllowed?: boolean | undefined;
3090
+ readonly isCanceled: boolean;
3091
+ readonly fromMe: boolean;
3092
+ readonly timestamp: number;
3093
+ }, {
3094
+ readonly id: string;
3095
+ readonly chatId: string;
3096
+ readonly creatorId: string;
3097
+ readonly name: string;
3098
+ readonly startTime: number;
3099
+ readonly endTime?: number | undefined;
3100
+ readonly description?: string | undefined;
3101
+ readonly location?: {
3102
+ readonly name?: string | undefined;
3103
+ readonly latitude?: number | undefined;
3104
+ readonly longitude?: number | undefined;
3105
+ } | undefined;
3106
+ readonly joinLink?: string | undefined;
3107
+ readonly isScheduledCall?: boolean | undefined;
3108
+ readonly extraGuestsAllowed?: boolean | undefined;
3109
+ readonly isCanceled: boolean;
3110
+ readonly fromMe: boolean;
3111
+ readonly timestamp: number;
3112
+ }>>>;
3113
+ expectedImageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3114
+ expectedVideoCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3115
+ parentMsgKey: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
3116
+ associationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3117
+ isGif: z.ZodOptional<z.ZodBoolean>;
1963
3118
  timestamp: z.ZodNumber;
1964
3119
  content: z.ZodString;
1965
3120
  isGroupMsg: z.ZodBoolean;
@@ -2078,10 +3233,38 @@ declare const loadEarlierMessages: OpenWAMethodSchema<z.ZodObject<{
2078
3233
  declare const sendFileFromUrl: OpenWAMethodSchema<z.ZodObject<{
2079
3234
  to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
2080
3235
  url: z.ZodString;
2081
- filename: z.ZodString;
2082
- caption: z.ZodOptional<z.ZodString>;
3236
+ filename: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3237
+ options: z.ZodDefault<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3238
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
3239
+ caption: z.ZodOptional<z.ZodString>;
3240
+ viewOnce: z.ZodOptional<z.ZodBoolean>;
3241
+ type: z.ZodOptional<z.ZodLiteral<"auto">>;
3242
+ }, z.core.$strict>, z.ZodObject<{
3243
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
3244
+ caption: z.ZodOptional<z.ZodString>;
3245
+ viewOnce: z.ZodOptional<z.ZodBoolean>;
3246
+ type: z.ZodLiteral<"image">;
3247
+ }, z.core.$strict>, z.ZodObject<{
3248
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
3249
+ caption: z.ZodOptional<z.ZodString>;
3250
+ viewOnce: z.ZodOptional<z.ZodBoolean>;
3251
+ type: z.ZodLiteral<"video">;
3252
+ isGif: z.ZodOptional<z.ZodBoolean>;
3253
+ videoNote: z.ZodOptional<z.ZodBoolean>;
3254
+ }, z.core.$strict>, z.ZodObject<{
3255
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
3256
+ viewOnce: z.ZodOptional<z.ZodBoolean>;
3257
+ type: z.ZodLiteral<"audio">;
3258
+ ptt: z.ZodOptional<z.ZodBoolean>;
3259
+ }, z.core.$strict>, z.ZodObject<{
3260
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
3261
+ caption: z.ZodOptional<z.ZodString>;
3262
+ type: z.ZodLiteral<"document">;
3263
+ }, z.core.$strict>], "type">>>;
2083
3264
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2084
- }, z.core.$strip>, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
3265
+ }, z.core.$strip>, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "MessageId", "out">, z.ZodObject<{
3266
+ _serialized: z.ZodString;
3267
+ }, z.core.$loose>]>, z.ZodString]>, z.ZodBoolean]>>;
2085
3268
  //#endregion
2086
3269
  //#region src/methods/chats.d.ts
2087
3270
  declare const getAllChats: OpenWAMethodSchema<z.ZodObject<{
@@ -2292,6 +3475,12 @@ declare const isChatOnline: OpenWAMethodSchema<z.ZodObject<{
2292
3475
  }, z.core.$strip>, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2293
3476
  //#endregion
2294
3477
  //#region src/methods/contacts.d.ts
3478
+ declare const requestPhoneNumber: OpenWAMethodSchema<z.ZodObject<{
3479
+ to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
3480
+ }, z.core.$strip>, z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
3481
+ declare const sharePhoneNumber: OpenWAMethodSchema<z.ZodObject<{
3482
+ to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
3483
+ }, z.core.$strip>, z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
2295
3484
  declare const getAllContacts: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodObject<{
2296
3485
  id: z.core.$ZodBranded<z.ZodString, "ContactId", "out">;
2297
3486
  name: z.ZodOptional<z.ZodString>;
@@ -2534,24 +3723,17 @@ declare const getAllGroups: OpenWAMethodSchema<z.ZodObject<{
2534
3723
  declare const getGroupMembersId: OpenWAMethodSchema<z.ZodObject<{
2535
3724
  groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
2536
3725
  }, z.core.$strip>, z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>;
3726
+ declare const GroupInfoSchema: z.ZodObject<{
3727
+ title: z.ZodString;
3728
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3729
+ }, z.core.$loose>;
3730
+ type GroupInfo = z.infer<typeof GroupInfoSchema>;
2537
3731
  declare const getGroupInfo: OpenWAMethodSchema<z.ZodObject<{
2538
3732
  groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
2539
- }, z.core.$strip>, z.ZodNullable<z.ZodObject<{
2540
- id: z.core.$ZodBranded<z.ZodString, "GroupId", "out">;
2541
- subject: z.ZodString;
2542
- creation: z.ZodNumber;
2543
- owner: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
2544
- desc: z.ZodOptional<z.ZodString>;
2545
- descTime: z.ZodOptional<z.ZodNumber>;
2546
- descOwner: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
2547
- restrict: z.ZodOptional<z.ZodBoolean>;
2548
- announce: z.ZodOptional<z.ZodBoolean>;
2549
- participants: z.ZodArray<z.ZodObject<{
2550
- id: z.core.$ZodBranded<z.ZodString, "ContactId", "out">;
2551
- isAdmin: z.ZodBoolean;
2552
- isSuperAdmin: z.ZodOptional<z.ZodBoolean>;
2553
- }, z.core.$strip>>;
2554
- }, z.core.$loose>>>;
3733
+ }, z.core.$strip>, z.ZodNullable<z.ZodUnion<[z.ZodObject<{
3734
+ title: z.ZodString;
3735
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3736
+ }, z.core.$loose>, z.ZodString]>>>;
2555
3737
  declare const getGroupAdmins: OpenWAMethodSchema<z.ZodObject<{
2556
3738
  groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
2557
3739
  }, z.core.$strip>, z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>;
@@ -2859,6 +4041,88 @@ declare const getStories: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.Z
2859
4041
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
2860
4042
  mentionedJidList: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>;
2861
4043
  caption: z.ZodOptional<z.ZodString>;
4044
+ event: z.ZodOptional<z.ZodType<{
4045
+ readonly id: string;
4046
+ readonly chatId: string;
4047
+ readonly creatorId: string;
4048
+ readonly name: string;
4049
+ readonly startTime: number;
4050
+ readonly endTime?: number | undefined;
4051
+ readonly description?: string | undefined;
4052
+ readonly location?: {
4053
+ readonly name?: string | undefined;
4054
+ readonly latitude?: number | undefined;
4055
+ readonly longitude?: number | undefined;
4056
+ } | undefined;
4057
+ readonly joinLink?: string | undefined;
4058
+ readonly isScheduledCall?: boolean | undefined;
4059
+ readonly extraGuestsAllowed?: boolean | undefined;
4060
+ readonly isCanceled: boolean;
4061
+ readonly fromMe: boolean;
4062
+ readonly timestamp: number;
4063
+ }, {
4064
+ readonly id: string;
4065
+ readonly chatId: string;
4066
+ readonly creatorId: string;
4067
+ readonly name: string;
4068
+ readonly startTime: number;
4069
+ readonly endTime?: number | undefined;
4070
+ readonly description?: string | undefined;
4071
+ readonly location?: {
4072
+ readonly name?: string | undefined;
4073
+ readonly latitude?: number | undefined;
4074
+ readonly longitude?: number | undefined;
4075
+ } | undefined;
4076
+ readonly joinLink?: string | undefined;
4077
+ readonly isScheduledCall?: boolean | undefined;
4078
+ readonly extraGuestsAllowed?: boolean | undefined;
4079
+ readonly isCanceled: boolean;
4080
+ readonly fromMe: boolean;
4081
+ readonly timestamp: number;
4082
+ }, z.core.$ZodTypeInternals<{
4083
+ readonly id: string;
4084
+ readonly chatId: string;
4085
+ readonly creatorId: string;
4086
+ readonly name: string;
4087
+ readonly startTime: number;
4088
+ readonly endTime?: number | undefined;
4089
+ readonly description?: string | undefined;
4090
+ readonly location?: {
4091
+ readonly name?: string | undefined;
4092
+ readonly latitude?: number | undefined;
4093
+ readonly longitude?: number | undefined;
4094
+ } | undefined;
4095
+ readonly joinLink?: string | undefined;
4096
+ readonly isScheduledCall?: boolean | undefined;
4097
+ readonly extraGuestsAllowed?: boolean | undefined;
4098
+ readonly isCanceled: boolean;
4099
+ readonly fromMe: boolean;
4100
+ readonly timestamp: number;
4101
+ }, {
4102
+ readonly id: string;
4103
+ readonly chatId: string;
4104
+ readonly creatorId: string;
4105
+ readonly name: string;
4106
+ readonly startTime: number;
4107
+ readonly endTime?: number | undefined;
4108
+ readonly description?: string | undefined;
4109
+ readonly location?: {
4110
+ readonly name?: string | undefined;
4111
+ readonly latitude?: number | undefined;
4112
+ readonly longitude?: number | undefined;
4113
+ } | undefined;
4114
+ readonly joinLink?: string | undefined;
4115
+ readonly isScheduledCall?: boolean | undefined;
4116
+ readonly extraGuestsAllowed?: boolean | undefined;
4117
+ readonly isCanceled: boolean;
4118
+ readonly fromMe: boolean;
4119
+ readonly timestamp: number;
4120
+ }>>>;
4121
+ expectedImageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4122
+ expectedVideoCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4123
+ parentMsgKey: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
4124
+ associationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4125
+ isGif: z.ZodOptional<z.ZodBoolean>;
2862
4126
  timestamp: z.ZodNumber;
2863
4127
  content: z.ZodString;
2864
4128
  isGroupMsg: z.ZodBoolean;
@@ -3181,6 +4445,88 @@ declare const getOrder: OpenWAMethodSchema<z.ZodObject<{
3181
4445
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
3182
4446
  mentionedJidList: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>;
3183
4447
  caption: z.ZodOptional<z.ZodString>;
4448
+ event: z.ZodOptional<z.ZodType<{
4449
+ readonly id: string;
4450
+ readonly chatId: string;
4451
+ readonly creatorId: string;
4452
+ readonly name: string;
4453
+ readonly startTime: number;
4454
+ readonly endTime?: number | undefined;
4455
+ readonly description?: string | undefined;
4456
+ readonly location?: {
4457
+ readonly name?: string | undefined;
4458
+ readonly latitude?: number | undefined;
4459
+ readonly longitude?: number | undefined;
4460
+ } | undefined;
4461
+ readonly joinLink?: string | undefined;
4462
+ readonly isScheduledCall?: boolean | undefined;
4463
+ readonly extraGuestsAllowed?: boolean | undefined;
4464
+ readonly isCanceled: boolean;
4465
+ readonly fromMe: boolean;
4466
+ readonly timestamp: number;
4467
+ }, {
4468
+ readonly id: string;
4469
+ readonly chatId: string;
4470
+ readonly creatorId: string;
4471
+ readonly name: string;
4472
+ readonly startTime: number;
4473
+ readonly endTime?: number | undefined;
4474
+ readonly description?: string | undefined;
4475
+ readonly location?: {
4476
+ readonly name?: string | undefined;
4477
+ readonly latitude?: number | undefined;
4478
+ readonly longitude?: number | undefined;
4479
+ } | undefined;
4480
+ readonly joinLink?: string | undefined;
4481
+ readonly isScheduledCall?: boolean | undefined;
4482
+ readonly extraGuestsAllowed?: boolean | undefined;
4483
+ readonly isCanceled: boolean;
4484
+ readonly fromMe: boolean;
4485
+ readonly timestamp: number;
4486
+ }, z.core.$ZodTypeInternals<{
4487
+ readonly id: string;
4488
+ readonly chatId: string;
4489
+ readonly creatorId: string;
4490
+ readonly name: string;
4491
+ readonly startTime: number;
4492
+ readonly endTime?: number | undefined;
4493
+ readonly description?: string | undefined;
4494
+ readonly location?: {
4495
+ readonly name?: string | undefined;
4496
+ readonly latitude?: number | undefined;
4497
+ readonly longitude?: number | undefined;
4498
+ } | undefined;
4499
+ readonly joinLink?: string | undefined;
4500
+ readonly isScheduledCall?: boolean | undefined;
4501
+ readonly extraGuestsAllowed?: boolean | undefined;
4502
+ readonly isCanceled: boolean;
4503
+ readonly fromMe: boolean;
4504
+ readonly timestamp: number;
4505
+ }, {
4506
+ readonly id: string;
4507
+ readonly chatId: string;
4508
+ readonly creatorId: string;
4509
+ readonly name: string;
4510
+ readonly startTime: number;
4511
+ readonly endTime?: number | undefined;
4512
+ readonly description?: string | undefined;
4513
+ readonly location?: {
4514
+ readonly name?: string | undefined;
4515
+ readonly latitude?: number | undefined;
4516
+ readonly longitude?: number | undefined;
4517
+ } | undefined;
4518
+ readonly joinLink?: string | undefined;
4519
+ readonly isScheduledCall?: boolean | undefined;
4520
+ readonly extraGuestsAllowed?: boolean | undefined;
4521
+ readonly isCanceled: boolean;
4522
+ readonly fromMe: boolean;
4523
+ readonly timestamp: number;
4524
+ }>>>;
4525
+ expectedImageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4526
+ expectedVideoCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4527
+ parentMsgKey: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
4528
+ associationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4529
+ isGif: z.ZodOptional<z.ZodBoolean>;
3184
4530
  timestamp: z.ZodNumber;
3185
4531
  content: z.ZodString;
3186
4532
  isGroupMsg: z.ZodBoolean;
@@ -3322,6 +4668,35 @@ declare const getLicenseType: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>,
3322
4668
  "Text Story License Key": "Text Story License Key";
3323
4669
  "Video Story License Key": "Video Story License Key";
3324
4670
  }>, z.ZodLiteral<false>]>>;
4671
+ declare const getLicenseFeatures: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodType<{
4672
+ readonly status: "expired" | "invalid" | "metadata_only" | "missing" | "valid";
4673
+ readonly keyType: string | null;
4674
+ readonly expiresAt: number | null;
4675
+ readonly features: {
4676
+ readonly [x: string]: boolean;
4677
+ };
4678
+ }, {
4679
+ readonly status: "expired" | "invalid" | "metadata_only" | "missing" | "valid";
4680
+ readonly keyType: string | null;
4681
+ readonly expiresAt: number | null;
4682
+ readonly features: {
4683
+ readonly [x: string]: boolean;
4684
+ };
4685
+ }, z.core.$ZodTypeInternals<{
4686
+ readonly status: "expired" | "invalid" | "metadata_only" | "missing" | "valid";
4687
+ readonly keyType: string | null;
4688
+ readonly expiresAt: number | null;
4689
+ readonly features: {
4690
+ readonly [x: string]: boolean;
4691
+ };
4692
+ }, {
4693
+ readonly status: "expired" | "invalid" | "metadata_only" | "missing" | "valid";
4694
+ readonly keyType: string | null;
4695
+ readonly expiresAt: number | null;
4696
+ readonly features: {
4697
+ readonly [x: string]: boolean;
4698
+ };
4699
+ }>>>;
3325
4700
  declare const getUserAgent: OpenWAMethodSchema<z.ZodObject<{
3326
4701
  userAgent: z.ZodOptional<z.ZodString>;
3327
4702
  }, z.core.$strip>, z.ZodString>;
@@ -3377,6 +4752,88 @@ declare const decryptMedia: OpenWAMethodSchema<z.ZodObject<{
3377
4752
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
3378
4753
  mentionedJidList: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>;
3379
4754
  caption: z.ZodOptional<z.ZodString>;
4755
+ event: z.ZodOptional<z.ZodType<{
4756
+ readonly id: string;
4757
+ readonly chatId: string;
4758
+ readonly creatorId: string;
4759
+ readonly name: string;
4760
+ readonly startTime: number;
4761
+ readonly endTime?: number | undefined;
4762
+ readonly description?: string | undefined;
4763
+ readonly location?: {
4764
+ readonly name?: string | undefined;
4765
+ readonly latitude?: number | undefined;
4766
+ readonly longitude?: number | undefined;
4767
+ } | undefined;
4768
+ readonly joinLink?: string | undefined;
4769
+ readonly isScheduledCall?: boolean | undefined;
4770
+ readonly extraGuestsAllowed?: boolean | undefined;
4771
+ readonly isCanceled: boolean;
4772
+ readonly fromMe: boolean;
4773
+ readonly timestamp: number;
4774
+ }, {
4775
+ readonly id: string;
4776
+ readonly chatId: string;
4777
+ readonly creatorId: string;
4778
+ readonly name: string;
4779
+ readonly startTime: number;
4780
+ readonly endTime?: number | undefined;
4781
+ readonly description?: string | undefined;
4782
+ readonly location?: {
4783
+ readonly name?: string | undefined;
4784
+ readonly latitude?: number | undefined;
4785
+ readonly longitude?: number | undefined;
4786
+ } | undefined;
4787
+ readonly joinLink?: string | undefined;
4788
+ readonly isScheduledCall?: boolean | undefined;
4789
+ readonly extraGuestsAllowed?: boolean | undefined;
4790
+ readonly isCanceled: boolean;
4791
+ readonly fromMe: boolean;
4792
+ readonly timestamp: number;
4793
+ }, z.core.$ZodTypeInternals<{
4794
+ readonly id: string;
4795
+ readonly chatId: string;
4796
+ readonly creatorId: string;
4797
+ readonly name: string;
4798
+ readonly startTime: number;
4799
+ readonly endTime?: number | undefined;
4800
+ readonly description?: string | undefined;
4801
+ readonly location?: {
4802
+ readonly name?: string | undefined;
4803
+ readonly latitude?: number | undefined;
4804
+ readonly longitude?: number | undefined;
4805
+ } | undefined;
4806
+ readonly joinLink?: string | undefined;
4807
+ readonly isScheduledCall?: boolean | undefined;
4808
+ readonly extraGuestsAllowed?: boolean | undefined;
4809
+ readonly isCanceled: boolean;
4810
+ readonly fromMe: boolean;
4811
+ readonly timestamp: number;
4812
+ }, {
4813
+ readonly id: string;
4814
+ readonly chatId: string;
4815
+ readonly creatorId: string;
4816
+ readonly name: string;
4817
+ readonly startTime: number;
4818
+ readonly endTime?: number | undefined;
4819
+ readonly description?: string | undefined;
4820
+ readonly location?: {
4821
+ readonly name?: string | undefined;
4822
+ readonly latitude?: number | undefined;
4823
+ readonly longitude?: number | undefined;
4824
+ } | undefined;
4825
+ readonly joinLink?: string | undefined;
4826
+ readonly isScheduledCall?: boolean | undefined;
4827
+ readonly extraGuestsAllowed?: boolean | undefined;
4828
+ readonly isCanceled: boolean;
4829
+ readonly fromMe: boolean;
4830
+ readonly timestamp: number;
4831
+ }>>>;
4832
+ expectedImageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4833
+ expectedVideoCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4834
+ parentMsgKey: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
4835
+ associationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4836
+ isGif: z.ZodOptional<z.ZodBoolean>;
3380
4837
  timestamp: z.ZodNumber;
3381
4838
  content: z.ZodString;
3382
4839
  isGroupMsg: z.ZodBoolean;
@@ -3516,6 +4973,88 @@ declare const downloadMedia: OpenWAMethodSchema<z.ZodObject<{
3516
4973
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
3517
4974
  mentionedJidList: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>;
3518
4975
  caption: z.ZodOptional<z.ZodString>;
4976
+ event: z.ZodOptional<z.ZodType<{
4977
+ readonly id: string;
4978
+ readonly chatId: string;
4979
+ readonly creatorId: string;
4980
+ readonly name: string;
4981
+ readonly startTime: number;
4982
+ readonly endTime?: number | undefined;
4983
+ readonly description?: string | undefined;
4984
+ readonly location?: {
4985
+ readonly name?: string | undefined;
4986
+ readonly latitude?: number | undefined;
4987
+ readonly longitude?: number | undefined;
4988
+ } | undefined;
4989
+ readonly joinLink?: string | undefined;
4990
+ readonly isScheduledCall?: boolean | undefined;
4991
+ readonly extraGuestsAllowed?: boolean | undefined;
4992
+ readonly isCanceled: boolean;
4993
+ readonly fromMe: boolean;
4994
+ readonly timestamp: number;
4995
+ }, {
4996
+ readonly id: string;
4997
+ readonly chatId: string;
4998
+ readonly creatorId: string;
4999
+ readonly name: string;
5000
+ readonly startTime: number;
5001
+ readonly endTime?: number | undefined;
5002
+ readonly description?: string | undefined;
5003
+ readonly location?: {
5004
+ readonly name?: string | undefined;
5005
+ readonly latitude?: number | undefined;
5006
+ readonly longitude?: number | undefined;
5007
+ } | undefined;
5008
+ readonly joinLink?: string | undefined;
5009
+ readonly isScheduledCall?: boolean | undefined;
5010
+ readonly extraGuestsAllowed?: boolean | undefined;
5011
+ readonly isCanceled: boolean;
5012
+ readonly fromMe: boolean;
5013
+ readonly timestamp: number;
5014
+ }, z.core.$ZodTypeInternals<{
5015
+ readonly id: string;
5016
+ readonly chatId: string;
5017
+ readonly creatorId: string;
5018
+ readonly name: string;
5019
+ readonly startTime: number;
5020
+ readonly endTime?: number | undefined;
5021
+ readonly description?: string | undefined;
5022
+ readonly location?: {
5023
+ readonly name?: string | undefined;
5024
+ readonly latitude?: number | undefined;
5025
+ readonly longitude?: number | undefined;
5026
+ } | undefined;
5027
+ readonly joinLink?: string | undefined;
5028
+ readonly isScheduledCall?: boolean | undefined;
5029
+ readonly extraGuestsAllowed?: boolean | undefined;
5030
+ readonly isCanceled: boolean;
5031
+ readonly fromMe: boolean;
5032
+ readonly timestamp: number;
5033
+ }, {
5034
+ readonly id: string;
5035
+ readonly chatId: string;
5036
+ readonly creatorId: string;
5037
+ readonly name: string;
5038
+ readonly startTime: number;
5039
+ readonly endTime?: number | undefined;
5040
+ readonly description?: string | undefined;
5041
+ readonly location?: {
5042
+ readonly name?: string | undefined;
5043
+ readonly latitude?: number | undefined;
5044
+ readonly longitude?: number | undefined;
5045
+ } | undefined;
5046
+ readonly joinLink?: string | undefined;
5047
+ readonly isScheduledCall?: boolean | undefined;
5048
+ readonly extraGuestsAllowed?: boolean | undefined;
5049
+ readonly isCanceled: boolean;
5050
+ readonly fromMe: boolean;
5051
+ readonly timestamp: number;
5052
+ }>>>;
5053
+ expectedImageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5054
+ expectedVideoCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5055
+ parentMsgKey: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
5056
+ associationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5057
+ isGif: z.ZodOptional<z.ZodBoolean>;
3519
5058
  timestamp: z.ZodNumber;
3520
5059
  content: z.ZodString;
3521
5060
  isGroupMsg: z.ZodBoolean;
@@ -3997,8 +5536,328 @@ declare const sendRawMessage: OpenWAMethodSchema<z.ZodObject<{
3997
5536
  to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
3998
5537
  payload: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
3999
5538
  }, z.core.$strict>, z.ZodString>;
5539
+ //#endregion
5540
+ //#region src/methods/calls.d.ts
5541
+ declare const getCallCapabilities: OpenWAMethodSchema<z.ZodObject<any, z.core.$strip>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
5542
+ declare const getActiveCall: OpenWAMethodSchema<z.ZodObject<any, z.core.$strip>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
5543
+ declare const acceptCall: OpenWAMethodSchema<z.ZodObject<any, z.core.$strip>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
5544
+ declare const startCall: OpenWAMethodSchema<z.ZodObject<any, z.core.$strip>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
5545
+ declare const rejectCall: OpenWAMethodSchema<z.ZodObject<any, z.core.$strip>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
5546
+ declare const endCall: OpenWAMethodSchema<z.ZodObject<any, z.core.$strip>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
5547
+ declare const muteCall: OpenWAMethodSchema<z.ZodObject<any, z.core.$strip>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
5548
+ declare const clearCallAudio: OpenWAMethodSchema<z.ZodObject<any, z.core.$strip>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
5549
+ declare const setCallMedia: OpenWAMethodSchema<z.ZodObject<any, z.core.$strip>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
5550
+ declare const observeCallAudio: OpenWAMethodSchema<z.ZodObject<any, z.core.$strip>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
5551
+ declare const stopCallAudioObserver: OpenWAMethodSchema<z.ZodObject<any, z.core.$strip>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
5552
+ //#endregion
5553
+ //#region src/methods/whatsapp-events.d.ts
5554
+ declare const sendEvent: OpenWAMethodSchema<z.ZodObject<{
5555
+ to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
5556
+ event: z.ZodType<{
5557
+ readonly name: string;
5558
+ readonly startTime: number;
5559
+ readonly endTime?: number | undefined;
5560
+ readonly description?: string | undefined;
5561
+ readonly location?: string | undefined;
5562
+ readonly extraGuestsAllowed?: boolean | undefined;
5563
+ readonly callType?: "video" | "voice" | undefined;
5564
+ readonly isScheduledCall?: boolean | undefined;
5565
+ readonly requireApproval?: boolean | undefined;
5566
+ readonly quotedMsgId?: string | undefined;
5567
+ }, {
5568
+ readonly name: string;
5569
+ readonly startTime: number;
5570
+ readonly endTime?: number | undefined;
5571
+ readonly description?: string | undefined;
5572
+ readonly location?: string | undefined;
5573
+ readonly extraGuestsAllowed?: boolean | undefined;
5574
+ readonly callType?: "video" | "voice" | undefined;
5575
+ readonly isScheduledCall?: boolean | undefined;
5576
+ readonly requireApproval?: boolean | undefined;
5577
+ readonly quotedMsgId?: string | undefined;
5578
+ }, z.core.$ZodTypeInternals<{
5579
+ readonly name: string;
5580
+ readonly startTime: number;
5581
+ readonly endTime?: number | undefined;
5582
+ readonly description?: string | undefined;
5583
+ readonly location?: string | undefined;
5584
+ readonly extraGuestsAllowed?: boolean | undefined;
5585
+ readonly callType?: "video" | "voice" | undefined;
5586
+ readonly isScheduledCall?: boolean | undefined;
5587
+ readonly requireApproval?: boolean | undefined;
5588
+ readonly quotedMsgId?: string | undefined;
5589
+ }, {
5590
+ readonly name: string;
5591
+ readonly startTime: number;
5592
+ readonly endTime?: number | undefined;
5593
+ readonly description?: string | undefined;
5594
+ readonly location?: string | undefined;
5595
+ readonly extraGuestsAllowed?: boolean | undefined;
5596
+ readonly callType?: "video" | "voice" | undefined;
5597
+ readonly isScheduledCall?: boolean | undefined;
5598
+ readonly requireApproval?: boolean | undefined;
5599
+ readonly quotedMsgId?: string | undefined;
5600
+ }>>;
5601
+ }, z.core.$strip>, z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
5602
+ declare const getEvent: OpenWAMethodSchema<z.ZodObject<{
5603
+ eventId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
5604
+ }, z.core.$strip>, z.ZodNullable<z.ZodType<{
5605
+ readonly id: string;
5606
+ readonly chatId: string;
5607
+ readonly creatorId: string;
5608
+ readonly name: string;
5609
+ readonly startTime: number;
5610
+ readonly endTime?: number | undefined;
5611
+ readonly description?: string | undefined;
5612
+ readonly location?: {
5613
+ readonly name?: string | undefined;
5614
+ readonly latitude?: number | undefined;
5615
+ readonly longitude?: number | undefined;
5616
+ } | undefined;
5617
+ readonly joinLink?: string | undefined;
5618
+ readonly isScheduledCall?: boolean | undefined;
5619
+ readonly extraGuestsAllowed?: boolean | undefined;
5620
+ readonly isCanceled: boolean;
5621
+ readonly fromMe: boolean;
5622
+ readonly timestamp: number;
5623
+ }, {
5624
+ readonly id: string;
5625
+ readonly chatId: string;
5626
+ readonly creatorId: string;
5627
+ readonly name: string;
5628
+ readonly startTime: number;
5629
+ readonly endTime?: number | undefined;
5630
+ readonly description?: string | undefined;
5631
+ readonly location?: {
5632
+ readonly name?: string | undefined;
5633
+ readonly latitude?: number | undefined;
5634
+ readonly longitude?: number | undefined;
5635
+ } | undefined;
5636
+ readonly joinLink?: string | undefined;
5637
+ readonly isScheduledCall?: boolean | undefined;
5638
+ readonly extraGuestsAllowed?: boolean | undefined;
5639
+ readonly isCanceled: boolean;
5640
+ readonly fromMe: boolean;
5641
+ readonly timestamp: number;
5642
+ }, z.core.$ZodTypeInternals<{
5643
+ readonly id: string;
5644
+ readonly chatId: string;
5645
+ readonly creatorId: string;
5646
+ readonly name: string;
5647
+ readonly startTime: number;
5648
+ readonly endTime?: number | undefined;
5649
+ readonly description?: string | undefined;
5650
+ readonly location?: {
5651
+ readonly name?: string | undefined;
5652
+ readonly latitude?: number | undefined;
5653
+ readonly longitude?: number | undefined;
5654
+ } | undefined;
5655
+ readonly joinLink?: string | undefined;
5656
+ readonly isScheduledCall?: boolean | undefined;
5657
+ readonly extraGuestsAllowed?: boolean | undefined;
5658
+ readonly isCanceled: boolean;
5659
+ readonly fromMe: boolean;
5660
+ readonly timestamp: number;
5661
+ }, {
5662
+ readonly id: string;
5663
+ readonly chatId: string;
5664
+ readonly creatorId: string;
5665
+ readonly name: string;
5666
+ readonly startTime: number;
5667
+ readonly endTime?: number | undefined;
5668
+ readonly description?: string | undefined;
5669
+ readonly location?: {
5670
+ readonly name?: string | undefined;
5671
+ readonly latitude?: number | undefined;
5672
+ readonly longitude?: number | undefined;
5673
+ } | undefined;
5674
+ readonly joinLink?: string | undefined;
5675
+ readonly isScheduledCall?: boolean | undefined;
5676
+ readonly extraGuestsAllowed?: boolean | undefined;
5677
+ readonly isCanceled: boolean;
5678
+ readonly fromMe: boolean;
5679
+ readonly timestamp: number;
5680
+ }>>>>;
5681
+ declare const getEvents: OpenWAMethodSchema<z.ZodObject<{
5682
+ chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
5683
+ options: z.ZodOptional<z.ZodType<{
5684
+ readonly limit?: number | undefined;
5685
+ readonly before?: string | undefined;
5686
+ }, {
5687
+ readonly limit?: number | undefined;
5688
+ readonly before?: string | undefined;
5689
+ }, z.core.$ZodTypeInternals<{
5690
+ readonly limit?: number | undefined;
5691
+ readonly before?: string | undefined;
5692
+ }, {
5693
+ readonly limit?: number | undefined;
5694
+ readonly before?: string | undefined;
5695
+ }>>>;
5696
+ }, z.core.$strip>, z.ZodType<{
5697
+ readonly events: readonly {
5698
+ readonly id: string;
5699
+ readonly chatId: string;
5700
+ readonly creatorId: string;
5701
+ readonly name: string;
5702
+ readonly startTime: number;
5703
+ readonly endTime?: number | undefined;
5704
+ readonly description?: string | undefined;
5705
+ readonly location?: {
5706
+ readonly name?: string | undefined;
5707
+ readonly latitude?: number | undefined;
5708
+ readonly longitude?: number | undefined;
5709
+ } | undefined;
5710
+ readonly joinLink?: string | undefined;
5711
+ readonly isScheduledCall?: boolean | undefined;
5712
+ readonly extraGuestsAllowed?: boolean | undefined;
5713
+ readonly isCanceled: boolean;
5714
+ readonly fromMe: boolean;
5715
+ readonly timestamp: number;
5716
+ }[];
5717
+ readonly nextCursor: string | null;
5718
+ }, {
5719
+ readonly events: readonly {
5720
+ readonly id: string;
5721
+ readonly chatId: string;
5722
+ readonly creatorId: string;
5723
+ readonly name: string;
5724
+ readonly startTime: number;
5725
+ readonly endTime?: number | undefined;
5726
+ readonly description?: string | undefined;
5727
+ readonly location?: {
5728
+ readonly name?: string | undefined;
5729
+ readonly latitude?: number | undefined;
5730
+ readonly longitude?: number | undefined;
5731
+ } | undefined;
5732
+ readonly joinLink?: string | undefined;
5733
+ readonly isScheduledCall?: boolean | undefined;
5734
+ readonly extraGuestsAllowed?: boolean | undefined;
5735
+ readonly isCanceled: boolean;
5736
+ readonly fromMe: boolean;
5737
+ readonly timestamp: number;
5738
+ }[];
5739
+ readonly nextCursor: string | null;
5740
+ }, z.core.$ZodTypeInternals<{
5741
+ readonly events: readonly {
5742
+ readonly id: string;
5743
+ readonly chatId: string;
5744
+ readonly creatorId: string;
5745
+ readonly name: string;
5746
+ readonly startTime: number;
5747
+ readonly endTime?: number | undefined;
5748
+ readonly description?: string | undefined;
5749
+ readonly location?: {
5750
+ readonly name?: string | undefined;
5751
+ readonly latitude?: number | undefined;
5752
+ readonly longitude?: number | undefined;
5753
+ } | undefined;
5754
+ readonly joinLink?: string | undefined;
5755
+ readonly isScheduledCall?: boolean | undefined;
5756
+ readonly extraGuestsAllowed?: boolean | undefined;
5757
+ readonly isCanceled: boolean;
5758
+ readonly fromMe: boolean;
5759
+ readonly timestamp: number;
5760
+ }[];
5761
+ readonly nextCursor: string | null;
5762
+ }, {
5763
+ readonly events: readonly {
5764
+ readonly id: string;
5765
+ readonly chatId: string;
5766
+ readonly creatorId: string;
5767
+ readonly name: string;
5768
+ readonly startTime: number;
5769
+ readonly endTime?: number | undefined;
5770
+ readonly description?: string | undefined;
5771
+ readonly location?: {
5772
+ readonly name?: string | undefined;
5773
+ readonly latitude?: number | undefined;
5774
+ readonly longitude?: number | undefined;
5775
+ } | undefined;
5776
+ readonly joinLink?: string | undefined;
5777
+ readonly isScheduledCall?: boolean | undefined;
5778
+ readonly extraGuestsAllowed?: boolean | undefined;
5779
+ readonly isCanceled: boolean;
5780
+ readonly fromMe: boolean;
5781
+ readonly timestamp: number;
5782
+ }[];
5783
+ readonly nextCursor: string | null;
5784
+ }>>>;
5785
+ declare const getEventResponses: OpenWAMethodSchema<z.ZodObject<{
5786
+ eventId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
5787
+ }, z.core.$strip>, z.ZodArray<z.ZodType<{
5788
+ readonly id: string;
5789
+ readonly eventId: string;
5790
+ readonly chatId: string;
5791
+ readonly senderId: string;
5792
+ readonly response: "going" | "maybe" | "notGoing" | "unknown";
5793
+ readonly timestamp: number;
5794
+ readonly fromMe: boolean;
5795
+ }, {
5796
+ readonly id: string;
5797
+ readonly eventId: string;
5798
+ readonly chatId: string;
5799
+ readonly senderId: string;
5800
+ readonly response: "going" | "maybe" | "notGoing" | "unknown";
5801
+ readonly timestamp: number;
5802
+ readonly fromMe: boolean;
5803
+ }, z.core.$ZodTypeInternals<{
5804
+ readonly id: string;
5805
+ readonly eventId: string;
5806
+ readonly chatId: string;
5807
+ readonly senderId: string;
5808
+ readonly response: "going" | "maybe" | "notGoing" | "unknown";
5809
+ readonly timestamp: number;
5810
+ readonly fromMe: boolean;
5811
+ }, {
5812
+ readonly id: string;
5813
+ readonly eventId: string;
5814
+ readonly chatId: string;
5815
+ readonly senderId: string;
5816
+ readonly response: "going" | "maybe" | "notGoing" | "unknown";
5817
+ readonly timestamp: number;
5818
+ readonly fromMe: boolean;
5819
+ }>>>>;
5820
+ declare const editEvent: OpenWAMethodSchema<z.ZodObject<{
5821
+ eventId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
5822
+ changes: z.ZodType<{
5823
+ readonly name?: string | undefined;
5824
+ readonly startTime?: number | undefined;
5825
+ readonly endTime?: number | null | undefined;
5826
+ readonly description?: string | undefined;
5827
+ readonly location?: string | undefined;
5828
+ }, {
5829
+ readonly name?: string | undefined;
5830
+ readonly startTime?: number | undefined;
5831
+ readonly endTime?: number | null | undefined;
5832
+ readonly description?: string | undefined;
5833
+ readonly location?: string | undefined;
5834
+ }, z.core.$ZodTypeInternals<{
5835
+ readonly name?: string | undefined;
5836
+ readonly startTime?: number | undefined;
5837
+ readonly endTime?: number | null | undefined;
5838
+ readonly description?: string | undefined;
5839
+ readonly location?: string | undefined;
5840
+ }, {
5841
+ readonly name?: string | undefined;
5842
+ readonly startTime?: number | undefined;
5843
+ readonly endTime?: number | null | undefined;
5844
+ readonly description?: string | undefined;
5845
+ readonly location?: string | undefined;
5846
+ }>>;
5847
+ }, z.core.$strip>, z.ZodBoolean>;
5848
+ declare const cancelEvent: OpenWAMethodSchema<z.ZodObject<{
5849
+ eventId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
5850
+ }, z.core.$strip>, z.ZodBoolean>;
5851
+ declare const respondToEvent: OpenWAMethodSchema<z.ZodObject<{
5852
+ eventId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
5853
+ response: z.ZodEnum<{
5854
+ going: "going";
5855
+ maybe: "maybe";
5856
+ notGoing: "notGoing";
5857
+ }>;
5858
+ }, z.core.$strip>, z.ZodBoolean>;
4000
5859
  declare namespace index_d_exports {
4001
- export { SendInteractiveInputSchema, SendRawMessageInputSchema, SendTextResultSchema, addLabel, addParticipant, approveGroupJoinRequest, archiveChat, blockContact, checkNumberStatus, checkReadReceipts, clearChat, createGroup, decryptMedia, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, downloadMedia, forwardMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getKickedGroups, getLicenseType, getLoadedMessageCount, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMyLastMessage, getNumberProfile, getOrder, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, healthCheck, isChatOnline, isPlugged, joinGroupViaLink, leaveGroup, loadEarlierMessages, markAsRead, markAsUnread, muteChat, pinChat, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, rejectGroupJoinRequest, removeLabel, removeParticipant, revokeGroupInviteLink, sendAdvancedButtons, sendAudio, sendBanner, sendButtons, sendContact, sendFile, sendFileFromUrl, sendImage, sendInteractive, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendRawMessage, sendReplyWithMentions, sendSeen, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, starMessage, unarchiveChat, unblockContact, unmuteChat, unpinChat, unstarMessage };
5860
+ export { AlbumMedia, AlbumMediaSchema, AlbumSendResult, AlbumSendResultSchema, GroupInfo, GroupInfoSchema, SendInteractiveInputSchema, SendRawMessageInputSchema, SendTextResultSchema, StickerJobSchema, acceptCall, addLabel, addParticipant, approveGroupJoinRequest, archiveChat, blockContact, cancelEvent, checkNumberStatus, checkReadReceipts, clearCallAudio, clearChat, createGroup, decryptMedia, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, downloadMedia, editEvent, editMessage, endCall, forwardMessages, getActiveCall, getAlbumMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getCallCapabilities, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getEvent, getEventResponses, getEvents, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getKickedGroups, getLicenseFeatures, getLicenseType, getLoadedMessageCount, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMyLastMessage, getNumberProfile, getOrder, getPollResults, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, healthCheck, isChatOnline, isPlugged, joinGroupViaLink, leaveGroup, loadEarlierMessages, markAsRead, markAsUnread, muteCall, muteChat, observeCallAudio, pinChat, pinMessage, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, rejectCall, rejectGroupJoinRequest, removeLabel, removeParticipant, requestPhoneNumber, respondToEvent, revokeGroupInviteLink, sendAdvancedButtons, sendAlbum, sendAudio, sendBanner, sendButtons, sendContact, sendEvent, sendFile, sendFileFromUrl, sendImage, sendInteractive, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendRawMessage, sendReplyWithMentions, sendSeen, sendSticker, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, setCallMedia, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, sharePhoneNumber, starMessage, startCall, stopCallAudioObserver, unarchiveChat, unblockContact, unmuteChat, unpinChat, unpinMessage, unstarMessage, voteOnPoll };
4002
5861
  }
4003
5862
  //#endregion
4004
5863
  //#region src/events/registry.d.ts
@@ -4016,6 +5875,7 @@ type EventStatus = 'stable' | 'beta' | 'deprecated' | 'experimental';
4016
5875
  interface EventMetadata {
4017
5876
  eventName: string;
4018
5877
  legacyName: string;
5878
+ aliases?: string[];
4019
5879
  description?: string;
4020
5880
  namespace?: string;
4021
5881
  status?: EventStatus;
@@ -4085,9 +5945,92 @@ declare const chatStateEvent: z.ZodFunction<any, any>;
4085
5945
  declare const logoutEvent: z.ZodFunction<any, any>;
4086
5946
  //#endregion
4087
5947
  //#region src/events/groups.d.ts
5948
+ declare const ParticipantChangeSchema: z.ZodObject<{
5949
+ groupId: z.core.$ZodBranded<z.ZodString, "GroupId", "out">;
5950
+ action: z.ZodEnum<{
5951
+ add: "add";
5952
+ demote: "demote";
5953
+ invite: "invite";
5954
+ leave: "leave";
5955
+ promote: "promote";
5956
+ remove: "remove";
5957
+ }>;
5958
+ participantIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
5959
+ by: z.ZodOptional<z.ZodString>;
5960
+ who: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
5961
+ chat: z.ZodOptional<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "GroupId", "out">, z.ZodObject<{
5962
+ _serialized: z.core.$ZodBranded<z.ZodString, "GroupId", "out">;
5963
+ }, z.core.$loose>]>>;
5964
+ }, z.core.$loose>;
5965
+ type ParticipantChange = z.infer<typeof ParticipantChangeSchema>;
5966
+ declare const ParticipantChangePatchSchema: z.ZodPipe<z.ZodPipe<z.ZodObject<{
5967
+ action: z.ZodEnum<{
5968
+ add: "add";
5969
+ demote: "demote";
5970
+ invite: "invite";
5971
+ leave: "leave";
5972
+ promote: "promote";
5973
+ remove: "remove";
5974
+ }>;
5975
+ who: z.core.$ZodBranded<z.ZodString, "ContactId", "out">;
5976
+ chat: z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "GroupId", "out">, z.ZodObject<{
5977
+ _serialized: z.core.$ZodBranded<z.ZodString, "GroupId", "out">;
5978
+ }, z.core.$loose>]>;
5979
+ by: z.ZodOptional<z.ZodString>;
5980
+ }, z.core.$loose>, z.ZodTransform<{
5981
+ action: "add" | "demote" | "invite" | "leave" | "promote" | "remove";
5982
+ who: string & z.$brand<"ContactId">;
5983
+ chat: {
5984
+ [x: string]: unknown;
5985
+ _serialized: string & z.$brand<"GroupId">;
5986
+ } | (string & z.$brand<"GroupId">);
5987
+ by?: string | undefined;
5988
+ groupId: string & z.$brand<"GroupId">;
5989
+ participantIds: (string & z.$brand<"ContactId">)[];
5990
+ }, {
5991
+ [x: string]: unknown;
5992
+ action: "add" | "demote" | "invite" | "leave" | "promote" | "remove";
5993
+ who: string & z.$brand<"ContactId">;
5994
+ chat: {
5995
+ [x: string]: unknown;
5996
+ _serialized: string & z.$brand<"GroupId">;
5997
+ } | (string & z.$brand<"GroupId">);
5998
+ by?: string | undefined;
5999
+ }>>, z.core.$ZodType<any, {
6000
+ action: "add" | "demote" | "invite" | "leave" | "promote" | "remove";
6001
+ who: string & z.$brand<"ContactId">;
6002
+ chat: {
6003
+ [x: string]: unknown;
6004
+ _serialized: string & z.$brand<"GroupId">;
6005
+ } | (string & z.$brand<"GroupId">);
6006
+ by?: string | undefined;
6007
+ groupId: string & z.$brand<"GroupId">;
6008
+ participantIds: (string & z.$brand<"ContactId">)[];
6009
+ }, z.core.$ZodTypeInternals<any, {
6010
+ action: "add" | "demote" | "invite" | "leave" | "promote" | "remove";
6011
+ who: string & z.$brand<"ContactId">;
6012
+ chat: {
6013
+ [x: string]: unknown;
6014
+ _serialized: string & z.$brand<"GroupId">;
6015
+ } | (string & z.$brand<"GroupId">);
6016
+ by?: string | undefined;
6017
+ groupId: string & z.$brand<"GroupId">;
6018
+ participantIds: (string & z.$brand<"ContactId">)[];
6019
+ }>>>;
4088
6020
  declare const participantsChangedEvent: z.ZodFunction<any, any>;
4089
6021
  declare const addedToGroupEvent: z.ZodFunction<any, any>;
4090
6022
  //#endregion
6023
+ //#region src/events/calls.d.ts
6024
+ declare const incomingCallEvent: import("zod").ZodFunction<any, any>;
6025
+ declare const callStateEvent: import("zod").ZodFunction<any, any>;
6026
+ //#endregion
6027
+ //#region src/events/whatsapp-events.d.ts
6028
+ declare const whatsappEvent: import("zod").ZodFunction<any, any>;
6029
+ declare const eventResponseEvent: import("zod").ZodFunction<any, any>;
6030
+ //#endregion
6031
+ //#region src/events/polls.d.ts
6032
+ declare const pollVoteEvent: import("zod").ZodFunction<any, any>;
6033
+ //#endregion
4091
6034
  //#region src/codecs.d.ts
4092
6035
  declare const chatIdCodec: {
4093
6036
  decode: (input: string) => string;
@@ -4725,5 +6668,396 @@ declare const InteractiveResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4725
6668
  type FormResponse = z.infer<typeof FormResponseSchema>;
4726
6669
  type InteractiveResponse = z.infer<typeof InteractiveResponseSchema>;
4727
6670
  //#endregion
4728
- export { statusTextParam as $, CloudUploadOptions as $a, LLMMessage as $i, getGroupInfo as $n, react as $r, QueueOptions as $t, audioDataParam as A, GroupChatId as Aa, CartItemSchema as Ai, addLabel as An, getChat as Ar, hexColorCodec as At, imageDataParam as B, MessageAck as Ba, CommunityParticipantIdsSchema as Bi, postVideoStatus as Bn, unpinChat as Br, chatStateEvent as Bt, LinkActionSchema as C, ChatSchema as Ca, starMessage as Ci, isPlugged as Cn, ViewportSchema as Co, getProfilePicture as Cr, createFileCodec as Ct, NativeContentSchema as D, Content as Da, BusinessProfile as Di, getBusinessProducts as Dn, deleteChat as Dr, fileToStreamCodec as Dt, NativeActionSchema as E, ContactSchema as Ea, successResponseSchema as Ei, setProfilePicture as En, validateConfig as Eo, clearChat as Er, fileToDataUrlCodec as Et, contentParam as F, Id as Fa, CommunityAdmins as Fi, deleteStatus as Fn, muteChat as Fr, unixSecondsToDate as Ft, longitudeParam as G, MessageTypes as Ga, FeatureFlags as Gi, getCommunityParticipantIds as Gn, getMessageById as Gr, formResponseEvent as Gt, includeNotificationsParam as H, MessageIdReturn as Ha, CommunityParticipantsSchema as Hi, getCommunityAdminIds as Hn, deleteMessage as Hr, stateChangedEvent as Ht, documentDataParam as I, IdSchema as Ia, CommunityAdminsSchema as Ii, getStatus as In, pinChat as Ir, urlToDataUrlCodec as It, messageIdsParam as J, SimpleListener as Ja, GroupCreationResultSchema as Ji, approveGroupJoinRequest as Jn, getMyLastMessage as Jr, messageEvent as Jt, mentionedJidListParam as K, SerializedMessageId as Ka, FeatureFlagsSchema as Ki, getCommunityParticipants as Kn, getMessageInfo as Kr, interactiveResponseEvent as Kt, fileDataParam as L, Location as La, CommunityMetadata as Li, getStories as Ln, setChatEphemeral as Lr, addedToGroupEvent as Lt, chatIdParam as M, GroupId as Ma, CommonGroupSchema as Mi, getChatsByLabel as Mn, isChatOnline as Mr, jsonStringCodec as Mt, communityIdParam as N, GroupMetadata as Na, CommunityAdminIds as Ni, removeLabel as Nn, markAsRead as Nr, messageIdCodec as Nt, ReplyActionSchema as O, DataURL as Oa, BusinessProfileSchema as Oi, getBusinessProfile as On, getAllChatIds as Or, fileToTempPathCodec as Ot, contactIdParam as P, GroupMetadataSchema as Pa, CommunityAdminIdsSchema as Pi, deleteAllStatus as Pn, markAsUnread as Pr, unixMillisToDate as Pt, skipMyMessagesParam as Q, CLOUD_PROVIDERS as Qa, HostAccountSchema as Qi, getGroupAdmins as Qn, loadEarlierMessages as Qr, EventStatus as Qt, filenameParam as R, LocationSchema as Ra, CommunityMetadataSchema as Ri, postImageStatus as Rn, unarchiveChat as Rr, participantsChangedEvent as Rt, JsonValueSchema as S, ChatId as Sa, sendYouTubeLink as Si, healthCheck as Sn, Viewport as So, getNumberProfile as Sr, contactIdCodec as St, ListRowSchema as T, ContactId as Ta, outputJsonSchema as Ti, setMyStatus as Tn, parseConfig as To, archiveChat as Tr, fileToBufferCodec as Tt, latitudeParam as U, MessageIdReturnSchema as Ua, ContactStatus as Ui, getCommunityAdmins as Un, forwardMessages as Ur, ackEvent as Ut, includeMeParam as V, MessageId as Va, CommunityParticipants as Vi, getAllCommunities as Vn, SendTextResultSchema as Vr, logoutEvent as Vt, locationNameParam as W, MessageSchema as Wa, ContactStatusSchema as Wi, getCommunityInfo as Wn, getAllMessages as Wr, anyMessageEvent as Wt, nameParam as X, ClientConfigSchema as Xa, HealthCheckSchema as Xi, demoteParticipant as Xn, getUnsentMessages as Xr, EventDefinition as Xt, messageOptionsParam as Y, ClientConfig as Ya, HealthCheck as Yi, createGroup as Yn, getStarredMessages as Yr, reactionEvent as Yt, onlyLocalParam as Z, migrateV4Config as Za, HostAccount as Zi, getAllGroups as Zn, getVCards as Zr, EventMetadata as Zt, InteractiveHeaderSchema as _, ProductSchema as _a, sendSeen as _i, getMe as _n, S3SyncSchema as _o, checkReadReceipts as _r, MessageIdSchema as _t, CarouselContentSchema as a, MessageInfoSchema as aa, sendFile as ai, SendInteractiveInputSchema as an, DevTools as ao, leaveGroup as ar, withNewMessagesOnlyParam as at, JsonObjectSchema as b, Base64 as ba, sendVCard as bi, getUserAgent as bn, StrictConfig as bo, getCommonGroups as br, base64ToDataUrlCodec as bt, FormQuestion as c, NumberCheck as ca, sendLinkWithAutoPreview as ci, sendRawMessage as cn, LoggingTransportSchema as co, removeParticipant as cr, ChatIdSchema as ct, FormResponseSchema as d, NumberProfileSchema as da, sendMessageWithThumb as di, getBatteryLevel as dn, PartialConfig as do, setGroupEditToAdminsOnly as dr, FileToDataUrlSchema as dt, LLMMessageSchema as ea, sendAdvancedButtons as ei, QueueOptionsSchema as en, CloudUploadOptionsSchema as eo, getGroupInviteLink as er, stickerDataParam as et, InteractiveAction as f, Order as fa, sendMultipleContacts as fi, getConnectionState as fn, PartialConfigSchema as fo, setGroupIcon as fr, GroupIdCodecSchema as ft, InteractiveHeader as g, Product as ga, sendReplyWithMentions as gi, getLoadedMessageCount as gn, S3Sync as go, checkNumberStatus as gr, MessageIdCodecSchema as gt, InteractiveContentSchema as h, ProcessStatsSchema as ha, sendPtt as hi, getLicenseType as hn, QRFormat as ho, blockContact as hr, IsoDatetimeToDateSchema as ht, CarouselCardSchema as i, MessageInfo as ia, sendContact as ii, index_d_exports as in, DeepPartialConfig as io, joinGroupViaLink as ir, waitForIdParam as it, captionParam as j, GroupChatIdSchema as ja, CommonGroup as ji, getAllLabels as jn, getChatWithNonContacts as jr, isoDatetimeToDate as jt, defineInteractiveMessage as k, DataURLSchema as ka, CartItem as ki, getOrder as kn, getAllChats as kr, groupIdCodec as kt, FormQuestionSchema as l, NumberCheckSchema as la, sendListMessage as li, decryptMedia as ln, NotificationLanguage as lo, revokeGroupInviteLink as lr, ContactIdCodecSchema as lt, InteractiveContent as m, ProcessStats as ma, sendPoll as mi, getHostNumber as mn, ProxyServerCredentialsSchema as mo, setGroupToAdminsOnly as mr, HexColorSchema as mt, ButtonsContentSchema as n, LabelSchema as na, sendBanner as ni, defineListenerV2 as nn, ConfigSchema as no, getGroupMembersId as nr, userAgentParam as nt, CopyActionSchema as o, MessageInteraction as oa, sendFileFromUrl as oi, SendRawMessageInputSchema as on, DevToolsSchema as oo, promoteParticipant as or, Base64ToDataUrlSchema as ot, InteractiveActionSchema as p, OrderSchema as pa, sendPaymentRequest as pi, getFeatures as pn, ProxyServerCredentials as po, setGroupTitle as pr, GroupIdSchema as pt, messageIdParam as q, SerializedMessageIdSchema as qa, GroupCreationResult as qi, addParticipant as qn, getMessagesForLLM as qr, messageDeletedEvent as qt, CallActionSchema as r, LicenseTypeSchema as ra, sendButtons as ri, eventRegistry as rn, DIRECTORY_STRATEGY as ro, getKickedGroups as rr, videoDataParam as rt, FormContentSchema as s, MessageInteractionSchema as sa, sendImage as si, sendInteractive as sn, LoggingTransport as so, rejectGroupJoinRequest as sr, ChatIdCodecSchema as st, BookingContentSchema as t, Label as ta, sendAudio as ti, QueueOverloadStrategy as tn, Config as to, getGroupMembers as tr, toParam as tt, FormResponse as u, NumberProfile as ua, sendLocation as ui, downloadMedia as un, OnError as uo, setGroupDescription as ur, ContactIdSchema as ut, InteractiveResponse as v, Story as va, sendText as vi, getProcessStats as vn, SessionData as vo, getAllContacts as vr, UnixMillisToDateSchema as vt, ListContentSchema as w, Contact as wa, unstarMessage as wi, setMyName as wn, getDefaultConfig as wo, unblockContact as wr, fileToBase64Codec as wt, JsonValue as x, Chat as xa, sendVideoAsGif as xi, getWAVersion as xn, StrictConfigSchema as xo, getContact as xr, chatIdCodec as xt, InteractiveResponseSchema as y, StorySchema as ya, sendTextWithMentions as yi, getSnapshot as yn, SessionDataSchema as yo, getBlockedIds as yr, UnixSecondsToDateSchema as yt, groupIdParam as z, Message as za, CommunityParticipantIds as zi, postTextStatus as zn, unmuteChat as zr, StateEnum as zt };
4729
- //# sourceMappingURL=index-C9Ad0lEr.d.cts.map
6671
+ //#region src/calling.d.ts
6672
+ declare const RawAudioFormatSchema: Schema.Struct<{
6673
+ readonly encoding: Schema.Literals<readonly ["pcm16le", "float32le"]>;
6674
+ readonly sampleRate: Schema.Number;
6675
+ readonly channels: Schema.Literals<readonly [1, 2]>;
6676
+ }>;
6677
+ declare const MediaDescriptorSchema: Schema.Struct<{
6678
+ readonly kind: Schema.Literals<readonly ["file", "url", "device", "remote"]>;
6679
+ readonly path: Schema.optional<Schema.String>;
6680
+ readonly url: Schema.optional<Schema.String>;
6681
+ readonly deviceId: Schema.optional<Schema.String>;
6682
+ readonly raw: Schema.optional<Schema.Struct<{
6683
+ readonly encoding: Schema.Literals<readonly ["pcm16le", "float32le"]>;
6684
+ readonly sampleRate: Schema.Number;
6685
+ readonly channels: Schema.Literals<readonly [1, 2]>;
6686
+ }>>;
6687
+ readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
6688
+ readonly overwrite: Schema.optional<Schema.Boolean>;
6689
+ readonly loop: Schema.optional<Schema.Boolean>;
6690
+ readonly remoteId: Schema.optional<Schema.String>;
6691
+ }>;
6692
+ declare const CallMediaOptionsSchema: Schema.Struct<{
6693
+ readonly microphone: Schema.optional<Schema.Unknown>;
6694
+ readonly speaker: Schema.optional<Schema.Unknown>;
6695
+ readonly camera: Schema.optional<Schema.Unknown>;
6696
+ readonly onMediaFailure: Schema.optional<Schema.Literals<readonly ["end", "keep-open"]>>;
6697
+ }>;
6698
+ declare const CallIdentitySchema: Schema.Struct<{
6699
+ readonly id: Schema.String;
6700
+ readonly sessionId: Schema.String;
6701
+ readonly generation: Schema.String;
6702
+ }>;
6703
+ declare const CallEndReasonSchema: Schema.Struct<{
6704
+ readonly code: Schema.String;
6705
+ readonly message: Schema.String;
6706
+ readonly source: Schema.Literals<readonly ["local", "media", "license", "session", "whatsapp"]>;
6707
+ }>;
6708
+ declare const CallSnapshotSchema: Schema.Struct<{
6709
+ readonly id: Schema.String;
6710
+ readonly sessionId: Schema.String;
6711
+ readonly generation: Schema.String;
6712
+ readonly peer: Schema.String;
6713
+ readonly state: Schema.String;
6714
+ readonly direction: Schema.Literals<readonly ["incoming", "outgoing"]>;
6715
+ readonly video: Schema.Boolean;
6716
+ readonly terminal: Schema.Boolean;
6717
+ readonly observedAt: Schema.Number;
6718
+ readonly endReason: Schema.optional<Schema.Struct<{
6719
+ readonly code: Schema.String;
6720
+ readonly message: Schema.String;
6721
+ readonly source: Schema.Literals<readonly ["local", "media", "license", "session", "whatsapp"]>;
6722
+ }>>;
6723
+ readonly media: Schema.optional<Schema.Struct<{
6724
+ readonly state: Schema.Literals<readonly ["attached", "ended"]>;
6725
+ readonly reason: Schema.optional<Schema.String>;
6726
+ }>>;
6727
+ }>;
6728
+ declare const CallReasonSchema: Schema.Struct<{
6729
+ readonly code: Schema.String;
6730
+ readonly message: Schema.String;
6731
+ readonly status: Schema.Number;
6732
+ }>;
6733
+ declare const CallActionResultSchema: Schema.Union<readonly [Schema.Struct<{
6734
+ readonly ok: Schema.Literal<true>;
6735
+ readonly status: Schema.Literal<"requested">;
6736
+ readonly callId: Schema.optional<Schema.String>;
6737
+ }>, Schema.Struct<{
6738
+ readonly ok: Schema.Literal<false>;
6739
+ readonly status: Schema.Literals<readonly ["unavailable", "failed", "unknown"]>;
6740
+ readonly reason: Schema.Struct<{
6741
+ readonly code: Schema.String;
6742
+ readonly message: Schema.String;
6743
+ readonly status: Schema.Number;
6744
+ }>;
6745
+ readonly callId: Schema.optional<Schema.String>;
6746
+ }>]>;
6747
+ declare const CallCapabilitiesSchema: Schema.Struct<{
6748
+ readonly control: Schema.Boolean;
6749
+ readonly audio: Schema.Boolean;
6750
+ readonly video: Schema.Boolean;
6751
+ readonly reason: Schema.optional<Schema.Struct<{
6752
+ readonly code: Schema.String;
6753
+ readonly message: Schema.String;
6754
+ readonly status: Schema.Number;
6755
+ }>>;
6756
+ }>;
6757
+ type CallIdentity = typeof CallIdentitySchema.Type;
6758
+ type CallSnapshot = typeof CallSnapshotSchema.Type;
6759
+ type CallEndReason = typeof CallEndReasonSchema.Type;
6760
+ type CallActionResult = typeof CallActionResultSchema.Type;
6761
+ type CallCapabilities = typeof CallCapabilitiesSchema.Type;
6762
+ type CallAudioObserver = {
6763
+ ok: true;
6764
+ status: 'attached';
6765
+ stop(): Promise<void>;
6766
+ };
6767
+ interface Call extends CallSnapshot {
6768
+ accept(microphone?: AudioInput | CallMediaOptions, speaker?: AudioOutput, camera?: VideoInput): Promise<CallActionResult>;
6769
+ reject(): Promise<CallActionResult>;
6770
+ end(): Promise<CallActionResult>;
6771
+ mute(): Promise<CallActionResult>;
6772
+ unmute(): Promise<CallActionResult>;
6773
+ clearAudio(): Promise<CallActionResult>;
6774
+ setMedia(options: CallMediaOptions): Promise<CallActionResult>;
6775
+ observeAudio(speaker: AudioOutput): Promise<CallAudioObserver | Exclude<CallActionResult, {
6776
+ ok: true;
6777
+ }>>;
6778
+ }
6779
+ //#endregion
6780
+ //#region src/license.d.ts
6781
+ declare const LicenseFeaturesSchema: Schema.Struct<{
6782
+ readonly status: Schema.Literals<readonly ["valid", "missing", "invalid", "expired", "metadata_only"]>;
6783
+ readonly keyType: Schema.NullOr<Schema.String>;
6784
+ readonly expiresAt: Schema.NullOr<Schema.Number>;
6785
+ readonly features: Schema.$Record<Schema.String, Schema.Boolean>;
6786
+ }>;
6787
+ type LicenseFeatures = typeof LicenseFeaturesSchema.Type;
6788
+ //#endregion
6789
+ //#region src/whatsapp-events.d.ts
6790
+ declare const EventInputSchema: Schema.Struct<{
6791
+ readonly name: Schema.String;
6792
+ readonly startTime: Schema.Number;
6793
+ readonly endTime: Schema.optional<Schema.Number>;
6794
+ readonly description: Schema.optional<Schema.String>;
6795
+ readonly location: Schema.optional<Schema.String>;
6796
+ readonly extraGuestsAllowed: Schema.optional<Schema.Boolean>;
6797
+ readonly callType: Schema.optional<Schema.Literals<readonly ["voice", "video"]>>;
6798
+ readonly isScheduledCall: Schema.optional<Schema.Boolean>;
6799
+ readonly requireApproval: Schema.optional<Schema.Boolean>;
6800
+ readonly quotedMsgId: Schema.optional<Schema.String>;
6801
+ }>;
6802
+ type EventInput = typeof EventInputSchema.Type;
6803
+ declare function validateEventInput(input: unknown): EventInput;
6804
+ declare const EventUpdateSchema: Schema.Struct<{
6805
+ readonly name: Schema.optional<Schema.String>;
6806
+ readonly startTime: Schema.optional<Schema.Number>;
6807
+ readonly endTime: Schema.optional<Schema.NullOr<Schema.Number>>;
6808
+ readonly description: Schema.optional<Schema.String>;
6809
+ readonly location: Schema.optional<Schema.String>;
6810
+ }>;
6811
+ type EventUpdate = typeof EventUpdateSchema.Type;
6812
+ declare function validateEventUpdate(input: unknown): EventUpdate;
6813
+ declare const WhatsAppEventSchema: Schema.Struct<{
6814
+ readonly id: Schema.String;
6815
+ readonly chatId: Schema.String;
6816
+ readonly creatorId: Schema.String;
6817
+ readonly name: Schema.String;
6818
+ readonly startTime: Schema.Number;
6819
+ readonly endTime: Schema.optional<Schema.Number>;
6820
+ readonly description: Schema.optional<Schema.String>;
6821
+ readonly location: Schema.optional<Schema.Struct<{
6822
+ readonly name: Schema.optional<Schema.String>;
6823
+ readonly latitude: Schema.optional<Schema.Number>;
6824
+ readonly longitude: Schema.optional<Schema.Number>;
6825
+ }>>;
6826
+ readonly joinLink: Schema.optional<Schema.String>;
6827
+ readonly isScheduledCall: Schema.optional<Schema.Boolean>;
6828
+ readonly extraGuestsAllowed: Schema.optional<Schema.Boolean>;
6829
+ readonly isCanceled: Schema.Boolean;
6830
+ readonly fromMe: Schema.Boolean;
6831
+ readonly timestamp: Schema.Number;
6832
+ }>;
6833
+ type WhatsAppEvent = typeof WhatsAppEventSchema.Type;
6834
+ declare const EventResponseTypeSchema: Schema.Literals<readonly ["going", "notGoing", "maybe", "unknown"]>;
6835
+ type EventResponseType = typeof EventResponseTypeSchema.Type;
6836
+ declare const EventResponseSchema: Schema.Struct<{
6837
+ readonly id: Schema.String;
6838
+ readonly eventId: Schema.String;
6839
+ readonly chatId: Schema.String;
6840
+ readonly senderId: Schema.String;
6841
+ readonly response: Schema.Literals<readonly ["going", "notGoing", "maybe", "unknown"]>;
6842
+ readonly timestamp: Schema.Number;
6843
+ readonly fromMe: Schema.Boolean;
6844
+ }>;
6845
+ type EventResponse = typeof EventResponseSchema.Type;
6846
+ declare const EventListOptionsSchema: Schema.Struct<{
6847
+ readonly limit: Schema.optional<Schema.Number>;
6848
+ readonly before: Schema.optional<Schema.String>;
6849
+ }>;
6850
+ type EventListOptions = typeof EventListOptionsSchema.Type;
6851
+ declare const EventPageSchema: Schema.Struct<{
6852
+ readonly events: Schema.$Array<Schema.Struct<{
6853
+ readonly id: Schema.String;
6854
+ readonly chatId: Schema.String;
6855
+ readonly creatorId: Schema.String;
6856
+ readonly name: Schema.String;
6857
+ readonly startTime: Schema.Number;
6858
+ readonly endTime: Schema.optional<Schema.Number>;
6859
+ readonly description: Schema.optional<Schema.String>;
6860
+ readonly location: Schema.optional<Schema.Struct<{
6861
+ readonly name: Schema.optional<Schema.String>;
6862
+ readonly latitude: Schema.optional<Schema.Number>;
6863
+ readonly longitude: Schema.optional<Schema.Number>;
6864
+ }>>;
6865
+ readonly joinLink: Schema.optional<Schema.String>;
6866
+ readonly isScheduledCall: Schema.optional<Schema.Boolean>;
6867
+ readonly extraGuestsAllowed: Schema.optional<Schema.Boolean>;
6868
+ readonly isCanceled: Schema.Boolean;
6869
+ readonly fromMe: Schema.Boolean;
6870
+ readonly timestamp: Schema.Number;
6871
+ }>>;
6872
+ readonly nextCursor: Schema.NullOr<Schema.String>;
6873
+ }>;
6874
+ type EventPage = typeof EventPageSchema.Type;
6875
+ declare const decodeWhatsAppEvent: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => {
6876
+ readonly id: string;
6877
+ readonly chatId: string;
6878
+ readonly creatorId: string;
6879
+ readonly name: string;
6880
+ readonly startTime: number;
6881
+ readonly endTime?: number | undefined;
6882
+ readonly description?: string | undefined;
6883
+ readonly location?: {
6884
+ readonly name?: string | undefined;
6885
+ readonly latitude?: number | undefined;
6886
+ readonly longitude?: number | undefined;
6887
+ } | undefined;
6888
+ readonly joinLink?: string | undefined;
6889
+ readonly isScheduledCall?: boolean | undefined;
6890
+ readonly extraGuestsAllowed?: boolean | undefined;
6891
+ readonly isCanceled: boolean;
6892
+ readonly fromMe: boolean;
6893
+ readonly timestamp: number;
6894
+ };
6895
+ declare const decodeEventResponse: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => {
6896
+ readonly id: string;
6897
+ readonly eventId: string;
6898
+ readonly chatId: string;
6899
+ readonly senderId: string;
6900
+ readonly response: "going" | "maybe" | "notGoing" | "unknown";
6901
+ readonly timestamp: number;
6902
+ readonly fromMe: boolean;
6903
+ };
6904
+ declare const serializeWhatsAppEvent: (event: WhatsAppEvent) => string;
6905
+ declare const deserializeWhatsAppEvent: (json: string) => WhatsAppEvent;
6906
+ declare const serializeEventResponse: (response: EventResponse) => string;
6907
+ declare const deserializeEventResponse: (json: string) => EventResponse;
6908
+ //#endregion
6909
+ //#region src/media-options.d.ts
6910
+ declare const ImageSendOptionsSchema: z.ZodObject<{
6911
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
6912
+ caption: z.ZodOptional<z.ZodString>;
6913
+ viewOnce: z.ZodOptional<z.ZodBoolean>;
6914
+ type: z.ZodLiteral<"image">;
6915
+ }, z.core.$strict>;
6916
+ declare const VideoSendOptionsSchema: z.ZodObject<{
6917
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
6918
+ caption: z.ZodOptional<z.ZodString>;
6919
+ viewOnce: z.ZodOptional<z.ZodBoolean>;
6920
+ type: z.ZodLiteral<"video">;
6921
+ isGif: z.ZodOptional<z.ZodBoolean>;
6922
+ videoNote: z.ZodOptional<z.ZodBoolean>;
6923
+ }, z.core.$strict>;
6924
+ declare const AudioSendOptionsSchema: z.ZodObject<{
6925
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
6926
+ viewOnce: z.ZodOptional<z.ZodBoolean>;
6927
+ type: z.ZodLiteral<"audio">;
6928
+ ptt: z.ZodOptional<z.ZodBoolean>;
6929
+ }, z.core.$strict>;
6930
+ declare const DocumentSendOptionsSchema: z.ZodObject<{
6931
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
6932
+ caption: z.ZodOptional<z.ZodString>;
6933
+ type: z.ZodLiteral<"document">;
6934
+ }, z.core.$strict>;
6935
+ declare const AutoMediaSendOptionsSchema: z.ZodObject<{
6936
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
6937
+ caption: z.ZodOptional<z.ZodString>;
6938
+ viewOnce: z.ZodOptional<z.ZodBoolean>;
6939
+ type: z.ZodOptional<z.ZodLiteral<"auto">>;
6940
+ }, z.core.$strict>;
6941
+ declare const MediaSendOptionsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
6942
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
6943
+ caption: z.ZodOptional<z.ZodString>;
6944
+ viewOnce: z.ZodOptional<z.ZodBoolean>;
6945
+ type: z.ZodOptional<z.ZodLiteral<"auto">>;
6946
+ }, z.core.$strict>, z.ZodObject<{
6947
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
6948
+ caption: z.ZodOptional<z.ZodString>;
6949
+ viewOnce: z.ZodOptional<z.ZodBoolean>;
6950
+ type: z.ZodLiteral<"image">;
6951
+ }, z.core.$strict>, z.ZodObject<{
6952
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
6953
+ caption: z.ZodOptional<z.ZodString>;
6954
+ viewOnce: z.ZodOptional<z.ZodBoolean>;
6955
+ type: z.ZodLiteral<"video">;
6956
+ isGif: z.ZodOptional<z.ZodBoolean>;
6957
+ videoNote: z.ZodOptional<z.ZodBoolean>;
6958
+ }, z.core.$strict>, z.ZodObject<{
6959
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
6960
+ viewOnce: z.ZodOptional<z.ZodBoolean>;
6961
+ type: z.ZodLiteral<"audio">;
6962
+ ptt: z.ZodOptional<z.ZodBoolean>;
6963
+ }, z.core.$strict>, z.ZodObject<{
6964
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
6965
+ caption: z.ZodOptional<z.ZodString>;
6966
+ type: z.ZodLiteral<"document">;
6967
+ }, z.core.$strict>], "type">;
6968
+ type MediaSendOptions = z.infer<typeof MediaSendOptionsSchema>;
6969
+ type ImageSendOptions = z.infer<typeof ImageSendOptionsSchema>;
6970
+ type VideoSendOptions = z.infer<typeof VideoSendOptionsSchema>;
6971
+ type AudioSendOptions = z.infer<typeof AudioSendOptionsSchema>;
6972
+ declare const AudioAttachmentOptionsSchema: z.ZodObject<{
6973
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
6974
+ }, z.core.$strict>;
6975
+ declare const VoiceNoteOptionsSchema: z.ZodObject<{
6976
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
6977
+ viewOnce: z.ZodOptional<z.ZodBoolean>;
6978
+ }, z.core.$strict>;
6979
+ declare const GifSendOptionsSchema: z.ZodObject<{
6980
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
6981
+ caption: z.ZodOptional<z.ZodString>;
6982
+ }, z.core.$strict>;
6983
+ type AudioAttachmentOptions = z.infer<typeof AudioAttachmentOptionsSchema>;
6984
+ type VoiceNoteOptions = z.infer<typeof VoiceNoteOptionsSchema>;
6985
+ type GifSendOptions = z.infer<typeof GifSendOptionsSchema>;
6986
+ //#endregion
6987
+ //#region src/polls.d.ts
6988
+ declare const PollSendOptionsSchema: z.ZodObject<{
6989
+ selectableCount: z.ZodOptional<z.ZodNumber>;
6990
+ quotedMsgId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
6991
+ endTime: z.ZodOptional<z.ZodNumber>;
6992
+ hideVoterNames: z.ZodOptional<z.ZodBoolean>;
6993
+ }, z.core.$strict>;
6994
+ type PollSendOptions = z.infer<typeof PollSendOptionsSchema>;
6995
+ declare const PollVoteSchema: z.ZodObject<{
6996
+ pollId: z.core.$ZodBranded<z.ZodString, "MessageId", "out">;
6997
+ chatId: z.core.$ZodBranded<z.ZodString, "ChatId", "out">;
6998
+ id: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
6999
+ senderId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
7000
+ selectedOptionIds: z.ZodArray<z.ZodNumber>;
7001
+ timestamp: z.ZodNumber;
7002
+ fromMe: z.ZodBoolean;
7003
+ hideVoterNames: z.ZodBoolean;
7004
+ }, z.core.$strict>;
7005
+ type PollVote = z.infer<typeof PollVoteSchema>;
7006
+ declare const PollResultsSchema: z.ZodObject<{
7007
+ pollId: z.core.$ZodBranded<z.ZodString, "MessageId", "out">;
7008
+ chatId: z.core.$ZodBranded<z.ZodString, "ChatId", "out">;
7009
+ name: z.ZodString;
7010
+ selectableCount: z.ZodNumber;
7011
+ endTime: z.ZodOptional<z.ZodNumber>;
7012
+ isClosed: z.ZodBoolean;
7013
+ hideVoterNames: z.ZodBoolean;
7014
+ options: z.ZodArray<z.ZodObject<{
7015
+ id: z.ZodNumber;
7016
+ name: z.ZodString;
7017
+ count: z.ZodNumber;
7018
+ }, z.core.$strict>>;
7019
+ voterCount: z.ZodNumber;
7020
+ votes: z.ZodOptional<z.ZodArray<z.ZodObject<{
7021
+ pollId: z.core.$ZodBranded<z.ZodString, "MessageId", "out">;
7022
+ chatId: z.core.$ZodBranded<z.ZodString, "ChatId", "out">;
7023
+ id: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
7024
+ senderId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
7025
+ selectedOptionIds: z.ZodArray<z.ZodNumber>;
7026
+ timestamp: z.ZodNumber;
7027
+ fromMe: z.ZodBoolean;
7028
+ hideVoterNames: z.ZodBoolean;
7029
+ }, z.core.$strict>>>;
7030
+ scope: z.ZodLiteral<"synced">;
7031
+ }, z.core.$strict>;
7032
+ type PollResults = z.infer<typeof PollResultsSchema>;
7033
+ declare const PinDurationSchema: z.ZodEnum<{
7034
+ OneDay: "OneDay";
7035
+ SevenDays: "SevenDays";
7036
+ ThirtyDays: "ThirtyDays";
7037
+ }>;
7038
+ type PinDuration = z.infer<typeof PinDurationSchema>;
7039
+ //#endregion
7040
+ //#region src/session-refresh.d.ts
7041
+ interface SessionRefreshOptions {
7042
+ licenseKey?: string;
7043
+ }
7044
+ type SessionRefreshPhase = 'idle' | 'preparing' | 'reloading' | 'installing' | 'restoring' | 'needs_auth' | 'ready' | 'failed';
7045
+ interface SessionRefreshSnapshot {
7046
+ operationId: string | null;
7047
+ reason: 'manual_refresh' | 'license_activation';
7048
+ phase: SessionRefreshPhase;
7049
+ running: boolean;
7050
+ startedAt: number | null;
7051
+ finishedAt: number | null;
7052
+ patchTag: string | null;
7053
+ runtimeUsable: boolean;
7054
+ restored: boolean;
7055
+ error: {
7056
+ code: string;
7057
+ message: string;
7058
+ } | null;
7059
+ }
7060
+ type SessionRefreshResult = SessionRefreshSnapshot;
7061
+ //#endregion
7062
+ export { Call as $, react as $a, setGroupDescription as $i, whatsappEvent as $n, HealthCheck as $o, getFeatures as $r, ClientConfig as $s, groupIdParam as $t, EventInputSchema as A, unmuteChat as Aa, validateConfig as Ac, getCommunityAdmins as Ai, MessageIdCodecSchema as An, successResponseSchema as Ao, getEventResponses as Ar, ContactSchema as As, InteractiveHeader as At, EventUpdateSchema as B, forwardMessages as Ba, getAllGroups as Bi, fileToDataUrlCodec as Bn, CommunityAdminsSchema as Bo, observeCallAudio as Br, IdSchema as Bs, NativeActionSchema as Bt, MediaSendOptions as C, isChatOnline as Ca, SessionDataSchema as Cc, getStatus as Ci, ContactIdCodecSchema as Cn, sendVideoAsGif as Co, QueueOverloadStrategy as Cr, StorySchema as Cs, FormQuestionSchema as Ct, VoiceNoteOptions as D, pinChat as Da, ViewportSchema as Dc, postVideoStatus as Di, GroupIdSchema as Dn, unstarMessage as Do, cancelEvent as Dr, ChatSchema as Ds, InteractiveActionSchema as Dt, VideoSendOptionsSchema as E, muteChat as Ea, Viewport as Ec, postTextStatus as Ei, GroupIdCodecSchema as En, unpinMessage as Eo, index_d_exports as Er, ChatId as Es, InteractiveAction as Et, EventResponse as F, AlbumSendResultSchema as Fa, GroupInfoSchema as Fi, chatIdCodec as Fn, CommonGroup as Fo, clearCallAudio as Fr, GroupChatIdSchema as Fs, JsonValue as Ft, deserializeEventResponse as G, getMessagesForLLM as Ga, getGroupMembersId as Gi, isoDatetimeToDate as Gn, CommunityParticipants as Go, SendInteractiveInputSchema as Gr, MessageId as Gs, captionParam as Gt, WhatsAppEventSchema as H, getAllMessages as Ha, getGroupInfo as Hi, fileToTempPathCodec as Hn, CommunityMetadataSchema as Ho, setCallMedia as Hr, LocationSchema as Hs, ReplyActionSchema as Ht, EventResponseSchema as I, SendTextResultSchema as Ia, addParticipant as Ii, contactIdCodec as In, CommonGroupSchema as Io, endCall as Ir, GroupId as Is, JsonValueSchema as It, serializeWhatsAppEvent as J, getStarredMessages as Ja, leaveGroup as Ji, unixMillisToDate as Jn, ContactStatusSchema as Jo, sendRawMessage as Jr, MessageSchema as Js, contactIdParam as Jt, deserializeWhatsAppEvent as K, getMyLastMessage as Ka, getKickedGroups as Ki, jsonStringCodec as Kn, CommunityParticipantsSchema as Ko, SendRawMessageInputSchema as Kr, MessageIdReturn as Ks, chatIdParam as Kt, EventResponseType as L, StickerJobSchema as La, approveGroupJoinRequest as Li, createFileCodec as Ln, CommunityAdminIds as Lo, getActiveCall as Lr, GroupMetadata as Ls, LinkActionSchema as Lt, EventListOptionsSchema as M, AlbumMedia as Ma, getCommunityParticipantIds as Mi, UnixMillisToDateSchema as Mn, BusinessProfileSchema as Mo, respondToEvent as Mr, DataURL as Ms, InteractiveResponse as Mt, EventPage as N, AlbumMediaSchema as Na, getCommunityParticipants as Ni, UnixSecondsToDateSchema as Nn, CartItem as No, sendEvent as Nr, DataURLSchema as Ns, InteractiveResponseSchema as Nt, VoiceNoteOptionsSchema as O, setChatEphemeral as Oa, getDefaultConfig as Oc, getAllCommunities as Oi, HexColorSchema as On, voteOnPoll as Oo, editEvent as Or, Contact as Os, InteractiveContent as Ot, EventPageSchema as P, AlbumSendResult as Pa, GroupInfo as Pi, base64ToDataUrlCodec as Pn, CartItemSchema as Po, acceptCall as Pr, GroupChatId as Ps, JsonObjectSchema as Pt, LicenseFeaturesSchema as Q, pinMessage as Qa, revokeGroupInviteLink as Qi, eventResponseEvent as Qn, GroupCreationResultSchema as Qo, getConnectionState as Qr, SimpleListener as Qs, filenameParam as Qt, EventResponseTypeSchema as R, deleteMessage as Ra, createGroup as Ri, fileToBase64Codec as Rn, CommunityAdminIdsSchema as Ro, getCallCapabilities as Rr, GroupMetadataSchema as Rs, ListContentSchema as Rt, ImageSendOptionsSchema as S, getChatWithNonContacts as Sa, SessionData as Sc, deleteStatus as Si, ChatIdSchema as Sn, sendVCard as So, QueueOptionsSchema as Sr, Story as Ss, FormQuestion as St, VideoSendOptions as T, markAsUnread as Ta, StrictConfigSchema as Tc, postImageStatus as Ti, FileToDataUrlSchema as Tn, starMessage as To, eventRegistry as Tr, Chat as Ts, FormResponseSchema as Tt, decodeEventResponse as U, getMessageById as Ua, getGroupInviteLink as Ui, groupIdCodec as Un, CommunityParticipantIds as Uo, startCall as Ur, Message as Us, defineInteractiveMessage as Ut, WhatsAppEvent as V, getAlbumMessages as Va, getGroupAdmins as Vi, fileToStreamCodec as Vn, CommunityMetadata as Vo, rejectCall as Vr, Location as Vs, NativeContentSchema as Vt, decodeWhatsAppEvent as W, getMessageInfo as Wa, getGroupMembers as Wi, hexColorCodec as Wn, CommunityParticipantIdsSchema as Wo, stopCallAudioObserver as Wr, MessageAck as Ws, audioDataParam as Wt, validateEventUpdate as X, getVCards as Xa, rejectGroupJoinRequest as Xi, urlToDataUrlCodec as Xn, FeatureFlagsSchema as Xo, downloadMedia as Xr, SerializedMessageId as Xs, documentDataParam as Xt, validateEventInput as Y, getUnsentMessages as Ya, promoteParticipant as Yi, unixSecondsToDate as Yn, FeatureFlags as Yo, decryptMedia as Yr, MessageTypes as Ys, contentParam as Yt, LicenseFeatures as Z, loadEarlierMessages as Za, removeParticipant as Zi, pollVoteEvent as Zn, GroupCreationResult as Zo, getBatteryLevel as Zr, SerializedMessageIdSchema as Zs, fileDataParam as Zt, AutoMediaSendOptionsSchema as _, clearChat as _a, ProxyServerCredentials as _c, addLabel as _i, videoDataParam as _n, sendReplyWithMentions as _o, reactionEvent as _r, OrderSchema as _s, CallActionSchema as _t, PinDuration as a, checkNumberStatus as aa, Config as ac, getProcessStats as ai, longitudeParam as an, sendContact as ao, addedToGroupEvent as ar, Label as as, CallEndReason as at, GifSendOptionsSchema as b, getAllChats as ba, S3Sync as bc, removeLabel as bi, Base64ToDataUrlSchema as bn, sendText as bo, EventStatus as br, Product as bs, CopyActionSchema as bt, PollResultsSchema as c, getBlockedIds as ca, DeepPartialConfig as cc, getWAVersion as ci, messageIdsParam as cn, sendImage as co, chatStateEvent as cr, MessageInfo as cs, CallIdentitySchema as ct, PollVote as d, getNumberProfile as da, LoggingTransport as dc, setMyName as di, onlyLocalParam as dn, sendLocation as do, ackEvent as dr, MessageInteractionSchema as ds, CallSnapshot as dt, setGroupEditToAdminsOnly as ea, ClientConfigSchema as ec, getHostNumber as ei, imageDataParam as en, sendAdvancedButtons as eo, callStateEvent as er, HealthCheckSchema as es, CallActionResult as et, PollVoteSchema as f, getProfilePicture as fa, LoggingTransportSchema as fc, setMyStatus as fi, skipMyMessagesParam as fn, sendMessageWithThumb as fo, anyMessageEvent as fr, NumberCheck as fs, CallSnapshotSchema as ft, AudioSendOptionsSchema as g, archiveChat as ga, PartialConfigSchema as gc, getOrder as gi, userAgentParam as gn, sendPtt as go, messageEvent as gr, Order as gs, ButtonsContentSchema as gt, AudioSendOptions as h, unblockContact as ha, PartialConfig as hc, getBusinessProfile as hi, toParam as hn, sendPoll as ho, messageDeletedEvent as hr, NumberProfileSchema as hs, BookingContentSchema as ht, SessionRefreshSnapshot as i, blockContact as ia, CloudUploadOptionsSchema as ic, getMe as ii, locationNameParam as in, sendButtons as io, ParticipantChangeSchema as ir, LLMMessageSchema as is, CallCapabilitiesSchema as it, EventListOptions as j, unpinChat as ja, getCommunityInfo as ji, MessageIdSchema as jn, BusinessProfile as jo, getEvents as jr, Content as js, InteractiveHeaderSchema as jt, EventInput as k, unarchiveChat as ka, parseConfig as kc, getCommunityAdminIds as ki, IsoDatetimeToDateSchema as kn, outputJsonSchema as ko, getEvent as kr, ContactId as ks, InteractiveContentSchema as kt, PollSendOptions as l, getCommonGroups as la, DevTools as lc, healthCheck as li, messageOptionsParam as ln, sendLinkWithAutoPreview as lo, logoutEvent as lr, MessageInfoSchema as ls, CallMediaOptionsSchema as lt, AudioAttachmentOptionsSchema as m, sharePhoneNumber as ma, OnError as mc, getBusinessProducts as mi, stickerDataParam as mn, sendPaymentRequest as mo, interactiveResponseEvent as mr, NumberProfile as ms, RawAudioFormatSchema as mt, SessionRefreshPhase as n, setGroupTitle as na, CLOUD_PROVIDERS as nc, getLicenseType as ni, includeNotificationsParam as nn, sendAudio as no, ParticipantChange as nr, HostAccountSchema as ns, CallAudioObserver as nt, PinDurationSchema as o, checkReadReceipts as oa, ConfigSchema as oc, getSnapshot as oi, mentionedJidListParam as on, sendFile as oo, participantsChangedEvent as or, LabelSchema as os, CallEndReasonSchema as ot, AudioAttachmentOptions as p, requestPhoneNumber as pa, NotificationLanguage as pc, setProfilePicture as pi, statusTextParam as pn, sendMultipleContacts as po, formResponseEvent as pr, NumberCheckSchema as ps, MediaDescriptorSchema as pt, serializeEventResponse as q, getPollResults as qa, joinGroupViaLink as qi, messageIdCodec as qn, ContactStatus as qo, sendInteractive as qr, MessageIdReturnSchema as qs, communityIdParam as qt, SessionRefreshResult as r, setGroupToAdminsOnly as ra, CloudUploadOptions as rc, getLoadedMessageCount as ri, latitudeParam as rn, sendBanner as ro, ParticipantChangePatchSchema as rr, LLMMessage as rs, CallCapabilities as rt, PollResults as s, getAllContacts as sa, DIRECTORY_STRATEGY as sc, getUserAgent as si, messageIdParam as sn, sendFileFromUrl as so, StateEnum as sr, LicenseTypeSchema as ss, CallIdentity as st, SessionRefreshOptions as t, setGroupIcon as ta, migrateV4Config as tc, getLicenseFeatures as ti, includeMeParam as tn, sendAlbum as to, incomingCallEvent as tr, HostAccount as ts, CallActionResultSchema as tt, PollSendOptionsSchema as u, getContact as ua, DevToolsSchema as uc, isPlugged as ui, nameParam as un, sendListMessage as uo, stateChangedEvent as ur, MessageInteraction as us, CallReasonSchema as ut, DocumentSendOptionsSchema as v, deleteChat as va, ProxyServerCredentialsSchema as vc, getAllLabels as vi, waitForIdParam as vn, sendSeen as vo, EventDefinition as vr, ProcessStats as vs, CarouselCardSchema as vt, MediaSendOptionsSchema as w, markAsRead as wa, StrictConfig as wc, getStories as wi, ContactIdSchema as wn, sendYouTubeLink as wo, defineListenerV2 as wr, Base64 as ws, FormResponse as wt, ImageSendOptions as x, getChat as xa, S3SyncSchema as xc, deleteAllStatus as xi, ChatIdCodecSchema as xn, sendTextWithMentions as xo, QueueOptions as xr, ProductSchema as xs, FormContentSchema as xt, GifSendOptions as y, getAllChatIds as ya, QRFormat as yc, getChatsByLabel as yi, withNewMessagesOnlyParam as yn, sendSticker as yo, EventMetadata as yr, ProcessStatsSchema as ys, CarouselContentSchema as yt, EventUpdate as z, editMessage as za, demoteParticipant as zi, fileToBufferCodec as zn, CommunityAdmins as zo, muteCall as zr, Id as zs, ListRowSchema as zt };
7063
+ //# sourceMappingURL=index-BWvNXopK.d.cts.map