@open-wa/schema 5.6.2 → 5.6.3

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 (39) hide show
  1. package/dist/generated/index.cjs +1 -1
  2. package/dist/generated/index.d.cts +1 -1
  3. package/dist/generated/index.d.mts +31 -31
  4. package/dist/generated/index.mjs +1 -1
  5. package/dist/{index-DOca1sBu.d.mts → index-C3kjyOe-.d.mts} +3 -526
  6. package/dist/index-C3kjyOe-.d.mts.map +1 -0
  7. package/dist/{index-Cl1bU6DB.d.cts → index-HeicIada.d.cts} +3 -526
  8. package/dist/index-HeicIada.d.cts.map +1 -0
  9. package/dist/index.cjs +26 -25
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.d.cts +2 -1
  12. package/dist/index.d.mts +2 -1
  13. package/dist/index.mjs +2 -1
  14. package/dist/index.mjs.map +1 -1
  15. package/dist/interactive-DxUwKpzK.d.cts +527 -0
  16. package/dist/interactive-DxUwKpzK.d.cts.map +1 -0
  17. package/dist/interactive-DxUwKpzK.d.mts +527 -0
  18. package/dist/interactive-DxUwKpzK.d.mts.map +1 -0
  19. package/dist/interactive.cjs +305 -0
  20. package/dist/interactive.cjs.map +1 -0
  21. package/dist/interactive.d.cts +2 -0
  22. package/dist/interactive.d.mts +2 -0
  23. package/dist/interactive.mjs +283 -0
  24. package/dist/interactive.mjs.map +1 -0
  25. package/dist/methods/index.cjs +1 -1
  26. package/dist/methods/index.d.cts +1 -1
  27. package/dist/methods/index.d.mts +1 -1
  28. package/dist/methods/index.mjs +1 -1
  29. package/dist/{methods-BH7nDC3z.mjs → methods-CGm5G9VI.mjs} +14 -292
  30. package/dist/methods-CGm5G9VI.mjs.map +1 -0
  31. package/dist/{methods-DpDzgsbe.cjs → methods-QZbG0hN2.cjs} +15 -425
  32. package/dist/methods-QZbG0hN2.cjs.map +1 -0
  33. package/package.json +13 -3
  34. package/src/generated/asyncapi.json +1 -1
  35. package/src/generated/openapi.json +2 -2
  36. package/dist/index-Cl1bU6DB.d.cts.map +0 -1
  37. package/dist/index-DOca1sBu.d.mts.map +0 -1
  38. package/dist/methods-BH7nDC3z.mjs.map +0 -1
  39. package/dist/methods-DpDzgsbe.cjs.map +0 -1
