@wppconnect/wa-js 2.23.4 → 2.24.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 +5 -1
- package/dist/chat/events/eventTypes.d.ts +10 -0
- package/dist/chat/events/index.d.ts +1 -0
- package/dist/chat/events/registerLabelEvent.d.ts +16 -0
- package/dist/chat/functions/getQuotedMsg.d.ts +1 -1
- package/dist/conn/events/eventTypes.d.ts +15 -0
- package/dist/conn/events/index.d.ts +1 -0
- package/dist/conn/events/registerOnlineEvent.d.ts +16 -0
- package/dist/conn/functions/index.d.ts +3 -0
- package/dist/conn/functions/isOnline.d.ts +24 -0
- package/dist/conn/functions/joinWebBeta.d.ts +29 -0
- package/dist/conn/functions/setLimit.d.ts +65 -0
- package/dist/group/functions/approve.d.ts +30 -0
- package/dist/group/functions/getAllGroups.d.ts +1 -1
- package/dist/group/functions/getMembershipRequests.d.ts +33 -0
- package/dist/group/functions/index.d.ts +3 -0
- package/dist/group/functions/reject.d.ts +30 -0
- package/dist/util/linkPreview.d.ts +0 -10
- package/dist/whatsapp/functions/addToLabelCollection.d.ts +22 -0
- package/dist/whatsapp/functions/changeOptInStatusForExternalWebBeta.d.ts +19 -0
- package/dist/whatsapp/functions/frontendFireAndForget.d.ts +19 -0
- package/dist/whatsapp/functions/getABPropConfigValue.d.ts +21 -0
- package/dist/whatsapp/functions/getAsMms.d.ts +20 -0
- package/dist/whatsapp/functions/getEphemeralFields.d.ts +24 -0
- package/dist/whatsapp/functions/getMembershipApprovalRequests.d.ts +19 -0
- package/dist/whatsapp/functions/getNumChatsPinned.d.ts +21 -0
- package/dist/whatsapp/functions/getWhatsAppWebExternalBetaJoinedIdb.d.ts +21 -0
- package/dist/whatsapp/functions/index.d.ts +11 -0
- package/dist/whatsapp/functions/membershipApprovalRequestAction.d.ts +22 -0
- package/dist/whatsapp/functions/syncABPropsTask.d.ts +19 -0
- package/dist/whatsapp/misc/NetworkStatus.d.ts +20 -0
- package/dist/whatsapp/misc/ServerProps.d.ts +20 -0
- package/dist/whatsapp/misc/index.d.ts +2 -0
- package/dist/whatsapp/models/MsgModel.d.ts +2 -2
- package/dist/whatsapp/models/NetworkStatusModel.d.ts +43 -0
- package/dist/whatsapp/models/ServerPropsModel.d.ts +40 -0
- package/dist/whatsapp/models/index.d.ts +2 -0
- package/dist/whatsapp/websocket/index.d.ts +2 -0
- package/dist/whatsapp/websocket/startWebComms.d.ts +19 -0
- package/dist/whatsapp/websocket/stopComms.d.ts +20 -0
- package/dist/wppconnect-wa.js +1 -1
- package/package.json +11 -11
|
@@ -0,0 +1,22 @@
|
|
|
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 290542
|
|
18
|
+
*/
|
|
19
|
+
export declare function membershipApprovalRequestAction(groupId: Wid, requestedMembersId: Wid[], type: 'Approve' | 'Reject'): Promise<{
|
|
20
|
+
error: any;
|
|
21
|
+
wid: Wid;
|
|
22
|
+
}[]>;
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
/**
|
|
17
|
+
* @whatsapp 266485
|
|
18
|
+
*/
|
|
19
|
+
export declare function syncABPropsTask(): Promise<any>;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { NetworkStatusModel } from '../models';
|
|
17
|
+
/**
|
|
18
|
+
* @whatsapp 765044 >= 2.2222.8
|
|
19
|
+
*/
|
|
20
|
+
export declare const NetworkStatus: NetworkStatusModel;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { ServerPropsModel } from '../models';
|
|
17
|
+
/** @whatsapp 8080
|
|
18
|
+
* @whatsapp 608080 >= 2.2222.8
|
|
19
|
+
*/
|
|
20
|
+
export declare const ServerProps: ServerPropsModel;
|
|
@@ -30,8 +30,10 @@ export * from './MediaPrep';
|
|
|
30
30
|
export * from './MediaUtils';
|
|
31
31
|
export * from './MsgKey';
|
|
32
32
|
export * from './MsgLoadState';
|
|
33
|
+
export * from './NetworkStatus';
|
|
33
34
|
export * from './OpaqueData';
|
|
34
35
|
export * from './ProductCatalogSession';
|
|
36
|
+
export * from './ServerProps';
|
|
35
37
|
export * from './Socket';
|
|
36
38
|
export * from './Stream';
|
|
37
39
|
export * from './UserPrefs';
|
|
@@ -164,8 +164,8 @@ interface Props {
|
|
|
164
164
|
paymentRequestMessageKey?: any;
|
|
165
165
|
paymentExpiryTimestamp?: any;
|
|
166
166
|
ephemeralStartTimestamp?: any;
|
|
167
|
-
ephemeralDuration?:
|
|
168
|
-
ephemeralSettingTimestamp?:
|
|
167
|
+
ephemeralDuration?: number;
|
|
168
|
+
ephemeralSettingTimestamp?: number;
|
|
169
169
|
ephemeralOutOfSync?: any;
|
|
170
170
|
ephemeralSharedSecret?: any;
|
|
171
171
|
disappearingModeInitiator?: any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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 { MuteCollection } from '../collections';
|
|
17
|
+
import { Model, ModelOptions, ModelPropertiesContructor, ModelProxy } from './Model';
|
|
18
|
+
interface Props {
|
|
19
|
+
}
|
|
20
|
+
interface Session {
|
|
21
|
+
online: boolean;
|
|
22
|
+
simulatedOfflineConditions: boolean;
|
|
23
|
+
}
|
|
24
|
+
interface Derived {
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @whatsapp 99398 >= 2.2318.11
|
|
28
|
+
*/
|
|
29
|
+
export declare interface NetworkStatusModel extends ModelProxy<Props, Session, Derived> {
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @whatsapp 99398 >= 2.2318.11
|
|
33
|
+
*/
|
|
34
|
+
export declare class NetworkStatusModel extends Model<MuteCollection> {
|
|
35
|
+
constructor(proterties?: ModelPropertiesContructor<NetworkStatusModel>, options?: ModelOptions);
|
|
36
|
+
waitIfOffline(options: {
|
|
37
|
+
signal: AbortSignal;
|
|
38
|
+
}): Promise<void>;
|
|
39
|
+
checkOnline(options: {
|
|
40
|
+
signal: AbortSignal;
|
|
41
|
+
}): Promise<void>;
|
|
42
|
+
}
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { Model, ModelOptions, ModelPropertiesContructor, ModelProxy } from './Model';
|
|
17
|
+
interface Props {
|
|
18
|
+
statusVideoMaxDuration: number;
|
|
19
|
+
multicastLimitGlobal: number;
|
|
20
|
+
frequentlyForwardedThreshold: number;
|
|
21
|
+
frequentlyForwardedMax: number;
|
|
22
|
+
maxFileSize: number;
|
|
23
|
+
media: number;
|
|
24
|
+
}
|
|
25
|
+
interface Session {
|
|
26
|
+
}
|
|
27
|
+
interface Derived {
|
|
28
|
+
}
|
|
29
|
+
/** @whatsapp 17239
|
|
30
|
+
* @whatsapp 317239 >= 2.2222.8
|
|
31
|
+
*/
|
|
32
|
+
export declare interface ServerPropsModel extends ModelProxy<Props, Session, Derived> {
|
|
33
|
+
}
|
|
34
|
+
/** @whatsapp 17239
|
|
35
|
+
* @whatsapp 317239 >= 2.2222.8
|
|
36
|
+
*/
|
|
37
|
+
export declare class ServerPropsModel extends Model {
|
|
38
|
+
constructor(proterties?: ModelPropertiesContructor<ServerPropsModel>, options?: ModelOptions);
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
@@ -42,6 +42,7 @@ export * from './MsgInfoModel';
|
|
|
42
42
|
export * from './MsgInfoParticipantModel';
|
|
43
43
|
export * from './MsgModel';
|
|
44
44
|
export * from './MuteModel';
|
|
45
|
+
export * from './NetworkStatusModel';
|
|
45
46
|
export * from './OrderItemModel';
|
|
46
47
|
export * from './OrderModel';
|
|
47
48
|
export * from './ParticipantModel';
|
|
@@ -58,6 +59,7 @@ export * from './ReactionsSendersModel';
|
|
|
58
59
|
export * from './RecentEmojiModel';
|
|
59
60
|
export * from './RecentStickerModel';
|
|
60
61
|
export * from './ReplyButtonModel';
|
|
62
|
+
export * from './ServerPropsModel';
|
|
61
63
|
export * from './SocketModel';
|
|
62
64
|
export * from './StatusModel';
|
|
63
65
|
export * from './StatusV3Model';
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
/**
|
|
17
|
+
* @whatsapp 504784
|
|
18
|
+
*/
|
|
19
|
+
export declare function startWebComms(): Promise<void>;
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
/**
|
|
17
|
+
* @whatsapp 67201
|
|
18
|
+
*/
|
|
19
|
+
export declare function stopComms(): Promise<any>;
|
|
20
|
+
export declare function startHandlingRequests(): Promise<any>;
|