@open-wa/schema 5.9.7 → 5.11.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 (67) hide show
  1. package/dist/generated/index.cjs +1 -1
  2. package/dist/generated/index.cjs.map +1 -1
  3. package/dist/generated/index.d.cts +141 -583
  4. package/dist/generated/index.d.cts.map +1 -1
  5. package/dist/generated/index.d.mts +141 -583
  6. package/dist/generated/index.d.mts.map +1 -1
  7. package/dist/generated/index.mjs +1 -1
  8. package/dist/generated/index.mjs.map +1 -1
  9. package/dist/{index-j2GMQzWY.d.mts → index-DlfSVhzo.d.mts} +53 -234
  10. package/dist/index-DlfSVhzo.d.mts.map +1 -0
  11. package/dist/{index-BR61SSKs.d.cts → index-JLPIa9s-.d.cts} +53 -234
  12. package/dist/index-JLPIa9s-.d.cts.map +1 -0
  13. package/dist/index.cjs +20 -11
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.cts +3 -3
  16. package/dist/index.d.mts +3 -3
  17. package/dist/index.mjs +16 -10
  18. package/dist/index.mjs.map +1 -1
  19. package/dist/{interactive-DxUwKpzK.d.cts → interactive-BE_M4nur.d.cts} +14 -6
  20. package/dist/interactive-BE_M4nur.d.cts.map +1 -0
  21. package/dist/{interactive-DxUwKpzK.d.mts → interactive-BE_M4nur.d.mts} +14 -6
  22. package/dist/interactive-BE_M4nur.d.mts.map +1 -0
  23. package/dist/interactive-ClvvgmVP.cjs +630 -0
  24. package/dist/interactive-ClvvgmVP.cjs.map +1 -0
  25. package/dist/interactive-Dec4HB2U.mjs +475 -0
  26. package/dist/interactive-Dec4HB2U.mjs.map +1 -0
  27. package/dist/interactive.cjs +26 -304
  28. package/dist/interactive.d.cts +2 -2
  29. package/dist/interactive.d.mts +2 -2
  30. package/dist/interactive.mjs +2 -283
  31. package/dist/methods/index.cjs +1 -1
  32. package/dist/methods/index.d.cts +1 -1
  33. package/dist/methods/index.d.mts +1 -1
  34. package/dist/methods/index.mjs +1 -1
  35. package/dist/{methods-D4XLSUxh.cjs → methods-CILSsPyT.cjs} +27 -93
  36. package/dist/methods-CILSsPyT.cjs.map +1 -0
  37. package/dist/{methods-CpeSpB2P.mjs → methods-L7ijqbZM.mjs} +19 -79
  38. package/dist/methods-L7ijqbZM.mjs.map +1 -0
  39. package/package.json +3 -3
  40. package/src/__tests__/booking-time.contract.test.ts +88 -0
  41. package/src/__tests__/generators.contract.test.ts +82 -45
  42. package/src/booking-time.ts +39 -0
  43. package/src/common-types.ts +1 -1
  44. package/src/effect-projection.ts +90 -47
  45. package/src/events/asyncapi.ts +2 -2
  46. package/src/events/contracts.ts +10 -3
  47. package/src/events/polls.ts +1 -1
  48. package/src/generated/BaseClient.ts +12 -12
  49. package/src/generated/asyncapi.json +206 -95
  50. package/src/generated/openapi.json +1702 -1337
  51. package/src/interactive.ts +12 -1
  52. package/src/methods/calls.ts +4 -4
  53. package/src/methods/contacts.ts +1 -1
  54. package/src/methods/groups.ts +2 -2
  55. package/src/methods/messaging.ts +7 -7
  56. package/src/methods/session.ts +1 -1
  57. package/src/methods/whatsapp-events.ts +1 -1
  58. package/src/parameters.ts +2 -2
  59. package/src/return-types.ts +1 -1
  60. package/dist/index-BR61SSKs.d.cts.map +0 -1
  61. package/dist/index-j2GMQzWY.d.mts.map +0 -1
  62. package/dist/interactive-DxUwKpzK.d.cts.map +0 -1
  63. package/dist/interactive-DxUwKpzK.d.mts.map +0 -1
  64. package/dist/interactive.cjs.map +0 -1
  65. package/dist/interactive.mjs.map +0 -1
  66. package/dist/methods-CpeSpB2P.mjs.map +0 -1
  67. package/dist/methods-D4XLSUxh.cjs.map +0 -1
@@ -1,67 +1,8 @@
1
1
  import { d as parameterRegistry, o as defineMethodV2 } from "./registry-BIddXpin.mjs";
