wolfsocket 1.0.5 → 1.0.7
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/WAProto/WAProto.proto +10 -1
- package/WAProto/index.d.ts +26 -0
- package/WAProto/index.js +18415 -8908
- package/lib/Defaults/index.d.ts +6 -0
- package/lib/Defaults/index.d.ts.map +1 -1
- package/lib/Defaults/index.js +18 -1
- package/lib/Defaults/index.js.map +1 -1
- package/lib/Signal/lid-mapping.js +1 -1
- package/lib/Signal/lid-mapping.js.map +1 -1
- package/lib/Socket/business.d.ts +175 -7
- package/lib/Socket/business.d.ts.map +1 -1
- package/lib/Socket/channelPollVote.d.ts +44 -0
- package/lib/Socket/channelPollVote.d.ts.map +1 -0
- package/lib/Socket/channelPollVote.js +65 -0
- package/lib/Socket/channelPollVote.js.map +1 -0
- package/lib/Socket/channelSchedule.d.ts +229 -0
- package/lib/Socket/channelSchedule.d.ts.map +1 -0
- package/lib/Socket/channelSchedule.js +465 -0
- package/lib/Socket/channelSchedule.js.map +1 -0
- package/lib/Socket/channelStatus.d.ts +317 -0
- package/lib/Socket/channelStatus.d.ts.map +1 -0
- package/lib/Socket/channelStatus.js +479 -0
- package/lib/Socket/channelStatus.js.map +1 -0
- package/lib/Socket/chats.d.ts +30 -5
- package/lib/Socket/chats.d.ts.map +1 -1
- package/lib/Socket/chats.js +117 -2
- package/lib/Socket/chats.js.map +1 -1
- package/lib/Socket/communities.d.ts +177 -8
- package/lib/Socket/communities.d.ts.map +1 -1
- package/lib/Socket/communities.js +22 -6
- package/lib/Socket/communities.js.map +1 -1
- package/lib/Socket/groupHistory.d.ts +38 -0
- package/lib/Socket/groupHistory.d.ts.map +1 -0
- package/lib/Socket/groupHistory.js +88 -0
- package/lib/Socket/groupHistory.js.map +1 -0
- package/lib/Socket/groupStatus.d.ts +10 -2
- package/lib/Socket/groupStatus.d.ts.map +1 -1
- package/lib/Socket/groupStatus.js +21 -4
- package/lib/Socket/groupStatus.js.map +1 -1
- package/lib/Socket/groups.d.ts +11 -5
- package/lib/Socket/groups.d.ts.map +1 -1
- package/lib/Socket/groups.js +9 -2
- package/lib/Socket/groups.js.map +1 -1
- package/lib/Socket/index.d.ts +175 -7
- package/lib/Socket/index.d.ts.map +1 -1
- package/lib/Socket/messages-recv.d.ts +175 -7
- package/lib/Socket/messages-recv.d.ts.map +1 -1
- package/lib/Socket/messages-recv.js +152 -34
- package/lib/Socket/messages-recv.js.map +1 -1
- package/lib/Socket/messages-send.d.ts +212 -8
- package/lib/Socket/messages-send.d.ts.map +1 -1
- package/lib/Socket/messages-send.js +512 -135
- package/lib/Socket/messages-send.js.map +1 -1
- package/lib/Socket/newsletter.d.ts +11 -5
- package/lib/Socket/newsletter.d.ts.map +1 -1
- package/lib/Socket/newsletterDirectory.d.ts +201 -0
- package/lib/Socket/newsletterDirectory.d.ts.map +1 -0
- package/lib/Socket/newsletterDirectory.js +291 -0
- package/lib/Socket/newsletterDirectory.js.map +1 -0
- package/lib/Socket/payment.d.ts +37 -0
- package/lib/Socket/payment.d.ts.map +1 -0
- package/lib/Socket/payment.js +124 -0
- package/lib/Socket/payment.js.map +1 -0
- package/lib/Socket/report.d.ts +70 -0
- package/lib/Socket/report.d.ts.map +1 -0
- package/lib/Socket/report.js +265 -0
- package/lib/Socket/report.js.map +1 -0
- package/lib/Socket/socket.d.ts.map +1 -1
- package/lib/Socket/socket.js +17 -5
- package/lib/Socket/socket.js.map +1 -1
- package/lib/Socket/stickerPack.d.ts +29 -0
- package/lib/Socket/stickerPack.d.ts.map +1 -0
- package/lib/Socket/stickerPack.js +130 -0
- package/lib/Socket/stickerPack.js.map +1 -0
- package/lib/Socket/username.d.ts +55 -0
- package/lib/Socket/username.d.ts.map +1 -0
- package/lib/Socket/username.js +114 -0
- package/lib/Socket/username.js.map +1 -0
- package/lib/Types/ChannelStatus.d.ts +34 -0
- package/lib/Types/ChannelStatus.d.ts.map +1 -0
- package/lib/Types/ChannelStatus.js +2 -0
- package/lib/Types/ChannelStatus.js.map +1 -0
- package/lib/Types/Chat.d.ts +17 -0
- package/lib/Types/Chat.d.ts.map +1 -1
- package/lib/Types/Chat.js.map +1 -1
- package/lib/Types/Events.d.ts +4 -0
- package/lib/Types/Events.d.ts.map +1 -1
- package/lib/Types/GroupMetadata.d.ts +2 -0
- package/lib/Types/GroupMetadata.d.ts.map +1 -1
- package/lib/Types/Message.d.ts +123 -3
- package/lib/Types/Message.d.ts.map +1 -1
- package/lib/Types/Payment.d.ts +47 -0
- package/lib/Types/Payment.d.ts.map +1 -0
- package/lib/Types/Payment.js +2 -0
- package/lib/Types/Payment.js.map +1 -0
- package/lib/Types/Report.d.ts +219 -0
- package/lib/Types/Report.d.ts.map +1 -0
- package/lib/Types/Report.js +166 -0
- package/lib/Types/Report.js.map +1 -0
- package/lib/Types/StickerPack.d.ts +52 -0
- package/lib/Types/StickerPack.d.ts.map +1 -0
- package/lib/Types/StickerPack.js +2 -0
- package/lib/Types/StickerPack.js.map +1 -0
- package/lib/Types/Username.d.ts +19 -0
- package/lib/Types/Username.d.ts.map +1 -0
- package/lib/Types/Username.js +2 -0
- package/lib/Types/Username.js.map +1 -0
- package/lib/Types/index.d.ts +5 -0
- package/lib/Types/index.d.ts.map +1 -1
- package/lib/Types/index.js +5 -0
- package/lib/Types/index.js.map +1 -1
- package/lib/Utils/chat-utils.d.ts.map +1 -1
- package/lib/Utils/chat-utils.js +19 -1
- package/lib/Utils/chat-utils.js.map +1 -1
- package/lib/Utils/decode-wa-message.d.ts.map +1 -1
- package/lib/Utils/decode-wa-message.js +4 -1
- package/lib/Utils/decode-wa-message.js.map +1 -1
- package/lib/Utils/event-buffer.js +21 -1
- package/lib/Utils/event-buffer.js.map +1 -1
- package/lib/Utils/generics.js +1 -1
- package/lib/Utils/group-history.d.ts +37 -0
- package/lib/Utils/group-history.d.ts.map +1 -0
- package/lib/Utils/group-history.js +55 -0
- package/lib/Utils/group-history.js.map +1 -0
- package/lib/Utils/index.d.ts +3 -0
- package/lib/Utils/index.d.ts.map +1 -1
- package/lib/Utils/index.js +3 -0
- package/lib/Utils/index.js.map +1 -1
- package/lib/Utils/link-preview.d.ts.map +1 -1
- package/lib/Utils/link-preview.js +21 -7
- package/lib/Utils/link-preview.js.map +1 -1
- package/lib/Utils/message-retry-manager.d.ts +4 -0
- package/lib/Utils/message-retry-manager.d.ts.map +1 -1
- package/lib/Utils/message-retry-manager.js +11 -0
- package/lib/Utils/message-retry-manager.js.map +1 -1
- package/lib/Utils/messages-media.d.ts +25 -9
- package/lib/Utils/messages-media.d.ts.map +1 -1
- package/lib/Utils/messages-media.js +114 -27
- package/lib/Utils/messages-media.js.map +1 -1
- package/lib/Utils/messages.d.ts +89 -2
- package/lib/Utils/messages.d.ts.map +1 -1
- package/lib/Utils/messages.js +414 -15
- package/lib/Utils/messages.js.map +1 -1
- package/lib/Utils/offline-node-processor.d.ts +1 -1
- package/lib/Utils/offline-node-processor.d.ts.map +1 -1
- package/lib/Utils/process-message.d.ts +25 -0
- package/lib/Utils/process-message.d.ts.map +1 -1
- package/lib/Utils/process-message.js +60 -2
- package/lib/Utils/process-message.js.map +1 -1
- package/lib/Utils/reporting-utils.d.ts +7 -0
- package/lib/Utils/reporting-utils.d.ts.map +1 -1
- package/lib/Utils/reporting-utils.js +7 -0
- package/lib/Utils/reporting-utils.js.map +1 -1
- package/lib/Utils/sync-key-auto-resolve.d.ts +10 -0
- package/lib/Utils/sync-key-auto-resolve.d.ts.map +1 -0
- package/lib/Utils/sync-key-auto-resolve.js +33 -0
- package/lib/Utils/sync-key-auto-resolve.js.map +1 -0
- package/lib/Utils/use-multi-file-auth-state.d.ts.map +1 -1
- package/lib/Utils/use-multi-file-auth-state.js +34 -2
- package/lib/Utils/use-multi-file-auth-state.js.map +1 -1
- package/lib/Utils/validate-connection.d.ts.map +1 -1
- package/lib/Utils/validate-connection.js +3 -2
- package/lib/Utils/validate-connection.js.map +1 -1
- package/lib/Utils/zip.d.ts +11 -0
- package/lib/Utils/zip.d.ts.map +1 -0
- package/lib/Utils/zip.js +88 -0
- package/lib/Utils/zip.js.map +1 -0
- package/lib/WABinary/generic-utils.d.ts +7 -0
- package/lib/WABinary/generic-utils.d.ts.map +1 -1
- package/lib/WABinary/generic-utils.js +88 -0
- package/lib/WABinary/generic-utils.js.map +1 -1
- package/package.json +3 -3
package/lib/Socket/index.d.ts
CHANGED
|
@@ -74,8 +74,161 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
|
|
|
74
74
|
};
|
|
75
75
|
issuePrivacyTokens: (jids: string[], timestamp?: number) => Promise<any>;
|
|
76
76
|
assertSessions: (jids: string[], force?: boolean) => Promise<boolean>;
|
|
77
|
-
relayMessage: (jid: string, message: import("../index.js").proto.IMessage, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, useCachedGroupMetadata, statusJidList }: import("../index.js").MessageRelayOptions) => Promise<string>;
|
|
78
|
-
sendGroupStatus: (jid: string, content: import("../index.js").AnyMessageContent) => Promise<import("../index.js").WAMessage>;
|
|
77
|
+
relayMessage: (jid: string, message: import("../index.js").proto.IMessage, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, useCachedGroupMetadata, statusJidList, addBizAttributes }: import("../index.js").MessageRelayOptions) => Promise<string>;
|
|
78
|
+
sendGroupStatus: (jid: string, content: import("../index.js").AnyMessageContent, options?: import("./groupStatus.js").GroupStatusOptions) => Promise<import("../index.js").WAMessage>;
|
|
79
|
+
sendChannelStatus: (jid: string, content: import("../index.js").AnyMessageContent, options?: import("./channelStatus.js").ChannelStatusOptions) => Promise<import("./channelStatus.js").ChannelStatusSent>;
|
|
80
|
+
newsletterSendStatus: (jid: string, content: import("./channelStatus.js").ChannelStatusContent, options?: import("./channelStatus.js").ChannelStatusOptions) => Promise<import("./channelStatus.js").NewsletterStatusSent>;
|
|
81
|
+
newsletterReactStatus: (jid: string, serverId: string, reaction: string | null) => Promise<void>;
|
|
82
|
+
newsletterRevokeStatus: (jid: string, statusId: string) => Promise<import("../index.js").BinaryNode>;
|
|
83
|
+
newsletterFetchStatus: (jid: string, options: import("./channelStatus.js").ChannelStatusFetchOptions) => Promise<import("./channelStatus.js").ChannelStatusFetchResult>;
|
|
84
|
+
newsletterFetchStatusResponses: (jid: string, serverId: string, options: import("./channelStatus.js").ChannelStatusResponsesOptions) => Promise<import("./channelStatus.js").ChannelStatusResponsesResult>;
|
|
85
|
+
newsletterSendStatusViewReceipt: (jid: string, receiptStanzaId: string, sortId: number) => Promise<void>;
|
|
86
|
+
newsletterScheduleChannelPost: (jid: string, content: import("../index.js").AnyMessageContent, publishAtMs: number, options?: import("./channelSchedule.js").ChannelScheduleOptions) => Promise<import("./channelSchedule.js").ChannelScheduledPost>;
|
|
87
|
+
newsletterRescheduleChannelPost: (jid: string, clientId: string, content: import("../index.js").AnyMessageContent, publishAtMs: number, options?: import("./channelSchedule.js").ChannelScheduleOptions) => Promise<import("./channelSchedule.js").ChannelScheduledPost>;
|
|
88
|
+
newsletterSendChannelPostNow: (jid: string, clientId: string, content: import("../index.js").AnyMessageContent, options?: import("./channelSchedule.js").ChannelScheduleOptions) => Promise<import("./channelSchedule.js").ChannelScheduledPost>;
|
|
89
|
+
newsletterCancelChannelPost: (jid: string, clientId: string) => Promise<import("../index.js").BinaryNode>;
|
|
90
|
+
newsletterFetchChannelScheduledPosts: (jid: string, options: import("./channelSchedule.js").ChannelScheduleFetchOptions) => Promise<import("./channelSchedule.js").ChannelScheduleFetchResult>;
|
|
91
|
+
newsletterDirectorySearch: (searchText: string, options?: import("./newsletterDirectory.js").NewsletterDirectorySearchOptions) => Promise<import("./newsletterDirectory.js").NewsletterDirectoryResult>;
|
|
92
|
+
newsletterDirectoryList: (options?: import("./newsletterDirectory.js").NewsletterDirectoryListOptions) => Promise<import("./newsletterDirectory.js").NewsletterDirectoryResult>;
|
|
93
|
+
pinMessage: (jid: string, key: import("../index.js").WAMessageKey, duration?: 86400 | 604800 | 2592000) => Promise<import("../index.js").WAMessage | undefined>;
|
|
94
|
+
unpinMessage: (jid: string, key: import("../index.js").WAMessageKey) => Promise<import("../index.js").WAMessage | undefined>;
|
|
95
|
+
sendPersonalStatus: (content: import("../index.js").AnyMessageContent, options?: import("../index.js").MiscMessageGenerationOptions) => Promise<import("../index.js").WAMessage | undefined>;
|
|
96
|
+
sendCloseFriendsStatus: (content: import("../index.js").AnyMessageContent, closeFriendJids: string[], options?: import("../index.js").MiscMessageGenerationOptions) => Promise<import("../index.js").WAMessage | undefined>;
|
|
97
|
+
markStatusViewed: (key: import("../index.js").WAMessageKey, participant?: string) => Promise<void>;
|
|
98
|
+
reactToStatus: (jid: string, key: import("../index.js").WAMessageKey, emoji: string, statusJidList?: string[]) => Promise<import("../index.js").WAMessage | undefined>;
|
|
99
|
+
sendGroupHistory: (jid: string, receivers: string[], messages: import("../index.js").proto.IWebMessageInfo[], options?: import("./groupHistory.js").SendGroupHistoryOptions) => Promise<import("./groupHistory.js").SendGroupHistoryResult>;
|
|
100
|
+
checkUsername: (username: string, includeSuggestions?: boolean, sessionId?: string) => Promise<import("../index.js").UsernameCheckResult>;
|
|
101
|
+
checkUsernameMulti: (usernames: string[]) => Promise<unknown>;
|
|
102
|
+
setUsername: (username: string, options?: import("../index.js").SetUsernameOptions) => Promise<unknown>;
|
|
103
|
+
deleteUsername: () => Promise<unknown>;
|
|
104
|
+
getMyUsername: () => Promise<string | null>;
|
|
105
|
+
getUsernameRecommendations: (source?: import("../index.js").UsernameSource | null) => Promise<unknown>;
|
|
106
|
+
setUsernamePin: (pin: string | null) => Promise<unknown>;
|
|
107
|
+
findUserByUsername: (username: string, pin?: string) => Promise<import("../index.js").UsernameUser | null>;
|
|
108
|
+
fetchContactUsernames: (...jids: string[]) => Promise<import("../index.js").USyncQueryResultList[]>;
|
|
109
|
+
setUsernameQueryIds: (ids: Partial<import("./username.js").UsernameQueryIds>) => {
|
|
110
|
+
CHECK: string;
|
|
111
|
+
CHECK_MULTI: string;
|
|
112
|
+
SET: string;
|
|
113
|
+
GET: string;
|
|
114
|
+
GET_RECOMMENDATIONS: string;
|
|
115
|
+
PIN_SET: string;
|
|
116
|
+
};
|
|
117
|
+
USERNAME_QUERY_IDS: {
|
|
118
|
+
CHECK: string;
|
|
119
|
+
CHECK_MULTI: string;
|
|
120
|
+
SET: string;
|
|
121
|
+
GET: string;
|
|
122
|
+
GET_RECOMMENDATIONS: string;
|
|
123
|
+
PIN_SET: string;
|
|
124
|
+
};
|
|
125
|
+
USERNAME_CHECK_RESULT: {
|
|
126
|
+
readonly SUCCESS: "SUCCESS";
|
|
127
|
+
readonly INVALID: "INVALID";
|
|
128
|
+
};
|
|
129
|
+
USERNAME_SOURCE: {
|
|
130
|
+
readonly FB: "FB";
|
|
131
|
+
readonly IG: "IG";
|
|
132
|
+
readonly USER_INPUT: "USER_INPUT";
|
|
133
|
+
readonly SUGGESTION: "SUGGESTION";
|
|
134
|
+
};
|
|
135
|
+
reportSpam: {
|
|
136
|
+
(messages: import("../index.js").WAMessage[], options?: import("../index.js").SpamReportOptions): Promise<import("../index.js").SpamReportResult[]>;
|
|
137
|
+
(jid: string, options?: import("../index.js").SpamReportOptions): Promise<import("../index.js").SpamReportTargetResult>;
|
|
138
|
+
};
|
|
139
|
+
reportContact: (jid: string, messages: import("../index.js").WAMessage[], options?: import("../index.js").SpamReportOptions) => Promise<import("../index.js").SpamReportResult[]>;
|
|
140
|
+
reportGroup: (jid: string, messages: import("../index.js").WAMessage[], options?: import("../index.js").SpamReportOptions) => Promise<import("../index.js").SpamReportResult[]>;
|
|
141
|
+
reportStatus: (jid: string, messages: import("../index.js").WAMessage[], options?: import("../index.js").SpamReportOptions) => Promise<import("../index.js").SpamReportResult[]>;
|
|
142
|
+
reportNewsletter: (jid: string, messages: import("../index.js").WAMessage[], options?: import("../index.js").SpamReportOptions) => Promise<import("../index.js").SpamReportResult[]>;
|
|
143
|
+
reportChannelStatus: (jid: string, messages: import("../index.js").WAMessage[], options?: import("../index.js").SpamReportOptions) => Promise<import("../index.js").SpamReportResult[]>;
|
|
144
|
+
reportEvent: (jid: string, messages: import("../index.js").WAMessage[], options?: import("../index.js").SpamReportOptions) => Promise<import("../index.js").SpamReportResult[]>;
|
|
145
|
+
reportAndBlock: (jid: string, messages: import("../index.js").WAMessage[], options?: import("../index.js").SpamReportOptions) => Promise<import("../index.js").SpamReportResult[]>;
|
|
146
|
+
SPAM_FLOWS: {
|
|
147
|
+
readonly CHAT: "chat";
|
|
148
|
+
readonly MESSAGE_MENU: "message_menu";
|
|
149
|
+
readonly OVERFLOW_MENU: "overflow_menu_report";
|
|
150
|
+
readonly ACCOUNT_INFO: "account_info_report";
|
|
151
|
+
readonly ONE_TO_ONE_SPAM_BANNER: "1_1_spam_banner_report";
|
|
152
|
+
readonly GROUP_INFO: "group_info_report";
|
|
153
|
+
readonly GROUP_SPAM_BANNER: "group_spam_banner_report";
|
|
154
|
+
readonly STATUS_POST: "status_post_report";
|
|
155
|
+
readonly NEWSLETTER_INFO: "newsletter_info_report";
|
|
156
|
+
readonly WAMO_CHANNEL: "wamo_channel_report";
|
|
157
|
+
readonly CHANNEL_STATUS: "channel_status_report";
|
|
158
|
+
readonly EVENT_INFO: "event_info_report";
|
|
159
|
+
readonly EVENT_HOME: "event_home_report";
|
|
160
|
+
readonly ACCOUNT_INFO_REPORT_AS_GUEST_USER: "account_info_report_as_guest_user";
|
|
161
|
+
readonly ALBUM_MEDIA_MENU_REPORT: "album_media_menu_report";
|
|
162
|
+
readonly CALL_DETAIL_OVERFLOW_REPORT: "call_detail_overflow_report";
|
|
163
|
+
readonly CALL_DETAIL_SAFETY_TOOLS_REPORT: "call_detail_safety_tools_report";
|
|
164
|
+
readonly CALL_SPAM_DIALOG_REPORT: "call_spam_dialog_report";
|
|
165
|
+
readonly CHAT_FMX_CARD_REPORT_AS_GUEST_USER: "chat_fmx_card_report_as_guest_user";
|
|
166
|
+
readonly CHAT_FMX_CARD_SAFETY_TOOLS_REPORT: "chat_fmx_card_safety_tools_report";
|
|
167
|
+
readonly CHAT_FMX_CARD_SAFETY_TOOLS_REPORT_SUSPICIOUS: "chat_fmx_card_safety_tools_report_suspicious";
|
|
168
|
+
readonly CHAT_LIST_SWIPE_DELETE_REPORT_UPSELL: "chat_list_swipe_delete_report_upsell";
|
|
169
|
+
readonly CHAT_THEME_SCREEN_OVERFLOW_MENU_REPORT: "chat_theme_screen_overflow_menu_report";
|
|
170
|
+
readonly DEPENDANT_CHAT_REQUEST_BANNER_DECLINE_REPORT_UPSELL: "dependant_chat_request_banner_decline_report_upsell";
|
|
171
|
+
readonly EXTENSION_MENU_REPORT: "extension_menu_report";
|
|
172
|
+
readonly GROUP_CHATLIST_LEAVE_REPORT_UPSELL: "group_chatlist_leave_report_upsell";
|
|
173
|
+
readonly GROUP_CHATLIST_SWIPE_LEAVE_REPORT_UPSELL: "group_chatlist_swipe_leave_report_upsell";
|
|
174
|
+
readonly GROUP_INFO_LEAVE_REPORT_UPSELL: "group_info_leave_report_upsell";
|
|
175
|
+
readonly GROUP_OVERFLOW_MENU_LEAVE_REPORT_UPSELL: "group_overflow_menu_leave_report_upsell";
|
|
176
|
+
readonly GUEST_CALL_PARTICIPANT_REPORT: "guest_call_participant_report";
|
|
177
|
+
readonly GUEST_CALL_REPORT: "guest_call_report";
|
|
178
|
+
readonly IAB_MENU_REPORT: "iab_menu_report";
|
|
179
|
+
readonly LEFT_GROUP_SPAM_BANNER_REPORT: "left_group_spam_banner_report";
|
|
180
|
+
readonly NEWSLETTER_QUESTION_RESPONSE_REPORT: "newsletter_question_response_report";
|
|
181
|
+
readonly OVERFLOW_MENU_COMMUNITY_REPORT: "overflow_menu_community_report";
|
|
182
|
+
readonly PAYMENT_TRANSACTION_REPORT: "payment_transaction_report";
|
|
183
|
+
readonly USER_INITIATED_CHAT_FMX_CARD_SAFETY_TOOLS_REPORT: "user_initiated_chat_fmx_card_safety_tools_report";
|
|
184
|
+
readonly USER_INITIATED_CHAT_SUSPICIOUS_BANNER_SAFETY_TOOLS_REPORT: "user_initiated_chat_suspicious_banner_safety_tools_report";
|
|
185
|
+
readonly ACCOUNT_INFO_SCREEN: "account_info";
|
|
186
|
+
readonly GROUP_INFO_SCREEN: "group_info";
|
|
187
|
+
readonly OVERFLOW_MENU_SCREEN: "overflow_menu";
|
|
188
|
+
readonly CALL_LOG: "call_log";
|
|
189
|
+
readonly MEDIA_VIEWER: "media_viewer";
|
|
190
|
+
readonly COMMUNITY_HOME: "community_home";
|
|
191
|
+
readonly ENT_CLIENT: "ent_client";
|
|
192
|
+
readonly FRX: "frx";
|
|
193
|
+
readonly STATUS_QUESTION_ANSWER: "status_question_answer";
|
|
194
|
+
readonly VIEW_ONCE_VIEWER: "view_once_viewer";
|
|
195
|
+
readonly COMMENT_ACTIONS_BOTTOM_SHEET: "comment_actions_bottom_sheet";
|
|
196
|
+
readonly Chat: "chat";
|
|
197
|
+
readonly MessageMenu: "message_menu";
|
|
198
|
+
readonly OverflowMenuReport: "overflow_menu_report";
|
|
199
|
+
readonly AccountInfoReport: "account_info_report";
|
|
200
|
+
readonly ContactInfo: "account_info_report";
|
|
201
|
+
readonly ChatInfoReport: "account_info_report";
|
|
202
|
+
readonly OneToOneSpamBannerReport: "1_1_spam_banner_report";
|
|
203
|
+
readonly GroupInfoReport: "group_info_report";
|
|
204
|
+
readonly GroupSpamBannerReport: "group_spam_banner_report";
|
|
205
|
+
readonly StatusPostReport: "status_post_report";
|
|
206
|
+
readonly StatusReport: "status_post_report";
|
|
207
|
+
readonly NewsletterInfoReport: "newsletter_info_report";
|
|
208
|
+
readonly WamoChannelReport: "wamo_channel_report";
|
|
209
|
+
readonly ChannelStatusReport: "channel_status_report";
|
|
210
|
+
readonly EventInfoReport: "event_info_report";
|
|
211
|
+
readonly EventHomeReport: "event_home_report";
|
|
212
|
+
};
|
|
213
|
+
SPAM_REPORT_REASONS: {
|
|
214
|
+
readonly NO_LONGER_INTERESTED: 1;
|
|
215
|
+
readonly NO_SIGN_UP: 2;
|
|
216
|
+
readonly SPAM: 3;
|
|
217
|
+
readonly OFFENSIVE_MESSAGES: 4;
|
|
218
|
+
readonly OTP_DID_NOT_REQUEST: 5;
|
|
219
|
+
readonly SCAM_OR_FRAUD: 6;
|
|
220
|
+
};
|
|
221
|
+
getPNForLID: (lid: string) => Promise<string | null>;
|
|
222
|
+
getPNsForLIDs: (lids: string[]) => Promise<import("../index.js").LIDMapping[] | null>;
|
|
223
|
+
getLIDForPN: (pn: string) => Promise<string | null>;
|
|
224
|
+
getLIDsForPNs: (pns: string[]) => Promise<import("../index.js").LIDMapping[] | null>;
|
|
225
|
+
sendStickerPack: (jid: string, pack: import("../index.js").StickerPack) => Promise<import("../index.js").StickerPackResult>;
|
|
226
|
+
requestPayment: (jid: string, options: import("../index.js").RequestPaymentOptions) => Promise<import("../index.js").PaymentResult>;
|
|
227
|
+
sendPayment: (jid: string, options: import("../index.js").SendPaymentOptions) => Promise<import("../index.js").PaymentResult>;
|
|
228
|
+
declinePaymentRequest: (jid: string, key: import("../index.js").WAMessageKey) => Promise<import("../index.js").PaymentResult>;
|
|
229
|
+
cancelPaymentRequest: (jid: string, key: import("../index.js").WAMessageKey) => Promise<import("../index.js").PaymentResult>;
|
|
230
|
+
sendPaymentInvite: (jid: string, options?: import("../index.js").PaymentInviteOptions) => Promise<import("../index.js").PaymentResult>;
|
|
231
|
+
deleteMessage: (jid: string, key: import("../index.js").WAMessageKey) => Promise<import("../index.js").WAMessage>;
|
|
79
232
|
sendReceipt: (jid: string, participant: string | undefined, messageIds: string[], type: import("../index.js").MessageReceiptType) => Promise<void>;
|
|
80
233
|
sendReceipts: (keys: import("../index.js").WAMessageKey[], type: import("../index.js").MessageReceiptType) => Promise<void>;
|
|
81
234
|
readMessages: (keys: import("../index.js").WAMessageKey[]) => Promise<void>;
|
|
@@ -86,6 +239,8 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
|
|
|
86
239
|
[_: string]: string;
|
|
87
240
|
}>;
|
|
88
241
|
sendPeerDataOperationMessage: (pdoMessage: import("../index.js").proto.Message.IPeerDataOperationRequestMessage) => Promise<string>;
|
|
242
|
+
sendPeerMessage: (protocolMessage: import("../index.js").proto.IMessage["protocolMessage"]) => Promise<string>;
|
|
243
|
+
requestAppStateSyncKey: (keyIds: string[]) => Promise<string>;
|
|
89
244
|
createParticipantNodes: (recipientJids: string[], message: import("../index.js").proto.IMessage, extraAttrs?: import("../index.js").BinaryNode["attrs"], dsmMessage?: import("../index.js").proto.IMessage) => Promise<{
|
|
90
245
|
nodes: import("../index.js").BinaryNode[];
|
|
91
246
|
shouldIncludeDeviceIdentity: boolean;
|
|
@@ -96,6 +251,13 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
|
|
|
96
251
|
updateMemberLabel: (jid: string, memberLabel: string) => Promise<string>;
|
|
97
252
|
updateMediaMessage: (message: import("../index.js").WAMessage) => Promise<import("../index.js").WAMessage>;
|
|
98
253
|
sendMessage: (jid: string, content: import("../index.js").AnyMessageContent, options?: import("../index.js").MiscMessageGenerationOptions) => Promise<import("../index.js").WAMessage | undefined>;
|
|
254
|
+
sendPollVote: (jid: string, pollCreationMessageKey: import("../index.js").WAMessageKey, options: string | string[], pollInfo: {
|
|
255
|
+
messageSecret: Uint8Array;
|
|
256
|
+
creatorJid?: string;
|
|
257
|
+
}) => Promise<import("../index.js").WAMessage | undefined>;
|
|
258
|
+
newsletterSendPollVote: (jid: string, parentServerId: string | number, options: string | string[]) => Promise<{
|
|
259
|
+
id: string;
|
|
260
|
+
}>;
|
|
99
261
|
newsletterCreate: (name: string, description?: string) => Promise<import("../index.js").NewsletterMetadata>;
|
|
100
262
|
newsletterUpdate: (jid: string, updates: import("../index.js").NewsletterUpdate) => Promise<unknown>;
|
|
101
263
|
newsletterSubscribers: (jid: string) => Promise<{
|
|
@@ -130,7 +292,7 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
|
|
|
130
292
|
status: string;
|
|
131
293
|
jid: string | undefined;
|
|
132
294
|
}[]>;
|
|
133
|
-
groupParticipantsUpdate: (jid: string, participants: string[], action: import("../index.js").ParticipantAction) => Promise<{
|
|
295
|
+
groupParticipantsUpdate: (jid: string, participants: string[], action: import("../index.js").ParticipantAction, tag?: string) => Promise<{
|
|
134
296
|
status: string;
|
|
135
297
|
jid: string | undefined;
|
|
136
298
|
content: import("../index.js").BinaryNode;
|
|
@@ -178,10 +340,7 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
|
|
|
178
340
|
fetchBlocklist: () => Promise<(string | undefined)[]>;
|
|
179
341
|
fetchStatus: (...jids: string[]) => Promise<import("../index.js").USyncQueryResultList[] | undefined>;
|
|
180
342
|
fetchDisappearingDuration: (...jids: string[]) => Promise<import("../index.js").USyncQueryResultList[] | undefined>;
|
|
181
|
-
updateProfilePicture: (jid: string, content: import("../index.js").WAMediaUpload,
|
|
182
|
-
width: number;
|
|
183
|
-
height: number;
|
|
184
|
-
}) => Promise<void>;
|
|
343
|
+
updateProfilePicture: (jid: string, content: import("../index.js").WAMediaUpload, options?: import("../index.js").ProfilePictureOptions) => Promise<void>;
|
|
185
344
|
removeProfilePicture: (jid: string) => Promise<void>;
|
|
186
345
|
updateProfileStatus: (status: string) => Promise<void>;
|
|
187
346
|
updateProfileName: (name: string) => Promise<void>;
|
|
@@ -195,10 +354,19 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
|
|
|
195
354
|
updateStatusPrivacy: (value: import("../index.js").WAPrivacyValue) => Promise<void>;
|
|
196
355
|
updateReadReceiptsPrivacy: (value: import("../index.js").WAReadReceiptsValue) => Promise<void>;
|
|
197
356
|
updateGroupsAddPrivacy: (value: import("../index.js").WAPrivacyGroupAddValue) => Promise<void>;
|
|
357
|
+
updatePrivacySettings: (settings: import("../index.js").PrivacySettingsUpdate) => Promise<void>;
|
|
358
|
+
updateStatusDistributionMode: (mode: import("../index.js").proto.SyncActionValue.StatusPrivacyAction.StatusDistributionMode, userJids?: string[]) => Promise<void>;
|
|
198
359
|
updateDefaultDisappearingMode: (duration: number) => Promise<void>;
|
|
199
360
|
getBusinessProfile: (jid: string) => Promise<import("../index.js").WABusinessProfile | void>;
|
|
200
361
|
resyncAppState: (collections: readonly ("critical_unblock_low" | "regular_high" | "regular_low" | "critical_block" | "regular")[], isInitialSync: boolean) => Promise<void>;
|
|
201
362
|
chatModify: (mod: import("../index.js").ChatModification, jid: string) => Promise<void>;
|
|
363
|
+
pinChat: (jid: string, pin?: boolean) => Promise<void>;
|
|
364
|
+
archiveChat: (jid: string, archive: boolean, lastMessages: import("../index.js").LastMessageList) => Promise<void>;
|
|
365
|
+
clearChat: (jid: string, lastMessages: import("../index.js").LastMessageList, options?: {
|
|
366
|
+
deleteStarred?: boolean;
|
|
367
|
+
}) => Promise<void>;
|
|
368
|
+
deleteChat: (jid: string, lastMessages: import("../index.js").LastMessageList) => Promise<void>;
|
|
369
|
+
deleteMessageForMe: (jid: string, key: import("../index.js").WAMessageKey, timestamp: number, deleteMedia?: boolean) => Promise<void>;
|
|
202
370
|
cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: number | string) => Promise<void>;
|
|
203
371
|
addOrEditContact: (jid: string, contact: import("../index.js").proto.SyncActionValue.IContactAction) => Promise<void>;
|
|
204
372
|
removeContact: (jid: string) => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Socket/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAItD,QAAA,MAAM,YAAY,GAAI,QAAQ,sBAAsB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Socket/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAItD,QAAA,MAAM,YAAY,GAAI,QAAQ,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAUq0pD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAh7oB,CAAC;;;;;;;;;;;;;;;cAAx1B,CAAC;;;;;;;;;0DAA308B,GAAG,0BAA0B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAHx0C,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -18,8 +18,161 @@ export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
|
|
|
18
18
|
};
|
|
19
19
|
issuePrivacyTokens: (jids: string[], timestamp?: number) => Promise<any>;
|
|
20
20
|
assertSessions: (jids: string[], force?: boolean) => Promise<boolean>;
|
|
21
|
-
relayMessage: (jid: string, message: proto.IMessage, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, useCachedGroupMetadata, statusJidList }: MessageRelayOptions) => Promise<string>;
|
|
22
|
-
sendGroupStatus: (jid: string, content: import("../Types/index.js").AnyMessageContent) => Promise<WAMessage>;
|
|
21
|
+
relayMessage: (jid: string, message: proto.IMessage, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, useCachedGroupMetadata, statusJidList, addBizAttributes }: MessageRelayOptions) => Promise<string>;
|
|
22
|
+
sendGroupStatus: (jid: string, content: import("../Types/index.js").AnyMessageContent, options?: import("./groupStatus.js").GroupStatusOptions) => Promise<WAMessage>;
|
|
23
|
+
sendChannelStatus: (jid: string, content: import("../Types/index.js").AnyMessageContent, options?: import("./channelStatus.js").ChannelStatusOptions) => Promise<import("./channelStatus.js").ChannelStatusSent>;
|
|
24
|
+
newsletterSendStatus: (jid: string, content: import("./channelStatus.js").ChannelStatusContent, options?: import("./channelStatus.js").ChannelStatusOptions) => Promise<import("./channelStatus.js").NewsletterStatusSent>;
|
|
25
|
+
newsletterReactStatus: (jid: string, serverId: string, reaction: string | null) => Promise<void>;
|
|
26
|
+
newsletterRevokeStatus: (jid: string, statusId: string) => Promise<BinaryNode>;
|
|
27
|
+
newsletterFetchStatus: (jid: string, options: import("./channelStatus.js").ChannelStatusFetchOptions) => Promise<import("./channelStatus.js").ChannelStatusFetchResult>;
|
|
28
|
+
newsletterFetchStatusResponses: (jid: string, serverId: string, options: import("./channelStatus.js").ChannelStatusResponsesOptions) => Promise<import("./channelStatus.js").ChannelStatusResponsesResult>;
|
|
29
|
+
newsletterSendStatusViewReceipt: (jid: string, receiptStanzaId: string, sortId: number) => Promise<void>;
|
|
30
|
+
newsletterScheduleChannelPost: (jid: string, content: import("../Types/index.js").AnyMessageContent, publishAtMs: number, options?: import("./channelSchedule.js").ChannelScheduleOptions) => Promise<import("./channelSchedule.js").ChannelScheduledPost>;
|
|
31
|
+
newsletterRescheduleChannelPost: (jid: string, clientId: string, content: import("../Types/index.js").AnyMessageContent, publishAtMs: number, options?: import("./channelSchedule.js").ChannelScheduleOptions) => Promise<import("./channelSchedule.js").ChannelScheduledPost>;
|
|
32
|
+
newsletterSendChannelPostNow: (jid: string, clientId: string, content: import("../Types/index.js").AnyMessageContent, options?: import("./channelSchedule.js").ChannelScheduleOptions) => Promise<import("./channelSchedule.js").ChannelScheduledPost>;
|
|
33
|
+
newsletterCancelChannelPost: (jid: string, clientId: string) => Promise<BinaryNode>;
|
|
34
|
+
newsletterFetchChannelScheduledPosts: (jid: string, options: import("./channelSchedule.js").ChannelScheduleFetchOptions) => Promise<import("./channelSchedule.js").ChannelScheduleFetchResult>;
|
|
35
|
+
newsletterDirectorySearch: (searchText: string, options?: import("./newsletterDirectory.js").NewsletterDirectorySearchOptions) => Promise<import("./newsletterDirectory.js").NewsletterDirectoryResult>;
|
|
36
|
+
newsletterDirectoryList: (options?: import("./newsletterDirectory.js").NewsletterDirectoryListOptions) => Promise<import("./newsletterDirectory.js").NewsletterDirectoryResult>;
|
|
37
|
+
pinMessage: (jid: string, key: WAMessageKey, duration?: 86400 | 604800 | 2592000) => Promise<WAMessage | undefined>;
|
|
38
|
+
unpinMessage: (jid: string, key: WAMessageKey) => Promise<WAMessage | undefined>;
|
|
39
|
+
sendPersonalStatus: (content: import("../Types/index.js").AnyMessageContent, options?: import("../Types/index.js").MiscMessageGenerationOptions) => Promise<WAMessage | undefined>;
|
|
40
|
+
sendCloseFriendsStatus: (content: import("../Types/index.js").AnyMessageContent, closeFriendJids: string[], options?: import("../Types/index.js").MiscMessageGenerationOptions) => Promise<WAMessage | undefined>;
|
|
41
|
+
markStatusViewed: (key: WAMessageKey, participant?: string) => Promise<void>;
|
|
42
|
+
reactToStatus: (jid: string, key: WAMessageKey, emoji: string, statusJidList?: string[]) => Promise<WAMessage | undefined>;
|
|
43
|
+
sendGroupHistory: (jid: string, receivers: string[], messages: proto.IWebMessageInfo[], options?: import("./groupHistory.js").SendGroupHistoryOptions) => Promise<import("./groupHistory.js").SendGroupHistoryResult>;
|
|
44
|
+
checkUsername: (username: string, includeSuggestions?: boolean, sessionId?: string) => Promise<import("../Types/index.js").UsernameCheckResult>;
|
|
45
|
+
checkUsernameMulti: (usernames: string[]) => Promise<unknown>;
|
|
46
|
+
setUsername: (username: string, options?: import("../Types/index.js").SetUsernameOptions) => Promise<unknown>;
|
|
47
|
+
deleteUsername: () => Promise<unknown>;
|
|
48
|
+
getMyUsername: () => Promise<string | null>;
|
|
49
|
+
getUsernameRecommendations: (source?: import("../Types/index.js").UsernameSource | null) => Promise<unknown>;
|
|
50
|
+
setUsernamePin: (pin: string | null) => Promise<unknown>;
|
|
51
|
+
findUserByUsername: (username: string, pin?: string) => Promise<import("../Types/index.js").UsernameUser | null>;
|
|
52
|
+
fetchContactUsernames: (...jids: string[]) => Promise<import("../index.js").USyncQueryResultList[]>;
|
|
53
|
+
setUsernameQueryIds: (ids: Partial<import("./username.js").UsernameQueryIds>) => {
|
|
54
|
+
CHECK: string;
|
|
55
|
+
CHECK_MULTI: string;
|
|
56
|
+
SET: string;
|
|
57
|
+
GET: string;
|
|
58
|
+
GET_RECOMMENDATIONS: string;
|
|
59
|
+
PIN_SET: string;
|
|
60
|
+
};
|
|
61
|
+
USERNAME_QUERY_IDS: {
|
|
62
|
+
CHECK: string;
|
|
63
|
+
CHECK_MULTI: string;
|
|
64
|
+
SET: string;
|
|
65
|
+
GET: string;
|
|
66
|
+
GET_RECOMMENDATIONS: string;
|
|
67
|
+
PIN_SET: string;
|
|
68
|
+
};
|
|
69
|
+
USERNAME_CHECK_RESULT: {
|
|
70
|
+
readonly SUCCESS: "SUCCESS";
|
|
71
|
+
readonly INVALID: "INVALID";
|
|
72
|
+
};
|
|
73
|
+
USERNAME_SOURCE: {
|
|
74
|
+
readonly FB: "FB";
|
|
75
|
+
readonly IG: "IG";
|
|
76
|
+
readonly USER_INPUT: "USER_INPUT";
|
|
77
|
+
readonly SUGGESTION: "SUGGESTION";
|
|
78
|
+
};
|
|
79
|
+
reportSpam: {
|
|
80
|
+
(messages: WAMessage[], options?: import("../Types/index.js").SpamReportOptions): Promise<import("../Types/index.js").SpamReportResult[]>;
|
|
81
|
+
(jid: string, options?: import("../Types/index.js").SpamReportOptions): Promise<import("../Types/index.js").SpamReportTargetResult>;
|
|
82
|
+
};
|
|
83
|
+
reportContact: (jid: string, messages: WAMessage[], options?: import("../Types/index.js").SpamReportOptions) => Promise<import("../Types/index.js").SpamReportResult[]>;
|
|
84
|
+
reportGroup: (jid: string, messages: WAMessage[], options?: import("../Types/index.js").SpamReportOptions) => Promise<import("../Types/index.js").SpamReportResult[]>;
|
|
85
|
+
reportStatus: (jid: string, messages: WAMessage[], options?: import("../Types/index.js").SpamReportOptions) => Promise<import("../Types/index.js").SpamReportResult[]>;
|
|
86
|
+
reportNewsletter: (jid: string, messages: WAMessage[], options?: import("../Types/index.js").SpamReportOptions) => Promise<import("../Types/index.js").SpamReportResult[]>;
|
|
87
|
+
reportChannelStatus: (jid: string, messages: WAMessage[], options?: import("../Types/index.js").SpamReportOptions) => Promise<import("../Types/index.js").SpamReportResult[]>;
|
|
88
|
+
reportEvent: (jid: string, messages: WAMessage[], options?: import("../Types/index.js").SpamReportOptions) => Promise<import("../Types/index.js").SpamReportResult[]>;
|
|
89
|
+
reportAndBlock: (jid: string, messages: WAMessage[], options?: import("../Types/index.js").SpamReportOptions) => Promise<import("../Types/index.js").SpamReportResult[]>;
|
|
90
|
+
SPAM_FLOWS: {
|
|
91
|
+
readonly CHAT: "chat";
|
|
92
|
+
readonly MESSAGE_MENU: "message_menu";
|
|
93
|
+
readonly OVERFLOW_MENU: "overflow_menu_report";
|
|
94
|
+
readonly ACCOUNT_INFO: "account_info_report";
|
|
95
|
+
readonly ONE_TO_ONE_SPAM_BANNER: "1_1_spam_banner_report";
|
|
96
|
+
readonly GROUP_INFO: "group_info_report";
|
|
97
|
+
readonly GROUP_SPAM_BANNER: "group_spam_banner_report";
|
|
98
|
+
readonly STATUS_POST: "status_post_report";
|
|
99
|
+
readonly NEWSLETTER_INFO: "newsletter_info_report";
|
|
100
|
+
readonly WAMO_CHANNEL: "wamo_channel_report";
|
|
101
|
+
readonly CHANNEL_STATUS: "channel_status_report";
|
|
102
|
+
readonly EVENT_INFO: "event_info_report";
|
|
103
|
+
readonly EVENT_HOME: "event_home_report";
|
|
104
|
+
readonly ACCOUNT_INFO_REPORT_AS_GUEST_USER: "account_info_report_as_guest_user";
|
|
105
|
+
readonly ALBUM_MEDIA_MENU_REPORT: "album_media_menu_report";
|
|
106
|
+
readonly CALL_DETAIL_OVERFLOW_REPORT: "call_detail_overflow_report";
|
|
107
|
+
readonly CALL_DETAIL_SAFETY_TOOLS_REPORT: "call_detail_safety_tools_report";
|
|
108
|
+
readonly CALL_SPAM_DIALOG_REPORT: "call_spam_dialog_report";
|
|
109
|
+
readonly CHAT_FMX_CARD_REPORT_AS_GUEST_USER: "chat_fmx_card_report_as_guest_user";
|
|
110
|
+
readonly CHAT_FMX_CARD_SAFETY_TOOLS_REPORT: "chat_fmx_card_safety_tools_report";
|
|
111
|
+
readonly CHAT_FMX_CARD_SAFETY_TOOLS_REPORT_SUSPICIOUS: "chat_fmx_card_safety_tools_report_suspicious";
|
|
112
|
+
readonly CHAT_LIST_SWIPE_DELETE_REPORT_UPSELL: "chat_list_swipe_delete_report_upsell";
|
|
113
|
+
readonly CHAT_THEME_SCREEN_OVERFLOW_MENU_REPORT: "chat_theme_screen_overflow_menu_report";
|
|
114
|
+
readonly DEPENDANT_CHAT_REQUEST_BANNER_DECLINE_REPORT_UPSELL: "dependant_chat_request_banner_decline_report_upsell";
|
|
115
|
+
readonly EXTENSION_MENU_REPORT: "extension_menu_report";
|
|
116
|
+
readonly GROUP_CHATLIST_LEAVE_REPORT_UPSELL: "group_chatlist_leave_report_upsell";
|
|
117
|
+
readonly GROUP_CHATLIST_SWIPE_LEAVE_REPORT_UPSELL: "group_chatlist_swipe_leave_report_upsell";
|
|
118
|
+
readonly GROUP_INFO_LEAVE_REPORT_UPSELL: "group_info_leave_report_upsell";
|
|
119
|
+
readonly GROUP_OVERFLOW_MENU_LEAVE_REPORT_UPSELL: "group_overflow_menu_leave_report_upsell";
|
|
120
|
+
readonly GUEST_CALL_PARTICIPANT_REPORT: "guest_call_participant_report";
|
|
121
|
+
readonly GUEST_CALL_REPORT: "guest_call_report";
|
|
122
|
+
readonly IAB_MENU_REPORT: "iab_menu_report";
|
|
123
|
+
readonly LEFT_GROUP_SPAM_BANNER_REPORT: "left_group_spam_banner_report";
|
|
124
|
+
readonly NEWSLETTER_QUESTION_RESPONSE_REPORT: "newsletter_question_response_report";
|
|
125
|
+
readonly OVERFLOW_MENU_COMMUNITY_REPORT: "overflow_menu_community_report";
|
|
126
|
+
readonly PAYMENT_TRANSACTION_REPORT: "payment_transaction_report";
|
|
127
|
+
readonly USER_INITIATED_CHAT_FMX_CARD_SAFETY_TOOLS_REPORT: "user_initiated_chat_fmx_card_safety_tools_report";
|
|
128
|
+
readonly USER_INITIATED_CHAT_SUSPICIOUS_BANNER_SAFETY_TOOLS_REPORT: "user_initiated_chat_suspicious_banner_safety_tools_report";
|
|
129
|
+
readonly ACCOUNT_INFO_SCREEN: "account_info";
|
|
130
|
+
readonly GROUP_INFO_SCREEN: "group_info";
|
|
131
|
+
readonly OVERFLOW_MENU_SCREEN: "overflow_menu";
|
|
132
|
+
readonly CALL_LOG: "call_log";
|
|
133
|
+
readonly MEDIA_VIEWER: "media_viewer";
|
|
134
|
+
readonly COMMUNITY_HOME: "community_home";
|
|
135
|
+
readonly ENT_CLIENT: "ent_client";
|
|
136
|
+
readonly FRX: "frx";
|
|
137
|
+
readonly STATUS_QUESTION_ANSWER: "status_question_answer";
|
|
138
|
+
readonly VIEW_ONCE_VIEWER: "view_once_viewer";
|
|
139
|
+
readonly COMMENT_ACTIONS_BOTTOM_SHEET: "comment_actions_bottom_sheet";
|
|
140
|
+
readonly Chat: "chat";
|
|
141
|
+
readonly MessageMenu: "message_menu";
|
|
142
|
+
readonly OverflowMenuReport: "overflow_menu_report";
|
|
143
|
+
readonly AccountInfoReport: "account_info_report";
|
|
144
|
+
readonly ContactInfo: "account_info_report";
|
|
145
|
+
readonly ChatInfoReport: "account_info_report";
|
|
146
|
+
readonly OneToOneSpamBannerReport: "1_1_spam_banner_report";
|
|
147
|
+
readonly GroupInfoReport: "group_info_report";
|
|
148
|
+
readonly GroupSpamBannerReport: "group_spam_banner_report";
|
|
149
|
+
readonly StatusPostReport: "status_post_report";
|
|
150
|
+
readonly StatusReport: "status_post_report";
|
|
151
|
+
readonly NewsletterInfoReport: "newsletter_info_report";
|
|
152
|
+
readonly WamoChannelReport: "wamo_channel_report";
|
|
153
|
+
readonly ChannelStatusReport: "channel_status_report";
|
|
154
|
+
readonly EventInfoReport: "event_info_report";
|
|
155
|
+
readonly EventHomeReport: "event_home_report";
|
|
156
|
+
};
|
|
157
|
+
SPAM_REPORT_REASONS: {
|
|
158
|
+
readonly NO_LONGER_INTERESTED: 1;
|
|
159
|
+
readonly NO_SIGN_UP: 2;
|
|
160
|
+
readonly SPAM: 3;
|
|
161
|
+
readonly OFFENSIVE_MESSAGES: 4;
|
|
162
|
+
readonly OTP_DID_NOT_REQUEST: 5;
|
|
163
|
+
readonly SCAM_OR_FRAUD: 6;
|
|
164
|
+
};
|
|
165
|
+
getPNForLID: (lid: string) => Promise<string | null>;
|
|
166
|
+
getPNsForLIDs: (lids: string[]) => Promise<import("../Types/index.js").LIDMapping[] | null>;
|
|
167
|
+
getLIDForPN: (pn: string) => Promise<string | null>;
|
|
168
|
+
getLIDsForPNs: (pns: string[]) => Promise<import("../Types/index.js").LIDMapping[] | null>;
|
|
169
|
+
sendStickerPack: (jid: string, pack: import("../Types/index.js").StickerPack) => Promise<import("../Types/index.js").StickerPackResult>;
|
|
170
|
+
requestPayment: (jid: string, options: import("../Types/index.js").RequestPaymentOptions) => Promise<import("../Types/index.js").PaymentResult>;
|
|
171
|
+
sendPayment: (jid: string, options: import("../Types/index.js").SendPaymentOptions) => Promise<import("../Types/index.js").PaymentResult>;
|
|
172
|
+
declinePaymentRequest: (jid: string, key: WAMessageKey) => Promise<import("../Types/index.js").PaymentResult>;
|
|
173
|
+
cancelPaymentRequest: (jid: string, key: WAMessageKey) => Promise<import("../Types/index.js").PaymentResult>;
|
|
174
|
+
sendPaymentInvite: (jid: string, options?: import("../Types/index.js").PaymentInviteOptions) => Promise<import("../Types/index.js").PaymentResult>;
|
|
175
|
+
deleteMessage: (jid: string, key: WAMessageKey) => Promise<WAMessage>;
|
|
23
176
|
sendReceipt: (jid: string, participant: string | undefined, messageIds: string[], type: MessageReceiptType) => Promise<void>;
|
|
24
177
|
sendReceipts: (keys: WAMessageKey[], type: MessageReceiptType) => Promise<void>;
|
|
25
178
|
readMessages: (keys: WAMessageKey[]) => Promise<void>;
|
|
@@ -30,6 +183,8 @@ export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
|
|
|
30
183
|
[_: string]: string;
|
|
31
184
|
}>;
|
|
32
185
|
sendPeerDataOperationMessage: (pdoMessage: proto.Message.IPeerDataOperationRequestMessage) => Promise<string>;
|
|
186
|
+
sendPeerMessage: (protocolMessage: proto.IMessage["protocolMessage"]) => Promise<string>;
|
|
187
|
+
requestAppStateSyncKey: (keyIds: string[]) => Promise<string>;
|
|
33
188
|
createParticipantNodes: (recipientJids: string[], message: proto.IMessage, extraAttrs?: BinaryNode["attrs"], dsmMessage?: proto.IMessage) => Promise<{
|
|
34
189
|
nodes: BinaryNode[];
|
|
35
190
|
shouldIncludeDeviceIdentity: boolean;
|
|
@@ -40,6 +195,13 @@ export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
|
|
|
40
195
|
updateMemberLabel: (jid: string, memberLabel: string) => Promise<string>;
|
|
41
196
|
updateMediaMessage: (message: WAMessage) => Promise<WAMessage>;
|
|
42
197
|
sendMessage: (jid: string, content: import("../Types/index.js").AnyMessageContent, options?: import("../Types/index.js").MiscMessageGenerationOptions) => Promise<WAMessage | undefined>;
|
|
198
|
+
sendPollVote: (jid: string, pollCreationMessageKey: WAMessageKey, options: string | string[], pollInfo: {
|
|
199
|
+
messageSecret: Uint8Array;
|
|
200
|
+
creatorJid?: string;
|
|
201
|
+
}) => Promise<WAMessage | undefined>;
|
|
202
|
+
newsletterSendPollVote: (jid: string, parentServerId: string | number, options: string | string[]) => Promise<{
|
|
203
|
+
id: string;
|
|
204
|
+
}>;
|
|
43
205
|
newsletterCreate: (name: string, description?: string) => Promise<import("../Types/index.js").NewsletterMetadata>;
|
|
44
206
|
newsletterUpdate: (jid: string, updates: import("../Types/index.js").NewsletterUpdate) => Promise<unknown>;
|
|
45
207
|
newsletterSubscribers: (jid: string) => Promise<{
|
|
@@ -74,7 +236,7 @@ export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
|
|
|
74
236
|
status: string;
|
|
75
237
|
jid: string | undefined;
|
|
76
238
|
}[]>;
|
|
77
|
-
groupParticipantsUpdate: (jid: string, participants: string[], action: import("../Types/index.js").ParticipantAction) => Promise<{
|
|
239
|
+
groupParticipantsUpdate: (jid: string, participants: string[], action: import("../Types/index.js").ParticipantAction, tag?: string) => Promise<{
|
|
78
240
|
status: string;
|
|
79
241
|
jid: string | undefined;
|
|
80
242
|
content: BinaryNode;
|
|
@@ -122,10 +284,7 @@ export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
|
|
|
122
284
|
fetchBlocklist: () => Promise<(string | undefined)[]>;
|
|
123
285
|
fetchStatus: (...jids: string[]) => Promise<import("../index.js").USyncQueryResultList[] | undefined>;
|
|
124
286
|
fetchDisappearingDuration: (...jids: string[]) => Promise<import("../index.js").USyncQueryResultList[] | undefined>;
|
|
125
|
-
updateProfilePicture: (jid: string, content: import("../Types/index.js").WAMediaUpload,
|
|
126
|
-
width: number;
|
|
127
|
-
height: number;
|
|
128
|
-
}) => Promise<void>;
|
|
287
|
+
updateProfilePicture: (jid: string, content: import("../Types/index.js").WAMediaUpload, options?: import("../Utils/index.js").ProfilePictureOptions) => Promise<void>;
|
|
129
288
|
removeProfilePicture: (jid: string) => Promise<void>;
|
|
130
289
|
updateProfileStatus: (status: string) => Promise<void>;
|
|
131
290
|
updateProfileName: (name: string) => Promise<void>;
|
|
@@ -139,10 +298,19 @@ export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
|
|
|
139
298
|
updateStatusPrivacy: (value: import("../Types/index.js").WAPrivacyValue) => Promise<void>;
|
|
140
299
|
updateReadReceiptsPrivacy: (value: import("../Types/index.js").WAReadReceiptsValue) => Promise<void>;
|
|
141
300
|
updateGroupsAddPrivacy: (value: import("../Types/index.js").WAPrivacyGroupAddValue) => Promise<void>;
|
|
301
|
+
updatePrivacySettings: (settings: import("../Types/index.js").PrivacySettingsUpdate) => Promise<void>;
|
|
302
|
+
updateStatusDistributionMode: (mode: proto.SyncActionValue.StatusPrivacyAction.StatusDistributionMode, userJids?: string[]) => Promise<void>;
|
|
142
303
|
updateDefaultDisappearingMode: (duration: number) => Promise<void>;
|
|
143
304
|
getBusinessProfile: (jid: string) => Promise<import("../Types/index.js").WABusinessProfile | void>;
|
|
144
305
|
resyncAppState: (collections: readonly ("critical_unblock_low" | "regular_high" | "regular_low" | "critical_block" | "regular")[], isInitialSync: boolean) => Promise<void>;
|
|
145
306
|
chatModify: (mod: import("../Types/index.js").ChatModification, jid: string) => Promise<void>;
|
|
307
|
+
pinChat: (jid: string, pin?: boolean) => Promise<void>;
|
|
308
|
+
archiveChat: (jid: string, archive: boolean, lastMessages: import("../Types/index.js").LastMessageList) => Promise<void>;
|
|
309
|
+
clearChat: (jid: string, lastMessages: import("../Types/index.js").LastMessageList, options?: {
|
|
310
|
+
deleteStarred?: boolean;
|
|
311
|
+
}) => Promise<void>;
|
|
312
|
+
deleteChat: (jid: string, lastMessages: import("../Types/index.js").LastMessageList) => Promise<void>;
|
|
313
|
+
deleteMessageForMe: (jid: string, key: WAMessageKey, timestamp: number, deleteMedia?: boolean) => Promise<void>;
|
|
146
314
|
cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: number | string) => Promise<void>;
|
|
147
315
|
addOrEditContact: (jid: string, contact: proto.SyncActionValue.IContactAction) => Promise<void>;
|
|
148
316
|
removeContact: (jid: string) => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages-recv.d.ts","sourceRoot":"","sources":["../../src/Socket/messages-recv.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,uBAAuB,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAEjC,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAA;AAQ9C,OAAO,KAAK,EACX,kBAAkB,EAElB,kBAAkB,EAClB,mBAAmB,EAEnB,qBAAqB,EACrB,YAAY,EAEZ,SAAS,EACT,YAAY,EAEZ,MAAM,UAAU,CAAA;AA4CjB,OAAO,EAEN,KAAK,UAAU,
|
|
1
|
+
{"version":3,"file":"messages-recv.d.ts","sourceRoot":"","sources":["../../src/Socket/messages-recv.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,uBAAuB,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAEjC,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAA;AAQ9C,OAAO,KAAK,EACX,kBAAkB,EAElB,kBAAkB,EAClB,mBAAmB,EAEnB,qBAAqB,EACrB,YAAY,EAEZ,SAAS,EACT,YAAY,EAEZ,MAAM,UAAU,CAAA;AA4CjB,OAAO,EAEN,KAAK,UAAU,EAgBf,KAAK,aAAa,EAElB,MAAM,aAAa,CAAA;AAwBpB,eAAO,MAAM,sBAAsB,GAAI,QAAQ,YAAY;2BA8oElC,MAAM,QAAQ,kBAAkB;2BAxsDpB,UAAU,cAAc,MAAM;6BA4B5B,UAAU;yBAtBd,MAAM,YAAY,MAAM;iCA7YlD,MAAM,gBACC,YAAY,sBACN,MAAM,GAAG,IAAI,KAC/B,OAAO,CAAC,MAAM,CAAC;2CA8BL,YAAY,YACd,OAAO,CAAC,SAAS,CAAC,KAC1B,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAw8CJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA7nBS,CAAC;;;;;;;;;;;;;;;cAnBpB,CAAC;;;;;;;;;0DAp8Bb,GAAG,0BACO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8sElB,CAAA"}
|