@zervonexx/baileys 5.0.0 → 5.0.1

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.
Files changed (125) hide show
  1. package/LICENSE +22 -22
  2. package/README.md +4112 -4112
  3. package/WAProto/WAProtoCompile.js +322 -322
  4. package/WAProto/fetcher.js +67 -67
  5. package/WAProto/index.js +95 -95
  6. package/WAProto/parser.js +333 -333
  7. package/lib/Builders/AIRich.js +673 -673
  8. package/lib/Builders/auto.js +49 -49
  9. package/lib/Builders/base.js +144 -144
  10. package/lib/Builders/builders.js +588 -588
  11. package/lib/Builders/index.js +3 -3
  12. package/lib/Defaults/index.js +248 -248
  13. package/lib/Signal/index.js +2 -2
  14. package/lib/Signal/libsignal.js +526 -526
  15. package/lib/Signal/lid-mapping.js +282 -282
  16. package/lib/Socket/Client/index.js +1 -1
  17. package/lib/Socket/Client/types.js +9 -9
  18. package/lib/Socket/Client/websocket.js +83 -83
  19. package/lib/Socket/business.js +151 -151
  20. package/lib/Socket/chats.js +854 -854
  21. package/lib/Socket/communities.js +146 -146
  22. package/lib/Socket/groups.js +293 -293
  23. package/lib/Socket/index.js +14 -14
  24. package/lib/Socket/messages-recv.js +993 -993
  25. package/lib/Socket/messages-send.js +722 -722
  26. package/lib/Socket/mex.js +33 -33
  27. package/lib/Socket/newsletter.js +783 -783
  28. package/lib/Socket/registration.js +154 -154
  29. package/lib/Socket/socket.js +797 -797
  30. package/lib/Socket/spam-report.js +143 -143
  31. package/lib/Socket/username.js +81 -81
  32. package/lib/Socket/zervonex-handler.js +57 -57
  33. package/lib/Store/index.js +6 -6
  34. package/lib/Store/make-cache-manager-store.js +80 -80
  35. package/lib/Store/make-in-memory-store.js +426 -426
  36. package/lib/Store/make-ordered-dictionary.js +81 -81
  37. package/lib/Store/object-repository.js +30 -30
  38. package/lib/Store/reporting-info-store.js +37 -37
  39. package/lib/Types/Auth.js +1 -1
  40. package/lib/Types/Bussines.js +1 -1
  41. package/lib/Types/Call.js +1 -1
  42. package/lib/Types/Chat.js +7 -7
  43. package/lib/Types/Contact.js +1 -1
  44. package/lib/Types/Events.js +1 -1
  45. package/lib/Types/GroupMetadata.js +1 -1
  46. package/lib/Types/Label.js +24 -24
  47. package/lib/Types/LabelAssociation.js +6 -6
  48. package/lib/Types/Message.js +14 -14
  49. package/lib/Types/Newsletter.js +99 -99
  50. package/lib/Types/Product.js +1 -1
  51. package/lib/Types/Signal.js +1 -1
  52. package/lib/Types/Socket.js +14 -14
  53. package/lib/Types/State.js +26 -26
  54. package/lib/Types/USync.js +1 -1
  55. package/lib/Types/index.js +30 -30
  56. package/lib/Utils/auth-utils.js +159 -159
  57. package/lib/Utils/baileys-event-stream.js +32 -32
  58. package/lib/Utils/bot-capabilities.js +40 -40
  59. package/lib/Utils/bot-planning-replay.js +43 -43
  60. package/lib/Utils/browser-utils.js +29 -29
  61. package/lib/Utils/business.js +74 -74
  62. package/lib/Utils/chat-utils.js +316 -316
  63. package/lib/Utils/companion-reg-client-utils.js +19 -19
  64. package/lib/Utils/consumer-application.js +37 -37
  65. package/lib/Utils/crypto.js +52 -52
  66. package/lib/Utils/cstoken.js +14 -14
  67. package/lib/Utils/decode-wa-message.js +199 -199
  68. package/lib/Utils/event-buffer.js +272 -272
  69. package/lib/Utils/extras.js +186 -186
  70. package/lib/Utils/generics.js +194 -194
  71. package/lib/Utils/history.js +50 -50
  72. package/lib/Utils/identity-change-handler.js +18 -18
  73. package/lib/Utils/index.js +40 -40
  74. package/lib/Utils/link-preview.js +50 -50
  75. package/lib/Utils/logger.js +2 -2
  76. package/lib/Utils/lt-hash.js +3 -3
  77. package/lib/Utils/make-mutex.js +15 -15
  78. package/lib/Utils/message-composer.js +61 -61
  79. package/lib/Utils/message-retry-manager.js +47 -47
  80. package/lib/Utils/messages-media.js +501 -501
  81. package/lib/Utils/messages.js +942 -942
  82. package/lib/Utils/meta-ai-msmsg.js +121 -121
  83. package/lib/Utils/meta-compositing.js +74 -74
  84. package/lib/Utils/modern-messages.js +234 -234
  85. package/lib/Utils/native-flow.js +80 -80
  86. package/lib/Utils/noise-handler.js +160 -160
  87. package/lib/Utils/pre-key-manager.js +75 -75
  88. package/lib/Utils/process-message.js +400 -400
  89. package/lib/Utils/reporting-utils.js +170 -170
  90. package/lib/Utils/signal.js +166 -166
  91. package/lib/Utils/spam-report-utils.js +165 -165
  92. package/lib/Utils/sync-action-utils.js +33 -33
  93. package/lib/Utils/tc-token-utils.js +153 -153
  94. package/lib/Utils/use-keyv-auth-state.js +199 -199
  95. package/lib/Utils/use-multi-file-auth-state.js +83 -83
  96. package/lib/Utils/validate-connection.js +171 -171
  97. package/lib/WABinary/constants.js +1320 -1320
  98. package/lib/WABinary/decode.js +151 -151
  99. package/lib/WABinary/encode.js +139 -139
  100. package/lib/WABinary/generic-utils.js +202 -202
  101. package/lib/WABinary/index.js +6 -6
  102. package/lib/WABinary/jid-utils.js +235 -235
  103. package/lib/WABinary/types.js +4 -4
  104. package/lib/WAM/BinaryInfo.js +9 -9
  105. package/lib/WAM/constants.js +22852 -22852
  106. package/lib/WAM/encode.js +149 -149
  107. package/lib/WAM/index.js +3 -3
  108. package/lib/WAUSync/Protocols/USyncBotProfileProtocol.js +30 -30
  109. package/lib/WAUSync/Protocols/USyncBusinessProtocol.js +48 -48
  110. package/lib/WAUSync/Protocols/USyncContactProtocol.js +23 -23
  111. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +28 -28
  112. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +15 -15
  113. package/lib/WAUSync/Protocols/USyncFeatureProtocol.js +24 -24
  114. package/lib/WAUSync/Protocols/USyncLIDProtocol.js +9 -9
  115. package/lib/WAUSync/Protocols/USyncPictureProtocol.js +21 -21
  116. package/lib/WAUSync/Protocols/USyncSidelistProtocol.js +19 -19
  117. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +19 -19
  118. package/lib/WAUSync/Protocols/USyncTextStatusProtocol.js +22 -22
  119. package/lib/WAUSync/Protocols/USyncUsernameProtocol.js +16 -16
  120. package/lib/WAUSync/Protocols/index.js +12 -12
  121. package/lib/WAUSync/USyncQuery.js +88 -88
  122. package/lib/WAUSync/USyncUser.js +20 -20
  123. package/lib/WAUSync/index.js +3 -3
  124. package/lib/index.js +66 -66
  125. package/package.json +191 -192
