@open-wa/schema 5.0.0 → 5.2.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/generated/index.cjs +8 -2
  2. package/dist/generated/index.cjs.map +1 -1
  3. package/dist/generated/index.d.cts +7868 -994
  4. package/dist/generated/index.d.cts.map +1 -1
  5. package/dist/generated/index.d.mts +7868 -994
  6. package/dist/generated/index.d.mts.map +1 -1
  7. package/dist/generated/index.mjs +8 -2
  8. package/dist/generated/index.mjs.map +1 -1
  9. package/dist/index-C9Ad0lEr.d.cts +4729 -0
  10. package/dist/index-C9Ad0lEr.d.cts.map +1 -0
  11. package/dist/index-D0QN2PaW.d.mts +4729 -0
  12. package/dist/index-D0QN2PaW.d.mts.map +1 -0
  13. package/dist/index.cjs +109 -1
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.cts +2 -2
  16. package/dist/index.d.mts +2 -2
  17. package/dist/index.mjs +53 -2
  18. package/dist/index.mjs.map +1 -1
  19. package/dist/methods/index.cjs +6 -1
  20. package/dist/methods/index.d.cts +2 -2
  21. package/dist/methods/index.d.mts +2 -2
  22. package/dist/methods/index.mjs +2 -2
  23. package/dist/{methods-Dizm7Fn9.cjs → methods-BGmdzjd3.cjs} +904 -76
  24. package/dist/methods-BGmdzjd3.cjs.map +1 -0
  25. package/dist/{methods-CZqeUhKy.mjs → methods-BhLsQNtL.mjs} +587 -77
  26. package/dist/methods-BhLsQNtL.mjs.map +1 -0
  27. package/package.json +4 -3
  28. package/src/__tests__/generators.contract.test.ts +181 -0
  29. package/src/__tests__/registry.contract.test.ts +81 -0
  30. package/src/client-config.ts +30 -0
  31. package/src/codecs.test.ts +41 -0
  32. package/src/codecs.ts +191 -0
  33. package/src/common-types.ts +287 -0
  34. package/src/config.ts +47 -0
  35. package/src/enums.ts +63 -0
  36. package/src/events/groups.ts +33 -0
  37. package/src/events/index.ts +4 -0
  38. package/src/events/messaging.ts +86 -0
  39. package/src/events/registry.ts +124 -0
  40. package/src/events/state.ts +59 -0
  41. package/src/generated/AliasMap.ts +216 -0
  42. package/src/generated/BaseClient.ts +878 -0
  43. package/src/generated/BaseNamespacedClient.ts +214 -0
  44. package/src/generated/index.ts +5 -0
  45. package/src/generated/openapi.json +30049 -0
  46. package/src/generated/types.ts +383 -0
  47. package/src/http-manifest.ts +97 -0
  48. package/src/implementor.test.ts +88 -0
  49. package/src/implementor.ts +75 -0
  50. package/src/index.ts +46 -0
  51. package/src/interactive.ts +151 -0
  52. package/src/methods/business.ts +52 -0
  53. package/src/methods/chats.ts +264 -0
  54. package/src/methods/communities.ts +121 -0
  55. package/src/methods/contacts.ts +160 -0
  56. package/src/methods/groups.ts +378 -0
  57. package/src/methods/index.ts +34 -0
  58. package/src/methods/interactive.ts +21 -0
  59. package/src/methods/labels.ts +88 -0
  60. package/src/methods/media.ts +36 -0
  61. package/src/methods/messaging.ts +836 -0
  62. package/src/methods/session.ts +262 -0
  63. package/src/methods/status.ts +122 -0
  64. package/src/output-json-schema.ts +27 -0
  65. package/src/parameters.ts +237 -0
  66. package/src/registry.test.ts +30 -0
  67. package/src/registry.ts +601 -0
  68. package/src/return-types.ts +125 -0
  69. package/dist/index-BHcd0h7x.d.mts +0 -1265
  70. package/dist/index-BHcd0h7x.d.mts.map +0 -1
  71. package/dist/index-ChYFQM1K.d.cts +0 -1265
  72. package/dist/index-ChYFQM1K.d.cts.map +0 -1
  73. package/dist/methods-CZqeUhKy.mjs.map +0 -1
  74. package/dist/methods-Dizm7Fn9.cjs.map +0 -1
@@ -2,11 +2,17 @@ const require_registry = require("./registry-_s9a7_jl.cjs");
2
2
  let zod = require("zod");
3
3
  let _open_wa_utils = require("@open-wa/utils");
4
4
  //#region src/common-types.ts
