@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $n as
|
|
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, Ui as MessageAck, 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, 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, in as index_d_exports, 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, or as promoteParticipant, pi as sendPoll, pn as getFeatures, pr as setGroupTitle, qi as MessageTypes, 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
2
|
import * as Zod from "zod";
|
|
3
3
|
//#region src/generated/AliasMap.d.ts
|
|
4
4
|
export declare const clientMethodAliasMap: {
|
|
@@ -209,6 +209,8 @@ export declare const clientMethodAliasMap: {
|
|
|
209
209
|
readonly "session.setProfilePic": "setProfilePicture";
|
|
210
210
|
readonly "media.decrypt": "decryptMedia";
|
|
211
211
|
readonly "media.download": "downloadMedia";
|
|
212
|
+
readonly "messages.sendInteractive": "sendInteractive";
|
|
213
|
+
readonly "messages.sendRaw": "sendRawMessage";
|
|
212
214
|
};
|
|
213
215
|
//#endregion
|
|
214
216
|
//#region src/generated/BaseClient.d.ts
|
|
@@ -1537,6 +1539,360 @@ export declare abstract class BaseClient {
|
|
|
1537
1539
|
};
|
|
1538
1540
|
path: string;
|
|
1539
1541
|
}, ...unknown[]]) => Promise<string>;
|
|
1542
|
+
sendInteractive: (...args: any[] | unknown[] | [] | [{
|
|
1543
|
+
to: string;
|
|
1544
|
+
content: {
|
|
1545
|
+
version?: 1 | undefined;
|
|
1546
|
+
body: string;
|
|
1547
|
+
footer?: string | undefined;
|
|
1548
|
+
type: "buttons";
|
|
1549
|
+
header?: {
|
|
1550
|
+
type: "text";
|
|
1551
|
+
text: string;
|
|
1552
|
+
} | {
|
|
1553
|
+
source: string;
|
|
1554
|
+
filename?: string | undefined;
|
|
1555
|
+
title?: string | undefined;
|
|
1556
|
+
type: "image";
|
|
1557
|
+
} | {
|
|
1558
|
+
source: string;
|
|
1559
|
+
filename?: string | undefined;
|
|
1560
|
+
title?: string | undefined;
|
|
1561
|
+
type: "video";
|
|
1562
|
+
} | {
|
|
1563
|
+
source: string;
|
|
1564
|
+
filename?: string | undefined;
|
|
1565
|
+
title?: string | undefined;
|
|
1566
|
+
type: "document";
|
|
1567
|
+
} | undefined;
|
|
1568
|
+
actions: ({
|
|
1569
|
+
type: "url";
|
|
1570
|
+
label: string;
|
|
1571
|
+
url: string;
|
|
1572
|
+
} | {
|
|
1573
|
+
type: "call";
|
|
1574
|
+
label: string;
|
|
1575
|
+
phoneNumber: string;
|
|
1576
|
+
} | {
|
|
1577
|
+
type: "copy";
|
|
1578
|
+
label: string;
|
|
1579
|
+
code: string;
|
|
1580
|
+
} | {
|
|
1581
|
+
type: "reply";
|
|
1582
|
+
id: string;
|
|
1583
|
+
label: string;
|
|
1584
|
+
})[];
|
|
1585
|
+
} | {
|
|
1586
|
+
version?: 1 | undefined;
|
|
1587
|
+
body: string;
|
|
1588
|
+
footer?: string | undefined;
|
|
1589
|
+
type: "list";
|
|
1590
|
+
title?: string | undefined;
|
|
1591
|
+
buttonLabel?: string | undefined;
|
|
1592
|
+
sections: {
|
|
1593
|
+
title?: string | undefined;
|
|
1594
|
+
rows: {
|
|
1595
|
+
id: string;
|
|
1596
|
+
title: string;
|
|
1597
|
+
description?: string | undefined;
|
|
1598
|
+
}[];
|
|
1599
|
+
}[];
|
|
1600
|
+
} | {
|
|
1601
|
+
version?: 1 | undefined;
|
|
1602
|
+
body: string;
|
|
1603
|
+
footer?: string | undefined;
|
|
1604
|
+
type: "form";
|
|
1605
|
+
title?: string | undefined;
|
|
1606
|
+
questions: {
|
|
1607
|
+
type: "multiSelect" | "singleSelect";
|
|
1608
|
+
id: string;
|
|
1609
|
+
label: string;
|
|
1610
|
+
options: {
|
|
1611
|
+
id: string;
|
|
1612
|
+
label: string;
|
|
1613
|
+
}[];
|
|
1614
|
+
allowCustomAnswer?: boolean | undefined;
|
|
1615
|
+
}[];
|
|
1616
|
+
} | {
|
|
1617
|
+
version?: 1 | undefined;
|
|
1618
|
+
body: string;
|
|
1619
|
+
footer?: string | undefined;
|
|
1620
|
+
type: "carousel";
|
|
1621
|
+
cards: {
|
|
1622
|
+
body: string;
|
|
1623
|
+
header: {
|
|
1624
|
+
source: string;
|
|
1625
|
+
filename?: string | undefined;
|
|
1626
|
+
title?: string | undefined;
|
|
1627
|
+
type: "image";
|
|
1628
|
+
};
|
|
1629
|
+
actions: ({
|
|
1630
|
+
type: "url";
|
|
1631
|
+
label: string;
|
|
1632
|
+
url: string;
|
|
1633
|
+
} | {
|
|
1634
|
+
type: "call";
|
|
1635
|
+
label: string;
|
|
1636
|
+
phoneNumber: string;
|
|
1637
|
+
} | {
|
|
1638
|
+
type: "copy";
|
|
1639
|
+
label: string;
|
|
1640
|
+
code: string;
|
|
1641
|
+
} | {
|
|
1642
|
+
type: "reply";
|
|
1643
|
+
id: string;
|
|
1644
|
+
label: string;
|
|
1645
|
+
})[];
|
|
1646
|
+
}[];
|
|
1647
|
+
} | {
|
|
1648
|
+
version?: 1 | undefined;
|
|
1649
|
+
body: string;
|
|
1650
|
+
footer?: string | undefined;
|
|
1651
|
+
type: "booking";
|
|
1652
|
+
title?: string | undefined;
|
|
1653
|
+
buttonLabel?: string | undefined;
|
|
1654
|
+
booking: {
|
|
1655
|
+
startAt: string;
|
|
1656
|
+
endAt?: string | undefined;
|
|
1657
|
+
location?: string | undefined;
|
|
1658
|
+
url?: string | undefined;
|
|
1659
|
+
managementUrl?: string | undefined;
|
|
1660
|
+
phoneNumber?: string | undefined;
|
|
1661
|
+
email?: string | undefined;
|
|
1662
|
+
description?: string | undefined;
|
|
1663
|
+
labels?: {
|
|
1664
|
+
language?: string | undefined;
|
|
1665
|
+
meetingType?: string | undefined;
|
|
1666
|
+
detailsTitle?: string | undefined;
|
|
1667
|
+
addToCalendar?: string | undefined;
|
|
1668
|
+
viewOnMap?: string | undefined;
|
|
1669
|
+
manageBooking?: string | undefined;
|
|
1670
|
+
} | undefined;
|
|
1671
|
+
};
|
|
1672
|
+
actions?: ({
|
|
1673
|
+
type: "url";
|
|
1674
|
+
label: string;
|
|
1675
|
+
url: string;
|
|
1676
|
+
} | {
|
|
1677
|
+
type: "call";
|
|
1678
|
+
label: string;
|
|
1679
|
+
phoneNumber: string;
|
|
1680
|
+
} | {
|
|
1681
|
+
type: "copy";
|
|
1682
|
+
label: string;
|
|
1683
|
+
code: string;
|
|
1684
|
+
})[] | undefined;
|
|
1685
|
+
} | {
|
|
1686
|
+
version?: 1 | undefined;
|
|
1687
|
+
body: string;
|
|
1688
|
+
footer?: string | undefined;
|
|
1689
|
+
type: "native";
|
|
1690
|
+
header?: {
|
|
1691
|
+
type: "text";
|
|
1692
|
+
text: string;
|
|
1693
|
+
} | {
|
|
1694
|
+
source: string;
|
|
1695
|
+
filename?: string | undefined;
|
|
1696
|
+
title?: string | undefined;
|
|
1697
|
+
type: "image";
|
|
1698
|
+
} | {
|
|
1699
|
+
source: string;
|
|
1700
|
+
filename?: string | undefined;
|
|
1701
|
+
title?: string | undefined;
|
|
1702
|
+
type: "video";
|
|
1703
|
+
} | {
|
|
1704
|
+
source: string;
|
|
1705
|
+
filename?: string | undefined;
|
|
1706
|
+
title?: string | undefined;
|
|
1707
|
+
type: "document";
|
|
1708
|
+
} | undefined;
|
|
1709
|
+
actions: {
|
|
1710
|
+
name: string;
|
|
1711
|
+
parameters?: Record<string, unknown> | undefined;
|
|
1712
|
+
}[];
|
|
1713
|
+
parameters?: Record<string, unknown> | undefined;
|
|
1714
|
+
};
|
|
1715
|
+
}] | [{
|
|
1716
|
+
to: string;
|
|
1717
|
+
content: {
|
|
1718
|
+
version?: 1 | undefined;
|
|
1719
|
+
body: string;
|
|
1720
|
+
footer?: string | undefined;
|
|
1721
|
+
type: "buttons";
|
|
1722
|
+
header?: {
|
|
1723
|
+
type: "text";
|
|
1724
|
+
text: string;
|
|
1725
|
+
} | {
|
|
1726
|
+
source: string;
|
|
1727
|
+
filename?: string | undefined;
|
|
1728
|
+
title?: string | undefined;
|
|
1729
|
+
type: "image";
|
|
1730
|
+
} | {
|
|
1731
|
+
source: string;
|
|
1732
|
+
filename?: string | undefined;
|
|
1733
|
+
title?: string | undefined;
|
|
1734
|
+
type: "video";
|
|
1735
|
+
} | {
|
|
1736
|
+
source: string;
|
|
1737
|
+
filename?: string | undefined;
|
|
1738
|
+
title?: string | undefined;
|
|
1739
|
+
type: "document";
|
|
1740
|
+
} | undefined;
|
|
1741
|
+
actions: ({
|
|
1742
|
+
type: "url";
|
|
1743
|
+
label: string;
|
|
1744
|
+
url: string;
|
|
1745
|
+
} | {
|
|
1746
|
+
type: "call";
|
|
1747
|
+
label: string;
|
|
1748
|
+
phoneNumber: string;
|
|
1749
|
+
} | {
|
|
1750
|
+
type: "copy";
|
|
1751
|
+
label: string;
|
|
1752
|
+
code: string;
|
|
1753
|
+
} | {
|
|
1754
|
+
type: "reply";
|
|
1755
|
+
id: string;
|
|
1756
|
+
label: string;
|
|
1757
|
+
})[];
|
|
1758
|
+
} | {
|
|
1759
|
+
version?: 1 | undefined;
|
|
1760
|
+
body: string;
|
|
1761
|
+
footer?: string | undefined;
|
|
1762
|
+
type: "list";
|
|
1763
|
+
title?: string | undefined;
|
|
1764
|
+
buttonLabel?: string | undefined;
|
|
1765
|
+
sections: {
|
|
1766
|
+
title?: string | undefined;
|
|
1767
|
+
rows: {
|
|
1768
|
+
id: string;
|
|
1769
|
+
title: string;
|
|
1770
|
+
description?: string | undefined;
|
|
1771
|
+
}[];
|
|
1772
|
+
}[];
|
|
1773
|
+
} | {
|
|
1774
|
+
version?: 1 | undefined;
|
|
1775
|
+
body: string;
|
|
1776
|
+
footer?: string | undefined;
|
|
1777
|
+
type: "form";
|
|
1778
|
+
title?: string | undefined;
|
|
1779
|
+
questions: {
|
|
1780
|
+
type: "multiSelect" | "singleSelect";
|
|
1781
|
+
id: string;
|
|
1782
|
+
label: string;
|
|
1783
|
+
options: {
|
|
1784
|
+
id: string;
|
|
1785
|
+
label: string;
|
|
1786
|
+
}[];
|
|
1787
|
+
allowCustomAnswer?: boolean | undefined;
|
|
1788
|
+
}[];
|
|
1789
|
+
} | {
|
|
1790
|
+
version?: 1 | undefined;
|
|
1791
|
+
body: string;
|
|
1792
|
+
footer?: string | undefined;
|
|
1793
|
+
type: "carousel";
|
|
1794
|
+
cards: {
|
|
1795
|
+
body: string;
|
|
1796
|
+
header: {
|
|
1797
|
+
source: string;
|
|
1798
|
+
filename?: string | undefined;
|
|
1799
|
+
title?: string | undefined;
|
|
1800
|
+
type: "image";
|
|
1801
|
+
};
|
|
1802
|
+
actions: ({
|
|
1803
|
+
type: "url";
|
|
1804
|
+
label: string;
|
|
1805
|
+
url: string;
|
|
1806
|
+
} | {
|
|
1807
|
+
type: "call";
|
|
1808
|
+
label: string;
|
|
1809
|
+
phoneNumber: string;
|
|
1810
|
+
} | {
|
|
1811
|
+
type: "copy";
|
|
1812
|
+
label: string;
|
|
1813
|
+
code: string;
|
|
1814
|
+
} | {
|
|
1815
|
+
type: "reply";
|
|
1816
|
+
id: string;
|
|
1817
|
+
label: string;
|
|
1818
|
+
})[];
|
|
1819
|
+
}[];
|
|
1820
|
+
} | {
|
|
1821
|
+
version?: 1 | undefined;
|
|
1822
|
+
body: string;
|
|
1823
|
+
footer?: string | undefined;
|
|
1824
|
+
type: "booking";
|
|
1825
|
+
title?: string | undefined;
|
|
1826
|
+
buttonLabel?: string | undefined;
|
|
1827
|
+
booking: {
|
|
1828
|
+
startAt: string;
|
|
1829
|
+
endAt?: string | undefined;
|
|
1830
|
+
location?: string | undefined;
|
|
1831
|
+
url?: string | undefined;
|
|
1832
|
+
managementUrl?: string | undefined;
|
|
1833
|
+
phoneNumber?: string | undefined;
|
|
1834
|
+
email?: string | undefined;
|
|
1835
|
+
description?: string | undefined;
|
|
1836
|
+
labels?: {
|
|
1837
|
+
language?: string | undefined;
|
|
1838
|
+
meetingType?: string | undefined;
|
|
1839
|
+
detailsTitle?: string | undefined;
|
|
1840
|
+
addToCalendar?: string | undefined;
|
|
1841
|
+
viewOnMap?: string | undefined;
|
|
1842
|
+
manageBooking?: string | undefined;
|
|
1843
|
+
} | undefined;
|
|
1844
|
+
};
|
|
1845
|
+
actions?: ({
|
|
1846
|
+
type: "url";
|
|
1847
|
+
label: string;
|
|
1848
|
+
url: string;
|
|
1849
|
+
} | {
|
|
1850
|
+
type: "call";
|
|
1851
|
+
label: string;
|
|
1852
|
+
phoneNumber: string;
|
|
1853
|
+
} | {
|
|
1854
|
+
type: "copy";
|
|
1855
|
+
label: string;
|
|
1856
|
+
code: string;
|
|
1857
|
+
})[] | undefined;
|
|
1858
|
+
} | {
|
|
1859
|
+
version?: 1 | undefined;
|
|
1860
|
+
body: string;
|
|
1861
|
+
footer?: string | undefined;
|
|
1862
|
+
type: "native";
|
|
1863
|
+
header?: {
|
|
1864
|
+
type: "text";
|
|
1865
|
+
text: string;
|
|
1866
|
+
} | {
|
|
1867
|
+
source: string;
|
|
1868
|
+
filename?: string | undefined;
|
|
1869
|
+
title?: string | undefined;
|
|
1870
|
+
type: "image";
|
|
1871
|
+
} | {
|
|
1872
|
+
source: string;
|
|
1873
|
+
filename?: string | undefined;
|
|
1874
|
+
title?: string | undefined;
|
|
1875
|
+
type: "video";
|
|
1876
|
+
} | {
|
|
1877
|
+
source: string;
|
|
1878
|
+
filename?: string | undefined;
|
|
1879
|
+
title?: string | undefined;
|
|
1880
|
+
type: "document";
|
|
1881
|
+
} | undefined;
|
|
1882
|
+
actions: {
|
|
1883
|
+
name: string;
|
|
1884
|
+
parameters?: Record<string, unknown> | undefined;
|
|
1885
|
+
}[];
|
|
1886
|
+
parameters?: Record<string, unknown> | undefined;
|
|
1887
|
+
};
|
|
1888
|
+
}, ...unknown[]]) => Promise<string>;
|
|
1889
|
+
sendRawMessage: (...args: any[] | unknown[] | [] | [{
|
|
1890
|
+
to: string;
|
|
1891
|
+
payload: Record<string, unknown>;
|
|
1892
|
+
}] | [{
|
|
1893
|
+
to: string;
|
|
1894
|
+
payload: Record<string, unknown>;
|
|
1895
|
+
}, ...unknown[]]) => Promise<string>;
|
|
1540
1896
|
sendVoiceNote: (...args: any[] | unknown[] | [] | [{
|
|
1541
1897
|
to: string;
|
|
1542
1898
|
file: string | Buffer<ArrayBufferLike>;
|
|
@@ -2961,6 +3317,353 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
|
|
|
2961
3317
|
[x: string]: unknown;
|
|
2962
3318
|
_serialized: string;
|
|
2963
3319
|
}>;
|
|
3320
|
+
sendInteractive: (...args: any[] | unknown[] | [] | [{
|
|
3321
|
+
to: string;
|
|
3322
|
+
content: {
|
|
3323
|
+
version?: 1 | undefined;
|
|
3324
|
+
body: string;
|
|
3325
|
+
footer?: string | undefined;
|
|
3326
|
+
type: "buttons";
|
|
3327
|
+
header?: {
|
|
3328
|
+
type: "text";
|
|
3329
|
+
text: string;
|
|
3330
|
+
} | {
|
|
3331
|
+
source: string;
|
|
3332
|
+
filename?: string | undefined;
|
|
3333
|
+
title?: string | undefined;
|
|
3334
|
+
type: "image";
|
|
3335
|
+
} | {
|
|
3336
|
+
source: string;
|
|
3337
|
+
filename?: string | undefined;
|
|
3338
|
+
title?: string | undefined;
|
|
3339
|
+
type: "video";
|
|
3340
|
+
} | {
|
|
3341
|
+
source: string;
|
|
3342
|
+
filename?: string | undefined;
|
|
3343
|
+
title?: string | undefined;
|
|
3344
|
+
type: "document";
|
|
3345
|
+
} | undefined;
|
|
3346
|
+
actions: ({
|
|
3347
|
+
type: "url";
|
|
3348
|
+
label: string;
|
|
3349
|
+
url: string;
|
|
3350
|
+
} | {
|
|
3351
|
+
type: "call";
|
|
3352
|
+
label: string;
|
|
3353
|
+
phoneNumber: string;
|
|
3354
|
+
} | {
|
|
3355
|
+
type: "copy";
|
|
3356
|
+
label: string;
|
|
3357
|
+
code: string;
|
|
3358
|
+
} | {
|
|
3359
|
+
type: "reply";
|
|
3360
|
+
id: string;
|
|
3361
|
+
label: string;
|
|
3362
|
+
})[];
|
|
3363
|
+
} | {
|
|
3364
|
+
version?: 1 | undefined;
|
|
3365
|
+
body: string;
|
|
3366
|
+
footer?: string | undefined;
|
|
3367
|
+
type: "list";
|
|
3368
|
+
title?: string | undefined;
|
|
3369
|
+
buttonLabel?: string | undefined;
|
|
3370
|
+
sections: {
|
|
3371
|
+
title?: string | undefined;
|
|
3372
|
+
rows: {
|
|
3373
|
+
id: string;
|
|
3374
|
+
title: string;
|
|
3375
|
+
description?: string | undefined;
|
|
3376
|
+
}[];
|
|
3377
|
+
}[];
|
|
3378
|
+
} | {
|
|
3379
|
+
version?: 1 | undefined;
|
|
3380
|
+
body: string;
|
|
3381
|
+
footer?: string | undefined;
|
|
3382
|
+
type: "form";
|
|
3383
|
+
title?: string | undefined;
|
|
3384
|
+
questions: {
|
|
3385
|
+
type: "multiSelect" | "singleSelect";
|
|
3386
|
+
id: string;
|
|
3387
|
+
label: string;
|
|
3388
|
+
options: {
|
|
3389
|
+
id: string;
|
|
3390
|
+
label: string;
|
|
3391
|
+
}[];
|
|
3392
|
+
allowCustomAnswer?: boolean | undefined;
|
|
3393
|
+
}[];
|
|
3394
|
+
} | {
|
|
3395
|
+
version?: 1 | undefined;
|
|
3396
|
+
body: string;
|
|
3397
|
+
footer?: string | undefined;
|
|
3398
|
+
type: "carousel";
|
|
3399
|
+
cards: {
|
|
3400
|
+
body: string;
|
|
3401
|
+
header: {
|
|
3402
|
+
source: string;
|
|
3403
|
+
filename?: string | undefined;
|
|
3404
|
+
title?: string | undefined;
|
|
3405
|
+
type: "image";
|
|
3406
|
+
};
|
|
3407
|
+
actions: ({
|
|
3408
|
+
type: "url";
|
|
3409
|
+
label: string;
|
|
3410
|
+
url: string;
|
|
3411
|
+
} | {
|
|
3412
|
+
type: "call";
|
|
3413
|
+
label: string;
|
|
3414
|
+
phoneNumber: string;
|
|
3415
|
+
} | {
|
|
3416
|
+
type: "copy";
|
|
3417
|
+
label: string;
|
|
3418
|
+
code: string;
|
|
3419
|
+
} | {
|
|
3420
|
+
type: "reply";
|
|
3421
|
+
id: string;
|
|
3422
|
+
label: string;
|
|
3423
|
+
})[];
|
|
3424
|
+
}[];
|
|
3425
|
+
} | {
|
|
3426
|
+
version?: 1 | undefined;
|
|
3427
|
+
body: string;
|
|
3428
|
+
footer?: string | undefined;
|
|
3429
|
+
type: "booking";
|
|
3430
|
+
title?: string | undefined;
|
|
3431
|
+
buttonLabel?: string | undefined;
|
|
3432
|
+
booking: {
|
|
3433
|
+
startAt: string;
|
|
3434
|
+
endAt?: string | undefined;
|
|
3435
|
+
location?: string | undefined;
|
|
3436
|
+
url?: string | undefined;
|
|
3437
|
+
managementUrl?: string | undefined;
|
|
3438
|
+
phoneNumber?: string | undefined;
|
|
3439
|
+
email?: string | undefined;
|
|
3440
|
+
description?: string | undefined;
|
|
3441
|
+
labels?: {
|
|
3442
|
+
language?: string | undefined;
|
|
3443
|
+
meetingType?: string | undefined;
|
|
3444
|
+
detailsTitle?: string | undefined;
|
|
3445
|
+
addToCalendar?: string | undefined;
|
|
3446
|
+
viewOnMap?: string | undefined;
|
|
3447
|
+
manageBooking?: string | undefined;
|
|
3448
|
+
} | undefined;
|
|
3449
|
+
};
|
|
3450
|
+
actions?: ({
|
|
3451
|
+
type: "url";
|
|
3452
|
+
label: string;
|
|
3453
|
+
url: string;
|
|
3454
|
+
} | {
|
|
3455
|
+
type: "call";
|
|
3456
|
+
label: string;
|
|
3457
|
+
phoneNumber: string;
|
|
3458
|
+
} | {
|
|
3459
|
+
type: "copy";
|
|
3460
|
+
label: string;
|
|
3461
|
+
code: string;
|
|
3462
|
+
})[] | undefined;
|
|
3463
|
+
} | {
|
|
3464
|
+
version?: 1 | undefined;
|
|
3465
|
+
body: string;
|
|
3466
|
+
footer?: string | undefined;
|
|
3467
|
+
type: "native";
|
|
3468
|
+
header?: {
|
|
3469
|
+
type: "text";
|
|
3470
|
+
text: string;
|
|
3471
|
+
} | {
|
|
3472
|
+
source: string;
|
|
3473
|
+
filename?: string | undefined;
|
|
3474
|
+
title?: string | undefined;
|
|
3475
|
+
type: "image";
|
|
3476
|
+
} | {
|
|
3477
|
+
source: string;
|
|
3478
|
+
filename?: string | undefined;
|
|
3479
|
+
title?: string | undefined;
|
|
3480
|
+
type: "video";
|
|
3481
|
+
} | {
|
|
3482
|
+
source: string;
|
|
3483
|
+
filename?: string | undefined;
|
|
3484
|
+
title?: string | undefined;
|
|
3485
|
+
type: "document";
|
|
3486
|
+
} | undefined;
|
|
3487
|
+
actions: {
|
|
3488
|
+
name: string;
|
|
3489
|
+
parameters?: Record<string, unknown> | undefined;
|
|
3490
|
+
}[];
|
|
3491
|
+
parameters?: Record<string, unknown> | undefined;
|
|
3492
|
+
};
|
|
3493
|
+
}] | [{
|
|
3494
|
+
to: string;
|
|
3495
|
+
content: {
|
|
3496
|
+
version?: 1 | undefined;
|
|
3497
|
+
body: string;
|
|
3498
|
+
footer?: string | undefined;
|
|
3499
|
+
type: "buttons";
|
|
3500
|
+
header?: {
|
|
3501
|
+
type: "text";
|
|
3502
|
+
text: string;
|
|
3503
|
+
} | {
|
|
3504
|
+
source: string;
|
|
3505
|
+
filename?: string | undefined;
|
|
3506
|
+
title?: string | undefined;
|
|
3507
|
+
type: "image";
|
|
3508
|
+
} | {
|
|
3509
|
+
source: string;
|
|
3510
|
+
filename?: string | undefined;
|
|
3511
|
+
title?: string | undefined;
|
|
3512
|
+
type: "video";
|
|
3513
|
+
} | {
|
|
3514
|
+
source: string;
|
|
3515
|
+
filename?: string | undefined;
|
|
3516
|
+
title?: string | undefined;
|
|
3517
|
+
type: "document";
|
|
3518
|
+
} | undefined;
|
|
3519
|
+
actions: ({
|
|
3520
|
+
type: "url";
|
|
3521
|
+
label: string;
|
|
3522
|
+
url: string;
|
|
3523
|
+
} | {
|
|
3524
|
+
type: "call";
|
|
3525
|
+
label: string;
|
|
3526
|
+
phoneNumber: string;
|
|
3527
|
+
} | {
|
|
3528
|
+
type: "copy";
|
|
3529
|
+
label: string;
|
|
3530
|
+
code: string;
|
|
3531
|
+
} | {
|
|
3532
|
+
type: "reply";
|
|
3533
|
+
id: string;
|
|
3534
|
+
label: string;
|
|
3535
|
+
})[];
|
|
3536
|
+
} | {
|
|
3537
|
+
version?: 1 | undefined;
|
|
3538
|
+
body: string;
|
|
3539
|
+
footer?: string | undefined;
|
|
3540
|
+
type: "list";
|
|
3541
|
+
title?: string | undefined;
|
|
3542
|
+
buttonLabel?: string | undefined;
|
|
3543
|
+
sections: {
|
|
3544
|
+
title?: string | undefined;
|
|
3545
|
+
rows: {
|
|
3546
|
+
id: string;
|
|
3547
|
+
title: string;
|
|
3548
|
+
description?: string | undefined;
|
|
3549
|
+
}[];
|
|
3550
|
+
}[];
|
|
3551
|
+
} | {
|
|
3552
|
+
version?: 1 | undefined;
|
|
3553
|
+
body: string;
|
|
3554
|
+
footer?: string | undefined;
|
|
3555
|
+
type: "form";
|
|
3556
|
+
title?: string | undefined;
|
|
3557
|
+
questions: {
|
|
3558
|
+
type: "multiSelect" | "singleSelect";
|
|
3559
|
+
id: string;
|
|
3560
|
+
label: string;
|
|
3561
|
+
options: {
|
|
3562
|
+
id: string;
|
|
3563
|
+
label: string;
|
|
3564
|
+
}[];
|
|
3565
|
+
allowCustomAnswer?: boolean | undefined;
|
|
3566
|
+
}[];
|
|
3567
|
+
} | {
|
|
3568
|
+
version?: 1 | undefined;
|
|
3569
|
+
body: string;
|
|
3570
|
+
footer?: string | undefined;
|
|
3571
|
+
type: "carousel";
|
|
3572
|
+
cards: {
|
|
3573
|
+
body: string;
|
|
3574
|
+
header: {
|
|
3575
|
+
source: string;
|
|
3576
|
+
filename?: string | undefined;
|
|
3577
|
+
title?: string | undefined;
|
|
3578
|
+
type: "image";
|
|
3579
|
+
};
|
|
3580
|
+
actions: ({
|
|
3581
|
+
type: "url";
|
|
3582
|
+
label: string;
|
|
3583
|
+
url: string;
|
|
3584
|
+
} | {
|
|
3585
|
+
type: "call";
|
|
3586
|
+
label: string;
|
|
3587
|
+
phoneNumber: string;
|
|
3588
|
+
} | {
|
|
3589
|
+
type: "copy";
|
|
3590
|
+
label: string;
|
|
3591
|
+
code: string;
|
|
3592
|
+
} | {
|
|
3593
|
+
type: "reply";
|
|
3594
|
+
id: string;
|
|
3595
|
+
label: string;
|
|
3596
|
+
})[];
|
|
3597
|
+
}[];
|
|
3598
|
+
} | {
|
|
3599
|
+
version?: 1 | undefined;
|
|
3600
|
+
body: string;
|
|
3601
|
+
footer?: string | undefined;
|
|
3602
|
+
type: "booking";
|
|
3603
|
+
title?: string | undefined;
|
|
3604
|
+
buttonLabel?: string | undefined;
|
|
3605
|
+
booking: {
|
|
3606
|
+
startAt: string;
|
|
3607
|
+
endAt?: string | undefined;
|
|
3608
|
+
location?: string | undefined;
|
|
3609
|
+
url?: string | undefined;
|
|
3610
|
+
managementUrl?: string | undefined;
|
|
3611
|
+
phoneNumber?: string | undefined;
|
|
3612
|
+
email?: string | undefined;
|
|
3613
|
+
description?: string | undefined;
|
|
3614
|
+
labels?: {
|
|
3615
|
+
language?: string | undefined;
|
|
3616
|
+
meetingType?: string | undefined;
|
|
3617
|
+
detailsTitle?: string | undefined;
|
|
3618
|
+
addToCalendar?: string | undefined;
|
|
3619
|
+
viewOnMap?: string | undefined;
|
|
3620
|
+
manageBooking?: string | undefined;
|
|
3621
|
+
} | undefined;
|
|
3622
|
+
};
|
|
3623
|
+
actions?: ({
|
|
3624
|
+
type: "url";
|
|
3625
|
+
label: string;
|
|
3626
|
+
url: string;
|
|
3627
|
+
} | {
|
|
3628
|
+
type: "call";
|
|
3629
|
+
label: string;
|
|
3630
|
+
phoneNumber: string;
|
|
3631
|
+
} | {
|
|
3632
|
+
type: "copy";
|
|
3633
|
+
label: string;
|
|
3634
|
+
code: string;
|
|
3635
|
+
})[] | undefined;
|
|
3636
|
+
} | {
|
|
3637
|
+
version?: 1 | undefined;
|
|
3638
|
+
body: string;
|
|
3639
|
+
footer?: string | undefined;
|
|
3640
|
+
type: "native";
|
|
3641
|
+
header?: {
|
|
3642
|
+
type: "text";
|
|
3643
|
+
text: string;
|
|
3644
|
+
} | {
|
|
3645
|
+
source: string;
|
|
3646
|
+
filename?: string | undefined;
|
|
3647
|
+
title?: string | undefined;
|
|
3648
|
+
type: "image";
|
|
3649
|
+
} | {
|
|
3650
|
+
source: string;
|
|
3651
|
+
filename?: string | undefined;
|
|
3652
|
+
title?: string | undefined;
|
|
3653
|
+
type: "video";
|
|
3654
|
+
} | {
|
|
3655
|
+
source: string;
|
|
3656
|
+
filename?: string | undefined;
|
|
3657
|
+
title?: string | undefined;
|
|
3658
|
+
type: "document";
|
|
3659
|
+
} | undefined;
|
|
3660
|
+
actions: {
|
|
3661
|
+
name: string;
|
|
3662
|
+
parameters?: Record<string, unknown> | undefined;
|
|
3663
|
+
}[];
|
|
3664
|
+
parameters?: Record<string, unknown> | undefined;
|
|
3665
|
+
};
|
|
3666
|
+
}, ...unknown[]]) => Promise<string>;
|
|
2964
3667
|
sendLink: (...args: any[] | unknown[] | [] | [{
|
|
2965
3668
|
to: string;
|
|
2966
3669
|
url: string;
|
|
@@ -3121,6 +3824,13 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
|
|
|
3121
3824
|
[x: string]: unknown;
|
|
3122
3825
|
_serialized: string;
|
|
3123
3826
|
}>;
|
|
3827
|
+
sendRaw: (...args: any[] | unknown[] | [] | [{
|
|
3828
|
+
to: string;
|
|
3829
|
+
payload: Record<string, unknown>;
|
|
3830
|
+
}] | [{
|
|
3831
|
+
to: string;
|
|
3832
|
+
payload: Record<string, unknown>;
|
|
3833
|
+
}, ...unknown[]]) => Promise<string>;
|
|
3124
3834
|
sendReplyWithMentions: (...args: any[] | unknown[] | [] | [{
|
|
3125
3835
|
to: string;
|
|
3126
3836
|
content: string;
|
|
@@ -3668,5 +4378,9 @@ export type DecryptMediaInput = Zod.input<typeof decryptMedia.openWAInput>;
|
|
|
3668
4378
|
export type DecryptMediaOutput = Zod.output<typeof decryptMedia.openWAOutput>;
|
|
3669
4379
|
export type DownloadMediaInput = Zod.input<typeof downloadMedia.openWAInput>;
|
|
3670
4380
|
export type DownloadMediaOutput = Zod.output<typeof downloadMedia.openWAOutput>;
|
|
4381
|
+
export type SendInteractiveInput = Zod.input<typeof sendInteractive.openWAInput>;
|
|
4382
|
+
export type SendInteractiveOutput = Zod.output<typeof sendInteractive.openWAOutput>;
|
|
4383
|
+
export type SendRawMessageInput = Zod.input<typeof sendRawMessage.openWAInput>;
|
|
4384
|
+
export type SendRawMessageOutput = Zod.output<typeof sendRawMessage.openWAOutput>;
|
|
3671
4385
|
//#endregion
|
|
3672
4386
|
//# sourceMappingURL=index.d.cts.map
|