@open-wa/schema 5.0.0 → 5.1.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.
- package/dist/generated/index.cjs +8 -2
- package/dist/generated/index.cjs.map +1 -1
- package/dist/generated/index.d.cts +715 -1
- package/dist/generated/index.d.cts.map +1 -1
- package/dist/generated/index.d.mts +715 -1
- package/dist/generated/index.d.mts.map +1 -1
- package/dist/generated/index.mjs +8 -2
- package/dist/generated/index.mjs.map +1 -1
- package/dist/{index-ChYFQM1K.d.cts → index-DTztyYhw.d.cts} +893 -3
- package/dist/index-DTztyYhw.d.cts.map +1 -0
- package/dist/{index-BHcd0h7x.d.mts → index-nVKR0RmZ.d.mts} +893 -3
- package/dist/index-nVKR0RmZ.d.mts.map +1 -0
- package/dist/index.cjs +51 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +24 -2
- package/dist/index.mjs.map +1 -1
- package/dist/methods/index.cjs +5 -1
- package/dist/methods/index.d.cts +2 -2
- package/dist/methods/index.d.mts +2 -2
- package/dist/methods/index.mjs +2 -2
- package/dist/{methods-CZqeUhKy.mjs → methods-BSv5O3bS.mjs} +317 -2
- package/dist/methods-BSv5O3bS.mjs.map +1 -0
- package/dist/{methods-Dizm7Fn9.cjs → methods-DO0JONvB.cjs} +472 -1
- package/dist/methods-DO0JONvB.cjs.map +1 -0
- package/package.json +4 -3
- package/src/__tests__/generators.contract.test.ts +181 -0
- package/src/__tests__/registry.contract.test.ts +81 -0
- package/src/client-config.ts +30 -0
- package/src/codecs.test.ts +41 -0
- package/src/codecs.ts +191 -0
- package/src/common-types.ts +280 -0
- package/src/config.ts +47 -0
- package/src/enums.ts +63 -0
- package/src/events/groups.ts +33 -0
- package/src/events/index.ts +4 -0
- package/src/events/messaging.ts +86 -0
- package/src/events/registry.ts +124 -0
- package/src/events/state.ts +59 -0
- package/src/generated/AliasMap.ts +216 -0
- package/src/generated/BaseClient.ts +878 -0
- package/src/generated/BaseNamespacedClient.ts +214 -0
- package/src/generated/index.ts +5 -0
- package/src/generated/openapi.json +8949 -0
- package/src/generated/types.ts +383 -0
- package/src/http-manifest.ts +97 -0
- package/src/implementor.test.ts +88 -0
- package/src/implementor.ts +75 -0
- package/src/index.ts +44 -0
- package/src/interactive.ts +151 -0
- package/src/methods/business.ts +51 -0
- package/src/methods/chats.ts +263 -0
- package/src/methods/communities.ts +119 -0
- package/src/methods/contacts.ts +158 -0
- package/src/methods/groups.ts +376 -0
- package/src/methods/index.ts +34 -0
- package/src/methods/interactive.ts +21 -0
- package/src/methods/labels.ts +86 -0
- package/src/methods/media.ts +36 -0
- package/src/methods/messaging.ts +828 -0
- package/src/methods/session.ts +261 -0
- package/src/methods/status.ts +120 -0
- package/src/parameters.ts +237 -0
- package/src/registry.test.ts +30 -0
- package/src/registry.ts +601 -0
- package/dist/index-BHcd0h7x.d.mts.map +0 -1
- package/dist/index-ChYFQM1K.d.cts.map +0 -1
- package/dist/methods-CZqeUhKy.mjs.map +0 -1
- package/dist/methods-Dizm7Fn9.cjs.map +0 -1
package/dist/methods/index.cjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_methods = require("../methods-
|
|
2
|
+
const require_methods = require("../methods-DO0JONvB.cjs");
|
|
3
|
+
exports.SendInteractiveInputSchema = require_methods.SendInteractiveInputSchema;
|
|
4
|
+
exports.SendRawMessageInputSchema = require_methods.SendRawMessageInputSchema;
|
|
3
5
|
exports.addLabel = require_methods.addLabel;
|
|
4
6
|
exports.addParticipant = require_methods.addParticipant;
|
|
5
7
|
exports.approveGroupJoinRequest = require_methods.approveGroupJoinRequest;
|
|
@@ -93,6 +95,7 @@ exports.sendContact = require_methods.sendContact;
|
|
|
93
95
|
exports.sendFile = require_methods.sendFile;
|
|
94
96
|
exports.sendFileFromUrl = require_methods.sendFileFromUrl;
|
|
95
97
|
exports.sendImage = require_methods.sendImage;
|
|
98
|
+
exports.sendInteractive = require_methods.sendInteractive;
|
|
96
99
|
exports.sendLinkWithAutoPreview = require_methods.sendLinkWithAutoPreview;
|
|
97
100
|
exports.sendListMessage = require_methods.sendListMessage;
|
|
98
101
|
exports.sendLocation = require_methods.sendLocation;
|
|
@@ -101,6 +104,7 @@ exports.sendMultipleContacts = require_methods.sendMultipleContacts;
|
|
|
101
104
|
exports.sendPaymentRequest = require_methods.sendPaymentRequest;
|
|
102
105
|
exports.sendPoll = require_methods.sendPoll;
|
|
103
106
|
exports.sendPtt = require_methods.sendPtt;
|
|
107
|
+
exports.sendRawMessage = require_methods.sendRawMessage;
|
|
104
108
|
exports.sendReplyWithMentions = require_methods.sendReplyWithMentions;
|
|
105
109
|
exports.sendSeen = require_methods.sendSeen;
|
|
106
110
|
exports.sendText = require_methods.sendText;
|
package/dist/methods/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $n as
|
|
2
|
-
export { addLabel, addParticipant, approveGroupJoinRequest, archiveChat, blockContact, checkNumberStatus, checkReadReceipts, clearChat, createGroup, decryptMedia, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, downloadMedia, forwardMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getKickedGroups, getLicenseType, getLoadedMessageCount, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMyLastMessage, getNumberProfile, getOrder, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, healthCheck, isChatOnline, isPlugged, joinGroupViaLink, leaveGroup, loadEarlierMessages, markAsRead, markAsUnread, muteChat, pinChat, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, rejectGroupJoinRequest, removeLabel, removeParticipant, revokeGroupInviteLink, sendAdvancedButtons, sendAudio, sendBanner, sendButtons, sendContact, sendFile, sendFileFromUrl, sendImage, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendReplyWithMentions, sendSeen, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, starMessage, unarchiveChat, unblockContact, unmuteChat, unpinChat, unstarMessage };
|
|
1
|
+
import { $n as getGroupInfo, $r as sendAdvancedButtons, An as addLabel, Ar as getChat, Bn as postVideoStatus, Br as unpinChat, Ci as unstarMessage, Cn as isPlugged, Cr as getProfilePicture, Dn as getBusinessProducts, Dr as deleteChat, En as setProfilePicture, Er as clearChat, Fn as deleteStatus, Fr as muteChat, Gn as getCommunityParticipantIds, Gr as getMessageInfo, Hn as getCommunityAdminIds, Hr as forwardMessages, In as getStatus, Ir as pinChat, Jn as approveGroupJoinRequest, Jr as getStarredMessages, Kn as getCommunityParticipants, Kr as getMessagesForLLM, Ln as getStories, Lr as setChatEphemeral, Mn as getChatsByLabel, Mr as isChatOnline, Nn as removeLabel, Nr as markAsRead, On as getBusinessProfile, Or as getAllChatIds, Pn as deleteAllStatus, Pr as markAsUnread, Qn as getGroupAdmins, Qr as react, Rn as postImageStatus, Rr as unarchiveChat, Si as starMessage, Sn as healthCheck, Sr as getNumberProfile, Tn as setMyStatus, Tr as archiveChat, Un as getCommunityAdmins, Ur as getAllMessages, Vn as getAllCommunities, Vr as deleteMessage, Wn as getCommunityInfo, Wr as getMessageById, Xn as demoteParticipant, Xr as getVCards, Yn as createGroup, Yr as getUnsentMessages, Zn as getAllGroups, Zr as loadEarlierMessages, _i as sendText, _n as getMe, _r as checkReadReceipts, ai as sendFileFromUrl, an as SendInteractiveInputSchema, ar as leaveGroup, bi as sendVideoAsGif, bn as getUserAgent, br as getCommonGroups, ci as sendListMessage, cn as sendRawMessage, cr as removeParticipant, di as sendMultipleContacts, dn as getBatteryLevel, dr as setGroupEditToAdminsOnly, ei as sendAudio, er as getGroupInviteLink, fi as sendPaymentRequest, fn as getConnectionState, fr as setGroupIcon, gi as sendSeen, gn as getLoadedMessageCount, gr as checkNumberStatus, hi as sendReplyWithMentions, hn as getLicenseType, hr as blockContact, ii as sendFile, ir as joinGroupViaLink, jn as getAllLabels, jr as getChatWithNonContacts, kn as getOrder, kr as getAllChats, li as sendLocation, ln as decryptMedia, lr as revokeGroupInviteLink, mi as sendPtt, mn as getHostNumber, mr as setGroupToAdminsOnly, ni as sendButtons, nr as getGroupMembersId, oi as sendImage, on as SendRawMessageInputSchema, or as promoteParticipant, pi as sendPoll, pn as getFeatures, pr as setGroupTitle, qn as addParticipant, qr as getMyLastMessage, ri as sendContact, rr as getKickedGroups, si as sendLinkWithAutoPreview, sn as sendInteractive, sr as rejectGroupJoinRequest, ti as sendBanner, tr as getGroupMembers, ui as sendMessageWithThumb, un as downloadMedia, ur as setGroupDescription, vi as sendTextWithMentions, vn as getProcessStats, vr as getAllContacts, wn as setMyName, wr as unblockContact, xi as sendYouTubeLink, xn as getWAVersion, xr as getContact, yi as sendVCard, yn as getSnapshot, yr as getBlockedIds, zn as postTextStatus, zr as unmuteChat } from "../index-DTztyYhw.cjs";
|
|
2
|
+
export { SendInteractiveInputSchema, SendRawMessageInputSchema, addLabel, addParticipant, approveGroupJoinRequest, archiveChat, blockContact, checkNumberStatus, checkReadReceipts, clearChat, createGroup, decryptMedia, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, downloadMedia, forwardMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getKickedGroups, getLicenseType, getLoadedMessageCount, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMyLastMessage, getNumberProfile, getOrder, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, healthCheck, isChatOnline, isPlugged, joinGroupViaLink, leaveGroup, loadEarlierMessages, markAsRead, markAsUnread, muteChat, pinChat, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, rejectGroupJoinRequest, removeLabel, removeParticipant, revokeGroupInviteLink, sendAdvancedButtons, sendAudio, sendBanner, sendButtons, sendContact, sendFile, sendFileFromUrl, sendImage, sendInteractive, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendRawMessage, sendReplyWithMentions, sendSeen, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, starMessage, unarchiveChat, unblockContact, unmuteChat, unpinChat, unstarMessage };
|
package/dist/methods/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $n as
|
|
2
|
-
export { addLabel, addParticipant, approveGroupJoinRequest, archiveChat, blockContact, checkNumberStatus, checkReadReceipts, clearChat, createGroup, decryptMedia, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, downloadMedia, forwardMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getKickedGroups, getLicenseType, getLoadedMessageCount, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMyLastMessage, getNumberProfile, getOrder, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, healthCheck, isChatOnline, isPlugged, joinGroupViaLink, leaveGroup, loadEarlierMessages, markAsRead, markAsUnread, muteChat, pinChat, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, rejectGroupJoinRequest, removeLabel, removeParticipant, revokeGroupInviteLink, sendAdvancedButtons, sendAudio, sendBanner, sendButtons, sendContact, sendFile, sendFileFromUrl, sendImage, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendReplyWithMentions, sendSeen, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, starMessage, unarchiveChat, unblockContact, unmuteChat, unpinChat, unstarMessage };
|
|
1
|
+
import { $n as getGroupInfo, $r as sendAdvancedButtons, An as addLabel, Ar as getChat, Bn as postVideoStatus, Br as unpinChat, Ci as unstarMessage, Cn as isPlugged, Cr as getProfilePicture, Dn as getBusinessProducts, Dr as deleteChat, En as setProfilePicture, Er as clearChat, Fn as deleteStatus, Fr as muteChat, Gn as getCommunityParticipantIds, Gr as getMessageInfo, Hn as getCommunityAdminIds, Hr as forwardMessages, In as getStatus, Ir as pinChat, Jn as approveGroupJoinRequest, Jr as getStarredMessages, Kn as getCommunityParticipants, Kr as getMessagesForLLM, Ln as getStories, Lr as setChatEphemeral, Mn as getChatsByLabel, Mr as isChatOnline, Nn as removeLabel, Nr as markAsRead, On as getBusinessProfile, Or as getAllChatIds, Pn as deleteAllStatus, Pr as markAsUnread, Qn as getGroupAdmins, Qr as react, Rn as postImageStatus, Rr as unarchiveChat, Si as starMessage, Sn as healthCheck, Sr as getNumberProfile, Tn as setMyStatus, Tr as archiveChat, Un as getCommunityAdmins, Ur as getAllMessages, Vn as getAllCommunities, Vr as deleteMessage, Wn as getCommunityInfo, Wr as getMessageById, Xn as demoteParticipant, Xr as getVCards, Yn as createGroup, Yr as getUnsentMessages, Zn as getAllGroups, Zr as loadEarlierMessages, _i as sendText, _n as getMe, _r as checkReadReceipts, ai as sendFileFromUrl, an as SendInteractiveInputSchema, ar as leaveGroup, bi as sendVideoAsGif, bn as getUserAgent, br as getCommonGroups, ci as sendListMessage, cn as sendRawMessage, cr as removeParticipant, di as sendMultipleContacts, dn as getBatteryLevel, dr as setGroupEditToAdminsOnly, ei as sendAudio, er as getGroupInviteLink, fi as sendPaymentRequest, fn as getConnectionState, fr as setGroupIcon, gi as sendSeen, gn as getLoadedMessageCount, gr as checkNumberStatus, hi as sendReplyWithMentions, hn as getLicenseType, hr as blockContact, ii as sendFile, ir as joinGroupViaLink, jn as getAllLabels, jr as getChatWithNonContacts, kn as getOrder, kr as getAllChats, li as sendLocation, ln as decryptMedia, lr as revokeGroupInviteLink, mi as sendPtt, mn as getHostNumber, mr as setGroupToAdminsOnly, ni as sendButtons, nr as getGroupMembersId, oi as sendImage, on as SendRawMessageInputSchema, or as promoteParticipant, pi as sendPoll, pn as getFeatures, pr as setGroupTitle, qn as addParticipant, qr as getMyLastMessage, ri as sendContact, rr as getKickedGroups, si as sendLinkWithAutoPreview, sn as sendInteractive, sr as rejectGroupJoinRequest, ti as sendBanner, tr as getGroupMembers, ui as sendMessageWithThumb, un as downloadMedia, ur as setGroupDescription, vi as sendTextWithMentions, vn as getProcessStats, vr as getAllContacts, wn as setMyName, wr as unblockContact, xi as sendYouTubeLink, xn as getWAVersion, xr as getContact, yi as sendVCard, yn as getSnapshot, yr as getBlockedIds, zn as postTextStatus, zr as unmuteChat } from "../index-nVKR0RmZ.mjs";
|
|
2
|
+
export { SendInteractiveInputSchema, SendRawMessageInputSchema, addLabel, addParticipant, approveGroupJoinRequest, archiveChat, blockContact, checkNumberStatus, checkReadReceipts, clearChat, createGroup, decryptMedia, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, downloadMedia, forwardMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getKickedGroups, getLicenseType, getLoadedMessageCount, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMyLastMessage, getNumberProfile, getOrder, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, healthCheck, isChatOnline, isPlugged, joinGroupViaLink, leaveGroup, loadEarlierMessages, markAsRead, markAsUnread, muteChat, pinChat, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, rejectGroupJoinRequest, removeLabel, removeParticipant, revokeGroupInviteLink, sendAdvancedButtons, sendAudio, sendBanner, sendButtons, sendContact, sendFile, sendFileFromUrl, sendImage, sendInteractive, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendRawMessage, sendReplyWithMentions, sendSeen, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, starMessage, unarchiveChat, unblockContact, unmuteChat, unpinChat, unstarMessage };
|
package/dist/methods/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { addLabel, addParticipant, approveGroupJoinRequest, archiveChat, blockContact, checkNumberStatus, checkReadReceipts, clearChat, createGroup, decryptMedia, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, downloadMedia, forwardMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getKickedGroups, getLicenseType, getLoadedMessageCount, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMyLastMessage, getNumberProfile, getOrder, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, healthCheck, isChatOnline, isPlugged, joinGroupViaLink, leaveGroup, loadEarlierMessages, markAsRead, markAsUnread, muteChat, pinChat, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, rejectGroupJoinRequest, removeLabel, removeParticipant, revokeGroupInviteLink, sendAdvancedButtons, sendAudio, sendBanner, sendButtons, sendContact, sendFile, sendFileFromUrl, sendImage, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendReplyWithMentions, sendSeen, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, starMessage, unarchiveChat, unblockContact, unmuteChat, unpinChat, unstarMessage };
|
|
1
|
+
import { $ as deleteStatus, $t as muteChat, A as getConnectionState, An as sendPaymentRequest, At as setGroupIcon, B as healthCheck, Bn as starMessage, Bt as getNumberProfile, Cn as sendFileFromUrl, Ct as leaveGroup, D as decryptMedia, Dn as sendLocation, Dt as revokeGroupInviteLink, En as sendListMessage, Et as removeParticipant, F as getMe, Fn as sendText, Ft as checkReadReceipts, G as getBusinessProducts, Gt as deleteChat, H as setMyName, Ht as unblockContact, I as getProcessStats, In as sendTextWithMentions, It as getAllContacts, J as addLabel, Jt as getChat, K as getBusinessProfile, Kt as getAllChatIds, L as getSnapshot, Ln as sendVCard, Lt as getBlockedIds, M as getHostNumber, Mn as sendPtt, Mt as setGroupToAdminsOnly, N as getLicenseType, Nn as sendReplyWithMentions, Nt as blockContact, O as downloadMedia, On as sendMessageWithThumb, Ot as setGroupDescription, P as getLoadedMessageCount, Pn as sendSeen, Pt as checkNumberStatus, Q as deleteAllStatus, Qt as markAsUnread, R as getUserAgent, Rn as sendVideoAsGif, Rt as getCommonGroups, Sn as sendFile, St as joinGroupViaLink, Tn as sendLinkWithAutoPreview, Tt as rejectGroupJoinRequest, U as setMyStatus, Ut as archiveChat, V as isPlugged, Vn as unstarMessage, Vt as getProfilePicture, W as setProfilePicture, Wt as clearChat, X as getChatsByLabel, Xt as isChatOnline, Y as getAllLabels, Yt as getChatWithNonContacts, Z as removeLabel, Zt as markAsRead, _n as sendAdvancedButtons, _t as getGroupInfo, an as deleteMessage, at as getAllCommunities, bn as sendButtons, bt as getGroupMembersId, cn as getMessageById, ct as getCommunityInfo, dn as getMyLastMessage, dt as addParticipant, en as pinChat, et as getStatus, fn as getStarredMessages, ft as approveGroupJoinRequest, gn as react, gt as getGroupAdmins, hn as loadEarlierMessages, ht as getAllGroups, i as sendRawMessage, in as unpinChat, it as postVideoStatus, j as getFeatures, jn as sendPoll, jt as setGroupTitle, k as getBatteryLevel, kn as sendMultipleContacts, kt as setGroupEditToAdminsOnly, ln as getMessageInfo, lt as getCommunityParticipantIds, mn as getVCards, mt as demoteParticipant, n as SendRawMessageInputSchema, nn as unarchiveChat, nt as postImageStatus, on as forwardMessages, ot as getCommunityAdminIds, pn as getUnsentMessages, pt as createGroup, q as getOrder, qt as getAllChats, r as sendInteractive, rn as unmuteChat, rt as postTextStatus, sn as getAllMessages, st as getCommunityAdmins, t as SendInteractiveInputSchema, tn as setChatEphemeral, tt as getStories, un as getMessagesForLLM, ut as getCommunityParticipants, vn as sendAudio, vt as getGroupInviteLink, wn as sendImage, wt as promoteParticipant, xn as sendContact, xt as getKickedGroups, yn as sendBanner, yt as getGroupMembers, z as getWAVersion, zn as sendYouTubeLink, zt as getContact } from "../methods-BSv5O3bS.mjs";
|
|
2
|
+
export { SendInteractiveInputSchema, SendRawMessageInputSchema, addLabel, addParticipant, approveGroupJoinRequest, archiveChat, blockContact, checkNumberStatus, checkReadReceipts, clearChat, createGroup, decryptMedia, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, downloadMedia, forwardMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getKickedGroups, getLicenseType, getLoadedMessageCount, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMyLastMessage, getNumberProfile, getOrder, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, healthCheck, isChatOnline, isPlugged, joinGroupViaLink, leaveGroup, loadEarlierMessages, markAsRead, markAsUnread, muteChat, pinChat, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, rejectGroupJoinRequest, removeLabel, removeParticipant, revokeGroupInviteLink, sendAdvancedButtons, sendAudio, sendBanner, sendButtons, sendContact, sendFile, sendFileFromUrl, sendImage, sendInteractive, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendRawMessage, sendReplyWithMentions, sendSeen, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, starMessage, unarchiveChat, unblockContact, unmuteChat, unpinChat, unstarMessage };
|
|
@@ -2628,6 +2628,321 @@ const downloadMedia = defineMethodV2("downloadMedia", {
|
|
|
2628
2628
|
output: z.string().describe("Path to the saved file")
|
|
2629
2629
|
});
|
|
2630
2630
|
//#endregion
|
|
2631
|
-
|
|
2631
|
+
//#region src/interactive.ts
|
|
2632
|
+
const JsonValueSchema = z.lazy(() => z.union([
|
|
2633
|
+
z.null(),
|
|
2634
|
+
z.boolean(),
|
|
2635
|
+
z.number().finite(),
|
|
2636
|
+
z.string(),
|
|
2637
|
+
z.array(JsonValueSchema),
|
|
2638
|
+
z.record(z.string(), JsonValueSchema)
|
|
2639
|
+
]));
|
|
2640
|
+
const JsonObjectSchema = z.record(z.string(), JsonValueSchema);
|
|
2641
|
+
const text = z.string().min(1);
|
|
2642
|
+
const url = z.url().refine((value) => /^https?:\/\//i.test(value), "Use an HTTP or HTTPS URL");
|
|
2643
|
+
const id = text.describe("Stable application-defined ID returned when the recipient chooses this item");
|
|
2644
|
+
const ReplyActionSchema = z.object({
|
|
2645
|
+
type: z.literal("reply"),
|
|
2646
|
+
id,
|
|
2647
|
+
label: text
|
|
2648
|
+
}).strict();
|
|
2649
|
+
const LinkActionSchema = z.object({
|
|
2650
|
+
type: z.literal("url"),
|
|
2651
|
+
label: text,
|
|
2652
|
+
url
|
|
2653
|
+
}).strict();
|
|
2654
|
+
const CallActionSchema = z.object({
|
|
2655
|
+
type: z.literal("call"),
|
|
2656
|
+
label: text,
|
|
2657
|
+
phoneNumber: text
|
|
2658
|
+
}).strict();
|
|
2659
|
+
const CopyActionSchema = z.object({
|
|
2660
|
+
type: z.literal("copy"),
|
|
2661
|
+
label: text,
|
|
2662
|
+
code: text
|
|
2663
|
+
}).strict();
|
|
2664
|
+
const InteractiveActionSchema = z.discriminatedUnion("type", [
|
|
2665
|
+
ReplyActionSchema,
|
|
2666
|
+
LinkActionSchema,
|
|
2667
|
+
CallActionSchema,
|
|
2668
|
+
CopyActionSchema
|
|
2669
|
+
]);
|
|
2670
|
+
const NativeActionSchema = z.object({
|
|
2671
|
+
name: text.describe("WhatsApp native action name; availability depends on the recipient and account"),
|
|
2672
|
+
parameters: JsonObjectSchema.optional()
|
|
2673
|
+
}).strict();
|
|
2674
|
+
const actions = z.array(InteractiveActionSchema).min(1).superRefine((items, ctx) => {
|
|
2675
|
+
const replies = items.filter((item) => item.type === "reply");
|
|
2676
|
+
if (replies.length && replies.length !== items.length) ctx.addIssue({
|
|
2677
|
+
code: "custom",
|
|
2678
|
+
message: "Reply actions cannot be mixed with URL, call or copy actions"
|
|
2679
|
+
});
|
|
2680
|
+
const ids = /* @__PURE__ */ new Set();
|
|
2681
|
+
items.forEach((item, index) => {
|
|
2682
|
+
if (item.type !== "reply") return;
|
|
2683
|
+
if (ids.has(item.id)) ctx.addIssue({
|
|
2684
|
+
code: "custom",
|
|
2685
|
+
path: [index, "id"],
|
|
2686
|
+
message: "Duplicate reply ID"
|
|
2687
|
+
});
|
|
2688
|
+
ids.add(item.id);
|
|
2689
|
+
});
|
|
2690
|
+
});
|
|
2691
|
+
const media = {
|
|
2692
|
+
source: text.describe("HTTP(S) URL, local file path or base64 data URL; resolved by the client before sending"),
|
|
2693
|
+
filename: text.optional(),
|
|
2694
|
+
title: z.string().optional()
|
|
2695
|
+
};
|
|
2696
|
+
const InteractiveHeaderSchema = z.discriminatedUnion("type", [
|
|
2697
|
+
z.object({
|
|
2698
|
+
type: z.literal("text"),
|
|
2699
|
+
text
|
|
2700
|
+
}).strict(),
|
|
2701
|
+
z.object({
|
|
2702
|
+
type: z.literal("image"),
|
|
2703
|
+
...media
|
|
2704
|
+
}).strict(),
|
|
2705
|
+
z.object({
|
|
2706
|
+
type: z.literal("video"),
|
|
2707
|
+
...media
|
|
2708
|
+
}).strict(),
|
|
2709
|
+
z.object({
|
|
2710
|
+
type: z.literal("document"),
|
|
2711
|
+
...media
|
|
2712
|
+
}).strict()
|
|
2713
|
+
]);
|
|
2714
|
+
const base = {
|
|
2715
|
+
version: z.literal(1).optional().describe("Document format version, defaults to 1; independent of WhatsApp protocol versions"),
|
|
2716
|
+
body: text,
|
|
2717
|
+
footer: z.string().optional()
|
|
2718
|
+
};
|
|
2719
|
+
const ButtonsContentSchema = z.object({
|
|
2720
|
+
...base,
|
|
2721
|
+
type: z.literal("buttons"),
|
|
2722
|
+
header: InteractiveHeaderSchema.optional(),
|
|
2723
|
+
actions
|
|
2724
|
+
}).strict();
|
|
2725
|
+
const ListRowSchema = z.object({
|
|
2726
|
+
id,
|
|
2727
|
+
title: text,
|
|
2728
|
+
description: z.string().optional()
|
|
2729
|
+
}).strict();
|
|
2730
|
+
const ListContentSchema = z.object({
|
|
2731
|
+
...base,
|
|
2732
|
+
type: z.literal("list"),
|
|
2733
|
+
title: z.string().optional(),
|
|
2734
|
+
buttonLabel: text.default("Choose an option"),
|
|
2735
|
+
sections: z.array(z.object({
|
|
2736
|
+
title: z.string().optional(),
|
|
2737
|
+
rows: z.array(ListRowSchema).min(1)
|
|
2738
|
+
}).strict()).min(1)
|
|
2739
|
+
}).strict();
|
|
2740
|
+
const FormQuestionSchema = z.object({
|
|
2741
|
+
type: z.enum(["singleSelect", "multiSelect"]),
|
|
2742
|
+
id,
|
|
2743
|
+
label: text,
|
|
2744
|
+
options: z.array(z.object({
|
|
2745
|
+
id,
|
|
2746
|
+
label: text
|
|
2747
|
+
}).strict()).min(1),
|
|
2748
|
+
allowCustomAnswer: z.boolean().optional()
|
|
2749
|
+
}).strict();
|
|
2750
|
+
const FormContentSchema = z.object({
|
|
2751
|
+
...base,
|
|
2752
|
+
type: z.literal("form"),
|
|
2753
|
+
title: z.string().optional(),
|
|
2754
|
+
questions: z.array(FormQuestionSchema).min(1)
|
|
2755
|
+
}).strict();
|
|
2756
|
+
const CarouselCardSchema = z.object({
|
|
2757
|
+
body: text,
|
|
2758
|
+
header: z.object({
|
|
2759
|
+
type: z.literal("image"),
|
|
2760
|
+
...media
|
|
2761
|
+
}).strict(),
|
|
2762
|
+
actions
|
|
2763
|
+
}).strict();
|
|
2764
|
+
const CarouselContentSchema = z.object({
|
|
2765
|
+
...base,
|
|
2766
|
+
type: z.literal("carousel"),
|
|
2767
|
+
cards: z.array(CarouselCardSchema).min(1)
|
|
2768
|
+
}).strict();
|
|
2769
|
+
const BookingContentSchema = z.object({
|
|
2770
|
+
...base,
|
|
2771
|
+
type: z.literal("booking"),
|
|
2772
|
+
title: z.string().optional(),
|
|
2773
|
+
buttonLabel: text.default("View booking"),
|
|
2774
|
+
booking: z.object({
|
|
2775
|
+
startAt: z.iso.datetime({ offset: true }),
|
|
2776
|
+
endAt: z.iso.datetime({ offset: true }).optional(),
|
|
2777
|
+
location: z.string().optional(),
|
|
2778
|
+
url: url.optional(),
|
|
2779
|
+
managementUrl: url.optional(),
|
|
2780
|
+
phoneNumber: z.string().optional(),
|
|
2781
|
+
email: z.email().optional(),
|
|
2782
|
+
description: z.string().optional(),
|
|
2783
|
+
labels: z.object({
|
|
2784
|
+
language: z.string().optional(),
|
|
2785
|
+
meetingType: z.string().optional(),
|
|
2786
|
+
detailsTitle: z.string().optional(),
|
|
2787
|
+
addToCalendar: z.string().optional(),
|
|
2788
|
+
viewOnMap: z.string().optional(),
|
|
2789
|
+
manageBooking: z.string().optional()
|
|
2790
|
+
}).strict().optional()
|
|
2791
|
+
}).strict(),
|
|
2792
|
+
actions: z.array(z.discriminatedUnion("type", [
|
|
2793
|
+
LinkActionSchema,
|
|
2794
|
+
CallActionSchema,
|
|
2795
|
+
CopyActionSchema
|
|
2796
|
+
])).optional()
|
|
2797
|
+
}).strict();
|
|
2798
|
+
const NativeContentSchema = z.object({
|
|
2799
|
+
...base,
|
|
2800
|
+
type: z.literal("native"),
|
|
2801
|
+
header: InteractiveHeaderSchema.optional(),
|
|
2802
|
+
actions: z.array(NativeActionSchema).min(1),
|
|
2803
|
+
parameters: JsonObjectSchema.optional()
|
|
2804
|
+
}).strict().describe("Advanced extension for new native action types; parameters are passed through without claiming recipient support");
|
|
2805
|
+
const InteractiveContentSchema = z.discriminatedUnion("type", [
|
|
2806
|
+
ButtonsContentSchema,
|
|
2807
|
+
ListContentSchema,
|
|
2808
|
+
FormContentSchema,
|
|
2809
|
+
CarouselContentSchema,
|
|
2810
|
+
BookingContentSchema,
|
|
2811
|
+
NativeContentSchema
|
|
2812
|
+
]).superRefine((content, ctx) => {
|
|
2813
|
+
const unique = (items, path) => {
|
|
2814
|
+
const seen = /* @__PURE__ */ new Set();
|
|
2815
|
+
items.forEach((item, index) => {
|
|
2816
|
+
if (seen.has(item.id)) ctx.addIssue({
|
|
2817
|
+
code: "custom",
|
|
2818
|
+
path: [
|
|
2819
|
+
...path,
|
|
2820
|
+
index,
|
|
2821
|
+
"id"
|
|
2822
|
+
],
|
|
2823
|
+
message: "IDs must be unique"
|
|
2824
|
+
});
|
|
2825
|
+
seen.add(item.id);
|
|
2826
|
+
});
|
|
2827
|
+
};
|
|
2828
|
+
if (content.type === "form") {
|
|
2829
|
+
unique(content.questions, ["questions"]);
|
|
2830
|
+
content.questions.forEach((q, index) => {
|
|
2831
|
+
unique(q.options, [
|
|
2832
|
+
"questions",
|
|
2833
|
+
index,
|
|
2834
|
+
"options"
|
|
2835
|
+
]);
|
|
2836
|
+
if (q.id === "__openwa_form__") ctx.addIssue({
|
|
2837
|
+
code: "custom",
|
|
2838
|
+
path: [
|
|
2839
|
+
"questions",
|
|
2840
|
+
index,
|
|
2841
|
+
"id"
|
|
2842
|
+
],
|
|
2843
|
+
message: "This question ID is reserved"
|
|
2844
|
+
});
|
|
2845
|
+
});
|
|
2846
|
+
}
|
|
2847
|
+
if (content.type === "list") {
|
|
2848
|
+
const seen = /* @__PURE__ */ new Set();
|
|
2849
|
+
content.sections.forEach((section, s) => section.rows.forEach((row, r) => {
|
|
2850
|
+
if (seen.has(row.id)) ctx.addIssue({
|
|
2851
|
+
code: "custom",
|
|
2852
|
+
path: [
|
|
2853
|
+
"sections",
|
|
2854
|
+
s,
|
|
2855
|
+
"rows",
|
|
2856
|
+
r,
|
|
2857
|
+
"id"
|
|
2858
|
+
],
|
|
2859
|
+
message: "Row IDs must be unique across sections"
|
|
2860
|
+
});
|
|
2861
|
+
seen.add(row.id);
|
|
2862
|
+
}));
|
|
2863
|
+
}
|
|
2864
|
+
if (content.type === "booking" && content.booking.endAt && Date.parse(content.booking.endAt) <= Date.parse(content.booking.startAt)) ctx.addIssue({
|
|
2865
|
+
code: "custom",
|
|
2866
|
+
path: ["booking", "endAt"],
|
|
2867
|
+
message: "Booking end must be after its start"
|
|
2868
|
+
});
|
|
2869
|
+
});
|
|
2870
|
+
/** Validate a JSON document without sending it or loading media; suitable for UI builders. */
|
|
2871
|
+
function defineInteractiveMessage(content) {
|
|
2872
|
+
return InteractiveContentSchema.parse(content);
|
|
2873
|
+
}
|
|
2874
|
+
const responseBase = {
|
|
2875
|
+
messageId: text,
|
|
2876
|
+
chatId: text,
|
|
2877
|
+
senderId: text,
|
|
2878
|
+
originalMessageId: z.string().optional().describe("Original WhatsApp stanza ID; may not be a full serialized message key"),
|
|
2879
|
+
timestamp: z.number().optional(),
|
|
2880
|
+
raw: JsonObjectSchema
|
|
2881
|
+
};
|
|
2882
|
+
const FormResponseSchema = z.object({
|
|
2883
|
+
...responseBase,
|
|
2884
|
+
type: z.literal("form"),
|
|
2885
|
+
answers: z.record(z.string(), z.union([z.string(), z.array(z.string())]))
|
|
2886
|
+
});
|
|
2887
|
+
const InteractiveResponseSchema = z.discriminatedUnion("type", [
|
|
2888
|
+
FormResponseSchema,
|
|
2889
|
+
z.object({
|
|
2890
|
+
...responseBase,
|
|
2891
|
+
type: z.literal("reply"),
|
|
2892
|
+
id: text,
|
|
2893
|
+
label: z.string().optional()
|
|
2894
|
+
}),
|
|
2895
|
+
z.object({
|
|
2896
|
+
...responseBase,
|
|
2897
|
+
type: z.literal("list"),
|
|
2898
|
+
id: text,
|
|
2899
|
+
label: z.string().optional()
|
|
2900
|
+
}),
|
|
2901
|
+
z.object({
|
|
2902
|
+
...responseBase,
|
|
2903
|
+
type: z.literal("native"),
|
|
2904
|
+
name: text,
|
|
2905
|
+
parameters: JsonValueSchema.optional(),
|
|
2906
|
+
parseError: z.string().optional()
|
|
2907
|
+
})
|
|
2908
|
+
]);
|
|
2909
|
+
//#endregion
|
|
2910
|
+
//#region src/methods/interactive.ts
|
|
2911
|
+
const SendInteractiveInputSchema = z.object({
|
|
2912
|
+
to: toParam,
|
|
2913
|
+
content: InteractiveContentSchema
|
|
2914
|
+
}).strict();
|
|
2915
|
+
const SendRawMessageInputSchema = z.object({
|
|
2916
|
+
to: toParam,
|
|
2917
|
+
payload: JsonObjectSchema
|
|
2918
|
+
}).strict();
|
|
2919
|
+
const sendInteractive = defineMethodV2("sendInteractive", {
|
|
2920
|
+
meta: {
|
|
2921
|
+
description: "Send a portable interactive message document (Insiders and above)",
|
|
2922
|
+
namespace: "messages",
|
|
2923
|
+
action: "send",
|
|
2924
|
+
license: "insiders",
|
|
2925
|
+
functionality: "both",
|
|
2926
|
+
httpMethod: "POST"
|
|
2927
|
+
},
|
|
2928
|
+
input: SendInteractiveInputSchema,
|
|
2929
|
+
parameterOrder: ["to", "content"],
|
|
2930
|
+
output: z.string()
|
|
2931
|
+
});
|
|
2932
|
+
const sendRawMessage = defineMethodV2("sendRawMessage", {
|
|
2933
|
+
meta: {
|
|
2934
|
+
description: "Send a constructed WhatsApp protobuf Message payload (Insiders and above); media must already be uploaded",
|
|
2935
|
+
namespace: "messages",
|
|
2936
|
+
action: "send",
|
|
2937
|
+
license: "insiders",
|
|
2938
|
+
functionality: "both",
|
|
2939
|
+
httpMethod: "POST"
|
|
2940
|
+
},
|
|
2941
|
+
input: SendRawMessageInputSchema,
|
|
2942
|
+
parameterOrder: ["to", "payload"],
|
|
2943
|
+
output: z.string()
|
|
2944
|
+
});
|
|
2945
|
+
//#endregion
|
|
2946
|
+
export { deleteStatus as $, includeMeParam as $n, IdSchema as $r, muteChat as $t, getConnectionState as A, sendPaymentRequest as An, UnixMillisToDateSchema as Ar, setGroupIcon as At, healthCheck as B, starMessage as Bn, fileToTempPathCodec as Br, getNumberProfile as Bt, NativeActionSchema as C, sendFileFromUrl as Cn, FileToDataUrlSchema as Cr, leaveGroup as Ct, decryptMedia as D, sendLocation as Dn, IsoDatetimeToDateSchema as Dr, revokeGroupInviteLink as Dt, defineInteractiveMessage as E, sendListMessage as En, HexColorSchema as Er, removeParticipant as Et, getMe as F, sendText as Fn, createFileCodec as Fr, checkReadReceipts as Ft, getBusinessProducts as G, communityIdParam as Gn, messageIdCodec as Gr, deleteChat as Gt, setMyName as H, audioDataParam as Hn, hexColorCodec as Hr, unblockContact as Ht, getProcessStats as I, sendTextWithMentions as In, fileToBase64Codec as Ir, getAllContacts as It, addLabel as J, documentDataParam as Jn, urlToDataUrlCodec as Jr, getChat as Jt, getBusinessProfile as K, contactIdParam as Kn, unixMillisToDate as Kr, getAllChatIds as Kt, getSnapshot as L, sendVCard as Ln, fileToBufferCodec as Lr, getBlockedIds as Lt, getHostNumber as M, sendPtt as Mn, base64ToDataUrlCodec as Mr, setGroupToAdminsOnly as Mt, getLicenseType as N, sendReplyWithMentions as Nn, chatIdCodec as Nr, blockContact as Nt, downloadMedia as O, sendMessageWithThumb as On, MessageIdCodecSchema as Or, setGroupDescription as Ot, getLoadedMessageCount as P, sendSeen as Pn, contactIdCodec as Pr, checkNumberStatus as Pt, deleteAllStatus as Q, imageDataParam as Qn, GroupMetadataSchema as Qr, markAsUnread as Qt, getUserAgent as R, sendVideoAsGif as Rn, fileToDataUrlCodec as Rr, getCommonGroups as Rt, ListRowSchema as S, sendFile as Sn, ContactIdSchema as Sr, joinGroupViaLink as St, ReplyActionSchema as T, sendLinkWithAutoPreview as Tn, GroupIdSchema as Tr, rejectGroupJoinRequest as Tt, setMyStatus as U, captionParam as Un, isoDatetimeToDate as Ur, archiveChat as Ut, isPlugged as V, unstarMessage as Vn, groupIdCodec as Vr, getProfilePicture as Vt, setProfilePicture as W, chatIdParam as Wn, jsonStringCodec as Wr, clearChat as Wt, getChatsByLabel as X, filenameParam as Xn, ContactSchema as Xr, isChatOnline as Xt, getAllLabels as Y, fileDataParam as Yn, ChatSchema as Yr, getChatWithNonContacts as Yt, removeLabel as Z, groupIdParam as Zn, GroupChatIdSchema as Zr, markAsRead as Zt, InteractiveResponseSchema as _, sendAdvancedButtons as _n, withNewMessagesOnlyParam as _r, getGroupInfo as _t, BookingContentSchema as a, SimpleListener as ai, deleteMessage as an, messageIdParam as ar, getAllCommunities as at, LinkActionSchema as b, sendButtons as bn, ChatIdSchema as br, getGroupMembersId as bt, CarouselCardSchema as c, getMessageById as cn, nameParam as cr, getCommunityInfo as ct, FormContentSchema as d, getMyLastMessage as dn, statusTextParam as dr, addParticipant as dt, LocationSchema as ei, pinChat as en, includeNotificationsParam as er, getStatus as et, FormQuestionSchema as f, getStarredMessages as fn, stickerDataParam as fr, approveGroupJoinRequest as ft, InteractiveHeaderSchema as g, react as gn, waitForIdParam as gr, getGroupAdmins as gt, InteractiveContentSchema as h, loadEarlierMessages as hn, videoDataParam as hr, getAllGroups as ht, sendRawMessage as i, MessageTypes as ii, unpinChat as in, mentionedJidListParam as ir, postVideoStatus as it, getFeatures as j, sendPoll as jn, UnixSecondsToDateSchema as jr, setGroupTitle as jt, getBatteryLevel as k, sendMultipleContacts as kn, MessageIdSchema as kr, setGroupEditToAdminsOnly as kt, CarouselContentSchema as l, getMessageInfo as ln, onlyLocalParam as lr, getCommunityParticipantIds as lt, InteractiveActionSchema as m, getVCards as mn, userAgentParam as mr, demoteParticipant as mt, SendRawMessageInputSchema as n, MessageIdReturnSchema as ni, unarchiveChat as nn, locationNameParam as nr, postImageStatus as nt, ButtonsContentSchema as o, forwardMessages as on, messageIdsParam as or, getCommunityAdminIds as ot, FormResponseSchema as p, getUnsentMessages as pn, toParam as pr, createGroup as pt, getOrder as q, contentParam as qn, unixSecondsToDate as qr, getAllChats as qt, sendInteractive as r, MessageSchema as ri, unmuteChat as rn, longitudeParam as rr, postTextStatus as rt, CallActionSchema as s, getAllMessages as sn, messageOptionsParam as sr, getCommunityAdmins as st, SendInteractiveInputSchema as t, MessageAck as ti, setChatEphemeral as tn, latitudeParam as tr, getStories as tt, CopyActionSchema as u, getMessagesForLLM as un, skipMyMessagesParam as ur, getCommunityParticipants as ut, JsonObjectSchema as v, sendAudio as vn, Base64ToDataUrlSchema as vr, getGroupInviteLink as vt, NativeContentSchema as w, sendImage as wn, GroupIdCodecSchema as wr, promoteParticipant as wt, ListContentSchema as x, sendContact as xn, ContactIdCodecSchema as xr, getKickedGroups as xt, JsonValueSchema as y, sendBanner as yn, ChatIdCodecSchema as yr, getGroupMembers as yt, getWAVersion as z, sendYouTubeLink as zn, fileToStreamCodec as zr, getContact as zt };
|
|
2632
2947
|
|
|
2633
|
-
//# sourceMappingURL=methods-
|
|
2948
|
+
//# sourceMappingURL=methods-BSv5O3bS.mjs.map
|