2
- import { InteractiveContentSchema, JsonObjectSchema } from "./interactive.mjs";
2
+ import { E as projectEffectSchema, f as InteractiveContentSchema, h as JsonObjectSchema } from "./interactive-Dec4HB2U.mjs";
3
3
  import { z } from "zod";
4
4
  import { Schema } from "effect";
5
5
  import { assertFile, getDUrl } from "@open-wa/utils";
6
- //#region src/effect-projection.ts
7
- /** Project Effect contracts into the serving method and listener registry. */
8
- function projectEffectSchema(schema) {
9
- if ("fields" in schema) {
10
- const fields = schema.fields;
11
- const shape = Object.fromEntries(Object.entries(fields).map(([name, field]) => {
12
- const optional = field.ast.context?.isOptional === true;
13
- const hasUndefined = field.ast._tag === "Union" && field.ast.types.some((member) => member._tag === "Undefined");
14
- const value = projectEffectSchema(!optional ? field : hasUndefined ? Schema.required(field) : Schema.requiredKey(field));
15
- return [name, optional ? value.optional() : value];
16
- }));
17
- return z.object(shape);
18
- }
19
- const document = Schema.toJsonSchemaDocument(schema);
20
- const project = (node) => {
21
- if (node.$ref) {
22
- const key = node.$ref.split("/").at(-1);
23
- return project(document.definitions[key]);
24
- }
25
- if ("const" in node) return z.literal(node.const);
26
- if (node.enum) return z.union(node.enum.map((value) => z.literal(value)));
27
- const members = node.anyOf ?? node.oneOf;
28
- if (members) return z.union(members.map(project));
29
- switch (node.type) {
30
- case "string": {
31
- let value = z.string();
32
- if (node.minLength !== void 0) value = value.min(node.minLength);
33
- if (node.maxLength !== void 0) value = value.max(node.maxLength);
34
- return value;
35
- }
36
- case "number":
37
- case "integer": {
38
- let value = node.type === "integer" ? z.number().int() : z.number();
39
- if (node.minimum !== void 0) value = value.min(node.minimum);
40
- if (node.maximum !== void 0) value = value.max(node.maximum);
41
- if (node.exclusiveMinimum !== void 0) value = value.gt(node.exclusiveMinimum);
42
- if (node.exclusiveMaximum !== void 0) value = value.lt(node.exclusiveMaximum);
43
- return value;
44
- }
45
- case "boolean": return z.boolean();
46
- case "null": return z.null();
47
- case "array": return z.array(project(node.items ?? {}));
48
- case "object": {
49
- const properties = node.properties ?? {};
50
- const values = typeof node.additionalProperties === "object" ? project(node.additionalProperties) : node.additionalProperties ? z.unknown() : void 0;
51
- if (!Object.keys(properties).length && values) return z.record(z.string(), values);
52
- const required = new Set(node.required ?? []);
53
- const object = z.object(Object.fromEntries(Object.entries(properties).map(([key, value]) => {
54
- const field = project(value);
55
- return [key, required.has(key) ? field : field.optional()];
56
- })));
57
- return values ? object.catchall(values) : object;
58
- }
59
- default: return z.unknown();
60
- }
61
- };
62
- return project(document.schema);
63
- }
64
- //#endregion
65
6
  //#region src/whatsapp-events.ts
66
7
  const id = Schema.String.check(Schema.isMinLength(1));
67
8
  const seconds = Schema.Number.check(Schema.isInt(), Schema.isGreaterThanOrEqualTo(0), Schema.isLessThanOrEqualTo(2147483647));