@@ -1,82 +1,82 @@
1
- function makeOrderedDictionary(idGetter) {
2
- const array = [];
3
- const dict = {};
4
-
5
- const get = (id) => dict[id];
6
-
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
- };
16
-
17
- const upsert = (item, mode) => {
18
- const id = idGetter(item);
19
- if (get(id)) {
20
- update(item);
21
- } else {
22
- if (mode === 'append') {
23
- array.push(item);
24
- } else {
25
- array.splice(0, 0, item);
26
- }
27
- dict[id] = item;
28
- }
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
-
42
- return {
43
- array,
44
- get,
45
- upsert,
46
- update,
47
- remove,
48
- updateAssign: (id, update) => {
49
- const item = get(id);
50
- if (item) {
51
- Object.assign(item, update);
52
- delete dict[id];
53
- dict[idGetter(item)] = item;
54
- return true;
55
- }
56
- return false;
57
- },
58
- clear: () => {
59
- array.splice(0, array.length);
60
- for (const key of Object.keys(dict)) {
61
- delete dict[key];
62
- }
63
- },
64
- filter: (contain) => {
65
- let i = 0;
66
- while (i < array.length) {
67
- if (!contain(array[i])) {
68
- delete dict[idGetter(array[i])];
69
- array.splice(i, 1);
70
- } else {
71
- i += 1;
72
- }
73
- }
74
- },
75
- toJSON: () => array,
76
- fromJSON: (newItems) => {
77
- array.splice(0, array.length, ...newItems);
78
- },
79
- };
80
- }
81
-
1
+ function makeOrderedDictionary(idGetter) {
2
+ const array = [];
3
+ const dict = {};
4
+
5
+ const get = (id) => dict[id];
6
+
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
+ };
16
+
17
+ const upsert = (item, mode) => {
18
+ const id = idGetter(item);
19
+ if (get(id)) {
20
+ update(item);
21
+ } else {
22
+ if (mode === 'append') {
23
+ array.push(item);
24
+ } else {
25
+ array.splice(0, 0, item);
26
+ }
27
+ dict[id] = item;
28
+ }
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
+
42
+ return {
43
+ array,
44
+ get,
45
+ upsert,
46
+ update,
47
+ remove,
48
+ updateAssign: (id, update) => {
49
+ const item = get(id);
50
+ if (item) {
51
+ Object.assign(item, update);
52
+ delete dict[id];
53
+ dict[idGetter(item)] = item;
54
+ return true;
55
+ }
56
+ return false;
57
+ },
58
+ clear: () => {
59
+ array.splice(0, array.length);
60
+ for (const key of Object.keys(dict)) {
61
+ delete dict[key];
62
+ }
63
+ },
64
+ filter: (contain) => {
65
+ let i = 0;
66
+ while (i < array.length) {
67
+ if (!contain(array[i])) {
68
+ delete dict[idGetter(array[i])];
69
+ array.splice(i, 1);
70
+ } else {
71
+ i += 1;
72
+ }
73
+ }
74
+ },
75
+ toJSON: () => array,
76
+ fromJSON: (newItems) => {
77
+ array.splice(0, array.length, ...newItems);
78
+ },
79
+ };
80
+ }
81
+
82
82
  export { makeOrderedDictionary };
