astrabail 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/WAProto/GenerateStatics.sh +3 -0
- package/WAProto/WAProto.proto +3 -0
- package/WAProto/fix-imports.js +3 -0
- package/WAProto/index.d.ts +3 -0
- package/WAProto/index.js +3 -0
- package/WAProto/p.html +3 -0
- package/lib/Defaults/astrabail-version.json +3 -0
- package/lib/Defaults/index.d.ts +3 -1
- package/lib/Defaults/index.js +10 -3
- package/lib/Defaults/phonenumber-mcc.json +3 -0
- package/lib/Defaults/update-wa-version.js +3 -1
- package/lib/Signal/Group/ciphertext-message.d.ts +3 -1
- package/lib/Signal/Group/ciphertext-message.js +3 -0
- package/lib/Signal/Group/group-session-builder.d.ts +3 -1
- package/lib/Signal/Group/group-session-builder.js +3 -0
- package/lib/Signal/Group/group_cipher.d.ts +3 -1
- package/lib/Signal/Group/group_cipher.js +3 -0
- package/lib/Signal/Group/index.d.ts +3 -1
- package/lib/Signal/Group/index.js +3 -0
- package/lib/Signal/Group/keyhelper.d.ts +3 -1
- package/lib/Signal/Group/keyhelper.js +3 -0
- package/lib/Signal/Group/queue-job.js +3 -0
- package/lib/Signal/Group/sender-chain-key.d.ts +3 -1
- package/lib/Signal/Group/sender-chain-key.js +3 -0
- package/lib/Signal/Group/sender-key-distribution-message.d.ts +3 -1
- package/lib/Signal/Group/sender-key-distribution-message.js +3 -0
- package/lib/Signal/Group/sender-key-message.d.ts +3 -1
- package/lib/Signal/Group/sender-key-message.js +3 -0
- package/lib/Signal/Group/sender-key-name.d.ts +3 -1
- package/lib/Signal/Group/sender-key-name.js +3 -0
- package/lib/Signal/Group/sender-key-record.d.ts +3 -1
- package/lib/Signal/Group/sender-key-record.js +3 -0
- package/lib/Signal/Group/sender-key-state.d.ts +3 -1
- package/lib/Signal/Group/sender-key-state.js +3 -0
- package/lib/Signal/Group/sender-message-key.d.ts +3 -1
- package/lib/Signal/Group/sender-message-key.js +3 -0
- package/lib/Signal/libsignal.d.ts +3 -1
- package/lib/Signal/libsignal.js +3 -0
- package/lib/Signal/lid-mapping.d.ts +3 -1
- package/lib/Signal/lid-mapping.js +3 -0
- package/lib/Socket/Client/index.d.ts +3 -1
- package/lib/Socket/Client/index.js +3 -0
- package/lib/Socket/Client/types.d.ts +3 -1
- package/lib/Socket/Client/types.js +3 -0
- package/lib/Socket/Client/websocket.d.ts +3 -1
- package/lib/Socket/Client/websocket.js +3 -0
- package/lib/Socket/business.d.ts +5 -3
- package/lib/Socket/business.js +3 -0
- package/lib/Socket/chats.d.ts +5 -3
- package/lib/Socket/chats.js +4 -1
- package/lib/Socket/communities.d.ts +5 -3
- package/lib/Socket/communities.js +3 -0
- package/lib/Socket/community.js +3 -0
- package/lib/Socket/groups.d.ts +5 -3
- package/lib/Socket/groups.js +3 -0
- package/lib/Socket/index.d.ts +5 -3
- package/lib/Socket/index.js +3 -0
- package/lib/Socket/messages-recv.d.ts +5 -3
- package/lib/Socket/messages-recv.js +3 -0
- package/lib/Socket/messages-send.d.ts +5 -3
- package/lib/Socket/messages-send.js +111 -1
- package/lib/Socket/mex.d.ts +3 -1
- package/lib/Socket/mex.js +3 -0
- package/lib/Socket/newsletter.d.ts +5 -3
- package/lib/Socket/newsletter.js +3 -0
- package/lib/Socket/socket.d.ts +5 -3
- package/lib/Socket/socket.js +4 -1
- package/lib/Socket/usync.js +3 -0
- package/lib/Store/index.js +3 -0
- package/lib/Store/make-cache-manager-store.js +3 -0
- package/lib/Store/make-in-memory-store.js +4 -1
- package/lib/Store/make-ordered-dictionary.js +3 -0
- package/lib/Store/object-repository.js +3 -0
- package/lib/Types/Auth.d.ts +3 -1
- package/lib/Types/Auth.js +3 -0
- package/lib/Types/Bussines.d.ts +3 -1
- package/lib/Types/Bussines.js +3 -0
- package/lib/Types/Call.d.ts +3 -1
- package/lib/Types/Call.js +3 -0
- package/lib/Types/Chat.d.ts +3 -1
- package/lib/Types/Chat.js +3 -0
- package/lib/Types/Contact.d.ts +3 -1
- package/lib/Types/Contact.js +3 -0
- package/lib/Types/Events.d.ts +10 -8
- package/lib/Types/Events.js +3 -0
- package/lib/Types/GroupMetadata.d.ts +3 -1
- package/lib/Types/GroupMetadata.js +3 -0
- package/lib/Types/Label.d.ts +3 -1
- package/lib/Types/Label.js +3 -0
- package/lib/Types/LabelAssociation.d.ts +3 -1
- package/lib/Types/LabelAssociation.js +3 -0
- package/lib/Types/Message.d.ts +3 -1
- package/lib/Types/Message.js +3 -0
- package/lib/Types/MexUpdates.js +3 -0
- package/lib/Types/Newsletter.d.ts +3 -1
- package/lib/Types/Newsletter.js +3 -0
- package/lib/Types/Product.d.ts +3 -1
- package/lib/Types/Product.js +3 -0
- package/lib/Types/Signal.d.ts +3 -1
- package/lib/Types/Signal.js +3 -0
- package/lib/Types/Socket.d.ts +6 -4
- package/lib/Types/Socket.js +3 -0
- package/lib/Types/State.d.ts +3 -1
- package/lib/Types/State.js +3 -0
- package/lib/Types/USync.d.ts +3 -1
- package/lib/Types/USync.js +3 -0
- package/lib/Types/index.d.ts +4 -2
- package/lib/Types/index.js +3 -0
- package/lib/Utils/astrabail-event-stream.js +61 -1
- package/lib/Utils/audioToBuffer.js +3 -0
- package/lib/Utils/auth-utils.d.ts +3 -1
- package/lib/Utils/auth-utils.js +3 -0
- package/lib/Utils/bridge-runtime.d.ts +3 -0
- package/lib/Utils/bridge-runtime.js +3 -0
- package/lib/Utils/browser-utils.d.ts +3 -1
- package/lib/Utils/browser-utils.js +6 -3
- package/lib/Utils/business.d.ts +3 -1
- package/lib/Utils/business.js +3 -0
- package/lib/Utils/chat-utils.d.ts +5 -3
- package/lib/Utils/chat-utils.js +3 -0
- package/lib/Utils/crypto.d.ts +3 -1
- package/lib/Utils/crypto.js +3 -0
- package/lib/Utils/decode-wa-message.d.ts +3 -1
- package/lib/Utils/decode-wa-message.js +3 -0
- package/lib/Utils/event-buffer.d.ts +8 -6
- package/lib/Utils/event-buffer.js +4 -1
- package/lib/Utils/generics.d.ts +9 -7
- package/lib/Utils/generics.js +15 -12
- package/lib/Utils/history.d.ts +3 -1
- package/lib/Utils/history.js +3 -0
- package/lib/Utils/identity-change-handler.d.ts +3 -1
- package/lib/Utils/identity-change-handler.js +3 -0
- package/lib/Utils/index.d.ts +3 -1
- package/lib/Utils/index.js +3 -1
- package/lib/Utils/link-preview.d.ts +3 -1
- package/lib/Utils/link-preview.js +3 -0
- package/lib/Utils/logger.d.ts +3 -1
- package/lib/Utils/logger.js +3 -0
- package/lib/Utils/lt-hash.d.ts +3 -1
- package/lib/Utils/lt-hash.js +3 -0
- package/lib/Utils/make-mutex.d.ts +3 -1
- package/lib/Utils/make-mutex.js +3 -0
- package/lib/Utils/message-retry-manager.d.ts +3 -1
- package/lib/Utils/message-retry-manager.js +3 -0
- package/lib/Utils/messages-media.d.ts +3 -1
- package/lib/Utils/messages-media.js +4 -1
- package/lib/Utils/messages-newsletter.d.ts +3 -0
- package/lib/Utils/messages-newsletter.js +3 -0
- package/lib/Utils/messages.d.ts +3 -1
- package/lib/Utils/messages.js +4 -1
- package/lib/Utils/noise-handler.d.ts +3 -1
- package/lib/Utils/noise-handler.js +3 -0
- package/lib/Utils/pre-key-manager.d.ts +3 -1
- package/lib/Utils/pre-key-manager.js +3 -0
- package/lib/Utils/process-message.d.ts +5 -3
- package/lib/Utils/process-message.js +3 -0
- package/lib/Utils/reporting-utils.d.ts +3 -1
- package/lib/Utils/reporting-utils.js +3 -0
- package/lib/Utils/resolve-jid.d.ts +3 -0
- package/lib/Utils/resolve-jid.js +3 -0
- package/lib/Utils/rust-bridge-shim.d.ts +3 -0
- package/lib/Utils/rust-bridge-shim.js +3 -0
- package/lib/Utils/serial-task-queue.js +3 -0
- package/lib/Utils/signal.d.ts +3 -1
- package/lib/Utils/signal.js +3 -0
- package/lib/Utils/streamToBuffer.js +3 -0
- package/lib/Utils/sync-action-utils.d.ts +6 -4
- package/lib/Utils/sync-action-utils.js +3 -0
- package/lib/Utils/tc-token-utils.d.ts +3 -1
- package/lib/Utils/tc-token-utils.js +3 -0
- package/lib/Utils/use-mongo-file-auth-state.js +3 -0
- package/lib/Utils/use-multi-file-auth-state.d.ts +3 -1
- package/lib/Utils/use-multi-file-auth-state.js +4 -1
- package/lib/Utils/use-single-file-auth-state.js +3 -0
- package/lib/Utils/validate-connection.d.ts +3 -1
- package/lib/Utils/validate-connection.js +3 -0
- package/lib/WABinary/constants.d.ts +3 -1
- package/lib/WABinary/constants.js +3 -0
- package/lib/WABinary/decode.d.ts +3 -1
- package/lib/WABinary/decode.js +3 -0
- package/lib/WABinary/encode.d.ts +3 -1
- package/lib/WABinary/encode.js +3 -0
- package/lib/WABinary/generic-utils.d.ts +3 -1
- package/lib/WABinary/generic-utils.js +3 -0
- package/lib/WABinary/index.d.ts +3 -1
- package/lib/WABinary/index.js +3 -0
- package/lib/WABinary/jid-utils.d.ts +3 -1
- package/lib/WABinary/jid-utils.js +3 -0
- package/lib/WABinary/types.d.ts +3 -1
- package/lib/WABinary/types.js +3 -0
- package/lib/WAM/BinaryInfo.d.ts +3 -1
- package/lib/WAM/BinaryInfo.js +3 -0
- package/lib/WAM/constants.d.ts +3 -1
- package/lib/WAM/constants.js +3 -0
- package/lib/WAM/encode.d.ts +3 -1
- package/lib/WAM/encode.js +3 -0
- package/lib/WAM/index.d.ts +3 -1
- package/lib/WAM/index.js +3 -0
- package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +3 -1
- package/lib/WAUSync/Protocols/USyncContactProtocol.js +3 -0
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +3 -1
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +3 -0
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +3 -1
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +3 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +3 -1
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js +3 -0
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +3 -1
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +3 -0
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +3 -1
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +3 -0
- package/lib/WAUSync/Protocols/index.d.ts +3 -1
- package/lib/WAUSync/Protocols/index.js +3 -0
- package/lib/WAUSync/USyncQuery.d.ts +3 -1
- package/lib/WAUSync/USyncQuery.js +3 -0
- package/lib/WAUSync/USyncUser.d.ts +3 -1
- package/lib/WAUSync/USyncUser.js +3 -0
- package/lib/WAUSync/index.d.ts +3 -1
- package/lib/WAUSync/index.js +3 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +3 -0
- package/package.json +4 -4
- package/readme.md +1956 -1956
- package/lib/Utils/baileys-event-stream.js +0 -60
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
yarn pbjs -t static-module --no-beautify -w es6 --no-bundle --no-delimited --no-verify --no-comments -o ./index.js ./WAProto.proto;
|
|
2
2
|
yarn pbjs -t static-module --no-beautify -w es6 --no-bundle --no-delimited --no-verify ./WAProto.proto | yarn pbts --no-comments -o ./index.d.ts -;
|
|
3
3
|
node ./fix-imports.js
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
package/WAProto/WAProto.proto
CHANGED
package/WAProto/fix-imports.js
CHANGED
package/WAProto/index.d.ts
CHANGED
|
@@ -14015,3 +14015,6 @@ export namespace proto {
|
|
|
14015
14015
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
14016
14016
|
}
|
|
14017
14017
|
}
|
|
14018
|
+
|
|
14019
|
+
|
|
14020
|
+
|
package/WAProto/index.js
CHANGED
|
@@ -89349,3 +89349,6 @@ exports.proto = $root.proto = (() => {
|
|
|
89349
89349
|
})();
|
|
89350
89350
|
return proto;
|
|
89351
89351
|
})();
|
|
89352
|
+
|
|
89353
|
+
|
|
89354
|
+
|
package/WAProto/p.html
CHANGED
package/lib/Defaults/index.d.ts
CHANGED
package/lib/Defaults/index.js
CHANGED
|
@@ -53,12 +53,12 @@ exports.DEFAULT_CONNECTION_CONFIG = {
|
|
|
53
53
|
browser: browser_utils_js_1.Browsers.macOS('Chrome'),
|
|
54
54
|
waWebSocketUrl: 'wss://web.whatsapp.com/ws/chat',
|
|
55
55
|
connectTimeoutMs: 20000,
|
|
56
|
-
keepAliveIntervalMs:
|
|
56
|
+
keepAliveIntervalMs: 25000,
|
|
57
57
|
logger: logger_js_1.default.child({ class: 'astrabail' }),
|
|
58
58
|
emitOwnEvents: true,
|
|
59
59
|
defaultQueryTimeoutMs: 60000,
|
|
60
60
|
customUploadHosts: [],
|
|
61
|
-
retryRequestDelayMs:
|
|
61
|
+
retryRequestDelayMs: 200,
|
|
62
62
|
maxMsgRetryCount: 5,
|
|
63
63
|
fireInitQueries: true,
|
|
64
64
|
auth: undefined,
|
|
@@ -109,7 +109,11 @@ exports.DEFAULT_CONNECTION_CONFIG = {
|
|
|
109
109
|
countryCode: 'US',
|
|
110
110
|
getMessage: async () => undefined,
|
|
111
111
|
cachedGroupMetadata: async () => undefined,
|
|
112
|
-
makeSignalRepository: libsignal_js_1.makeLibSignalRepository
|
|
112
|
+
makeSignalRepository: libsignal_js_1.makeLibSignalRepository,
|
|
113
|
+
// ── Album Message Config ───────────────────────────────────────────────────
|
|
114
|
+
// Jeda antar item album dalam ms. Bisa dioverride oleh user saat init socket.
|
|
115
|
+
// Terlalu cepat bisa menyebabkan item album tidak terbaca server WA.
|
|
116
|
+
albumMessageItemDelayMs: 800
|
|
113
117
|
};
|
|
114
118
|
exports.MEDIA_PATH_MAP = {
|
|
115
119
|
image: '/mms/image',
|
|
@@ -164,3 +168,6 @@ exports.TimeMs = {
|
|
|
164
168
|
Week: 7 * 24 * 60 * 60 * 1000
|
|
165
169
|
};
|
|
166
170
|
exports.PHONENUMBER_MCC = phoneNumberMcc;
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
@@ -9,4 +9,6 @@ export { SenderMessageKey } from './sender-message-key.js';
|
|
|
9
9
|
export { SenderChainKey } from './sender-chain-key.js';
|
|
10
10
|
export { CiphertextMessage } from './ciphertext-message.js';
|
|
11
11
|
export * as keyhelper from './keyhelper.js';
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
13
|
+
|
|
14
|
+
|
|
@@ -55,3 +55,6 @@ Object.defineProperty(exports, "SenderChainKey", { enumerable: true, get: functi
|
|
|
55
55
|
var ciphertext_message_js_1 = require("./ciphertext-message.js");
|
|
56
56
|
Object.defineProperty(exports, "CiphertextMessage", { enumerable: true, get: function () { return ciphertext_message_js_1.CiphertextMessage; } });
|
|
57
57
|
exports.keyhelper = __importStar(require("./keyhelper.js"));
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
@@ -14,4 +14,6 @@ export declare class SenderKeyDistributionMessage extends CiphertextMessage {
|
|
|
14
14
|
getSignatureKey(): Uint8Array;
|
|
15
15
|
getId(): number;
|
|
16
16
|
}
|
|
17
|
-
//# sourceMappingURL=sender-key-distribution-message.d.ts.map
|
|
17
|
+
//# sourceMappingURL=sender-key-distribution-message.d.ts.map
|
|
18
|
+
|
|
19
|
+
|
|
@@ -2,4 +2,6 @@ import type { LIDMapping, SignalAuthState } from '../Types/index.js';
|
|
|
2
2
|
import type { SignalRepositoryWithLIDStore } from '../Types/Signal.js';
|
|
3
3
|
import type { ILogger } from '../Utils/logger.js';
|
|
4
4
|
export declare function makeLibSignalRepository(auth: SignalAuthState, logger: ILogger, pnToLIDFunc?: (jids: string[]) => Promise<LIDMapping[] | undefined>): SignalRepositoryWithLIDStore;
|
|
5
|
-
//# sourceMappingURL=libsignal.d.ts.map
|
|
5
|
+
//# sourceMappingURL=libsignal.d.ts.map
|
|
6
|
+
|
|
7
|
+
|
package/lib/Signal/libsignal.js
CHANGED
|
@@ -13,4 +13,6 @@ export declare abstract class AbstractSocketClient extends EventEmitter {
|
|
|
13
13
|
abstract close(): void;
|
|
14
14
|
abstract send(str: Uint8Array | string, cb?: (err?: Error) => void): boolean;
|
|
15
15
|
}
|
|
16
|
-
//# sourceMappingURL=types.d.ts.map
|
|
16
|
+
//# sourceMappingURL=types.d.ts.map
|
|
17
|
+
|
|
18
|
+
|
package/lib/Socket/business.d.ts
CHANGED
|
@@ -161,8 +161,8 @@ export declare const makeBusinessSocket: (config: SocketConfig) => {
|
|
|
161
161
|
removeQuickReply: (timestamp: string) => Promise<void>;
|
|
162
162
|
type: "md";
|
|
163
163
|
ws: import("./Client/index.js").WebSocketClient;
|
|
164
|
-
ev: import("../index.js").
|
|
165
|
-
process(handler: (events: Partial<import("../index.js").
|
|
164
|
+
ev: import("../index.js").AstraBailEventEmitter & {
|
|
165
|
+
process(handler: (events: Partial<import("../index.js").AstraBailEventMap>) => void | Promise<void>): () => void;
|
|
166
166
|
buffer(): void;
|
|
167
167
|
createBufferedFunction<A extends any[], T>(work: (...args: A) => Promise<T>): (...args: A) => Promise<T>;
|
|
168
168
|
flush(): boolean;
|
|
@@ -199,4 +199,6 @@ export declare const makeBusinessSocket: (config: SocketConfig) => {
|
|
|
199
199
|
exists: boolean;
|
|
200
200
|
}[] | undefined>;
|
|
201
201
|
};
|
|
202
|
-
//# sourceMappingURL=business.d.ts.map
|
|
202
|
+
//# sourceMappingURL=business.d.ts.map
|
|
203
|
+
|
|
204
|
+
|
package/lib/Socket/business.js
CHANGED
package/lib/Socket/chats.d.ts
CHANGED
|
@@ -70,8 +70,8 @@ export declare const makeChatsSocket: (config: SocketConfig) => {
|
|
|
70
70
|
removeQuickReply: (timestamp: string) => Promise<void>;
|
|
71
71
|
type: "md";
|
|
72
72
|
ws: import("./Client/websocket.js").WebSocketClient;
|
|
73
|
-
ev: import("../Types/index.js").
|
|
74
|
-
process(handler: (events: Partial<import("../Types/index.js").
|
|
73
|
+
ev: import("../Types/index.js").AstraBailEventEmitter & {
|
|
74
|
+
process(handler: (events: Partial<import("../Types/index.js").AstraBailEventMap>) => void | Promise<void>): () => void;
|
|
75
75
|
buffer(): void;
|
|
76
76
|
createBufferedFunction<A extends any[], T>(work: (...args: A) => Promise<T>): (...args: A) => Promise<T>;
|
|
77
77
|
flush(): boolean;
|
|
@@ -108,4 +108,6 @@ export declare const makeChatsSocket: (config: SocketConfig) => {
|
|
|
108
108
|
exists: boolean;
|
|
109
109
|
}[] | undefined>;
|
|
110
110
|
};
|
|
111
|
-
//# sourceMappingURL=chats.d.ts.map
|
|
111
|
+
//# sourceMappingURL=chats.d.ts.map
|
|
112
|
+
|
|
113
|
+
|
package/lib/Socket/chats.js
CHANGED
|
@@ -735,7 +735,7 @@ const makeChatsSocket = (config) => {
|
|
|
735
735
|
return appPatch(patch);
|
|
736
736
|
};
|
|
737
737
|
/**
|
|
738
|
-
* Enable/Disable link preview privacy, not related to
|
|
738
|
+
* Enable/Disable link preview privacy, not related to AstraBail link preview generation
|
|
739
739
|
*/
|
|
740
740
|
const updateDisableLinkPreviewsPrivacy = (isPreviewsDisabled) => {
|
|
741
741
|
return chatModify({
|
|
@@ -1153,3 +1153,6 @@ const makeChatsSocket = (config) => {
|
|
|
1153
1153
|
};
|
|
1154
1154
|
};
|
|
1155
1155
|
exports.makeChatsSocket = makeChatsSocket;
|
|
1156
|
+
|
|
1157
|
+
|
|
1158
|
+
|
|
@@ -216,8 +216,8 @@ export declare const makeCommunitiesSocket: (config: SocketConfig) => {
|
|
|
216
216
|
removeQuickReply: (timestamp: string) => Promise<void>;
|
|
217
217
|
type: "md";
|
|
218
218
|
ws: import("./Client/websocket.js").WebSocketClient;
|
|
219
|
-
ev: import("../Types/index.js").
|
|
220
|
-
process(handler: (events: Partial<import("../Types/index.js").
|
|
219
|
+
ev: import("../Types/index.js").AstraBailEventEmitter & {
|
|
220
|
+
process(handler: (events: Partial<import("../Types/index.js").AstraBailEventMap>) => void | Promise<void>): () => void;
|
|
221
221
|
buffer(): void;
|
|
222
222
|
createBufferedFunction<A extends any[], T>(work: (...args: A) => Promise<T>): (...args: A) => Promise<T>;
|
|
223
223
|
flush(): boolean;
|
|
@@ -255,4 +255,6 @@ export declare const makeCommunitiesSocket: (config: SocketConfig) => {
|
|
|
255
255
|
}[] | undefined>;
|
|
256
256
|
};
|
|
257
257
|
export declare const extractCommunityMetadata: (result: BinaryNode) => GroupMetadata;
|
|
258
|
-
//# sourceMappingURL=communities.d.ts.map
|
|
258
|
+
//# sourceMappingURL=communities.d.ts.map
|
|
259
|
+
|
|
260
|
+
|
package/lib/Socket/community.js
CHANGED
package/lib/Socket/groups.d.ts
CHANGED
|
@@ -107,8 +107,8 @@ export declare const makeGroupsSocket: (config: SocketConfig) => {
|
|
|
107
107
|
removeQuickReply: (timestamp: string) => Promise<void>;
|
|
108
108
|
type: "md";
|
|
109
109
|
ws: import("./Client/websocket.js").WebSocketClient;
|
|
110
|
-
ev: import("../Types/index.js").
|
|
111
|
-
process(handler: (events: Partial<import("../Types/index.js").
|
|
110
|
+
ev: import("../Types/index.js").AstraBailEventEmitter & {
|
|
111
|
+
process(handler: (events: Partial<import("../Types/index.js").AstraBailEventMap>) => void | Promise<void>): () => void;
|
|
112
112
|
buffer(): void;
|
|
113
113
|
createBufferedFunction<A extends any[], T>(work: (...args: A) => Promise<T>): (...args: A) => Promise<T>;
|
|
114
114
|
flush(): boolean;
|
|
@@ -147,4 +147,6 @@ export declare const makeGroupsSocket: (config: SocketConfig) => {
|
|
|
147
147
|
};
|
|
148
148
|
export declare const extractGroupMetadata: (result: BinaryNode) => GroupMetadata;
|
|
149
149
|
export type GroupsSocket = ReturnType<typeof makeGroupsSocket>;
|
|
150
|
-
//# sourceMappingURL=groups.d.ts.map
|
|
150
|
+
//# sourceMappingURL=groups.d.ts.map
|
|
151
|
+
|
|
152
|
+
|
package/lib/Socket/groups.js
CHANGED
package/lib/Socket/index.d.ts
CHANGED
|
@@ -203,8 +203,8 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
|
|
|
203
203
|
removeQuickReply: (timestamp: string) => Promise<void>;
|
|
204
204
|
type: "md";
|
|
205
205
|
ws: import("./Client/index.js").WebSocketClient;
|
|
206
|
-
ev: import("../index.js").
|
|
207
|
-
process(handler: (events: Partial<import("../index.js").
|
|
206
|
+
ev: import("../index.js").AstraBailEventEmitter & {
|
|
207
|
+
process(handler: (events: Partial<import("../index.js").AstraBailEventMap>) => void | Promise<void>): () => void;
|
|
208
208
|
buffer(): void;
|
|
209
209
|
createBufferedFunction<A extends any[], T>(work: (...args: A) => Promise<T>): (...args: A) => Promise<T>;
|
|
210
210
|
flush(): boolean;
|
|
@@ -242,4 +242,6 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
|
|
|
242
242
|
}[] | undefined>;
|
|
243
243
|
};
|
|
244
244
|
export default makeWASocket;
|
|
245
|
-
//# sourceMappingURL=index.d.ts.map
|
|
245
|
+
//# sourceMappingURL=index.d.ts.map
|
|
246
|
+
|
|
247
|
+
|
package/lib/Socket/index.js
CHANGED
|
@@ -146,8 +146,8 @@ export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
|
|
|
146
146
|
removeQuickReply: (timestamp: string) => Promise<void>;
|
|
147
147
|
type: "md";
|
|
148
148
|
ws: import("./Client/websocket.js").WebSocketClient;
|
|
149
|
-
ev: import("../Types/index.js").
|
|
150
|
-
process(handler: (events: Partial<import("../Types/index.js").
|
|
149
|
+
ev: import("../Types/index.js").AstraBailEventEmitter & {
|
|
150
|
+
process(handler: (events: Partial<import("../Types/index.js").AstraBailEventMap>) => void | Promise<void>): () => void;
|
|
151
151
|
buffer(): void;
|
|
152
152
|
createBufferedFunction<A extends any[], T>(work: (...args: A) => Promise<T>): (...args: A) => Promise<T>;
|
|
153
153
|
flush(): boolean;
|
|
@@ -184,4 +184,6 @@ export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
|
|
|
184
184
|
exists: boolean;
|
|
185
185
|
}[] | undefined>;
|
|
186
186
|
};
|
|
187
|
-
//# sourceMappingURL=messages-recv.d.ts.map
|
|
187
|
+
//# sourceMappingURL=messages-recv.d.ts.map
|
|
188
|
+
|
|
189
|
+
|
|
@@ -142,8 +142,8 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
|
|
|
142
142
|
removeQuickReply: (timestamp: string) => Promise<void>;
|
|
143
143
|
type: "md";
|
|
144
144
|
ws: import("./Client/websocket.js").WebSocketClient;
|
|
145
|
-
ev: import("../Types/index.js").
|
|
146
|
-
process(handler: (events: Partial<import("../Types/index.js").
|
|
145
|
+
ev: import("../Types/index.js").AstraBailEventEmitter & {
|
|
146
|
+
process(handler: (events: Partial<import("../Types/index.js").AstraBailEventMap>) => void | Promise<void>): () => void;
|
|
147
147
|
buffer(): void;
|
|
148
148
|
createBufferedFunction<A extends any[], T>(work: (...args: A) => Promise<T>): (...args: A) => Promise<T>;
|
|
149
149
|
flush(): boolean;
|
|
@@ -180,4 +180,6 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
|
|
|
180
180
|
exists: boolean;
|
|
181
181
|
}[] | undefined>;
|
|
182
182
|
};
|
|
183
|
-
//# sourceMappingURL=messages-send.d.ts.map
|
|
183
|
+
//# sourceMappingURL=messages-send.d.ts.map
|
|
184
|
+
|
|
185
|
+
|