talkyzap-wapp-api 1.0.21 → 1.0.23
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/CHANGELOG.md +1 -1
- package/README.md +22 -0
- package/dist/chat/functions/list.d.ts +4 -0
- package/dist/conn/functions/getABProps.d.ts +83 -0
- package/dist/conn/functions/getAutoDownloadSettings.d.ts +34 -0
- package/dist/conn/functions/getBuildConstants.d.ts +15 -0
- package/dist/conn/functions/getMigrationState.d.ts +0 -2
- package/dist/{whatsapp/misc/UsernameGatingUtils.d.ts → conn/functions/getMyUserLid.d.ts} +9 -9
- package/dist/conn/functions/getTheme.d.ts +39 -0
- package/dist/conn/functions/index.d.ts +7 -0
- package/dist/conn/functions/setAutoDownloadSettings.d.ts +56 -0
- package/dist/conn/functions/setTheme.d.ts +36 -0
- package/dist/contact/functions/index.d.ts +1 -0
- package/dist/contact/functions/reportContact.d.ts +62 -0
- package/dist/newsletter/functions/follow.d.ts +27 -0
- package/dist/newsletter/functions/index.d.ts +3 -0
- package/dist/newsletter/functions/search.d.ts +64 -0
- package/dist/newsletter/functions/unfollow.d.ts +27 -0
- package/dist/util/index.d.ts +1 -0
- package/dist/util/toArrayBuffer.d.ts +21 -0
- package/dist/whatsapp/enums/CHANNEL_EVENT_SURFACE.d.ts +27 -0
- package/dist/whatsapp/enums/index.d.ts +1 -0
- package/dist/whatsapp/functions/abPropsCache.d.ts +36 -0
- package/dist/whatsapp/functions/index.d.ts +6 -0
- package/dist/whatsapp/functions/markSeen.d.ts +13 -4
- package/dist/whatsapp/functions/mexFetchNewsletterDirectorySearchResults.d.ts +24 -0
- package/dist/whatsapp/functions/mexJoinNewsletter.d.ts +19 -0
- package/dist/whatsapp/functions/mexLeaveNewsletter.d.ts +19 -0
- package/dist/whatsapp/functions/reportSpam.d.ts +34 -0
- package/dist/whatsapp/functions/shouldHaveAccountLid.d.ts +3 -1
- package/dist/whatsapp/functions/toUserLid.d.ts +6 -0
- package/dist/whatsapp/functions/toggleNewsletterAdminActivityMuteStateAction.d.ts +22 -0
- package/dist/whatsapp/misc/Cmd.d.ts +7 -1
- package/dist/whatsapp/misc/DBCreateLidPnMappings.d.ts +31 -0
- package/dist/whatsapp/misc/LruMediaStore.d.ts +24 -0
- package/dist/whatsapp/misc/UserPrefsGeneral.d.ts +67 -0
- package/dist/whatsapp/misc/index.d.ts +2 -1
- package/dist/whatsapp/stores.d.ts +67 -56
- package/dist/wppconnect-wa.js +1 -1
- package/dist/wppconnect-wa.js.LICENSE.txt +17 -1
- package/eslint.config.mjs +1 -0
- package/package.json +24 -19
- package/scripts/compare-wa-versions.sh +85 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 WPPConnect Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Raw A/B test property configuration from WhatsApp
|
|
18
|
+
*/
|
|
19
|
+
export interface RawABPropConfig {
|
|
20
|
+
/** The internal config code (numeric key) */
|
|
21
|
+
configCode: string;
|
|
22
|
+
/** The actual value of the config (string, number, boolean) */
|
|
23
|
+
configValue: any;
|
|
24
|
+
/** Exposure key for analytics tracking */
|
|
25
|
+
configExpoKey?: string;
|
|
26
|
+
/** Whether this config has been accessed during this session */
|
|
27
|
+
hasAccessed?: boolean;
|
|
28
|
+
/** Override value if set via URL parameter */
|
|
29
|
+
overriddenConfigValue?: any;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @whatsapp WAWebABPropsCache
|
|
33
|
+
*/
|
|
34
|
+
export declare function getAllABPropConfigs(): RawABPropConfig[];
|
|
35
|
+
export declare function getAllABPropsMap(): Map<string, RawABPropConfig>;
|
|
36
|
+
export declare function getABPropConfigNameFromCode(configCode: number | string): string | undefined;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
export * from './abPropsCache';
|
|
16
17
|
export * from './addAndSendMessageEdit';
|
|
17
18
|
export * from './addAndSendMsgToChat';
|
|
18
19
|
export * from './addProductToCart';
|
|
@@ -111,6 +112,9 @@ export * from './labelAddAction';
|
|
|
111
112
|
export * from './markSeen';
|
|
112
113
|
export * from './mediaTypeFromProtobuf';
|
|
113
114
|
export * from './membershipApprovalRequestAction';
|
|
115
|
+
export * from './mexFetchNewsletterDirectorySearchResults';
|
|
116
|
+
export * from './mexJoinNewsletter';
|
|
117
|
+
export * from './mexLeaveNewsletter';
|
|
114
118
|
export * from './msgDataFromMsgModel';
|
|
115
119
|
export * from './msgFindQuery';
|
|
116
120
|
export * from './muteNewsletter';
|
|
@@ -127,6 +131,7 @@ export * from './queryOrder';
|
|
|
127
131
|
export * from './randomHex';
|
|
128
132
|
export * from './randomId';
|
|
129
133
|
export * from './removeStatusMessage';
|
|
134
|
+
export * from './reportSpam';
|
|
130
135
|
export * from './resetGroupInviteCode';
|
|
131
136
|
export * from './revokeStatus';
|
|
132
137
|
export * from './saveContactAction';
|
|
@@ -158,6 +163,7 @@ export * from './STATUS_JID';
|
|
|
158
163
|
export * from './statusEnable';
|
|
159
164
|
export * from './subscribePresence';
|
|
160
165
|
export * from './syncABPropsTask';
|
|
166
|
+
export * from './toggleNewsletterAdminActivityMuteStateAction';
|
|
161
167
|
export * from './toUserLid';
|
|
162
168
|
export * from './typeAttributeFromProtobuf';
|
|
163
169
|
export * from './unixTime';
|
|
@@ -14,14 +14,23 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { ChatModel, MsgModel } from '../models';
|
|
17
|
-
/**
|
|
18
|
-
* @whatsapp
|
|
17
|
+
/**
|
|
18
|
+
* @whatsapp WAWebUpdateUnreadChatAction >= 2.3000.1031992593
|
|
19
19
|
*/
|
|
20
|
-
export declare function markUnread(chat: ChatModel, whenAvailable: boolean): Promise<ChatModel>;
|
|
21
|
-
/**
|
|
20
|
+
export declare function markUnread(chat: ChatModel, whenAvailable: boolean, showToast?: boolean): Promise<ChatModel>;
|
|
21
|
+
/**
|
|
22
22
|
* @whatsapp 561498 >= 2.2228.4
|
|
23
|
+
* @deprecated Use sendSeen({chat}) for versions >= 2.3000.1031992593
|
|
23
24
|
*/
|
|
24
25
|
export declare function sendSeen(chat: ChatModel, whenAvailable: boolean): Promise<ChatModel>;
|
|
26
|
+
/**
|
|
27
|
+
* @whatsapp WAWebUpdateUnreadChatAction >= 2.3000.1031992593
|
|
28
|
+
*/
|
|
29
|
+
export declare function sendSeen(options: {
|
|
30
|
+
chat: ChatModel;
|
|
31
|
+
threadId?: string | null;
|
|
32
|
+
afterAvailable?: boolean;
|
|
33
|
+
}): Promise<void>;
|
|
25
34
|
/** @whatsapp 30734
|
|
26
35
|
* @whatsapp 730734 >= 2.2222.8
|
|
27
36
|
* @whatsapp 242050 >= 2.2228.4
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2026 WPPConnect Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @whatsapp WAWebMexFetchNewsletterDirectorySearchResultsJob
|
|
18
|
+
*/
|
|
19
|
+
export declare function mexFetchNewsletterDirectorySearchResults(params: {
|
|
20
|
+
searchText: string;
|
|
21
|
+
categories: string[];
|
|
22
|
+
limit: number;
|
|
23
|
+
cursorToken?: string;
|
|
24
|
+
}): Promise<any>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2026 WPPConnect Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @whatsapp WAWebMexJoinNewsletterJob
|
|
18
|
+
*/
|
|
19
|
+
export declare function mexJoinNewsletter(newsletterId: string): Promise<any>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2026 WPPConnect Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @whatsapp WAWebMexLeaveNewsletterJob
|
|
18
|
+
*/
|
|
19
|
+
export declare function mexLeaveNewsletter(newsletterId: string): Promise<any>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2026 WPPConnect Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { ChatModel, MsgModel } from '../models';
|
|
17
|
+
export interface ReportSpamResponse {
|
|
18
|
+
reportIdMixin?: {
|
|
19
|
+
reportId: string;
|
|
20
|
+
};
|
|
21
|
+
errorCode?: number;
|
|
22
|
+
errorText?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Report spam to WhatsApp
|
|
26
|
+
*
|
|
27
|
+
* @param chat - Chat or contact to report
|
|
28
|
+
* @param spamFlow - Optional spam flow type (default: 'ChatInfoReport')
|
|
29
|
+
* @param msg - Optional specific message to report
|
|
30
|
+
* @returns Promise with report response
|
|
31
|
+
*
|
|
32
|
+
* @whatsapp WAWebReportSpamJob
|
|
33
|
+
*/
|
|
34
|
+
export declare function reportSpam(chat: ChatModel, spamFlow?: string, msg?: MsgModel): Promise<ReportSpamResponse>;
|
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { Wid } from '../misc';
|
|
16
17
|
/**
|
|
18
|
+
* Check if a given Wid should have an account LID based on migration status
|
|
17
19
|
* @whatsapp WAWebLidMigrationUtils >= 2.3000.x
|
|
18
20
|
*/
|
|
19
|
-
export declare function shouldHaveAccountLid(): boolean;
|
|
21
|
+
export declare function shouldHaveAccountLid(wid: Wid): boolean;
|
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { Wid } from '../misc';
|
|
17
17
|
/**
|
|
18
|
+
* @deprecated Use toUserLidOrThrow instead. This function will be removed in future versions.
|
|
19
|
+
* This function was removed from WhatsApp Web since (2.3000.1031992593~) but is still available here for backward compatibility.
|
|
18
20
|
* @whatsapp WAWebLidMigrationUtils >= 2.3000.x
|
|
19
21
|
*/
|
|
20
22
|
export declare function toUserLid(wid: Wid): Wid;
|
|
23
|
+
/**
|
|
24
|
+
* @whatsapp WAWebLidMigrationUtils >= 2.3000.1032013519
|
|
25
|
+
*/
|
|
26
|
+
export declare function toUserLidOrThrow(wid: Wid): Wid;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2026 WPPConnect Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { Wid } from '../misc';
|
|
17
|
+
/**
|
|
18
|
+
* @whatsapp WAWebNewsletterToggleAdminActivityMuteStateAction >= 2.3000.1032373751
|
|
19
|
+
*/
|
|
20
|
+
export declare const toggleNewsletterAdminActivityMuteStateAction: ((newsletterId: Wid, muteExpirationValue: number, options: {
|
|
21
|
+
eventSurface?: number;
|
|
22
|
+
}) => Promise<void>) | undefined;
|
|
@@ -88,10 +88,16 @@ export declare class CmdClass extends EventEmitter {
|
|
|
88
88
|
chat: ChatModel;
|
|
89
89
|
chatEntryPoint?: string;
|
|
90
90
|
}): Promise<boolean>;
|
|
91
|
-
|
|
91
|
+
/**
|
|
92
|
+
* @deprecated Use openChatBottom({chat, chatEntryPoint}) for versions >= 2.3000.1029960097
|
|
93
|
+
* @whatsapp < 2.3000.1029960097
|
|
94
|
+
*/
|
|
95
|
+
openChatBottom(chat: ChatModel, chatEntryPoint?: string): Promise<boolean>;
|
|
96
|
+
/** @whatsapp >= 2.3000.1029960097 */
|
|
92
97
|
openChatBottom(params: {
|
|
93
98
|
chat: ChatModel;
|
|
94
99
|
chatEntryPoint?: string;
|
|
100
|
+
threadId?: string;
|
|
95
101
|
}): Promise<boolean>;
|
|
96
102
|
scrollToPtt(e?: any): void;
|
|
97
103
|
_scrollToFocusedMsg(e?: any): void;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2024 WPPConnect Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { Wid } from './Wid';
|
|
17
|
+
interface LidPnMapping {
|
|
18
|
+
lid: Wid;
|
|
19
|
+
pn: Wid;
|
|
20
|
+
}
|
|
21
|
+
interface CreateLidPnMappingsParams {
|
|
22
|
+
mappings: LidPnMapping[];
|
|
23
|
+
flushImmediately: boolean;
|
|
24
|
+
learningSource: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @whatsapp WAWebDBCreateLidPnMappings
|
|
28
|
+
* Last verified >= 2.3000.1032022795
|
|
29
|
+
*/
|
|
30
|
+
export declare function createLidPnMappings(params: CreateLidPnMappingsParams): Promise<void>;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2026 WPPConnect Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export declare interface LruMediaStore {
|
|
17
|
+
get(key: string): Promise<ArrayBuffer | Uint8Array | null>;
|
|
18
|
+
put(key: string, value: ArrayBuffer | Uint8Array): Promise<void>;
|
|
19
|
+
del(key: string): Promise<void>;
|
|
20
|
+
clear(): Promise<void>;
|
|
21
|
+
count(): Promise<number>;
|
|
22
|
+
has(key: string): Promise<boolean>;
|
|
23
|
+
}
|
|
24
|
+
export declare const LruMediaStore: LruMediaStore;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2026 WPPConnect Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Get auto-download setting for photos
|
|
18
|
+
* @whatsapp WAWebUserPrefsGeneral >= 2.3000.0
|
|
19
|
+
*/
|
|
20
|
+
export declare function getAutoDownloadPhotos(): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Set auto-download setting for photos
|
|
23
|
+
* @whatsapp WAWebUserPrefsGeneral >= 2.3000.0
|
|
24
|
+
*/
|
|
25
|
+
export declare function setAutoDownloadPhotos(value: boolean): void;
|
|
26
|
+
/**
|
|
27
|
+
* Get auto-download setting for audio
|
|
28
|
+
* @whatsapp WAWebUserPrefsGeneral >= 2.3000.0
|
|
29
|
+
*/
|
|
30
|
+
export declare function getAutoDownloadAudio(): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Set auto-download setting for audio
|
|
33
|
+
* @whatsapp WAWebUserPrefsGeneral >= 2.3000.1032022795
|
|
34
|
+
*/
|
|
35
|
+
export declare function setAutoDownloadAudio(value: boolean): void;
|
|
36
|
+
/**
|
|
37
|
+
* Get auto-download setting for videos
|
|
38
|
+
* @whatsapp WAWebUserPrefsGeneral >= 2.3000.1032022795
|
|
39
|
+
*/
|
|
40
|
+
export declare function getAutoDownloadVideos(): boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Set auto-download setting for videos
|
|
43
|
+
* @whatsapp WAWebUserPrefsGeneral >= 2.3000.1032022795
|
|
44
|
+
*/
|
|
45
|
+
export declare function setAutoDownloadVideos(value: boolean): void;
|
|
46
|
+
/**
|
|
47
|
+
* Get auto-download setting for documents
|
|
48
|
+
* @whatsapp WAWebUserPrefsGeneral >= 2.3000.1032022795
|
|
49
|
+
*/
|
|
50
|
+
export declare function getAutoDownloadDocuments(): boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Set auto-download setting for documents
|
|
53
|
+
* @whatsapp WAWebUserPrefsGeneral >= 2.3000.1032022795
|
|
54
|
+
*/
|
|
55
|
+
export declare function setAutoDownloadDocuments(value: boolean): void;
|
|
56
|
+
/**
|
|
57
|
+
* Get theme setting
|
|
58
|
+
* @whatsapp WAWebUserPrefsGeneral >= 2.3000.1032022795
|
|
59
|
+
* @returns Theme value: "light" or "dark"
|
|
60
|
+
*/
|
|
61
|
+
export declare function getTheme(): string;
|
|
62
|
+
/**
|
|
63
|
+
* Set theme setting
|
|
64
|
+
* @whatsapp WAWebUserPrefsGeneral >= 2.3000.1032022795
|
|
65
|
+
* @param value Theme value: "light" or "dark"
|
|
66
|
+
*/
|
|
67
|
+
export declare function setTheme(value: string): void;
|
|
@@ -27,6 +27,7 @@ export * from './ImageUtils';
|
|
|
27
27
|
export * from './IsOfficialClient';
|
|
28
28
|
export * from './Lid1X1MigrationUtils';
|
|
29
29
|
export * from './LidPnCache';
|
|
30
|
+
export * from './LruMediaStore';
|
|
30
31
|
export * from './MediaBlobCache';
|
|
31
32
|
export * from './MediaEntry';
|
|
32
33
|
export * from './MediaGatingUtils';
|
|
@@ -43,8 +44,8 @@ export * from './ServerProps';
|
|
|
43
44
|
export * from './ServerPropsConstants';
|
|
44
45
|
export * from './Socket';
|
|
45
46
|
export * from './Stream';
|
|
46
|
-
export * from './UsernameGatingUtils';
|
|
47
47
|
export * from './UserPrefs';
|
|
48
|
+
export * from './UserPrefsGeneral';
|
|
48
49
|
export * from './USyncQuery';
|
|
49
50
|
export * from './USyncUser';
|
|
50
51
|
export * from './VCard';
|
|
@@ -14,119 +14,130 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import * as collections from './collections';
|
|
17
|
-
/**
|
|
18
|
-
* @whatsapp
|
|
17
|
+
/**
|
|
18
|
+
* @whatsapp WAWebBlocklistCollection >= 2.3000.1032534684
|
|
19
19
|
*/
|
|
20
20
|
export declare const BlocklistStore: collections.BlocklistCollection;
|
|
21
|
-
/**
|
|
22
|
-
* @whatsapp
|
|
21
|
+
/**
|
|
22
|
+
* @whatsapp WAWebBusinessCategoriesResultCollection >= 2.3000.1032534684
|
|
23
23
|
*/
|
|
24
24
|
export declare const BusinessCategoriesResultStore: collections.BusinessCategoriesResultCollection;
|
|
25
|
-
/**
|
|
26
|
-
* @whatsapp
|
|
25
|
+
/**
|
|
26
|
+
* @whatsapp WAWebBusinessProfileCollection >= 2.3000.1032534684
|
|
27
27
|
*/
|
|
28
28
|
export declare const BusinessProfileStore: collections.BusinessProfileCollection;
|
|
29
29
|
/** @whatsapp WAWebBotProfileCollection
|
|
30
30
|
*/
|
|
31
31
|
export declare const BotProfileStore: collections.BotProfileCollection;
|
|
32
|
-
/**
|
|
33
|
-
* @whatsapp
|
|
34
|
-
* @whatsapp 160868 >= 2.2222.8
|
|
32
|
+
/**
|
|
33
|
+
* @whatsapp WAWebCallCollection >= 2.3000.1032534684
|
|
35
34
|
*/
|
|
36
35
|
export declare const CallStore: collections.CallCollection;
|
|
37
|
-
/**
|
|
38
|
-
* @whatsapp
|
|
36
|
+
/**
|
|
37
|
+
* @whatsapp WAWebCartCollection >= 2.3000.1032534684
|
|
39
38
|
*/
|
|
40
39
|
export declare const CartStore: collections.CartCollection;
|
|
41
|
-
/**
|
|
42
|
-
* @whatsapp
|
|
40
|
+
/**
|
|
41
|
+
* @whatsapp WAWebCatalogCollection >= 2.3000.1032534684
|
|
43
42
|
*/
|
|
44
43
|
export declare const CatalogStore: collections.CatalogCollection;
|
|
45
|
-
/**
|
|
46
|
-
* @whatsapp
|
|
44
|
+
/**
|
|
45
|
+
* @whatsapp WAWebChatCollection >= 2.3000.1032534684
|
|
47
46
|
*/
|
|
48
47
|
export declare const ChatStore: collections.ChatCollection;
|
|
49
|
-
/**
|
|
50
|
-
* @whatsapp
|
|
48
|
+
/**
|
|
49
|
+
* @whatsapp WAWebNewsletterCollection >= 2.3000.1032534684
|
|
51
50
|
*/
|
|
52
51
|
export declare const NewsletterStore: collections.ChatCollection;
|
|
53
|
-
/**
|
|
54
|
-
* @whatsapp
|
|
52
|
+
/**
|
|
53
|
+
* @whatsapp WAWebContactCollection >= 2.3000.1032534684
|
|
55
54
|
*/
|
|
56
55
|
export declare const ContactStore: collections.ContactCollection;
|
|
57
|
-
/**
|
|
58
|
-
* @whatsapp
|
|
56
|
+
/**
|
|
57
|
+
* @whatsapp WAWebEmojiVariantCollection >= 2.3000.1032534684
|
|
59
58
|
*/
|
|
60
59
|
export declare const EmojiVariantStore: collections.EmojiVariantCollection;
|
|
61
|
-
/**
|
|
62
|
-
* @whatsapp
|
|
60
|
+
/**
|
|
61
|
+
* @whatsapp WAWebGroupMetadataCollection >= 2.3000.1032534684
|
|
63
62
|
*/
|
|
64
63
|
export declare const GroupMetadataStore: collections.GroupMetadataCollection;
|
|
65
|
-
/**
|
|
66
|
-
* @whatsapp
|
|
64
|
+
/**
|
|
65
|
+
* @whatsapp WAWebLabelCollection >= 2.3000.1032534684
|
|
67
66
|
*/
|
|
68
67
|
export declare const LabelStore: collections.LabelCollection;
|
|
69
|
-
/**
|
|
70
|
-
* @whatsapp
|
|
68
|
+
/**
|
|
69
|
+
* @whatsapp WAWebMsgCollection >= 2.3000.1032534684
|
|
71
70
|
*/
|
|
72
71
|
export declare const MsgStore: collections.MsgCollection;
|
|
73
|
-
/**
|
|
74
|
-
* @whatsapp
|
|
72
|
+
/**
|
|
73
|
+
* @whatsapp WAWebMsgInfoCollection >= 2.3000.1032534684
|
|
75
74
|
*/
|
|
76
75
|
export declare const MsgInfoStore: collections.MsgInfoCollection;
|
|
77
|
-
/**
|
|
76
|
+
/**
|
|
77
|
+
* @whatsapp WAWebMuteCollection >= 2.3000.1032534684
|
|
78
|
+
*/
|
|
78
79
|
export declare const MuteStore: collections.MuteCollection;
|
|
79
|
-
/**
|
|
80
|
-
* @whatsapp
|
|
80
|
+
/**
|
|
81
|
+
* @whatsapp WAWebOrderCollection >= 2.3000.1032534684
|
|
81
82
|
*/
|
|
82
83
|
export declare const OrderStore: collections.OrderCollection;
|
|
83
|
-
/**
|
|
84
|
-
* @whatsapp
|
|
84
|
+
/**
|
|
85
|
+
* @whatsapp WAWebPresenceCollection >= 2.3000.1032534684
|
|
85
86
|
*/
|
|
86
87
|
export declare const PresenceStore: collections.PresenceCollection;
|
|
87
|
-
/**
|
|
88
|
+
/**
|
|
89
|
+
* @whatsapp WAWebProductMessageListCollection >= 2.3000.1032534684
|
|
90
|
+
*/
|
|
88
91
|
export declare const ProductMessageListStore: collections.ProductMessageListCollection;
|
|
89
|
-
/**
|
|
90
|
-
* @whatsapp
|
|
92
|
+
/**
|
|
93
|
+
* @whatsapp WAWebProfilePicThumbCollection >= 2.3000.1032534684
|
|
91
94
|
*/
|
|
92
95
|
export declare const ProfilePicThumbStore: collections.ProfilePicThumbCollection;
|
|
93
|
-
/**
|
|
94
|
-
* @whatsapp
|
|
96
|
+
/**
|
|
97
|
+
* @whatsapp WAWebQuickReplyCollection >= 2.3000.1032534684
|
|
95
98
|
*/
|
|
96
99
|
export declare const QuickReplyStore: collections.QuickReplyCollection;
|
|
97
|
-
/**
|
|
98
|
-
* @whatsapp
|
|
100
|
+
/**
|
|
101
|
+
* @whatsapp WAWebReactionsCollection >= 2.3000.1032534684
|
|
99
102
|
*/
|
|
100
103
|
export declare const ReactionsStore: collections.ReactionsCollection;
|
|
101
|
-
/**
|
|
102
|
-
* @whatsapp
|
|
104
|
+
/**
|
|
105
|
+
* @whatsapp WAWebRecentEmojiCollection >= 2.3000.1032534684
|
|
103
106
|
*/
|
|
104
107
|
export declare const RecentEmojiStore: collections.RecentEmojiCollection;
|
|
105
|
-
/**
|
|
106
|
-
* @whatsapp
|
|
108
|
+
/**
|
|
109
|
+
* @whatsapp WAWebRecentStickerCollection >= 2.3000.1032534684
|
|
107
110
|
*/
|
|
108
111
|
export declare const RecentStickerStore: collections.RecentStickerCollection;
|
|
109
|
-
/**
|
|
110
|
-
* @whatsapp
|
|
112
|
+
/**
|
|
113
|
+
* @whatsapp WAWebStarredMsgCollection >= 2.3000.1032534684
|
|
111
114
|
*/
|
|
112
115
|
export declare const StarredMsgStore: collections.StarredMsgCollection;
|
|
113
|
-
/**
|
|
116
|
+
/**
|
|
117
|
+
* @whatsapp WAWebTextStatusCollection >= 2.3000.1032534684
|
|
118
|
+
*/
|
|
114
119
|
export declare const StatusStore: collections.StatusCollection;
|
|
115
|
-
/**
|
|
116
|
-
* @whatsapp
|
|
120
|
+
/**
|
|
121
|
+
* @whatsapp WAWebStatusCollection >= 2.3000.1032534684
|
|
117
122
|
*/
|
|
118
123
|
export declare const StatusV3Store: collections.StatusV3Collection;
|
|
119
|
-
/**
|
|
120
|
-
* @whatsapp
|
|
124
|
+
/**
|
|
125
|
+
* @whatsapp WAWebStickerCollection >= 2.3000.1032534684
|
|
121
126
|
*/
|
|
122
127
|
export declare const StickerStore: collections.StickerCollection;
|
|
123
|
-
/**
|
|
124
|
-
* @whatsapp
|
|
128
|
+
/**
|
|
129
|
+
* @whatsapp WAWebStickerPackCollectionMd >= 2.3000.1032534684
|
|
125
130
|
*/
|
|
126
131
|
export declare const StickerPackStore: collections.StickerPackCollection;
|
|
127
|
-
/**
|
|
128
|
-
* @whatsapp
|
|
132
|
+
/**
|
|
133
|
+
* @whatsapp WAWebStickerSearchCollection >= 2.3000.1032534684
|
|
129
134
|
*/
|
|
130
135
|
export declare const StickerSearchStore: collections.StickerSearchCollection;
|
|
136
|
+
/**
|
|
137
|
+
* @whatsapp WAWebPinInChatCollection >= 2.3000.1032534684
|
|
138
|
+
*/
|
|
131
139
|
export declare const PinInChatStore: collections.PinInChatCollection;
|
|
140
|
+
/**
|
|
141
|
+
* @whatsapp WAWebNoteCollection >= 2.3000.1032534684
|
|
142
|
+
*/
|
|
132
143
|
export declare const NoteStore: collections.NoteCollection;
|