@@ -1,31 +1,31 @@
1
- class ObjectRepository {
2
- constructor(entities = {}) {
3
- this.entityMap = new Map(Object.entries(entities));
4
- }
5
-
6
- findById(id) {
7
- return this.entityMap.get(id);
8
- }
9
-
10
- findAll() {
11
- return Array.from(this.entityMap.values());
12
- }
13
-
14
- upsertById(id, entity) {
15
- return this.entityMap.set(id, { ...entity });
16
- }
17
-
18
- deleteById(id) {
19
- return this.entityMap.delete(id);
20
- }
21
-
22
- count() {
23
- return this.entityMap.size;
24
- }
25
-
26
- toJSON() {
27
- return this.findAll();
28
- }
29
- }
30
-
1
+ class ObjectRepository {
2
+ constructor(entities = {}) {
3
+ this.entityMap = new Map(Object.entries(entities));
4
+ }
5
+
6
+ findById(id) {
7
+ return this.entityMap.get(id);
8
+ }
9
+
10
+ findAll() {
11
+ return Array.from(this.entityMap.values());
12
+ }
13
+
14
+ upsertById(id, entity) {
15
+ return this.entityMap.set(id, { ...entity });
16
+ }
17
+
18
+ deleteById(id) {
19
+ return this.entityMap.delete(id);
20
+ }
21
+
22
+ count() {
23
+ return this.entityMap.size;
24
+ }
25
+
26
+ toJSON() {
27
+ return this.findAll();
28
+ }
29
+ }
30
+
31
31
  export { ObjectRepository };
@@ -1,38 +1,38 @@
1
- const createReportingInfoStore = () => {
2
- const byJid = new Map()
3
-
4
- const normalizeKey = jid => (jid || '').toLowerCase()
5
-
6
- return {
7
- add(jid, entry) {
8
- const key = normalizeKey(jid)
9
- if (!key || !entry?.stanzaId || !entry?.reportingTag?.length) return
10
- const list = byJid.get(key) || []
11
- const idx = list.findIndex(e => e.stanzaId === entry.stanzaId)
12
- if (idx >= 0) list[idx] = entry
13
- else list.push(entry)
14
- list.sort((a, b) => b.timestamp - a.timestamp)
15
- byJid.set(key, list)
16
- },
17
-
18
- getForJid(jid, max = 5) {
19
- return (byJid.get(normalizeKey(jid)) || []).slice(0, max)
20
- },
21
-
22
- clear(jid) {
23
- byJid.delete(normalizeKey(jid))
24
- },
25
-
26
- listJids() {
27
- return [...byJid.keys()]
28
- },
29
-
30
- size() {
31
- let n = 0
32
- for (const list of byJid.values()) n += list.length
33
- return n
34
- }
35
- }
36
- }
37
-
1
+ const createReportingInfoStore = () => {
2
+ const byJid = new Map()
3
+
4
+ const normalizeKey = jid => (jid || '').toLowerCase()
5
+
6
+ return {
7
+ add(jid, entry) {
8
+ const key = normalizeKey(jid)
9
+ if (!key || !entry?.stanzaId || !entry?.reportingTag?.length) return
10
+ const list = byJid.get(key) || []
11
+ const idx = list.findIndex(e => e.stanzaId === entry.stanzaId)
12
+ if (idx >= 0) list[idx] = entry
13
+ else list.push(entry)
14
+ list.sort((a, b) => b.timestamp - a.timestamp)
15
+ byJid.set(key, list)
16
+ },
17
+
18
+ getForJid(jid, max = 5) {
19
+ return (byJid.get(normalizeKey(jid)) || []).slice(0, max)
20
+ },
21
+
22
+ clear(jid) {
23
+ byJid.delete(normalizeKey(jid))
24
+ },
25
+
26
+ listJids() {
27
+ return [...byJid.keys()]
28
+ },
29
+
30
+ size() {
31
+ let n = 0
32
+ for (const list of byJid.values()) n += list.length
33
+ return n
34
+ }
35
+ }
36
+ }
37
+
38
38
  export { createReportingInfoStore }
