@nam088/zca-js 1.0.1 → 3.0.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/CODE_OF_CONDUCT.md +37 -36
- package/CONTRIBUTING.md +162 -154
- package/README.md +22 -22
- package/SECURITY.md +25 -20
- package/dist/index.cjs +3424 -3275
- package/dist/index.d.cts +1292 -1292
- package/dist/index.d.ts +1292 -1292
- package/dist/index.js +3244 -3108
- package/{eslint.config.mjs → eslint.config.js} +0 -6
- package/package.json +17 -25
- package/tsup.config.ts +11 -43
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.min.cjs +0 -5
- package/dist/index.min.cjs.map +0 -1
- package/dist/index.min.js +0 -5
- package/dist/index.min.js.map +0 -1
- package/index.d.ts +0 -2
- package/qr.png +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1583,355 +1583,384 @@ declare class Listener extends EventEmitter<ListenerEvents> {
|
|
|
1583
1583
|
private reset;
|
|
1584
1584
|
}
|
|
1585
1585
|
|
|
1586
|
-
type
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
type AddPollOptionsOption = {
|
|
1596
|
-
voted: boolean;
|
|
1597
|
-
content: string;
|
|
1586
|
+
type ListReminderOptions = {
|
|
1587
|
+
/**
|
|
1588
|
+
* Page number (default: 1)
|
|
1589
|
+
*/
|
|
1590
|
+
page?: number;
|
|
1591
|
+
/**
|
|
1592
|
+
* Number of items to retrieve (default: 20)
|
|
1593
|
+
*/
|
|
1594
|
+
count?: number;
|
|
1598
1595
|
};
|
|
1599
|
-
type
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1596
|
+
type ReminderListUser = ReminderUser;
|
|
1597
|
+
type ReminderListGroup = ReminderGroup & {
|
|
1598
|
+
groupId: string;
|
|
1599
|
+
eventType: number;
|
|
1600
|
+
responseMem: {
|
|
1601
|
+
rejectMember: number;
|
|
1602
|
+
myResp: number;
|
|
1603
|
+
acceptMember: number;
|
|
1604
|
+
};
|
|
1605
|
+
repeatInfo: {
|
|
1606
|
+
list_ts: unknown[];
|
|
1607
|
+
};
|
|
1608
|
+
repeatData: unknown[];
|
|
1603
1609
|
};
|
|
1604
|
-
type
|
|
1605
|
-
|
|
1610
|
+
type GetListReminderResponse = (ReminderListUser & ReminderListGroup)[];
|
|
1611
|
+
declare const getListReminderFactory: (ctx: ContextBase, api: API) => (options: ListReminderOptions, threadId: string, type?: ThreadType) => Promise<GetListReminderResponse>;
|
|
1612
|
+
|
|
1613
|
+
type RemoveUserFromGroupResponse = {
|
|
1614
|
+
errorMembers: string[];
|
|
1606
1615
|
};
|
|
1607
|
-
declare const
|
|
1616
|
+
declare const removeUserFromGroupFactory: (ctx: ContextBase, api: API) => (memberId: string | string[], groupId: string) => Promise<RemoveUserFromGroupResponse>;
|
|
1608
1617
|
|
|
1609
|
-
type
|
|
1610
|
-
keyword: string;
|
|
1618
|
+
type CreateReminderOptions = {
|
|
1611
1619
|
title: string;
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
item: QuickMessage;
|
|
1616
|
-
version: number;
|
|
1620
|
+
emoji?: string;
|
|
1621
|
+
startTime?: number;
|
|
1622
|
+
repeat?: ReminderRepeatMode;
|
|
1617
1623
|
};
|
|
1618
|
-
|
|
1624
|
+
type CreateReminderUser = ReminderUser;
|
|
1625
|
+
type CreateReminderGroup = Omit<ReminderGroup, "responseMem">;
|
|
1626
|
+
type CreateReminderResponse = CreateReminderUser | CreateReminderGroup;
|
|
1627
|
+
declare const createReminderFactory: (ctx: ContextBase, api: API) => (options: CreateReminderOptions, threadId: string, type?: ThreadType) => Promise<CreateReminderResponse>;
|
|
1619
1628
|
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
cliMsgId: string;
|
|
1632
|
-
};
|
|
1633
|
-
threadId: string;
|
|
1634
|
-
type: ThreadType;
|
|
1629
|
+
declare enum ReportReason {
|
|
1630
|
+
Sensitive = 1,
|
|
1631
|
+
Annoy = 2,
|
|
1632
|
+
Fraud = 3,
|
|
1633
|
+
Other = 0
|
|
1634
|
+
}
|
|
1635
|
+
type SendReportOptions = {
|
|
1636
|
+
reason: ReportReason.Other;
|
|
1637
|
+
content: string;
|
|
1638
|
+
} | {
|
|
1639
|
+
reason: Exclude<ReportReason, ReportReason.Other>;
|
|
1635
1640
|
};
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
type AddUnreadMarkResponse = {
|
|
1639
|
-
data: {
|
|
1640
|
-
updateId: number;
|
|
1641
|
-
};
|
|
1642
|
-
status: number;
|
|
1641
|
+
type SendReportResponse = {
|
|
1642
|
+
reportId: string;
|
|
1643
1643
|
};
|
|
1644
|
-
declare const
|
|
1644
|
+
declare const sendReportFactory: (ctx: ContextBase, api: API) => (options: SendReportOptions, threadId: string, type?: ThreadType) => Promise<SendReportResponse>;
|
|
1645
1645
|
|
|
1646
|
-
type
|
|
1647
|
-
|
|
1648
|
-
|
|
1646
|
+
type GetGroupInviteBoxListPayload = {
|
|
1647
|
+
mpage?: number;
|
|
1648
|
+
page?: number;
|
|
1649
|
+
invPerPage?: number;
|
|
1650
|
+
mcount?: number;
|
|
1649
1651
|
};
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1652
|
+
type GetGroupInviteBoxListResponse = {
|
|
1653
|
+
invitations: {
|
|
1654
|
+
groupInfo: GroupInfo;
|
|
1655
|
+
inviterInfo: {
|
|
1656
|
+
id: string;
|
|
1657
|
+
dName: string;
|
|
1658
|
+
zaloName: string;
|
|
1659
|
+
avatar: string;
|
|
1660
|
+
avatar_25: string;
|
|
1661
|
+
accountStatus: number;
|
|
1662
|
+
type: number;
|
|
1663
|
+
};
|
|
1664
|
+
grCreatorInfo: {
|
|
1665
|
+
id: string;
|
|
1666
|
+
dName: string;
|
|
1667
|
+
zaloName: string;
|
|
1668
|
+
avatar: string;
|
|
1669
|
+
avatar_25: string;
|
|
1670
|
+
accountStatus: number;
|
|
1671
|
+
type: number;
|
|
1672
|
+
};
|
|
1673
|
+
/**
|
|
1674
|
+
* Expired timestamp max 7 days
|
|
1675
|
+
*/
|
|
1676
|
+
expiredTs: string;
|
|
1677
|
+
type: number;
|
|
1678
|
+
}[];
|
|
1679
|
+
total: number;
|
|
1680
|
+
hasMore: boolean;
|
|
1669
1681
|
};
|
|
1670
|
-
declare const
|
|
1682
|
+
declare const getGroupInviteBoxListFactory: (ctx: ContextBase, api: API) => (payload?: GetGroupInviteBoxListPayload) => Promise<GetGroupInviteBoxListResponse>;
|
|
1671
1683
|
|
|
1672
|
-
type
|
|
1673
|
-
|
|
1684
|
+
type SetMuteParams = {
|
|
1685
|
+
/**
|
|
1686
|
+
* Mute duration in seconds or predefined durations
|
|
1687
|
+
*/
|
|
1688
|
+
duration?: MuteDuration | number;
|
|
1689
|
+
action?: MuteAction;
|
|
1674
1690
|
};
|
|
1675
|
-
|
|
1691
|
+
type SetMuteResponse = "";
|
|
1692
|
+
declare enum MuteDuration {
|
|
1693
|
+
ONE_HOUR = 3600,
|
|
1694
|
+
FOUR_HOURS = 14400,
|
|
1695
|
+
FOREVER = -1,
|
|
1696
|
+
UNTIL_8AM = "until8AM"
|
|
1697
|
+
}
|
|
1698
|
+
declare enum MuteAction {
|
|
1699
|
+
MUTE = 1,
|
|
1700
|
+
UNMUTE = 3
|
|
1701
|
+
}
|
|
1702
|
+
declare const setMuteFactory: (ctx: ContextBase, api: API) => (params: SetMuteParams | undefined, threadID: string, type?: ThreadType) => Promise<"">;
|
|
1676
1703
|
|
|
1677
|
-
type
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1704
|
+
type ListBoardOptions = {
|
|
1705
|
+
/**
|
|
1706
|
+
* Page number (default: 1)
|
|
1707
|
+
*/
|
|
1708
|
+
page?: number;
|
|
1709
|
+
/**
|
|
1710
|
+
* Number of items to retrieve (default: 20)
|
|
1711
|
+
*/
|
|
1712
|
+
count?: number;
|
|
1684
1713
|
};
|
|
1685
|
-
type
|
|
1686
|
-
|
|
1687
|
-
|
|
1714
|
+
type BoardItem = {
|
|
1715
|
+
boardType: BoardType;
|
|
1716
|
+
data: PollDetail | NoteDetail | PinnedMessageDetail;
|
|
1688
1717
|
};
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
item: CatalogItem;
|
|
1693
|
-
version_ls_catalog: number;
|
|
1694
|
-
version_catalog: number;
|
|
1718
|
+
type GetListBoardResponse = {
|
|
1719
|
+
items: BoardItem[];
|
|
1720
|
+
count: number;
|
|
1695
1721
|
};
|
|
1696
|
-
declare const
|
|
1722
|
+
declare const getListBoardFactory: (ctx: ContextBase, api: API) => (options: ListBoardOptions, groupId: string) => Promise<GetListBoardResponse>;
|
|
1697
1723
|
|
|
1698
|
-
type
|
|
1699
|
-
|
|
1700
|
-
sucessMembers: string[];
|
|
1701
|
-
groupId: string;
|
|
1702
|
-
errorMembers: string[];
|
|
1703
|
-
error_data: Record<string, unknown>;
|
|
1724
|
+
type DeleteChatResponse = {
|
|
1725
|
+
status: number;
|
|
1704
1726
|
};
|
|
1705
|
-
type
|
|
1706
|
-
/**
|
|
1707
|
-
* Group name
|
|
1708
|
-
*/
|
|
1709
|
-
name?: string;
|
|
1727
|
+
type DeleteChatLastMessage = {
|
|
1710
1728
|
/**
|
|
1711
|
-
*
|
|
1729
|
+
* Last message owner ID to delete backwards
|
|
1712
1730
|
*/
|
|
1713
|
-
|
|
1731
|
+
ownerId: string;
|
|
1714
1732
|
/**
|
|
1715
|
-
*
|
|
1733
|
+
* Last message client ID to delete backwards
|
|
1716
1734
|
*/
|
|
1717
|
-
|
|
1735
|
+
cliMsgId: string;
|
|
1718
1736
|
/**
|
|
1719
|
-
*
|
|
1720
|
-
* @deprecated Use `avatarSource` instead
|
|
1737
|
+
* Last message global ID to delete backwards
|
|
1721
1738
|
*/
|
|
1722
|
-
|
|
1739
|
+
globalMsgId: string;
|
|
1723
1740
|
};
|
|
1724
|
-
declare const
|
|
1741
|
+
declare const deleteChatFactory: (ctx: ContextBase, api: API) => (lastMessage: DeleteChatLastMessage, threadId: string, type?: ThreadType) => Promise<DeleteChatResponse>;
|
|
1725
1742
|
|
|
1726
|
-
type
|
|
1727
|
-
|
|
1728
|
-
pinAct?: boolean;
|
|
1743
|
+
type ChangeGroupNameResponse = {
|
|
1744
|
+
status: number;
|
|
1729
1745
|
};
|
|
1730
|
-
|
|
1731
|
-
declare const createNoteFactory: (ctx: ContextBase, api: API) => (options: CreateNoteOptions, groupId: string) => Promise<NoteDetail>;
|
|
1746
|
+
declare const changeGroupNameFactory: (ctx: ContextBase, api: API) => (name: string, groupId: string) => Promise<ChangeGroupNameResponse>;
|
|
1732
1747
|
|
|
1733
|
-
|
|
1734
|
-
* Options for creating a poll.
|
|
1735
|
-
*/
|
|
1736
|
-
type CreatePollOptions = {
|
|
1748
|
+
type UpdateGroupSettingsOptions = {
|
|
1737
1749
|
/**
|
|
1738
|
-
*
|
|
1750
|
+
* Disallow group members to change the group name and avatar
|
|
1739
1751
|
*/
|
|
1740
|
-
|
|
1752
|
+
blockName?: boolean;
|
|
1741
1753
|
/**
|
|
1742
|
-
*
|
|
1754
|
+
* Highlight messages from owner/admins
|
|
1743
1755
|
*/
|
|
1744
|
-
|
|
1756
|
+
signAdminMsg?: boolean;
|
|
1745
1757
|
/**
|
|
1746
|
-
*
|
|
1758
|
+
* Don't pin messages, notes, and polls to the top of a conversation
|
|
1747
1759
|
*/
|
|
1748
|
-
|
|
1760
|
+
setTopicOnly?: boolean;
|
|
1749
1761
|
/**
|
|
1750
|
-
*
|
|
1762
|
+
* Allow new members to read most recent messages
|
|
1751
1763
|
*/
|
|
1752
|
-
|
|
1764
|
+
enableMsgHistory?: boolean;
|
|
1753
1765
|
/**
|
|
1754
|
-
*
|
|
1766
|
+
* Membership approval
|
|
1755
1767
|
*/
|
|
1756
|
-
|
|
1768
|
+
joinAppr?: boolean;
|
|
1757
1769
|
/**
|
|
1758
|
-
*
|
|
1770
|
+
* Disallow group members to create notes & reminders
|
|
1759
1771
|
*/
|
|
1760
|
-
|
|
1772
|
+
lockCreatePost?: boolean;
|
|
1761
1773
|
/**
|
|
1762
|
-
*
|
|
1774
|
+
* Disallow group members to create polls
|
|
1763
1775
|
*/
|
|
1764
|
-
|
|
1765
|
-
};
|
|
1766
|
-
type CreatePollResponse = PollDetail;
|
|
1767
|
-
declare const createPollFactory: (ctx: ContextBase, api: API) => (options: CreatePollOptions, groupId: string) => Promise<PollDetail>;
|
|
1768
|
-
|
|
1769
|
-
type CreateProductCatalogPayload = {
|
|
1770
|
-
catalogId: string;
|
|
1771
|
-
productName: string;
|
|
1772
|
-
price: string;
|
|
1773
|
-
description: string;
|
|
1776
|
+
lockCreatePoll?: boolean;
|
|
1774
1777
|
/**
|
|
1775
|
-
*
|
|
1778
|
+
* Disallow group members to send messages
|
|
1776
1779
|
*/
|
|
1777
|
-
|
|
1780
|
+
lockSendMsg?: boolean;
|
|
1778
1781
|
/**
|
|
1779
|
-
*
|
|
1780
|
-
*
|
|
1781
|
-
* You can manually get the URL using `uploadProductPhoto` api
|
|
1782
|
+
* Disallow group members to view full member list (community only)
|
|
1782
1783
|
*/
|
|
1783
|
-
|
|
1784
|
+
lockViewMember?: boolean;
|
|
1784
1785
|
};
|
|
1785
|
-
type
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1786
|
+
type UpdateGroupSettingsResponse = "";
|
|
1787
|
+
declare const updateGroupSettingsFactory: (ctx: ContextBase, api: API) => (options: UpdateGroupSettingsOptions, groupId: string) => Promise<"">;
|
|
1788
|
+
|
|
1789
|
+
type AddPollOptionsOption = {
|
|
1790
|
+
voted: boolean;
|
|
1791
|
+
content: string;
|
|
1789
1792
|
};
|
|
1790
|
-
|
|
1793
|
+
type AddPollOptionsPayload = {
|
|
1794
|
+
pollId: number;
|
|
1795
|
+
options: AddPollOptionsOption[];
|
|
1796
|
+
votedOptionIds: number[];
|
|
1797
|
+
};
|
|
1798
|
+
type AddPollOptionsResponse = {
|
|
1799
|
+
options: PollOptions[];
|
|
1800
|
+
};
|
|
1801
|
+
declare const addPollOptionsFactory: (ctx: ContextBase, api: API) => (payload: AddPollOptionsPayload) => Promise<AddPollOptionsResponse>;
|
|
1791
1802
|
|
|
1792
|
-
type
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
startTime?: number;
|
|
1796
|
-
repeat?: ReminderRepeatMode;
|
|
1803
|
+
type GetReminderResponsesResponse = {
|
|
1804
|
+
rejectMember: string[];
|
|
1805
|
+
acceptMember: string[];
|
|
1797
1806
|
};
|
|
1798
|
-
|
|
1799
|
-
type CreateReminderGroup = Omit<ReminderGroup, "responseMem">;
|
|
1800
|
-
type CreateReminderResponse = CreateReminderUser | CreateReminderGroup;
|
|
1801
|
-
declare const createReminderFactory: (ctx: ContextBase, api: API) => (options: CreateReminderOptions, threadId: string, type?: ThreadType) => Promise<CreateReminderResponse>;
|
|
1807
|
+
declare const getReminderResponsesFactory: (ctx: ContextBase, api: API) => (reminderId: string) => Promise<GetReminderResponsesResponse>;
|
|
1802
1808
|
|
|
1803
|
-
type
|
|
1804
|
-
|
|
1805
|
-
|
|
1809
|
+
type MuteEntriesInfo = {
|
|
1810
|
+
id: string;
|
|
1811
|
+
duration: number;
|
|
1812
|
+
startTime: number;
|
|
1813
|
+
systemTime: number;
|
|
1814
|
+
currentTime: number;
|
|
1815
|
+
muteMode: number;
|
|
1806
1816
|
};
|
|
1807
|
-
|
|
1817
|
+
type GetMuteResponse = {
|
|
1818
|
+
chatEntries: MuteEntriesInfo[];
|
|
1819
|
+
groupChatEntries: MuteEntriesInfo[];
|
|
1820
|
+
};
|
|
1821
|
+
declare const getMuteFactory: (ctx: ContextBase, api: API) => () => Promise<GetMuteResponse>;
|
|
1808
1822
|
|
|
1809
|
-
type
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1823
|
+
type ParseLinkErrorMaps = Record<string, number>;
|
|
1824
|
+
type ParseLinkResponse = {
|
|
1825
|
+
data: {
|
|
1826
|
+
thumb: string;
|
|
1827
|
+
title: string;
|
|
1828
|
+
desc: string;
|
|
1829
|
+
src: string;
|
|
1830
|
+
href: string;
|
|
1831
|
+
media: {
|
|
1832
|
+
type: number;
|
|
1833
|
+
count: number;
|
|
1834
|
+
mediaTitle: string;
|
|
1835
|
+
artist: string;
|
|
1836
|
+
streamUrl: string;
|
|
1837
|
+
stream_icon: string;
|
|
1814
1838
|
};
|
|
1839
|
+
stream_icon: string;
|
|
1815
1840
|
};
|
|
1841
|
+
error_maps: ParseLinkErrorMaps;
|
|
1816
1842
|
};
|
|
1817
|
-
declare const
|
|
1843
|
+
declare const parseLinkFactory: (ctx: ContextBase, api: API) => (link: string) => Promise<ParseLinkResponse>;
|
|
1818
1844
|
|
|
1819
|
-
type
|
|
1820
|
-
|
|
1845
|
+
type ChangeGroupOwnerResponse = {
|
|
1846
|
+
time: number;
|
|
1847
|
+
};
|
|
1848
|
+
declare const changeGroupOwnerFactory: (ctx: ContextBase, api: API) => (memberId: string, groupId: string) => Promise<ChangeGroupOwnerResponse>;
|
|
1821
1849
|
|
|
1822
|
-
type
|
|
1823
|
-
|
|
1850
|
+
type UploadAttachmentImageResponse = {
|
|
1851
|
+
normalUrl: string;
|
|
1852
|
+
photoId: string;
|
|
1853
|
+
finished: number | boolean;
|
|
1854
|
+
hdUrl: string;
|
|
1855
|
+
thumbUrl: string;
|
|
1856
|
+
clientFileId: number;
|
|
1857
|
+
chunkId: number;
|
|
1858
|
+
fileType: "image";
|
|
1859
|
+
width: number;
|
|
1860
|
+
height: number;
|
|
1861
|
+
totalSize: number;
|
|
1862
|
+
hdSize: number;
|
|
1824
1863
|
};
|
|
1825
|
-
type
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
* Last message global ID to delete backwards
|
|
1836
|
-
*/
|
|
1837
|
-
globalMsgId: string;
|
|
1864
|
+
type UploadAttachmentVideoResponse = {
|
|
1865
|
+
finished: number | boolean;
|
|
1866
|
+
clientFileId: number;
|
|
1867
|
+
chunkId: number;
|
|
1868
|
+
fileType: "video";
|
|
1869
|
+
fileUrl: string;
|
|
1870
|
+
fileId: string;
|
|
1871
|
+
checksum: string;
|
|
1872
|
+
totalSize: number;
|
|
1873
|
+
fileName: string;
|
|
1838
1874
|
};
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1875
|
+
type UploadAttachmentFileResponse = {
|
|
1876
|
+
finished: number | boolean;
|
|
1877
|
+
clientFileId: number;
|
|
1878
|
+
chunkId: number;
|
|
1879
|
+
fileType: "others";
|
|
1880
|
+
fileUrl: string;
|
|
1881
|
+
fileId: string;
|
|
1882
|
+
checksum: string;
|
|
1883
|
+
totalSize: number;
|
|
1884
|
+
fileName: string;
|
|
1848
1885
|
};
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1886
|
+
type ImageData = {
|
|
1887
|
+
fileName: string;
|
|
1888
|
+
totalSize: number | undefined;
|
|
1889
|
+
width: number | undefined;
|
|
1890
|
+
height: number | undefined;
|
|
1853
1891
|
};
|
|
1854
|
-
type
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
msgId: string;
|
|
1858
|
-
uidFrom: string;
|
|
1859
|
-
};
|
|
1860
|
-
threadId: string;
|
|
1861
|
-
type?: ThreadType;
|
|
1892
|
+
type FileData = {
|
|
1893
|
+
fileName: string;
|
|
1894
|
+
totalSize: number;
|
|
1862
1895
|
};
|
|
1863
|
-
|
|
1896
|
+
type UploadAttachmentType = UploadAttachmentImageResponse | UploadAttachmentVideoResponse | UploadAttachmentFileResponse;
|
|
1897
|
+
type UploadAttachmentResponse = UploadAttachmentType[];
|
|
1898
|
+
declare const uploadAttachmentFactory: (ctx: ContextBase, api: API) => (sources: AttachmentSource | AttachmentSource[], threadId: string, type?: ThreadType) => Promise<UploadAttachmentType[]>;
|
|
1864
1899
|
|
|
1865
|
-
type
|
|
1866
|
-
productIds: string | string[];
|
|
1900
|
+
type GetProductCatalogListPayload = {
|
|
1867
1901
|
catalogId: string;
|
|
1902
|
+
/**
|
|
1903
|
+
* Number of items to retrieve (default: 100)
|
|
1904
|
+
*/
|
|
1905
|
+
limit?: number;
|
|
1906
|
+
versionCatalog?: number;
|
|
1907
|
+
lastProductId?: string;
|
|
1908
|
+
/**
|
|
1909
|
+
* Page number (default: 0)
|
|
1910
|
+
*/
|
|
1911
|
+
page?: number;
|
|
1868
1912
|
};
|
|
1869
|
-
type
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1913
|
+
type GetProductCatalogListResponse = {
|
|
1914
|
+
items: ProductCatalogItem[];
|
|
1915
|
+
version: number;
|
|
1916
|
+
has_more: number;
|
|
1873
1917
|
};
|
|
1874
|
-
declare const
|
|
1918
|
+
declare const getProductCatalogListFactory: (ctx: ContextBase, api: API) => (payload: GetProductCatalogListPayload) => Promise<GetProductCatalogListResponse>;
|
|
1875
1919
|
|
|
1876
|
-
type
|
|
1877
|
-
declare const
|
|
1920
|
+
type DeleteCatalogResponse = "";
|
|
1921
|
+
declare const deleteCatalogFactory: (ctx: ContextBase, api: API) => (catalogId: string) => Promise<"">;
|
|
1878
1922
|
|
|
1879
|
-
type
|
|
1880
|
-
|
|
1923
|
+
type LastOnlineResponse = {
|
|
1924
|
+
settings: {
|
|
1925
|
+
show_online_status: boolean;
|
|
1926
|
+
};
|
|
1927
|
+
lastOnline: number;
|
|
1928
|
+
};
|
|
1929
|
+
declare const lastOnlineFactory: (ctx: ContextBase, api: API) => (uid: string) => Promise<LastOnlineResponse>;
|
|
1881
1930
|
|
|
1882
|
-
type
|
|
1883
|
-
|
|
1884
|
-
* New note title
|
|
1885
|
-
*/
|
|
1886
|
-
title: string;
|
|
1887
|
-
/**
|
|
1888
|
-
* Topic ID to edit note from
|
|
1889
|
-
*/
|
|
1890
|
-
topicId: string;
|
|
1931
|
+
type GetGroupLinkInfoPayload = {
|
|
1932
|
+
link: string;
|
|
1891
1933
|
/**
|
|
1892
|
-
*
|
|
1934
|
+
* Default: 1
|
|
1893
1935
|
*/
|
|
1894
|
-
|
|
1936
|
+
memberPage?: number;
|
|
1895
1937
|
};
|
|
1896
|
-
type
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
declare const fetchAccountInfoFactory: (ctx: ContextBase, api: API) => () => Promise<User>;
|
|
1920
|
-
|
|
1921
|
-
type FindUserResponse = {
|
|
1922
|
-
avatar: string;
|
|
1923
|
-
cover: string;
|
|
1924
|
-
status: string;
|
|
1925
|
-
gender: Gender;
|
|
1926
|
-
dob: number;
|
|
1927
|
-
sdob: string;
|
|
1938
|
+
type GetGroupLinkInfoResponse = {
|
|
1939
|
+
groupId: string;
|
|
1940
|
+
name: string;
|
|
1941
|
+
desc: string;
|
|
1942
|
+
type: number;
|
|
1943
|
+
creatorId: string;
|
|
1944
|
+
avt: string;
|
|
1945
|
+
fullAvt: string;
|
|
1946
|
+
adminIds: string[];
|
|
1947
|
+
currentMems: {
|
|
1948
|
+
id: string;
|
|
1949
|
+
dName: string;
|
|
1950
|
+
zaloName: string;
|
|
1951
|
+
avatar: string;
|
|
1952
|
+
avatar_25: string;
|
|
1953
|
+
accountStatus: number;
|
|
1954
|
+
type: number;
|
|
1955
|
+
}[];
|
|
1956
|
+
admins: unknown[];
|
|
1957
|
+
hasMoreMember: number;
|
|
1958
|
+
subType: number;
|
|
1959
|
+
totalMember: number;
|
|
1960
|
+
setting: GroupSetting;
|
|
1928
1961
|
globalId: string;
|
|
1929
|
-
bizPkg: ZBusinessPackage;
|
|
1930
|
-
uid: string;
|
|
1931
|
-
zalo_name: string;
|
|
1932
|
-
display_name: string;
|
|
1933
1962
|
};
|
|
1934
|
-
declare const
|
|
1963
|
+
declare const getGroupLinkInfoFactory: (ctx: ContextBase, api: API) => (payload: GetGroupLinkInfoPayload) => Promise<GetGroupLinkInfoResponse>;
|
|
1935
1964
|
|
|
1936
1965
|
type ForwardMessagePayload = {
|
|
1937
1966
|
message: string;
|
|
@@ -1957,112 +1986,55 @@ type ForwardMessageResponse = {
|
|
|
1957
1986
|
};
|
|
1958
1987
|
declare const forwardMessageFactory: (ctx: ContextBase, api: API) => (payload: ForwardMessagePayload, threadIds: string[], type?: ThreadType) => Promise<ForwardMessageResponse>;
|
|
1959
1988
|
|
|
1960
|
-
|
|
1961
|
-
items: {
|
|
1962
|
-
userId: string;
|
|
1963
|
-
alias: string;
|
|
1964
|
-
}[];
|
|
1965
|
-
updateTime: string;
|
|
1966
|
-
};
|
|
1967
|
-
declare const getAliasListFactory: (ctx: ContextBase, api: API) => (count?: number, page?: number) => Promise<GetAliasListResponse>;
|
|
1968
|
-
|
|
1969
|
-
type GetAllFriendsResponse = User[];
|
|
1970
|
-
declare const getAllFriendsFactory: (ctx: ContextBase, api: API) => (count?: number, page?: number) => Promise<GetAllFriendsResponse>;
|
|
1971
|
-
|
|
1972
|
-
type GetAllGroupsResponse = {
|
|
1973
|
-
version: string;
|
|
1974
|
-
gridVerMap: {
|
|
1975
|
-
[groupId: string]: string;
|
|
1976
|
-
};
|
|
1977
|
-
};
|
|
1978
|
-
declare const getAllGroupsFactory: (ctx: ContextBase, api: API) => () => Promise<GetAllGroupsResponse>;
|
|
1979
|
-
|
|
1980
|
-
type GetArchivedChatListResponse = {
|
|
1981
|
-
items: unknown[];
|
|
1982
|
-
version: number;
|
|
1983
|
-
};
|
|
1984
|
-
declare const getArchivedChatListFactory: (ctx: ContextBase, api: API) => () => Promise<GetArchivedChatListResponse>;
|
|
1989
|
+
declare const getCookieFactory: (ctx: ContextBase, api: API) => () => tough_cookie.CookieJar;
|
|
1985
1990
|
|
|
1986
|
-
type
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1991
|
+
type UpdateAutoReplyPayload = {
|
|
1992
|
+
id: number;
|
|
1993
|
+
content: string;
|
|
1994
|
+
isEnable: boolean;
|
|
1995
|
+
startTime: number;
|
|
1996
|
+
endTime: number;
|
|
1997
|
+
scope: AutoReplyScope;
|
|
1998
|
+
uids?: string | string[];
|
|
1993
1999
|
};
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
type GetAutoReplyListResponse = {
|
|
1997
|
-
item: AutoReplyItem[];
|
|
2000
|
+
type UpdateAutoReplyResponse = {
|
|
2001
|
+
item: AutoReplyItem;
|
|
1998
2002
|
version: number;
|
|
1999
2003
|
};
|
|
2000
|
-
declare const
|
|
2004
|
+
declare const updateAutoReplyFactory: (ctx: ContextBase, api: API) => (payload: UpdateAutoReplyPayload) => Promise<UpdateAutoReplyResponse>;
|
|
2001
2005
|
|
|
2002
|
-
type
|
|
2003
|
-
|
|
2004
|
-
nextPhotoId: string;
|
|
2005
|
-
hasMore: number;
|
|
2006
|
-
photos: {
|
|
2007
|
-
photoId: string;
|
|
2008
|
-
thumbnail: string;
|
|
2009
|
-
url: string;
|
|
2010
|
-
bkUrl: string;
|
|
2011
|
-
}[];
|
|
2012
|
-
};
|
|
2013
|
-
declare const getAvatarListFactory: (ctx: ContextBase, api: API) => (count?: number, page?: number) => Promise<GetAvatarListResponse>;
|
|
2006
|
+
type ChangeFriendAliasResponse = "";
|
|
2007
|
+
declare const changeFriendAliasFactory: (ctx: ContextBase, api: API) => (alias: string, friendId: string) => Promise<"">;
|
|
2014
2008
|
|
|
2015
|
-
type
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
cta_profile: number;
|
|
2028
|
-
/**
|
|
2029
|
-
* Relative path used to build the catalog URL.
|
|
2030
|
-
*
|
|
2031
|
-
* Example: https://catalog.zalo.me/${cta_catalog}
|
|
2032
|
-
*/
|
|
2033
|
-
cta_catalog: string | null;
|
|
2034
|
-
} | null;
|
|
2035
|
-
pkgId: number;
|
|
2009
|
+
type FindUserResponse = {
|
|
2010
|
+
avatar: string;
|
|
2011
|
+
cover: string;
|
|
2012
|
+
status: string;
|
|
2013
|
+
gender: Gender;
|
|
2014
|
+
dob: number;
|
|
2015
|
+
sdob: string;
|
|
2016
|
+
globalId: string;
|
|
2017
|
+
bizPkg: ZBusinessPackage;
|
|
2018
|
+
uid: string;
|
|
2019
|
+
zalo_name: string;
|
|
2020
|
+
display_name: string;
|
|
2036
2021
|
};
|
|
2037
|
-
declare const
|
|
2022
|
+
declare const findUserFactory: (ctx: ContextBase, api: API) => (phoneNumber: string) => Promise<FindUserResponse>;
|
|
2038
2023
|
|
|
2039
|
-
type
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
/**
|
|
2046
|
-
* Page number (default: 0)
|
|
2047
|
-
*/
|
|
2048
|
-
page?: number;
|
|
2049
|
-
};
|
|
2050
|
-
type GetCatalogListResponse = {
|
|
2051
|
-
items: CatalogItem[];
|
|
2052
|
-
version: number;
|
|
2053
|
-
has_more: number;
|
|
2024
|
+
type EditReminderOptions = {
|
|
2025
|
+
title: string;
|
|
2026
|
+
topicId: string;
|
|
2027
|
+
emoji?: string;
|
|
2028
|
+
startTime?: number;
|
|
2029
|
+
repeat?: ReminderRepeatMode;
|
|
2054
2030
|
};
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
declare const getCookieFactory: (ctx: ContextBase, api: API) => () => tough_cookie.CookieJar;
|
|
2031
|
+
type EditReminderUser = ReminderUser;
|
|
2032
|
+
type EditReminderGroup = Omit<ReminderGroup, "responseMem">;
|
|
2033
|
+
type EditReminderResponse = EditReminderUser | EditReminderGroup;
|
|
2034
|
+
declare const editReminderFactory: (ctx: ContextBase, api: API) => (options: EditReminderOptions, threadId: string, type?: ThreadType) => Promise<EditReminderResponse>;
|
|
2060
2035
|
|
|
2061
|
-
type
|
|
2062
|
-
|
|
2063
|
-
version: number;
|
|
2064
|
-
};
|
|
2065
|
-
declare const getFriendBoardListFactory: (ctx: ContextBase, api: API) => (conversationId: string) => Promise<GetFriendBoardListResponse>;
|
|
2036
|
+
type ReuseAvatarResponse = null;
|
|
2037
|
+
declare const reuseAvatarFactory: (ctx: ContextBase, api: API) => (photoId: string) => Promise<null>;
|
|
2066
2038
|
|
|
2067
2039
|
type GetFriendOnlinesStatus = {
|
|
2068
2040
|
userId: string;
|
|
@@ -2075,76 +2047,27 @@ type GetFriendOnlinesResponse = {
|
|
|
2075
2047
|
};
|
|
2076
2048
|
declare const getFriendOnlinesFactory: (ctx: ContextBase, api: API) => () => Promise<GetFriendOnlinesResponse>;
|
|
2077
2049
|
|
|
2078
|
-
type
|
|
2079
|
-
|
|
2080
|
-
collapseXItem: number;
|
|
2081
|
-
collapseYItem: number;
|
|
2082
|
-
};
|
|
2083
|
-
type FriendRecommendationsDataInfo = {
|
|
2084
|
-
userId: string;
|
|
2085
|
-
zaloName: string;
|
|
2086
|
-
displayName: string;
|
|
2087
|
-
avatar: string;
|
|
2088
|
-
phoneNumber: string;
|
|
2089
|
-
status: string;
|
|
2090
|
-
gender: Gender;
|
|
2091
|
-
dob: number;
|
|
2092
|
-
type: number;
|
|
2093
|
-
recommType: number;
|
|
2094
|
-
recommSrc: number;
|
|
2095
|
-
recommTime: number;
|
|
2096
|
-
recommInfo: {
|
|
2097
|
-
suggestWay: number;
|
|
2098
|
-
source: number;
|
|
2099
|
-
message: string;
|
|
2100
|
-
customText: string | null;
|
|
2101
|
-
};
|
|
2102
|
-
bizPkg: ZBusinessPackage;
|
|
2103
|
-
isSeenFriendReq: boolean;
|
|
2104
|
-
};
|
|
2105
|
-
type FriendRecommendationsRecommItem = {
|
|
2106
|
-
recommItemType: number;
|
|
2107
|
-
dataInfo: FriendRecommendationsDataInfo;
|
|
2050
|
+
type UploadProductPhotoPayload = {
|
|
2051
|
+
file: AttachmentSource;
|
|
2108
2052
|
};
|
|
2109
|
-
type
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2053
|
+
type UploadProductPhotoResponse = {
|
|
2054
|
+
normalUrl: string;
|
|
2055
|
+
photoId: string;
|
|
2056
|
+
finished: number;
|
|
2057
|
+
hdUrl: string;
|
|
2058
|
+
thumbUrl: string;
|
|
2059
|
+
clientFileId: number;
|
|
2060
|
+
chunkId: number;
|
|
2113
2061
|
};
|
|
2114
|
-
declare const
|
|
2062
|
+
declare const uploadProductPhotoFactory: (ctx: ContextBase, api: API) => (payload: UploadProductPhotoPayload) => Promise<UploadProductPhotoResponse>;
|
|
2115
2063
|
|
|
2116
|
-
type
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
is_requested: number;
|
|
2121
|
-
is_requesting: number;
|
|
2064
|
+
type SendBankCardPayload = {
|
|
2065
|
+
binBank: BinBankCard;
|
|
2066
|
+
numAccBank: string;
|
|
2067
|
+
nameAccBank?: string;
|
|
2122
2068
|
};
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
type GetGroupBlockedMemberPayload = {
|
|
2126
|
-
/**
|
|
2127
|
-
* Page number (default: 1)
|
|
2128
|
-
*/
|
|
2129
|
-
page?: number;
|
|
2130
|
-
/**
|
|
2131
|
-
* Number of items to retrieve (default: 50)
|
|
2132
|
-
*/
|
|
2133
|
-
count?: number;
|
|
2134
|
-
};
|
|
2135
|
-
type GetGroupBlockedMemberResponse = {
|
|
2136
|
-
blocked_members: {
|
|
2137
|
-
id: string;
|
|
2138
|
-
dName: string;
|
|
2139
|
-
zaloName: string;
|
|
2140
|
-
avatar: string;
|
|
2141
|
-
avatar_25: string;
|
|
2142
|
-
accountStatus: number;
|
|
2143
|
-
type: number;
|
|
2144
|
-
}[];
|
|
2145
|
-
has_more: number;
|
|
2146
|
-
};
|
|
2147
|
-
declare const getGroupBlockedMemberFactory: (ctx: ContextBase, api: API) => (payload: GetGroupBlockedMemberPayload, groupId: string) => Promise<GetGroupBlockedMemberResponse>;
|
|
2069
|
+
type SendBankCardResponse = "";
|
|
2070
|
+
declare const sendBankCardFactory: (ctx: ContextBase, api: API) => (payload: SendBankCardPayload, threadId: string, type?: ThreadType) => Promise<"">;
|
|
2148
2071
|
|
|
2149
2072
|
type GroupInfoResponse = {
|
|
2150
2073
|
removedsGroup: string[];
|
|
@@ -2162,500 +2085,490 @@ type GroupInfoPendingApprove = {
|
|
|
2162
2085
|
};
|
|
2163
2086
|
declare const getGroupInfoFactory: (ctx: ContextBase, api: API) => (groupId: string | string[]) => Promise<GroupInfoResponse>;
|
|
2164
2087
|
|
|
2165
|
-
type
|
|
2166
|
-
|
|
2167
|
-
mpage?: number;
|
|
2168
|
-
mcount?: number;
|
|
2088
|
+
type DeleteMessageResponse = {
|
|
2089
|
+
status: number;
|
|
2169
2090
|
};
|
|
2170
|
-
type
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
id: string;
|
|
2176
|
-
dName: string;
|
|
2177
|
-
zaloName: string;
|
|
2178
|
-
avatar: string;
|
|
2179
|
-
avatar_25: string;
|
|
2180
|
-
accountStatus: number;
|
|
2181
|
-
type: number;
|
|
2182
|
-
};
|
|
2183
|
-
grCreatorInfo: {
|
|
2184
|
-
id: string;
|
|
2185
|
-
dName: string;
|
|
2186
|
-
zaloName: string;
|
|
2187
|
-
avatar: string;
|
|
2188
|
-
avatar_25: string;
|
|
2189
|
-
accountStatus: number;
|
|
2190
|
-
type: number;
|
|
2091
|
+
type DeleteMessageDestination = {
|
|
2092
|
+
data: {
|
|
2093
|
+
cliMsgId: string;
|
|
2094
|
+
msgId: string;
|
|
2095
|
+
uidFrom: string;
|
|
2191
2096
|
};
|
|
2192
|
-
|
|
2193
|
-
type
|
|
2097
|
+
threadId: string;
|
|
2098
|
+
type?: ThreadType;
|
|
2194
2099
|
};
|
|
2195
|
-
declare const
|
|
2100
|
+
declare const deleteMessageFactory: (ctx: ContextBase, api: API) => (dest: DeleteMessageDestination, onlyMe?: boolean) => Promise<DeleteMessageResponse>;
|
|
2196
2101
|
|
|
2197
|
-
type
|
|
2198
|
-
|
|
2199
|
-
page?: number;
|
|
2200
|
-
invPerPage?: number;
|
|
2201
|
-
mcount?: number;
|
|
2102
|
+
type VotePollResponse = {
|
|
2103
|
+
options: PollOptions[];
|
|
2202
2104
|
};
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
};
|
|
2215
|
-
grCreatorInfo: {
|
|
2216
|
-
id: string;
|
|
2217
|
-
dName: string;
|
|
2218
|
-
zaloName: string;
|
|
2219
|
-
avatar: string;
|
|
2220
|
-
avatar_25: string;
|
|
2221
|
-
accountStatus: number;
|
|
2222
|
-
type: number;
|
|
2223
|
-
};
|
|
2224
|
-
/**
|
|
2225
|
-
* Expired timestamp max 7 days
|
|
2226
|
-
*/
|
|
2227
|
-
expiredTs: string;
|
|
2228
|
-
type: number;
|
|
2229
|
-
}[];
|
|
2230
|
-
total: number;
|
|
2231
|
-
hasMore: boolean;
|
|
2105
|
+
declare const votePollFactory: (ctx: ContextBase, api: API) => (pollId: number, optionId: number | number[]) => Promise<VotePollResponse>;
|
|
2106
|
+
|
|
2107
|
+
type SendFriendRequestResponse = "";
|
|
2108
|
+
declare const sendFriendRequestFactory: (ctx: ContextBase, api: API) => (msg: string, userId: string) => Promise<"">;
|
|
2109
|
+
|
|
2110
|
+
type ResetHiddenConversPinResponse = "";
|
|
2111
|
+
declare const resetHiddenConversPinFactory: (ctx: ContextBase, api: API) => () => Promise<"">;
|
|
2112
|
+
|
|
2113
|
+
type AddUserToGroupResponse = {
|
|
2114
|
+
errorMembers: string[];
|
|
2115
|
+
error_data: Record<string, string[]>;
|
|
2232
2116
|
};
|
|
2233
|
-
declare const
|
|
2117
|
+
declare const addUserToGroupFactory: (ctx: ContextBase, api: API) => (memberId: string | string[], groupId: string) => Promise<AddUserToGroupResponse>;
|
|
2234
2118
|
|
|
2235
|
-
type
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
/**
|
|
2239
|
-
* 1: enabled, 0: disabled
|
|
2240
|
-
*/
|
|
2241
|
-
enabled: number;
|
|
2119
|
+
type DeleteProductCatalogPayload = {
|
|
2120
|
+
productIds: string | string[];
|
|
2121
|
+
catalogId: string;
|
|
2242
2122
|
};
|
|
2243
|
-
|
|
2123
|
+
type DeleteProductCatalogResponse = {
|
|
2124
|
+
item: number[];
|
|
2125
|
+
version_ls_catalog: number;
|
|
2126
|
+
version_catalog: number;
|
|
2127
|
+
};
|
|
2128
|
+
declare const deleteProductCatalogFactory: (ctx: ContextBase, api: API) => (payload: DeleteProductCatalogPayload) => Promise<DeleteProductCatalogResponse>;
|
|
2244
2129
|
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
memberPage?: number;
|
|
2130
|
+
declare const getOwnIdFactory: (ctx: ContextBase, api: API) => () => string;
|
|
2131
|
+
|
|
2132
|
+
type UndoPayload = {
|
|
2133
|
+
msgId: string | number;
|
|
2134
|
+
cliMsgId: string | number;
|
|
2251
2135
|
};
|
|
2252
|
-
type
|
|
2253
|
-
|
|
2254
|
-
name: string;
|
|
2255
|
-
desc: string;
|
|
2256
|
-
type: number;
|
|
2257
|
-
creatorId: string;
|
|
2258
|
-
avt: string;
|
|
2259
|
-
fullAvt: string;
|
|
2260
|
-
adminIds: string[];
|
|
2261
|
-
currentMems: {
|
|
2262
|
-
id: string;
|
|
2263
|
-
dName: string;
|
|
2264
|
-
zaloName: string;
|
|
2265
|
-
avatar: string;
|
|
2266
|
-
avatar_25: string;
|
|
2267
|
-
accountStatus: number;
|
|
2268
|
-
type: number;
|
|
2269
|
-
}[];
|
|
2270
|
-
admins: unknown[];
|
|
2271
|
-
hasMoreMember: number;
|
|
2272
|
-
subType: number;
|
|
2273
|
-
totalMember: number;
|
|
2274
|
-
setting: GroupSetting;
|
|
2275
|
-
globalId: string;
|
|
2136
|
+
type UndoResponse = {
|
|
2137
|
+
status: number;
|
|
2276
2138
|
};
|
|
2277
|
-
declare const
|
|
2139
|
+
declare const undoFactory: (ctx: ContextBase, api: API) => (payload: UndoPayload, threadId: string, type?: ThreadType) => Promise<UndoResponse>;
|
|
2278
2140
|
|
|
2279
|
-
type
|
|
2280
|
-
|
|
2281
|
-
|
|
2141
|
+
type JoinGroupInviteBoxResponse = "";
|
|
2142
|
+
declare const joinGroupInviteBoxFactory: (ctx: ContextBase, api: API) => (groupId: string) => Promise<"">;
|
|
2143
|
+
|
|
2144
|
+
type DeleteAutoReplyResponse = {
|
|
2145
|
+
item: number;
|
|
2146
|
+
version: number;
|
|
2147
|
+
};
|
|
2148
|
+
declare const deleteAutoReplyFactory: (ctx: ContextBase, api: API) => (id: number) => Promise<DeleteAutoReplyResponse>;
|
|
2149
|
+
|
|
2150
|
+
type SetPinnedConversationsResponse = "";
|
|
2151
|
+
declare const setPinnedConversationsFactory: (ctx: ContextBase, api: API) => (pinned: boolean, threadId: string | string[], type?: ThreadType) => Promise<"">;
|
|
2152
|
+
|
|
2153
|
+
type UndoFriendRequestResponse = "";
|
|
2154
|
+
declare const undoFriendRequestFactory: (ctx: ContextBase, api: API) => (friendId: string) => Promise<"">;
|
|
2155
|
+
|
|
2156
|
+
type GetPendingGroupMembersUserInfo = {
|
|
2157
|
+
uid: string;
|
|
2158
|
+
dpn: string;
|
|
2282
2159
|
avatar: string;
|
|
2283
|
-
|
|
2284
|
-
type: number;
|
|
2285
|
-
lastUpdateTime: number;
|
|
2286
|
-
globalId: string;
|
|
2287
|
-
id: string;
|
|
2160
|
+
user_submit: null;
|
|
2288
2161
|
};
|
|
2289
|
-
type
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
};
|
|
2293
|
-
unchangeds_profile: unknown[];
|
|
2162
|
+
type GetPendingGroupMembersResponse = {
|
|
2163
|
+
time: number;
|
|
2164
|
+
users: GetPendingGroupMembersUserInfo[];
|
|
2294
2165
|
};
|
|
2295
|
-
declare const
|
|
2166
|
+
declare const getPendingGroupMembersFactory: (ctx: ContextBase, api: API) => (groupId: string) => Promise<GetPendingGroupMembersResponse>;
|
|
2296
2167
|
|
|
2297
|
-
type
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
}[];
|
|
2168
|
+
type RemoveGroupDeputyResponse = "";
|
|
2169
|
+
declare const removeGroupDeputyFactory: (ctx: ContextBase, api: API) => (memberId: string | string[], groupId: string) => Promise<"">;
|
|
2170
|
+
|
|
2171
|
+
type GetAllGroupsResponse = {
|
|
2172
|
+
version: string;
|
|
2173
|
+
gridVerMap: {
|
|
2174
|
+
[groupId: string]: string;
|
|
2175
|
+
};
|
|
2306
2176
|
};
|
|
2307
|
-
declare const
|
|
2177
|
+
declare const getAllGroupsFactory: (ctx: ContextBase, api: API) => () => Promise<GetAllGroupsResponse>;
|
|
2308
2178
|
|
|
2309
|
-
type
|
|
2310
|
-
|
|
2179
|
+
type ChangeGroupAvatarResponse = "";
|
|
2180
|
+
declare const changeGroupAvatarFactory: (ctx: ContextBase, api: API) => (avatarSource: AttachmentSource, groupId: string) => Promise<"">;
|
|
2181
|
+
|
|
2182
|
+
type UpdateQuickMessagePayload = {
|
|
2183
|
+
keyword: string;
|
|
2184
|
+
title: string;
|
|
2185
|
+
media?: AttachmentSource;
|
|
2186
|
+
};
|
|
2187
|
+
type UpdateQuickMessageResponse = {
|
|
2188
|
+
item: QuickMessage;
|
|
2311
2189
|
version: number;
|
|
2312
|
-
lastUpdateTime: number;
|
|
2313
2190
|
};
|
|
2314
|
-
declare const
|
|
2191
|
+
declare const updateQuickMessageFactory: (ctx: ContextBase, api: API) => (updatePayload: UpdateQuickMessagePayload, itemId: number) => Promise<UpdateQuickMessageResponse>;
|
|
2315
2192
|
|
|
2316
|
-
type
|
|
2193
|
+
type ReviewPendingMemberRequestPayload = {
|
|
2194
|
+
members: string | string[];
|
|
2195
|
+
isApprove: boolean;
|
|
2196
|
+
};
|
|
2197
|
+
declare enum ReviewPendingMemberRequestStatus {
|
|
2198
|
+
SUCCESS = 0,
|
|
2199
|
+
NOT_IN_PENDING_LIST = 170,
|
|
2200
|
+
ALREADY_IN_GROUP = 178,
|
|
2201
|
+
INSUFFICIENT_PERMISSION = 166
|
|
2202
|
+
}
|
|
2203
|
+
type ReviewPendingMemberRequestResponse = {
|
|
2204
|
+
[memberId: string]: ReviewPendingMemberRequestStatus;
|
|
2205
|
+
};
|
|
2206
|
+
declare const reviewPendingMemberRequestFactory: (ctx: ContextBase, api: API) => (payload: ReviewPendingMemberRequestPayload, groupId: string) => Promise<ReviewPendingMemberRequestResponse>;
|
|
2207
|
+
|
|
2208
|
+
type AddGroupDeputyResponse = "";
|
|
2209
|
+
declare const addGroupDeputyFactory: (ctx: ContextBase, api: API) => (memberId: string | string[], groupId: string) => Promise<"">;
|
|
2210
|
+
|
|
2211
|
+
type RejectFriendRequestResponse = "";
|
|
2212
|
+
declare const rejectFriendRequestFactory: (ctx: ContextBase, api: API) => (friendId: string) => Promise<"">;
|
|
2213
|
+
|
|
2214
|
+
/**
|
|
2215
|
+
* Options for creating a poll.
|
|
2216
|
+
*/
|
|
2217
|
+
type CreatePollOptions = {
|
|
2218
|
+
/**
|
|
2219
|
+
* Question for the poll.
|
|
2220
|
+
*/
|
|
2221
|
+
question: string;
|
|
2222
|
+
/**
|
|
2223
|
+
* List of options for the poll.
|
|
2224
|
+
*/
|
|
2225
|
+
options: string[];
|
|
2226
|
+
/**
|
|
2227
|
+
* Poll expiration time in milliseconds (0 = no expiration).
|
|
2228
|
+
*/
|
|
2229
|
+
expiredTime?: number;
|
|
2230
|
+
/**
|
|
2231
|
+
* Allows multiple choices in the poll.
|
|
2232
|
+
*/
|
|
2233
|
+
allowMultiChoices?: boolean;
|
|
2234
|
+
/**
|
|
2235
|
+
* Allows members to add new options to the poll.
|
|
2236
|
+
*/
|
|
2237
|
+
allowAddNewOption?: boolean;
|
|
2317
2238
|
/**
|
|
2318
|
-
*
|
|
2239
|
+
* Hides voting results until the user has voted.
|
|
2319
2240
|
*/
|
|
2320
|
-
|
|
2241
|
+
hideVotePreview?: boolean;
|
|
2321
2242
|
/**
|
|
2322
|
-
*
|
|
2243
|
+
* Hides poll voters (anonymous poll).
|
|
2323
2244
|
*/
|
|
2324
|
-
|
|
2245
|
+
isAnonymous?: boolean;
|
|
2325
2246
|
};
|
|
2326
|
-
type
|
|
2327
|
-
|
|
2328
|
-
|
|
2247
|
+
type CreatePollResponse = PollDetail;
|
|
2248
|
+
declare const createPollFactory: (ctx: ContextBase, api: API) => (options: CreatePollOptions, groupId: string) => Promise<PollDetail>;
|
|
2249
|
+
|
|
2250
|
+
type SendLinkOptions = {
|
|
2251
|
+
msg?: string;
|
|
2252
|
+
link: string;
|
|
2253
|
+
ttl?: number;
|
|
2329
2254
|
};
|
|
2330
|
-
type
|
|
2331
|
-
|
|
2332
|
-
count: number;
|
|
2255
|
+
type SendLinkResponse = {
|
|
2256
|
+
msgId: string;
|
|
2333
2257
|
};
|
|
2334
|
-
declare const
|
|
2258
|
+
declare const sendLinkFactory: (ctx: ContextBase, api: API) => (options: SendLinkOptions, threadId: string, type?: ThreadType) => Promise<SendLinkResponse>;
|
|
2335
2259
|
|
|
2336
|
-
type
|
|
2260
|
+
type CreateAutoReplyPayload = {
|
|
2261
|
+
content: string;
|
|
2262
|
+
isEnable: boolean;
|
|
2263
|
+
startTime: number;
|
|
2264
|
+
endTime: number;
|
|
2265
|
+
scope: AutoReplyScope;
|
|
2266
|
+
uids?: string | string[];
|
|
2267
|
+
};
|
|
2268
|
+
type CreateAutoReplyResponse = {
|
|
2269
|
+
item: AutoReplyItem;
|
|
2270
|
+
version: number;
|
|
2271
|
+
};
|
|
2272
|
+
declare const createAutoReplyFactory: (ctx: ContextBase, api: API) => (payload: CreateAutoReplyPayload) => Promise<CreateAutoReplyResponse>;
|
|
2273
|
+
|
|
2274
|
+
type SetHiddenConversationsResponse = "";
|
|
2275
|
+
declare const setHiddenConversationsFactory: (ctx: ContextBase, api: API) => (hidden: boolean, threadId: string | string[], type?: ThreadType) => Promise<"">;
|
|
2276
|
+
|
|
2277
|
+
declare const getContextFactory: (ctx: ContextBase, api: API) => () => ContextSession;
|
|
2278
|
+
|
|
2279
|
+
type JoinGroupLinkResponse = "";
|
|
2280
|
+
declare const joinGroupLinkFactory: (ctx: ContextBase, api: API) => (link: string) => Promise<"">;
|
|
2281
|
+
|
|
2282
|
+
type GetGroupBlockedMemberPayload = {
|
|
2337
2283
|
/**
|
|
2338
2284
|
* Page number (default: 1)
|
|
2339
2285
|
*/
|
|
2340
2286
|
page?: number;
|
|
2341
2287
|
/**
|
|
2342
|
-
* Number of items to retrieve (default:
|
|
2288
|
+
* Number of items to retrieve (default: 50)
|
|
2343
2289
|
*/
|
|
2344
2290
|
count?: number;
|
|
2345
2291
|
};
|
|
2346
|
-
type
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
};
|
|
2358
|
-
repeatData: unknown[];
|
|
2292
|
+
type GetGroupBlockedMemberResponse = {
|
|
2293
|
+
blocked_members: {
|
|
2294
|
+
id: string;
|
|
2295
|
+
dName: string;
|
|
2296
|
+
zaloName: string;
|
|
2297
|
+
avatar: string;
|
|
2298
|
+
avatar_25: string;
|
|
2299
|
+
accountStatus: number;
|
|
2300
|
+
type: number;
|
|
2301
|
+
}[];
|
|
2302
|
+
has_more: number;
|
|
2359
2303
|
};
|
|
2360
|
-
|
|
2361
|
-
declare const getListReminderFactory: (ctx: ContextBase, api: API) => (options: ListReminderOptions, threadId: string, type?: ThreadType) => Promise<GetListReminderResponse>;
|
|
2304
|
+
declare const getGroupBlockedMemberFactory: (ctx: ContextBase, api: API) => (payload: GetGroupBlockedMemberPayload, groupId: string) => Promise<GetGroupBlockedMemberResponse>;
|
|
2362
2305
|
|
|
2363
|
-
type
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2306
|
+
type UpdateSettingsResponse = "";
|
|
2307
|
+
declare enum UpdateSettingsType {
|
|
2308
|
+
ViewBirthday = "view_birthday",
|
|
2309
|
+
ShowOnlineStatus = "show_online_status",
|
|
2310
|
+
DisplaySeenStatus = "display_seen_status",
|
|
2311
|
+
ReceiveMessage = "receive_message",
|
|
2312
|
+
AcceptCall = "accept_stranger_call",
|
|
2313
|
+
AddFriendViaPhone = "add_friend_via_phone",
|
|
2314
|
+
AddFriendViaQR = "add_friend_via_qr",
|
|
2315
|
+
AddFriendViaGroup = "add_friend_via_group",
|
|
2316
|
+
AddFriendViaContact = "add_friend_via_contact",
|
|
2317
|
+
DisplayOnRecommendFriend = "display_on_recommend_friend",
|
|
2318
|
+
ArchivedChat = "archivedChatStatus",
|
|
2319
|
+
QuickMessage = "quickMessageStatus"
|
|
2320
|
+
}
|
|
2321
|
+
declare const updateSettingsFactory: (ctx: ContextBase, api: API) => (type: UpdateSettingsType, value: number) => Promise<"">;
|
|
2322
|
+
|
|
2323
|
+
type SendDeliveredEventResponse = "" | {
|
|
2324
|
+
status: number;
|
|
2370
2325
|
};
|
|
2371
|
-
type
|
|
2372
|
-
|
|
2373
|
-
|
|
2326
|
+
type SendDeliveredEventMessageParams = {
|
|
2327
|
+
msgId: string;
|
|
2328
|
+
cliMsgId: string;
|
|
2329
|
+
uidFrom: string;
|
|
2330
|
+
idTo: string;
|
|
2331
|
+
msgType: string;
|
|
2332
|
+
st: number;
|
|
2333
|
+
at: number;
|
|
2334
|
+
cmd: number;
|
|
2335
|
+
ts: string | number;
|
|
2374
2336
|
};
|
|
2375
|
-
declare const
|
|
2376
|
-
|
|
2377
|
-
declare const getOwnIdFactory: (ctx: ContextBase, api: API) => () => string;
|
|
2337
|
+
declare const sendDeliveredEventFactory: (ctx: ContextBase, api: API) => (isSeen: boolean, messages: SendDeliveredEventMessageParams | SendDeliveredEventMessageParams[], type?: ThreadType) => Promise<SendDeliveredEventResponse>;
|
|
2378
2338
|
|
|
2379
|
-
type
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2339
|
+
type GetAvatarListResponse = {
|
|
2340
|
+
albumId: string;
|
|
2341
|
+
nextPhotoId: string;
|
|
2342
|
+
hasMore: number;
|
|
2343
|
+
photos: {
|
|
2344
|
+
photoId: string;
|
|
2345
|
+
thumbnail: string;
|
|
2346
|
+
url: string;
|
|
2347
|
+
bkUrl: string;
|
|
2348
|
+
}[];
|
|
2388
2349
|
};
|
|
2389
|
-
declare const
|
|
2350
|
+
declare const getAvatarListFactory: (ctx: ContextBase, api: API) => (count?: number, page?: number) => Promise<GetAvatarListResponse>;
|
|
2390
2351
|
|
|
2391
|
-
type
|
|
2392
|
-
|
|
2393
|
-
|
|
2352
|
+
type DisperseGroupResponse = "";
|
|
2353
|
+
declare const disperseGroupFactory: (ctx: ContextBase, api: API) => (groupId: string) => Promise<"">;
|
|
2354
|
+
|
|
2355
|
+
type CreateNoteOptions = {
|
|
2356
|
+
title: string;
|
|
2357
|
+
pinAct?: boolean;
|
|
2394
2358
|
};
|
|
2395
|
-
|
|
2359
|
+
type CreateNoteResponse = NoteDetail;
|
|
2360
|
+
declare const createNoteFactory: (ctx: ContextBase, api: API) => (options: CreateNoteOptions, groupId: string) => Promise<NoteDetail>;
|
|
2396
2361
|
|
|
2397
|
-
type
|
|
2398
|
-
declare const
|
|
2362
|
+
type UnBlockUserResponse = "";
|
|
2363
|
+
declare const unblockUserFactory: (ctx: ContextBase, api: API) => (userId: string) => Promise<"">;
|
|
2399
2364
|
|
|
2400
|
-
type
|
|
2401
|
-
|
|
2365
|
+
type LockPollResponse = "";
|
|
2366
|
+
declare const lockPollFactory: (ctx: ContextBase, api: API) => (pollId: number) => Promise<"">;
|
|
2367
|
+
|
|
2368
|
+
type EditNoteOptions = {
|
|
2402
2369
|
/**
|
|
2403
|
-
*
|
|
2370
|
+
* New note title
|
|
2404
2371
|
*/
|
|
2405
|
-
|
|
2406
|
-
versionCatalog?: number;
|
|
2407
|
-
lastProductId?: string;
|
|
2372
|
+
title: string;
|
|
2408
2373
|
/**
|
|
2409
|
-
*
|
|
2374
|
+
* Topic ID to edit note from
|
|
2410
2375
|
*/
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
has_more: number;
|
|
2417
|
-
};
|
|
2418
|
-
declare const getProductCatalogListFactory: (ctx: ContextBase, api: API) => (payload: GetProductCatalogListPayload) => Promise<GetProductCatalogListResponse>;
|
|
2419
|
-
|
|
2420
|
-
type GetQRResponse = {
|
|
2421
|
-
[userId: string]: string;
|
|
2376
|
+
topicId: string;
|
|
2377
|
+
/**
|
|
2378
|
+
* Should the note be pinned?
|
|
2379
|
+
*/
|
|
2380
|
+
pinAct?: boolean;
|
|
2422
2381
|
};
|
|
2423
|
-
|
|
2382
|
+
type EditNoteResponse = NoteDetail;
|
|
2383
|
+
declare const editNoteFactory: (ctx: ContextBase, api: API) => (options: EditNoteOptions, groupId: string) => Promise<NoteDetail>;
|
|
2424
2384
|
|
|
2425
|
-
type
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2385
|
+
type CreateProductCatalogPayload = {
|
|
2386
|
+
catalogId: string;
|
|
2387
|
+
productName: string;
|
|
2388
|
+
price: string;
|
|
2389
|
+
description: string;
|
|
2390
|
+
/**
|
|
2391
|
+
* Upto 5 media files are allowed, will be ignored if product_photos is provided
|
|
2392
|
+
*/
|
|
2393
|
+
files?: AttachmentSource[];
|
|
2394
|
+
/**
|
|
2395
|
+
* List of product photo URLs, upto 5
|
|
2396
|
+
*
|
|
2397
|
+
* You can manually get the URL using `uploadProductPhoto` api
|
|
2398
|
+
*/
|
|
2399
|
+
product_photos?: string[];
|
|
2429
2400
|
};
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
[friendId: string]: string[];
|
|
2435
|
-
};
|
|
2401
|
+
type CreateProductCatalogResponse = {
|
|
2402
|
+
item: ProductCatalogItem;
|
|
2403
|
+
version_ls_catalog: number;
|
|
2404
|
+
version_catalog: number;
|
|
2436
2405
|
};
|
|
2437
|
-
declare const
|
|
2406
|
+
declare const createProductCatalogFactory: (ctx: ContextBase, api: API) => (payload: CreateProductCatalogPayload) => Promise<CreateProductCatalogResponse>;
|
|
2438
2407
|
|
|
2439
|
-
type
|
|
2440
|
-
declare const
|
|
2408
|
+
type ChangeAccountAvatarResponse = "";
|
|
2409
|
+
declare const changeAccountAvatarFactory: (ctx: ContextBase, api: API) => (avatarSource: AttachmentSource) => Promise<"">;
|
|
2441
2410
|
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
}
|
|
2446
|
-
|
|
2411
|
+
declare enum UpdateLangAvailableLanguages {
|
|
2412
|
+
VI = "VI",
|
|
2413
|
+
EN = "EN"
|
|
2414
|
+
}
|
|
2415
|
+
type UpdateLangResponse = "";
|
|
2416
|
+
declare const updateLangFactory: (ctx: ContextBase, api: API) => (language?: UpdateLangAvailableLanguages) => Promise<"">;
|
|
2447
2417
|
|
|
2448
|
-
type
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
displayName: string;
|
|
2452
|
-
avatar: string;
|
|
2453
|
-
globalId: string;
|
|
2454
|
-
bizPkg: ZBusinessPackage;
|
|
2455
|
-
fReqInfo: {
|
|
2456
|
-
message: string;
|
|
2457
|
-
src: number;
|
|
2458
|
-
time: number;
|
|
2459
|
-
};
|
|
2460
|
-
};
|
|
2461
|
-
type GetSentFriendRequestResponse = {
|
|
2462
|
-
[userId: string]: SentFriendRequestInfo;
|
|
2418
|
+
type GetArchivedChatListResponse = {
|
|
2419
|
+
items: unknown[];
|
|
2420
|
+
version: number;
|
|
2463
2421
|
};
|
|
2464
|
-
declare const
|
|
2422
|
+
declare const getArchivedChatListFactory: (ctx: ContextBase, api: API) => () => Promise<GetArchivedChatListResponse>;
|
|
2465
2423
|
|
|
2466
|
-
type
|
|
2467
|
-
declare const
|
|
2424
|
+
type RemoveFriendAliasResponse = "";
|
|
2425
|
+
declare const removeFriendAliasFactory: (ctx: ContextBase, api: API) => (friendId: string) => Promise<"">;
|
|
2468
2426
|
|
|
2469
|
-
|
|
2427
|
+
type GetQRResponse = {
|
|
2428
|
+
[userId: string]: string;
|
|
2429
|
+
};
|
|
2430
|
+
declare const getQRFactory: (ctx: ContextBase, api: API) => (userId: string | string[]) => Promise<GetQRResponse>;
|
|
2470
2431
|
|
|
2471
|
-
type
|
|
2432
|
+
type SendStickerPayload = {
|
|
2472
2433
|
id: number;
|
|
2473
2434
|
cateId: number;
|
|
2474
2435
|
type: number;
|
|
2475
|
-
text: string;
|
|
2476
|
-
uri: string;
|
|
2477
|
-
fkey: number;
|
|
2478
|
-
status: number;
|
|
2479
|
-
stickerUrl: string;
|
|
2480
|
-
stickerSpriteUrl: string;
|
|
2481
|
-
stickerWebpUrl: unknown;
|
|
2482
|
-
totalFrames: number;
|
|
2483
|
-
duration: number;
|
|
2484
|
-
effectId: number;
|
|
2485
|
-
checksum: string;
|
|
2486
|
-
ext: number;
|
|
2487
|
-
source: number;
|
|
2488
|
-
fss: unknown;
|
|
2489
|
-
fssInfo: unknown;
|
|
2490
|
-
version: number;
|
|
2491
|
-
extInfo: unknown;
|
|
2492
2436
|
};
|
|
2493
|
-
type
|
|
2494
|
-
|
|
2437
|
+
type SendStickerResponse = {
|
|
2438
|
+
msgId: number;
|
|
2439
|
+
};
|
|
2440
|
+
declare const sendStickerFactory: (ctx: ContextBase, api: API) => (sticker: SendStickerPayload, threadId: string, type?: ThreadType) => Promise<SendStickerResponse>;
|
|
2495
2441
|
|
|
2496
|
-
type
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
ts: number;
|
|
2442
|
+
type FriendRecommendationsCollapseMsgListConfig = {
|
|
2443
|
+
collapseId: number;
|
|
2444
|
+
collapseXItem: number;
|
|
2445
|
+
collapseYItem: number;
|
|
2501
2446
|
};
|
|
2502
|
-
type
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2447
|
+
type FriendRecommendationsDataInfo = {
|
|
2448
|
+
userId: string;
|
|
2449
|
+
zaloName: string;
|
|
2450
|
+
displayName: string;
|
|
2451
|
+
avatar: string;
|
|
2452
|
+
phoneNumber: string;
|
|
2453
|
+
status: string;
|
|
2454
|
+
gender: Gender;
|
|
2455
|
+
dob: number;
|
|
2456
|
+
type: number;
|
|
2457
|
+
recommType: number;
|
|
2458
|
+
recommSrc: number;
|
|
2459
|
+
recommTime: number;
|
|
2460
|
+
recommInfo: {
|
|
2461
|
+
suggestWay: number;
|
|
2462
|
+
source: number;
|
|
2463
|
+
message: string;
|
|
2464
|
+
customText: string | null;
|
|
2506
2465
|
};
|
|
2507
|
-
|
|
2466
|
+
bizPkg: ZBusinessPackage;
|
|
2467
|
+
isSeenFriendReq: boolean;
|
|
2508
2468
|
};
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
type UserInfoResponse = {
|
|
2513
|
-
unchanged_profiles: Record<string, unknown>;
|
|
2514
|
-
phonebook_version: number;
|
|
2515
|
-
changed_profiles: Record<string, ProfileInfo>;
|
|
2469
|
+
type FriendRecommendationsRecommItem = {
|
|
2470
|
+
recommItemType: number;
|
|
2471
|
+
dataInfo: FriendRecommendationsDataInfo;
|
|
2516
2472
|
};
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
[groupId: string]: {
|
|
2522
|
-
error_code: number;
|
|
2523
|
-
error_message: string;
|
|
2524
|
-
data: string | null;
|
|
2525
|
-
};
|
|
2526
|
-
};
|
|
2473
|
+
type GetFriendRecommendationsResponse = {
|
|
2474
|
+
expiredDuration: number;
|
|
2475
|
+
collapseMsgListConfig: FriendRecommendationsCollapseMsgListConfig;
|
|
2476
|
+
recommItems: FriendRecommendationsRecommItem[];
|
|
2527
2477
|
};
|
|
2528
|
-
declare const
|
|
2529
|
-
|
|
2530
|
-
type JoinGroupInviteBoxResponse = "";
|
|
2531
|
-
declare const joinGroupInviteBoxFactory: (ctx: ContextBase, api: API) => (groupId: string) => Promise<"">;
|
|
2532
|
-
|
|
2533
|
-
type JoinGroupLinkResponse = "";
|
|
2534
|
-
declare const joinGroupLinkFactory: (ctx: ContextBase, api: API) => (link: string) => Promise<"">;
|
|
2478
|
+
declare const getFriendRecommendationsFactory: (ctx: ContextBase, api: API) => () => Promise<GetFriendRecommendationsResponse>;
|
|
2535
2479
|
|
|
2536
|
-
type
|
|
2537
|
-
|
|
2480
|
+
type UpdateLabelsPayload = {
|
|
2481
|
+
labelData: LabelData[];
|
|
2482
|
+
version: number;
|
|
2538
2483
|
};
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
show_online_status: boolean;
|
|
2544
|
-
};
|
|
2545
|
-
lastOnline: number;
|
|
2484
|
+
type UpdateLabelsResponse = {
|
|
2485
|
+
labelData: LabelData[];
|
|
2486
|
+
version: number;
|
|
2487
|
+
lastUpdateTime: number;
|
|
2546
2488
|
};
|
|
2547
|
-
declare const
|
|
2489
|
+
declare const updateLabelsFactory: (ctx: ContextBase, api: API) => (payload: UpdateLabelsPayload) => Promise<{
|
|
2490
|
+
labelData: any;
|
|
2491
|
+
version: number;
|
|
2492
|
+
lastUpdateTime: number;
|
|
2493
|
+
}>;
|
|
2548
2494
|
|
|
2549
|
-
type
|
|
2550
|
-
|
|
2495
|
+
type UpdateActiveStatusResponse = {
|
|
2496
|
+
status: boolean;
|
|
2551
2497
|
};
|
|
2552
|
-
declare const
|
|
2553
|
-
|
|
2554
|
-
type LockPollResponse = "";
|
|
2555
|
-
declare const lockPollFactory: (ctx: ContextBase, api: API) => (pollId: number) => Promise<"">;
|
|
2498
|
+
declare const updateActiveStatusFactory: (ctx: ContextBase, api: API) => (active: boolean) => Promise<UpdateActiveStatusResponse>;
|
|
2556
2499
|
|
|
2557
|
-
type
|
|
2558
|
-
|
|
2559
|
-
data: {
|
|
2560
|
-
thumb: string;
|
|
2561
|
-
title: string;
|
|
2562
|
-
desc: string;
|
|
2563
|
-
src: string;
|
|
2564
|
-
href: string;
|
|
2565
|
-
media: {
|
|
2566
|
-
type: number;
|
|
2567
|
-
count: number;
|
|
2568
|
-
mediaTitle: string;
|
|
2569
|
-
artist: string;
|
|
2570
|
-
streamUrl: string;
|
|
2571
|
-
stream_icon: string;
|
|
2572
|
-
};
|
|
2573
|
-
stream_icon: string;
|
|
2574
|
-
};
|
|
2575
|
-
error_maps: ParseLinkErrorMaps;
|
|
2500
|
+
type SendTypingEventResponse = {
|
|
2501
|
+
status: number;
|
|
2576
2502
|
};
|
|
2577
|
-
declare const
|
|
2578
|
-
|
|
2579
|
-
type RejectFriendRequestResponse = "";
|
|
2580
|
-
declare const rejectFriendRequestFactory: (ctx: ContextBase, api: API) => (friendId: string) => Promise<"">;
|
|
2581
|
-
|
|
2582
|
-
type RemoveFriendResponse = "";
|
|
2583
|
-
declare const removeFriendFactory: (ctx: ContextBase, api: API) => (friendId: string) => Promise<"">;
|
|
2584
|
-
|
|
2585
|
-
type RemoveFriendAliasResponse = "";
|
|
2586
|
-
declare const removeFriendAliasFactory: (ctx: ContextBase, api: API) => (friendId: string) => Promise<"">;
|
|
2503
|
+
declare const sendTypingEventFactory: (ctx: ContextBase, api: API) => (threadId: string, type?: ThreadType, destType?: DestType) => Promise<SendTypingEventResponse>;
|
|
2587
2504
|
|
|
2588
2505
|
type RemoveGroupBlockedMemberResponse = "";
|
|
2589
2506
|
declare const removeGroupBlockedMemberFactory: (ctx: ContextBase, api: API) => (memberId: string | string[], groupId: string) => Promise<"">;
|
|
2590
2507
|
|
|
2591
|
-
type
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2508
|
+
type GetAutoDeleteChatResponse = {
|
|
2509
|
+
convers: {
|
|
2510
|
+
destId: string;
|
|
2511
|
+
isGroup: boolean;
|
|
2512
|
+
ttl: number;
|
|
2513
|
+
createdAt: number;
|
|
2514
|
+
}[];
|
|
2597
2515
|
};
|
|
2598
|
-
declare const
|
|
2599
|
-
|
|
2600
|
-
type RemoveReminderResponse = "" | number;
|
|
2601
|
-
declare const removeReminderFactory: (ctx: ContextBase, api: API) => (reminderId: string, threadId: string, type?: ThreadType) => Promise<RemoveReminderResponse>;
|
|
2516
|
+
declare const getAutoDeleteChatFactory: (ctx: ContextBase, api: API) => () => Promise<GetAutoDeleteChatResponse>;
|
|
2602
2517
|
|
|
2603
|
-
type
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2518
|
+
type GetAliasListResponse = {
|
|
2519
|
+
items: {
|
|
2520
|
+
userId: string;
|
|
2521
|
+
alias: string;
|
|
2522
|
+
}[];
|
|
2523
|
+
updateTime: string;
|
|
2608
2524
|
};
|
|
2609
|
-
declare const
|
|
2525
|
+
declare const getAliasListFactory: (ctx: ContextBase, api: API) => (count?: number, page?: number) => Promise<GetAliasListResponse>;
|
|
2610
2526
|
|
|
2611
|
-
type
|
|
2612
|
-
|
|
2527
|
+
type GetLabelsResponse = {
|
|
2528
|
+
labelData: LabelData[];
|
|
2529
|
+
version: number;
|
|
2530
|
+
lastUpdateTime: number;
|
|
2613
2531
|
};
|
|
2614
|
-
declare const
|
|
2615
|
-
|
|
2616
|
-
type ResetHiddenConversPinResponse = "";
|
|
2617
|
-
declare const resetHiddenConversPinFactory: (ctx: ContextBase, api: API) => () => Promise<"">;
|
|
2618
|
-
|
|
2619
|
-
type ReuseAvatarResponse = null;
|
|
2620
|
-
declare const reuseAvatarFactory: (ctx: ContextBase, api: API) => (photoId: string) => Promise<null>;
|
|
2532
|
+
declare const getLabelsFactory: (ctx: ContextBase, api: API) => () => Promise<GetLabelsResponse>;
|
|
2621
2533
|
|
|
2622
|
-
type
|
|
2623
|
-
|
|
2624
|
-
|
|
2534
|
+
type AddQuickMessagePayload = {
|
|
2535
|
+
keyword: string;
|
|
2536
|
+
title: string;
|
|
2537
|
+
media?: AttachmentSource;
|
|
2625
2538
|
};
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
ALREADY_IN_GROUP = 178,
|
|
2630
|
-
INSUFFICIENT_PERMISSION = 166
|
|
2631
|
-
}
|
|
2632
|
-
type ReviewPendingMemberRequestResponse = {
|
|
2633
|
-
[memberId: string]: ReviewPendingMemberRequestStatus;
|
|
2539
|
+
type AddQuickMessageResponse = {
|
|
2540
|
+
item: QuickMessage;
|
|
2541
|
+
version: number;
|
|
2634
2542
|
};
|
|
2635
|
-
declare const
|
|
2543
|
+
declare const addQuickMessageFactory: (ctx: ContextBase, api: API) => (addPayload: AddQuickMessagePayload) => Promise<AddQuickMessageResponse>;
|
|
2636
2544
|
|
|
2637
|
-
type
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
nameAccBank?: string;
|
|
2545
|
+
type GetPinConversationsResponse = {
|
|
2546
|
+
conversations: string[];
|
|
2547
|
+
version: number;
|
|
2641
2548
|
};
|
|
2642
|
-
|
|
2643
|
-
declare const sendBankCardFactory: (ctx: ContextBase, api: API) => (payload: SendBankCardPayload, threadId: string, type?: ThreadType) => Promise<"">;
|
|
2549
|
+
declare const getPinConversationsFactory: (ctx: ContextBase, api: API) => () => Promise<GetPinConversationsResponse>;
|
|
2644
2550
|
|
|
2645
|
-
type
|
|
2646
|
-
|
|
2647
|
-
|
|
2551
|
+
type SendVoiceOptions = {
|
|
2552
|
+
voiceUrl: string;
|
|
2553
|
+
/**
|
|
2554
|
+
* Time to live in milliseconds (default: 0)
|
|
2555
|
+
*/
|
|
2648
2556
|
ttl?: number;
|
|
2649
2557
|
};
|
|
2650
|
-
type
|
|
2651
|
-
msgId:
|
|
2558
|
+
type SendVoiceResponse = {
|
|
2559
|
+
msgId: string;
|
|
2560
|
+
};
|
|
2561
|
+
declare const sendVoiceFactory: (ctx: ContextBase, api: API) => (options: SendVoiceOptions, threadId: string, type?: ThreadType) => Promise<SendVoiceResponse>;
|
|
2562
|
+
|
|
2563
|
+
type KeepAliveResponse = {
|
|
2564
|
+
config_vesion: number;
|
|
2652
2565
|
};
|
|
2653
|
-
declare const
|
|
2566
|
+
declare const keepAliveFactory: (ctx: ContextBase, api: API) => () => Promise<KeepAliveResponse>;
|
|
2654
2567
|
|
|
2655
|
-
type
|
|
2568
|
+
type SendSeenEventResponse = {
|
|
2656
2569
|
status: number;
|
|
2657
2570
|
};
|
|
2658
|
-
type
|
|
2571
|
+
type SendSeenEventMessageParams = {
|
|
2659
2572
|
msgId: string;
|
|
2660
2573
|
cliMsgId: string;
|
|
2661
2574
|
uidFrom: string;
|
|
@@ -2666,167 +2579,164 @@ type SendDeliveredEventMessageParams = {
|
|
|
2666
2579
|
cmd: number;
|
|
2667
2580
|
ts: string | number;
|
|
2668
2581
|
};
|
|
2669
|
-
declare const
|
|
2670
|
-
|
|
2671
|
-
type SendFriendRequestResponse = "";
|
|
2672
|
-
declare const sendFriendRequestFactory: (ctx: ContextBase, api: API) => (msg: string, userId: string) => Promise<"">;
|
|
2582
|
+
declare const sendSeenEventFactory: (ctx: ContextBase, api: API) => (messages: SendSeenEventMessageParams | SendSeenEventMessageParams[], type?: ThreadType) => Promise<SendSeenEventResponse>;
|
|
2673
2583
|
|
|
2674
|
-
type
|
|
2675
|
-
|
|
2676
|
-
link: string;
|
|
2677
|
-
ttl?: number;
|
|
2678
|
-
};
|
|
2679
|
-
type SendLinkResponse = {
|
|
2680
|
-
msgId: string;
|
|
2584
|
+
type LeaveGroupResponse = {
|
|
2585
|
+
memberError: unknown[];
|
|
2681
2586
|
};
|
|
2682
|
-
declare const
|
|
2587
|
+
declare const leaveGroupFactory: (ctx: ContextBase, api: API) => (groupId: string, silent?: boolean) => Promise<LeaveGroupResponse>;
|
|
2683
2588
|
|
|
2684
|
-
type
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
type
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
msgType: TMessage["msgType"];
|
|
2694
|
-
propertyExt: TMessage["propertyExt"];
|
|
2695
|
-
uidFrom: TMessage["uidFrom"];
|
|
2696
|
-
msgId: TMessage["msgId"];
|
|
2697
|
-
cliMsgId: TMessage["cliMsgId"];
|
|
2698
|
-
ts: TMessage["ts"];
|
|
2699
|
-
ttl: TMessage["ttl"];
|
|
2589
|
+
type AcceptFriendRequestResponse = "";
|
|
2590
|
+
declare const acceptFriendRequestFactory: (ctx: ContextBase, api: API) => (friendId: string) => Promise<"">;
|
|
2591
|
+
|
|
2592
|
+
type GetReminderResponse = ReminderGroup;
|
|
2593
|
+
declare const getReminderFactory: (ctx: ContextBase, api: API) => (reminderId: string) => Promise<ReminderGroup>;
|
|
2594
|
+
|
|
2595
|
+
type UpdateCatalogPayload = {
|
|
2596
|
+
catalogId: string;
|
|
2597
|
+
catalogName: string;
|
|
2700
2598
|
};
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
StrikeThrough = "s",
|
|
2706
|
-
Red = "c_db342e",
|
|
2707
|
-
Orange = "c_f27806",
|
|
2708
|
-
Yellow = "c_f7b503",
|
|
2709
|
-
Green = "c_15a85f",
|
|
2710
|
-
Small = "f_13",
|
|
2711
|
-
Big = "f_18",
|
|
2712
|
-
UnorderedList = "lst_1",
|
|
2713
|
-
OrderedList = "lst_2",
|
|
2714
|
-
Indent = "ind_$"
|
|
2715
|
-
}
|
|
2716
|
-
type Style = {
|
|
2717
|
-
start: number;
|
|
2718
|
-
len: number;
|
|
2719
|
-
st: Exclude<TextStyle, TextStyle.Indent>;
|
|
2720
|
-
} | {
|
|
2721
|
-
start: number;
|
|
2722
|
-
len: number;
|
|
2723
|
-
st: TextStyle.Indent;
|
|
2724
|
-
/**
|
|
2725
|
-
* Number of spaces used for indentation.
|
|
2726
|
-
*/
|
|
2727
|
-
indentSize?: number;
|
|
2599
|
+
type UpdateCatalogResponse = {
|
|
2600
|
+
item: CatalogItem;
|
|
2601
|
+
version_ls_catalog: number;
|
|
2602
|
+
version_catalog: number;
|
|
2728
2603
|
};
|
|
2729
|
-
declare
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
*/
|
|
2738
|
-
pos: number;
|
|
2739
|
-
/**
|
|
2740
|
-
* id of the mentioned user
|
|
2741
|
-
*/
|
|
2742
|
-
uid: string;
|
|
2743
|
-
/**
|
|
2744
|
-
* length of the mention
|
|
2745
|
-
*/
|
|
2746
|
-
len: number;
|
|
2604
|
+
declare const updateCatalogFactory: (ctx: ContextBase, api: API) => (payload: UpdateCatalogPayload) => Promise<UpdateCatalogResponse>;
|
|
2605
|
+
|
|
2606
|
+
type CreateGroupResponse = {
|
|
2607
|
+
groupType: number;
|
|
2608
|
+
sucessMembers: string[];
|
|
2609
|
+
groupId: string;
|
|
2610
|
+
errorMembers: string[];
|
|
2611
|
+
error_data: Record<string, unknown>;
|
|
2747
2612
|
};
|
|
2748
|
-
type
|
|
2749
|
-
/**
|
|
2750
|
-
* Text content of the message
|
|
2751
|
-
*/
|
|
2752
|
-
msg: string;
|
|
2753
|
-
/**
|
|
2754
|
-
* Text styles
|
|
2755
|
-
*/
|
|
2756
|
-
styles?: Style[];
|
|
2757
|
-
/**
|
|
2758
|
-
* Urgency of the message
|
|
2759
|
-
*/
|
|
2760
|
-
urgency?: Urgency;
|
|
2613
|
+
type CreateGroupOptions = {
|
|
2761
2614
|
/**
|
|
2762
|
-
*
|
|
2615
|
+
* Group name
|
|
2763
2616
|
*/
|
|
2764
|
-
|
|
2617
|
+
name?: string;
|
|
2765
2618
|
/**
|
|
2766
|
-
*
|
|
2619
|
+
* List of member IDs to add to the group
|
|
2767
2620
|
*/
|
|
2768
|
-
|
|
2621
|
+
members: string[];
|
|
2769
2622
|
/**
|
|
2770
|
-
*
|
|
2623
|
+
* Avatar source, can be a file path or an Attachment object
|
|
2771
2624
|
*/
|
|
2772
|
-
|
|
2625
|
+
avatarSource?: AttachmentSource;
|
|
2773
2626
|
/**
|
|
2774
|
-
*
|
|
2627
|
+
* Path to the avatar image file
|
|
2628
|
+
* @deprecated Use `avatarSource` instead
|
|
2775
2629
|
*/
|
|
2776
|
-
|
|
2630
|
+
avatarPath?: string;
|
|
2777
2631
|
};
|
|
2778
|
-
declare const
|
|
2779
|
-
message: SendMessageResult | null;
|
|
2780
|
-
attachment: SendMessageResult[];
|
|
2781
|
-
}>;
|
|
2632
|
+
declare const createGroupFactory: (ctx: ContextBase, api: API) => (options: CreateGroupOptions) => Promise<CreateGroupResponse>;
|
|
2782
2633
|
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2634
|
+
type SentFriendRequestInfo = {
|
|
2635
|
+
userId: string;
|
|
2636
|
+
zaloName: string;
|
|
2637
|
+
displayName: string;
|
|
2638
|
+
avatar: string;
|
|
2639
|
+
globalId: string;
|
|
2640
|
+
bizPkg: ZBusinessPackage;
|
|
2641
|
+
fReqInfo: {
|
|
2642
|
+
message: string;
|
|
2643
|
+
src: number;
|
|
2644
|
+
time: number;
|
|
2645
|
+
};
|
|
2794
2646
|
};
|
|
2795
|
-
type
|
|
2796
|
-
|
|
2647
|
+
type GetSentFriendRequestResponse = {
|
|
2648
|
+
[userId: string]: SentFriendRequestInfo;
|
|
2797
2649
|
};
|
|
2798
|
-
declare const
|
|
2650
|
+
declare const getSentFriendRequestFactory: (ctx: ContextBase, api: API) => () => Promise<GetSentFriendRequestResponse>;
|
|
2799
2651
|
|
|
2800
|
-
type
|
|
2652
|
+
type DeleteAvatarResponse = {
|
|
2653
|
+
delPhotoIds: string[];
|
|
2654
|
+
errMap: {
|
|
2655
|
+
[key: string]: {
|
|
2656
|
+
err: number;
|
|
2657
|
+
};
|
|
2658
|
+
};
|
|
2659
|
+
};
|
|
2660
|
+
declare const deleteAvatarFactory: (ctx: ContextBase, api: API) => (photoId: string | string[]) => Promise<DeleteAvatarResponse>;
|
|
2661
|
+
|
|
2662
|
+
type UnreadMark = {
|
|
2663
|
+
id: number;
|
|
2664
|
+
cliMsgId: number;
|
|
2665
|
+
fromUid: number;
|
|
2666
|
+
ts: number;
|
|
2667
|
+
};
|
|
2668
|
+
type GetUnreadMarkResponse = {
|
|
2669
|
+
data: {
|
|
2670
|
+
convsGroup: UnreadMark[];
|
|
2671
|
+
convsUser: UnreadMark[];
|
|
2672
|
+
};
|
|
2801
2673
|
status: number;
|
|
2802
2674
|
};
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
msgType: string;
|
|
2809
|
-
st: number;
|
|
2810
|
-
at: number;
|
|
2811
|
-
cmd: number;
|
|
2812
|
-
ts: string | number;
|
|
2675
|
+
declare const getUnreadMarkFactory: (ctx: ContextBase, api: API) => () => Promise<GetUnreadMarkResponse>;
|
|
2676
|
+
|
|
2677
|
+
type GetAutoReplyListResponse = {
|
|
2678
|
+
item: AutoReplyItem[];
|
|
2679
|
+
version: number;
|
|
2813
2680
|
};
|
|
2814
|
-
declare const
|
|
2681
|
+
declare const getAutoReplyListFactory: (ctx: ContextBase, api: API) => () => Promise<GetAutoReplyListResponse>;
|
|
2815
2682
|
|
|
2816
|
-
type
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2683
|
+
type GetAllFriendsResponse = User[];
|
|
2684
|
+
declare const getAllFriendsFactory: (ctx: ContextBase, api: API) => (count?: number, page?: number) => Promise<GetAllFriendsResponse>;
|
|
2685
|
+
|
|
2686
|
+
type GetGroupLinkDetailResponse = {
|
|
2687
|
+
link?: string;
|
|
2688
|
+
expiration_date?: number;
|
|
2689
|
+
/**
|
|
2690
|
+
* 1: enabled, 0: disabled
|
|
2691
|
+
*/
|
|
2692
|
+
enabled: number;
|
|
2820
2693
|
};
|
|
2821
|
-
|
|
2822
|
-
|
|
2694
|
+
declare const getGroupLinkDetailFactory: (ctx: ContextBase, api: API) => (groupId: string) => Promise<GetGroupLinkDetailResponse>;
|
|
2695
|
+
|
|
2696
|
+
type CreateCatalogResponse = {
|
|
2697
|
+
item: CatalogItem;
|
|
2698
|
+
version_ls_catalog: number;
|
|
2699
|
+
version_catalog: number;
|
|
2700
|
+
};
|
|
2701
|
+
declare const createCatalogFactory: (ctx: ContextBase, api: API) => (catalogName: string) => Promise<CreateCatalogResponse>;
|
|
2702
|
+
|
|
2703
|
+
type EnableGroupLinkResponse = {
|
|
2704
|
+
link: string;
|
|
2705
|
+
expiration_date: number;
|
|
2706
|
+
enabled: number;
|
|
2707
|
+
};
|
|
2708
|
+
declare const enableGroupLinkFactory: (ctx: ContextBase, api: API) => (groupId: string) => Promise<EnableGroupLinkResponse>;
|
|
2709
|
+
|
|
2710
|
+
type PollDetailResponse = PollDetail;
|
|
2711
|
+
declare const getPollDetailFactory: (ctx: ContextBase, api: API) => (pollId: number) => Promise<PollDetail>;
|
|
2712
|
+
|
|
2713
|
+
type BlockViewFeedResponse = "";
|
|
2714
|
+
declare const blockViewFeedFactory: (ctx: ContextBase, api: API) => (isBlockFeed: boolean, userId: string) => Promise<"">;
|
|
2715
|
+
|
|
2716
|
+
type UpdateProductCatalogPayload = {
|
|
2717
|
+
catalogId: string;
|
|
2718
|
+
productId: string;
|
|
2719
|
+
productName: string;
|
|
2720
|
+
price: string;
|
|
2721
|
+
description: string;
|
|
2722
|
+
createTime: number;
|
|
2723
|
+
/**
|
|
2724
|
+
* Upto 5 media files are allowed, will be ignored if product_photos is provided
|
|
2725
|
+
*/
|
|
2726
|
+
files?: AttachmentSource[];
|
|
2727
|
+
/**
|
|
2728
|
+
* List of product photo URLs, upto 5
|
|
2729
|
+
*
|
|
2730
|
+
* You can manually get the URL using `uploadProductPhoto` api
|
|
2731
|
+
*/
|
|
2732
|
+
product_photos?: string[];
|
|
2823
2733
|
};
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2734
|
+
type UpdateProductCatalogResponse = {
|
|
2735
|
+
item: ProductCatalogItem;
|
|
2736
|
+
version_ls_catalog: number;
|
|
2737
|
+
version_catalog: number;
|
|
2828
2738
|
};
|
|
2829
|
-
declare const
|
|
2739
|
+
declare const updateProductCatalogFactory: (ctx: ContextBase, api: API) => (payload: UpdateProductCatalogPayload) => Promise<UpdateProductCatalogResponse>;
|
|
2830
2740
|
|
|
2831
2741
|
type SendVideoOptions = {
|
|
2832
2742
|
/**
|
|
@@ -2863,66 +2773,87 @@ type SendVideoResponse = {
|
|
|
2863
2773
|
};
|
|
2864
2774
|
declare const sendVideoFactory: (ctx: ContextBase, api: API) => (options: SendVideoOptions, threadId: string, type?: ThreadType) => Promise<SendVideoResponse>;
|
|
2865
2775
|
|
|
2866
|
-
type
|
|
2867
|
-
voiceUrl: string;
|
|
2776
|
+
type GetCatalogListPayload = {
|
|
2868
2777
|
/**
|
|
2869
|
-
*
|
|
2778
|
+
* Number of items to retrieve (default: 20)
|
|
2870
2779
|
*/
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
type SendVoiceResponse = {
|
|
2874
|
-
msgId: string;
|
|
2875
|
-
};
|
|
2876
|
-
declare const sendVoiceFactory: (ctx: ContextBase, api: API) => (options: SendVoiceOptions, threadId: string, type?: ThreadType) => Promise<SendVoiceResponse>;
|
|
2877
|
-
|
|
2878
|
-
type SetHiddenConversationsResponse = "";
|
|
2879
|
-
declare const setHiddenConversationsFactory: (ctx: ContextBase, api: API) => (hidden: boolean, threadId: string | string[], type?: ThreadType) => Promise<"">;
|
|
2880
|
-
|
|
2881
|
-
type SetMuteParams = {
|
|
2780
|
+
limit?: number;
|
|
2781
|
+
lastProductId?: number;
|
|
2882
2782
|
/**
|
|
2883
|
-
*
|
|
2783
|
+
* Page number (default: 0)
|
|
2884
2784
|
*/
|
|
2885
|
-
|
|
2886
|
-
action?: MuteAction;
|
|
2785
|
+
page?: number;
|
|
2887
2786
|
};
|
|
2888
|
-
type
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
}
|
|
2895
|
-
declare enum MuteAction {
|
|
2896
|
-
MUTE = 1,
|
|
2897
|
-
UNMUTE = 3
|
|
2898
|
-
}
|
|
2899
|
-
declare const setMuteFactory: (ctx: ContextBase, api: API) => (params: SetMuteParams | undefined, threadID: string, type?: ThreadType) => Promise<"">;
|
|
2787
|
+
type GetCatalogListResponse = {
|
|
2788
|
+
items: CatalogItem[];
|
|
2789
|
+
version: number;
|
|
2790
|
+
has_more: number;
|
|
2791
|
+
};
|
|
2792
|
+
declare const getCatalogListFactory: (ctx: ContextBase, api: API) => (payload?: GetCatalogListPayload) => Promise<GetCatalogListResponse>;
|
|
2900
2793
|
|
|
2901
|
-
type
|
|
2902
|
-
|
|
2794
|
+
type ProfileInfo = User;
|
|
2795
|
+
type UserInfoResponse = {
|
|
2796
|
+
unchanged_profiles: Record<string, unknown>;
|
|
2797
|
+
phonebook_version: number;
|
|
2798
|
+
changed_profiles: Record<string, ProfileInfo>;
|
|
2799
|
+
};
|
|
2800
|
+
declare const getUserInfoFactory: (ctx: ContextBase, api: API) => (userId: string | string[]) => Promise<UserInfoResponse>;
|
|
2903
2801
|
|
|
2904
2802
|
type SharePollResponse = "";
|
|
2905
2803
|
declare const sharePollFactory: (ctx: ContextBase, api: API) => (pollId: number) => Promise<"">;
|
|
2906
2804
|
|
|
2907
|
-
type
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2805
|
+
type GroupMemberProfile = {
|
|
2806
|
+
displayName: string;
|
|
2807
|
+
zaloName: string;
|
|
2808
|
+
avatar: string;
|
|
2809
|
+
accountStatus: number;
|
|
2810
|
+
type: number;
|
|
2811
|
+
lastUpdateTime: number;
|
|
2812
|
+
globalId: string;
|
|
2813
|
+
id: string;
|
|
2913
2814
|
};
|
|
2914
|
-
type
|
|
2815
|
+
type GetGroupMembersInfoResponse = {
|
|
2816
|
+
profiles: {
|
|
2817
|
+
[memberId: string]: GroupMemberProfile;
|
|
2818
|
+
};
|
|
2819
|
+
unchangeds_profile: unknown[];
|
|
2820
|
+
};
|
|
2821
|
+
declare const getGroupMembersInfoFactory: (ctx: ContextBase, api: API) => (memberId: string | string[]) => Promise<GetGroupMembersInfoResponse>;
|
|
2822
|
+
|
|
2823
|
+
type RemoveUnreadMarkResponse = {
|
|
2824
|
+
data: {
|
|
2825
|
+
updateId: number;
|
|
2826
|
+
};
|
|
2915
2827
|
status: number;
|
|
2916
2828
|
};
|
|
2917
|
-
declare const
|
|
2829
|
+
declare const removeUnreadMarkFactory: (ctx: ContextBase, api: API) => (threadId: string, type?: ThreadType) => Promise<RemoveUnreadMarkResponse>;
|
|
2918
2830
|
|
|
2919
|
-
type
|
|
2920
|
-
|
|
2831
|
+
type GetFriendBoardListResponse = {
|
|
2832
|
+
data: string[];
|
|
2833
|
+
version: number;
|
|
2834
|
+
};
|
|
2835
|
+
declare const getFriendBoardListFactory: (ctx: ContextBase, api: API) => (conversationId: string) => Promise<GetFriendBoardListResponse>;
|
|
2921
2836
|
|
|
2922
|
-
type
|
|
2923
|
-
|
|
2837
|
+
type AddReactionResponse = {
|
|
2838
|
+
msgIds: number[];
|
|
2924
2839
|
};
|
|
2925
|
-
|
|
2840
|
+
type CustomReaction = {
|
|
2841
|
+
rType: number;
|
|
2842
|
+
source: number;
|
|
2843
|
+
icon: string;
|
|
2844
|
+
};
|
|
2845
|
+
type AddReactionDestination = {
|
|
2846
|
+
data: {
|
|
2847
|
+
msgId: string;
|
|
2848
|
+
cliMsgId: string;
|
|
2849
|
+
};
|
|
2850
|
+
threadId: string;
|
|
2851
|
+
type: ThreadType;
|
|
2852
|
+
};
|
|
2853
|
+
declare const addReactionFactory: (ctx: ContextBase, api: API) => (icon: Reactions | CustomReaction, dest: AddReactionDestination) => Promise<AddReactionResponse>;
|
|
2854
|
+
|
|
2855
|
+
type RemoveFriendResponse = "";
|
|
2856
|
+
declare const removeFriendFactory: (ctx: ContextBase, api: API) => (friendId: string) => Promise<"">;
|
|
2926
2857
|
|
|
2927
2858
|
declare enum ChatTTL {
|
|
2928
2859
|
NO_DELETE = 0,
|
|
@@ -2933,122 +2864,138 @@ declare enum ChatTTL {
|
|
|
2933
2864
|
type UpdateAutoDeleteChatResponse = "";
|
|
2934
2865
|
declare const updateAutoDeleteChatFactory: (ctx: ContextBase, api: API) => (ttl: ChatTTL, threadId: string, type?: ThreadType) => Promise<"">;
|
|
2935
2866
|
|
|
2936
|
-
type
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
uids?: string | string[];
|
|
2867
|
+
type UpdateHiddenConversPinResponse = "";
|
|
2868
|
+
declare const updateHiddenConversPinFactory: (ctx: ContextBase, api: API) => (pin: string) => Promise<"">;
|
|
2869
|
+
|
|
2870
|
+
type SendCardOptions = {
|
|
2871
|
+
userId: string;
|
|
2872
|
+
phoneNumber?: string;
|
|
2873
|
+
ttl?: number;
|
|
2944
2874
|
};
|
|
2945
|
-
type
|
|
2946
|
-
|
|
2947
|
-
version: number;
|
|
2875
|
+
type SendCardResponse = {
|
|
2876
|
+
msgId: number;
|
|
2948
2877
|
};
|
|
2949
|
-
declare const
|
|
2878
|
+
declare const sendCardFactory: (ctx: ContextBase, api: API) => (options: SendCardOptions, threadId: string, type?: ThreadType) => Promise<SendCardResponse>;
|
|
2950
2879
|
|
|
2951
|
-
type
|
|
2952
|
-
|
|
2953
|
-
|
|
2880
|
+
type GetRelatedFriendGroupResponse = {
|
|
2881
|
+
groupRelateds: {
|
|
2882
|
+
[friendId: string]: string[];
|
|
2883
|
+
};
|
|
2954
2884
|
};
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2885
|
+
declare const getRelatedFriendGroupFactory: (ctx: ContextBase, api: API) => (friendId: string | string[]) => Promise<GetRelatedFriendGroupResponse>;
|
|
2886
|
+
|
|
2887
|
+
type InviteUserToGroupsResponse = {
|
|
2888
|
+
grid_message_map: {
|
|
2889
|
+
[groupId: string]: {
|
|
2890
|
+
error_code: number;
|
|
2891
|
+
error_message: string;
|
|
2892
|
+
data: string | null;
|
|
2893
|
+
};
|
|
2894
|
+
};
|
|
2959
2895
|
};
|
|
2960
|
-
declare const
|
|
2896
|
+
declare const inviteUserToGroupsFactory: (ctx: ContextBase, api: API) => (userId: string, groupId: string | string[]) => Promise<InviteUserToGroupsResponse>;
|
|
2961
2897
|
|
|
2962
|
-
type
|
|
2898
|
+
type BlockUserResponse = "";
|
|
2899
|
+
declare const blockUserFactory: (ctx: ContextBase, api: API) => (userId: string) => Promise<"">;
|
|
2900
|
+
|
|
2901
|
+
type SendMessageResult = {
|
|
2902
|
+
msgId: number;
|
|
2903
|
+
};
|
|
2904
|
+
type SendMessageResponse = {
|
|
2905
|
+
message: SendMessageResult | null;
|
|
2906
|
+
attachment: SendMessageResult[];
|
|
2907
|
+
};
|
|
2908
|
+
type SendMessageQuote = {
|
|
2909
|
+
content: TMessage["content"];
|
|
2910
|
+
msgType: TMessage["msgType"];
|
|
2911
|
+
propertyExt: TMessage["propertyExt"];
|
|
2912
|
+
uidFrom: TMessage["uidFrom"];
|
|
2913
|
+
msgId: TMessage["msgId"];
|
|
2914
|
+
cliMsgId: TMessage["cliMsgId"];
|
|
2915
|
+
ts: TMessage["ts"];
|
|
2916
|
+
ttl: TMessage["ttl"];
|
|
2917
|
+
};
|
|
2918
|
+
declare enum TextStyle {
|
|
2919
|
+
Bold = "b",
|
|
2920
|
+
Italic = "i",
|
|
2921
|
+
Underline = "u",
|
|
2922
|
+
StrikeThrough = "s",
|
|
2923
|
+
Red = "c_db342e",
|
|
2924
|
+
Orange = "c_f27806",
|
|
2925
|
+
Yellow = "c_f7b503",
|
|
2926
|
+
Green = "c_15a85f",
|
|
2927
|
+
Small = "f_13",
|
|
2928
|
+
Big = "f_18",
|
|
2929
|
+
UnorderedList = "lst_1",
|
|
2930
|
+
OrderedList = "lst_2",
|
|
2931
|
+
Indent = "ind_$"
|
|
2932
|
+
}
|
|
2933
|
+
type Style = {
|
|
2934
|
+
start: number;
|
|
2935
|
+
len: number;
|
|
2936
|
+
st: Exclude<TextStyle, TextStyle.Indent>;
|
|
2937
|
+
} | {
|
|
2938
|
+
start: number;
|
|
2939
|
+
len: number;
|
|
2940
|
+
st: TextStyle.Indent;
|
|
2963
2941
|
/**
|
|
2964
|
-
*
|
|
2942
|
+
* Number of spaces used for indentation.
|
|
2965
2943
|
*/
|
|
2966
|
-
|
|
2944
|
+
indentSize?: number;
|
|
2945
|
+
};
|
|
2946
|
+
declare enum Urgency {
|
|
2947
|
+
Default = 0,
|
|
2948
|
+
Important = 1,
|
|
2949
|
+
Urgent = 2
|
|
2950
|
+
}
|
|
2951
|
+
type Mention = {
|
|
2967
2952
|
/**
|
|
2968
|
-
*
|
|
2953
|
+
* mention position
|
|
2969
2954
|
*/
|
|
2970
|
-
|
|
2955
|
+
pos: number;
|
|
2971
2956
|
/**
|
|
2972
|
-
*
|
|
2957
|
+
* id of the mentioned user
|
|
2973
2958
|
*/
|
|
2974
|
-
|
|
2959
|
+
uid: string;
|
|
2975
2960
|
/**
|
|
2976
|
-
*
|
|
2961
|
+
* length of the mention
|
|
2977
2962
|
*/
|
|
2978
|
-
|
|
2963
|
+
len: number;
|
|
2964
|
+
};
|
|
2965
|
+
type MessageContent = {
|
|
2979
2966
|
/**
|
|
2980
|
-
*
|
|
2967
|
+
* Text content of the message
|
|
2981
2968
|
*/
|
|
2982
|
-
|
|
2969
|
+
msg: string;
|
|
2983
2970
|
/**
|
|
2984
|
-
*
|
|
2971
|
+
* Text styles
|
|
2985
2972
|
*/
|
|
2986
|
-
|
|
2973
|
+
styles?: Style[];
|
|
2987
2974
|
/**
|
|
2988
|
-
*
|
|
2975
|
+
* Urgency of the message
|
|
2989
2976
|
*/
|
|
2990
|
-
|
|
2977
|
+
urgency?: Urgency;
|
|
2991
2978
|
/**
|
|
2992
|
-
*
|
|
2979
|
+
* Quoted message (optional)
|
|
2993
2980
|
*/
|
|
2994
|
-
|
|
2981
|
+
quote?: SendMessageQuote;
|
|
2995
2982
|
/**
|
|
2996
|
-
*
|
|
2983
|
+
* Mentions in the message (optional)
|
|
2997
2984
|
*/
|
|
2998
|
-
|
|
2999
|
-
};
|
|
3000
|
-
type UpdateGroupSettingsResponse = "";
|
|
3001
|
-
declare const updateGroupSettingsFactory: (ctx: ContextBase, api: API) => (options: UpdateGroupSettingsOptions, groupId: string) => Promise<"">;
|
|
3002
|
-
|
|
3003
|
-
type UpdateHiddenConversPinResponse = "";
|
|
3004
|
-
declare const updateHiddenConversPinFactory: (ctx: ContextBase, api: API) => (pin: string) => Promise<"">;
|
|
3005
|
-
|
|
3006
|
-
type UpdateLabelsPayload = {
|
|
3007
|
-
labelData: LabelData[];
|
|
3008
|
-
version: number;
|
|
3009
|
-
};
|
|
3010
|
-
type UpdateLabelsResponse = {
|
|
3011
|
-
labelData: LabelData[];
|
|
3012
|
-
version: number;
|
|
3013
|
-
lastUpdateTime: number;
|
|
3014
|
-
};
|
|
3015
|
-
declare const updateLabelsFactory: (ctx: ContextBase, api: API) => (payload: UpdateLabelsPayload) => Promise<{
|
|
3016
|
-
labelData: any;
|
|
3017
|
-
version: number;
|
|
3018
|
-
lastUpdateTime: number;
|
|
3019
|
-
}>;
|
|
3020
|
-
|
|
3021
|
-
declare enum UpdateLangAvailableLanguages {
|
|
3022
|
-
VI = "VI",
|
|
3023
|
-
EN = "EN"
|
|
3024
|
-
}
|
|
3025
|
-
type UpdateLangResponse = "";
|
|
3026
|
-
declare const updateLangFactory: (ctx: ContextBase, api: API) => (language?: UpdateLangAvailableLanguages) => Promise<"">;
|
|
3027
|
-
|
|
3028
|
-
type UpdateProductCatalogPayload = {
|
|
3029
|
-
catalogId: string;
|
|
3030
|
-
productId: string;
|
|
3031
|
-
productName: string;
|
|
3032
|
-
price: string;
|
|
3033
|
-
description: string;
|
|
3034
|
-
createTime: number;
|
|
2985
|
+
mentions?: Mention[];
|
|
3035
2986
|
/**
|
|
3036
|
-
*
|
|
2987
|
+
* Attachments in the message (optional)
|
|
3037
2988
|
*/
|
|
3038
|
-
|
|
2989
|
+
attachments?: AttachmentSource | AttachmentSource[];
|
|
3039
2990
|
/**
|
|
3040
|
-
*
|
|
3041
|
-
*
|
|
3042
|
-
* You can manually get the URL using `uploadProductPhoto` api
|
|
2991
|
+
* Time to live in milliseconds
|
|
3043
2992
|
*/
|
|
3044
|
-
|
|
3045
|
-
};
|
|
3046
|
-
type UpdateProductCatalogResponse = {
|
|
3047
|
-
item: ProductCatalogItem;
|
|
3048
|
-
version_ls_catalog: number;
|
|
3049
|
-
version_catalog: number;
|
|
2993
|
+
ttl?: number;
|
|
3050
2994
|
};
|
|
3051
|
-
declare const
|
|
2995
|
+
declare const sendMessageFactory: (ctx: ContextBase, api: API) => (message: MessageContent | string, threadId: string, type?: ThreadType) => Promise<{
|
|
2996
|
+
message: SendMessageResult | null;
|
|
2997
|
+
attachment: SendMessageResult[];
|
|
2998
|
+
}>;
|
|
3052
2999
|
|
|
3053
3000
|
type UpdateProfilePayload = {
|
|
3054
3001
|
profile: {
|
|
@@ -3070,102 +3017,155 @@ type UpdateProfilePayload = {
|
|
|
3070
3017
|
type UpdateProfileResponse = "";
|
|
3071
3018
|
declare const updateProfileFactory: (ctx: ContextBase, api: API) => (payload: UpdateProfilePayload) => Promise<"">;
|
|
3072
3019
|
|
|
3073
|
-
type
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3020
|
+
type GetHiddenConversationsResponse = {
|
|
3021
|
+
pin: string;
|
|
3022
|
+
threads: {
|
|
3023
|
+
/**
|
|
3024
|
+
* 1: true, 0: false
|
|
3025
|
+
*/
|
|
3026
|
+
is_group: number;
|
|
3027
|
+
thread_id: string;
|
|
3028
|
+
}[];
|
|
3081
3029
|
};
|
|
3082
|
-
declare const
|
|
3030
|
+
declare const getHiddenConversationsFactory: (ctx: ContextBase, api: API) => () => Promise<GetHiddenConversationsResponse>;
|
|
3083
3031
|
|
|
3084
|
-
type
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3032
|
+
type GetBizAccountResponse = {
|
|
3033
|
+
biz?: {
|
|
3034
|
+
desc: string | null;
|
|
3035
|
+
cate: BusinessCategory;
|
|
3036
|
+
addr: string;
|
|
3037
|
+
website: string;
|
|
3038
|
+
email: string;
|
|
3039
|
+
};
|
|
3040
|
+
setting_start_page?: {
|
|
3041
|
+
enable_biz_label: number;
|
|
3042
|
+
enable_cate: number;
|
|
3043
|
+
enable_add: number;
|
|
3044
|
+
cta_profile: number;
|
|
3045
|
+
/**
|
|
3046
|
+
* Relative path used to build the catalog URL.
|
|
3047
|
+
*
|
|
3048
|
+
* Example: https://catalog.zalo.me/${cta_catalog}
|
|
3049
|
+
*/
|
|
3050
|
+
cta_catalog: string | null;
|
|
3051
|
+
} | null;
|
|
3052
|
+
pkgId: number;
|
|
3053
|
+
};
|
|
3054
|
+
declare const getBizAccountFactory: (ctx: ContextBase, api: API) => (friendId: string) => Promise<GetBizAccountResponse>;
|
|
3100
3055
|
|
|
3101
|
-
type
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
clientFileId: number;
|
|
3108
|
-
chunkId: number;
|
|
3109
|
-
fileType: "image";
|
|
3110
|
-
width: number;
|
|
3111
|
-
height: number;
|
|
3112
|
-
totalSize: number;
|
|
3113
|
-
hdSize: number;
|
|
3056
|
+
type GetFriendRequestStatusResponse = {
|
|
3057
|
+
addFriendPrivacy: number;
|
|
3058
|
+
isSeenFriendReq: boolean;
|
|
3059
|
+
is_friend: number;
|
|
3060
|
+
is_requested: number;
|
|
3061
|
+
is_requesting: number;
|
|
3114
3062
|
};
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3063
|
+
declare const getFriendRequestStatusFactory: (ctx: ContextBase, api: API) => (friendId: string) => Promise<GetFriendRequestStatusResponse>;
|
|
3064
|
+
|
|
3065
|
+
type FetchAccountInfoResponse = User;
|
|
3066
|
+
declare const fetchAccountInfoFactory: (ctx: ContextBase, api: API) => () => Promise<User>;
|
|
3067
|
+
|
|
3068
|
+
type DisableGroupLinkResponse = "";
|
|
3069
|
+
declare const disableGroupLinkFactory: (ctx: ContextBase, api: API) => (groupId: string) => Promise<"">;
|
|
3070
|
+
|
|
3071
|
+
type RemoveQuickMessageResponse = {
|
|
3072
|
+
itemIds: number[];
|
|
3073
|
+
version: number;
|
|
3125
3074
|
};
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3075
|
+
declare const removeQuickMessageFactory: (ctx: ContextBase, api: API) => (itemIds: number | number[]) => Promise<RemoveQuickMessageResponse>;
|
|
3076
|
+
|
|
3077
|
+
type RemoveReminderResponse = "" | number;
|
|
3078
|
+
declare const removeReminderFactory: (ctx: ContextBase, api: API) => (reminderId: string, threadId: string, type?: ThreadType) => Promise<RemoveReminderResponse>;
|
|
3079
|
+
|
|
3080
|
+
type DeleteGroupInviteBoxResponse = {
|
|
3081
|
+
delInvitaionIds: string[];
|
|
3082
|
+
errMap: {
|
|
3083
|
+
[groupId: string]: {
|
|
3084
|
+
err: number;
|
|
3085
|
+
};
|
|
3086
|
+
};
|
|
3136
3087
|
};
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3088
|
+
declare const deleteGroupInviteBoxFactory: (ctx: ContextBase, api: API) => (groupId: string | string[], blockFutureInvite?: boolean) => Promise<DeleteGroupInviteBoxResponse>;
|
|
3089
|
+
|
|
3090
|
+
type AddUnreadMarkResponse = {
|
|
3091
|
+
data: {
|
|
3092
|
+
updateId: number;
|
|
3093
|
+
};
|
|
3094
|
+
status: number;
|
|
3142
3095
|
};
|
|
3143
|
-
type
|
|
3144
|
-
|
|
3145
|
-
|
|
3096
|
+
declare const addUnreadMarkFactory: (ctx: ContextBase, api: API) => (threadId: string, type?: ThreadType) => Promise<AddUnreadMarkResponse>;
|
|
3097
|
+
|
|
3098
|
+
type GetQuickMessageListResponse = {
|
|
3099
|
+
cursor: number;
|
|
3100
|
+
version: number;
|
|
3101
|
+
items: QuickMessage[];
|
|
3146
3102
|
};
|
|
3147
|
-
|
|
3148
|
-
type UploadAttachmentResponse = UploadAttachmentType[];
|
|
3149
|
-
declare const uploadAttachmentFactory: (ctx: ContextBase, api: API) => (sources: AttachmentSource | AttachmentSource[], threadId: string, type?: ThreadType) => Promise<UploadAttachmentType[]>;
|
|
3103
|
+
declare const getQuickMessageListFactory: (ctx: ContextBase, api: API) => () => Promise<GetQuickMessageListResponse>;
|
|
3150
3104
|
|
|
3151
|
-
type
|
|
3152
|
-
|
|
3105
|
+
type GetGroupInviteBoxInfoPayload = {
|
|
3106
|
+
groupId: string;
|
|
3107
|
+
mpage?: number;
|
|
3108
|
+
mcount?: number;
|
|
3153
3109
|
};
|
|
3154
|
-
type
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3110
|
+
type GetGroupInviteBoxInfoResponse = {
|
|
3111
|
+
groupInfo: GroupInfo & {
|
|
3112
|
+
topic?: Omit<GroupTopic, "action">;
|
|
3113
|
+
};
|
|
3114
|
+
inviterInfo: {
|
|
3115
|
+
id: string;
|
|
3116
|
+
dName: string;
|
|
3117
|
+
zaloName: string;
|
|
3118
|
+
avatar: string;
|
|
3119
|
+
avatar_25: string;
|
|
3120
|
+
accountStatus: number;
|
|
3121
|
+
type: number;
|
|
3122
|
+
};
|
|
3123
|
+
grCreatorInfo: {
|
|
3124
|
+
id: string;
|
|
3125
|
+
dName: string;
|
|
3126
|
+
zaloName: string;
|
|
3127
|
+
avatar: string;
|
|
3128
|
+
avatar_25: string;
|
|
3129
|
+
accountStatus: number;
|
|
3130
|
+
type: number;
|
|
3131
|
+
};
|
|
3132
|
+
expiredTs: string;
|
|
3133
|
+
type: number;
|
|
3162
3134
|
};
|
|
3163
|
-
declare const
|
|
3135
|
+
declare const getGroupInviteBoxInfoFactory: (ctx: ContextBase, api: API) => (payload: GetGroupInviteBoxInfoPayload) => Promise<GetGroupInviteBoxInfoResponse>;
|
|
3136
|
+
|
|
3137
|
+
type GetSettingsResponse = UserSetting;
|
|
3138
|
+
declare const getSettingsFactory: (ctx: ContextBase, api: API) => () => Promise<UserSetting>;
|
|
3139
|
+
|
|
3140
|
+
type AddGroupBlockedMemberResponse = "";
|
|
3141
|
+
declare const addGroupBlockedMemberFactory: (ctx: ContextBase, api: API) => (memberId: string | string[], groupId: string) => Promise<"">;
|
|
3142
|
+
|
|
3143
|
+
declare const getStickersFactory: (ctx: ContextBase, api: API) => (keyword: string) => Promise<number[]>;
|
|
3164
3144
|
|
|
3165
|
-
type
|
|
3166
|
-
|
|
3145
|
+
type StickerDetail = {
|
|
3146
|
+
id: number;
|
|
3147
|
+
cateId: number;
|
|
3148
|
+
type: number;
|
|
3149
|
+
text: string;
|
|
3150
|
+
uri: string;
|
|
3151
|
+
fkey: number;
|
|
3152
|
+
status: number;
|
|
3153
|
+
stickerUrl: string;
|
|
3154
|
+
stickerSpriteUrl: string;
|
|
3155
|
+
stickerWebpUrl: unknown;
|
|
3156
|
+
totalFrames: number;
|
|
3157
|
+
duration: number;
|
|
3158
|
+
effectId: number;
|
|
3159
|
+
checksum: string;
|
|
3160
|
+
ext: number;
|
|
3161
|
+
source: number;
|
|
3162
|
+
fss: unknown;
|
|
3163
|
+
fssInfo: unknown;
|
|
3164
|
+
version: number;
|
|
3165
|
+
extInfo: unknown;
|
|
3167
3166
|
};
|
|
3168
|
-
|
|
3167
|
+
type StickerDetailResponse = StickerDetail[];
|
|
3168
|
+
declare const getStickersDetailFactory: (ctx: ContextBase, api: API) => (stickerIds: number | number[]) => Promise<StickerDetailResponse>;
|
|
3169
3169
|
|
|
3170
3170
|
/**
|
|
3171
3171
|
*
|
|
@@ -3217,140 +3217,140 @@ declare const customFactory: (ctx: ContextBase, api: API) => <T, K = any>(name:
|
|
|
3217
3217
|
declare class API {
|
|
3218
3218
|
zpwServiceMap: ZPWServiceMap;
|
|
3219
3219
|
listener: Listener;
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
blockUser: ReturnType<typeof blockUserFactory>;
|
|
3229
|
-
blockViewFeed: ReturnType<typeof blockViewFeedFactory>;
|
|
3230
|
-
changeAccountAvatar: ReturnType<typeof changeAccountAvatarFactory>;
|
|
3231
|
-
changeFriendAlias: ReturnType<typeof changeFriendAliasFactory>;
|
|
3232
|
-
changeGroupAvatar: ReturnType<typeof changeGroupAvatarFactory>;
|
|
3220
|
+
getListReminder: ReturnType<typeof getListReminderFactory>;
|
|
3221
|
+
removeUserFromGroup: ReturnType<typeof removeUserFromGroupFactory>;
|
|
3222
|
+
createReminder: ReturnType<typeof createReminderFactory>;
|
|
3223
|
+
sendReport: ReturnType<typeof sendReportFactory>;
|
|
3224
|
+
getGroupInviteBoxList: ReturnType<typeof getGroupInviteBoxListFactory>;
|
|
3225
|
+
setMute: ReturnType<typeof setMuteFactory>;
|
|
3226
|
+
getListBoard: ReturnType<typeof getListBoardFactory>;
|
|
3227
|
+
deleteChat: ReturnType<typeof deleteChatFactory>;
|
|
3233
3228
|
changeGroupName: ReturnType<typeof changeGroupNameFactory>;
|
|
3229
|
+
updateGroupSettings: ReturnType<typeof updateGroupSettingsFactory>;
|
|
3230
|
+
addPollOptions: ReturnType<typeof addPollOptionsFactory>;
|
|
3231
|
+
getReminderResponses: ReturnType<typeof getReminderResponsesFactory>;
|
|
3232
|
+
getMute: ReturnType<typeof getMuteFactory>;
|
|
3233
|
+
parseLink: ReturnType<typeof parseLinkFactory>;
|
|
3234
3234
|
changeGroupOwner: ReturnType<typeof changeGroupOwnerFactory>;
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
createGroup: ReturnType<typeof createGroupFactory>;
|
|
3238
|
-
createNote: ReturnType<typeof createNoteFactory>;
|
|
3239
|
-
createPoll: ReturnType<typeof createPollFactory>;
|
|
3240
|
-
createProductCatalog: ReturnType<typeof createProductCatalogFactory>;
|
|
3241
|
-
createReminder: ReturnType<typeof createReminderFactory>;
|
|
3242
|
-
deleteAutoReply: ReturnType<typeof deleteAutoReplyFactory>;
|
|
3243
|
-
deleteAvatar: ReturnType<typeof deleteAvatarFactory>;
|
|
3235
|
+
uploadAttachment: ReturnType<typeof uploadAttachmentFactory>;
|
|
3236
|
+
getProductCatalogList: ReturnType<typeof getProductCatalogListFactory>;
|
|
3244
3237
|
deleteCatalog: ReturnType<typeof deleteCatalogFactory>;
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
deleteMessage: ReturnType<typeof deleteMessageFactory>;
|
|
3248
|
-
deleteProductCatalog: ReturnType<typeof deleteProductCatalogFactory>;
|
|
3249
|
-
disableGroupLink: ReturnType<typeof disableGroupLinkFactory>;
|
|
3250
|
-
disperseGroup: ReturnType<typeof disperseGroupFactory>;
|
|
3251
|
-
editNote: ReturnType<typeof editNoteFactory>;
|
|
3252
|
-
editReminder: ReturnType<typeof editReminderFactory>;
|
|
3253
|
-
enableGroupLink: ReturnType<typeof enableGroupLinkFactory>;
|
|
3254
|
-
fetchAccountInfo: ReturnType<typeof fetchAccountInfoFactory>;
|
|
3255
|
-
findUser: ReturnType<typeof findUserFactory>;
|
|
3238
|
+
lastOnline: ReturnType<typeof lastOnlineFactory>;
|
|
3239
|
+
getGroupLinkInfo: ReturnType<typeof getGroupLinkInfoFactory>;
|
|
3256
3240
|
forwardMessage: ReturnType<typeof forwardMessageFactory>;
|
|
3257
|
-
getAliasList: ReturnType<typeof getAliasListFactory>;
|
|
3258
|
-
getAllFriends: ReturnType<typeof getAllFriendsFactory>;
|
|
3259
|
-
getAllGroups: ReturnType<typeof getAllGroupsFactory>;
|
|
3260
|
-
getArchivedChatList: ReturnType<typeof getArchivedChatListFactory>;
|
|
3261
|
-
getAutoDeleteChat: ReturnType<typeof getAutoDeleteChatFactory>;
|
|
3262
|
-
getAutoReplyList: ReturnType<typeof getAutoReplyListFactory>;
|
|
3263
|
-
getAvatarList: ReturnType<typeof getAvatarListFactory>;
|
|
3264
|
-
getBizAccount: ReturnType<typeof getBizAccountFactory>;
|
|
3265
|
-
getCatalogList: ReturnType<typeof getCatalogListFactory>;
|
|
3266
|
-
getContext: ReturnType<typeof getContextFactory>;
|
|
3267
3241
|
getCookie: ReturnType<typeof getCookieFactory>;
|
|
3268
|
-
|
|
3242
|
+
updateAutoReply: ReturnType<typeof updateAutoReplyFactory>;
|
|
3243
|
+
changeFriendAlias: ReturnType<typeof changeFriendAliasFactory>;
|
|
3244
|
+
findUser: ReturnType<typeof findUserFactory>;
|
|
3245
|
+
editReminder: ReturnType<typeof editReminderFactory>;
|
|
3246
|
+
reuseAvatar: ReturnType<typeof reuseAvatarFactory>;
|
|
3269
3247
|
getFriendOnlines: ReturnType<typeof getFriendOnlinesFactory>;
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
getGroupBlockedMember: ReturnType<typeof getGroupBlockedMemberFactory>;
|
|
3248
|
+
uploadProductPhoto: ReturnType<typeof uploadProductPhotoFactory>;
|
|
3249
|
+
sendBankCard: ReturnType<typeof sendBankCardFactory>;
|
|
3273
3250
|
getGroupInfo: ReturnType<typeof getGroupInfoFactory>;
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
getLabels: ReturnType<typeof getLabelsFactory>;
|
|
3281
|
-
getListBoard: ReturnType<typeof getListBoardFactory>;
|
|
3282
|
-
getListReminder: ReturnType<typeof getListReminderFactory>;
|
|
3283
|
-
getMute: ReturnType<typeof getMuteFactory>;
|
|
3251
|
+
deleteMessage: ReturnType<typeof deleteMessageFactory>;
|
|
3252
|
+
votePoll: ReturnType<typeof votePollFactory>;
|
|
3253
|
+
sendFriendRequest: ReturnType<typeof sendFriendRequestFactory>;
|
|
3254
|
+
resetHiddenConversPin: ReturnType<typeof resetHiddenConversPinFactory>;
|
|
3255
|
+
addUserToGroup: ReturnType<typeof addUserToGroupFactory>;
|
|
3256
|
+
deleteProductCatalog: ReturnType<typeof deleteProductCatalogFactory>;
|
|
3284
3257
|
getOwnId: ReturnType<typeof getOwnIdFactory>;
|
|
3285
|
-
|
|
3286
|
-
getPinConversations: ReturnType<typeof getPinConversationsFactory>;
|
|
3287
|
-
getPollDetail: ReturnType<typeof getPollDetailFactory>;
|
|
3288
|
-
getProductCatalogList: ReturnType<typeof getProductCatalogListFactory>;
|
|
3289
|
-
getQR: ReturnType<typeof getQRFactory>;
|
|
3290
|
-
getQuickMessageList: ReturnType<typeof getQuickMessageListFactory>;
|
|
3291
|
-
getRelatedFriendGroup: ReturnType<typeof getRelatedFriendGroupFactory>;
|
|
3292
|
-
getReminder: ReturnType<typeof getReminderFactory>;
|
|
3293
|
-
getReminderResponses: ReturnType<typeof getReminderResponsesFactory>;
|
|
3294
|
-
getSentFriendRequest: ReturnType<typeof getSentFriendRequestFactory>;
|
|
3295
|
-
getSettings: ReturnType<typeof getSettingsFactory>;
|
|
3296
|
-
getStickers: ReturnType<typeof getStickersFactory>;
|
|
3297
|
-
getStickersDetail: ReturnType<typeof getStickersDetailFactory>;
|
|
3298
|
-
getUnreadMark: ReturnType<typeof getUnreadMarkFactory>;
|
|
3299
|
-
getUserInfo: ReturnType<typeof getUserInfoFactory>;
|
|
3300
|
-
inviteUserToGroups: ReturnType<typeof inviteUserToGroupsFactory>;
|
|
3258
|
+
undo: ReturnType<typeof undoFactory>;
|
|
3301
3259
|
joinGroupInviteBox: ReturnType<typeof joinGroupInviteBoxFactory>;
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
lockPoll: ReturnType<typeof lockPollFactory>;
|
|
3307
|
-
parseLink: ReturnType<typeof parseLinkFactory>;
|
|
3308
|
-
rejectFriendRequest: ReturnType<typeof rejectFriendRequestFactory>;
|
|
3309
|
-
removeFriend: ReturnType<typeof removeFriendFactory>;
|
|
3310
|
-
removeFriendAlias: ReturnType<typeof removeFriendAliasFactory>;
|
|
3311
|
-
removeGroupBlockedMember: ReturnType<typeof removeGroupBlockedMemberFactory>;
|
|
3260
|
+
deleteAutoReply: ReturnType<typeof deleteAutoReplyFactory>;
|
|
3261
|
+
setPinnedConversations: ReturnType<typeof setPinnedConversationsFactory>;
|
|
3262
|
+
undoFriendRequest: ReturnType<typeof undoFriendRequestFactory>;
|
|
3263
|
+
getPendingGroupMembers: ReturnType<typeof getPendingGroupMembersFactory>;
|
|
3312
3264
|
removeGroupDeputy: ReturnType<typeof removeGroupDeputyFactory>;
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
removeUserFromGroup: ReturnType<typeof removeUserFromGroupFactory>;
|
|
3317
|
-
resetHiddenConversPin: ReturnType<typeof resetHiddenConversPinFactory>;
|
|
3318
|
-
reuseAvatar: ReturnType<typeof reuseAvatarFactory>;
|
|
3265
|
+
getAllGroups: ReturnType<typeof getAllGroupsFactory>;
|
|
3266
|
+
changeGroupAvatar: ReturnType<typeof changeGroupAvatarFactory>;
|
|
3267
|
+
updateQuickMessage: ReturnType<typeof updateQuickMessageFactory>;
|
|
3319
3268
|
reviewPendingMemberRequest: ReturnType<typeof reviewPendingMemberRequestFactory>;
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
sendFriendRequest: ReturnType<typeof sendFriendRequestFactory>;
|
|
3269
|
+
addGroupDeputy: ReturnType<typeof addGroupDeputyFactory>;
|
|
3270
|
+
rejectFriendRequest: ReturnType<typeof rejectFriendRequestFactory>;
|
|
3271
|
+
createPoll: ReturnType<typeof createPollFactory>;
|
|
3324
3272
|
sendLink: ReturnType<typeof sendLinkFactory>;
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3273
|
+
createAutoReply: ReturnType<typeof createAutoReplyFactory>;
|
|
3274
|
+
setHiddenConversations: ReturnType<typeof setHiddenConversationsFactory>;
|
|
3275
|
+
getContext: ReturnType<typeof getContextFactory>;
|
|
3276
|
+
joinGroupLink: ReturnType<typeof joinGroupLinkFactory>;
|
|
3277
|
+
getGroupBlockedMember: ReturnType<typeof getGroupBlockedMemberFactory>;
|
|
3278
|
+
updateSettings: ReturnType<typeof updateSettingsFactory>;
|
|
3279
|
+
sendDeliveredEvent: ReturnType<typeof sendDeliveredEventFactory>;
|
|
3280
|
+
getAvatarList: ReturnType<typeof getAvatarListFactory>;
|
|
3281
|
+
disperseGroup: ReturnType<typeof disperseGroupFactory>;
|
|
3282
|
+
createNote: ReturnType<typeof createNoteFactory>;
|
|
3283
|
+
unblockUser: ReturnType<typeof unblockUserFactory>;
|
|
3284
|
+
lockPoll: ReturnType<typeof lockPollFactory>;
|
|
3285
|
+
editNote: ReturnType<typeof editNoteFactory>;
|
|
3286
|
+
createProductCatalog: ReturnType<typeof createProductCatalogFactory>;
|
|
3287
|
+
changeAccountAvatar: ReturnType<typeof changeAccountAvatarFactory>;
|
|
3288
|
+
updateLang: ReturnType<typeof updateLangFactory>;
|
|
3289
|
+
getArchivedChatList: ReturnType<typeof getArchivedChatListFactory>;
|
|
3290
|
+
removeFriendAlias: ReturnType<typeof removeFriendAliasFactory>;
|
|
3291
|
+
getQR: ReturnType<typeof getQRFactory>;
|
|
3328
3292
|
sendSticker: ReturnType<typeof sendStickerFactory>;
|
|
3293
|
+
getFriendRecommendations: ReturnType<typeof getFriendRecommendationsFactory>;
|
|
3294
|
+
updateLabels: ReturnType<typeof updateLabelsFactory>;
|
|
3295
|
+
updateActiveStatus: ReturnType<typeof updateActiveStatusFactory>;
|
|
3329
3296
|
sendTypingEvent: ReturnType<typeof sendTypingEventFactory>;
|
|
3330
|
-
|
|
3297
|
+
removeGroupBlockedMember: ReturnType<typeof removeGroupBlockedMemberFactory>;
|
|
3298
|
+
getAutoDeleteChat: ReturnType<typeof getAutoDeleteChatFactory>;
|
|
3299
|
+
getAliasList: ReturnType<typeof getAliasListFactory>;
|
|
3300
|
+
getLabels: ReturnType<typeof getLabelsFactory>;
|
|
3301
|
+
addQuickMessage: ReturnType<typeof addQuickMessageFactory>;
|
|
3302
|
+
getPinConversations: ReturnType<typeof getPinConversationsFactory>;
|
|
3331
3303
|
sendVoice: ReturnType<typeof sendVoiceFactory>;
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3304
|
+
keepAlive: ReturnType<typeof keepAliveFactory>;
|
|
3305
|
+
sendSeenEvent: ReturnType<typeof sendSeenEventFactory>;
|
|
3306
|
+
leaveGroup: ReturnType<typeof leaveGroupFactory>;
|
|
3307
|
+
acceptFriendRequest: ReturnType<typeof acceptFriendRequestFactory>;
|
|
3308
|
+
getReminder: ReturnType<typeof getReminderFactory>;
|
|
3309
|
+
updateCatalog: ReturnType<typeof updateCatalogFactory>;
|
|
3310
|
+
createGroup: ReturnType<typeof createGroupFactory>;
|
|
3311
|
+
getSentFriendRequest: ReturnType<typeof getSentFriendRequestFactory>;
|
|
3312
|
+
deleteAvatar: ReturnType<typeof deleteAvatarFactory>;
|
|
3313
|
+
getUnreadMark: ReturnType<typeof getUnreadMarkFactory>;
|
|
3314
|
+
getAutoReplyList: ReturnType<typeof getAutoReplyListFactory>;
|
|
3315
|
+
getAllFriends: ReturnType<typeof getAllFriendsFactory>;
|
|
3316
|
+
getGroupLinkDetail: ReturnType<typeof getGroupLinkDetailFactory>;
|
|
3317
|
+
createCatalog: ReturnType<typeof createCatalogFactory>;
|
|
3318
|
+
enableGroupLink: ReturnType<typeof enableGroupLinkFactory>;
|
|
3319
|
+
getPollDetail: ReturnType<typeof getPollDetailFactory>;
|
|
3320
|
+
blockViewFeed: ReturnType<typeof blockViewFeedFactory>;
|
|
3321
|
+
updateProductCatalog: ReturnType<typeof updateProductCatalogFactory>;
|
|
3322
|
+
sendVideo: ReturnType<typeof sendVideoFactory>;
|
|
3323
|
+
getCatalogList: ReturnType<typeof getCatalogListFactory>;
|
|
3324
|
+
getUserInfo: ReturnType<typeof getUserInfoFactory>;
|
|
3335
3325
|
sharePoll: ReturnType<typeof sharePollFactory>;
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3326
|
+
getGroupMembersInfo: ReturnType<typeof getGroupMembersInfoFactory>;
|
|
3327
|
+
removeUnreadMark: ReturnType<typeof removeUnreadMarkFactory>;
|
|
3328
|
+
getFriendBoardList: ReturnType<typeof getFriendBoardListFactory>;
|
|
3329
|
+
addReaction: ReturnType<typeof addReactionFactory>;
|
|
3330
|
+
removeFriend: ReturnType<typeof removeFriendFactory>;
|
|
3340
3331
|
updateAutoDeleteChat: ReturnType<typeof updateAutoDeleteChatFactory>;
|
|
3341
|
-
updateAutoReply: ReturnType<typeof updateAutoReplyFactory>;
|
|
3342
|
-
updateCatalog: ReturnType<typeof updateCatalogFactory>;
|
|
3343
|
-
updateGroupSettings: ReturnType<typeof updateGroupSettingsFactory>;
|
|
3344
3332
|
updateHiddenConversPin: ReturnType<typeof updateHiddenConversPinFactory>;
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3333
|
+
sendCard: ReturnType<typeof sendCardFactory>;
|
|
3334
|
+
getRelatedFriendGroup: ReturnType<typeof getRelatedFriendGroupFactory>;
|
|
3335
|
+
inviteUserToGroups: ReturnType<typeof inviteUserToGroupsFactory>;
|
|
3336
|
+
blockUser: ReturnType<typeof blockUserFactory>;
|
|
3337
|
+
sendMessage: ReturnType<typeof sendMessageFactory>;
|
|
3348
3338
|
updateProfile: ReturnType<typeof updateProfileFactory>;
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3339
|
+
getHiddenConversations: ReturnType<typeof getHiddenConversationsFactory>;
|
|
3340
|
+
getBizAccount: ReturnType<typeof getBizAccountFactory>;
|
|
3341
|
+
getFriendRequestStatus: ReturnType<typeof getFriendRequestStatusFactory>;
|
|
3342
|
+
fetchAccountInfo: ReturnType<typeof fetchAccountInfoFactory>;
|
|
3343
|
+
disableGroupLink: ReturnType<typeof disableGroupLinkFactory>;
|
|
3344
|
+
removeQuickMessage: ReturnType<typeof removeQuickMessageFactory>;
|
|
3345
|
+
removeReminder: ReturnType<typeof removeReminderFactory>;
|
|
3346
|
+
deleteGroupInviteBox: ReturnType<typeof deleteGroupInviteBoxFactory>;
|
|
3347
|
+
addUnreadMark: ReturnType<typeof addUnreadMarkFactory>;
|
|
3348
|
+
getQuickMessageList: ReturnType<typeof getQuickMessageListFactory>;
|
|
3349
|
+
getGroupInviteBoxInfo: ReturnType<typeof getGroupInviteBoxInfoFactory>;
|
|
3350
|
+
getSettings: ReturnType<typeof getSettingsFactory>;
|
|
3351
|
+
addGroupBlockedMember: ReturnType<typeof addGroupBlockedMemberFactory>;
|
|
3352
|
+
getStickers: ReturnType<typeof getStickersFactory>;
|
|
3353
|
+
getStickersDetail: ReturnType<typeof getStickersDetailFactory>;
|
|
3354
3354
|
custom: ReturnType<typeof customFactory>;
|
|
3355
3355
|
constructor(ctx: ContextSession, zpwServiceMap: ZPWServiceMap, wsUrls: string[]);
|
|
3356
3356
|
}
|