@@ -1,2 +1,2 @@
1
- import { $a as getMyLastMessage, $i as getKickedGroups, $r as SendRawMessageInputSchema, Aa as isChatOnline, Ai as getStatus, Ao as sendVideoAsGif, Ba as AlbumMediaSchema, Bi as getCommunityParticipants, Br as sendEvent, Ca as archiveChat, Ci as getOrder, Co as sendPtt, Da as getAllChats, Di as removeLabel, Do as sendText, Ea as getAllChatIds, Ei as getChatsByLabel, Eo as sendSticker, Fa as setChatEphemeral, Fi as getAllCommunities, Fo as voteOnPoll, Fr as editEvent, Ga as deleteMessage, Gi as createGroup, Gr as getCallCapabilities, Ha as AlbumSendResultSchema, Hi as GroupInfoSchema, Hr as clearCallAudio, Ia as unarchiveChat, Ii as getCommunityAdminIds, Ir as getEvent, Ja as getAlbumMessages, Ji as getGroupAdmins, Jr as rejectCall, Ka as editMessage, Ki as demoteParticipant, Kr as muteCall, La as unmuteChat, Li as getCommunityAdmins, Lr as getEventResponses, Ma as markAsUnread, Mi as postImageStatus, Mo as starMessage, Na as muteChat, Ni as postTextStatus, No as unpinMessage, Oa as getChat, Oi as deleteAllStatus, Oo as sendTextWithMentions, Pa as pinChat, Pi as postVideoStatus, Po as unstarMessage, Pr as cancelEvent, Qa as getMessagesForLLM, Qi as getGroupMembersId, Qr as SendInteractiveInputSchema, Ra as unpinChat, Ri as getCommunityInfo, Rr as getEvents, Sa as unblockContact, Si as getBusinessProfile, So as sendPoll, Ta as deleteChat, Ti as getAllLabels, To as sendSeen, Ua as SendTextResultSchema, Ui as addParticipant, Ur as endCall, Va as AlbumSendResult, Vi as GroupInfo, Vr as acceptCall, Wa as StickerJobSchema, Wi as approveGroupJoinRequest, Wr as getActiveCall, Xa as getMessageById, Xi as getGroupInviteLink, Xr as startCall, Ya as getAllMessages, Yi as getGroupInfo, Yr as setCallMedia, Za as getMessageInfo, Zi as getGroupMembers, Zr as stopCallAudioObserver, _a as getContact, _i as isPlugged, _o as sendListMessage, aa as revokeGroupInviteLink, ai as getConnectionState, ao as pinMessage, ba as requestPhoneNumber, bi as setProfilePicture, bo as sendMultipleContacts, ca as setGroupIcon, ci as getLicenseFeatures, co as sendAlbum, da as blockContact, di as getMe, do as sendButtons, ea as joinGroupViaLink, ei as sendInteractive, eo as getPollResults, fa as checkNumberStatus, fi as getProcessStats, fo as sendContact, ga as getCommonGroups, gi as healthCheck, go as sendLinkWithAutoPreview, ha as getBlockedIds, hi as getWAVersion, ho as sendImage, ia as removeParticipant, ii as getBatteryLevel, io as loadEarlierMessages, ja as markAsRead, ji as getStories, jo as sendYouTubeLink, ka as getChatWithNonContacts, ki as deleteStatus, ko as sendVCard, la as setGroupTitle, li as getLicenseType, lo as sendAudio, ma as getAllContacts, mi as getUserAgent, mo as sendFileFromUrl, na as promoteParticipant, ni as decryptMedia, no as getUnsentMessages, oa as setGroupDescription, oi as getFeatures, oo as react, pa as checkReadReceipts, pi as getSnapshot, po as sendFile, qa as forwardMessages, qi as getAllGroups, qr as observeCallAudio, ra as rejectGroupJoinRequest, ri as downloadMedia, ro as getVCards, sa as setGroupEditToAdminsOnly, si as getHostNumber, so as sendAdvancedButtons, ta as leaveGroup, ti as sendRawMessage, to as getStarredMessages, ua as setGroupToAdminsOnly, ui as getLoadedMessageCount, uo as sendBanner, va as getNumberProfile, vi as setMyName, vo as sendLocation, wa as clearChat, wi as addLabel, wo as sendReplyWithMentions, xa as sharePhoneNumber, xi as getBusinessProducts, xo as sendPaymentRequest, ya as getProfilePicture, yi as setMyStatus, yo as sendMessageWithThumb, za as AlbumMedia, zi as getCommunityParticipantIds, zr as respondToEvent } from "../index-Cl1bU6DB.cjs";
1
+ import { $a as sendTextWithMentions, $i as getChat, $r as deleteAllStatus, Aa as pinMessage, Ai as revokeGroupInviteLink, Ar as getConnectionState, Ba as sendImage, Bi as getBlockedIds, Br as getWAVersion, Ca as getMessagesForLLM, Ci as getGroupMembersId, Cr as SendInteractiveInputSchema, Da as getUnsentMessages, Di as promoteParticipant, Dr as decryptMedia, Ea as getStarredMessages, Ei as leaveGroup, Er as sendRawMessage, Fa as sendBanner, Fi as setGroupToAdminsOnly, Fr as getLoadedMessageCount, Ga as sendMultipleContacts, Gi as requestPhoneNumber, Gr as setProfilePicture, Ha as sendListMessage, Hi as getContact, Hr as isPlugged, Ia as sendButtons, Ii as blockContact, Ir as getMe, Ja as sendPtt, Ji as archiveChat, Jr as getOrder, Ka as sendPaymentRequest, Ki as sharePhoneNumber, Kr as getBusinessProducts, La as sendContact, Li as checkNumberStatus, Lr as getProcessStats, Ma as sendAdvancedButtons, Mi as setGroupEditToAdminsOnly, Mr as getHostNumber, Na as sendAlbum, Ni as setGroupIcon, Nr as getLicenseFeatures, Oa as getVCards, Oi as rejectGroupJoinRequest, Or as downloadMedia, Pa as sendAudio, Pi as setGroupTitle, Pr as getLicenseType, Qa as sendText, Qi as getAllChats, Qr as removeLabel, Ra as sendFile, Ri as checkReadReceipts, Rr as getSnapshot, Sa as getMessageInfo, Si as getGroupMembers, Sr as stopCallAudioObserver, Ta as getPollResults, Ti as joinGroupViaLink, Tr as sendInteractive, Ua as sendLocation, Ui as getNumberProfile, Ur as setMyName, Va as sendLinkWithAutoPreview, Vi as getCommonGroups, Vr as healthCheck, Wa as sendMessageWithThumb, Wi as getProfilePicture, Wr as setMyStatus, Xa as sendSeen, Xi as deleteChat, Xr as getAllLabels, Ya as sendReplyWithMentions, Yi as clearChat, Yr as addLabel, Za as sendSticker, Zi as getAllChatIds, Zr as getChatsByLabel, _a as editMessage, _i as demoteParticipant, _r as muteCall, aa as pinChat, ai as postVideoStatus, ao as unstarMessage, ar as cancelEvent, ba as getAllMessages, bi as getGroupInfo, br as setCallMedia, ca as unmuteChat, ci as getCommunityAdmins, cr as getEventResponses, da as AlbumMediaSchema, di as getCommunityParticipants, dr as sendEvent, ea as getChatWithNonContacts, ei as deleteStatus, eo as sendVCard, fa as AlbumSendResult, fi as GroupInfo, fr as acceptCall, ga as deleteMessage, gi as createGroup, gr as getCallCapabilities, ha as StickerJobSchema, hi as approveGroupJoinRequest, hr as getActiveCall, ia as muteChat, ii as postTextStatus, io as unpinMessage, ja as react, ji as setGroupDescription, jr as getFeatures, ka as loadEarlierMessages, ki as removeParticipant, kr as getBatteryLevel, la as unpinChat, li as getCommunityInfo, lr as getEvents, ma as SendTextResultSchema, mi as addParticipant, mr as endCall, na as markAsRead, ni as getStories, no as sendYouTubeLink, oa as setChatEphemeral, oi as getAllCommunities, oo as voteOnPoll, or as editEvent, pa as AlbumSendResultSchema, pi as GroupInfoSchema, pr as clearCallAudio, qa as sendPoll, qi as unblockContact, qr as getBusinessProfile, ra as markAsUnread, ri as postImageStatus, ro as starMessage, sa as unarchiveChat, si as getCommunityAdminIds, sr as getEvent, ta as isChatOnline, ti as getStatus, to as sendVideoAsGif, ua as AlbumMedia, ui as getCommunityParticipantIds, ur as respondToEvent, va as forwardMessages, vi as getAllGroups, vr as observeCallAudio, wa as getMyLastMessage, wi as getKickedGroups, wr as SendRawMessageInputSchema, xa as getMessageById, xi as getGroupInviteLink, xr as startCall, ya as getAlbumMessages, yi as getGroupAdmins, yr as rejectCall, za as sendFileFromUrl, zi as getAllContacts, zr as getUserAgent } from "../index-HeicIada.cjs";
2
2
  export { AlbumMedia, AlbumMediaSchema, AlbumSendResult, AlbumSendResultSchema, GroupInfo, GroupInfoSchema, SendInteractiveInputSchema, SendRawMessageInputSchema, SendTextResultSchema, StickerJobSchema, acceptCall, addLabel, addParticipant, approveGroupJoinRequest, archiveChat, blockContact, cancelEvent, checkNumberStatus, checkReadReceipts, clearCallAudio, clearChat, createGroup, decryptMedia, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, downloadMedia, editEvent, editMessage, endCall, forwardMessages, getActiveCall, getAlbumMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getCallCapabilities, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getEvent, getEventResponses, getEvents, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getKickedGroups, getLicenseFeatures, getLicenseType, getLoadedMessageCount, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMyLastMessage, getNumberProfile, getOrder, getPollResults, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, healthCheck, isChatOnline, isPlugged, joinGroupViaLink, leaveGroup, loadEarlierMessages, markAsRead, markAsUnread, muteCall, muteChat, observeCallAudio, pinChat, pinMessage, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, rejectCall, rejectGroupJoinRequest, removeLabel, removeParticipant, requestPhoneNumber, respondToEvent, revokeGroupInviteLink, sendAdvancedButtons, sendAlbum, sendAudio, sendBanner, sendButtons, sendContact, sendEvent, sendFile, sendFileFromUrl, sendImage, sendInteractive, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendRawMessage, sendReplyWithMentions, sendSeen, sendSticker, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, setCallMedia, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, sharePhoneNumber, starMessage, startCall, stopCallAudioObserver, unarchiveChat, unblockContact, unmuteChat, unpinChat, unpinMessage, unstarMessage, voteOnPoll };