package/lib/Types/Auth.js CHANGED
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=Auth.js.map
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=Bussines.js.map
package/lib/Types/Call.js CHANGED
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=Call.js.map
package/lib/Types/Chat.js CHANGED
@@ -1,8 +1,8 @@
1
- import { proto } from '../../WAProto/index.js'
2
-
3
- // Derived from proto.CollectionName — sorted by enum value, lowercased, UNKNOWN (0) excluded.
4
- // Automatically picks up new collection names when the proto updates.
5
- export const ALL_WA_PATCH_NAMES = Object.entries(proto.CollectionName ?? {})
6
- .filter(([k, v]) => typeof v === 'number' && v !== 0)
7
- .sort((a, b) => a[1] - b[1])
1
+ import { proto } from '../../WAProto/index.js'
2
+
3
+ // Derived from proto.CollectionName — sorted by enum value, lowercased, UNKNOWN (0) excluded.
4
+ // Automatically picks up new collection names when the proto updates.
5
+ export const ALL_WA_PATCH_NAMES = Object.entries(proto.CollectionName ?? {})
6
+ .filter(([k, v]) => typeof v === 'number' && v !== 0)
7
+ .sort((a, b) => a[1] - b[1])
8
8
  .map(([k]) => k.toLowerCase())
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=Contact.js.map
@@ -1,2 +1,2 @@
1
- import { proto } from '../../WAProto/index.js';
1
+ import { proto } from '../../WAProto/index.js';
2
2
  //# sourceMappingURL=Events.js.map
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=GroupMetadata.js.map
@@ -1,25 +1,25 @@
1
- /** WhatsApp has 20 predefined colors */
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 = {}));
1
+ /** WhatsApp has 20 predefined colors */
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
25
  //# sourceMappingURL=Label.js.map
@@ -1,7 +1,7 @@
1
- /** Association type */
2
- export var LabelAssociationType;
3
- (function (LabelAssociationType) {
4
- LabelAssociationType["Chat"] = "label_jid";
5
- LabelAssociationType["Message"] = "label_message";
6
- })(LabelAssociationType || (LabelAssociationType = {}));
1
+ /** Association type */
2
+ export var LabelAssociationType;
3
+ (function (LabelAssociationType) {
4
+ LabelAssociationType["Chat"] = "label_jid";
5
+ LabelAssociationType["Message"] = "label_message";
6
+ })(LabelAssociationType || (LabelAssociationType = {}));
7
7
  //# sourceMappingURL=LabelAssociation.js.map
@@ -1,15 +1,15 @@
1
- import { proto } from '../../WAProto/index.js'
2
-
3
- export { proto as WAProto }
4
-
5
- // Proto is the authoritative source. These Proxies let callers use
6
- // WAMessageStubType.GROUP_CREATE or WAMessageStatus.READ exactly as before.
7
- export const WAMessageStubType = new Proxy({}, { get: (_, k) => proto.WebMessageInfo?.StubType?.[k] })
8
- export const WAMessageStatus = new Proxy({}, { get: (_, k) => proto.WebMessageInfo?.Status?.[k] })
9
-
10
- export const WAMessageAddressingMode = Object.freeze({ PN: 'pn', LID: 'lid' })
11
-
12
- // Resolve a numeric stub type to its string name.
13
- // Proto is the true source — only falls back to UNKNOWN_STUB_N for values not yet in the compiled proto.
14
- export const resolveStubType = (stubType) =>
1
+ import { proto } from '../../WAProto/index.js'
2
+
3
+ export { proto as WAProto }
4
+
5
+ // Proto is the authoritative source. These Proxies let callers use
6
+ // WAMessageStubType.GROUP_CREATE or WAMessageStatus.READ exactly as before.
7
+ export const WAMessageStubType = new Proxy({}, { get: (_, k) => proto.WebMessageInfo?.StubType?.[k] })
8
+ export const WAMessageStatus = new Proxy({}, { get: (_, k) => proto.WebMessageInfo?.Status?.[k] })
9
+
10
+ export const WAMessageAddressingMode = Object.freeze({ PN: 'pn', LID: 'lid' })
11
+
12
+ // Resolve a numeric stub type to its string name.
13
+ // Proto is the true source — only falls back to UNKNOWN_STUB_N for values not yet in the compiled proto.
14
+ export const resolveStubType = (stubType) =>
15
15
  proto.WebMessageInfo?.StubType?.[stubType] ?? `UNKNOWN_STUB_${stubType}`