@@ -392,7 +333,7 @@ const ContactSchema = z.object({
392
333
  msgs: z.array(z.unknown()).nullable().optional(),
393
334
  profilePicThumbObj: z.object({
394
335
  eurl: z.string().optional(),
395
- id: IdSchema.optional(),
336
+ id: ContactIdSchema$1.optional().describe("Serialized contact ID returned by the profile-picture serializer"),
396
337
  img: z.string().optional(),
397
338
  imgFull: z.string().optional(),
398
339
  tag: z.string().optional()
@@ -517,7 +458,6 @@ const HealthCheckSchema = z.object({
517
458
  state: z.string().optional(),
518
459
  isPhoneDisconnected: z.boolean().optional(),
519
460
  isHere: z.boolean().optional(),
520
- wapiInjected: z.boolean().optional(),
521
461
  online: z.boolean().optional(),
522
462
  tryingToReachPhone: z.boolean().optional(),
523
463
  retryingIn: z.number().optional(),
@@ -952,7 +892,7 @@ const messageIdsParam = z.union([z.array(messageIdParam), messageIdParam]).descr
952
892
  keyAliases: ["messages"]
953
893
  });
954
894
  const mentionedJidListParam = z.array(contactIdParam).optional().describe("List of mentioned contact IDs").register(parameterRegistry, { example: ["447123456789@c.us", "441234567890@c.us"] });
955
- const messageOptionsParam = 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(parameterRegistry, { formatDescription: "Accepted as unknown for compatibility; currently ignored by sendText. Use reply() or sendTextWithMentions() for supported reply and mention behavior." });
895
+ const messageOptionsParam = z.unknown().optional().describe("Not used. Leave it out; use reply() for quoted replies and sendTextWithMentions() for mentions.").register(parameterRegistry, { formatDescription: "sendText ignores this value." });
956
896
  //#endregion
957
897
  //#region src/methods/messaging.ts
958
898
  /** The normalized serialized message key returned by the public sendText client. */
@@ -966,7 +906,7 @@ const StickerJobSchema = z.object({
966
906
  "auto",
967
907
  "browser",
968
908
  "standalone"
969
- ]).optional().describe("Defaults to browser when it supports the entire job; otherwise the entire job runs standalone."),
909
+ ]).optional().describe("Where the sticker is rendered. `auto` (the default) picks the best option for the whole job."),
970
910
  quality: z.number().min(.01).max(1).optional().describe("Maximum encoding quality; encoding can reduce quality to meet sticker byte limits."),
971
911
  fit: z.enum(["contain", "cover"]).optional(),
972
912
  circle: z.boolean().optional(),
@@ -980,7 +920,7 @@ const StickerJobSchema = z.object({
980
920
  }).strict();
981
921
  const sendSticker = defineMethodV2("sendSticker", {
982
922
  meta: {
983
- description: "Render a sticker locally using automatic whole-job backend selection and ordered effects, then submit through the private donor finalizer. Author and pack labels are configurable; donor app links are owned by the installed patch. Returns a submitted message ID, not a delivery receipt. Unknown send outcomes must be reconciled before retrying.",
923
+ description: "Turn an image or video into a sticker, apply optional effects and author and pack labels, and send it. Resolves to the message ID once WhatsApp accepts it, not a delivery receipt. If the outcome is unknown, check the chat before you retry.",
984
924
  action: "send",
985
925
  namespace: "messages",
986
926
  license: "none",
@@ -1040,7 +980,7 @@ const sendAlbum = defineMethodV2("sendAlbum", {
1040
980
  */
1041
981
  const sendText = defineMethodV2("sendText", {
1042
982
  meta: {
1043
- 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.",
983
+ description: "Send a text message to a chat. Starting a chat with a number that has never messaged you needs a Restricted or Premium license.",
1044
984
  action: "send",
1045
985
  namespace: "messages",
1046
986
  license: "none",
@@ -1144,7 +1084,7 @@ const sendPaymentRequest = defineMethodV2("sendPaymentRequest", {
1144
1084
  */
1145
1085
  const sendImage = defineMethodV2("sendImage", {
1146
1086
  meta: {
1147
- description: "Sends media through the native attachment pipeline, including images and videos. Options select presentation, view once, GIF playback or circular video notes; media is not transcoded. Returns submission status, not a delivery receipt.",
1087
+ description: "Send an image or video, or any other media file, as a WhatsApp attachment. Options set the caption, view once, GIF playback or a round video note. Media is sent as is, without conversion. Resolves to the send result, not a delivery receipt.",
1148
1088
  action: "send",
1149
1089
  namespace: "messages",
1150
1090
  license: "none",
@@ -1458,7 +1398,7 @@ const sendListMessage = defineMethodV2("sendListMessage", {
1458
1398
  */
1459
1399
  const sendPoll = defineMethodV2("sendPoll", {
1460
1400
  meta: {
1461
- description: "Sends a text poll with a selection limit, quote, optional closing time in Unix milliseconds and hidden voter names. Closing time and hidden names require native WhatsApp support for the sending account/chat. These fields select the native V6 poll payload.",
1401
+ description: "Send a poll with a selection limit, an optional quoted message, an optional closing time in Unix milliseconds and optionally hidden voter names. Closing times and hidden names only work where WhatsApp supports them for the sending account and chat.",
1462
1402
  action: "send",
1463
1403
  namespace: "messages",
1464
1404
  license: "none",
@@ -1506,7 +1446,7 @@ const voteOnPoll = defineMethodV2("voteOnPoll", {
1506
1446
  });
1507
1447
  const getPollResults = defineMethodV2("getPollResults", {
1508
1448
  meta: {
1509
- description: "Hydrates the local poll vote store and returns synced counts, choices and votes. Hidden-voter polls omit voter identities and the votes array. Unsynced votes may be absent.",
1449
+ description: "Get the current counts, choices and votes for a poll. Polls with hidden voters leave out voter identities and the votes array, and very recent votes may not appear yet.",
1510
1450
  action: "get",
1511
1451
  namespace: "messages",
1512
1452
  license: "none",
@@ -1893,7 +1833,7 @@ const unstarMessage = defineMethodV2("unstarMessage", {
1893
1833
  });
1894
1834
  const editMessage = defineMethodV2("editMessage", {
1895
1835
  meta: {
1896
- description: "Edits the text of a message through the installed private patch",
1836
+ description: "Edit the text of a message you sent",
1897
1837
  action: "update",
1898
1838
  namespace: "messages",
1899
1839
  license: "none",
@@ -2231,7 +2171,7 @@ const requestPhoneNumber = defineMethodV2("requestPhoneNumber", {
2231
2171
  });
2232
2172
  const sharePhoneNumber = defineMethodV2("sharePhoneNumber", {
2233
2173
  meta: {
2234
- description: "Share the signed-in account’s own phone number with a direct LID chat using WhatsApp’s native protocol. No arbitrary phone number is accepted.",
2174
+ description: "Share the logged-in account’s own phone number in a one-to-one chat that only shows a LID. You can’t share any other number.",
2235
2175
  action: "send",
2236
2176
  namespace: "contacts",
2237
2177
  license: "none",
@@ -2427,10 +2367,10 @@ const getGroupMembersId = defineMethodV2("getGroupMembersId", {
2427
2367
  const GroupInfoSchema = z.object({
2428
2368
  title: z.string(),
2429
2369
  description: z.string().nullish()
2430
- }).passthrough().describe("Group title and description returned by the private getGroupInfo patch.");
2370
+ }).passthrough().describe("The group title and description.");
2431
2371
  const getGroupInfo = defineMethodV2("getGroupInfo", {
2432
2372
  meta: {
2433
- description: "Get the group title and description through the installed private patch",
2373
+ description: "Get a group title and description",
2434
2374
  action: "read",
2435
2375
  namespace: "groups",
2436
2376
  license: "none",
@@ -3181,7 +3121,7 @@ const getLicenseType = defineMethodV2("getLicenseType", {
3181
3121
  });
3182
3122
  const getLicenseFeatures = defineMethodV2("getLicenseFeatures", {
3183
3123
  meta: {
3184
- description: "Get enabled and disabled licensed features from the accepted licence patch. This reports licence access; actions check runtime availability automatically.",
3124
+ description: "List which licensed features your license key turns on. Each method still checks availability when you call it.",
3185
3125
  action: "read",
3186
3126
  namespace: "session",
3187
3127
  license: "none",
@@ -3492,7 +3432,7 @@ const register = (name, input, output, parameters, description) => defineMethodV
3492
3432
  output: projectEffectSchema(output)
3493
3433
  });
3494
3434
  const getCallCapabilities = register("getCallCapabilities", Schema.Struct({}), CallCapabilitiesSchema, [], "Optional calling availability for UI and diagnostics. Actions perform admission automatically.");
3495
- const getActiveCall = register("getActiveCall", Schema.Struct({}), Schema.NullOr(CallSnapshotSchema), [], "Get the current call snapshot. SDK clients hydrate its bound methods.");
3435
+ const getActiveCall = register("getActiveCall", Schema.Struct({}), Schema.NullOr(CallSnapshotSchema), [], "Get the current call, if there is one. In the SDK the result also has methods to control the call.");
3496
3436
  const acceptCall = register("acceptCall", actionInput, CallActionResultSchema, ["call", "media"], "Prepare media and accept this incoming call.");
3497
3437
  const startCall = register("startCall", Schema.Struct({
3498
3438
  to: Schema.String,
@@ -3505,7 +3445,7 @@ const startCall = register("startCall", Schema.Struct({
3505
3445
  "speaker",
3506
3446
  "camera"
3507
3447
  ], "Prepare media and place an outgoing audio or video call.");
3508
- const rejectCall = register("rejectCall", Schema.Struct({ call: CallIdentitySchema }), CallActionResultSchema, ["call"], "Reject this call with native state confirmation.");
3448
+ const rejectCall = register("rejectCall", Schema.Struct({ call: CallIdentitySchema }), CallActionResultSchema, ["call"], "Reject an incoming call and wait for WhatsApp to confirm it.");
3509
3449
  const endCall = register("endCall", Schema.Struct({ call: CallIdentitySchema }), CallActionResultSchema, ["call"], "Request hangup for this call.");
3510
3450
  const muteCall = register("muteCall", Schema.Struct({
3511
3451
  call: CallIdentitySchema,
@@ -3612,7 +3552,7 @@ const respondToEvent = defineMethodV2("respondToEvent", {
3612
3552
  ...meta,
3613
3553
  action: "send",
3614
3554
  httpMethod: "POST",
3615
- description: "RSVP through WhatsApp’s native encrypted event-response action."
3555
+ description: "Send your RSVP to a WhatsApp event."
3616
3556
  },
3617
3557
  input: z.object({
3618
3558
  eventId: messageIdParam,
@@ -3626,6 +3566,6 @@ const respondToEvent = defineMethodV2("respondToEvent", {
3626
3566
  output: z.boolean()
3627
3567
  });
3628
3568
  //#endregion
3629
- export { getBusinessProfile as $, StorySchema as $i, sendSeen as $n, UnixSecondsToDateSchema as $r, archiveChat as $t, sendInteractive as A, validateEventInput as Aa, BusinessProfileSchema as Ai, getUnsentMessages as An, nameParam as Ar, joinGroupViaLink as At, getLoadedMessageCount as B, GroupCreationResultSchema as Bi, sendContact as Bn, Base64ToDataUrlSchema as Br, setGroupToAdminsOnly as Bt, CallMediaOptionsSchema as C, WhatsAppEventSchema as Ca, AutoMediaSendOptionsSchema as Ci, getAllMessages as Cn, latitudeParam as Cr, getAllGroups as Ct, RawAudioFormatSchema as D, deserializeWhatsAppEvent as Da, MediaSendOptionsSchema as Di, getMyLastMessage as Dn, messageIdParam as Dr, getGroupMembers as Dt, MediaDescriptorSchema as E, deserializeEventResponse as Ea, ImageSendOptionsSchema as Ei, getMessagesForLLM as En, mentionedJidListParam as Er, getGroupInviteLink as Et, getConnectionState as F, CommunityMetadataSchema as Fi, sendAdvancedButtons as Fn, toParam as Fr, revokeGroupInviteLink as Ft, getWAVersion as G, LicenseTypeSchema as Gi, sendListMessage as Gn, FileToDataUrlSchema as Gr, getBlockedIds as Gt, getProcessStats as H, HostAccountSchema as Hi, sendFileFromUrl as Hn, ChatIdSchema as Hr, checkNumberStatus as Ht, getFeatures as I, CommunityParticipantIdsSchema as Ii, sendAlbum as In, userAgentParam as Ir, setGroupDescription as It, setMyName as J, NumberCheckSchema as Ji, sendMultipleContacts as Jn, HexColorSchema as Jr, getNumberProfile as Jt, healthCheck as K, MessageInfoSchema as Ki, sendLocation as Kn, GroupIdCodecSchema as Kr, getCommonGroups as Kt, getHostNumber as L, CommunityParticipantsSchema as Li, sendAudio as Ln, videoDataParam as Lr, setGroupEditToAdminsOnly as Lt, decryptMedia as M, projectEffectSchema as Ma, CommonGroupSchema as Mi, loadEarlierMessages as Mn, skipMyMessagesParam as Mr, promoteParticipant as Mt, downloadMedia as N, CommunityAdminIdsSchema as Ni, pinMessage as Nn, statusTextParam as Nr, rejectGroupJoinRequest as Nt, SendInteractiveInputSchema as O, serializeEventResponse as Oa, VideoSendOptionsSchema as Oi, getPollResults as On, messageIdsParam as Or, getGroupMembersId as Ot, getBatteryLevel as P, CommunityAdminsSchema as Pi, react as Pn, stickerDataParam as Pr, removeParticipant as Pt, getBusinessProducts as Q, ProductSchema as Qi, sendReplyWithMentions as Qn, UnixMillisToDateSchema as Qr, unblockContact as Qt, getLicenseFeatures as R, ContactStatusSchema as Ri, sendBanner as Rn, waitForIdParam as Rr, setGroupIcon as Rt, CallIdentitySchema as S, EventUpdateSchema as Sa, AudioSendOptionsSchema as Si, getAlbumMessages as Sn, includeNotificationsParam as Sr, demoteParticipant as St, CallSnapshotSchema as T, decodeWhatsAppEvent as Ta, GifSendOptionsSchema as Ti, getMessageInfo as Tn, longitudeParam as Tr, getGroupInfo as Tt, getSnapshot as U, LLMMessageSchema as Ui, sendImage as Un, ContactIdCodecSchema as Ur, checkReadReceipts as Ut, getMe as V, HealthCheckSchema as Vi, sendFile as Vn, ChatIdCodecSchema as Vr, blockContact as Vt, getUserAgent as W, LabelSchema as Wi, sendLinkWithAutoPreview as Wn, ContactIdSchema as Wr, getAllContacts as Wt, setProfilePicture as X, OrderSchema as Xi, sendPoll as Xn, MessageIdCodecSchema as Xr, requestPhoneNumber as Xt, setMyStatus as Y, NumberProfileSchema as Yi, sendPaymentRequest as Yn, IsoDatetimeToDateSchema as Yr, getProfilePicture as Yt, LicenseFeaturesSchema as Z, ProcessStatsSchema as Zi, sendPtt as Zn, MessageIdSchema as Zr, sharePhoneNumber as Zt, startCall as _, EventInputSchema as _a, PinDurationSchema as _i, SendTextResultSchema as _n, fileDataParam as _r, getCommunityParticipants as _t, getEvents as a, GroupIdSchema$1 as aa, fileToBufferCodec as ai, getChatWithNonContacts as an, sendYouTubeLink as ar, deleteAllStatus as at, CallCapabilitiesSchema as b, EventResponseSchema as ba, PollVoteSchema as bi, editMessage as bn, imageDataParam as br, approveGroupJoinRequest as bt, acceptCall as c, LocationSchema as ca, fileToTempPathCodec as ci, markAsUnread as cn, unstarMessage as cr, getStories as ct, getActiveCall as d, MessageSchema as da, isoDatetimeToDate as di, setChatEphemeral as dn, captionParam as dr, postVideoStatus as dt, ChatSchema as ea, base64ToDataUrlCodec as ei, clearChat as en, sendSticker as er, getOrder as et, getCallCapabilities as f, MessageTypes as fa, jsonStringCodec as fi, unarchiveChat as fn, chatIdParam as fr, getAllCommunities as ft, setCallMedia as g, WhatsAppEventRegistrySchema as ga, urlToDataUrlCodec as gi, AlbumSendResultSchema as gn, documentDataParam as gr, getCommunityParticipantIds as gt, rejectCall as h, EventResponseRegistrySchema as ha, unixSecondsToDate as hi, AlbumMediaSchema as hn, contentParam as hr, getCommunityInfo as ht, getEventResponses as i, GroupChatIdSchema as ia, fileToBase64Codec as ii, getChat as in, sendVideoAsGif as ir, removeLabel as it, sendRawMessage as j, validateEventUpdate as ja, CartItemSchema as ji, getVCards as jn, onlyLocalParam as jr, leaveGroup as jt, SendRawMessageInputSchema as k, serializeWhatsAppEvent as ka, VoiceNoteOptionsSchema as ki, getStarredMessages as kn, messageOptionsParam as kr, getKickedGroups as kt, clearCallAudio as l, MessageAck as la, groupIdCodec as li, muteChat as ln, voteOnPoll as lr, postImageStatus as lt, observeCallAudio as m, SimpleListener as ma, unixMillisToDate as mi, unpinChat as mn, contactIdParam as mr, getCommunityAdmins as mt, editEvent as n, ContactSchema as na, contactIdCodec as ni, getAllChatIds as nn, sendTextWithMentions as nr, getAllLabels as nt, respondToEvent as o, GroupMetadataSchema as oa, fileToDataUrlCodec as oi, isChatOnline as on, starMessage as or, deleteStatus as ot, muteCall as p, SerializedMessageIdSchema as pa, messageIdCodec as pi, unmuteChat as pn, communityIdParam as pr, getCommunityAdminIds as pt, isPlugged as q, MessageInteractionSchema as qi, sendMessageWithThumb as qn, GroupIdSchema as qr, getContact as qt, getEvent as r, DataURLSchema as ra, createFileCodec as ri, getAllChats as rn, sendVCard as rr, getChatsByLabel as rt, sendEvent as s, IdSchema as sa, fileToStreamCodec as si, markAsRead as sn, unpinMessage as sr, getStatus as st, cancelEvent as t, ContactIdSchema$1 as ta, chatIdCodec as ti, deleteChat as tn, sendText as tr, addLabel as tt, endCall as u, MessageIdReturnSchema as ua, hexColorCodec as ui, pinChat as un, audioDataParam as ur, postTextStatus as ut, stopCallAudioObserver as v, EventListOptionsSchema as va, PollResultsSchema as vi, StickerJobSchema as vn, filenameParam as vr, GroupInfoSchema as vt, CallReasonSchema as w, decodeEventResponse as wa, DocumentSendOptionsSchema as wi, getMessageById as wn, locationNameParam as wr, getGroupAdmins as wt, CallEndReasonSchema as x, EventResponseTypeSchema as xa, AudioAttachmentOptionsSchema as xi, forwardMessages as xn, includeMeParam as xr, createGroup as xt, CallActionResultSchema as y, EventPageSchema as ya, PollSendOptionsSchema as yi, deleteMessage as yn, groupIdParam as yr, addParticipant as yt, getLicenseType as z, FeatureFlagsSchema as zi, sendButtons as zn, withNewMessagesOnlyParam as zr, setGroupTitle as zt };
3569
+ export { getBusinessProfile as $, StorySchema as $i, sendSeen as $n, UnixSecondsToDateSchema as $r, archiveChat as $t, sendInteractive as A, validateEventInput as Aa, BusinessProfileSchema as Ai, getUnsentMessages as An, nameParam as Ar, joinGroupViaLink as At, getLoadedMessageCount as B, GroupCreationResultSchema as Bi, sendContact as Bn, Base64ToDataUrlSchema as Br, setGroupToAdminsOnly as Bt, CallMediaOptionsSchema as C, WhatsAppEventSchema as Ca, AutoMediaSendOptionsSchema as Ci, getAllMessages as Cn, latitudeParam as Cr, getAllGroups as Ct, RawAudioFormatSchema as D, deserializeWhatsAppEvent as Da, MediaSendOptionsSchema as Di, getMyLastMessage as Dn, messageIdParam as Dr, getGroupMembers as Dt, MediaDescriptorSchema as E, deserializeEventResponse as Ea, ImageSendOptionsSchema as Ei, getMessagesForLLM as En, mentionedJidListParam as Er, getGroupInviteLink as Et, getConnectionState as F, CommunityMetadataSchema as Fi, sendAdvancedButtons as Fn, toParam as Fr, revokeGroupInviteLink as Ft, getWAVersion as G, LicenseTypeSchema as Gi, sendListMessage as Gn, FileToDataUrlSchema as Gr, getBlockedIds as Gt, getProcessStats as H, HostAccountSchema as Hi, sendFileFromUrl as Hn, ChatIdSchema as Hr, checkNumberStatus as Ht, getFeatures as I, CommunityParticipantIdsSchema as Ii, sendAlbum as In, userAgentParam as Ir, setGroupDescription as It, setMyName as J, NumberCheckSchema as Ji, sendMultipleContacts as Jn, HexColorSchema as Jr, getNumberProfile as Jt, healthCheck as K, MessageInfoSchema as Ki, sendLocation as Kn, GroupIdCodecSchema as Kr, getCommonGroups as Kt, getHostNumber as L, CommunityParticipantsSchema as Li, sendAudio as Ln, videoDataParam as Lr, setGroupEditToAdminsOnly as Lt, decryptMedia as M, CommonGroupSchema as Mi, loadEarlierMessages as Mn, skipMyMessagesParam as Mr, promoteParticipant as Mt, downloadMedia as N, CommunityAdminIdsSchema as Ni, pinMessage as Nn, statusTextParam as Nr, rejectGroupJoinRequest as Nt, SendInteractiveInputSchema as O, serializeEventResponse as Oa, VideoSendOptionsSchema as Oi, getPollResults as On, messageIdsParam as Or, getGroupMembersId as Ot, getBatteryLevel as P, CommunityAdminsSchema as Pi, react as Pn, stickerDataParam as Pr, removeParticipant as Pt, getBusinessProducts as Q, ProductSchema as Qi, sendReplyWithMentions as Qn, UnixMillisToDateSchema as Qr, unblockContact as Qt, getLicenseFeatures as R, ContactStatusSchema as Ri, sendBanner as Rn, waitForIdParam as Rr, setGroupIcon as Rt, CallIdentitySchema as S, EventUpdateSchema as Sa, AudioSendOptionsSchema as Si, getAlbumMessages as Sn, includeNotificationsParam as Sr, demoteParticipant as St, CallSnapshotSchema as T, decodeWhatsAppEvent as Ta, GifSendOptionsSchema as Ti, getMessageInfo as Tn, longitudeParam as Tr, getGroupInfo as Tt, getSnapshot as U, LLMMessageSchema as Ui, sendImage as Un, ContactIdCodecSchema as Ur, checkReadReceipts as Ut, getMe as V, HealthCheckSchema as Vi, sendFile as Vn, ChatIdCodecSchema as Vr, blockContact as Vt, getUserAgent as W, LabelSchema as Wi, sendLinkWithAutoPreview as Wn, ContactIdSchema as Wr, getAllContacts as Wt, setProfilePicture as X, OrderSchema as Xi, sendPoll as Xn, MessageIdCodecSchema as Xr, requestPhoneNumber as Xt, setMyStatus as Y, NumberProfileSchema as Yi, sendPaymentRequest as Yn, IsoDatetimeToDateSchema as Yr, getProfilePicture as Yt, LicenseFeaturesSchema as Z, ProcessStatsSchema as Zi, sendPtt as Zn, MessageIdSchema as Zr, sharePhoneNumber as Zt, startCall as _, EventInputSchema as _a, PinDurationSchema as _i, SendTextResultSchema as _n, fileDataParam as _r, getCommunityParticipants as _t, getEvents as a, GroupIdSchema$1 as aa, fileToBufferCodec as ai, getChatWithNonContacts as an, sendYouTubeLink as ar, deleteAllStatus as at, CallCapabilitiesSchema as b, EventResponseSchema as ba, PollVoteSchema as bi, editMessage as bn, imageDataParam as br, approveGroupJoinRequest as bt, acceptCall as c, LocationSchema as ca, fileToTempPathCodec as ci, markAsUnread as cn, unstarMessage as cr, getStories as ct, getActiveCall as d, MessageSchema as da, isoDatetimeToDate as di, setChatEphemeral as dn, captionParam as dr, postVideoStatus as dt, ChatSchema as ea, base64ToDataUrlCodec as ei, clearChat as en, sendSticker as er, getOrder as et, getCallCapabilities as f, MessageTypes as fa, jsonStringCodec as fi, unarchiveChat as fn, chatIdParam as fr, getAllCommunities as ft, setCallMedia as g, WhatsAppEventRegistrySchema as ga, urlToDataUrlCodec as gi, AlbumSendResultSchema as gn, documentDataParam as gr, getCommunityParticipantIds as gt, rejectCall as h, EventResponseRegistrySchema as ha, unixSecondsToDate as hi, AlbumMediaSchema as hn, contentParam as hr, getCommunityInfo as ht, getEventResponses as i, GroupChatIdSchema as ia, fileToBase64Codec as ii, getChat as in, sendVideoAsGif as ir, removeLabel as it, sendRawMessage as j, validateEventUpdate as ja, CartItemSchema as ji, getVCards as jn, onlyLocalParam as jr, leaveGroup as jt, SendRawMessageInputSchema as k, serializeWhatsAppEvent as ka, VoiceNoteOptionsSchema as ki, getStarredMessages as kn, messageOptionsParam as kr, getKickedGroups as kt, clearCallAudio as l, MessageAck as la, groupIdCodec as li, muteChat as ln, voteOnPoll as lr, postImageStatus as lt, observeCallAudio as m, SimpleListener as ma, unixMillisToDate as mi, unpinChat as mn, contactIdParam as mr, getCommunityAdmins as mt, editEvent as n, ContactSchema as na, contactIdCodec as ni, getAllChatIds as nn, sendTextWithMentions as nr, getAllLabels as nt, respondToEvent as o, GroupMetadataSchema as oa, fileToDataUrlCodec as oi, isChatOnline as on, starMessage as or, deleteStatus as ot, muteCall as p, SerializedMessageIdSchema as pa, messageIdCodec as pi, unmuteChat as pn, communityIdParam as pr, getCommunityAdminIds as pt, isPlugged as q, MessageInteractionSchema as qi, sendMessageWithThumb as qn, GroupIdSchema as qr, getContact as qt, getEvent as r, DataURLSchema as ra, createFileCodec as ri, getAllChats as rn, sendVCard as rr, getChatsByLabel as rt, sendEvent as s, IdSchema as sa, fileToStreamCodec as si, markAsRead as sn, unpinMessage as sr, getStatus as st, cancelEvent as t, ContactIdSchema$1 as ta, chatIdCodec as ti, deleteChat as tn, sendText as tr, addLabel as tt, endCall as u, MessageIdReturnSchema as ua, hexColorCodec as ui, pinChat as un, audioDataParam as ur, postTextStatus as ut, stopCallAudioObserver as v, EventListOptionsSchema as va, PollResultsSchema as vi, StickerJobSchema as vn, filenameParam as vr, GroupInfoSchema as vt, CallReasonSchema as w, decodeEventResponse as wa, DocumentSendOptionsSchema as wi, getMessageById as wn, locationNameParam as wr, getGroupAdmins as wt, CallEndReasonSchema as x, EventResponseTypeSchema as xa, AudioAttachmentOptionsSchema as xi, forwardMessages as xn, includeMeParam as xr, createGroup as xt, CallActionResultSchema as y, EventPageSchema as ya, PollSendOptionsSchema as yi, deleteMessage as yn, groupIdParam as yr, addParticipant as yt, getLicenseType as z, FeatureFlagsSchema as zi, sendButtons as zn, withNewMessagesOnlyParam as zr, setGroupTitle as zt };
3630
3570
 
3631
- //# sourceMappingURL=methods-CpeSpB2P.mjs.map
3571
+ //# sourceMappingURL=methods-L7ijqbZM.mjs.map