@@ -1,2 +1,2 @@
1
- import { $a as getMyLastMessage, $i as getKickedGroups, $r as SendRawMessageInputSchema, Aa as isChatOnline, Ai as getStatus, Ao as sendVideoAsGif, Ba as AlbumMediaSchema, Bi as getCommunityParticipants, Br as sendEvent, Ca as archiveChat, Ci as getOrder, Co as sendPtt, Da as getAllChats, Di as removeLabel, Do as sendText, Ea as getAllChatIds, Ei as getChatsByLabel, Eo as sendSticker, Fa as setChatEphemeral, Fi as getAllCommunities, Fo as voteOnPoll, Fr as editEvent, Ga as deleteMessage, Gi as createGroup, Gr as getCallCapabilities, Ha as AlbumSendResultSchema, Hi as GroupInfoSchema, Hr as clearCallAudio, Ia as unarchiveChat, Ii as getCommunityAdminIds, Ir as getEvent, Ja as getAlbumMessages, Ji as getGroupAdmins, Jr as rejectCall, Ka as editMessage, Ki as demoteParticipant, Kr as muteCall, La as unmuteChat, Li as getCommunityAdmins, Lr as getEventResponses, Ma as markAsUnread, Mi as postImageStatus, Mo as starMessage, Na as muteChat, Ni as postTextStatus, No as unpinMessage, Oa as getChat, Oi as deleteAllStatus, Oo as sendTextWithMentions, Pa as pinChat, Pi as postVideoStatus, Po as unstarMessage, Pr as cancelEvent, Qa as getMessagesForLLM, Qi as getGroupMembersId, Qr as SendInteractiveInputSchema, Ra as unpinChat, Ri as getCommunityInfo, Rr as getEvents, Sa as unblockContact, Si as getBusinessProfile, So as sendPoll, Ta as deleteChat, Ti as getAllLabels, To as sendSeen, Ua as SendTextResultSchema, Ui as addParticipant, Ur as endCall, Va as AlbumSendResult, Vi as GroupInfo, Vr as acceptCall, Wa as StickerJobSchema, Wi as approveGroupJoinRequest, Wr as getActiveCall, Xa as getMessageById, Xi as getGroupInviteLink, Xr as startCall, Ya as getAllMessages, Yi as getGroupInfo, Yr as setCallMedia, Za as getMessageInfo, Zi as getGroupMembers, Zr as stopCallAudioObserver, _a as getContact, _i as isPlugged, _o as sendListMessage, aa as revokeGroupInviteLink, ai as getConnectionState, ao as pinMessage, ba as requestPhoneNumber, bi as setProfilePicture, bo as sendMultipleContacts, ca as setGroupIcon, ci as getLicenseFeatures, co as sendAlbum, da as blockContact, di as getMe, do as sendButtons, ea as joinGroupViaLink, ei as sendInteractive, eo as getPollResults, fa as checkNumberStatus, fi as getProcessStats, fo as sendContact, ga as getCommonGroups, gi as healthCheck, go as sendLinkWithAutoPreview, ha as getBlockedIds, hi as getWAVersion, ho as sendImage, ia as removeParticipant, ii as getBatteryLevel, io as loadEarlierMessages, ja as markAsRead, ji as getStories, jo as sendYouTubeLink, ka as getChatWithNonContacts, ki as deleteStatus, ko as sendVCard, la as setGroupTitle, li as getLicenseType, lo as sendAudio, ma as getAllContacts, mi as getUserAgent, mo as sendFileFromUrl, na as promoteParticipant, ni as decryptMedia, no as getUnsentMessages, oa as setGroupDescription, oi as getFeatures, oo as react, pa as checkReadReceipts, pi as getSnapshot, po as sendFile, qa as forwardMessages, qi as getAllGroups, qr as observeCallAudio, ra as rejectGroupJoinRequest, ri as downloadMedia, ro as getVCards, sa as setGroupEditToAdminsOnly, si as getHostNumber, so as sendAdvancedButtons, ta as leaveGroup, ti as sendRawMessage, to as getStarredMessages, ua as setGroupToAdminsOnly, ui as getLoadedMessageCount, uo as sendBanner, va as getNumberProfile, vi as setMyName, vo as sendLocation, wa as clearChat, wi as addLabel, wo as sendReplyWithMentions, xa as sharePhoneNumber, xi as getBusinessProducts, xo as sendPaymentRequest, ya as getProfilePicture, yi as setMyStatus, yo as sendMessageWithThumb, za as AlbumMedia, zi as getCommunityParticipantIds, zr as respondToEvent } from "../index-DOca1sBu.mjs";
1
+ import { $a as sendTextWithMentions, $i as getChat, $r as deleteAllStatus, Aa as pinMessage, Ai as revokeGroupInviteLink, Ar as getConnectionState, Ba as sendImage, Bi as getBlockedIds, Br as getWAVersion, Ca as getMessagesForLLM, Ci as getGroupMembersId, Cr as SendInteractiveInputSchema, Da as getUnsentMessages, Di as promoteParticipant, Dr as decryptMedia, Ea as getStarredMessages, Ei as leaveGroup, Er as sendRawMessage, Fa as sendBanner, Fi as setGroupToAdminsOnly, Fr as getLoadedMessageCount, Ga as sendMultipleContacts, Gi as requestPhoneNumber, Gr as setProfilePicture, Ha as sendListMessage, Hi as getContact, Hr as isPlugged, Ia as sendButtons, Ii as blockContact, Ir as getMe, Ja as sendPtt, Ji as archiveChat, Jr as getOrder, Ka as sendPaymentRequest, Ki as sharePhoneNumber, Kr as getBusinessProducts, La as sendContact, Li as checkNumberStatus, Lr as getProcessStats, Ma as sendAdvancedButtons, Mi as setGroupEditToAdminsOnly, Mr as getHostNumber, Na as sendAlbum, Ni as setGroupIcon, Nr as getLicenseFeatures, Oa as getVCards, Oi as rejectGroupJoinRequest, Or as downloadMedia, Pa as sendAudio, Pi as setGroupTitle, Pr as getLicenseType, Qa as sendText, Qi as getAllChats, Qr as removeLabel, Ra as sendFile, Ri as checkReadReceipts, Rr as getSnapshot, Sa as getMessageInfo, Si as getGroupMembers, Sr as stopCallAudioObserver, Ta as getPollResults, Ti as joinGroupViaLink, Tr as sendInteractive, Ua as sendLocation, Ui as getNumberProfile, Ur as setMyName, Va as sendLinkWithAutoPreview, Vi as getCommonGroups, Vr as healthCheck, Wa as sendMessageWithThumb, Wi as getProfilePicture, Wr as setMyStatus, Xa as sendSeen, Xi as deleteChat, Xr as getAllLabels, Ya as sendReplyWithMentions, Yi as clearChat, Yr as addLabel, Za as sendSticker, Zi as getAllChatIds, Zr as getChatsByLabel, _a as editMessage, _i as demoteParticipant, _r as muteCall, aa as pinChat, ai as postVideoStatus, ao as unstarMessage, ar as cancelEvent, ba as getAllMessages, bi as getGroupInfo, br as setCallMedia, ca as unmuteChat, ci as getCommunityAdmins, cr as getEventResponses, da as AlbumMediaSchema, di as getCommunityParticipants, dr as sendEvent, ea as getChatWithNonContacts, ei as deleteStatus, eo as sendVCard, fa as AlbumSendResult, fi as GroupInfo, fr as acceptCall, ga as deleteMessage, gi as createGroup, gr as getCallCapabilities, ha as StickerJobSchema, hi as approveGroupJoinRequest, hr as getActiveCall, ia as muteChat, ii as postTextStatus, io as unpinMessage, ja as react, ji as setGroupDescription, jr as getFeatures, ka as loadEarlierMessages, ki as removeParticipant, kr as getBatteryLevel, la as unpinChat, li as getCommunityInfo, lr as getEvents, ma as SendTextResultSchema, mi as addParticipant, mr as endCall, na as markAsRead, ni as getStories, no as sendYouTubeLink, oa as setChatEphemeral, oi as getAllCommunities, oo as voteOnPoll, or as editEvent, pa as AlbumSendResultSchema, pi as GroupInfoSchema, pr as clearCallAudio, qa as sendPoll, qi as unblockContact, qr as getBusinessProfile, ra as markAsUnread, ri as postImageStatus, ro as starMessage, sa as unarchiveChat, si as getCommunityAdminIds, sr as getEvent, ta as isChatOnline, ti as getStatus, to as sendVideoAsGif, ua as AlbumMedia, ui as getCommunityParticipantIds, ur as respondToEvent, va as forwardMessages, vi as getAllGroups, vr as observeCallAudio, wa as getMyLastMessage, wi as getKickedGroups, wr as SendRawMessageInputSchema, xa as getMessageById, xi as getGroupInviteLink, xr as startCall, ya as getAlbumMessages, yi as getGroupAdmins, yr as rejectCall, za as sendFileFromUrl, zi as getAllContacts, zr as getUserAgent } from "../index-C3kjyOe-.mjs";
2
2
  export { AlbumMedia, AlbumMediaSchema, AlbumSendResult, AlbumSendResultSchema, GroupInfo, GroupInfoSchema, SendInteractiveInputSchema, SendRawMessageInputSchema, SendTextResultSchema, StickerJobSchema, acceptCall, addLabel, addParticipant, approveGroupJoinRequest, archiveChat, blockContact, cancelEvent, checkNumberStatus, checkReadReceipts, clearCallAudio, clearChat, createGroup, decryptMedia, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, downloadMedia, editEvent, editMessage, endCall, forwardMessages, getActiveCall, getAlbumMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getCallCapabilities, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getEvent, getEventResponses, getEvents, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getKickedGroups, getLicenseFeatures, getLicenseType, getLoadedMessageCount, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMyLastMessage, getNumberProfile, getOrder, getPollResults, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, healthCheck, isChatOnline, isPlugged, joinGroupViaLink, leaveGroup, loadEarlierMessages, markAsRead, markAsUnread, muteCall, muteChat, observeCallAudio, pinChat, pinMessage, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, rejectCall, rejectGroupJoinRequest, removeLabel, removeParticipant, requestPhoneNumber, respondToEvent, revokeGroupInviteLink, sendAdvancedButtons, sendAlbum, sendAudio, sendBanner, sendButtons, sendContact, sendEvent, sendFile, sendFileFromUrl, sendImage, sendInteractive, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendRawMessage, sendReplyWithMentions, sendSeen, sendSticker, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, setCallMedia, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, sharePhoneNumber, starMessage, startCall, stopCallAudioObserver, unarchiveChat, unblockContact, unmuteChat, unpinChat, unpinMessage, unstarMessage, voteOnPoll };
