@wppconnect/wa-js 3.7.0 → 3.8.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/CHANGELOG.md +2 -1922
- package/dist/chat/functions/index.d.ts +1 -0
- package/dist/chat/functions/setInputText.d.ts +20 -0
- package/dist/enums.d.ts +6 -0
- package/dist/index.d.ts +1 -0
- package/dist/privacy/functions/get.d.ts +25 -0
- package/dist/privacy/functions/getDisallowedList.d.ts +38 -0
- package/dist/privacy/functions/index.d.ts +24 -0
- package/dist/privacy/functions/prepareDisallowedList.d.ts +29 -0
- package/dist/privacy/functions/setAbout.d.ts +25 -0
- package/dist/privacy/functions/setAddGroup.d.ts +24 -0
- package/dist/privacy/functions/setLastSeen.d.ts +25 -0
- package/dist/privacy/functions/setOnline.d.ts +20 -0
- package/dist/privacy/functions/setProfilePic.d.ts +25 -0
- package/dist/privacy/functions/setReadReceipts.d.ts +20 -0
- package/dist/privacy/functions/setStatus.d.ts +22 -0
- package/dist/privacy/index.d.ts +16 -0
- package/dist/whatsapp/functions/getPrivacyDisallowedListTable.d.ts +27 -0
- package/dist/whatsapp/functions/getPushname.d.ts +10 -0
- package/dist/whatsapp/functions/getStatusList.d.ts +28 -0
- package/dist/whatsapp/functions/index.d.ts +3 -0
- package/dist/whatsapp/functions/setPrivacyForOneCategory.d.ts +48 -0
- package/dist/whatsapp/misc/ComposeBoxActions.d.ts +34 -0
- package/dist/whatsapp/misc/index.d.ts +1 -0
- package/dist/wppconnect-wa.js +1 -1
- package/dist/wppconnect-wa.js.LICENSE.txt +1 -1
- package/package.json +11 -11
|
@@ -67,5 +67,6 @@ export { sendReactionToMessage } from './sendReactionToMessage';
|
|
|
67
67
|
export { ScheduledCallMessageOptions, sendScheduledCallMessage, } from './sendScheduledCallMessage';
|
|
68
68
|
export { sendTextMessage, TextMessageOptions } from './sendTextMessage';
|
|
69
69
|
export { sendVCardContactMessage, VCardContact, } from './sendVCardContactMessage';
|
|
70
|
+
export { setInputText } from './setInputText';
|
|
70
71
|
export { starMessage, StarMessageReturn } from './starMessage';
|
|
71
72
|
export { unmute } from './unmute';
|
|
@@ -0,0 +1,20 @@
|
|
|
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 '../../whatsapp';
|
|
17
|
+
export declare function setInputText(text: string, chatId?: string | Wid): Promise<{
|
|
18
|
+
text: string;
|
|
19
|
+
timestamp: number;
|
|
20
|
+
}>;
|
package/dist/enums.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export { config, Config } from './config';
|
|
|
23
23
|
export * as blocklist from './blocklist';
|
|
24
24
|
export * as call from './call';
|
|
25
25
|
export * as cart from './cart';
|
|
26
|
+
export * as privacy from './privacy';
|
|
26
27
|
export * as catalog from './catalog';
|
|
27
28
|
export * as chat from './chat';
|
|
28
29
|
export * as conn from './conn';
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
export declare function get(): Promise<{
|
|
17
|
+
about: string;
|
|
18
|
+
callAdd: string;
|
|
19
|
+
groupAdd: string;
|
|
20
|
+
lastSeen: string;
|
|
21
|
+
online: string;
|
|
22
|
+
profilePicture: string;
|
|
23
|
+
readReceipts: string;
|
|
24
|
+
status: string;
|
|
25
|
+
}>;
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
/**
|
|
17
|
+
* Get the disallowed list to get the contacts who cannot see your privacy (this applies when enabled: my contacts, except...).
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```javascript
|
|
21
|
+
* // get disalowed list for group Last seen
|
|
22
|
+
* const disalowed = WPP.privacy.getDisalowedList('last');
|
|
23
|
+
*
|
|
24
|
+
* // get disalowed list for profile
|
|
25
|
+
* const disalowed = WPP.privacy.getDisalowedList('profile');
|
|
26
|
+
*
|
|
27
|
+
* // get disalowed list for status
|
|
28
|
+
* const disalowed = WPP.privacy.getDisalowedList('status');
|
|
29
|
+
*
|
|
30
|
+
* // get disalowed list for group add
|
|
31
|
+
* const disalowed = WPP.privacy.getDisalowedList('groupadd');
|
|
32
|
+
*
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* @category Privacy
|
|
36
|
+
*/
|
|
37
|
+
import { PrivacyDisallowedListType } from '../../enums';
|
|
38
|
+
export declare function getDisallowedList(type: PrivacyDisallowedListType): Promise<string[] | null>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2022 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 { get } from './get';
|
|
17
|
+
export { getDisallowedList } from './getDisallowedList';
|
|
18
|
+
export { setAbout } from './setAbout';
|
|
19
|
+
export { setAddGroup } from './setAddGroup';
|
|
20
|
+
export { setLastSeen } from './setLastSeen';
|
|
21
|
+
export { setOnline } from './setOnline';
|
|
22
|
+
export { setProfilePic } from './setProfilePic';
|
|
23
|
+
export { setReadReceipts } from './setReadReceipts';
|
|
24
|
+
export { setStatus } from './setStatus';
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { PrivacyDisallowedListType } from '../../enums';
|
|
17
|
+
import { Wid } from '../../whatsapp';
|
|
18
|
+
export declare function prepareDisallowedList(type: PrivacyDisallowedListType, value: any, list?: {
|
|
19
|
+
id: string;
|
|
20
|
+
action: 'add' | 'remove';
|
|
21
|
+
}[]): Promise<{
|
|
22
|
+
ids: Wid[];
|
|
23
|
+
dhash: number | null;
|
|
24
|
+
idsFormatted: {
|
|
25
|
+
wid: Wid;
|
|
26
|
+
action: 'add' | 'remove';
|
|
27
|
+
}[];
|
|
28
|
+
allUsers: Wid[];
|
|
29
|
+
}>;
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
export declare enum setAboutTypes {
|
|
17
|
+
all = "all",
|
|
18
|
+
contacts = "contacts",
|
|
19
|
+
none = "none",
|
|
20
|
+
contact_blacklist = "contact_blacklist"
|
|
21
|
+
}
|
|
22
|
+
export declare function setAbout(value: setAboutTypes, disallowedList?: {
|
|
23
|
+
id: string;
|
|
24
|
+
action: 'add' | 'remove';
|
|
25
|
+
}[]): Promise<setAboutTypes>;
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
export declare enum setAddGroupTypes {
|
|
17
|
+
all = "all",
|
|
18
|
+
contacts = "contacts",
|
|
19
|
+
contact_blacklist = "contact_blacklist"
|
|
20
|
+
}
|
|
21
|
+
export declare function setAddGroup(value: setAddGroupTypes, disallowedList?: {
|
|
22
|
+
id: string;
|
|
23
|
+
action: 'add' | 'remove';
|
|
24
|
+
}[]): Promise<setAddGroupTypes>;
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
export declare enum setLastSeenTypes {
|
|
17
|
+
all = "all",
|
|
18
|
+
contacts = "contacts",
|
|
19
|
+
none = "none",
|
|
20
|
+
contact_blacklist = "contact_blacklist"
|
|
21
|
+
}
|
|
22
|
+
export declare function setLastSeen(value: setLastSeenTypes, disallowedList?: {
|
|
23
|
+
id: string;
|
|
24
|
+
action: 'add' | 'remove';
|
|
25
|
+
}[]): Promise<setLastSeenTypes>;
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
export declare enum setOnlineTypes {
|
|
17
|
+
all = "all",
|
|
18
|
+
match_last_seen = "match_last_seen"
|
|
19
|
+
}
|
|
20
|
+
export declare function setOnline(value: setOnlineTypes): Promise<setOnlineTypes>;
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
export declare enum setProfilePicTypes {
|
|
17
|
+
all = "all",
|
|
18
|
+
contacts = "contacts",
|
|
19
|
+
none = "none",
|
|
20
|
+
contact_blacklist = "contact_blacklist"
|
|
21
|
+
}
|
|
22
|
+
export declare function setProfilePic(value: setProfilePicTypes, disallowedList?: {
|
|
23
|
+
id: string;
|
|
24
|
+
action: 'add' | 'remove';
|
|
25
|
+
}[]): Promise<setProfilePicTypes>;
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
export declare enum setReadReceiptsTypes {
|
|
17
|
+
all = "all",
|
|
18
|
+
none = "none"
|
|
19
|
+
}
|
|
20
|
+
export declare function setReadReceipts(value: setReadReceiptsTypes): Promise<setReadReceiptsTypes>;
|
|
@@ -0,0 +1,22 @@
|
|
|
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 '../../whatsapp';
|
|
17
|
+
export declare enum setStatusTypes {
|
|
18
|
+
contact = "contact",
|
|
19
|
+
DENY_LIST = "deny-list",
|
|
20
|
+
ALLOW_LIST = "allow-list"
|
|
21
|
+
}
|
|
22
|
+
export declare function setStatus(value: setStatusTypes, list?: string[] | Wid[]): Promise<setStatusTypes>;
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export * from './functions/';
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
declare class DisallowedListTable {
|
|
17
|
+
get(type: 'status' | 'groupadd' | 'last' | 'profile'): Promise<{
|
|
18
|
+
dhash: number;
|
|
19
|
+
disallowedList: string[];
|
|
20
|
+
id: 'status' | 'groupadd' | 'last' | 'profile';
|
|
21
|
+
} | null>;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @whatsapp WAWebSchemaPrivacyDisallowedList >= 2.3000.0
|
|
25
|
+
*/
|
|
26
|
+
export declare function getPrivacyDisallowedListTable(): DisallowedListTable;
|
|
27
|
+
export {};
|
|
@@ -15,5 +15,15 @@
|
|
|
15
15
|
*/
|
|
16
16
|
/**
|
|
17
17
|
* @whatsapp 135963 >= 2.2310.5
|
|
18
|
+
* @whatsapp WAWebUserPrefsGeneral >= 2.3000.0
|
|
18
19
|
*/
|
|
19
20
|
export declare function getPushname(): string;
|
|
21
|
+
export declare function getUserPrivacySettings(): {
|
|
22
|
+
about: string;
|
|
23
|
+
callAdd: string;
|
|
24
|
+
groupAdd: string;
|
|
25
|
+
lastSeen: string;
|
|
26
|
+
online: string;
|
|
27
|
+
profilePicture: string;
|
|
28
|
+
readReceipts: string;
|
|
29
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2023 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
|
+
/** @whatsapp WAWebUserPrefsStatus >= 2.3000.0
|
|
18
|
+
*/
|
|
19
|
+
export declare function getStatusAllowList(): Promise<any>;
|
|
20
|
+
export declare function getStatusContacts(): Promise<any>;
|
|
21
|
+
export declare function getStatusDenyList(): Promise<any>;
|
|
22
|
+
export declare function getStatusList(): Promise<any>;
|
|
23
|
+
export declare function getStatusPrivacySetting(): Promise<any>;
|
|
24
|
+
export declare function getStatusPrivacySettingConfig(): Promise<any>;
|
|
25
|
+
export declare function setStatusPrivacyConfig(attributes?: {
|
|
26
|
+
setting: 'contact' | 'deny-list' | 'allow-list';
|
|
27
|
+
list: Wid[];
|
|
28
|
+
}): Promise<any>;
|
|
@@ -68,10 +68,12 @@ export * from './getNextLabelId';
|
|
|
68
68
|
export * from './getNumChatsPinned';
|
|
69
69
|
export * from './getOrderInfo';
|
|
70
70
|
export * from './getParticipants';
|
|
71
|
+
export * from './getPrivacyDisallowedListTable';
|
|
71
72
|
export * from './getPushname';
|
|
72
73
|
export * from './getQuotedMsgObj';
|
|
73
74
|
export * from './getReactions';
|
|
74
75
|
export * from './getSearchContext';
|
|
76
|
+
export * from './getStatusList';
|
|
75
77
|
export * from './getTableVotes';
|
|
76
78
|
export * from './getVotes';
|
|
77
79
|
export * from './getWhatsAppWebExternalBetaJoinedIdb';
|
|
@@ -128,6 +130,7 @@ export * from './sendTextMsgToChat';
|
|
|
128
130
|
export * from './setArchive';
|
|
129
131
|
export * from './setGroup';
|
|
130
132
|
export * from './setPin';
|
|
133
|
+
export * from './setPrivacyForOneCategory';
|
|
131
134
|
export * from './setPushname';
|
|
132
135
|
export * from './status';
|
|
133
136
|
export * from './STATUS_JID';
|
|
@@ -0,0 +1,48 @@
|
|
|
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 '../misc';
|
|
17
|
+
/** @whatsapp WAWebSetPrivacyForOneCategoryAction >= 2.3000.0
|
|
18
|
+
*/
|
|
19
|
+
/** For set privacy who can you see your last seen, profile pic, or status */
|
|
20
|
+
export declare function setPrivacyForOneCategory(attrs: {
|
|
21
|
+
name: 'last' | 'profile' | 'status';
|
|
22
|
+
value: 'contacts' | 'all' | 'contact_blacklist' | 'none';
|
|
23
|
+
users?: {
|
|
24
|
+
action: 'add' | 'remove';
|
|
25
|
+
wid: Wid;
|
|
26
|
+
}[];
|
|
27
|
+
dhash?: any;
|
|
28
|
+
}, disallowedList?: Wid[]): Promise<void>;
|
|
29
|
+
/** set privacy for who has permission to add a group */
|
|
30
|
+
export declare function setPrivacyForOneCategory(attrs: {
|
|
31
|
+
name: 'groupadd';
|
|
32
|
+
value: 'contacts' | 'all' | 'contact_blacklist';
|
|
33
|
+
users?: {
|
|
34
|
+
action: 'add' | 'remove';
|
|
35
|
+
wid: Wid;
|
|
36
|
+
}[];
|
|
37
|
+
dhash?: any;
|
|
38
|
+
}, disallowedList?: Wid[]): Promise<void>;
|
|
39
|
+
/** For set privacy who can you see your last online */
|
|
40
|
+
export declare function setPrivacyForOneCategory(attrs: {
|
|
41
|
+
name: 'online';
|
|
42
|
+
value: 'all' | 'match_last_seen';
|
|
43
|
+
}): Promise<void>;
|
|
44
|
+
/** For set privacy who can you see your read receipts */
|
|
45
|
+
export declare function setPrivacyForOneCategory(attrs: {
|
|
46
|
+
name: 'readreceipts';
|
|
47
|
+
value: 'all' | 'none';
|
|
48
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
import { ChatModel } from '..';
|
|
17
|
+
import { EventEmitter } from '.';
|
|
18
|
+
/** @whatsapp 88102
|
|
19
|
+
* @whatsapp 81572 >= 2.2218.4
|
|
20
|
+
* @whatsapp 781572 >= 2.2222.8
|
|
21
|
+
*/
|
|
22
|
+
export declare class ComposeBoxActionsClass extends EventEmitter {
|
|
23
|
+
focus(e?: any, t?: any): void;
|
|
24
|
+
send(e?: any, t?: any): void;
|
|
25
|
+
paste(e?: any, t?: any): void;
|
|
26
|
+
sendPaste(e?: any, t?: any): void;
|
|
27
|
+
toggleQuickReplies(e?: any, t?: any): void;
|
|
28
|
+
addMsgSendingLogAttributes(e?: any, t?: any): void;
|
|
29
|
+
setCtwaContextLinkData(e?: any, t?: any): void;
|
|
30
|
+
setTextContent(chat: ChatModel, text: string): void;
|
|
31
|
+
}
|
|
32
|
+
/** @whatsapp WAWebComposeBoxActions >= 2.3000.0
|
|
33
|
+
*/
|
|
34
|
+
export declare const ComposeBoxActions: ComposeBoxActionsClass;
|