talkyzap-wapp-api 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/CHANGELOG.md +1 -1
- package/README.md +4 -4
- package/dist/assert/assertColor.d.ts +4 -4
- package/dist/chat/functions/buttonsParser.d.ts +24 -0
- package/dist/chat/functions/deleteMessage.d.ts +2 -8
- package/dist/chat/functions/getNotes.d.ts +26 -0
- package/dist/chat/functions/index.d.ts +3 -0
- package/dist/chat/functions/prepareMessageButtons.d.ts +4 -12
- package/dist/chat/functions/sendEventMessage.d.ts +64 -0
- package/dist/chat/functions/sendFileMessage.d.ts +2 -1
- package/dist/chat/functions/sendScheduledCallMessage.d.ts +5 -8
- package/dist/chat/functions/sendTextMessage.d.ts +2 -1
- package/dist/chat/functions/setNotes.d.ts +26 -0
- package/dist/community/functions/getAnnouncementGroup.d.ts +28 -0
- package/dist/community/functions/getSubgroups.d.ts +28 -0
- package/dist/community/functions/index.d.ts +2 -0
- package/dist/contact/functions/getProfilePictureUrl.d.ts +1 -1
- package/dist/contact/functions/getStatus.d.ts +1 -1
- package/dist/contact/functions/index.d.ts +2 -0
- package/dist/contact/functions/queryExists.d.ts +1 -1
- package/dist/contact/functions/subscribePresence.d.ts +27 -0
- package/dist/contact/functions/unsubscribePresence.d.ts +27 -0
- package/dist/eventEmitter/index.d.ts +22 -22
- package/dist/group/functions/getGroupInfoFromInviteCode.d.ts +1 -1
- package/dist/profile/functions/getMyProfilePicture.d.ts +27 -0
- package/dist/profile/functions/index.d.ts +1 -0
- package/dist/whatsapp/collections/BotProfileCollection.d.ts +26 -0
- package/dist/whatsapp/collections/NoteCollection.d.ts +26 -0
- package/dist/whatsapp/collections/index.d.ts +2 -0
- package/dist/whatsapp/functions/addOrEditNoteAction.d.ts +27 -0
- package/dist/whatsapp/functions/createEventCallLink.d.ts +18 -0
- package/dist/whatsapp/functions/createFanoutMsgStanza.d.ts +8 -0
- package/dist/whatsapp/functions/genBotMsgSecretFromMsgSecret.d.ts +19 -0
- package/dist/whatsapp/functions/index.d.ts +4 -0
- package/dist/whatsapp/functions/removeStatusMessage.d.ts +19 -0
- package/dist/whatsapp/functions/subscribePresence.d.ts +20 -0
- package/dist/whatsapp/misc/Wid.d.ts +1 -0
- package/dist/whatsapp/models/BotProfileModel.d.ts +51 -0
- package/dist/whatsapp/models/ChatModel.d.ts +1 -0
- package/dist/whatsapp/models/NoteModel.d.ts +40 -0
- package/dist/whatsapp/models/index.d.ts +2 -0
- package/dist/whatsapp/stores.d.ts +4 -0
- package/dist/wppconnect-wa.js +1 -1
- package/dist/wppconnect-wa.js.LICENSE.txt +1 -1
- package/package.json +21 -18
|
@@ -37,19 +37,19 @@ export declare const emitAsync: <Name extends "config.update" | "blocklist.sync"
|
|
|
37
37
|
alfa: string;
|
|
38
38
|
beta: (from: number, to: string) => void;
|
|
39
39
|
})[Name]>) => Promise<any[]>;
|
|
40
|
-
export declare const eventNames: <Name extends "config.update" | "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(nsAsArray?: boolean
|
|
40
|
+
export declare const eventNames: <Name extends "config.update" | "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(nsAsArray?: boolean) => Name[];
|
|
41
41
|
export declare const getMaxListeners: () => number;
|
|
42
42
|
export declare const hasListeners: <Name extends "config.update" | "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event?: Name | undefined) => boolean;
|
|
43
43
|
export declare const listenTo: {
|
|
44
|
-
(target: import("eventemitter2").GeneralEventEmitter, events:
|
|
44
|
+
(target: import("eventemitter2").GeneralEventEmitter, events: import("eventemitter2").event | import("eventemitter2").eventNS, options?: import("eventemitter2").ListenToOptions): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
45
45
|
alfa: string;
|
|
46
46
|
beta: (from: number, to: string) => void;
|
|
47
47
|
}>;
|
|
48
|
-
(target: import("eventemitter2").GeneralEventEmitter, events: import("eventemitter2").event[], options?: import("eventemitter2").ListenToOptions
|
|
48
|
+
(target: import("eventemitter2").GeneralEventEmitter, events: import("eventemitter2").event[], options?: import("eventemitter2").ListenToOptions): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
49
49
|
alfa: string;
|
|
50
50
|
beta: (from: number, to: string) => void;
|
|
51
51
|
}>;
|
|
52
|
-
(target: import("eventemitter2").GeneralEventEmitter, events: object, options?: import("eventemitter2").ListenToOptions
|
|
52
|
+
(target: import("eventemitter2").GeneralEventEmitter, events: object, options?: import("eventemitter2").ListenToOptions): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
53
53
|
alfa: string;
|
|
54
54
|
beta: (from: number, to: string) => void;
|
|
55
55
|
}>;
|
|
@@ -64,10 +64,10 @@ export declare const many: {
|
|
|
64
64
|
})[Name]>) => void, options: import("./eventEmitter").OnOptions & {
|
|
65
65
|
objectify: true;
|
|
66
66
|
}): import("eventemitter2").Listener;
|
|
67
|
-
<
|
|
67
|
+
<Name extends "config.update" | "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, timesToListen: number, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
68
68
|
alfa: string;
|
|
69
69
|
beta: (from: number, to: string) => void;
|
|
70
|
-
})[
|
|
70
|
+
})[Name]>) => void, options?: boolean | import("./eventEmitter").OnOptions): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
71
71
|
alfa: string;
|
|
72
72
|
beta: (from: number, to: string) => void;
|
|
73
73
|
}>;
|
|
@@ -90,10 +90,10 @@ export declare const on: {
|
|
|
90
90
|
})[Name]>) => void, options: import("./eventEmitter").OnOptions & {
|
|
91
91
|
objectify: true;
|
|
92
92
|
}): import("eventemitter2").Listener;
|
|
93
|
-
<
|
|
93
|
+
<Name extends "config.update" | "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
94
94
|
alfa: string;
|
|
95
95
|
beta: (from: number, to: string) => void;
|
|
96
|
-
})[
|
|
96
|
+
})[Name]>) => void, options?: boolean | import("./eventEmitter").OnOptions): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
97
97
|
alfa: string;
|
|
98
98
|
beta: (from: number, to: string) => void;
|
|
99
99
|
}>;
|
|
@@ -109,10 +109,10 @@ export declare const once: {
|
|
|
109
109
|
})[Name]>) => void, options: import("./eventEmitter").OnOptions & {
|
|
110
110
|
objectify: true;
|
|
111
111
|
}): import("eventemitter2").Listener;
|
|
112
|
-
<
|
|
112
|
+
<Name extends "config.update" | "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
113
113
|
alfa: string;
|
|
114
114
|
beta: (from: number, to: string) => void;
|
|
115
|
-
})[
|
|
115
|
+
})[Name]>) => void, options?: true | import("./eventEmitter").OnOptions): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
116
116
|
alfa: string;
|
|
117
117
|
beta: (from: number, to: string) => void;
|
|
118
118
|
}>;
|
|
@@ -128,10 +128,10 @@ export declare const prependListener: {
|
|
|
128
128
|
})[Name]>) => void, options: import("./eventEmitter").OnOptions & {
|
|
129
129
|
objectify: true;
|
|
130
130
|
}): import("eventemitter2").Listener;
|
|
131
|
-
<
|
|
131
|
+
<Name extends "config.update" | "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
132
132
|
alfa: string;
|
|
133
133
|
beta: (from: number, to: string) => void;
|
|
134
|
-
})[
|
|
134
|
+
})[Name]>) => void, options?: boolean | import("./eventEmitter").OnOptions): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
135
135
|
alfa: string;
|
|
136
136
|
beta: (from: number, to: string) => void;
|
|
137
137
|
}>;
|
|
@@ -143,10 +143,10 @@ export declare const prependMany: {
|
|
|
143
143
|
})[Name]>) => void, options: import("./eventEmitter").OnOptions & {
|
|
144
144
|
objectify: true;
|
|
145
145
|
}): import("eventemitter2").Listener;
|
|
146
|
-
<
|
|
146
|
+
<Name extends "config.update" | "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, timesToListen: number, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
147
147
|
alfa: string;
|
|
148
148
|
beta: (from: number, to: string) => void;
|
|
149
|
-
})[
|
|
149
|
+
})[Name]>) => void, options?: boolean | import("./eventEmitter").OnOptions): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
150
150
|
alfa: string;
|
|
151
151
|
beta: (from: number, to: string) => void;
|
|
152
152
|
}>;
|
|
@@ -158,10 +158,10 @@ export declare const prependOnceListener: {
|
|
|
158
158
|
})[Name]>) => void, options: import("./eventEmitter").OnOptions & {
|
|
159
159
|
objectify: true;
|
|
160
160
|
}): import("eventemitter2").Listener;
|
|
161
|
-
<
|
|
161
|
+
<Name extends "config.update" | "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
162
162
|
alfa: string;
|
|
163
163
|
beta: (from: number, to: string) => void;
|
|
164
|
-
})[
|
|
164
|
+
})[Name]>) => void, options?: boolean | import("./eventEmitter").OnOptions): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
165
165
|
alfa: string;
|
|
166
166
|
beta: (from: number, to: string) => void;
|
|
167
167
|
}>;
|
|
@@ -178,18 +178,18 @@ export declare const removeListener: <Name extends "config.update" | "blocklist.
|
|
|
178
178
|
beta: (from: number, to: string) => void;
|
|
179
179
|
}>;
|
|
180
180
|
export declare const setMaxListeners: (n: number) => void;
|
|
181
|
-
export declare const stopListeningTo: (target?: import("eventemitter2").GeneralEventEmitter
|
|
181
|
+
export declare const stopListeningTo: (target?: import("eventemitter2").GeneralEventEmitter, event?: import("eventemitter2").event | import("eventemitter2").eventNS) => boolean;
|
|
182
182
|
export declare const waitFor: {
|
|
183
|
-
<Name extends "config.update" | "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, timeout?: number
|
|
183
|
+
<Name extends "config.update" | "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, timeout?: number): import("eventemitter2").CancelablePromise<import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
184
184
|
alfa: string;
|
|
185
185
|
beta: (from: number, to: string) => void;
|
|
186
186
|
})[Name]>>;
|
|
187
|
-
<
|
|
187
|
+
<Name extends "config.update" | "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, filter?: import("./eventEmitter").WaitForFilter): import("eventemitter2").CancelablePromise<import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
188
188
|
alfa: string;
|
|
189
189
|
beta: (from: number, to: string) => void;
|
|
190
|
-
})[
|
|
191
|
-
<
|
|
190
|
+
})[Name]>>;
|
|
191
|
+
<Name extends "config.update" | "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, options?: import("eventemitter2").WaitForOptions): import("eventemitter2").CancelablePromise<import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
192
192
|
alfa: string;
|
|
193
193
|
beta: (from: number, to: string) => void;
|
|
194
|
-
})[
|
|
194
|
+
})[Name]>>;
|
|
195
195
|
};
|
|
@@ -40,7 +40,7 @@ export declare function getGroupInfoFromInviteCode(inviteCode: string): Promise<
|
|
|
40
40
|
descTime: number;
|
|
41
41
|
noFrequentlyForwarded: boolean;
|
|
42
42
|
parent: boolean;
|
|
43
|
-
pvId?: string
|
|
43
|
+
pvId?: string;
|
|
44
44
|
restrict: boolean;
|
|
45
45
|
size: number;
|
|
46
46
|
status: number;
|
|
@@ -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
|
+
import { ProfilePicThumbModel } from '../../whatsapp';
|
|
17
|
+
/**
|
|
18
|
+
* Get your current profile picture
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```javascript
|
|
22
|
+
* await WPP.profile.getMyProfilePicture();
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @category Profile
|
|
26
|
+
*/
|
|
27
|
+
export declare function getMyProfilePicture(): Promise<ProfilePicThumbModel>;
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
export { editBusinessProfile } from './editBusinessProfile';
|
|
17
17
|
export { getMyProfileName } from './getMyProfileName';
|
|
18
|
+
export { getMyProfilePicture } from './getMyProfilePicture';
|
|
18
19
|
export { getMyStatus } from './getMyStatus';
|
|
19
20
|
export { isBusiness } from './isBusiness';
|
|
20
21
|
export { removeMyProfilePicture } from './removeMyProfilePicture';
|
|
@@ -0,0 +1,26 @@
|
|
|
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 { BotProfileModel } from '../models/BotProfileModel';
|
|
17
|
+
import { Collection } from './Collection';
|
|
18
|
+
/** @whatsapp WAWebBotProfileCollection
|
|
19
|
+
*/
|
|
20
|
+
export declare class BotProfileCollection extends Collection<BotProfileModel> {
|
|
21
|
+
static model: BotProfileModel;
|
|
22
|
+
static staleCollection?: any;
|
|
23
|
+
getDefaultBot(): any;
|
|
24
|
+
findImpl(a?: any): any;
|
|
25
|
+
update(): any;
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 { NoteModel } from '../models';
|
|
17
|
+
import { Collection } from './Collection';
|
|
18
|
+
/** @whatsapp WAWebNoteCollection
|
|
19
|
+
*/
|
|
20
|
+
export declare class NoteCollection extends Collection<NoteModel> {
|
|
21
|
+
static model: NoteModel;
|
|
22
|
+
maybeGetNoteByChatJid(a?: any): any;
|
|
23
|
+
hasCachedQueryForChatJid(e?: any): any;
|
|
24
|
+
updateCollectionFromDB(a?: any, b?: any): any;
|
|
25
|
+
purgeNotesByChatJid(a?: any): any;
|
|
26
|
+
}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
export * from './AggReactionsCollection';
|
|
17
17
|
export * from './BaseCollection';
|
|
18
18
|
export * from './BlocklistCollection';
|
|
19
|
+
export * from './BotProfileCollection';
|
|
19
20
|
export * from './BusinessCategoriesResultCollection';
|
|
20
21
|
export * from './BusinessProfileCollection';
|
|
21
22
|
export * from './ButtonCollection';
|
|
@@ -37,6 +38,7 @@ export * from './MsgCollection';
|
|
|
37
38
|
export * from './MsgInfoCollection';
|
|
38
39
|
export * from './MsgInfoParticipantCollection';
|
|
39
40
|
export * from './MuteCollection';
|
|
41
|
+
export * from './NoteCollection';
|
|
40
42
|
export * from './OrderCollection';
|
|
41
43
|
export * from './OrderItemCollection';
|
|
42
44
|
export * from './ParticipantCollection';
|
|
@@ -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
|
+
import { NoteModel } from '../models';
|
|
17
|
+
/** @whatsapp WAWebNoteAction
|
|
18
|
+
*/
|
|
19
|
+
export declare function addOrEditNoteAction(attrs: {
|
|
20
|
+
actionType: 'edit' | 'add';
|
|
21
|
+
chatJid: string;
|
|
22
|
+
content: string;
|
|
23
|
+
createdAt: number;
|
|
24
|
+
id: string;
|
|
25
|
+
noteType: 'unstructured';
|
|
26
|
+
}, b: boolean): Promise<any>;
|
|
27
|
+
export declare function retrieveOnlyNoteForChatJid(jid: string): Promise<null | NoteModel>;
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
/** @whatsapp 75887
|
|
17
|
+
*/
|
|
18
|
+
export declare function createEventCallLink(eventStartTime: number, type: 'voice' | 'video'): Promise<string>;
|
|
@@ -22,3 +22,11 @@ export declare function createFanoutMsgStanza(msg: MsgModel, data: any, proto: {
|
|
|
22
22
|
}, devices: Wid[], options: {
|
|
23
23
|
[key: string]: any;
|
|
24
24
|
}): Promise<websocket.WapNode>;
|
|
25
|
+
export declare function createFanoutMsgStanza(message: {
|
|
26
|
+
type: string;
|
|
27
|
+
data: MsgModel;
|
|
28
|
+
}, proto: {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
}, devices: Wid[], options: {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}, reporter: any, groupData?: any): Promise<websocket.WapNode>;
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
* @whatsapp WAWebBotMessageSecret
|
|
18
|
+
*/
|
|
19
|
+
export declare function genBotMsgSecretFromMsgSecret(a: any): Promise<any>;
|
|
@@ -26,6 +26,7 @@ export * from './changeOptInStatusForExternalWebBeta';
|
|
|
26
26
|
export * from './collections';
|
|
27
27
|
export * from './colorIndexToHex';
|
|
28
28
|
export * from './contactFunctions';
|
|
29
|
+
export * from './createEventCallLink';
|
|
29
30
|
export * from './createFanoutMsgStanza';
|
|
30
31
|
export * from './createGroup';
|
|
31
32
|
export * from './createMsgProtobuf';
|
|
@@ -48,6 +49,7 @@ export * from './findCommonGroups';
|
|
|
48
49
|
export * from './findFirstWebLink';
|
|
49
50
|
export * from './forwardMessagesToChats';
|
|
50
51
|
export * from './frontendFireAndForget';
|
|
52
|
+
export * from './genBotMsgSecretFromMsgSecret';
|
|
51
53
|
export * from './generateVideoThumbsAndDuration';
|
|
52
54
|
export * from './genLinkDeviceCodeForPhoneNumber';
|
|
53
55
|
export * from './genMinimalLinkPreview';
|
|
@@ -109,6 +111,7 @@ export * from './queryNewsletterMetadataByJid';
|
|
|
109
111
|
export * from './queryOrder';
|
|
110
112
|
export * from './randomHex';
|
|
111
113
|
export * from './randomId';
|
|
114
|
+
export * from './removeStatusMessage';
|
|
112
115
|
export * from './resetGroupInviteCode';
|
|
113
116
|
export * from './revokeStatus';
|
|
114
117
|
export * from './sendClear';
|
|
@@ -134,6 +137,7 @@ export * from './setPushname';
|
|
|
134
137
|
export * from './status';
|
|
135
138
|
export * from './STATUS_JID';
|
|
136
139
|
export * from './statusEnable';
|
|
140
|
+
export * from './subscribePresence';
|
|
137
141
|
export * from './syncABPropsTask';
|
|
138
142
|
export * from './typeAttributeFromProtobuf';
|
|
139
143
|
export * from './unixTime';
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
* @whatsapp WAWebDBMessageDelete
|
|
18
|
+
*/
|
|
19
|
+
export declare function removeStatusMessage(id: string[]): Promise<any>;
|
|
@@ -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 '..';
|
|
17
|
+
/**
|
|
18
|
+
* @whatsapp WAWebContactPresenceBridge
|
|
19
|
+
*/
|
|
20
|
+
export declare function subscribePresence(id: Wid, tcToken?: any): Promise<any>;
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { BotProfileCollection } from '../collections';
|
|
17
|
+
import { Wid } from '../misc';
|
|
18
|
+
import { ContactModel } from './ContactModel';
|
|
19
|
+
import { Model, ModelOptions, ModelPropertiesContructor, ModelProxy } from './Model';
|
|
20
|
+
interface Props {
|
|
21
|
+
id: Wid;
|
|
22
|
+
name: string;
|
|
23
|
+
attrs?: any;
|
|
24
|
+
description?: any;
|
|
25
|
+
category?: any;
|
|
26
|
+
isDefault: boolean;
|
|
27
|
+
prompts?: any[];
|
|
28
|
+
personaId: string;
|
|
29
|
+
commands: any[];
|
|
30
|
+
commandsDescription: any;
|
|
31
|
+
isMetaCreated: boolean;
|
|
32
|
+
creatorName?: string;
|
|
33
|
+
creatorProfileUrl?: string;
|
|
34
|
+
lastUpdateTs: number;
|
|
35
|
+
}
|
|
36
|
+
interface Session {
|
|
37
|
+
contact: ContactModel;
|
|
38
|
+
}
|
|
39
|
+
interface Derived {
|
|
40
|
+
}
|
|
41
|
+
/** @whatsapp WAWebBotProfileModel
|
|
42
|
+
*/
|
|
43
|
+
export declare interface BotProfileModel extends ModelProxy<Props, Session, Derived> {
|
|
44
|
+
}
|
|
45
|
+
/** @whatsapp WAWebBotProfileModel
|
|
46
|
+
*/
|
|
47
|
+
export declare class BotProfileModel extends Model<BotProfileCollection> {
|
|
48
|
+
idClass: typeof Wid;
|
|
49
|
+
constructor(proterties?: ModelPropertiesContructor<BotProfileModel>, options?: ModelOptions);
|
|
50
|
+
}
|
|
51
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { NoteCollection } from '../collections';
|
|
17
|
+
import { Model, ModelOptions, ModelPropertiesContructor, ModelProxy } from './Model';
|
|
18
|
+
interface Props {
|
|
19
|
+
id?: any;
|
|
20
|
+
type?: string;
|
|
21
|
+
chatJid: string;
|
|
22
|
+
content: string;
|
|
23
|
+
createdAt?: number;
|
|
24
|
+
modifiedAt?: number;
|
|
25
|
+
}
|
|
26
|
+
interface Session {
|
|
27
|
+
stale?: any;
|
|
28
|
+
}
|
|
29
|
+
interface Derived {
|
|
30
|
+
}
|
|
31
|
+
export declare interface NoteModel extends ModelProxy<Props, Session, Derived> {
|
|
32
|
+
}
|
|
33
|
+
/** @whatsapp 86761
|
|
34
|
+
*/
|
|
35
|
+
export declare class NoteModel extends Model<NoteCollection> {
|
|
36
|
+
constructor(proterties?: ModelPropertiesContructor<NoteModel>, options?: ModelOptions);
|
|
37
|
+
triggerItemCollectionUpdate(): any;
|
|
38
|
+
getCollection(): NoteCollection;
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
export * from './AggReactionsModel';
|
|
17
17
|
export * from './AttachMediaModel';
|
|
18
18
|
export * from './BlocklistModel';
|
|
19
|
+
export * from './BotProfileModel';
|
|
19
20
|
export * from './BusinessCategoriesResultModel';
|
|
20
21
|
export * from './BusinessProfileModel';
|
|
21
22
|
export * from './CallModel';
|
|
@@ -42,6 +43,7 @@ export * from './MsgInfoParticipantModel';
|
|
|
42
43
|
export * from './MsgModel';
|
|
43
44
|
export * from './MuteModel';
|
|
44
45
|
export * from './NetworkStatusModel';
|
|
46
|
+
export * from './NoteModel';
|
|
45
47
|
export * from './OrderItemModel';
|
|
46
48
|
export * from './OrderModel';
|
|
47
49
|
export * from './ParticipantModel';
|
|
@@ -26,6 +26,9 @@ export declare const BusinessCategoriesResultStore: collections.BusinessCategori
|
|
|
26
26
|
* @whatsapp 493581 >= 2.2222.8
|
|
27
27
|
*/
|
|
28
28
|
export declare const BusinessProfileStore: collections.BusinessProfileCollection;
|
|
29
|
+
/** @whatsapp WAWebBotProfileCollection
|
|
30
|
+
*/
|
|
31
|
+
export declare const BotProfileStore: collections.BotProfileCollection;
|
|
29
32
|
/** @whatsapp 60868
|
|
30
33
|
* @whatsapp 31218 >= 2.2204.13
|
|
31
34
|
* @whatsapp 160868 >= 2.2222.8
|
|
@@ -126,3 +129,4 @@ export declare const StickerPackStore: collections.StickerPackCollection;
|
|
|
126
129
|
*/
|
|
127
130
|
export declare const StickerSearchStore: collections.StickerSearchCollection;
|
|
128
131
|
export declare const PinInChatStore: collections.PinInChatCollection;
|
|
132
|
+
export declare const NoteStore: collections.NoteCollection;
|