@@ -1,2 +1,2 @@
1
- import { $n as getVCards, $t as leaveGroup, A as sendInteractive, An as markAsUnread, Ar as unstarMessage, At as getStories, Bn as StickerJobSchema, Bt as GroupInfoSchema, Cn as deleteChat, Cr as sendText, Ct as addLabel, Dn as getChatWithNonContacts, Dr as sendYouTubeLink, Dt as deleteAllStatus, En as getChat, Er as sendVideoAsGif, Et as removeLabel, Fn as unmuteChat, Ft as getCommunityAdminIds, Gn as getAllMessages, Gt as getAllGroups, Hn as editMessage, Ht as approveGroupJoinRequest, In as unpinChat, It as getCommunityAdmins, Jn as getMessagesForLLM, Jt as getGroupInviteLink, Kn as getMessageById, Kt as getGroupAdmins, Ln as AlbumMediaSchema, Lt as getCommunityInfo, Mn as pinChat, Mt as postTextStatus, Nn as setChatEphemeral, Nt as postVideoStatus, O as SendInteractiveInputSchema, On as isChatOnline, Or as starMessage, Ot as deleteStatus, Pn as unarchiveChat, Pt as getAllCommunities, Qn as getUnsentMessages, Qt as joinGroupViaLink, Rn as AlbumSendResultSchema, Rt as getCommunityParticipantIds, Sn as clearChat, Sr as sendSticker, St as getOrder, Tn as getAllChats, Tr as sendVCard, Tt as getChatsByLabel, Un as forwardMessages, Ut as createGroup, Vn as deleteMessage, Vt as addParticipant, Wn as getAlbumMessages, Wt as demoteParticipant, Xn as getPollResults, Xt as getGroupMembersId, Yn as getMyLastMessage, Yt as getGroupMembers, Zn as getStarredMessages, Zt as getKickedGroups, _ as startCall, _n as getProfilePicture, _r as sendPaymentRequest, _t as setMyStatus, a as getEvents, an as setGroupEditToAdminsOnly, ar as sendAudio, at as getHostNumber, bn as unblockContact, br as sendReplyWithMentions, bt as getBusinessProducts, c as acceptCall, cn as setGroupToAdminsOnly, cr as sendContact, ct as getLoadedMessageCount, d as getActiveCall, dn as checkReadReceipts, dr as sendImage, dt as getSnapshot, en as promoteParticipant, er as loadEarlierMessages, et as decryptMedia, f as getCallCapabilities, fn as getAllContacts, fr as sendLinkWithAutoPreview, ft as getUserAgent, g as setCallMedia, gn as getNumberProfile, gr as sendMultipleContacts, gt as setMyName, h as rejectCall, hn as getContact, hr as sendMessageWithThumb, ht as isPlugged, i as getEventResponses, in as setGroupDescription, ir as sendAlbum, it as getFeatures, j as sendRawMessage, jn as muteChat, jr as voteOnPoll, jt as postImageStatus, k as SendRawMessageInputSchema, kn as markAsRead, kr as unpinMessage, kt as getStatus, l as clearCallAudio, ln as blockContact, lr as sendFile, lt as getMe, m as observeCallAudio, mn as getCommonGroups, mr as sendLocation, mt as healthCheck, n as editEvent, nn as removeParticipant, nr as react, nt as getBatteryLevel, o as respondToEvent, on as setGroupIcon, or as sendBanner, ot as getLicenseFeatures, p as muteCall, pn as getBlockedIds, pr as sendListMessage, pt as getWAVersion, qn as getMessageInfo, qt as getGroupInfo, r as getEvent, rn as revokeGroupInviteLink, rr as sendAdvancedButtons, rt as getConnectionState, s as sendEvent, sn as setGroupTitle, sr as sendButtons, st as getLicenseType, t as cancelEvent, tn as rejectGroupJoinRequest, tr as pinMessage, tt as downloadMedia, u as endCall, un as checkNumberStatus, ur as sendFileFromUrl, ut as getProcessStats, v as stopCallAudioObserver, vn as requestPhoneNumber, vr as sendPoll, vt as setProfilePicture, wn as getAllChatIds, wr as sendTextWithMentions, wt as getAllLabels, xn as archiveChat, xr as sendSeen, xt as getBusinessProfile, yn as sharePhoneNumber, yr as sendPtt, zn as SendTextResultSchema, zt as getCommunityParticipants } from "../methods-BH7nDC3z.mjs";
1
+ import { $ as getBusinessProfile, $n as sendSeen, $t as archiveChat, A as sendInteractive, An as getUnsentMessages, At as joinGroupViaLink, B as getLoadedMessageCount, Bn as sendContact, Bt as setGroupToAdminsOnly, Cn as getAllMessages, Ct as getAllGroups, Dn as getMyLastMessage, Dt as getGroupMembers, En as getMessagesForLLM, Et as getGroupInviteLink, F as getConnectionState, Fn as sendAdvancedButtons, Ft as revokeGroupInviteLink, G as getWAVersion, Gn as sendListMessage, Gt as getBlockedIds, H as getProcessStats, Hn as sendFileFromUrl, Ht as checkNumberStatus, I as getFeatures, In as sendAlbum, It as setGroupDescription, J as setMyName, Jn as sendMultipleContacts, Jt as getNumberProfile, K as healthCheck, Kn as sendLocation, Kt as getCommonGroups, L as getHostNumber, Ln as sendAudio, Lt as setGroupEditToAdminsOnly, M as decryptMedia, Mn as loadEarlierMessages, Mt as promoteParticipant, N as downloadMedia, Nn as pinMessage, Nt as rejectGroupJoinRequest, O as SendInteractiveInputSchema, On as getPollResults, Ot as getGroupMembersId, P as getBatteryLevel, Pn as react, Pt as removeParticipant, Q as getBusinessProducts, Qn as sendReplyWithMentions, Qt as unblockContact, R as getLicenseFeatures, Rn as sendBanner, Rt as setGroupIcon, Sn as getAlbumMessages, St as demoteParticipant, Tn as getMessageInfo, Tt as getGroupInfo, U as getSnapshot, Un as sendImage, Ut as checkReadReceipts, V as getMe, Vn as sendFile, Vt as blockContact, W as getUserAgent, Wn as sendLinkWithAutoPreview, Wt as getAllContacts, X as setProfilePicture, Xn as sendPoll, Xt as requestPhoneNumber, Y as setMyStatus, Yn as sendPaymentRequest, Yt as getProfilePicture, Zn as sendPtt, Zt as sharePhoneNumber, _ as startCall, _n as SendTextResultSchema, _t as getCommunityParticipants, a as getEvents, an as getChatWithNonContacts, ar as sendYouTubeLink, at as deleteAllStatus, bn as editMessage, bt as approveGroupJoinRequest, c as acceptCall, cn as markAsUnread, cr as unstarMessage, ct as getStories, d as getActiveCall, dn as setChatEphemeral, dt as postVideoStatus, en as clearChat, er as sendSticker, et as getOrder, f as getCallCapabilities, fn as unarchiveChat, ft as getAllCommunities, g as setCallMedia, gn as AlbumSendResultSchema, gt as getCommunityParticipantIds, h as rejectCall, hn as AlbumMediaSchema, ht as getCommunityInfo, i as getEventResponses, in as getChat, ir as sendVideoAsGif, it as removeLabel, j as sendRawMessage, jn as getVCards, jt as leaveGroup, k as SendRawMessageInputSchema, kn as getStarredMessages, kt as getKickedGroups, l as clearCallAudio, ln as muteChat, lr as voteOnPoll, lt as postImageStatus, m as observeCallAudio, mn as unpinChat, mt as getCommunityAdmins, n as editEvent, nn as getAllChatIds, nr as sendTextWithMentions, nt as getAllLabels, o as respondToEvent, on as isChatOnline, or as starMessage, ot as deleteStatus, p as muteCall, pn as unmuteChat, pt as getCommunityAdminIds, q as isPlugged, qn as sendMessageWithThumb, qt as getContact, r as getEvent, rn as getAllChats, rr as sendVCard, rt as getChatsByLabel, s as sendEvent, sn as markAsRead, sr as unpinMessage, st as getStatus, t as cancelEvent, tn as deleteChat, tr as sendText, tt as addLabel, u as endCall, un as pinChat, ut as postTextStatus, v as stopCallAudioObserver, vn as StickerJobSchema, vt as GroupInfoSchema, wn as getMessageById, wt as getGroupAdmins, xn as forwardMessages, xt as createGroup, yn as deleteMessage, yt as addParticipant, z as getLicenseType, zn as sendButtons, zt as setGroupTitle } from "../methods-CGm5G9VI.mjs";
2
2
  export { AlbumMediaSchema, AlbumSendResultSchema, GroupInfoSchema, SendInteractiveInputSchema, SendRawMessageInputSchema, SendTextResultSchema, StickerJobSchema, acceptCall, addLabel, addParticipant, approveGroupJoinRequest, archiveChat, blockContact, cancelEvent, checkNumberStatus, checkReadReceipts, clearCallAudio, clearChat, createGroup, decryptMedia, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, downloadMedia, editEvent, editMessage, endCall, forwardMessages, getActiveCall, getAlbumMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getCallCapabilities, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getEvent, getEventResponses, getEvents, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getKickedGroups, getLicenseFeatures, getLicenseType, getLoadedMessageCount, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMyLastMessage, getNumberProfile, getOrder, getPollResults, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, healthCheck, isChatOnline, isPlugged, joinGroupViaLink, leaveGroup, loadEarlierMessages, markAsRead, markAsUnread, muteCall, muteChat, observeCallAudio, pinChat, pinMessage, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, rejectCall, rejectGroupJoinRequest, removeLabel, removeParticipant, requestPhoneNumber, respondToEvent, revokeGroupInviteLink, sendAdvancedButtons, sendAlbum, sendAudio, sendBanner, sendButtons, sendContact, sendEvent, sendFile, sendFileFromUrl, sendImage, sendInteractive, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendRawMessage, sendReplyWithMentions, sendSeen, sendSticker, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, setCallMedia, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, sharePhoneNumber, starMessage, startCall, stopCallAudioObserver, unarchiveChat, unblockContact, unmuteChat, unpinChat, unpinMessage, unstarMessage, voteOnPoll };
