@badzz88/baileys 8.5.7 → 8.5.8
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/README.md +337 -1055
- package/WAProto/WAProto.proto +284 -264
- package/WAProto/index.js +5 -5
- package/engine-requirements.js +7 -15
- package/lib/Defaults/index.js +130 -187
- package/lib/Signal/Group/ciphertext-message.js +11 -14
- package/lib/Signal/Group/group-session-builder.js +29 -91
- package/lib/Signal/Group/group_cipher.js +81 -88
- package/lib/Signal/Group/index.js +12 -136
- package/lib/Signal/Group/keyhelper.js +15 -70
- package/lib/Signal/Group/sender-chain-key.js +25 -31
- package/lib/Signal/Group/sender-key-distribution-message.js +62 -65
- package/lib/Signal/Group/sender-key-message.js +65 -68
- package/lib/Signal/Group/sender-key-name.js +41 -43
- package/lib/Signal/Group/sender-key-record.js +40 -43
- package/lib/Signal/Group/sender-key-state.js +83 -96
- package/lib/Signal/Group/sender-message-key.js +25 -29
- package/lib/Signal/libsignal.js +425 -453
- package/lib/Signal/lid-mapping.js +276 -259
- package/lib/Socket/Client/index.js +3 -30
- package/lib/Socket/Client/types.js +10 -12
- package/lib/Socket/Client/websocket.js +53 -61
- package/lib/Socket/business.js +379 -422
- package/lib/Socket/chats.js +1193 -1816
- package/lib/Socket/communities.js +431 -549
- package/lib/Socket/graphql.js +672 -612
- package/lib/Socket/groups.js +374 -764
- package/lib/Socket/index.js +17 -38
- package/lib/Socket/interop.js +417 -503
- package/lib/Socket/messages-recv.js +1915 -2441
- package/lib/Socket/messages-send.js +1213 -1630
- package/lib/Socket/mex.js +9 -15
- package/lib/Socket/newsletter.js +747 -808
- package/lib/Socket/privacy.js +310 -441
- package/lib/Socket/socket.js +1025 -1022
- package/lib/Socket/username.js +8 -15
- package/lib/Store/index.js +10 -36
- package/lib/Store/make-cache-manager-store.js +80 -85
- package/lib/Store/make-in-memory-store.js +231 -591
- package/lib/Store/make-ordered-dictionary.js +72 -78
- package/lib/Store/object-repository.js +28 -25
- package/lib/Types/Auth.js +2 -38
- package/lib/Types/Bussines.js +2 -2
- package/lib/Types/Call.js +2 -2
- package/lib/Types/Chat.js +8 -4
- package/lib/Types/Contact.js +2 -2
- package/lib/Types/Events.js +2 -2
- package/lib/Types/GroupMetadata.js +2 -2
- package/lib/Types/Label.js +24 -26
- package/lib/Types/LabelAssociation.js +6 -8
- package/lib/Types/Message.js +11 -95
- package/lib/Types/Mex.js +111 -112
- package/lib/Types/Product.js +2 -2
- package/lib/Types/Signal.js +2 -2
- package/lib/Types/Socket.js +3 -2
- package/lib/Types/State.js +56 -70
- package/lib/Types/USync.js +2 -2
- package/lib/Types/index.js +26 -55
- package/lib/Utils/auth-utils.js +288 -292
- package/lib/Utils/browser-utils.js +47 -113
- package/lib/Utils/business.js +224 -240
- package/lib/Utils/chat-utils.js +869 -1205
- package/lib/Utils/companion-reg-client-utils.js +34 -41
- package/lib/Utils/crypto.js +107 -144
- package/lib/Utils/decode-wa-message.js +308 -518
- package/lib/Utils/event-buffer.js +611 -596
- package/lib/Utils/generics.js +355 -515
- package/lib/Utils/history.js +134 -244
- package/lib/Utils/identity-change-handler.js +49 -51
- package/lib/Utils/index.js +23 -57
- package/lib/Utils/link-preview.js +77 -135
- package/lib/Utils/logger.js +3 -9
- package/lib/Utils/lt-hash.js +6 -37
- package/lib/Utils/make-mutex.js +33 -36
- package/lib/Utils/message-composer.js +233 -439
- package/lib/Utils/message-retry-manager.js +260 -265
- package/lib/Utils/messages-media.js +829 -855
- package/lib/Utils/messages.js +961 -2528
- package/lib/Utils/noise-handler.js +200 -195
- package/lib/Utils/offline-node-processor.js +33 -35
- package/lib/Utils/pre-key-manager.js +102 -103
- package/lib/Utils/process-message.js +560 -978
- package/lib/Utils/reporting-utils.js +253 -257
- package/lib/Utils/signal.js +195 -218
- package/lib/Utils/stanza-ack.js +29 -31
- package/lib/Utils/sticker.js +109 -144
- package/lib/Utils/sync-action-utils.js +45 -50
- package/lib/Utils/tc-token-utils.js +139 -137
- package/lib/Utils/use-multi-file-auth-state.js +109 -109
- package/lib/Utils/validate-connection.js +202 -218
- package/lib/WABinary/constants.js +1299 -1302
- package/lib/WABinary/decode.js +262 -343
- package/lib/WABinary/encode.js +4 -12
- package/lib/WABinary/generic-utils.js +187 -223
- package/lib/WABinary/index.js +6 -33
- package/lib/WABinary/jid-utils.js +88 -351
- package/lib/WABinary/types.js +2 -2
- package/lib/WAM/BinaryInfo.js +9 -12
- package/lib/WAM/constants.js +22853 -39486
- package/lib/WAM/encode.js +140 -132
- package/lib/WAM/index.js +4 -31
- package/lib/WAUSync/Protocols/USyncBotProfileProtocol.js +21 -23
- package/lib/WAUSync/Protocols/USyncBusinessProtocol.js +9 -9
- package/lib/WAUSync/Protocols/USyncContactProtocol.js +7 -7
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +10 -10
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +7 -7
- package/lib/WAUSync/Protocols/USyncFeatureProtocol.js +11 -12
- package/lib/WAUSync/Protocols/USyncLIDProtocol.js +4 -5
- package/lib/WAUSync/Protocols/USyncPictureProtocol.js +7 -7
- package/lib/WAUSync/Protocols/USyncSidelistProtocol.js +7 -8
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js +7 -7
- package/lib/WAUSync/Protocols/USyncTextStatusProtocol.js +8 -8
- package/lib/WAUSync/Protocols/USyncUsernameProtocol.js +7 -7
- package/lib/WAUSync/Protocols/index.js +12 -39
- package/lib/WAUSync/USyncQuery.js +67 -49
- package/lib/WAUSync/USyncUser.js +11 -5
- package/lib/WAUSync/index.js +3 -31
- package/lib/index.js +15 -48
- package/package.json +129 -99
- package/LICENSE +0 -21
- package/lib/Defaults/phonenumber-mcc.json +0 -223
- package/lib/Socket/aigroups.js +0 -240
- package/lib/Socket/interactive-handler.js +0 -522
- package/lib/Socket/managed-account.js +0 -183
- package/lib/Socket/registration.js +0 -427
- package/lib/Socket/text-router.js +0 -83
- package/lib/Types/Newsletter.js +0 -121
- package/lib/Utils/command-loader.d.ts +0 -31
- package/lib/Utils/command-loader.js +0 -100
- package/lib/Utils/consumer-application.js +0 -107
- package/lib/Utils/curve25519-js.js +0 -275
- package/lib/Utils/group-history.js +0 -60
- package/lib/Utils/jid-display-normalization.js +0 -218
- package/lib/Utils/meta-ai-msmsg.js +0 -262
- package/lib/Utils/native-bridge.js +0 -82
- package/lib/Utils/session-pool.d.ts +0 -16
- package/lib/Utils/session-pool.js +0 -94
- package/lib/Utils/sticker.d.ts +0 -17
- package/lib/Utils/view-once-cache.d.ts +0 -9
- package/lib/Utils/view-once-cache.js +0 -79
- package/lib/Utils/voip-rekey.js +0 -22
- package/lib/antiban.js +0 -4637
|
@@ -1,81 +1,75 @@
|
|
|
1
|
-
|
|
1
|
+
export default function makeOrderedDictionary(idGetter) {
|
|
2
|
+
const array = [];
|
|
3
|
+
const dict = {};
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
const get = (id) => dict[id];
|
|
4
6
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
dict[id] = item
|
|
15
|
-
}
|
|
16
|
-
return false
|
|
17
|
-
}
|
|
18
|
-
const upsert = (item, mode) => {
|
|
19
|
-
const id = idGetter(item)
|
|
20
|
-
if (get(id)) {
|
|
21
|
-
update(item)
|
|
22
|
-
} else {
|
|
23
|
-
if (mode === 'append') {
|
|
24
|
-
array.push(item)
|
|
25
|
-
} else {
|
|
26
|
-
array.splice(0, 0, item)
|
|
27
|
-
}
|
|
28
|
-
dict[id] = item
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
const remove = item => {
|
|
32
|
-
const id = idGetter(item)
|
|
33
|
-
const idx = array.findIndex(i => idGetter(i) === id)
|
|
34
|
-
if (idx >= 0) {
|
|
35
|
-
array.splice(idx, 1)
|
|
36
|
-
delete dict[id]
|
|
37
|
-
return true
|
|
38
|
-
}
|
|
39
|
-
return false
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
array,
|
|
43
|
-
get,
|
|
44
|
-
upsert,
|
|
45
|
-
update,
|
|
46
|
-
remove,
|
|
47
|
-
updateAssign: (id, update) => {
|
|
48
|
-
const item = get(id)
|
|
49
|
-
if (item) {
|
|
50
|
-
Object.assign(item, update)
|
|
51
|
-
delete dict[id]
|
|
52
|
-
dict[idGetter(item)] = item
|
|
53
|
-
return true
|
|
54
|
-
}
|
|
55
|
-
return false
|
|
56
|
-
},
|
|
57
|
-
clear: () => {
|
|
58
|
-
array.splice(0, array.length)
|
|
59
|
-
for (const key of Object.keys(dict)) {
|
|
60
|
-
delete dict[key]
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
filter: contain => {
|
|
64
|
-
let i = 0
|
|
65
|
-
while (i < array.length) {
|
|
66
|
-
if (!contain(array[i])) {
|
|
67
|
-
delete dict[idGetter(array[i])]
|
|
68
|
-
array.splice(i, 1)
|
|
69
|
-
} else {
|
|
70
|
-
i += 1
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
toJSON: () => array,
|
|
75
|
-
fromJSON: newItems => {
|
|
76
|
-
array.splice(0, array.length, ...newItems)
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
7
|
+
const update = (item) => {
|
|
8
|
+
const id = idGetter(item);
|
|
9
|
+
const idx = array.findIndex(i => idGetter(i) === id);
|
|
10
|
+
if (idx >= 0) {
|
|
11
|
+
array[idx] = item;
|
|
12
|
+
dict[id] = item;
|
|
13
|
+
}
|
|
14
|
+
return false;
|
|
15
|
+
};
|
|
80
16
|
|
|
81
|
-
|
|
17
|
+
const upsert = (item, mode) => {
|
|
18
|
+
const id = idGetter(item);
|
|
19
|
+
if (get(id)) {
|
|
20
|
+
update(item);
|
|
21
|
+
} else {
|
|
22
|
+
if (mode === 'append') array.push(item);
|
|
23
|
+
else array.unshift(item);
|
|
24
|
+
dict[id] = item;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const remove = (item) => {
|
|
29
|
+
const id = idGetter(item);
|
|
30
|
+
const idx = array.findIndex(i => idGetter(i) === id);
|
|
31
|
+
if (idx >= 0) {
|
|
32
|
+
array.splice(idx, 1);
|
|
33
|
+
delete dict[id];
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
return {
|
|
40
|
+
array,
|
|
41
|
+
get,
|
|
42
|
+
upsert,
|
|
43
|
+
update,
|
|
44
|
+
remove,
|
|
45
|
+
updateAssign: (id, update) => {
|
|
46
|
+
const item = get(id);
|
|
47
|
+
if (item) {
|
|
48
|
+
Object.assign(item, update);
|
|
49
|
+
delete dict[id];
|
|
50
|
+
dict[idGetter(item)] = item;
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
return false;
|
|
54
|
+
},
|
|
55
|
+
clear: () => {
|
|
56
|
+
array.length = 0;
|
|
57
|
+
for (const key of Object.keys(dict)) delete dict[key];
|
|
58
|
+
},
|
|
59
|
+
filter: (contain) => {
|
|
60
|
+
let i = 0;
|
|
61
|
+
while (i < array.length) {
|
|
62
|
+
if (!contain(array[i])) {
|
|
63
|
+
delete dict[idGetter(array[i])];
|
|
64
|
+
array.splice(i, 1);
|
|
65
|
+
} else {
|
|
66
|
+
i++;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
toJSON: () => array,
|
|
71
|
+
fromJSON: (newItems) => {
|
|
72
|
+
array.splice(0, array.length, ...newItems);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -1,29 +1,32 @@
|
|
|
1
|
-
|
|
1
|
+
export class ObjectRepository {
|
|
2
|
+
constructor(entities = {}) {
|
|
3
|
+
this.entityMap = new Map(Object.entries(entities));
|
|
4
|
+
}
|
|
2
5
|
|
|
3
|
-
|
|
6
|
+
findById(id) {
|
|
7
|
+
return this.entityMap.get(id);
|
|
8
|
+
}
|
|
4
9
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return this.findAll()
|
|
26
|
-
}
|
|
10
|
+
findAll() {
|
|
11
|
+
return Array.from(this.entityMap.values());
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
upsertById(id, entity) {
|
|
15
|
+
this.entityMap.set(id, { ...entity });
|
|
16
|
+
return this;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
deleteById(id) {
|
|
20
|
+
return this.entityMap.delete(id);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
count() {
|
|
24
|
+
return this.entityMap.size;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
toJSON() {
|
|
28
|
+
return this.findAll();
|
|
29
|
+
}
|
|
27
30
|
}
|
|
28
31
|
|
|
29
|
-
|
|
32
|
+
export default ObjectRepository;
|
package/lib/Types/Auth.js
CHANGED
|
@@ -1,38 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
// Factory functions for creating auth-related objects
|
|
5
|
-
function createKeyPair(publicKey, privateKey) {
|
|
6
|
-
return {
|
|
7
|
-
public: publicKey,
|
|
8
|
-
private: privateKey
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
function createSignedKeyPair(keyPair, signature, keyId, timestampS) {
|
|
13
|
-
return {
|
|
14
|
-
keyPair,
|
|
15
|
-
signature,
|
|
16
|
-
keyId,
|
|
17
|
-
timestampS
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// Export type definitions (for documentation purposes)
|
|
22
|
-
exports.SignalDataTypeMap = {
|
|
23
|
-
'pre-key': 'KeyPair',
|
|
24
|
-
session: 'Uint8Array',
|
|
25
|
-
'sender-key': 'Uint8Array',
|
|
26
|
-
'sender-key-memory': 'object',
|
|
27
|
-
'app-state-sync-key': 'proto.Message.IAppStateSyncKeyData',
|
|
28
|
-
'app-state-sync-version': 'LTHashState',
|
|
29
|
-
'lid-mapping': 'string',
|
|
30
|
-
'device-list': 'Array',
|
|
31
|
-
tctoken: 'object'
|
|
32
|
-
}
|
|
33
|
-
exports.SignalDataSet = undefined
|
|
34
|
-
exports.Awaitable = undefined
|
|
35
|
-
|
|
36
|
-
// Export the factory functions
|
|
37
|
-
exports.createKeyPair = createKeyPair
|
|
38
|
-
exports.createSignedKeyPair = createSignedKeyPair
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=Auth.js.map
|
package/lib/Types/Bussines.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=Bussines.js.map
|
package/lib/Types/Call.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=Call.js.map
|
package/lib/Types/Chat.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export const ALL_WA_PATCH_NAMES = [
|
|
2
|
+
'critical_block',
|
|
3
|
+
'critical_unblock_low',
|
|
4
|
+
'regular_high',
|
|
5
|
+
'regular_low',
|
|
6
|
+
'regular'
|
|
7
|
+
];
|
|
8
|
+
//# sourceMappingURL=Chat.js.map
|
package/lib/Types/Contact.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=Contact.js.map
|
package/lib/Types/Events.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { proto } from '../../WAProto/index.js';
|
|
2
|
+
//# sourceMappingURL=Events.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=GroupMetadata.js.map
|
package/lib/Types/Label.js
CHANGED
|
@@ -1,27 +1,25 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
Object.defineProperty(exports, '__esModule', { value: true })
|
|
3
|
-
exports.LabelColor = void 0
|
|
4
1
|
/** WhatsApp has 20 predefined colors */
|
|
5
|
-
var LabelColor
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
})(LabelColor || (
|
|
2
|
+
export var LabelColor;
|
|
3
|
+
(function (LabelColor) {
|
|
4
|
+
LabelColor[LabelColor["Color1"] = 0] = "Color1";
|
|
5
|
+
LabelColor[LabelColor["Color2"] = 1] = "Color2";
|
|
6
|
+
LabelColor[LabelColor["Color3"] = 2] = "Color3";
|
|
7
|
+
LabelColor[LabelColor["Color4"] = 3] = "Color4";
|
|
8
|
+
LabelColor[LabelColor["Color5"] = 4] = "Color5";
|
|
9
|
+
LabelColor[LabelColor["Color6"] = 5] = "Color6";
|
|
10
|
+
LabelColor[LabelColor["Color7"] = 6] = "Color7";
|
|
11
|
+
LabelColor[LabelColor["Color8"] = 7] = "Color8";
|
|
12
|
+
LabelColor[LabelColor["Color9"] = 8] = "Color9";
|
|
13
|
+
LabelColor[LabelColor["Color10"] = 9] = "Color10";
|
|
14
|
+
LabelColor[LabelColor["Color11"] = 10] = "Color11";
|
|
15
|
+
LabelColor[LabelColor["Color12"] = 11] = "Color12";
|
|
16
|
+
LabelColor[LabelColor["Color13"] = 12] = "Color13";
|
|
17
|
+
LabelColor[LabelColor["Color14"] = 13] = "Color14";
|
|
18
|
+
LabelColor[LabelColor["Color15"] = 14] = "Color15";
|
|
19
|
+
LabelColor[LabelColor["Color16"] = 15] = "Color16";
|
|
20
|
+
LabelColor[LabelColor["Color17"] = 16] = "Color17";
|
|
21
|
+
LabelColor[LabelColor["Color18"] = 17] = "Color18";
|
|
22
|
+
LabelColor[LabelColor["Color19"] = 18] = "Color19";
|
|
23
|
+
LabelColor[LabelColor["Color20"] = 19] = "Color20";
|
|
24
|
+
})(LabelColor || (LabelColor = {}));
|
|
25
|
+
//# sourceMappingURL=Label.js.map
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
Object.defineProperty(exports, '__esModule', { value: true })
|
|
3
|
-
exports.LabelAssociationType = void 0
|
|
4
1
|
/** Association type */
|
|
5
|
-
var LabelAssociationType
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
})(LabelAssociationType || (
|
|
2
|
+
export var LabelAssociationType;
|
|
3
|
+
(function (LabelAssociationType) {
|
|
4
|
+
LabelAssociationType["Chat"] = "label_jid";
|
|
5
|
+
LabelAssociationType["Message"] = "label_message";
|
|
6
|
+
})(LabelAssociationType || (LabelAssociationType = {}));
|
|
7
|
+
//# sourceMappingURL=LabelAssociation.js.map
|
package/lib/Types/Message.js
CHANGED
|
@@ -1,95 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
exports.P2PPaymentReminderFrequency =
|
|
13
|
-
exports.P2PPaymentReminderState =
|
|
14
|
-
exports.ConditionalRevealType =
|
|
15
|
-
exports.EventResponseType =
|
|
16
|
-
exports.PrivateProcessingStatus =
|
|
17
|
-
exports.PaymentInfoStatus =
|
|
18
|
-
exports.PaymentInfoTxnStatus =
|
|
19
|
-
exports.VideoQuality =
|
|
20
|
-
exports.MediaVisibility =
|
|
21
|
-
exports.HistorySyncType =
|
|
22
|
-
void 0
|
|
23
|
-
const index_js_1 = require('../../WAProto/index.js')
|
|
24
|
-
Object.defineProperty(exports, 'WAProto', {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () {
|
|
27
|
-
return index_js_1.proto
|
|
28
|
-
}
|
|
29
|
-
})
|
|
30
|
-
exports.WAMessageStubType = index_js_1.proto.WebMessageInfo.StubType
|
|
31
|
-
exports.WAMessageStatus = index_js_1.proto.WebMessageInfo.Status
|
|
32
|
-
|
|
33
|
-
exports.ScheduledCallType = index_js_1.proto.Message.ScheduledCallCreationMessage.CallType
|
|
34
|
-
exports.ScheduledCallEditType = index_js_1.proto.Message.ScheduledCallEditMessage.EditType
|
|
35
|
-
exports.CallLogOutcome = index_js_1.proto.Message.CallLogMessage.CallOutcome
|
|
36
|
-
exports.CallLogType = index_js_1.proto.Message.CallLogMessage.CallType
|
|
37
|
-
exports.SplitPaymentStatus = index_js_1.proto.Message.SplitPaymentParticipant.SplitPaymentStatus
|
|
38
|
-
exports.P2PPaymentReminderFrequency = index_js_1.proto.Message.P2PPaymentReminderNotification?.ReminderFrequency
|
|
39
|
-
exports.P2PPaymentReminderState = index_js_1.proto.Message.P2PPaymentReminderNotification?.ReminderState
|
|
40
|
-
exports.ConditionalRevealType = index_js_1.proto.Message.ConditionalRevealMessage.ConditionalRevealMessageType
|
|
41
|
-
exports.EventResponseType = index_js_1.proto.Message.EventResponseMessage.EventResponseType
|
|
42
|
-
exports.PrivateProcessingStatus =
|
|
43
|
-
index_js_1.proto.SyncActionValue.PrivateProcessingSettingAction.PrivateProcessingStatus
|
|
44
|
-
exports.PaymentInfoStatus = index_js_1.proto.PaymentInfo.Status
|
|
45
|
-
exports.PaymentInfoTxnStatus = index_js_1.proto.PaymentInfo.TxnStatus
|
|
46
|
-
exports.VideoQuality = index_js_1.proto.ProcessedVideo.VideoQuality
|
|
47
|
-
exports.MediaVisibility = index_js_1.proto.MediaVisibility
|
|
48
|
-
exports.HistorySyncType = index_js_1.proto.HistorySync.HistorySyncType
|
|
49
|
-
exports.KeepType = index_js_1.proto.KeepType
|
|
50
|
-
exports.BotFeedbackKind = index_js_1.proto.BotFeedbackMessage.BotFeedbackKind
|
|
51
|
-
exports.CloudAPIThreadControl = index_js_1.proto.Message.CloudAPIThreadControlNotification.CloudAPIThreadControl
|
|
52
|
-
exports.MessageAddOnType = index_js_1.proto.MessageAddOn.MessageAddOnType
|
|
53
|
-
exports.ProtocolMessageType = index_js_1.proto.Message.ProtocolMessage.Type
|
|
54
|
-
exports.BCallMediaType = index_js_1.proto.Message.BCallMessage.MediaType
|
|
55
|
-
exports.SecretEncType = index_js_1.proto.Message.SecretEncryptedMessage.SecretEncType
|
|
56
|
-
exports.MediaRetryResultType = index_js_1.proto.MediaRetryNotification.ResultType
|
|
57
|
-
exports.StatusAttributionType = index_js_1.proto.StatusAttribution.Type
|
|
58
|
-
exports.ForwardOrigin = index_js_1.proto.ContextInfo.ForwardOrigin
|
|
59
|
-
exports.StatusAudienceType = index_js_1.proto.ContextInfo.StatusAudienceMetadata.AudienceType
|
|
60
|
-
exports.VideoSourceType = index_js_1.proto.Message.VideoMessage.VideoSourceType
|
|
61
|
-
exports.PollType = index_js_1.proto.Message.PollType
|
|
62
|
-
exports.BotCapabilityType = index_js_1.proto.BotCapabilityMetadata.BotCapabilityType
|
|
63
|
-
exports.AssociationType = index_js_1.proto.MessageAssociation.AssociationType
|
|
64
|
-
exports.ThreadType = index_js_1.proto.ThreadID.ThreadType
|
|
65
|
-
exports.CarouselCardType = index_js_1.proto.Message.InteractiveMessage.CarouselMessage.CarouselCardType
|
|
66
|
-
exports.ImageSourceType = index_js_1.proto.Message.ImageMessage.ImageSourceType
|
|
67
|
-
exports.BotSessionSource = index_js_1.proto.BotSessionSource
|
|
68
|
-
exports.BotReminderAction = index_js_1.proto.BotReminderMetadata.ReminderAction
|
|
69
|
-
exports.BotReminderFrequency = index_js_1.proto.BotReminderMetadata.ReminderFrequency
|
|
70
|
-
exports.BotPluginType = index_js_1.proto.BotPluginMetadata.PluginType
|
|
71
|
-
exports.BotPluginSearchProvider = index_js_1.proto.BotPluginMetadata.SearchProvider
|
|
72
|
-
exports.BizInteractionPillType = index_js_1.proto.ContextInfo.BusinessInteractionPills.PillType
|
|
73
|
-
exports.PeerDataOperationRequestType = index_js_1.proto.Message.PeerDataOperationRequestType
|
|
74
|
-
exports.SocialMediaPostType = index_js_1.proto.Message.LinkPreviewMetadata.SocialMediaPostType
|
|
75
|
-
exports.AIRichResponseMessageType = index_js_1.proto.AIRichResponseMessageType
|
|
76
|
-
exports.AIRichResponseSubMessageType = index_js_1.proto.AIRichResponseSubMessageType
|
|
77
|
-
exports.AISubscriptionRequestType = index_js_1.proto.AISubscriptionRequestType
|
|
78
|
-
exports.BotMetricsEntryPoint = index_js_1.proto.BotMetricsEntryPoint
|
|
79
|
-
exports.BotMetricsThreadEntryPoint = index_js_1.proto.BotMetricsThreadEntryPoint
|
|
80
|
-
exports.MediaKeyDomain = index_js_1.proto.MediaKeyDomain
|
|
81
|
-
exports.SessionTransparencyType = index_js_1.proto.SessionTransparencyType
|
|
82
|
-
exports.ADVEncryptionType = index_js_1.proto.ADVEncryptionType
|
|
83
|
-
exports.PlaceholderMessageType = index_js_1.proto.Message.PlaceholderMessage.PlaceholderType
|
|
84
|
-
exports.SecretEncEncType = index_js_1.proto.Message.SecretEncryptedMessage.SecretEncType
|
|
85
|
-
exports.ImageMessageSourceType = index_js_1.proto.Message.ImageMessage.ImageSourceType
|
|
86
|
-
exports.VideoMessageSourceType = index_js_1.proto.Message.VideoMessage.VideoSourceType
|
|
87
|
-
exports.NativeFlowActionType =
|
|
88
|
-
index_js_1.proto.Message.InteractiveResponseMessage?.NativeFlowResponseMessage?.NativeFlowActionType
|
|
89
|
-
exports.InteractiveAnnotationType = index_js_1.proto.HydratedAnnotatedBotMessage?.HydratedAnnotatedMessageType
|
|
90
|
-
|
|
91
|
-
var WAMessageAddressingMode
|
|
92
|
-
;(function (WAMessageAddressingMode) {
|
|
93
|
-
WAMessageAddressingMode['PN'] = 'pn'
|
|
94
|
-
WAMessageAddressingMode['LID'] = 'lid'
|
|
95
|
-
})(WAMessageAddressingMode || (exports.WAMessageAddressingMode = WAMessageAddressingMode = {}))
|
|
1
|
+
import { proto } from '../../WAProto/index.js';
|
|
2
|
+
// export the WAMessage Prototypes
|
|
3
|
+
export { proto as WAProto };
|
|
4
|
+
export const WAMessageStubType = proto.WebMessageInfo.StubType;
|
|
5
|
+
export const WAMessageStatus = proto.WebMessageInfo.Status;
|
|
6
|
+
export var WAMessageAddressingMode;
|
|
7
|
+
(function (WAMessageAddressingMode) {
|
|
8
|
+
WAMessageAddressingMode["PN"] = "pn";
|
|
9
|
+
WAMessageAddressingMode["LID"] = "lid";
|
|
10
|
+
})(WAMessageAddressingMode || (WAMessageAddressingMode = {}));
|
|
11
|
+
//# sourceMappingURL=Message.js.map
|