5
- const ContactIdSchema$1 = zod.z.string().brand("ContactId");
6
- const ChatIdSchema$1 = zod.z.string().brand("ChatId");
7
- const MessageIdSchema$1 = zod.z.string().brand("MessageId");
8
- const GroupChatIdSchema = zod.z.string().brand("GroupChatId");
9
- const GroupIdSchema$1 = zod.z.string().brand("GroupId");
5
+ const ContactIdSchema$1 = zod.z.string().brand("ContactId").describe("Opaque WhatsApp contact identifier. Preserve the exact value returned by the API.");
6
+ const ChatIdSchema$1 = zod.z.string().brand("ChatId").describe("Opaque conversation identifier. Use the exact value returned by a message event or chat lookup.");
7
+ const MessageIdSchema$1 = zod.z.string().brand("MessageId").describe("Message identifier returned by a send method or message event.");
8
+ const GroupChatIdSchema = zod.z.string().brand("GroupChatId").describe("Opaque group conversation identifier returned by a group lookup or join method.");
9
+ const GroupIdSchema$1 = zod.z.string().brand("GroupId").describe("Identifier for a WhatsApp group. Use the value returned by the API.");
10
+ const DataURLSchema = zod.z.templateLiteral([
11
+ "data:",
12
+ zod.z.string(),
13
+ ";base64,",
14
+ zod.z.string()
15
+ ]);
10
16
  const GroupMetadataSchema = zod.z.object({
11
17
  id: GroupIdSchema$1,
12
18
  subject: zod.z.string(),
@@ -22,7 +28,7 @@ const GroupMetadataSchema = zod.z.object({
22
28
  isAdmin: zod.z.boolean(),
23
29
  isSuperAdmin: zod.z.boolean().optional()
24
30
  }))
25
- }).passthrough();
31
+ }).passthrough().describe("Serialized group metadata returned by group lookups. Additional WhatsApp Web fields may be present.");
26
32
  const IdSchema = zod.z.object({
27
33
  server: zod.z.string(),
28
34
  user: zod.z.string(),
@@ -192,7 +198,7 @@ const ContactSchema = zod.z.object({
192
198
  isUser: zod.z.boolean().optional(),
193
199
  isWAContact: zod.z.boolean().optional(),
194
200
  labels: zod.z.array(zod.z.string()).optional(),
195
- msgs: zod.z.array(zod.z.any()).optional(),
201
+ msgs: zod.z.array(zod.z.unknown()).nullable().optional(),
196
202
  profilePicThumbObj: zod.z.object({
197
203
  eurl: zod.z.string().optional(),
198
204
  id: IdSchema.optional(),
@@ -215,28 +221,218 @@ const LocationSchema = zod.z.object({
215
221
  url: zod.z.string().optional().describe("WhatsApp location URL")
216
222
  }).passthrough();
217
223
  const ChatSchema = zod.z.object({
218
- id: ContactIdSchema$1.or(GroupChatIdSchema),
224
+ id: ChatIdSchema$1,
219
225
  name: zod.z.string().optional(),
220
226
  formattedTitle: zod.z.string().optional(),
221
227
  isGroup: zod.z.boolean(),
222
- contact: ContactSchema,
223
- groupMetadata: zod.z.any().optional(),
224
- presence: zod.z.any().optional(),
228
+ contact: ContactSchema.nullable(),
229
+ groupMetadata: GroupMetadataSchema.nullable().optional(),
230
+ presence: zod.z.record(zod.z.string(), zod.z.unknown()).nullable().optional(),
225
231
  t: zod.z.number().optional(),
226
232
  unreadCount: zod.z.number().optional(),
227
233
  lastReceivedKey: zod.z.any().optional(),
228
- msgs: zod.z.array(zod.z.any()).optional(),
234
+ msgs: zod.z.array(zod.z.unknown()).nullable().optional(),
229
235
  isReadOnly: zod.z.boolean().optional(),
230
236
  muteExpiration: zod.z.number().optional(),
231
237
  notSpam: zod.z.boolean().optional(),
232
238
  pin: zod.z.number().optional(),
233
239
  ack: zod.z.any().optional()
234
- }).passthrough();
240
+ }).passthrough().describe("Serialized chat returned by chat lookups and listings. Its id is an opaque ChatId; additional WhatsApp Web fields may be present.");
235
241
  const MessageSchema = MessageSchemaBase.extend({
236
242
  sender: ContactSchema,
237
243
  chat: ChatSchema
238
244
  });
239
- const MessageIdReturnSchema = zod.z.object({ _serialized: zod.z.string() }).passthrough();
245
+ const SerializedMessageIdSchema = zod.z.object({ _serialized: zod.z.string() }).passthrough();
246
+ const MessageIdReturnSchema = zod.z.union([MessageIdSchema$1, SerializedMessageIdSchema]).describe("A message ID as a string or an object containing the serialized ID. Validate it before passing it to another method.");
247
+ //#endregion
248
+ //#region src/return-types.ts
249
+ const LabelSchema = zod.z.object({
250
+ id: zod.z.string(),
251
+ name: zod.z.string(),
252
+ items: zod.z.array(zod.z.object({
253
+ type: zod.z.enum([
254
+ "Chat",
255
+ "Contact",
256
+ "Message"
257
+ ]),
258
+ id: zod.z.string()
259
+ }))
260
+ }).passthrough();
261
+ const NumberCheckSchema = zod.z.object({
262
+ id: zod.z.union([IdSchema, ContactIdSchema$1]),
263
+ status: zod.z.unknown().describe("HTTP-like status code, or a provider error value when lookup fails."),
264
+ isBusiness: zod.z.boolean().optional(),
265
+ canReceiveMessage: zod.z.boolean(),
266
+ numberExists: zod.z.boolean().optional()
267
+ }).passthrough();
268
+ const CommonGroupSchema = zod.z.object({
269
+ id: GroupIdSchema$1,
270
+ title: zod.z.string()
271
+ }).passthrough();
272
+ const GroupCreationResultSchema = zod.z.object({
273
+ gid: zod.z.union([GroupIdSchema$1, IdSchema]),
274
+ status: zod.z.number().optional(),
275
+ participants: zod.z.union([zod.z.record(zod.z.string(), zod.z.object({
276
+ code: zod.z.number(),
277
+ invite_code: zod.z.string().optional(),
278
+ invite_code_exp: zod.z.string().optional()
279
+ })), zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown()))]).optional()
280
+ }).passthrough();
281
+ const CommunityMetadataSchema = GroupMetadataSchema.extend({ subGroups: zod.z.array(GroupMetadataSchema) });
282
+ const CommunityParticipantIdsSchema = zod.z.object({
283
+ id: GroupChatIdSchema,
284
+ participants: zod.z.array(ContactIdSchema$1),
285
+ subgroup: zod.z.boolean()
286
+ });
287
+ const CommunityAdminIdsSchema = zod.z.object({
288
+ id: GroupChatIdSchema,
289
+ admins: zod.z.array(ContactIdSchema$1),
290
+ subgroup: zod.z.boolean()
291
+ });
292
+ const CommunityParticipantsSchema = zod.z.object({
293
+ id: GroupChatIdSchema,
294
+ participants: zod.z.array(ContactSchema),
295
+ subgroup: zod.z.boolean()
296
+ });
297
+ const CommunityAdminsSchema = zod.z.object({
298
+ id: GroupChatIdSchema,
299
+ admins: zod.z.array(ContactSchema),
300
+ subgroup: zod.z.boolean()
301
+ });
302
+ const MessageInteractionSchema = zod.z.object({
303
+ id: ContactIdSchema$1,
304
+ t: zod.z.number()
305
+ });
306
+ const MessageInfoSchema = zod.z.object({
307
+ id: MessageIdSchema$1,
308
+ deliveryRemaining: zod.z.number(),
309
+ playedRemaining: zod.z.number(),
310
+ readRemaining: zod.z.number(),
311
+ delivery: zod.z.array(MessageInteractionSchema),
312
+ read: zod.z.array(MessageInteractionSchema),
313
+ played: zod.z.array(MessageInteractionSchema)
314
+ }).passthrough();
315
+ const LLMMessageSchema = zod.z.object({
316
+ role: zod.z.enum(["user", "assistant"]),
317
+ content: zod.z.string()
318
+ });
319
+ const ContactStatusSchema = zod.z.object({
320
+ id: zod.z.string(),
321
+ status: zod.z.string()
322
+ });
323
+ const HostAccountSchema = zod.z.object({ me: zod.z.union([IdSchema, ContactIdSchema$1]) }).passthrough().describe("Host account attributes plus the current account ID. Additional WhatsApp Web attributes vary by version.");
324
+ const HealthCheckSchema = zod.z.object({
325
+ queuedMessages: zod.z.number().optional(),
326
+ state: zod.z.string().optional(),
327
+ isPhoneDisconnected: zod.z.boolean().optional(),
328
+ isHere: zod.z.boolean().optional(),
329
+ wapiInjected: zod.z.boolean().optional(),
330
+ online: zod.z.boolean().optional(),
331
+ tryingToReachPhone: zod.z.boolean().optional(),
332
+ retryingIn: zod.z.number().optional(),
333
+ batteryLow: zod.z.boolean().optional()
334
+ }).passthrough().describe("Browser health diagnostics. This is not the Easy API /health HTTP envelope.");
335
+ const LicenseTypeSchema = zod.z.enum([
336
+ "CUSTOM",
337
+ "B2B_RESTRICTED_VOLUME_LICENSE",
338
+ "Insiders Program",
339
+ "Text Story License Key",
340
+ "Image Story License Key",
341
+ "Video Story License Key",
342
+ "Premium License Key",
343
+ "NONE"
344
+ ]);
345
+ const ProductSchema = zod.z.object({
346
+ id: zod.z.string(),
347
+ currency: zod.z.string(),
348
+ name: zod.z.string().optional(),
349
+ description: zod.z.string().optional(),
350
+ isHidden: zod.z.boolean().optional(),
351
+ catalogWid: zod.z.string().optional(),
352
+ url: zod.z.string().optional(),
353
+ availability: zod.z.union([zod.z.number(), zod.z.literal("unknown")]).optional(),
354
+ reviewStatus: zod.z.enum([
355
+ "NO_REVIEW",
356
+ "PENDING",
357
+ "REJECTED",
358
+ "APPROVED",
359
+ "OUTDATED"
360
+ ]).optional(),
361
+ imageCdnUrl: zod.z.string().optional(),
362
+ imageCount: zod.z.number().optional(),
363
+ additionalImageCdnUrl: zod.z.array(zod.z.string()).optional(),
364
+ priceAmount1000: zod.z.number().optional(),
365
+ retailerId: zod.z.string().optional(),
366
+ t: zod.z.number().optional()
367
+ }).passthrough();
368
+ const CartItemSchema = zod.z.object({
369
+ id: zod.z.string(),
370
+ name: zod.z.string(),
371
+ qty: zod.z.number(),
372
+ thumbnailId: zod.z.string(),
373
+ thumbnailUrl: zod.z.string()
374
+ });
375
+ const OrderSchema = zod.z.object({
376
+ id: zod.z.string(),
377
+ createdAt: zod.z.number(),
378
+ currency: zod.z.string(),
379
+ products: zod.z.array(CartItemSchema),
380
+ sellerJid: zod.z.string(),
381
+ subtotal: zod.z.string(),
382
+ total: zod.z.string(),
383
+ message: MessageSchema.optional()
384
+ }).passthrough();
385
+ const BusinessProfileSchema = zod.z.object({
386
+ id: ContactIdSchema$1,
387
+ tag: zod.z.string().optional(),
388
+ description: zod.z.string().optional(),
389
+ categories: zod.z.array(zod.z.object({
390
+ id: zod.z.string(),
391
+ localized_display_name: zod.z.string()
392
+ })).optional(),
393
+ profileOptions: zod.z.object({
394
+ commerceExperience: zod.z.enum([
395
+ "catalog",
396
+ "none",
397
+ "shop"
398
+ ]),
399
+ cartEnabled: zod.z.boolean()
400
+ }).optional(),
401
+ email: zod.z.string().optional(),
402
+ website: zod.z.array(zod.z.string()).optional(),
403
+ businessHours: zod.z.object({
404
+ config: zod.z.record(zod.z.string(), zod.z.object({
405
+ mode: zod.z.enum([
406
+ "specific_hours",
407
+ "open_24h",
408
+ "appointment_only"
409
+ ]),
410
+ hours: zod.z.array(zod.z.array(zod.z.number()))
411
+ })),
412
+ timezone: zod.z.string()
413
+ }).optional(),
414
+ catalogStatus: zod.z.string().optional(),
415
+ address: zod.z.string().optional(),
416
+ fbPage: zod.z.unknown().optional(),
417
+ igProfessional: zod.z.unknown().optional(),
418
+ isProfileLinked: zod.z.boolean().optional(),
419
+ coverPhoto: zod.z.object({
420
+ id: zod.z.string(),
421
+ url: zod.z.string()
422
+ }).optional(),
423
+ latitude: zod.z.number().optional(),
424
+ longitude: zod.z.number().optional()
425
+ }).passthrough();
426
+ const FeatureFlagsSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("WhatsApp feature flags keyed by name. Values are provider-defined and must be narrowed before use.");
427
+ const ProcessStatsSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Process diagnostics keyed by process ID. The provider controls each entry; no stable entry shape is guaranteed.");
428
+ const NumberProfileSchema = ContactSchema.partial().describe("Provisional number profile based on the public Contact fields. Fields are optional and additional provider fields are unknown. The licensed getNumberProfile payload has not been verified against this model.");
429
+ const StorySchema = MessageSchema.omit({
430
+ chat: true,
431
+ sender: true
432
+ }).extend({
433
+ chat: MessageSchema.shape.chat.nullable().optional(),
434
+ sender: ContactSchema.nullable().optional()
435
+ }).describe("Message-shaped status entry, based on the legacy story API. Chat and sender may be absent or null. The licensed getStories payload has not been verified against this model.");
240
436
  //#endregion
241
437
  //#region src/codecs.ts
242
438
  const chatIdPattern = /^\d+(-\d+)?@(c|g)\.us$|^\d+@lid$/;
@@ -454,18 +650,17 @@ const messageIdsParam = zod.z.union([zod.z.array(messageIdParam), messageIdParam
454
650
  keyAliases: ["messages"]
455
651
  });
456
652
  const mentionedJidListParam = zod.z.array(contactIdParam).optional().describe("List of mentioned contact IDs").register(require_registry.parameterRegistry, { example: ["447123456789@c.us", "441234567890@c.us"] });
457
- const messageOptionsParam = zod.z.any().optional().describe("Additional message options").register(require_registry.parameterRegistry, { example: {
458
- quotedMsg: "messageId",
459
- mentionedJidList: ["447123456789@c.us"]
460
- } });
653
+ const messageOptionsParam = zod.z.unknown().optional().describe("Reserved for compatibility with legacy request shapes. The current sendText Client implementation ignores this argument; use reply() or sendTextWithMentions() for quoted replies and mentions.").register(require_registry.parameterRegistry, { formatDescription: "Accepted as unknown for compatibility; currently ignored by sendText. Use reply() or sendTextWithMentions() for supported reply and mention behavior." });
461
654
  //#endregion
462
655
  //#region src/methods/messaging.ts
656
+ /** The normalized serialized message key returned by the public sendText client. */
657
+ const SendTextResultSchema = zod.z.string().regex(/^(true|false)_[^\s_]+@[^\s_]+_[^\s]+$/).brand("MessageId").describe("Validated serialized message ID. This confirms the send returned an ID, not delivery or reading.");
463
658
  /**
464
659
  * Sends a text message to a chat
465
660
  */
466
661
  const sendText = require_registry.defineMethodV2("sendText", {
467
662
  meta: {
468
- description: "Sends a text message to a chat",
663
+ description: "Sends a text message and returns a validated serialized message ID. The in-process Client throws SendTextError on failure. An unknown outcome means the message may have been sent: check the chat before retrying. Starting a chat with a new number requires an applied restricted or premium license.",
469
664
  action: "send",
470
665
  namespace: "messages",
471
666
  license: "none",
@@ -482,7 +677,7 @@ const sendText = require_registry.defineMethodV2("sendText", {
482
677
  "content",
483
678
  "options"
484
679
  ],
485
- output: MessageIdReturnSchema.or(zod.z.boolean()).or(zod.z.string())
680
+ output: SendTextResultSchema
486
681
  });
487
682
  /**
488
683
  * Sends a text message with mentions
@@ -772,7 +967,7 @@ const sendContact = require_registry.defineMethodV2("sendContact", {
772
967
  contactId: contactIdParam.or(zod.z.array(contactIdParam))
773
968
  }),
774
969
  parameterOrder: ["to", "contactId"],
775
- output: MessageIdReturnSchema.or(zod.z.boolean())
970
+ output: MessageIdReturnSchema.or(zod.z.boolean()).or(zod.z.void())
776
971
  });
777
972
  /**
778
973
  * Sends multiple contacts
@@ -1107,7 +1302,7 @@ const getMessageById = require_registry.defineMethodV2("getMessageById", {
1107
1302
  },
1108
1303
  input: zod.z.object({ messageId: messageIdParam }),
1109
1304
  parameterOrder: ["messageId"],
1110
- output: zod.z.any()
1305
+ output: MessageSchema.nullable().or(zod.z.literal(false))
1111
1306
  });
1112
1307
  /**
1113
1308
  * Retrieves all messages in the session
@@ -1131,7 +1326,7 @@ const getAllMessages = require_registry.defineMethodV2("getAllMessages", {
1131
1326
  "includeMe",
1132
1327
  "includeNotifications"
1133
1328
  ],
1134
- output: zod.z.array(zod.z.any())
1329
+ output: zod.z.array(MessageSchema)
1135
1330
  });
1136
1331
  const getMyLastMessage = require_registry.defineMethodV2("getMyLastMessage", {
1137
1332
  meta: {
@@ -1144,7 +1339,7 @@ const getMyLastMessage = require_registry.defineMethodV2("getMyLastMessage", {
1144
1339
  },
1145
1340
  input: zod.z.object({ chatId: chatIdParam.optional() }),
1146
1341
  parameterOrder: ["chatId"],
1147
- output: zod.z.any()
1342
+ output: MessageSchema.optional()
1148
1343
  });
1149
1344
  const getStarredMessages = require_registry.defineMethodV2("getStarredMessages", {
1150
1345
  meta: {
@@ -1157,7 +1352,7 @@ const getStarredMessages = require_registry.defineMethodV2("getStarredMessages",
1157
1352
  },
1158
1353
  input: zod.z.object({ chatId: chatIdParam.optional() }),
1159
1354
  parameterOrder: ["chatId"],
1160
- output: zod.z.array(zod.z.any())
1355
+ output: zod.z.array(MessageSchema)
1161
1356
  });
1162
1357
  const getUnsentMessages = require_registry.defineMethodV2("getUnsentMessages", {
1163
1358
  meta: {
@@ -1170,7 +1365,7 @@ const getUnsentMessages = require_registry.defineMethodV2("getUnsentMessages", {
1170
1365
  },
1171
1366
  input: zod.z.object({}),
1172
1367
  parameterOrder: [],
1173
- output: zod.z.array(zod.z.any())
1368
+ output: zod.z.array(MessageSchema)
1174
1369
  });
1175
1370
  const getMessageInfo = require_registry.defineMethodV2("getMessageInfo", {
1176
1371
  meta: {
@@ -1183,7 +1378,7 @@ const getMessageInfo = require_registry.defineMethodV2("getMessageInfo", {
1183
1378
  },
1184
1379
  input: zod.z.object({ messageId: messageIdParam }),
1185
1380
  parameterOrder: ["messageId"],
1186
- output: zod.z.any()
1381
+ output: MessageInfoSchema
1187
1382
  });
1188
1383
  const getVCards = require_registry.defineMethodV2("getVCards", {
1189
1384
  meta: {
@@ -1214,7 +1409,7 @@ const getMessagesForLLM = require_registry.defineMethodV2("getMessagesForLLM", {
1214
1409
  last: zod.z.number().optional().default(10)
1215
1410
  }),
1216
1411
  parameterOrder: ["chatId", "last"],
1217
- output: zod.z.any()
1412
+ output: zod.z.array(LLMMessageSchema)
1218
1413
  });
1219
1414
  const starMessage = require_registry.defineMethodV2("starMessage", {
1220
1415
  meta: {
@@ -1294,7 +1489,7 @@ const loadEarlierMessages = require_registry.defineMethodV2("loadEarlierMessages
1294
1489
  "count",
1295
1490
  "includeMe"
1296
1491
  ],
1297
- output: zod.z.array(zod.z.any())
1492
+ output: zod.z.array(MessageSchema)
1298
1493
  });
1299
1494
  const sendFileFromUrl = require_registry.defineMethodV2("sendFileFromUrl", {
1300
1495
  meta: {
@@ -1325,7 +1520,7 @@ const sendFileFromUrl = require_registry.defineMethodV2("sendFileFromUrl", {
1325
1520
  //#region src/methods/chats.ts
1326
1521
  const getAllChats = require_registry.defineMethodV2("getAllChats", {
1327
1522
  meta: {
1328
- description: "Retrieves all chats",
1523
+ description: "Returns serialized Chat objects from the current session, optionally limited to chats with unread messages.",
1329
1524
  action: "read",
1330
1525
  namespace: "chats",
1331
1526
  license: "none",
@@ -1334,7 +1529,7 @@ const getAllChats = require_registry.defineMethodV2("getAllChats", {
1334
1529
  },
1335
1530
  input: zod.z.object({ withNewMessagesOnly: withNewMessagesOnlyParam }),
1336
1531
  parameterOrder: ["withNewMessagesOnly"],
1337
- output: zod.z.array(zod.z.any())
1532
+ output: zod.z.array(ChatSchema)
1338
1533
  });
1339
1534
  const getAllChatIds = require_registry.defineMethodV2("getAllChatIds", {
1340
1535
  meta: {
@@ -1348,7 +1543,7 @@ const getAllChatIds = require_registry.defineMethodV2("getAllChatIds", {
1348
1543
  },
1349
1544
  input: zod.z.object({}),
1350
1545
  parameterOrder: [],
1351
- output: zod.z.array(zod.z.string())
1546
+ output: zod.z.array(ChatIdSchema$1)
1352
1547
  });
1353
1548
  const getChat = require_registry.defineMethodV2("getChat", {
1354
1549
  meta: {
@@ -1362,7 +1557,7 @@ const getChat = require_registry.defineMethodV2("getChat", {
1362
1557
  },
1363
1558
  input: zod.z.object({ chatId: chatIdParam }),
1364
1559
  parameterOrder: ["chatId"],
1365
- output: zod.z.any()
1560
+ output: ChatSchema.nullable().optional().or(zod.z.literal(false))
1366
1561
  });
1367
1562
  const getChatWithNonContacts = require_registry.defineMethodV2("getChatWithNonContacts", {
1368
1563
  meta: {
@@ -1375,7 +1570,7 @@ const getChatWithNonContacts = require_registry.defineMethodV2("getChatWithNonCo
1375
1570
  },
1376
1571
  input: zod.z.object({}),
1377
1572
  parameterOrder: [],
1378
- output: zod.z.array(zod.z.any())
1573
+ output: zod.z.array(ContactSchema)
1379
1574
  });
1380
1575
  const archiveChat = require_registry.defineMethodV2("archiveChat", {
1381
1576
  meta: {
@@ -1562,7 +1757,7 @@ const getAllContacts = require_registry.defineMethodV2("getAllContacts", {
1562
1757
  },
1563
1758
  input: zod.z.object({}),
1564
1759
  parameterOrder: [],
1565
- output: zod.z.array(zod.z.any())
1760
+ output: zod.z.array(ContactSchema)
1566
1761
  });
1567
1762
  const getContact = require_registry.defineMethodV2("getContact", {
1568
1763
  meta: {
@@ -1575,7 +1770,7 @@ const getContact = require_registry.defineMethodV2("getContact", {
1575
1770
  },
1576
1771
  input: zod.z.object({ contactId: contactIdParam }),
1577
1772
  parameterOrder: ["contactId"],
1578
- output: zod.z.any()
1773
+ output: ContactSchema.nullable()
1579
1774
  });
1580
1775
  const getCommonGroups = require_registry.defineMethodV2("getCommonGroups", {
1581
1776
  meta: {
@@ -1588,7 +1783,7 @@ const getCommonGroups = require_registry.defineMethodV2("getCommonGroups", {
1588
1783
  },
1589
1784
  input: zod.z.object({ contactId: contactIdParam }),
1590
1785
  parameterOrder: ["contactId"],
1591
- output: zod.z.any()
1786
+ output: zod.z.array(CommonGroupSchema).or(zod.z.literal(false))
1592
1787
  });
1593
1788
  const getNumberProfile = require_registry.defineMethodV2("getNumberProfile", {
1594
1789
  meta: {
@@ -1601,7 +1796,7 @@ const getNumberProfile = require_registry.defineMethodV2("getNumberProfile", {
1601
1796
  },
1602
1797
  input: zod.z.object({ contactId: contactIdParam }),
1603
1798
  parameterOrder: ["contactId"],
1604
- output: zod.z.any()
1799
+ output: NumberProfileSchema
1605
1800
  });
1606
1801
  const getBlockedIds = require_registry.defineMethodV2("getBlockedIds", {
1607
1802
  meta: {
@@ -1614,7 +1809,7 @@ const getBlockedIds = require_registry.defineMethodV2("getBlockedIds", {
1614
1809
  },
1615
1810
  input: zod.z.object({}),
1616
1811
  parameterOrder: [],
1617
- output: zod.z.array(zod.z.string())
1812
+ output: zod.z.array(ContactIdSchema$1).or(zod.z.literal(false))
1618
1813
  });
1619
1814
  const blockContact = require_registry.defineMethodV2("blockContact", {
1620
1815
  meta: {
@@ -1671,7 +1866,7 @@ const checkNumberStatus = require_registry.defineMethodV2("checkNumberStatus", {
1671
1866
  },
1672
1867
  input: zod.z.object({ contactId: contactIdParam }),
1673
1868
  parameterOrder: ["contactId"],
1674
- output: zod.z.any()
1869
+ output: NumberCheckSchema
1675
1870
  });
1676
1871
  const getProfilePicture = require_registry.defineMethodV2("getProfilePicture", {
1677
1872
  meta: {
@@ -1701,7 +1896,7 @@ const getGroupMembers = require_registry.defineMethodV2("getGroupMembers", {
1701
1896
  },
1702
1897
  input: zod.z.object({ groupId: groupIdParam }),
1703
1898
  parameterOrder: ["groupId"],
1704
- output: zod.z.array(zod.z.any())
1899
+ output: zod.z.array(ContactSchema)
1705
1900
  });
1706
1901
  const getAllGroups = require_registry.defineMethodV2("getAllGroups", {
1707
1902
  meta: {
@@ -1714,7 +1909,7 @@ const getAllGroups = require_registry.defineMethodV2("getAllGroups", {
1714
1909
  },
1715
1910
  input: zod.z.object({ withNewMessagesOnly: withNewMessagesOnlyParam }),
1716
1911
  parameterOrder: ["withNewMessagesOnly"],
1717
- output: zod.z.array(zod.z.any())
1912
+ output: zod.z.array(ChatSchema)
1718
1913
  });
1719
1914
  const getGroupMembersId = require_registry.defineMethodV2("getGroupMembersId", {
1720
1915
  meta: {
@@ -1731,7 +1926,7 @@ const getGroupMembersId = require_registry.defineMethodV2("getGroupMembersId", {
1731
1926
  },
1732
1927
  input: zod.z.object({ groupId: groupIdParam }),
1733
1928
  parameterOrder: ["groupId"],
1734
- output: zod.z.array(zod.z.string())
1929
+ output: zod.z.array(ContactIdSchema$1)
1735
1930
  });
1736
1931
  const getGroupInfo = require_registry.defineMethodV2("getGroupInfo", {
1737
1932
  meta: {
@@ -1744,7 +1939,7 @@ const getGroupInfo = require_registry.defineMethodV2("getGroupInfo", {
1744
1939
  },
1745
1940
  input: zod.z.object({ groupId: groupIdParam }),
1746
1941
  parameterOrder: ["groupId"],
1747
- output: zod.z.any()
1942
+ output: GroupMetadataSchema.nullable()
1748
1943
  });
1749
1944
  const getGroupAdmins = require_registry.defineMethodV2("getGroupAdmins", {
1750
1945
  meta: {
@@ -1757,7 +1952,7 @@ const getGroupAdmins = require_registry.defineMethodV2("getGroupAdmins", {
1757
1952
  },
1758
1953
  input: zod.z.object({ groupId: groupIdParam }),
1759
1954
  parameterOrder: ["groupId"],
1760
- output: zod.z.array(zod.z.any())
1955
+ output: zod.z.array(ContactIdSchema$1)
1761
1956
  });
1762
1957
  const getKickedGroups = require_registry.defineMethodV2("getKickedGroups", {
1763
1958
  meta: {
@@ -1770,7 +1965,7 @@ const getKickedGroups = require_registry.defineMethodV2("getKickedGroups", {
1770
1965
  },
1771
1966
  input: zod.z.object({}),
1772
1967
  parameterOrder: [],
1773
- output: zod.z.array(zod.z.string())
1968
+ output: zod.z.array(GroupChatIdSchema)
1774
1969
  });
1775
1970
  const getGroupInviteLink = require_registry.defineMethodV2("getGroupInviteLink", {
1776
1971
  meta: {
@@ -1799,7 +1994,7 @@ const createGroup = require_registry.defineMethodV2("createGroup", {
1799
1994
  contacts: zod.z.array(contactIdParam).describe("Contact IDs to add")
1800
1995
  }),
1801
1996
  parameterOrder: ["name", "contacts"],
1802
- output: zod.z.any()
1997
+ output: GroupCreationResultSchema.nullable()
1803
1998
  });
1804
1999
  const leaveGroup = require_registry.defineMethodV2("leaveGroup", {
1805
2000
  meta: {
@@ -1812,7 +2007,7 @@ const leaveGroup = require_registry.defineMethodV2("leaveGroup", {
1812
2007
  },
1813
2008
  input: zod.z.object({ groupId: groupIdParam }),
1814
2009
  parameterOrder: ["groupId"],
1815
- output: zod.z.any()
2010
+ output: zod.z.void()
1816
2011
  });
1817
2012
  const joinGroupViaLink = require_registry.defineMethodV2("joinGroupViaLink", {
1818
2013
  meta: {
@@ -1833,10 +2028,10 @@ const joinGroupViaLink = require_registry.defineMethodV2("joinGroupViaLink", {
1833
2028
  }),
1834
2029
  parameterOrder: ["link", "returnChatObj"],
1835
2030
  output: zod.z.union([
1836
- zod.z.string(),
2031
+ GroupChatIdSchema,
1837
2032
  zod.z.boolean(),
1838
2033
  zod.z.number(),
1839
- zod.z.any()
2034
+ ChatSchema
1840
2035
  ])
1841
2036
  });
1842
2037
  const revokeGroupInviteLink = require_registry.defineMethodV2("revokeGroupInviteLink", {
@@ -2050,7 +2245,7 @@ const getAllCommunities = require_registry.defineMethodV2("getAllCommunities", {
2050
2245
  },
2051
2246
  input: zod.z.object({}),
2052
2247
  parameterOrder: [],
2053
- output: zod.z.array(zod.z.string())
2248
+ output: zod.z.array(GroupChatIdSchema)
2054
2249
  });
2055
2250
  /**
2056
2251
  * Get community info
@@ -2066,7 +2261,7 @@ const getCommunityInfo = require_registry.defineMethodV2("getCommunityInfo", {
2066
2261
  },
2067
2262
  input: zod.z.object({ communityId: communityIdParam }),
2068
2263
  parameterOrder: ["communityId"],
2069
- output: zod.z.any()
2264
+ output: CommunityMetadataSchema
2070
2265
  });
2071
2266
  /**
2072
2267
  * Get community participant IDs
@@ -2082,7 +2277,7 @@ const getCommunityParticipantIds = require_registry.defineMethodV2("getCommunity
2082
2277
  },
2083
2278
  input: zod.z.object({ communityId: communityIdParam }),
2084
2279
  parameterOrder: ["communityId"],
2085
- output: zod.z.any()
2280
+ output: zod.z.array(CommunityParticipantIdsSchema)
2086
2281
  });
2087
2282
  /**
2088
2283
  * Get community admin IDs
@@ -2098,7 +2293,7 @@ const getCommunityAdminIds = require_registry.defineMethodV2("getCommunityAdminI
2098
2293
  },
2099
2294
  input: zod.z.object({ communityId: communityIdParam }),
2100
2295
  parameterOrder: ["communityId"],
2101
- output: zod.z.any()
2296
+ output: zod.z.array(CommunityAdminIdsSchema)
2102
2297
  });
2103
2298
  /**
2104
2299
  * Get community participants
@@ -2114,7 +2309,7 @@ const getCommunityParticipants = require_registry.defineMethodV2("getCommunityPa
2114
2309
  },
2115
2310
  input: zod.z.object({ communityId: communityIdParam }),
2116
2311
  parameterOrder: ["communityId"],
2117
- output: zod.z.any()
2312
+ output: zod.z.array(CommunityParticipantsSchema)
2118
2313
  });
2119
2314
  /**
2120
2315
  * Get community admins
@@ -2130,7 +2325,7 @@ const getCommunityAdmins = require_registry.defineMethodV2("getCommunityAdmins",
2130
2325
  },
2131
2326
  input: zod.z.object({ communityId: communityIdParam }),
2132
2327
  parameterOrder: ["communityId"],
2133
- output: zod.z.any()
2328
+ output: zod.z.array(CommunityAdminsSchema)
2134
2329
  });
2135
2330
  //#endregion
2136
2331
  //#region src/methods/status.ts
@@ -2153,7 +2348,7 @@ const postTextStatus = require_registry.defineMethodV2("postTextStatus", {
2153
2348
  "backgroundColor",
2154
2349
  "font"
2155
2350
  ],
2156
- output: zod.z.any()
2351
+ output: MessageIdSchema$1.or(zod.z.string()).or(zod.z.boolean())
2157
2352
  });
2158
2353
  const postImageStatus = require_registry.defineMethodV2("postImageStatus", {
2159
2354
  meta: {
@@ -2169,7 +2364,7 @@ const postImageStatus = require_registry.defineMethodV2("postImageStatus", {
2169
2364
  caption: zod.z.string().optional().describe("Status caption")
2170
2365
  }),
2171
2366
  parameterOrder: ["image", "caption"],
2172
- output: zod.z.any()
2367
+ output: MessageIdSchema$1.or(zod.z.string()).or(zod.z.boolean())
2173
2368
  });
2174
2369
  const postVideoStatus = require_registry.defineMethodV2("postVideoStatus", {
2175
2370
  meta: {
@@ -2185,7 +2380,7 @@ const postVideoStatus = require_registry.defineMethodV2("postVideoStatus", {
2185
2380
  caption: zod.z.string().optional().describe("Status caption")
2186
2381
  }),
2187
2382
  parameterOrder: ["video", "caption"],
2188
- output: zod.z.any()
2383
+ output: MessageIdSchema$1.or(zod.z.string()).or(zod.z.boolean())
2189
2384
  });
2190
2385
  const getStories = require_registry.defineMethodV2("getStories", {
2191
2386
  meta: {
@@ -2202,7 +2397,7 @@ const getStories = require_registry.defineMethodV2("getStories", {
2202
2397
  },
2203
2398
  input: zod.z.object({}),
2204
2399
  parameterOrder: [],
2205
- output: zod.z.array(zod.z.any())
2400
+ output: zod.z.array(StorySchema)
2206
2401
  });
2207
2402
  const getStatus = require_registry.defineMethodV2("getStatus", {
2208
2403
  meta: {
@@ -2215,7 +2410,7 @@ const getStatus = require_registry.defineMethodV2("getStatus", {
2215
2410
  },
2216
2411
  input: zod.z.object({ contactId: contactIdParam }),
2217
2412
  parameterOrder: ["contactId"],
2218
- output: zod.z.any()
2413
+ output: ContactStatusSchema
2219
2414
  });
2220
2415
  const deleteStatus = require_registry.defineMethodV2("deleteStatus", {
2221
2416
  meta: {
@@ -2228,7 +2423,7 @@ const deleteStatus = require_registry.defineMethodV2("deleteStatus", {
2228
2423
  },
2229
2424
  input: zod.z.object({ statusesToDelete: zod.z.union([zod.z.string(), zod.z.array(zod.z.string())]).describe("Status ID(s)") }),
2230
2425
  parameterOrder: ["statusesToDelete"],
2231
- output: zod.z.any()
2426
+ output: zod.z.boolean()
2232
2427
  });
2233
2428
  const deleteAllStatus = require_registry.defineMethodV2("deleteAllStatus", {
2234
2429
  meta: {
@@ -2242,7 +2437,7 @@ const deleteAllStatus = require_registry.defineMethodV2("deleteAllStatus", {
2242
2437
  },
2243
2438
  input: zod.z.object({}),
2244
2439
  parameterOrder: [],
2245
- output: zod.z.any()
2440
+ output: zod.z.boolean()
2246
2441
  });
2247
2442
  //#endregion
2248
2443
  //#region src/methods/labels.ts
@@ -2260,7 +2455,7 @@ const getAllLabels = require_registry.defineMethodV2("getAllLabels", {
2260
2455
  },
2261
2456
  input: zod.z.object({}),
2262
2457
  parameterOrder: [],
2263
- output: zod.z.array(zod.z.any())
2458
+ output: zod.z.array(LabelSchema)
2264
2459
  });
2265
2460
  /**
2266
2461
  * Get chats by label
@@ -2277,7 +2472,7 @@ const getChatsByLabel = require_registry.defineMethodV2("getChatsByLabel", {
2277
2472
  },
2278
2473
  input: zod.z.object({ label: zod.z.string().describe("Label name") }),
2279
2474
  parameterOrder: ["label"],
2280
- output: zod.z.array(zod.z.any())
2475
+ output: zod.z.array(ChatSchema)
2281
2476
  });
2282
2477
  /**
2283
2478
  * Add label
@@ -2330,7 +2525,7 @@ const getBusinessProfile = require_registry.defineMethodV2("getBusinessProfile",
2330
2525
  },
2331
2526
  input: zod.z.object({ contactId: contactIdParam }),
2332
2527
  parameterOrder: ["contactId"],
2333
- output: zod.z.any()
2528
+ output: BusinessProfileSchema
2334
2529
  });
2335
2530
  const getBusinessProducts = require_registry.defineMethodV2("getBusinessProducts", {
2336
2531
  meta: {
@@ -2345,7 +2540,7 @@ const getBusinessProducts = require_registry.defineMethodV2("getBusinessProducts
2345
2540
  },
2346
2541
  input: zod.z.object({ contactId: contactIdParam }),
2347
2542
  parameterOrder: ["contactId"],
2348
- output: zod.z.any()
2543
+ output: zod.z.array(ProductSchema).or(zod.z.literal(false))
2349
2544
  });
2350
2545
  const getOrder = require_registry.defineMethodV2("getOrder", {
2351
2546
  meta: {
@@ -2358,7 +2553,7 @@ const getOrder = require_registry.defineMethodV2("getOrder", {
2358
2553
  },
2359
2554
  input: zod.z.object({ id: zod.z.union([messageIdParam, zod.z.string()]).describe("Order or message ID") }),
2360
2555
  parameterOrder: ["id"],
2361
- output: zod.z.any()
2556
+ output: OrderSchema
2362
2557
  });
2363
2558
  //#endregion
2364
2559
  //#region src/methods/session.ts
@@ -2373,7 +2568,7 @@ const getMe = require_registry.defineMethodV2("getMe", {
2373
2568
  },
2374
2569
  input: zod.z.object({}),
2375
2570
  parameterOrder: [],
2376
- output: zod.z.any()
2571
+ output: HostAccountSchema
2377
2572
  });
2378
2573
  const getHostNumber = require_registry.defineMethodV2("getHostNumber", {
2379
2574
  meta: {
@@ -2399,7 +2594,7 @@ const getConnectionState = require_registry.defineMethodV2("getConnectionState",
2399
2594
  },
2400
2595
  input: zod.z.object({}),
2401
2596
  parameterOrder: [],
2402
- output: zod.z.any()
2597
+ output: zod.z.string()
2403
2598
  });
2404
2599
  const getWAVersion = require_registry.defineMethodV2("getWAVersion", {
2405
2600
  meta: {
@@ -2454,7 +2649,7 @@ const getFeatures = require_registry.defineMethodV2("getFeatures", {
2454
2649
  },
2455
2650
  input: zod.z.object({}),
2456
2651
  parameterOrder: [],
2457
- output: zod.z.any()
2652
+ output: FeatureFlagsSchema
2458
2653
  });
2459
2654
  const getLicenseType = require_registry.defineMethodV2("getLicenseType", {
2460
2655
  meta: {
@@ -2467,7 +2662,7 @@ const getLicenseType = require_registry.defineMethodV2("getLicenseType", {
2467
2662
  },
2468
2663
  input: zod.z.object({}),
2469
2664
  parameterOrder: [],
2470
- output: zod.z.union([zod.z.any(), zod.z.boolean()])
2665
+ output: LicenseTypeSchema.or(zod.z.literal(false))
2471
2666
  });
2472
2667
  const getUserAgent = require_registry.defineMethodV2("getUserAgent", {
2473
2668
  meta: {
@@ -2495,7 +2690,7 @@ const getProcessStats = require_registry.defineMethodV2("getProcessStats", {
2495
2690
  },
2496
2691
  input: zod.z.object({}),
2497
2692
  parameterOrder: [],
2498
- output: zod.z.any()
2693
+ output: ProcessStatsSchema
2499
2694
  });
2500
2695
  const getLoadedMessageCount = require_registry.defineMethodV2("getLoadedMessageCount", {
2501
2696
  meta: {
@@ -2545,7 +2740,7 @@ const healthCheck = require_registry.defineMethodV2("healthCheck", {
2545
2740
  },
2546
2741
  input: zod.z.object({}),
2547
2742
  parameterOrder: [],
2548
- output: zod.z.any()
2743
+ output: HealthCheckSchema
2549
2744
  });
2550
2745
  const setMyName = require_registry.defineMethodV2("setMyName", {
2551
2746
  meta: {
@@ -2609,7 +2804,7 @@ const decryptMedia = require_registry.defineMethodV2("decryptMedia", {
2609
2804
  },
2610
2805
  input: zod.z.object({ message: MessageSchema.describe("Message object containing media") }),
2611
2806
  parameterOrder: ["message"],
2612
- output: zod.z.string().describe("Base64 encoded decrypted media")
2807
+ output: DataURLSchema
2613
2808
  });
2614
2809
  const downloadMedia = require_registry.defineMethodV2("downloadMedia", {
2615
2810
  meta: {
@@ -2628,12 +2823,369 @@ const downloadMedia = require_registry.defineMethodV2("downloadMedia", {
2628
2823
  output: zod.z.string().describe("Path to the saved file")
2629
2824
  });
2630
2825
  //#endregion
2826
+ //#region src/interactive.ts
2827
+ const JsonValueSchema = zod.z.lazy(() => zod.z.union([
2828
+ zod.z.null(),
2829
+ zod.z.boolean(),
2830
+ zod.z.number().finite(),
2831
+ zod.z.string(),
2832
+ zod.z.array(JsonValueSchema),
2833
+ zod.z.record(zod.z.string(), JsonValueSchema)
2834
+ ]));
2835
+ const JsonObjectSchema = zod.z.record(zod.z.string(), JsonValueSchema);
2836
+ const text = zod.z.string().min(1);
2837
+ const url = zod.z.url().refine((value) => /^https?:\/\//i.test(value), "Use an HTTP or HTTPS URL");
2838
+ const id = text.describe("Stable application-defined ID returned when the recipient chooses this item");
2839
+ const ReplyActionSchema = zod.z.object({
2840
+ type: zod.z.literal("reply"),
2841
+ id,
2842
+ label: text
2843
+ }).strict();
2844
+ const LinkActionSchema = zod.z.object({
2845
+ type: zod.z.literal("url"),
2846
+ label: text,
2847
+ url
2848
+ }).strict();
2849
+ const CallActionSchema = zod.z.object({
2850
+ type: zod.z.literal("call"),
2851
+ label: text,
2852
+ phoneNumber: text
2853
+ }).strict();
2854
+ const CopyActionSchema = zod.z.object({
2855
+ type: zod.z.literal("copy"),
2856
+ label: text,
2857
+ code: text
2858
+ }).strict();
2859
+ const InteractiveActionSchema = zod.z.discriminatedUnion("type", [
2860
+ ReplyActionSchema,
2861
+ LinkActionSchema,
2862
+ CallActionSchema,
2863
+ CopyActionSchema
2864
+ ]);
2865
+ const NativeActionSchema = zod.z.object({
2866
+ name: text.describe("WhatsApp native action name; availability depends on the recipient and account"),
2867
+ parameters: JsonObjectSchema.optional()
2868
+ }).strict();
2869
+ const actions = zod.z.array(InteractiveActionSchema).min(1).superRefine((items, ctx) => {
2870
+ const replies = items.filter((item) => item.type === "reply");
2871
+ if (replies.length && replies.length !== items.length) ctx.addIssue({
2872
+ code: "custom",
2873
+ message: "Reply actions cannot be mixed with URL, call or copy actions"
2874
+ });
2875
+ const ids = /* @__PURE__ */ new Set();
2876
+ items.forEach((item, index) => {
2877
+ if (item.type !== "reply") return;
2878
+ if (ids.has(item.id)) ctx.addIssue({
2879
+ code: "custom",
2880
+ path: [index, "id"],
2881
+ message: "Duplicate reply ID"
2882
+ });
2883
+ ids.add(item.id);
2884
+ });
2885
+ });
2886
+ const media = {
2887
+ source: text.describe("HTTP(S) URL, local file path or base64 data URL; resolved by the client before sending"),
2888
+ filename: text.optional(),
2889
+ title: zod.z.string().optional()
2890
+ };
2891
+ const InteractiveHeaderSchema = zod.z.discriminatedUnion("type", [
2892
+ zod.z.object({
2893
+ type: zod.z.literal("text"),
2894
+ text
2895
+ }).strict(),
2896
+ zod.z.object({
2897
+ type: zod.z.literal("image"),
2898
+ ...media
2899
+ }).strict(),
2900
+ zod.z.object({
2901
+ type: zod.z.literal("video"),
2902
+ ...media
2903
+ }).strict(),
2904
+ zod.z.object({
2905
+ type: zod.z.literal("document"),
2906
+ ...media
2907
+ }).strict()
2908
+ ]);
2909
+ const base = {
2910
+ version: zod.z.literal(1).optional().describe("Document format version, defaults to 1; independent of WhatsApp protocol versions"),
2911
+ body: text,
2912
+ footer: zod.z.string().optional()
2913
+ };
2914
+ const ButtonsContentSchema = zod.z.object({
2915
+ ...base,
2916
+ type: zod.z.literal("buttons"),
2917
+ header: InteractiveHeaderSchema.optional(),
2918
+ actions
2919
+ }).strict();
2920
+ const ListRowSchema = zod.z.object({
2921
+ id,
2922
+ title: text,
2923
+ description: zod.z.string().optional()
2924
+ }).strict();
2925
+ const ListContentSchema = zod.z.object({
2926
+ ...base,
2927
+ type: zod.z.literal("list"),
2928
+ title: zod.z.string().optional(),
2929
+ buttonLabel: text.default("Choose an option"),
2930
+ sections: zod.z.array(zod.z.object({
2931
+ title: zod.z.string().optional(),
2932
+ rows: zod.z.array(ListRowSchema).min(1)
2933
+ }).strict()).min(1)
2934
+ }).strict();
2935
+ const FormQuestionSchema = zod.z.object({
2936
+ type: zod.z.enum(["singleSelect", "multiSelect"]),
2937
+ id,
2938
+ label: text,
2939
+ options: zod.z.array(zod.z.object({
2940
+ id,
2941
+ label: text
2942
+ }).strict()).min(1),
2943
+ allowCustomAnswer: zod.z.boolean().optional()
2944
+ }).strict();
2945
+ const FormContentSchema = zod.z.object({
2946
+ ...base,
2947
+ type: zod.z.literal("form"),
2948
+ title: zod.z.string().optional(),
2949
+ questions: zod.z.array(FormQuestionSchema).min(1)
2950
+ }).strict();
2951
+ const CarouselCardSchema = zod.z.object({
2952
+ body: text,
2953
+ header: zod.z.object({
2954
+ type: zod.z.literal("image"),
2955
+ ...media
2956
+ }).strict(),
2957
+ actions
2958
+ }).strict();
2959
+ const CarouselContentSchema = zod.z.object({
2960
+ ...base,
2961
+ type: zod.z.literal("carousel"),
2962
+ cards: zod.z.array(CarouselCardSchema).min(1)
2963
+ }).strict();
2964
+ const BookingContentSchema = zod.z.object({
2965
+ ...base,
2966
+ type: zod.z.literal("booking"),
2967
+ title: zod.z.string().optional(),
2968
+ buttonLabel: text.default("View booking"),
2969
+ booking: zod.z.object({
2970
+ startAt: zod.z.iso.datetime({ offset: true }),
2971
+ endAt: zod.z.iso.datetime({ offset: true }).optional(),
2972
+ location: zod.z.string().optional(),
2973
+ url: url.optional(),
2974
+ managementUrl: url.optional(),
2975
+ phoneNumber: zod.z.string().optional(),
2976
+ email: zod.z.email().optional(),
2977
+ description: zod.z.string().optional(),
2978
+ labels: zod.z.object({
2979
+ language: zod.z.string().optional(),
2980
+ meetingType: zod.z.string().optional(),
2981
+ detailsTitle: zod.z.string().optional(),
2982
+ addToCalendar: zod.z.string().optional(),
2983
+ viewOnMap: zod.z.string().optional(),
2984
+ manageBooking: zod.z.string().optional()
2985
+ }).strict().optional()
2986
+ }).strict(),
2987
+ actions: zod.z.array(zod.z.discriminatedUnion("type", [
2988
+ LinkActionSchema,
2989
+ CallActionSchema,
2990
+ CopyActionSchema
2991
+ ])).optional()
2992
+ }).strict();
2993
+ const NativeContentSchema = zod.z.object({
2994
+ ...base,
2995
+ type: zod.z.literal("native"),
2996
+ header: InteractiveHeaderSchema.optional(),
2997
+ actions: zod.z.array(NativeActionSchema).min(1),
2998
+ parameters: JsonObjectSchema.optional()
2999
+ }).strict().describe("Advanced extension for new native action types; parameters are passed through without claiming recipient support");
3000
+ const InteractiveContentSchema = zod.z.discriminatedUnion("type", [
3001
+ ButtonsContentSchema,
3002
+ ListContentSchema,
3003
+ FormContentSchema,
3004
+ CarouselContentSchema,
3005
+ BookingContentSchema,
3006
+ NativeContentSchema
3007
+ ]).superRefine((content, ctx) => {
3008
+ const unique = (items, path) => {
3009
+ const seen = /* @__PURE__ */ new Set();
3010
+ items.forEach((item, index) => {
3011
+ if (seen.has(item.id)) ctx.addIssue({
3012
+ code: "custom",
3013
+ path: [
3014
+ ...path,
3015
+ index,
3016
+ "id"
3017
+ ],
3018
+ message: "IDs must be unique"
3019
+ });
3020
+ seen.add(item.id);
3021
+ });
3022
+ };
3023
+ if (content.type === "form") {
3024
+ unique(content.questions, ["questions"]);
3025
+ content.questions.forEach((q, index) => {
3026
+ unique(q.options, [
3027
+ "questions",
3028
+ index,
3029
+ "options"
3030
+ ]);
3031
+ if (q.id === "__openwa_form__") ctx.addIssue({
3032
+ code: "custom",
3033
+ path: [
3034
+ "questions",
3035
+ index,
3036
+ "id"
3037
+ ],
3038
+ message: "This question ID is reserved"
3039
+ });
3040
+ });
3041
+ }
3042
+ if (content.type === "list") {
3043
+ const seen = /* @__PURE__ */ new Set();
3044
+ content.sections.forEach((section, s) => section.rows.forEach((row, r) => {
3045
+ if (seen.has(row.id)) ctx.addIssue({
3046
+ code: "custom",
3047
+ path: [
3048
+ "sections",
3049
+ s,
3050
+ "rows",
3051
+ r,
3052
+ "id"
3053
+ ],
3054
+ message: "Row IDs must be unique across sections"
3055
+ });
3056
+ seen.add(row.id);
3057
+ }));
3058
+ }
3059
+ if (content.type === "booking" && content.booking.endAt && Date.parse(content.booking.endAt) <= Date.parse(content.booking.startAt)) ctx.addIssue({
3060
+ code: "custom",
3061
+ path: ["booking", "endAt"],
3062
+ message: "Booking end must be after its start"
3063
+ });
3064
+ });
3065
+ /** Validate a JSON document without sending it or loading media; suitable for UI builders. */
3066
+ function defineInteractiveMessage(content) {
3067
+ return InteractiveContentSchema.parse(content);
3068
+ }
3069
+ const responseBase = {
3070
+ messageId: text,
3071
+ chatId: text,
3072
+ senderId: text,
3073
+ originalMessageId: zod.z.string().optional().describe("Original WhatsApp stanza ID; may not be a full serialized message key"),
3074
+ timestamp: zod.z.number().optional(),
3075
+ raw: JsonObjectSchema
3076
+ };
3077
+ const FormResponseSchema = zod.z.object({
3078
+ ...responseBase,
3079
+ type: zod.z.literal("form"),
3080
+ answers: zod.z.record(zod.z.string(), zod.z.union([zod.z.string(), zod.z.array(zod.z.string())]))
3081
+ });
3082
+ const InteractiveResponseSchema = zod.z.discriminatedUnion("type", [
3083
+ FormResponseSchema,
3084
+ zod.z.object({
3085
+ ...responseBase,
3086
+ type: zod.z.literal("reply"),
3087
+ id: text,
3088
+ label: zod.z.string().optional()
3089
+ }),
3090
+ zod.z.object({
3091
+ ...responseBase,
3092
+ type: zod.z.literal("list"),
3093
+ id: text,
3094
+ label: zod.z.string().optional()
3095
+ }),
3096
+ zod.z.object({
3097
+ ...responseBase,
3098
+ type: zod.z.literal("native"),
3099
+ name: text,
3100
+ parameters: JsonValueSchema.optional(),
3101
+ parseError: zod.z.string().optional()
3102
+ })
3103
+ ]);
3104
+ //#endregion
3105
+ //#region src/methods/interactive.ts
3106
+ const SendInteractiveInputSchema = zod.z.object({
3107
+ to: toParam,
3108
+ content: InteractiveContentSchema
3109
+ }).strict();
3110
+ const SendRawMessageInputSchema = zod.z.object({
3111
+ to: toParam,
3112
+ payload: JsonObjectSchema
3113
+ }).strict();
3114
+ const sendInteractive = require_registry.defineMethodV2("sendInteractive", {
3115
+ meta: {
3116
+ description: "Send a portable interactive message document (Insiders and above)",
3117
+ namespace: "messages",
3118
+ action: "send",
3119
+ license: "insiders",
3120
+ functionality: "both",
3121
+ httpMethod: "POST"
3122
+ },
3123
+ input: SendInteractiveInputSchema,
3124
+ parameterOrder: ["to", "content"],
3125
+ output: zod.z.string()
3126
+ });
3127
+ const sendRawMessage = require_registry.defineMethodV2("sendRawMessage", {
3128
+ meta: {
3129
+ description: "Send a constructed WhatsApp protobuf Message payload (Insiders and above); media must already be uploaded",
3130
+ namespace: "messages",
3131
+ action: "send",
3132
+ license: "insiders",
3133
+ functionality: "both",
3134
+ httpMethod: "POST"
3135
+ },
3136
+ input: SendRawMessageInputSchema,
3137
+ parameterOrder: ["to", "payload"],
3138
+ output: zod.z.string()
3139
+ });
3140
+ //#endregion
2631
3141
  Object.defineProperty(exports, "Base64ToDataUrlSchema", {
2632
3142
  enumerable: true,
2633
3143
  get: function() {
2634
3144
  return Base64ToDataUrlSchema;
2635
3145
  }
2636
3146
  });
3147
+ Object.defineProperty(exports, "BookingContentSchema", {
3148
+ enumerable: true,
3149
+ get: function() {
3150
+ return BookingContentSchema;
3151
+ }
3152
+ });
3153
+ Object.defineProperty(exports, "BusinessProfileSchema", {
3154
+ enumerable: true,
3155
+ get: function() {
3156
+ return BusinessProfileSchema;
3157
+ }
3158
+ });
3159
+ Object.defineProperty(exports, "ButtonsContentSchema", {
3160
+ enumerable: true,
3161
+ get: function() {
3162
+ return ButtonsContentSchema;
3163
+ }
3164
+ });
3165
+ Object.defineProperty(exports, "CallActionSchema", {
3166
+ enumerable: true,
3167
+ get: function() {
3168
+ return CallActionSchema;
3169
+ }
3170
+ });
3171
+ Object.defineProperty(exports, "CarouselCardSchema", {
3172
+ enumerable: true,
3173
+ get: function() {
3174
+ return CarouselCardSchema;
3175
+ }
3176
+ });
3177
+ Object.defineProperty(exports, "CarouselContentSchema", {
3178
+ enumerable: true,
3179
+ get: function() {
3180
+ return CarouselContentSchema;
3181
+ }
3182
+ });
3183
+ Object.defineProperty(exports, "CartItemSchema", {
3184
+ enumerable: true,
3185
+ get: function() {
3186
+ return CartItemSchema;
3187
+ }
3188
+ });
2637
3189
  Object.defineProperty(exports, "ChatIdCodecSchema", {
2638
3190
  enumerable: true,
2639
3191
  get: function() {
@@ -2652,6 +3204,42 @@ Object.defineProperty(exports, "ChatSchema", {
2652
3204
  return ChatSchema;
2653
3205
  }
2654
3206
  });
3207
+ Object.defineProperty(exports, "CommonGroupSchema", {
3208
+ enumerable: true,
3209
+ get: function() {
3210
+ return CommonGroupSchema;
3211
+ }
3212
+ });
3213
+ Object.defineProperty(exports, "CommunityAdminIdsSchema", {
3214
+ enumerable: true,
3215
+ get: function() {
3216
+ return CommunityAdminIdsSchema;
3217
+ }
3218
+ });
3219
+ Object.defineProperty(exports, "CommunityAdminsSchema", {
3220
+ enumerable: true,
3221
+ get: function() {
3222
+ return CommunityAdminsSchema;
3223
+ }
3224
+ });
3225
+ Object.defineProperty(exports, "CommunityMetadataSchema", {
3226
+ enumerable: true,
3227
+ get: function() {
3228
+ return CommunityMetadataSchema;
3229
+ }
3230
+ });
3231
+ Object.defineProperty(exports, "CommunityParticipantIdsSchema", {
3232
+ enumerable: true,
3233
+ get: function() {
3234
+ return CommunityParticipantIdsSchema;
3235
+ }
3236
+ });
3237
+ Object.defineProperty(exports, "CommunityParticipantsSchema", {
3238
+ enumerable: true,
3239
+ get: function() {
3240
+ return CommunityParticipantsSchema;
3241
+ }
3242
+ });
2655
3243
  Object.defineProperty(exports, "ContactIdCodecSchema", {
2656
3244
  enumerable: true,
2657
3245
  get: function() {
@@ -2670,18 +3258,66 @@ Object.defineProperty(exports, "ContactSchema", {
2670
3258
  return ContactSchema;
2671
3259
  }
2672
3260
  });
3261
+ Object.defineProperty(exports, "ContactStatusSchema", {
3262
+ enumerable: true,
3263
+ get: function() {
3264
+ return ContactStatusSchema;
3265
+ }
3266
+ });
3267
+ Object.defineProperty(exports, "CopyActionSchema", {
3268
+ enumerable: true,
3269
+ get: function() {
3270
+ return CopyActionSchema;
3271
+ }
3272
+ });
3273
+ Object.defineProperty(exports, "DataURLSchema", {
3274
+ enumerable: true,
3275
+ get: function() {
3276
+ return DataURLSchema;
3277
+ }
3278
+ });
3279
+ Object.defineProperty(exports, "FeatureFlagsSchema", {
3280
+ enumerable: true,
3281
+ get: function() {
3282
+ return FeatureFlagsSchema;
3283
+ }
3284
+ });
2673
3285
  Object.defineProperty(exports, "FileToDataUrlSchema", {
2674
3286
  enumerable: true,
2675
3287
  get: function() {
2676
3288
  return FileToDataUrlSchema;
2677
3289
  }
2678
3290
  });
3291
+ Object.defineProperty(exports, "FormContentSchema", {
3292
+ enumerable: true,
3293
+ get: function() {
3294
+ return FormContentSchema;
3295
+ }
3296
+ });
3297
+ Object.defineProperty(exports, "FormQuestionSchema", {
3298
+ enumerable: true,
3299
+ get: function() {
3300
+ return FormQuestionSchema;
3301
+ }
3302
+ });
3303
+ Object.defineProperty(exports, "FormResponseSchema", {
3304
+ enumerable: true,
3305
+ get: function() {
3306
+ return FormResponseSchema;
3307
+ }
3308
+ });
2679
3309
  Object.defineProperty(exports, "GroupChatIdSchema", {
2680
3310
  enumerable: true,
2681
3311
  get: function() {
2682
3312
  return GroupChatIdSchema;
2683
3313
  }
2684
3314
  });
3315
+ Object.defineProperty(exports, "GroupCreationResultSchema", {
3316
+ enumerable: true,
3317
+ get: function() {
3318
+ return GroupCreationResultSchema;
3319
+ }
3320
+ });
2685
3321
  Object.defineProperty(exports, "GroupIdCodecSchema", {
2686
3322
  enumerable: true,
2687
3323
  get: function() {
@@ -2700,24 +3336,108 @@ Object.defineProperty(exports, "GroupMetadataSchema", {
2700
3336
  return GroupMetadataSchema;
2701
3337
  }
2702
3338
  });
3339
+ Object.defineProperty(exports, "HealthCheckSchema", {
3340
+ enumerable: true,
3341
+ get: function() {
3342
+ return HealthCheckSchema;
3343
+ }
3344
+ });
2703
3345
  Object.defineProperty(exports, "HexColorSchema", {
2704
3346
  enumerable: true,
2705
3347
  get: function() {
2706
3348
  return HexColorSchema;
2707
3349
  }
2708
3350
  });
3351
+ Object.defineProperty(exports, "HostAccountSchema", {
3352
+ enumerable: true,
3353
+ get: function() {
3354
+ return HostAccountSchema;
3355
+ }
3356
+ });
2709
3357
  Object.defineProperty(exports, "IdSchema", {
2710
3358
  enumerable: true,
2711
3359
  get: function() {
2712
3360
  return IdSchema;
2713
3361
  }
2714
3362
  });
3363
+ Object.defineProperty(exports, "InteractiveActionSchema", {
3364
+ enumerable: true,
3365
+ get: function() {
3366
+ return InteractiveActionSchema;
3367
+ }
3368
+ });
3369
+ Object.defineProperty(exports, "InteractiveContentSchema", {
3370
+ enumerable: true,
3371
+ get: function() {
3372
+ return InteractiveContentSchema;
3373
+ }
3374
+ });
3375
+ Object.defineProperty(exports, "InteractiveHeaderSchema", {
3376
+ enumerable: true,
3377
+ get: function() {
3378
+ return InteractiveHeaderSchema;
3379
+ }
3380
+ });
3381
+ Object.defineProperty(exports, "InteractiveResponseSchema", {
3382
+ enumerable: true,
3383
+ get: function() {
3384
+ return InteractiveResponseSchema;
3385
+ }
3386
+ });
2715
3387
  Object.defineProperty(exports, "IsoDatetimeToDateSchema", {
2716
3388
  enumerable: true,
2717
3389
  get: function() {
2718
3390
  return IsoDatetimeToDateSchema;
2719
3391
  }
2720
3392
  });
3393
+ Object.defineProperty(exports, "JsonObjectSchema", {
3394
+ enumerable: true,
3395
+ get: function() {
3396
+ return JsonObjectSchema;
3397
+ }
3398
+ });
3399
+ Object.defineProperty(exports, "JsonValueSchema", {
3400
+ enumerable: true,
3401
+ get: function() {
3402
+ return JsonValueSchema;
3403
+ }
3404
+ });
3405
+ Object.defineProperty(exports, "LLMMessageSchema", {
3406
+ enumerable: true,
3407
+ get: function() {
3408
+ return LLMMessageSchema;
3409
+ }
3410
+ });
3411
+ Object.defineProperty(exports, "LabelSchema", {
3412
+ enumerable: true,
3413
+ get: function() {
3414
+ return LabelSchema;
3415
+ }
3416
+ });
3417
+ Object.defineProperty(exports, "LicenseTypeSchema", {
3418
+ enumerable: true,
3419
+ get: function() {
3420
+ return LicenseTypeSchema;
3421
+ }
3422
+ });
3423
+ Object.defineProperty(exports, "LinkActionSchema", {
3424
+ enumerable: true,
3425
+ get: function() {
3426
+ return LinkActionSchema;
3427
+ }
3428
+ });
3429
+ Object.defineProperty(exports, "ListContentSchema", {
3430
+ enumerable: true,
3431
+ get: function() {
3432
+ return ListContentSchema;
3433
+ }
3434
+ });
3435
+ Object.defineProperty(exports, "ListRowSchema", {
3436
+ enumerable: true,
3437
+ get: function() {
3438
+ return ListRowSchema;
3439
+ }
3440
+ });
2721
3441
  Object.defineProperty(exports, "LocationSchema", {
2722
3442
  enumerable: true,
2723
3443
  get: function() {
@@ -2748,6 +3468,18 @@ Object.defineProperty(exports, "MessageIdSchema", {
2748
3468
  return MessageIdSchema;
2749
3469
  }
2750
3470
  });
3471
+ Object.defineProperty(exports, "MessageInfoSchema", {
3472
+ enumerable: true,
3473
+ get: function() {
3474
+ return MessageInfoSchema;
3475
+ }
3476
+ });
3477
+ Object.defineProperty(exports, "MessageInteractionSchema", {
3478
+ enumerable: true,
3479
+ get: function() {
3480
+ return MessageInteractionSchema;
3481
+ }
3482
+ });
2751
3483
  Object.defineProperty(exports, "MessageSchema", {
2752
3484
  enumerable: true,
2753
3485
  get: function() {
@@ -2760,12 +3492,90 @@ Object.defineProperty(exports, "MessageTypes", {
2760
3492
  return MessageTypes;
2761
3493
  }
2762
3494
  });
3495
+ Object.defineProperty(exports, "NativeActionSchema", {
3496
+ enumerable: true,
3497
+ get: function() {
3498
+ return NativeActionSchema;
3499
+ }
3500
+ });
3501
+ Object.defineProperty(exports, "NativeContentSchema", {
3502
+ enumerable: true,
3503
+ get: function() {
3504
+ return NativeContentSchema;
3505
+ }
3506
+ });
3507
+ Object.defineProperty(exports, "NumberCheckSchema", {
3508
+ enumerable: true,
3509
+ get: function() {
3510
+ return NumberCheckSchema;
3511
+ }
3512
+ });
3513
+ Object.defineProperty(exports, "NumberProfileSchema", {
3514
+ enumerable: true,
3515
+ get: function() {
3516
+ return NumberProfileSchema;
3517
+ }
3518
+ });
3519
+ Object.defineProperty(exports, "OrderSchema", {
3520
+ enumerable: true,
3521
+ get: function() {
3522
+ return OrderSchema;
3523
+ }
3524
+ });
3525
+ Object.defineProperty(exports, "ProcessStatsSchema", {
3526
+ enumerable: true,
3527
+ get: function() {
3528
+ return ProcessStatsSchema;
3529
+ }
3530
+ });
3531
+ Object.defineProperty(exports, "ProductSchema", {
3532
+ enumerable: true,
3533
+ get: function() {
3534
+ return ProductSchema;
3535
+ }
3536
+ });
3537
+ Object.defineProperty(exports, "ReplyActionSchema", {
3538
+ enumerable: true,
3539
+ get: function() {
3540
+ return ReplyActionSchema;
3541
+ }
3542
+ });
3543
+ Object.defineProperty(exports, "SendInteractiveInputSchema", {
3544
+ enumerable: true,
3545
+ get: function() {
3546
+ return SendInteractiveInputSchema;
3547
+ }
3548
+ });
3549
+ Object.defineProperty(exports, "SendRawMessageInputSchema", {
3550
+ enumerable: true,
3551
+ get: function() {
3552
+ return SendRawMessageInputSchema;
3553
+ }
3554
+ });
3555
+ Object.defineProperty(exports, "SendTextResultSchema", {
3556
+ enumerable: true,
3557
+ get: function() {
3558
+ return SendTextResultSchema;
3559
+ }
3560
+ });
3561
+ Object.defineProperty(exports, "SerializedMessageIdSchema", {
3562
+ enumerable: true,
3563
+ get: function() {
3564
+ return SerializedMessageIdSchema;
3565
+ }
3566
+ });
2763
3567
  Object.defineProperty(exports, "SimpleListener", {
2764
3568
  enumerable: true,
2765
3569
  get: function() {
2766
3570
  return SimpleListener;
2767
3571
  }
2768
3572
  });
3573
+ Object.defineProperty(exports, "StorySchema", {
3574
+ enumerable: true,
3575
+ get: function() {
3576
+ return StorySchema;
3577
+ }
3578
+ });
2769
3579
  Object.defineProperty(exports, "UnixMillisToDateSchema", {
2770
3580
  enumerable: true,
2771
3581
  get: function() {
@@ -2898,6 +3708,12 @@ Object.defineProperty(exports, "decryptMedia", {
2898
3708
  return decryptMedia;
2899
3709
  }
2900
3710
  });
3711
+ Object.defineProperty(exports, "defineInteractiveMessage", {
3712
+ enumerable: true,
3713
+ get: function() {
3714
+ return defineInteractiveMessage;
3715
+ }
3716
+ });
2901
3717
  Object.defineProperty(exports, "deleteAllStatus", {
2902
3718
  enumerable: true,
2903
3719
  get: function() {
@@ -3552,6 +4368,12 @@ Object.defineProperty(exports, "sendImage", {
3552
4368
  return sendImage;
3553
4369
  }
3554
4370
  });
4371
+ Object.defineProperty(exports, "sendInteractive", {
4372
+ enumerable: true,
4373
+ get: function() {
4374
+ return sendInteractive;
4375
+ }
4376
+ });
3555
4377
  Object.defineProperty(exports, "sendLinkWithAutoPreview", {
3556
4378
  enumerable: true,
3557
4379
  get: function() {
@@ -3600,6 +4422,12 @@ Object.defineProperty(exports, "sendPtt", {
3600
4422
  return sendPtt;
3601
4423
  }
3602
4424
  });
4425
+ Object.defineProperty(exports, "sendRawMessage", {
4426
+ enumerable: true,
4427
+ get: function() {
4428
+ return sendRawMessage;
4429
+ }
4430
+ });
3603
4431
  Object.defineProperty(exports, "sendReplyWithMentions", {
3604
4432
  enumerable: true,
3605
4433
  get: function() {
@@ -3799,4 +4627,4 @@ Object.defineProperty(exports, "withNewMessagesOnlyParam", {
3799
4627
  }
3800
4628
  });
3801
4629
 
3802
- //# sourceMappingURL=methods-Dizm7Fn9.cjs.map
4630
+ //# sourceMappingURL=methods-BGmdzjd3.cjs.map