@@ -1,4 +1,5 @@
1
1
  import { d as parameterRegistry, o as defineMethodV2 } from "./registry-BIddXpin.mjs";
2
+ import { InteractiveContentSchema, JsonObjectSchema } from "./interactive.mjs";
2
3
  import { z } from "zod";
3
4
  import { Schema } from "effect";
4
5
  import { assertFile, getDUrl } from "@open-wa/utils";
@@ -62,7 +63,7 @@ function projectEffectSchema(schema) {
62
63
  }
63
64
  //#endregion
64
65
  //#region src/whatsapp-events.ts
65
- const id$1 = Schema.String.check(Schema.isMinLength(1));
66
+ const id = Schema.String.check(Schema.isMinLength(1));
66
67
  const seconds = Schema.Number.check(Schema.isInt(), Schema.isGreaterThanOrEqualTo(0), Schema.isLessThanOrEqualTo(2147483647));
67
68
  const milliseconds = Schema.Number.check(Schema.isInt(), Schema.isGreaterThanOrEqualTo(0));
68
69
  /** Native WhatsApp event input. All event times are Unix seconds. */
@@ -76,7 +77,7 @@ const EventInputSchema = Schema.Struct({
76
77
  callType: Schema.optional(Schema.Literals(["voice", "video"])),
77
78
  isScheduledCall: Schema.optional(Schema.Boolean),
78
79
  requireApproval: Schema.optional(Schema.Boolean),
79
- quotedMsgId: Schema.optional(id$1)
80
+ quotedMsgId: Schema.optional(id)
80
81
  });