@@ -1,100 +1,100 @@
1
- export var XWAPaths;
2
- (function (XWAPaths) {
3
- XWAPaths["xwa2_newsletter_create"] = "xwa2_newsletter_create";
4
- XWAPaths["xwa2_newsletter_subscribed"] = "xwa2_newsletter_subscribed";
5
- XWAPaths["xwa2_newsletter_metadata"] = "xwa2_newsletter";
6
- XWAPaths["xwa2_newsletter_admin_count"] = "xwa2_newsletter_admin";
7
- XWAPaths["xwa2_newsletter_admin_info"] = "xwa2_newsletter_admin";
8
- XWAPaths["xwa2_newsletter_admin_capabilities"] = "xwa2_newsletter_admin";
9
- XWAPaths["admin_profile"] = "xwa2_newsletter_admin";
10
- XWAPaths["pending_admin_invites"] = "xwa2_newsletter_admin";
11
- XWAPaths["xwa2_channel_enforcements"] = "xwa2_channel_enforcements";
12
- XWAPaths["xwa2_channels_reports"] = "xwa2_channels_reports";
13
- XWAPaths["xwa2_create_channel_report_appeal_v2"] = "xwa2_create_channel_report_appeal_v2";
14
- XWAPaths["xwa2_newsletter_update_user_setting"] = "xwa2_newsletter_update_user_setting";
15
- XWAPaths["xwa2_newsletter_join_v2"] = "xwa2_newsletter_join_v2";
16
- XWAPaths["xwa2_newsletter_leave_v2"] = "xwa2_newsletter_leave_v2";
17
- XWAPaths["xwa2_newsletter_change_owner"] = "xwa2_newsletter_change_owner";
18
- XWAPaths["xwa2_newsletter_demote"] = "xwa2_newsletter_admin_demote";
19
- XWAPaths["xwa2_newsletter_delete_v2"] = "xwa2_newsletter_delete_v2";
20
- XWAPaths["xwa2_newsletter_followers"] = "xwa2_newsletter_followers";
21
- XWAPaths["xwa2_newsletter_mute_v2"] = "xwa2_newsletter_mute_v2";
22
- XWAPaths["xwa2_newsletter_unmute_v2"] = "xwa2_newsletter_unmute_v2";
23
- XWAPaths["xwa2_newsletter_admin_insights"] = "xwa2_newsletter_admin_insights";
24
- XWAPaths["xwa2_newsletter_pin_messages"] = "xwa2_newsletter_pin_messages";
25
- XWAPaths["xwa2_newsletter_unpin_messages"] = "xwa2_newsletter_unpin_messages";
26
- XWAPaths["xwa2_newsletter_label_ai_content"] = "xwa2_newsletter_label_ai_content";
27
- XWAPaths["xwa2_newsletter_label_paid_partnership"] = "xwa2_newsletter_label_paid_partnership";
28
- XWAPaths["xwa2_newsletter_admin_invite_create"] = "xwa2_newsletter_admin_invite_create";
29
- XWAPaths["xwa2_newsletter_admin_invite_revoke"] = "xwa2_newsletter_admin_invite_revoke";
30
- XWAPaths["xwa2_newsletter_admin_invite_accept"] = "xwa2_newsletter_admin_invite_accept";
31
- XWAPaths["xwa2_newsletter_link_preview"] = "xwa2_newsletter_link_preview";
32
- XWAPaths["xwa2_newsletter_question_response_state_update"] = "xwa2_newsletter_question_response_state_update";
33
- XWAPaths["voter_list"] = "voter_list";
34
- XWAPaths["xwa2_newsletters_reaction_sender_list"] = "xwa2_newsletters_reaction_sender_list";
35
- XWAPaths["xwa2_newsletters_recommended"] = "xwa2_newsletters_recommended";
36
- XWAPaths["xwa2_newsletters_similar"] = "xwa2_newsletters_similar";
37
- XWAPaths["xwa2_newsletters_directory_list"] = "xwa2_newsletters_directory_list";
38
- XWAPaths["xwa2_newsletters_directory_search"] = "xwa2_newsletters_directory_search";
39
- XWAPaths["xwa2_newsletters_directory_category_preview"] = "xwa2_newsletters_directory_category_preview";
40
- XWAPaths["xwa2_fetch_account_reachout_timelock"] = "xwa2_fetch_account_reachout_timelock";
41
- XWAPaths["xwa2_message_capping_info"] = "xwa2_message_capping_info";
42
- XWAPaths["xwa2_username_get"] = "xwa2_username_get";
43
- XWAPaths["xwa2_username_set"] = "xwa2_username_set";
44
- XWAPaths["xwa2_username_pin_set"] = "xwa2_username_pin_set";
45
- XWAPaths["xwa2_username_check"] = "xwa2_username_check";
46
- XWAPaths["xwa2_update_text_status"] = "xwa2_update_text_status";
47
- XWAPaths["xwa2_text_status_list"] = "xwa2_text_status_list";
48
- XWAPaths["xwa2_users_updates_since"] = "xwa2_users_updates_since";
49
- })(XWAPaths || (XWAPaths = {}));
50
-
51
- export var QueryIds;
52
- (function (QueryIds) {
53
- QueryIds["CREATE"] = "25149874324715067";
54
- QueryIds["UPDATE_METADATA"] = "24250201037901610";
55
- QueryIds["METADATA"] = "27456920720571478";
56
- QueryIds["SUBSCRIBERS"] = "9783111038412085";
57
- QueryIds["SUBSCRIBED"] = "25399611239711790";
58
- QueryIds["FOLLOW"] = "24404358912487870";
59
- QueryIds["UNFOLLOW"] = "9767147403369991";
60
- QueryIds["ENFORCEMENTS"] = "27835373536068060";
61
- QueryIds["CHANNEL_REPORTS"] = "35936238352686172";
62
- QueryIds["CREATE_REPORT_APPEAL"] = "27103316329328467";
63
- QueryIds["UPDATE_USER_SETTING"] = "31938993655691868";
64
- QueryIds["ADMIN_COUNT"] = "26278439461859188";
65
- QueryIds["ADMIN_INFO"] = "26278439461859188";
66
- QueryIds["ADMIN_CAPABILITIES"] = "9801384413216421";
67
- QueryIds["CHANGE_OWNER"] = "9546742745432473";
68
- QueryIds["DEMOTE"] = "9880997548630971";
69
- QueryIds["DELETE"] = "30062808666639665";
70
- QueryIds["FOLLOWERS"] = "27472091235714801";
71
- QueryIds["MUTE"] = "29766401636284406";
72
- QueryIds["UNMUTE"] = "9864994326891137";
73
- QueryIds["INSIGHTS"] = "9853618868050977";
74
- QueryIds["PIN_MESSAGES"] = "27165709459706559";
75
- QueryIds["UNPIN_MESSAGES"] = "28007176042216937";
76
- QueryIds["LABEL_AI_CONTENT"] = "27909718265289596";
77
- QueryIds["PAID_PARTNERSHIP_LABEL"] = "26102375079404865";
78
- QueryIds["CREATE_ADMIN_INVITE"] = "9387141988078609";
79
- QueryIds["REVOKE_ADMIN_INVITE"] = "9656078347839416";
80
- QueryIds["ACCEPT_ADMIN_INVITE"] = "9580828702035549";
81
- QueryIds["POLL_VOTERS"] = "9407762219322536";
82
- QueryIds["REACTION_SENDER_LIST"] = "29575462448733991";
83
- QueryIds["RECOMMENDED"] = "25806748772361516";
84
- QueryIds["SIMILAR"] = "26217043484590756";
85
- QueryIds["DIRECTORY_LIST"] = "26125047313831973";
86
- QueryIds["DIRECTORY_SEARCH"] = "26301059626252132";
87
- QueryIds["DIRECTORY_CATEGORIES"] = "35266481849605779";
88
- QueryIds["PENDING_ADMIN_INVITES"] = "9783111038412085";
89
- QueryIds["QUESTION_RESPONSE_STATE"] = "24636260219323456";
90
- QueryIds["REACHOUT_TIMELOCK"] = "23983697327930364";
91
- QueryIds["MESSAGE_CAPPING_INFO"] = "27910975521856601";
92
- QueryIds["PLAINTEXT_LINK_PREVIEW"] = "9101130456653613";
93
- QueryIds["USERNAME_GET"] = "25347099718279209";
94
- QueryIds["USERNAME_SET"] = "25757341163897635";
95
- QueryIds["USERNAME_PIN_SET"] = "9749436995157074";
96
- QueryIds["USERNAME_CHECK"] = "26122779627399568";
97
- QueryIds["UPDATE_TEXT_STATUS"] = "9152604461510864";
98
- QueryIds["TEXT_STATUS_LIST"] = "24072923595647473";
99
- QueryIds["ABOUT_STATUS"] = "24535500086059408";
1
+ export var XWAPaths;
2
+ (function (XWAPaths) {
3
+ XWAPaths["xwa2_newsletter_create"] = "xwa2_newsletter_create";
4
+ XWAPaths["xwa2_newsletter_subscribed"] = "xwa2_newsletter_subscribed";
5
+ XWAPaths["xwa2_newsletter_metadata"] = "xwa2_newsletter";
6
+ XWAPaths["xwa2_newsletter_admin_count"] = "xwa2_newsletter_admin";
7
+ XWAPaths["xwa2_newsletter_admin_info"] = "xwa2_newsletter_admin";
8
+ XWAPaths["xwa2_newsletter_admin_capabilities"] = "xwa2_newsletter_admin";
9
+ XWAPaths["admin_profile"] = "xwa2_newsletter_admin";
10
+ XWAPaths["pending_admin_invites"] = "xwa2_newsletter_admin";
11
+ XWAPaths["xwa2_channel_enforcements"] = "xwa2_channel_enforcements";
12
+ XWAPaths["xwa2_channels_reports"] = "xwa2_channels_reports";
13
+ XWAPaths["xwa2_create_channel_report_appeal_v2"] = "xwa2_create_channel_report_appeal_v2";
14
+ XWAPaths["xwa2_newsletter_update_user_setting"] = "xwa2_newsletter_update_user_setting";
15
+ XWAPaths["xwa2_newsletter_join_v2"] = "xwa2_newsletter_join_v2";
16
+ XWAPaths["xwa2_newsletter_leave_v2"] = "xwa2_newsletter_leave_v2";
17
+ XWAPaths["xwa2_newsletter_change_owner"] = "xwa2_newsletter_change_owner";
18
+ XWAPaths["xwa2_newsletter_demote"] = "xwa2_newsletter_admin_demote";
19
+ XWAPaths["xwa2_newsletter_delete_v2"] = "xwa2_newsletter_delete_v2";
20
+ XWAPaths["xwa2_newsletter_followers"] = "xwa2_newsletter_followers";
21
+ XWAPaths["xwa2_newsletter_mute_v2"] = "xwa2_newsletter_mute_v2";
22
+ XWAPaths["xwa2_newsletter_unmute_v2"] = "xwa2_newsletter_unmute_v2";
23
+ XWAPaths["xwa2_newsletter_admin_insights"] = "xwa2_newsletter_admin_insights";
24
+ XWAPaths["xwa2_newsletter_pin_messages"] = "xwa2_newsletter_pin_messages";
25
+ XWAPaths["xwa2_newsletter_unpin_messages"] = "xwa2_newsletter_unpin_messages";
26
+ XWAPaths["xwa2_newsletter_label_ai_content"] = "xwa2_newsletter_label_ai_content";
27
+ XWAPaths["xwa2_newsletter_label_paid_partnership"] = "xwa2_newsletter_label_paid_partnership";
28
+ XWAPaths["xwa2_newsletter_admin_invite_create"] = "xwa2_newsletter_admin_invite_create";
29
+ XWAPaths["xwa2_newsletter_admin_invite_revoke"] = "xwa2_newsletter_admin_invite_revoke";
30
+ XWAPaths["xwa2_newsletter_admin_invite_accept"] = "xwa2_newsletter_admin_invite_accept";
31
+ XWAPaths["xwa2_newsletter_link_preview"] = "xwa2_newsletter_link_preview";
32
+ XWAPaths["xwa2_newsletter_question_response_state_update"] = "xwa2_newsletter_question_response_state_update";
33
+ XWAPaths["voter_list"] = "voter_list";
34
+ XWAPaths["xwa2_newsletters_reaction_sender_list"] = "xwa2_newsletters_reaction_sender_list";
35
+ XWAPaths["xwa2_newsletters_recommended"] = "xwa2_newsletters_recommended";
36
+ XWAPaths["xwa2_newsletters_similar"] = "xwa2_newsletters_similar";
37
+ XWAPaths["xwa2_newsletters_directory_list"] = "xwa2_newsletters_directory_list";
38
+ XWAPaths["xwa2_newsletters_directory_search"] = "xwa2_newsletters_directory_search";
39
+ XWAPaths["xwa2_newsletters_directory_category_preview"] = "xwa2_newsletters_directory_category_preview";
40
+ XWAPaths["xwa2_fetch_account_reachout_timelock"] = "xwa2_fetch_account_reachout_timelock";
41
+ XWAPaths["xwa2_message_capping_info"] = "xwa2_message_capping_info";
42
+ XWAPaths["xwa2_username_get"] = "xwa2_username_get";
43
+ XWAPaths["xwa2_username_set"] = "xwa2_username_set";
44
+ XWAPaths["xwa2_username_pin_set"] = "xwa2_username_pin_set";
45
+ XWAPaths["xwa2_username_check"] = "xwa2_username_check";
46
+ XWAPaths["xwa2_update_text_status"] = "xwa2_update_text_status";
47
+ XWAPaths["xwa2_text_status_list"] = "xwa2_text_status_list";
48
+ XWAPaths["xwa2_users_updates_since"] = "xwa2_users_updates_since";
49
+ })(XWAPaths || (XWAPaths = {}));
50
+
51
+ export var QueryIds;
52
+ (function (QueryIds) {
53
+ QueryIds["CREATE"] = "25149874324715067";
54
+ QueryIds["UPDATE_METADATA"] = "24250201037901610";
55
+ QueryIds["METADATA"] = "27456920720571478";
56
+ QueryIds["SUBSCRIBERS"] = "9783111038412085";
57
+ QueryIds["SUBSCRIBED"] = "25399611239711790";
58
+ QueryIds["FOLLOW"] = "24404358912487870";
59
+ QueryIds["UNFOLLOW"] = "9767147403369991";
60
+ QueryIds["ENFORCEMENTS"] = "27835373536068060";
61
+ QueryIds["CHANNEL_REPORTS"] = "35936238352686172";
62
+ QueryIds["CREATE_REPORT_APPEAL"] = "27103316329328467";
63
+ QueryIds["UPDATE_USER_SETTING"] = "31938993655691868";
64
+ QueryIds["ADMIN_COUNT"] = "26278439461859188";
65
+ QueryIds["ADMIN_INFO"] = "26278439461859188";
66
+ QueryIds["ADMIN_CAPABILITIES"] = "9801384413216421";
67
+ QueryIds["CHANGE_OWNER"] = "9546742745432473";
68
+ QueryIds["DEMOTE"] = "9880997548630971";
69
+ QueryIds["DELETE"] = "30062808666639665";
70
+ QueryIds["FOLLOWERS"] = "27472091235714801";
71
+ QueryIds["MUTE"] = "29766401636284406";
72
+ QueryIds["UNMUTE"] = "9864994326891137";
73
+ QueryIds["INSIGHTS"] = "9853618868050977";
74
+ QueryIds["PIN_MESSAGES"] = "27165709459706559";
75
+ QueryIds["UNPIN_MESSAGES"] = "28007176042216937";
76
+ QueryIds["LABEL_AI_CONTENT"] = "27909718265289596";
77
+ QueryIds["PAID_PARTNERSHIP_LABEL"] = "26102375079404865";
78
+ QueryIds["CREATE_ADMIN_INVITE"] = "9387141988078609";
79
+ QueryIds["REVOKE_ADMIN_INVITE"] = "9656078347839416";
80
+ QueryIds["ACCEPT_ADMIN_INVITE"] = "9580828702035549";
81
+ QueryIds["POLL_VOTERS"] = "9407762219322536";
82
+ QueryIds["REACTION_SENDER_LIST"] = "29575462448733991";
83
+ QueryIds["RECOMMENDED"] = "25806748772361516";
84
+ QueryIds["SIMILAR"] = "26217043484590756";
85
+ QueryIds["DIRECTORY_LIST"] = "26125047313831973";
86
+ QueryIds["DIRECTORY_SEARCH"] = "26301059626252132";
87
+ QueryIds["DIRECTORY_CATEGORIES"] = "35266481849605779";
88
+ QueryIds["PENDING_ADMIN_INVITES"] = "9783111038412085";
89
+ QueryIds["QUESTION_RESPONSE_STATE"] = "24636260219323456";
90
+ QueryIds["REACHOUT_TIMELOCK"] = "23983697327930364";
91
+ QueryIds["MESSAGE_CAPPING_INFO"] = "27910975521856601";
92
+ QueryIds["PLAINTEXT_LINK_PREVIEW"] = "9101130456653613";
93
+ QueryIds["USERNAME_GET"] = "25347099718279209";
94
+ QueryIds["USERNAME_SET"] = "25757341163897635";
95
+ QueryIds["USERNAME_PIN_SET"] = "9749436995157074";
96
+ QueryIds["USERNAME_CHECK"] = "26122779627399568";
97
+ QueryIds["UPDATE_TEXT_STATUS"] = "9152604461510864";
98
+ QueryIds["TEXT_STATUS_LIST"] = "24072923595647473";
99
+ QueryIds["ABOUT_STATUS"] = "24535500086059408";
100
100
  })(QueryIds || (QueryIds = {}));