kage-baileys 25.3.15 → 25.3.18
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/lib/Utils/crypto.js +30 -12
- package/lib/Utils/lt-hash.js +15 -7
- package/lib/WAUSync/Protocols/index.js +2 -0
- package/package.json +1 -1
- package/lib/index.d.ts +0 -485
package/lib/Utils/crypto.js
CHANGED
|
@@ -34,21 +34,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.signedKeyPair = exports.Curve = exports.generateSignalPubKey = void 0;
|
|
37
|
-
exports.aesEncryptGCM = aesEncryptGCM;
|
|
38
|
-
exports.aesDecryptGCM = aesDecryptGCM;
|
|
39
|
-
exports.aesEncryptCTR = aesEncryptCTR;
|
|
40
|
-
exports.aesDecryptCTR = aesDecryptCTR;
|
|
41
|
-
exports.aesDecrypt = aesDecrypt;
|
|
42
|
-
exports.aesDecryptWithIV = aesDecryptWithIV;
|
|
43
|
-
exports.aesEncrypt = aesEncrypt;
|
|
44
|
-
exports.aesEncrypWithIV = aesEncrypWithIV;
|
|
45
|
-
exports.hmacSign = hmacSign;
|
|
46
|
-
exports.sha256 = sha256;
|
|
47
|
-
exports.derivePairingCodeKey = derivePairingCodeKey;
|
|
48
37
|
const node_crypto_1 = require("node:crypto");
|
|
49
38
|
const curve = __importStar(require("libsignal/src/curve.js"));
|
|
50
39
|
const index_js_1 = require("../Defaults/index.js");
|
|
51
|
-
const { md5, hkdf } = require('./crypto.js');
|
|
52
40
|
|
|
53
41
|
const { subtle } = globalThis.crypto;
|
|
54
42
|
|
|
@@ -144,6 +132,22 @@ function hmacSign(buffer, key, variant = 'sha256') {
|
|
|
144
132
|
function sha256(buffer) {
|
|
145
133
|
return (0, node_crypto_1.createHash)('sha256').update(buffer).digest();
|
|
146
134
|
}
|
|
135
|
+
|
|
136
|
+
function md5(buffer) {
|
|
137
|
+
return (0, node_crypto_1.createHash)('md5').update(buffer).digest();
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Synchronous HKDF (matches Baileys call signature)
|
|
141
|
+
* hkdf(buffer, expandedLength, { salt, info })
|
|
142
|
+
*/
|
|
143
|
+
function hkdf(buffer, expandedLength, info = {}) {
|
|
144
|
+
const salt = info.salt ? Buffer.from(info.salt) : Buffer.alloc(0);
|
|
145
|
+
const infoBuf = (info.info !== undefined && info.info !== null) ? Buffer.from(info.info) : Buffer.alloc(0);
|
|
146
|
+
const ikm = Buffer.from(buffer instanceof Uint8Array ? buffer : Buffer.from(buffer));
|
|
147
|
+
const derived = (0, node_crypto_1.hkdfSync)('sha256', ikm, salt, infoBuf, expandedLength);
|
|
148
|
+
return Buffer.from(derived);
|
|
149
|
+
}
|
|
150
|
+
|
|
147
151
|
async function derivePairingCodeKey(pairingCode, salt) {
|
|
148
152
|
|
|
149
153
|
const encoder = new TextEncoder();
|
|
@@ -164,3 +168,17 @@ async function derivePairingCodeKey(pairingCode, salt) {
|
|
|
164
168
|
);
|
|
165
169
|
return Buffer.from(derivedBits);
|
|
166
170
|
}
|
|
171
|
+
|
|
172
|
+
exports.aesEncryptGCM = aesEncryptGCM;
|
|
173
|
+
exports.aesDecryptGCM = aesDecryptGCM;
|
|
174
|
+
exports.aesEncryptCTR = aesEncryptCTR;
|
|
175
|
+
exports.aesDecryptCTR = aesDecryptCTR;
|
|
176
|
+
exports.aesDecrypt = aesDecrypt;
|
|
177
|
+
exports.aesDecryptWithIV = aesDecryptWithIV;
|
|
178
|
+
exports.aesEncrypt = aesEncrypt;
|
|
179
|
+
exports.aesEncrypWithIV = aesEncrypWithIV;
|
|
180
|
+
exports.hmacSign = hmacSign;
|
|
181
|
+
exports.sha256 = sha256;
|
|
182
|
+
exports.md5 = md5;
|
|
183
|
+
exports.hkdf = hkdf;
|
|
184
|
+
exports.derivePairingCodeKey = derivePairingCodeKey;
|
package/lib/Utils/lt-hash.js
CHANGED
|
@@ -4,13 +4,21 @@ Object.defineProperty(exports, "__esModule", { value: true })
|
|
|
4
4
|
|
|
5
5
|
const { hkdf } = require("./crypto")
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
/**
|
|
8
|
+
* LT Hash is a summation based hash algorithm that maintains the integrity of a piece of data
|
|
9
|
+
* over a series of mutations. You can add/remove mutations and it'll return a hash equal to
|
|
10
|
+
* if the same series of mutations was made sequentially.
|
|
11
|
+
*/
|
|
12
12
|
const o = 128
|
|
13
13
|
|
|
14
|
+
function toArrayBuffer(input) {
|
|
15
|
+
if (input instanceof ArrayBuffer) return input
|
|
16
|
+
if (ArrayBuffer.isView(input)) return input.buffer.slice(input.byteOffset, input.byteOffset + input.byteLength)
|
|
17
|
+
if (Buffer.isBuffer(input)) return input.buffer.slice(input.byteOffset, input.byteOffset + input.byteLength)
|
|
18
|
+
// last resort
|
|
19
|
+
return new Uint8Array(input).buffer
|
|
20
|
+
}
|
|
21
|
+
|
|
14
22
|
class LTHash {
|
|
15
23
|
constructor(e) {
|
|
16
24
|
this.salt = e
|
|
@@ -46,8 +54,8 @@ class LTHash {
|
|
|
46
54
|
}
|
|
47
55
|
|
|
48
56
|
performPointwiseWithOverflow(e, t, op) {
|
|
49
|
-
const n = new DataView(e)
|
|
50
|
-
const i = new DataView(t)
|
|
57
|
+
const n = new DataView(toArrayBuffer(e))
|
|
58
|
+
const i = new DataView(toArrayBuffer(t))
|
|
51
59
|
const out = new ArrayBuffer(n.byteLength)
|
|
52
60
|
const s = new DataView(out)
|
|
53
61
|
for (let offset = 0; offset < n.byteLength; offset += 2) {
|
|
@@ -19,3 +19,5 @@ __exportStar(require("./USyncContactProtocol.js"), exports);
|
|
|
19
19
|
__exportStar(require("./USyncStatusProtocol.js"), exports);
|
|
20
20
|
__exportStar(require("./USyncDisappearingModeProtocol.js"), exports);
|
|
21
21
|
__exportStar(require("./USyncUsernameProtocol.js"), exports);
|
|
22
|
+
__exportStar(require("./USyncBotProfileProtocol.js"), exports);
|
|
23
|
+
__exportStar(require("./USyncLIDProtocol.js"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kage-baileys",
|
|
3
|
-
"version": "25.3.
|
|
3
|
+
"version": "25.3.18",
|
|
4
4
|
"description": "Kage Baileys full merge — Builders + mbuilder + Framework + advanced sticker packs + KAGE pairing + extended WAProto. Multi-device ready. FIXED: all core modules deduplicated, removed third-party libsignal-node fork.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"kage-baileys",
|
package/lib/index.d.ts
DELETED
|
@@ -1,485 +0,0 @@
|
|
|
1
|
-
/* Generated fallback declarations for the bundled JavaScript API.
|
|
2
|
-
* Runtime exports are taken from ./index.mjs. The merged JS package does not ship
|
|
3
|
-
* complete source-level TypeScript declarations for every surface; unknown is used
|
|
4
|
-
* where a stable structural type cannot be derived from the archive.
|
|
5
|
-
*/
|
|
6
|
-
export declare const makeWASocket: (config: Record<string, unknown>) => unknown;
|
|
7
|
-
declare const _default: typeof makeWASocket;
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const proto: any;
|
|
10
|
-
export declare const Browsers: any;
|
|
11
|
-
export declare const getPlatformId: any;
|
|
12
|
-
export declare const BufferJSON: any;
|
|
13
|
-
export declare const getKeyAuthor: any;
|
|
14
|
-
export declare const writeRandomPadMax16: any;
|
|
15
|
-
export declare const unpadRandomMax16: any;
|
|
16
|
-
export declare const encodeWAMessage: any;
|
|
17
|
-
export declare const encodeNewsletterMessage: any;
|
|
18
|
-
export declare const generateRegistrationId: any;
|
|
19
|
-
export declare const encodeBigEndian: any;
|
|
20
|
-
export declare const toNumber: any;
|
|
21
|
-
export declare const unixTimestampSeconds: any;
|
|
22
|
-
export declare const debouncedTimeout: any;
|
|
23
|
-
export declare const delay: any;
|
|
24
|
-
export declare const delayCancellable: any;
|
|
25
|
-
export declare const generateMessageIDV2: any;
|
|
26
|
-
export declare const generateMessageID: any;
|
|
27
|
-
export declare const bindWaitForConnectionUpdate: any;
|
|
28
|
-
export declare const printQRIfNecessaryListener: any;
|
|
29
|
-
export declare const fetchLatestBaileysVersion: any;
|
|
30
|
-
export declare const fetchBestWaVersion: any;
|
|
31
|
-
export declare const fetchLatestKageVersion: any;
|
|
32
|
-
export declare const fetchLatestWaWebVersion: any;
|
|
33
|
-
export declare const generateMdTagPrefix: any;
|
|
34
|
-
export declare const getStatusFromReceiptType: any;
|
|
35
|
-
export declare const getErrorCodeFromStreamError: any;
|
|
36
|
-
export declare const getCallStatusFromNode: any;
|
|
37
|
-
export declare const getCodeFromWSError: any;
|
|
38
|
-
export declare const isWABusinessPlatform: any;
|
|
39
|
-
export declare const promiseTimeout: any;
|
|
40
|
-
export declare const bindWaitForEvent: any;
|
|
41
|
-
export declare const trimUndefined: any;
|
|
42
|
-
export declare const bytesToCrockford: any;
|
|
43
|
-
export declare const Itsuki: any;
|
|
44
|
-
export declare const generateParticipantHashV2: any;
|
|
45
|
-
export declare const toUnicodeEscape: any;
|
|
46
|
-
export declare const fromUnicodeEscape: any;
|
|
47
|
-
export declare const asciiEncode: any;
|
|
48
|
-
export declare const asciiDecode: any;
|
|
49
|
-
export declare const isStringNullOrEmpty: any;
|
|
50
|
-
export declare const NO_MESSAGE_FOUND_ERROR_TEXT: any;
|
|
51
|
-
export declare const MISSING_KEYS_ERROR_TEXT: any;
|
|
52
|
-
export declare const NACK_REASONS: any;
|
|
53
|
-
export declare const decryptMessageNode: any;
|
|
54
|
-
export declare const decodeMessageNode: any;
|
|
55
|
-
export declare const extractAddressingContext: any;
|
|
56
|
-
export declare const DECRYPTION_RETRY_CONFIG: any;
|
|
57
|
-
export declare const getDecryptionJid: any;
|
|
58
|
-
export declare const ACCOUNT_RESTRICTED_TEXT: any;
|
|
59
|
-
export declare const SERVER_ERROR_CODES: any;
|
|
60
|
-
export declare const extractUrlFromText: any;
|
|
61
|
-
export declare const generateLinkPreviewIfRequired: any;
|
|
62
|
-
export declare const prepareWAMessageMedia: any;
|
|
63
|
-
export declare const prepareDisappearingMessageSettingContent: any;
|
|
64
|
-
export declare const generateForwardMessageContent: any;
|
|
65
|
-
export declare const generateWAMessageContent: any;
|
|
66
|
-
export declare const generateWAMessageFromContent: any;
|
|
67
|
-
export declare const generateWAMessage: any;
|
|
68
|
-
export declare const getContentType: any;
|
|
69
|
-
export declare const normalizeMessageContent: any;
|
|
70
|
-
export declare const extractMessageContent: any;
|
|
71
|
-
export declare const getDevice: any;
|
|
72
|
-
export declare const updateMessageWithReceipt: any;
|
|
73
|
-
export declare const updateMessageWithReaction: any;
|
|
74
|
-
export declare const updateMessageWithPollUpdate: any;
|
|
75
|
-
export declare const aggregateMessageKeysNotFromMe: any;
|
|
76
|
-
export declare const downloadMediaMessage: any;
|
|
77
|
-
export declare const assertMediaContent: any;
|
|
78
|
-
export declare const getAggregateVotesInPollMessage: any;
|
|
79
|
-
export declare const toJid: any;
|
|
80
|
-
export declare const getSenderLid: any;
|
|
81
|
-
export declare const prepareAlbumMessageContent: any;
|
|
82
|
-
export declare const hasNonNullishProperty: any;
|
|
83
|
-
export declare const updateMessageWithEventResponse: any;
|
|
84
|
-
export declare const getAggregateResponsesInEventMessage: any;
|
|
85
|
-
export declare const hasOptionalProperty: any;
|
|
86
|
-
export declare const hasValidAlbumMedia: any;
|
|
87
|
-
export declare const hasValidInteractiveHeader: any;
|
|
88
|
-
export declare const hasValidCarouselHeader: any;
|
|
89
|
-
export declare const markViewOnce: any;
|
|
90
|
-
export declare const shouldIncludeBizBinaryNode: any;
|
|
91
|
-
export declare const hasAdvancedMessageOptions: any;
|
|
92
|
-
export declare const hkdfInfoKey: any;
|
|
93
|
-
export declare const extractVideoThumb: any;
|
|
94
|
-
export declare const extractImageThumb: any;
|
|
95
|
-
export declare const encodeBase64EncodedStringForUpload: any;
|
|
96
|
-
export declare const generateProfilePicture: any;
|
|
97
|
-
export declare const mediaMessageSHA256B64: any;
|
|
98
|
-
export declare const toReadable: any;
|
|
99
|
-
export declare const toBuffer: any;
|
|
100
|
-
export declare const getStream: any;
|
|
101
|
-
export declare const getHttpStream: any;
|
|
102
|
-
export declare const prepareStream: any;
|
|
103
|
-
export declare const encryptedStream: any;
|
|
104
|
-
export declare const getUrlFromDirectPath: any;
|
|
105
|
-
export declare const downloadContentFromMessage: any;
|
|
106
|
-
export declare const downloadEncryptedContent: any;
|
|
107
|
-
export declare const getWAUploadToServer: any;
|
|
108
|
-
export declare const encryptMediaRetryRequest: any;
|
|
109
|
-
export declare const decodeMediaRetryNode: any;
|
|
110
|
-
export declare const decryptMediaRetryData: any;
|
|
111
|
-
export declare const getStatusCodeForMediaRetry: any;
|
|
112
|
-
export declare const getMediaKeys: any;
|
|
113
|
-
export declare const uploadFile: any;
|
|
114
|
-
export declare const vid2jpg: any;
|
|
115
|
-
export declare const getAudioDuration: any;
|
|
116
|
-
export declare const getAudioWaveform: any;
|
|
117
|
-
export declare const generateThumbnail: any;
|
|
118
|
-
export declare const extensionForMediaMessage: any;
|
|
119
|
-
export declare const uploadWithNodeHttp: any;
|
|
120
|
-
export declare const getRawMediaUploadData: any;
|
|
121
|
-
export declare const getMediaRetryKey: any;
|
|
122
|
-
export declare const MEDIA_RETRY_STATUS_MAP: any;
|
|
123
|
-
export declare const getImageProcessingLibrary: any;
|
|
124
|
-
export declare const DEF_MEDIA_HOST: any;
|
|
125
|
-
export declare const getAudioData: any;
|
|
126
|
-
export declare const generateLoginNode: any;
|
|
127
|
-
export declare const generateRegistrationNode: any;
|
|
128
|
-
export declare const configureSuccessfulPairing: any;
|
|
129
|
-
export declare const encodeSignedDeviceIdentity: any;
|
|
130
|
-
export declare const generateSignalPubKey: any;
|
|
131
|
-
export declare const Curve: any;
|
|
132
|
-
export declare const signedKeyPair: any;
|
|
133
|
-
export declare const aesEncryptGCM: any;
|
|
134
|
-
export declare const aesDecryptGCM: any;
|
|
135
|
-
export declare const aesEncryptCTR: any;
|
|
136
|
-
export declare const aesDecryptCTR: any;
|
|
137
|
-
export declare const aesDecrypt: any;
|
|
138
|
-
export declare const aesDecryptWithIV: any;
|
|
139
|
-
export declare const aesEncrypt: any;
|
|
140
|
-
export declare const aesEncrypWithIV: any;
|
|
141
|
-
export declare const hmacSign: any;
|
|
142
|
-
export declare const sha256: any;
|
|
143
|
-
export declare const md5: any;
|
|
144
|
-
export declare const hkdf: any;
|
|
145
|
-
export declare const derivePairingCodeKey: any;
|
|
146
|
-
export declare const createSignalIdentity: any;
|
|
147
|
-
export declare const getPreKeys: any;
|
|
148
|
-
export declare const generateOrGetPreKeys: any;
|
|
149
|
-
export declare const xmppSignedPreKey: any;
|
|
150
|
-
export declare const xmppPreKey: any;
|
|
151
|
-
export declare const parseAndInjectE2ESessions: any;
|
|
152
|
-
export declare const extractDeviceJids: any;
|
|
153
|
-
export declare const getNextPreKeys: any;
|
|
154
|
-
export declare const getNextPreKeysNode: any;
|
|
155
|
-
export declare const extractE2ESessionFromRetryReceipt: any;
|
|
156
|
-
export declare const makeNoiseHandler: any;
|
|
157
|
-
export declare const downloadHistory: any;
|
|
158
|
-
export declare const processHistoryMessage: any;
|
|
159
|
-
export declare const downloadAndProcessHistorySyncNotification: any;
|
|
160
|
-
export declare const getHistoryMsg: any;
|
|
161
|
-
export declare const newLTHashState: any;
|
|
162
|
-
export declare const encodeSyncdPatch: any;
|
|
163
|
-
export declare const decodeSyncdMutations: any;
|
|
164
|
-
export declare const decodeSyncdPatch: any;
|
|
165
|
-
export declare const extractSyncdPatches: any;
|
|
166
|
-
export declare const downloadExternalBlob: any;
|
|
167
|
-
export declare const downloadExternalPatch: any;
|
|
168
|
-
export declare const decodeSyncdSnapshot: any;
|
|
169
|
-
export declare const decodePatches: any;
|
|
170
|
-
export declare const chatModificationToAppPatch: any;
|
|
171
|
-
export declare const processSyncAction: any;
|
|
172
|
-
export declare const mutationKeys: any;
|
|
173
|
-
export declare const makeLtHashGenerator: any;
|
|
174
|
-
export declare const ensureLTHashStateVersion: any;
|
|
175
|
-
export declare const MAX_SYNC_ATTEMPTS: any;
|
|
176
|
-
export declare const isMissingKeyError: any;
|
|
177
|
-
export declare const isAppStateSyncIrrecoverable: any;
|
|
178
|
-
export declare const LT_HASH_ANTI_TAMPERING: any;
|
|
179
|
-
export declare const addTransactionCapability: any;
|
|
180
|
-
export declare const initAuthCreds: any;
|
|
181
|
-
export declare const makeCacheableSignalKeyStore: any;
|
|
182
|
-
export declare const assertMeId: any;
|
|
183
|
-
export declare const captureEventStream: any;
|
|
184
|
-
export declare const readAndEmitEventStream: any;
|
|
185
|
-
export declare const useMultiFileAuthState: any;
|
|
186
|
-
export declare const getUrlInfo: any;
|
|
187
|
-
export declare const makeEventBuffer: any;
|
|
188
|
-
export declare const cleanMessage: any;
|
|
189
|
-
export declare const isRealMessage: any;
|
|
190
|
-
export declare const shouldIncrementChatUnread: any;
|
|
191
|
-
export declare const getChatId: any;
|
|
192
|
-
export declare const decryptPollVote: any;
|
|
193
|
-
export declare const decryptEventEdit: any;
|
|
194
|
-
export declare const decryptEventResponse: any;
|
|
195
|
-
export declare const decryptComment: any;
|
|
196
|
-
export declare const decryptReaction: any;
|
|
197
|
-
export declare const processMessage: any;
|
|
198
|
-
export declare const decryptMessageEdit: any;
|
|
199
|
-
export declare const RetryReason: any;
|
|
200
|
-
export declare const MessageRetryManager: any;
|
|
201
|
-
export declare const normalizeEventMessage: any;
|
|
202
|
-
export declare const prepareEventMessage: any;
|
|
203
|
-
export declare const useSingleFileAuthState: any;
|
|
204
|
-
export declare const useSqliteAuthState: any;
|
|
205
|
-
export declare const tokenizeCode: any;
|
|
206
|
-
export declare const toUnified: any;
|
|
207
|
-
export declare const prepareRichResponseMessage: any;
|
|
208
|
-
export declare const botMetadataSignature: any;
|
|
209
|
-
export declare const botMetadataCertificate: any;
|
|
210
|
-
export declare const wrapToBotForwardedMessage: any;
|
|
211
|
-
export declare const CompanionWebClientType: any;
|
|
212
|
-
export declare const getCompanionWebClientType: any;
|
|
213
|
-
export declare const getCompanionPlatformId: any;
|
|
214
|
-
export declare const buildPairingQRData: any;
|
|
215
|
-
export declare const handleIdentityChange: any;
|
|
216
|
-
export declare const buildAckStanza: any;
|
|
217
|
-
export declare const DisconnectReason: any;
|
|
218
|
-
export declare const MexOperations: any;
|
|
219
|
-
export declare const XWAPaths: any;
|
|
220
|
-
export declare const QueryIds: any;
|
|
221
|
-
export declare const ALL_WA_PATCH_NAMES: any;
|
|
222
|
-
export declare const SyncState: any;
|
|
223
|
-
export declare const ReachoutTimelockEnforcementType: any;
|
|
224
|
-
export declare const NewChatMessageCappingStatusType: any;
|
|
225
|
-
export declare const NewChatMessageCappingMVStatusType: any;
|
|
226
|
-
export declare const NewChatMessageCappingOTEStatusType: any;
|
|
227
|
-
export declare const WAProto: any;
|
|
228
|
-
export declare const WAMessageStubType: any;
|
|
229
|
-
export declare const WAMessageStatus: any;
|
|
230
|
-
export declare const WAMessageAddressingMode: any;
|
|
231
|
-
export declare const AssociationType: any;
|
|
232
|
-
export declare const ButtonHeaderType: any;
|
|
233
|
-
export declare const ButtonType: any;
|
|
234
|
-
export declare const CarouselCardType: any;
|
|
235
|
-
export declare const ListType: any;
|
|
236
|
-
export declare const ProtocolType: any;
|
|
237
|
-
export declare const MexUpdatesOperations: any;
|
|
238
|
-
export declare const XWAPathsMexUpdates: any;
|
|
239
|
-
export declare const makeInMemoryStore: any;
|
|
240
|
-
export declare const makeCacheManagerAuthState: any;
|
|
241
|
-
export declare const waChatKey: any;
|
|
242
|
-
export declare const waMessageID: any;
|
|
243
|
-
export declare const waLabelAssociationKey: any;
|
|
244
|
-
export declare const makeOrderedDictionary: any;
|
|
245
|
-
export declare const ObjectRepository: any;
|
|
246
|
-
export declare const version: any;
|
|
247
|
-
export declare const UNAUTHORIZED_CODES: any;
|
|
248
|
-
export declare const WA_ADV_ACCOUNT_SIG_PREFIX: any;
|
|
249
|
-
export declare const WA_ADV_DEVICE_SIG_PREFIX: any;
|
|
250
|
-
export declare const WA_ADV_HOSTED_ACCOUNT_SIG_PREFIX: any;
|
|
251
|
-
export declare const WA_ADV_HOSTED_DEVICE_SIG_PREFIX: any;
|
|
252
|
-
export declare const WA_DEFAULT_EPHEMERAL: any;
|
|
253
|
-
export declare const NOISE_MODE: any;
|
|
254
|
-
export declare const DICT_VERSION: any;
|
|
255
|
-
export declare const KEY_BUNDLE_TYPE: any;
|
|
256
|
-
export declare const NOISE_WA_HEADER: any;
|
|
257
|
-
export declare const URL_REGEX: any;
|
|
258
|
-
export declare const WA_CERT_DETAILS: any;
|
|
259
|
-
export declare const PROCESSABLE_HISTORY_TYPES: any;
|
|
260
|
-
export declare const DEFAULT_CONNECTION_CONFIG: any;
|
|
261
|
-
export declare const MEDIA_PATH_MAP: any;
|
|
262
|
-
export declare const MEDIA_HKDF_KEY_MAPPING: any;
|
|
263
|
-
export declare const MEDIA_KEYS: any;
|
|
264
|
-
export declare const MIN_PREKEY_COUNT: any;
|
|
265
|
-
export declare const INITIAL_PREKEY_COUNT: any;
|
|
266
|
-
export declare const UPLOAD_TIMEOUT: any;
|
|
267
|
-
export declare const MIN_UPLOAD_INTERVAL: any;
|
|
268
|
-
export declare const DEFAULT_CACHE_TTLS: any;
|
|
269
|
-
export declare const DEFAULT_ORIGIN: any;
|
|
270
|
-
export declare const CALL_VIDEO_PREFIX: any;
|
|
271
|
-
export declare const CALL_AUDIO_PREFIX: any;
|
|
272
|
-
export declare const DEF_CALLBACK_PREFIX: any;
|
|
273
|
-
export declare const DEF_TAG_PREFIX: any;
|
|
274
|
-
export declare const PHONE_CONNECTION_CB: any;
|
|
275
|
-
export declare const PHONENUMBER_MCC: any;
|
|
276
|
-
export declare const BIZ_BOT_SUPPORT_PAYLOAD: any;
|
|
277
|
-
export declare const DONATE_URL: any;
|
|
278
|
-
export declare const LIBRARY_NAME: any;
|
|
279
|
-
export declare const TEXT_ENCODER: any;
|
|
280
|
-
export declare const TEXT_DECODER: any;
|
|
281
|
-
export declare const STATUS_EXPIRY_SECONDS: any;
|
|
282
|
-
export declare const PLACEHOLDER_MAX_AGE_SECONDS: any;
|
|
283
|
-
export declare const LEXER_REGEX: any;
|
|
284
|
-
export declare const NEWSLETTER_MEDIA_PATH_MAP: any;
|
|
285
|
-
export declare const HISTORY_SYNC_PAUSED_TIMEOUT_MS: any;
|
|
286
|
-
export declare const TimeMs: any;
|
|
287
|
-
export declare const encodeBinaryNode: any;
|
|
288
|
-
export declare const decompressingIfRequired: any;
|
|
289
|
-
export declare const decodeDecompressedBinaryNode: any;
|
|
290
|
-
export declare const decodeBinaryNode: any;
|
|
291
|
-
export declare const getBinaryNodeChildren: any;
|
|
292
|
-
export declare const getAllBinaryNodeChildren: any;
|
|
293
|
-
export declare const getBinaryNodeChild: any;
|
|
294
|
-
export declare const getBinaryNodeChildBuffer: any;
|
|
295
|
-
export declare const getBinaryNodeChildString: any;
|
|
296
|
-
export declare const getBinaryNodeChildUInt: any;
|
|
297
|
-
export declare const assertNodeErrorFree: any;
|
|
298
|
-
export declare const reduceBinaryNodeToDictionary: any;
|
|
299
|
-
export declare const getBinaryNodeMessages: any;
|
|
300
|
-
export declare const binaryNodeToString: any;
|
|
301
|
-
export declare const getBinaryFilteredButtons: any;
|
|
302
|
-
export declare const getBinaryFilteredBizBot: any;
|
|
303
|
-
export declare const getBizBinaryNode: any;
|
|
304
|
-
export declare const S_WHATSAPP_NET: any;
|
|
305
|
-
export declare const OFFICIAL_BIZ_JID: any;
|
|
306
|
-
export declare const SERVER_JID: any;
|
|
307
|
-
export declare const PSA_WID: any;
|
|
308
|
-
export declare const STORIES_JID: any;
|
|
309
|
-
export declare const META_AI_JID: any;
|
|
310
|
-
export declare const jidEncode: any;
|
|
311
|
-
export declare const jidDecode: any;
|
|
312
|
-
export declare const areJidsSameUser: any;
|
|
313
|
-
export declare const isJidMetaAi: any;
|
|
314
|
-
export declare const isJidUser: any;
|
|
315
|
-
export declare const isLidUser: any;
|
|
316
|
-
export declare const isJidBroadcast: any;
|
|
317
|
-
export declare const isJidNewsletter: any;
|
|
318
|
-
export declare const isJidGroup: any;
|
|
319
|
-
export declare const isJidStatusBroadcast: any;
|
|
320
|
-
export declare const isJidBot: any;
|
|
321
|
-
export declare const jidNormalizedUser: any;
|
|
322
|
-
export declare const getBotJid: any;
|
|
323
|
-
export declare const lidToJid: any;
|
|
324
|
-
export declare const WAJIDDomains: any;
|
|
325
|
-
export declare const isJidMetaAI: any;
|
|
326
|
-
export declare const isPnUser: any;
|
|
327
|
-
export declare const isHostedPnUser: any;
|
|
328
|
-
export declare const isHostedLidUser: any;
|
|
329
|
-
export declare const transferDevice: any;
|
|
330
|
-
export declare const getServerFromDomainType: any;
|
|
331
|
-
export declare const WEB_EVENTS: any;
|
|
332
|
-
export declare const WEB_GLOBALS: any;
|
|
333
|
-
export declare const FLAG_BYTE: any;
|
|
334
|
-
export declare const FLAG_GLOBAL: any;
|
|
335
|
-
export declare const FLAG_EVENT: any;
|
|
336
|
-
export declare const FLAG_FIELD: any;
|
|
337
|
-
export declare const FLAG_EXTENDED: any;
|
|
338
|
-
export declare const encodeWAM: any;
|
|
339
|
-
export declare const BinaryInfo: any;
|
|
340
|
-
export declare const USyncDeviceProtocol: any;
|
|
341
|
-
export declare const USyncContactProtocol: any;
|
|
342
|
-
export declare const USyncStatusProtocol: any;
|
|
343
|
-
export declare const USyncDisappearingModeProtocol: any;
|
|
344
|
-
export declare const USyncBotProfileProtocol: any;
|
|
345
|
-
export declare const USyncLIDProtocol: any;
|
|
346
|
-
export declare const USyncUsernameProtocol: any;
|
|
347
|
-
export declare const USyncQuery: any;
|
|
348
|
-
export declare const USyncUser: any;
|
|
349
|
-
export declare const VERSION: any;
|
|
350
|
-
export declare const Button: any;
|
|
351
|
-
export declare const ButtonV2: any;
|
|
352
|
-
export declare const Carousel: any;
|
|
353
|
-
export declare const AIRich: any;
|
|
354
|
-
export declare const ORich: any;
|
|
355
|
-
export declare const Toolkit: any;
|
|
356
|
-
export declare const bind: any;
|
|
357
|
-
export declare const MessageBuilder: any;
|
|
358
|
-
export declare const Dugong: any;
|
|
359
|
-
export declare const executeWMexQuery: any;
|
|
360
|
-
export declare const makeCommunitiesSocket: any;
|
|
361
|
-
export declare const extractCommunityMetadata: any;
|
|
362
|
-
export declare const LIDMappingStore: any;
|
|
363
|
-
export declare const makeOfflineNodeProcessor: any;
|
|
364
|
-
export declare const PreKeyManager: any;
|
|
365
|
-
export declare const shouldIncludeReportingToken: any;
|
|
366
|
-
export declare const getMessageReportingToken: any;
|
|
367
|
-
export declare const JS_KEYWORDS: any;
|
|
368
|
-
export declare const PYTHON_KEYWORDS: any;
|
|
369
|
-
export declare const GO_KEYWORDS: any;
|
|
370
|
-
export declare const LUA_KEYWORDS: any;
|
|
371
|
-
export declare const BASH_KEYWORDS: any;
|
|
372
|
-
export declare const LANGUAGE_KEYWORDS: any;
|
|
373
|
-
export declare const CodeHighlightType: any;
|
|
374
|
-
export declare const RichSubMessageType: any;
|
|
375
|
-
export declare const buildRichContextInfo: any;
|
|
376
|
-
export declare const buildBotForwardedMessage: any;
|
|
377
|
-
export declare const generateTableContent: any;
|
|
378
|
-
export declare const generateListContent: any;
|
|
379
|
-
export declare const generateCodeBlockContent: any;
|
|
380
|
-
export declare const generateLatexContent: any;
|
|
381
|
-
export declare const generateLatexImageContent: any;
|
|
382
|
-
export declare const generateLatexInlineImageContent: any;
|
|
383
|
-
export declare const captureUnifiedResponse: any;
|
|
384
|
-
export declare const generateUnifiedResponseContent: any;
|
|
385
|
-
export declare const generateRichMessageContent: any;
|
|
386
|
-
export declare const tokenizeCodeV2: any;
|
|
387
|
-
export declare const toTableMetadataV2: any;
|
|
388
|
-
export declare const generateTableContentV2: any;
|
|
389
|
-
export declare const generateCodeBlockContentV2: any;
|
|
390
|
-
export declare const generateLinkContent: any;
|
|
391
|
-
export declare const generateLinkContentV2: any;
|
|
392
|
-
export declare const makeStickerPack: any;
|
|
393
|
-
export declare const processContactAction: any;
|
|
394
|
-
export declare const emitSyncActionResults: any;
|
|
395
|
-
export declare const buildTcTokenFromJid: any;
|
|
396
|
-
export declare const TC_TOKEN_INDEX_KEY: any;
|
|
397
|
-
export declare const readTcTokenIndex: any;
|
|
398
|
-
export declare const buildMergedTcTokenIndexWrite: any;
|
|
399
|
-
export declare const isTcTokenExpired: any;
|
|
400
|
-
export declare const shouldSendNewTcToken: any;
|
|
401
|
-
export declare const resolveTcTokenJid: any;
|
|
402
|
-
export declare const resolveIssuanceJid: any;
|
|
403
|
-
export declare const storeTcTokensFromIqResult: any;
|
|
404
|
-
export declare const CallState: any;
|
|
405
|
-
export declare const ActiveCall: any;
|
|
406
|
-
export declare const VoipClient: any;
|
|
407
|
-
export declare const KAGE_BUILD: any;
|
|
408
|
-
export declare const markStatusDeleted: any;
|
|
409
|
-
export declare const flushStatuses: any;
|
|
410
|
-
export declare const statusContent: any;
|
|
411
|
-
export declare const captureStatus: any;
|
|
412
|
-
export declare const listStatuses: any;
|
|
413
|
-
export declare const findStatus: any;
|
|
414
|
-
export declare const clearStatuses: any;
|
|
415
|
-
export declare const handleStatus: any;
|
|
416
|
-
export declare const getCountryInfo: any;
|
|
417
|
-
export declare const getCountryForJid: any;
|
|
418
|
-
export declare const installKageTools: any;
|
|
419
|
-
export declare const unwrapNormalMedia: any;
|
|
420
|
-
export declare const downloadNormalMedia: any;
|
|
421
|
-
export declare const saveNormalMedia: any;
|
|
422
|
-
export declare const handleAutoMedia: any;
|
|
423
|
-
export declare const sendAIResponse: any;
|
|
424
|
-
export declare const prepareConsentedViewOnce: any;
|
|
425
|
-
export declare const downloadConsentedViewOnce: any;
|
|
426
|
-
export declare const saveConsentedViewOnce: any;
|
|
427
|
-
export declare const handleConsentedAutoViewOnce: any;
|
|
428
|
-
export declare const handleAutoViewOnce: any;
|
|
429
|
-
export declare const getViewOnceContent: any;
|
|
430
|
-
export declare const normalizeViewOnceMessage: any;
|
|
431
|
-
export declare const downloadViewOnceMessage: any;
|
|
432
|
-
export declare const resendViewOnceMessage: any;
|
|
433
|
-
export declare const isKnownStatusContact: any;
|
|
434
|
-
export declare const saveReceivedStatus: any;
|
|
435
|
-
export declare const exportStatusZip: any;
|
|
436
|
-
export declare const handleStatusArchive: any;
|
|
437
|
-
export declare const inspectMessage: any;
|
|
438
|
-
export declare const rememberMessage: any;
|
|
439
|
-
export declare const installMessageInspector: any;
|
|
440
|
-
export declare const getMessageDiagnostics: any;
|
|
441
|
-
export declare const refreshReceivedStatuses: any;
|
|
442
|
-
export declare const say: any;
|
|
443
|
-
export declare const showKageBanner: any;
|
|
444
|
-
export declare const cargarExtrasKage: any;
|
|
445
|
-
export declare const suppliedProto: any;
|
|
446
|
-
export declare const unwrapKageMessage: any;
|
|
447
|
-
export declare const buildKageInteractiveBizNode: any;
|
|
448
|
-
export declare const applyKageInteractiveNodes: any;
|
|
449
|
-
export declare const createKageNativeFlowButton: any;
|
|
450
|
-
export declare const validateKageInteractiveMessage: any;
|
|
451
|
-
export declare const createKageInteractiveMessage: any;
|
|
452
|
-
export declare const createKageCarouselMessage: any;
|
|
453
|
-
export declare const createKageOrderDetails: any;
|
|
454
|
-
export declare const sendKageInteractiveMessage: any;
|
|
455
|
-
export declare const installKageInteractiveTools: any;
|
|
456
|
-
export declare const modernizeInteractiveMessage: any;
|
|
457
|
-
export declare const parseInteractiveResponse: any;
|
|
458
|
-
export declare const sendCompatibleButtons: any;
|
|
459
|
-
export declare const SocketScope: any;
|
|
460
|
-
export declare const CommandRegistry: any;
|
|
461
|
-
export declare const BoundedDedup: any;
|
|
462
|
-
export declare const ReconnectPlan: any;
|
|
463
|
-
export declare const queryErrorCode: any;
|
|
464
|
-
export declare const isRetryableQueryError: any;
|
|
465
|
-
export declare const queryErrorSummary: any;
|
|
466
|
-
export declare const createInitQueryRunner: any;
|
|
467
|
-
export declare const normalizeUsername: any;
|
|
468
|
-
export declare const parseAboutNode: any;
|
|
469
|
-
export declare const installProfileTools: any;
|
|
470
|
-
export declare const USERNAME_TIMEOUT_MS: any;
|
|
471
|
-
export declare const normalizeUserJid: any;
|
|
472
|
-
export declare const queryUsernames: any;
|
|
473
|
-
export declare const installUsernameTools: any;
|
|
474
|
-
export declare const normalizeSticker: any;
|
|
475
|
-
export declare const DEFAULT_EMOJIS: any;
|
|
476
|
-
export declare const resolveMediaPath: any;
|
|
477
|
-
export declare const joinPath: any;
|
|
478
|
-
export declare const ensureDir: any;
|
|
479
|
-
export declare const getExt: any;
|
|
480
|
-
export declare const basename: any;
|
|
481
|
-
export declare const country: any;
|
|
482
|
-
export declare const countries: any;
|
|
483
|
-
export declare const Bot: any;
|
|
484
|
-
export declare const Context: any;
|
|
485
|
-
export declare const MediaManager: any;
|