81
82
  function validateEventInput(input) {
82
83
  const event = Schema.decodeUnknownSync(EventInputSchema)(input);
@@ -100,9 +101,9 @@ function validateEventUpdate(input) {
100
101
  }
101
102
  /** A JSON-safe event snapshot. Message secrets and encrypted RSVP data stay private. */
102
103
  const WhatsAppEventSchema = Schema.Struct({
103
- id: id$1,
104
- chatId: id$1,
105
- creatorId: id$1,
104
+ id,
105
+ chatId: id,
106
+ creatorId: id,
106
107
  name: Schema.String,
107
108
  startTime: seconds,
108
109
  endTime: Schema.optional(seconds),
@@ -126,10 +127,10 @@ const EventResponseTypeSchema = Schema.Literals([
126
127
  "unknown"
127
128
  ]);
128
129
  const EventResponseSchema = Schema.Struct({
129
- id: id$1,
130
- eventId: id$1,
131
- chatId: id$1,
132
- senderId: id$1,
130
+ id,
131
+ eventId: id,
132
+ chatId: id,
133
+ senderId: id,
133
134
  response: EventResponseTypeSchema,
134
135
  /** Sender's monotonically increasing RSVP timestamp, in milliseconds. */
135
136
  timestamp: milliseconds,
@@ -137,11 +138,11 @@ const EventResponseSchema = Schema.Struct({
137
138
  });
138
139
  const EventListOptionsSchema = Schema.Struct({
139
140
  limit: Schema.optional(Schema.Number.check(Schema.isInt(), Schema.isGreaterThanOrEqualTo(1), Schema.isLessThanOrEqualTo(100))),
140
- before: Schema.optional(id$1)
141
+ before: Schema.optional(id)
141
142
  });
142
143
  const EventPageSchema = Schema.Struct({
143
144
  events: Schema.Array(WhatsAppEventSchema),
144
- nextCursor: Schema.NullOr(id$1)
145
+ nextCursor: Schema.NullOr(id)
145
146
  });
146
147
  const decodeWhatsAppEvent = Schema.decodeUnknownSync(WhatsAppEventSchema);
147
148
  const decodeEventResponse = Schema.decodeUnknownSync(EventResponseSchema);
@@ -3350,285 +3351,6 @@ const downloadMedia = defineMethodV2("downloadMedia", {
3350
3351
  output: z.string().describe("Path to the saved file")
3351
3352
  });
3352
3353
  //#endregion
3353
- //#region src/interactive.ts
3354
- const JsonValueSchema = z.lazy(() => z.union([
3355
- z.null(),
3356
- z.boolean(),
3357
- z.number().finite(),
3358
- z.string(),
3359
- z.array(JsonValueSchema),
3360
- z.record(z.string(), JsonValueSchema)
3361
- ]));
3362
- const JsonObjectSchema = z.record(z.string(), JsonValueSchema);
3363
- const text = z.string().min(1);
3364
- const url = z.url().refine((value) => /^https?:\/\//i.test(value), "Use an HTTP or HTTPS URL");
3365
- const id = text.describe("Stable application-defined ID returned when the recipient chooses this item");
3366
- const ReplyActionSchema = z.object({
3367
- type: z.literal("reply"),
3368
- id,
3369
- label: text
3370
- }).strict();
3371
- const LinkActionSchema = z.object({
3372
- type: z.literal("url"),
3373
- label: text,
3374
- url
3375
- }).strict();
3376
- const CallActionSchema = z.object({
3377
- type: z.literal("call"),
3378
- label: text,
3379
- phoneNumber: text
3380
- }).strict();
3381
- const CopyActionSchema = z.object({
3382
- type: z.literal("copy"),
3383
- label: text,
3384
- code: text
3385
- }).strict();
3386
- const InteractiveActionSchema = z.discriminatedUnion("type", [
3387
- ReplyActionSchema,
3388
- LinkActionSchema,
3389
- CallActionSchema,
3390
- CopyActionSchema
3391
- ]);
3392
- const NativeActionSchema = z.object({
3393
- name: text.describe("WhatsApp native action name; availability depends on the recipient and account"),
3394
- parameters: JsonObjectSchema.optional()
3395
- }).strict();
3396
- const actions = z.array(InteractiveActionSchema).min(1).superRefine((items, ctx) => {
3397
- const replies = items.filter((item) => item.type === "reply");
3398
- if (replies.length && replies.length !== items.length) ctx.addIssue({
3399
- code: "custom",
3400
- message: "Reply actions cannot be mixed with URL, call or copy actions"
3401
- });
3402
- const ids = /* @__PURE__ */ new Set();
3403
- items.forEach((item, index) => {
3404
- if (item.type !== "reply") return;
3405
- if (ids.has(item.id)) ctx.addIssue({
3406
- code: "custom",
3407
- path: [index, "id"],
3408
- message: "Duplicate reply ID"
3409
- });
3410
- ids.add(item.id);
3411
- });
3412
- });
3413
- const media$1 = {
3414
- source: text.describe("HTTP(S) URL, local file path or base64 data URL; resolved by the client before sending"),
3415
- filename: text.optional(),
3416
- title: z.string().optional()
3417
- };
3418
- const InteractiveHeaderSchema = z.discriminatedUnion("type", [
3419
- z.object({
3420
- type: z.literal("text"),
3421
- text
3422
- }).strict(),
3423
- z.object({
3424
- type: z.literal("image"),
3425
- ...media$1
3426
- }).strict(),
3427
- z.object({
3428
- type: z.literal("video"),
3429
- ...media$1
3430
- }).strict(),
3431
- z.object({
3432
- type: z.literal("document"),
3433
- ...media$1
3434
- }).strict()
3435
- ]);
3436
- const base = {
3437
- version: z.literal(1).optional().describe("Document format version, defaults to 1; independent of WhatsApp protocol versions"),
3438
- body: text,
3439
- footer: z.string().optional()
3440
- };
3441
- const ButtonsContentSchema = z.object({
3442
- ...base,
3443
- type: z.literal("buttons"),
3444
- header: InteractiveHeaderSchema.optional(),
3445
- actions
3446
- }).strict();
3447
- const ListRowSchema = z.object({
3448
- id,
3449
- title: text,
3450
- description: z.string().optional()
3451
- }).strict();
3452
- const ListContentSchema = z.object({
3453
- ...base,
3454
- type: z.literal("list"),
3455
- title: z.string().optional(),
3456
- buttonLabel: text.default("Choose an option"),
3457
- sections: z.array(z.object({
3458
- title: z.string().optional(),
3459
- rows: z.array(ListRowSchema).min(1)
3460
- }).strict()).min(1)
3461
- }).strict();
3462
- const FormQuestionSchema = z.object({
3463
- type: z.enum(["singleSelect", "multiSelect"]),
3464
- id,
3465
- label: text,
3466
- options: z.array(z.object({
3467
- id,
3468
- label: text
3469
- }).strict()).min(1),
3470
- allowCustomAnswer: z.boolean().optional()
3471
- }).strict();
3472
- const FormContentSchema = z.object({
3473
- ...base,
3474
- type: z.literal("form"),
3475
- title: z.string().optional(),
3476
- questions: z.array(FormQuestionSchema).min(1)
3477
- }).strict();
3478
- const CarouselCardSchema = z.object({
3479
- body: text,
3480
- header: z.object({
3481
- type: z.literal("image"),
3482
- ...media$1
3483
- }).strict(),
3484
- actions
3485
- }).strict();
3486
- const CarouselContentSchema = z.object({
3487
- ...base,
3488
- type: z.literal("carousel"),
3489
- cards: z.array(CarouselCardSchema).min(1)
3490
- }).strict();
3491
- const BookingContentSchema = z.object({
3492
- ...base,
3493
- type: z.literal("booking"),
3494
- title: z.string().optional(),
3495
- buttonLabel: text.default("View booking"),
3496
- booking: z.object({
3497
- startAt: z.iso.datetime({ offset: true }),
3498
- endAt: z.iso.datetime({ offset: true }).optional(),
3499
- location: z.string().optional(),
3500
- url: url.optional(),
3501
- managementUrl: url.optional(),
3502
- phoneNumber: z.string().optional(),
3503
- email: z.email().optional(),
3504
- description: z.string().optional(),
3505
- labels: z.object({
3506
- language: z.string().optional(),
3507
- meetingType: z.string().optional(),
3508
- detailsTitle: z.string().optional(),
3509
- addToCalendar: z.string().optional(),
3510
- viewOnMap: z.string().optional(),
3511
- manageBooking: z.string().optional()
3512
- }).strict().optional()
3513
- }).strict(),
3514
- actions: z.array(z.discriminatedUnion("type", [
3515
- LinkActionSchema,
3516
- CallActionSchema,
3517
- CopyActionSchema
3518
- ])).optional()
3519
- }).strict();
3520
- const NativeContentSchema = z.object({
3521
- ...base,
3522
- type: z.literal("native"),
3523
- header: InteractiveHeaderSchema.optional(),
3524
- actions: z.array(NativeActionSchema).min(1),
3525
- parameters: JsonObjectSchema.optional()
3526
- }).strict().describe("Advanced extension for new native action types; parameters are passed through without claiming recipient support");
3527
- const InteractiveContentSchema = z.discriminatedUnion("type", [
3528
- ButtonsContentSchema,
3529
- ListContentSchema,
3530
- FormContentSchema,
3531
- CarouselContentSchema,
3532
- BookingContentSchema,
3533
- NativeContentSchema
3534
- ]).superRefine((content, ctx) => {
3535
- const unique = (items, path) => {
3536
- const seen = /* @__PURE__ */ new Set();
3537
- items.forEach((item, index) => {
3538
- if (seen.has(item.id)) ctx.addIssue({
3539
- code: "custom",
3540
- path: [
3541
- ...path,
3542
- index,
3543
- "id"
3544
- ],
3545
- message: "IDs must be unique"
3546
- });
3547
- seen.add(item.id);
3548
- });
3549
- };
3550
- if (content.type === "form") {
3551
- unique(content.questions, ["questions"]);
3552
- content.questions.forEach((q, index) => {
3553
- unique(q.options, [
3554
- "questions",
3555
- index,
3556
- "options"
3557
- ]);
3558
- if (q.id === "__openwa_form__") ctx.addIssue({
3559
- code: "custom",
3560
- path: [
3561
- "questions",
3562
- index,
3563
- "id"
3564
- ],
3565
- message: "This question ID is reserved"
3566
- });
3567
- });
3568
- }
3569
- if (content.type === "list") {
3570
- const seen = /* @__PURE__ */ new Set();
3571
- content.sections.forEach((section, s) => section.rows.forEach((row, r) => {
3572
- if (seen.has(row.id)) ctx.addIssue({
3573
- code: "custom",
3574
- path: [
3575
- "sections",
3576
- s,
3577
- "rows",
3578
- r,
3579
- "id"
3580
- ],
3581
- message: "Row IDs must be unique across sections"
3582
- });
3583
- seen.add(row.id);
3584
- }));
3585
- }
3586
- if (content.type === "booking" && content.booking.endAt && Date.parse(content.booking.endAt) <= Date.parse(content.booking.startAt)) ctx.addIssue({
3587
- code: "custom",
3588
- path: ["booking", "endAt"],
3589
- message: "Booking end must be after its start"
3590
- });
3591
- });
3592
- /** Validate a JSON document without sending it or loading media; suitable for UI builders. */
3593
- function defineInteractiveMessage(content) {
3594
- return InteractiveContentSchema.parse(content);
3595
- }
3596
- const responseBase = {
3597
- messageId: text,
3598
- chatId: text,
3599
- senderId: text,
3600
- originalMessageId: z.string().optional().describe("Original WhatsApp stanza ID; may not be a full serialized message key"),
3601
- timestamp: z.number().optional(),
3602
- raw: JsonObjectSchema
3603
- };
3604
- const FormResponseSchema = z.object({
3605
- ...responseBase,
3606
- type: z.literal("form"),
3607
- answers: z.record(z.string(), z.union([z.string(), z.array(z.string())]))
3608
- });
3609
- const InteractiveResponseSchema = z.discriminatedUnion("type", [
3610
- FormResponseSchema,
3611
- z.object({
3612
- ...responseBase,
3613
- type: z.literal("reply"),
3614
- id: text,
3615
- label: z.string().optional()
3616
- }),
3617
- z.object({
3618
- ...responseBase,
3619
- type: z.literal("list"),
3620
- id: text,
3621
- label: z.string().optional()
3622
- }),
3623
- z.object({
3624
- ...responseBase,
3625
- type: z.literal("native"),
3626
- name: text,
3627
- parameters: JsonValueSchema.optional(),
3628
- parseError: z.string().optional()
3629
- })
3630
- ]);
3631
- //#endregion
3632
3354
  //#region src/methods/interactive.ts
3633
3355
  const SendInteractiveInputSchema = z.object({
3634
3356
  to: toParam,
@@ -3903,6 +3625,6 @@ const respondToEvent = defineMethodV2("respondToEvent", {
3903
3625
  output: z.boolean()
3904
3626
  });
3905
3627
  //#endregion
3906
- export { defineInteractiveMessage as $, validateEventUpdate as $a, CartItemSchema as $i, getVCards as $n, onlyLocalParam as $r, leaveGroup as $t, sendInteractive as A, LocationSchema as Aa, fileToTempPathCodec as Ai, markAsUnread as An, unstarMessage as Ar, getStories as At, FormResponseSchema as B, EventListOptionsSchema as Ba, PollResultsSchema as Bi, StickerJobSchema as Bn, filenameParam as Br, GroupInfoSchema as Bt, CallMediaOptionsSchema as C, ContactIdSchema$1 as Ca, chatIdCodec as Ci, deleteChat as Cn, sendText as Cr, addLabel as Ct, RawAudioFormatSchema as D, GroupIdSchema$1 as Da, fileToBufferCodec as Di, getChatWithNonContacts as Dn, sendYouTubeLink as Dr, deleteAllStatus as Dt, MediaDescriptorSchema as E, GroupChatIdSchema as Ea, fileToBase64Codec as Ei, getChat as En, sendVideoAsGif as Er, removeLabel as Et, CarouselCardSchema as F, SerializedMessageIdSchema as Fa, messageIdCodec as Fi, unmuteChat as Fn, communityIdParam as Fr, getCommunityAdminIds as Ft, JsonObjectSchema as G, WhatsAppEventSchema as Ga, AutoMediaSendOptionsSchema as Gi, getAllMessages as Gn, latitudeParam as Gr, getAllGroups as Gt, InteractiveContentSchema as H, EventResponseSchema as Ha, PollVoteSchema as Hi, editMessage as Hn, imageDataParam as Hr, approveGroupJoinRequest as Ht, CarouselContentSchema as I, SimpleListener as Ia, unixMillisToDate as Ii, unpinChat as In, contactIdParam as Ir, getCommunityAdmins as It, ListContentSchema as J, deserializeEventResponse as Ja, ImageSendOptionsSchema as Ji, getMessagesForLLM as Jn, mentionedJidListParam as Jr, getGroupInviteLink as Jt, JsonValueSchema as K, decodeEventResponse as Ka, DocumentSendOptionsSchema as Ki, getMessageById as Kn, locationNameParam as Kr, getGroupAdmins as Kt, CopyActionSchema as L, EventResponseRegistrySchema as La, unixSecondsToDate as Li, AlbumMediaSchema as Ln, contentParam as Lr, getCommunityInfo as Lt, BookingContentSchema as M, MessageIdReturnSchema as Ma, hexColorCodec as Mi, pinChat as Mn, audioDataParam as Mr, postTextStatus as Mt, ButtonsContentSchema as N, MessageSchema as Na, isoDatetimeToDate as Ni, setChatEphemeral as Nn, captionParam as Nr, postVideoStatus as Nt, SendInteractiveInputSchema as O, GroupMetadataSchema as Oa, fileToDataUrlCodec as Oi, isChatOnline as On, starMessage as Or, deleteStatus as Ot, CallActionSchema as P, MessageTypes as Pa, jsonStringCodec as Pi, unarchiveChat as Pn, chatIdParam as Pr, getAllCommunities as Pt, ReplyActionSchema as Q, validateEventInput as Qa, BusinessProfileSchema as Qi, getUnsentMessages as Qn, nameParam as Qr, joinGroupViaLink as Qt, FormContentSchema as R, WhatsAppEventRegistrySchema as Ra, urlToDataUrlCodec as Ri, AlbumSendResultSchema as Rn, documentDataParam as Rr, getCommunityParticipantIds as Rt, CallIdentitySchema as S, ChatSchema as Sa, base64ToDataUrlCodec as Si, clearChat as Sn, sendSticker as Sr, getOrder as St, CallSnapshotSchema as T, DataURLSchema as Ta, createFileCodec as Ti, getAllChats as Tn, sendVCard as Tr, getChatsByLabel as Tt, InteractiveHeaderSchema as U, EventResponseTypeSchema as Ua, AudioAttachmentOptionsSchema as Ui, forwardMessages as Un, includeMeParam as Ur, createGroup as Ut, InteractiveActionSchema as V, EventPageSchema as Va, PollSendOptionsSchema as Vi, deleteMessage as Vn, groupIdParam as Vr, addParticipant as Vt, InteractiveResponseSchema as W, EventUpdateSchema as Wa, AudioSendOptionsSchema as Wi, getAlbumMessages as Wn, includeNotificationsParam as Wr, demoteParticipant as Wt, NativeActionSchema as X, serializeEventResponse as Xa, VideoSendOptionsSchema as Xi, getPollResults as Xn, messageIdsParam as Xr, getGroupMembersId as Xt, ListRowSchema as Y, deserializeWhatsAppEvent as Ya, MediaSendOptionsSchema as Yi, getMyLastMessage as Yn, messageIdParam as Yr, getGroupMembers as Yt, NativeContentSchema as Z, serializeWhatsAppEvent as Za, VoiceNoteOptionsSchema as Zi, getStarredMessages as Zn, messageOptionsParam as Zr, getKickedGroups as Zt, startCall as _, NumberProfileSchema as _a, IsoDatetimeToDateSchema as _i, getProfilePicture as _n, sendPaymentRequest as _r, setMyStatus as _t, getEvents as a, CommunityParticipantsSchema as aa, videoDataParam as ai, setGroupEditToAdminsOnly as an, sendAudio as ar, getHostNumber as at, CallCapabilitiesSchema as b, ProductSchema as ba, UnixMillisToDateSchema as bi, unblockContact as bn, sendReplyWithMentions as br, getBusinessProducts as bt, acceptCall as c, GroupCreationResultSchema as ca, Base64ToDataUrlSchema as ci, setGroupToAdminsOnly as cn, sendContact as cr, getLoadedMessageCount as ct, getActiveCall as d, LLMMessageSchema as da, ContactIdCodecSchema as di, checkReadReceipts as dn, sendImage as dr, getSnapshot as dt, CommonGroupSchema as ea, skipMyMessagesParam as ei, promoteParticipant as en, projectEffectSchema as eo, loadEarlierMessages as er, decryptMedia as et, getCallCapabilities as f, LabelSchema as fa, ContactIdSchema as fi, getAllContacts as fn, sendLinkWithAutoPreview as fr, getUserAgent as ft, setCallMedia as g, NumberCheckSchema as ga, HexColorSchema as gi, getNumberProfile as gn, sendMultipleContacts as gr, setMyName as gt, rejectCall as h, MessageInteractionSchema as ha, GroupIdSchema as hi, getContact as hn, sendMessageWithThumb as hr, isPlugged as ht, getEventResponses as i, CommunityParticipantIdsSchema as ia, userAgentParam as ii, setGroupDescription as in, sendAlbum as ir, getFeatures as it, sendRawMessage as j, MessageAck as ja, groupIdCodec as ji, muteChat as jn, voteOnPoll as jr, postImageStatus as jt, SendRawMessageInputSchema as k, IdSchema as ka, fileToStreamCodec as ki, markAsRead as kn, unpinMessage as kr, getStatus as kt, clearCallAudio as l, HealthCheckSchema as la, ChatIdCodecSchema as li, blockContact as ln, sendFile as lr, getMe as lt, observeCallAudio as m, MessageInfoSchema as ma, GroupIdCodecSchema as mi, getCommonGroups as mn, sendLocation as mr, healthCheck as mt, editEvent as n, CommunityAdminsSchema as na, stickerDataParam as ni, removeParticipant as nn, react as nr, getBatteryLevel as nt, respondToEvent as o, ContactStatusSchema as oa, waitForIdParam as oi, setGroupIcon as on, sendBanner as or, getLicenseFeatures as ot, muteCall as p, LicenseTypeSchema as pa, FileToDataUrlSchema as pi, getBlockedIds as pn, sendListMessage as pr, getWAVersion as pt, LinkActionSchema as q, decodeWhatsAppEvent as qa, GifSendOptionsSchema as qi, getMessageInfo as qn, longitudeParam as qr, getGroupInfo as qt, getEvent as r, CommunityMetadataSchema as ra, toParam as ri, revokeGroupInviteLink as rn, sendAdvancedButtons as rr, getConnectionState as rt, sendEvent as s, FeatureFlagsSchema as sa, withNewMessagesOnlyParam as si, setGroupTitle as sn, sendButtons as sr, getLicenseType as st, cancelEvent as t, CommunityAdminIdsSchema as ta, statusTextParam as ti, rejectGroupJoinRequest as tn, pinMessage as tr, downloadMedia as tt, endCall as u, HostAccountSchema as ua, ChatIdSchema as ui, checkNumberStatus as un, sendFileFromUrl as ur, getProcessStats as ut, stopCallAudioObserver as v, OrderSchema as va, MessageIdCodecSchema as vi, requestPhoneNumber as vn, sendPoll as vr, setProfilePicture as vt, CallReasonSchema as w, ContactSchema as wa, contactIdCodec as wi, getAllChatIds as wn, sendTextWithMentions as wr, getAllLabels as wt, CallEndReasonSchema as x, StorySchema as xa, UnixSecondsToDateSchema as xi, archiveChat as xn, sendSeen as xr, getBusinessProfile as xt, CallActionResultSchema as y, ProcessStatsSchema as ya, MessageIdSchema as yi, sharePhoneNumber as yn, sendPtt as yr, LicenseFeaturesSchema as yt, FormQuestionSchema as z, EventInputSchema as za, PinDurationSchema as zi, SendTextResultSchema as zn, fileDataParam as zr, getCommunityParticipants as zt };
3628
+ 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 };
3907
3629
 
3908
- //# sourceMappingURL=methods-BH7nDC3z.mjs.map
3630
+ //# sourceMappingURL=methods-CGm5G9VI.mjs.map