@baileys-md/baileys 12.0.0 → 12.2.0

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 (109) hide show
  1. package/LICENSE +21 -13
  2. package/WAProto/WAProto.proto +769 -233
  3. package/WAProto/index.js +65813 -141372
  4. package/lib/Defaults/index.js +128 -113
  5. package/lib/KeyDB/BinarySearch.js +30 -0
  6. package/lib/KeyDB/KeyedDB.js +178 -0
  7. package/lib/KeyDB/index.js +14 -0
  8. package/lib/Signal/Group/ciphertext-message.js +22 -14
  9. package/lib/Signal/Group/group-session-builder.js +21 -42
  10. package/lib/Signal/Group/group_cipher.js +85 -87
  11. package/lib/Signal/Group/index.js +23 -57
  12. package/lib/Signal/Group/keyhelper.js +28 -52
  13. package/lib/Signal/Group/sender-chain-key.js +37 -33
  14. package/lib/Signal/Group/sender-key-distribution-message.js +73 -63
  15. package/lib/Signal/Group/sender-key-message.js +75 -66
  16. package/lib/Signal/Group/sender-key-name.js +55 -44
  17. package/lib/Signal/Group/sender-key-record.js +49 -49
  18. package/lib/Signal/Group/sender-key-state.js +90 -93
  19. package/lib/Signal/Group/sender-message-key.js +37 -28
  20. package/lib/Signal/libsignal.js +324 -163
  21. package/lib/Signal/lid-mapping.js +166 -0
  22. package/lib/Socket/Client/index.js +14 -18
  23. package/lib/Socket/Client/types.js +12 -12
  24. package/lib/Socket/Client/websocket.js +60 -109
  25. package/lib/Socket/business.js +359 -242
  26. package/lib/Socket/chats.js +857 -898
  27. package/lib/Socket/communities.js +413 -0
  28. package/lib/Socket/groups.js +304 -324
  29. package/lib/Socket/index.js +25 -9
  30. package/lib/Socket/messages-recv.js +1109 -1000
  31. package/lib/Socket/messages-send.js +615 -387
  32. package/lib/Socket/mex.js +45 -0
  33. package/lib/Socket/newsletter.js +231 -227
  34. package/lib/Socket/socket.js +803 -628
  35. package/lib/Store/index.js +18 -8
  36. package/lib/Store/make-cache-manager-store.js +75 -0
  37. package/lib/Store/make-in-memory-store.js +286 -435
  38. package/lib/Store/make-ordered-dictionary.js +77 -79
  39. package/lib/Store/object-repository.js +24 -26
  40. package/lib/Types/Auth.js +13 -2
  41. package/lib/Types/Bussines.js +13 -0
  42. package/lib/Types/Call.js +13 -2
  43. package/lib/Types/Chat.js +19 -4
  44. package/lib/Types/Contact.js +13 -2
  45. package/lib/Types/Events.js +13 -2
  46. package/lib/Types/GroupMetadata.js +13 -2
  47. package/lib/Types/Label.js +43 -26
  48. package/lib/Types/LabelAssociation.js +16 -8
  49. package/lib/Types/Message.js +22 -7
  50. package/lib/Types/Newsletter.js +42 -17
  51. package/lib/Types/Product.js +13 -2
  52. package/lib/Types/Signal.js +13 -2
  53. package/lib/Types/Socket.js +14 -2
  54. package/lib/Types/State.js +21 -2
  55. package/lib/Types/USync.js +13 -2
  56. package/lib/Types/index.js +37 -41
  57. package/lib/Utils/auth-utils.js +219 -189
  58. package/lib/Utils/baileys-event-stream.js +54 -0
  59. package/lib/Utils/browser-utils.js +21 -31
  60. package/lib/Utils/business.js +213 -214
  61. package/lib/Utils/chat-utils.js +711 -689
  62. package/lib/Utils/crypto.js +112 -175
  63. package/lib/Utils/decode-wa-message.js +254 -194
  64. package/lib/Utils/event-buffer.js +510 -500
  65. package/lib/Utils/generics.js +318 -430
  66. package/lib/Utils/history.js +83 -90
  67. package/lib/Utils/index.js +31 -35
  68. package/lib/Utils/link-preview.js +71 -116
  69. package/lib/Utils/logger.js +5 -7
  70. package/lib/Utils/lt-hash.js +40 -46
  71. package/lib/Utils/make-mutex.js +34 -41
  72. package/lib/Utils/message-retry-manager.js +33 -48
  73. package/lib/Utils/messages-media.js +516 -784
  74. package/lib/Utils/messages.js +347 -489
  75. package/lib/Utils/noise-handler.js +138 -144
  76. package/lib/Utils/pre-key-manager.js +95 -0
  77. package/lib/Utils/process-message.js +331 -384
  78. package/lib/Utils/signal.js +157 -139
  79. package/lib/Utils/use-multi-file-auth-state.js +119 -91
  80. package/lib/Utils/validate-connection.js +184 -203
  81. package/lib/WABinary/constants.js +1308 -1298
  82. package/lib/WABinary/decode.js +241 -256
  83. package/lib/WABinary/encode.js +217 -239
  84. package/lib/WABinary/generic-utils.js +131 -40
  85. package/lib/WABinary/index.js +17 -21
  86. package/lib/WABinary/jid-utils.js +97 -79
  87. package/lib/WABinary/types.js +13 -2
  88. package/lib/WAM/BinaryInfo.js +20 -12
  89. package/lib/WAM/constants.js +22863 -15348
  90. package/lib/WAM/encode.js +145 -136
  91. package/lib/WAM/index.js +15 -19
  92. package/lib/WAUSync/Protocols/USyncContactProtocol.js +39 -31
  93. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +61 -54
  94. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +39 -29
  95. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +48 -40
  96. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +62 -51
  97. package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +38 -21
  98. package/lib/WAUSync/Protocols/index.js +17 -20
  99. package/lib/WAUSync/USyncQuery.js +98 -86
  100. package/lib/WAUSync/USyncUser.js +35 -26
  101. package/lib/WAUSync/index.js +16 -19
  102. package/lib/index.js +23 -41
  103. package/package.json +46 -56
  104. package/README.md +0 -113
  105. package/WAProto/GenerateStatics.sh +0 -4
  106. package/lib/Defaults/wileys-version.json +0 -3
  107. package/lib/Signal/Group/queue-job.js +0 -57
  108. package/lib/Socket/usync.js +0 -70
  109. package/lib/Utils/wileys-event-stream.js +0 -63
@@ -1,81 +1,79 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- function makeOrderedDictionary(idGetter) {
4
- const array = [];
5
- const dict = {};
6
- const get = (id) => dict[id];
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;
1
+ //===================================//
2
+ export function makeOrderedDictionary(idGetter) {
3
+ const array = []
4
+ const dict = {}
5
+ const get = (id) => dict[id]
6
+ const update = (item) => {
7
+ const id = idGetter(item)
8
+ const idx = array.findIndex(i => idGetter(i) === id)
9
+ if (idx >= 0) {
10
+ array[idx] = item
11
+ dict[id] = item
12
+ }
13
+ return false
14
+ }
15
+ const upsert = (item, mode) => {
16
+ const id = idGetter(item)
17
+ if (get(id)) {
18
+ update(item)
19
+ }
20
+ else {
21
+ if (mode === "append") {
22
+ array.push(item)
23
+ }
24
+ else {
25
+ array.splice(0, 0, item)
26
+ }
27
+ dict[id] = item
28
+ }
29
+ }
30
+ const remove = (item) => {
31
+ const id = idGetter(item)
32
+ const idx = array.findIndex(i => idGetter(i) === id)
33
+ if (idx >= 0) {
34
+ array.splice(idx, 1)
35
+ delete dict[id]
36
+ return true
37
+ }
38
+ return false
39
+ }
40
+ return {
41
+ array,
42
+ get,
43
+ upsert,
44
+ update,
45
+ remove,
46
+ updateAssign: (id, update) => {
47
+ const item = get(id)
48
+ if (item) {
49
+ Object.assign(item, update)
50
+ delete dict[id]
51
+ dict[idGetter(item)] = item
52
+ return true
53
+ }
54
+ return false
55
+ },
56
+ clear: () => {
57
+ array.splice(0, array.length)
58
+ for (const key of Object.keys(dict)) {
59
+ delete dict[key]
60
+ }
61
+ },
62
+ filter: (contain) => {
63
+ let i = 0
64
+ while (i < array.length) {
65
+ if (!contain(array[i])) {
66
+ delete dict[idGetter(array[i])]
67
+ array.splice(i, 1)
68
+ } else {
69
+ i += 1
13
70
  }
14
- return false;
15
- };
16
- const upsert = (item, mode) => {
17
- const id = idGetter(item);
18
- if (get(id)) {
19
- update(item);
20
- }
21
- else {
22
- if (mode === 'append') {
23
- array.push(item);
24
- }
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
- }
70
- else {
71
- i += 1;
72
- }
73
- }
74
- },
75
- toJSON: () => array,
76
- fromJSON: (newItems) => {
77
- array.splice(0, array.length, ...newItems);
78
- }
79
- };
71
+ }
72
+ },
73
+ toJSON: () => array,
74
+ fromJSON: (newItems) => {
75
+ array.splice(0, array.length, ...newItems)
76
+ }
77
+ }
80
78
  }
81
- exports.default = makeOrderedDictionary;
79
+ //===================================//
@@ -1,27 +1,25 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ObjectRepository = void 0;
4
- class ObjectRepository {
5
- constructor(entities = {}) {
6
- this.entityMap = new Map(Object.entries(entities));
7
- }
8
- findById(id) {
9
- return this.entityMap.get(id);
10
- }
11
- findAll() {
12
- return Array.from(this.entityMap.values());
13
- }
14
- upsertById(id, entity) {
15
- return this.entityMap.set(id, { ...entity });
16
- }
17
- deleteById(id) {
18
- return this.entityMap.delete(id);
19
- }
20
- count() {
21
- return this.entityMap.size;
22
- }
23
- toJSON() {
24
- return this.findAll();
25
- }
1
+ //===================================//
2
+ export class ObjectRepository {
3
+ constructor(entities = {}) {
4
+ this.entityMap = new Map(Object.entries(entities))
5
+ }
6
+ findById(id) {
7
+ return this.entityMap.get(id)
8
+ }
9
+ findAll() {
10
+ return Array.from(this.entityMap.values())
11
+ }
12
+ upsertById(id, entity) {
13
+ return this.entityMap.set(id, { ...entity })
14
+ }
15
+ deleteById(id) {
16
+ return this.entityMap.delete(id)
17
+ }
18
+ count() {
19
+ return this.entityMap.size
20
+ }
21
+ toJSON() {
22
+ return this.findAll()
23
+ }
26
24
  }
27
- exports.ObjectRepository = ObjectRepository;
25
+ //===================================//
package/lib/Types/Auth.js CHANGED
@@ -1,2 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ //========================================//
2
+ /**
3
+ * @project @sixcore/baileys
4
+ * @author Sixx.js </>🌿
5
+ * @version 1.0.3
6
+ * @license MIT
7
+ * @country Mozambique 🇲🇿♥️
8
+ * @chamadas || sms +258860817689
9
+ * @whatsApp +55889616-2417 || +258851907875
10
+ * @description Biblioteca Node.js para integração e automação no WhatsApp usando Baileys
11
+ */
12
+
13
+ export {};
@@ -0,0 +1,13 @@
1
+ //========================================//
2
+ /**
3
+ * @project @sixcore/baileys
4
+ * @author Sixx.js </>🌿
5
+ * @version 1.0.3
6
+ * @license MIT
7
+ * @country Mozambique 🇲🇿♥️
8
+ * @chamadas || sms +258860817689
9
+ * @whatsApp +55889616-2417 || +258851907875
10
+ * @description Biblioteca Node.js para integração e automação no WhatsApp usando Baileys
11
+ */
12
+
13
+ export {};
package/lib/Types/Call.js CHANGED
@@ -1,2 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ //========================================//
2
+ /**
3
+ * @project @sixcore/baileys
4
+ * @author Sixx.js </>🌿
5
+ * @version 1.0.3
6
+ * @license MIT
7
+ * @country Mozambique 🇲🇿♥️
8
+ * @chamadas || sms +258860817689
9
+ * @whatsApp +55889616-2417 || +258851907875
10
+ * @description Biblioteca Node.js para integração e automação no WhatsApp usando Baileys
11
+ */
12
+
13
+ export {};
package/lib/Types/Chat.js CHANGED
@@ -1,4 +1,19 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ALL_WA_PATCH_NAMES = void 0;
4
- exports.ALL_WA_PATCH_NAMES = ['critical_block', 'critical_unblock_low', 'regular_high', 'regular_low', 'regular'];
1
+ //========================================//
2
+ /**
3
+ * @project @sixcore/baileys
4
+ * @author Sixx.js </>🌿
5
+ * @version 1.0.3
6
+ * @license MIT
7
+ * @country Mozambique 🇲🇿♥️
8
+ * @chamadas || sms +258860817689
9
+ * @whatsApp +55889616-2417 || +258851907875
10
+ * @description Biblioteca Node.js para integração e automação no WhatsApp usando Baileys
11
+ */
12
+
13
+ export const ALL_WA_PATCH_NAMES = [
14
+ "critical_block",
15
+ "critical_unblock_low",
16
+ "regular_high",
17
+ "regular_low",
18
+ "regular"
19
+ ];
@@ -1,2 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ //========================================//
2
+ /**
3
+ * @project @sixcore/baileys
4
+ * @author Sixx.js </>🌿
5
+ * @version 1.0.3
6
+ * @license MIT
7
+ * @country Mozambique 🇲🇿♥️
8
+ * @chamadas || sms +258860817689
9
+ * @whatsApp +55889616-2417 || +258851907875
10
+ * @description Biblioteca Node.js para integração e automação no WhatsApp usando Baileys
11
+ */
12
+
13
+ export {};
@@ -1,2 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ //========================================//
2
+ /**
3
+ * @project @sixcore/baileys
4
+ * @author Sixx.js </>🌿
5
+ * @version 1.0.3
6
+ * @license MIT
7
+ * @country Mozambique 🇲🇿♥️
8
+ * @chamadas || sms +258860817689
9
+ * @whatsApp +55889616-2417 || +258851907875
10
+ * @description Biblioteca Node.js para integração e automação no WhatsApp usando Baileys
11
+ */
12
+
13
+ import { proto } from "../../WAProto/index.js";
@@ -1,2 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ //========================================//
2
+ /**
3
+ * @project @sixcore/baileys
4
+ * @author Sixx.js </>🌿
5
+ * @version 1.0.3
6
+ * @license MIT
7
+ * @country Mozambique 🇲🇿♥️
8
+ * @chamadas || sms +258860817689
9
+ * @whatsApp +55889616-2417 || +258851907875
10
+ * @description Biblioteca Node.js para integração e automação no WhatsApp usando Baileys
11
+ */
12
+
13
+ export {};
@@ -1,27 +1,44 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LabelColor = void 0;
4
- /** WhatsApp has 20 predefined colors */
5
- var LabelColor;
1
+ //========================================//
2
+ /**
3
+ * @project @sixcore/baileys
4
+ * @author Sixx.js </>🌿
5
+ * @version 1.0.3
6
+ * @license MIT
7
+ * @country Mozambique 🇲🇿♥️
8
+ * @chamadas sms +258860817689
9
+ * @whatsApp +55889616-2417 | +258851907875
10
+ * @description Biblioteca Node.js para integração e automação no WhatsApp usando Baileys
11
+ */
12
+
13
+ // 🎨 Enumeração de cores usadas para etiquetas (Labels) no WhatsApp
14
+ // Cada número representa uma cor diferente usada internamente
15
+
16
+ export var LabelColor;
17
+
6
18
  (function (LabelColor) {
7
- LabelColor[LabelColor["Color1"] = 0] = "Color1";
8
- LabelColor[LabelColor["Color2"] = 1] = "Color2";
9
- LabelColor[LabelColor["Color3"] = 2] = "Color3";
10
- LabelColor[LabelColor["Color4"] = 3] = "Color4";
11
- LabelColor[LabelColor["Color5"] = 4] = "Color5";
12
- LabelColor[LabelColor["Color6"] = 5] = "Color6";
13
- LabelColor[LabelColor["Color7"] = 6] = "Color7";
14
- LabelColor[LabelColor["Color8"] = 7] = "Color8";
15
- LabelColor[LabelColor["Color9"] = 8] = "Color9";
16
- LabelColor[LabelColor["Color10"] = 9] = "Color10";
17
- LabelColor[LabelColor["Color11"] = 10] = "Color11";
18
- LabelColor[LabelColor["Color12"] = 11] = "Color12";
19
- LabelColor[LabelColor["Color13"] = 12] = "Color13";
20
- LabelColor[LabelColor["Color14"] = 13] = "Color14";
21
- LabelColor[LabelColor["Color15"] = 14] = "Color15";
22
- LabelColor[LabelColor["Color16"] = 15] = "Color16";
23
- LabelColor[LabelColor["Color17"] = 16] = "Color17";
24
- LabelColor[LabelColor["Color18"] = 17] = "Color18";
25
- LabelColor[LabelColor["Color19"] = 18] = "Color19";
26
- LabelColor[LabelColor["Color20"] = 19] = "Color20";
27
- })(LabelColor || (exports.LabelColor = LabelColor = {}));
19
+
20
+ LabelColor[LabelColor["Color1"] = 0] = "Color1";
21
+ LabelColor[LabelColor["Color2"] = 1] = "Color2";
22
+ LabelColor[LabelColor["Color3"] = 2] = "Color3";
23
+ LabelColor[LabelColor["Color4"] = 3] = "Color4";
24
+ LabelColor[LabelColor["Color5"] = 4] = "Color5";
25
+
26
+ LabelColor[LabelColor["Color6"] = 5] = "Color6";
27
+ LabelColor[LabelColor["Color7"] = 6] = "Color7";
28
+ LabelColor[LabelColor["Color8"] = 7] = "Color8";
29
+ LabelColor[LabelColor["Color9"] = 8] = "Color9";
30
+ LabelColor[LabelColor["Color10"] = 9] = "Color10";
31
+
32
+ LabelColor[LabelColor["Color11"] = 10] = "Color11";
33
+ LabelColor[LabelColor["Color12"] = 11] = "Color12";
34
+ LabelColor[LabelColor["Color13"] = 12] = "Color13";
35
+ LabelColor[LabelColor["Color14"] = 13] = "Color14";
36
+ LabelColor[LabelColor["Color15"] = 14] = "Color15";
37
+
38
+ LabelColor[LabelColor["Color16"] = 15] = "Color16";
39
+ LabelColor[LabelColor["Color17"] = 16] = "Color17";
40
+ LabelColor[LabelColor["Color18"] = 17] = "Color18";
41
+ LabelColor[LabelColor["Color19"] = 18] = "Color19";
42
+ LabelColor[LabelColor["Color20"] = 19] = "Color20";
43
+
44
+ })(LabelColor || (LabelColor = {}));
@@ -1,9 +1,17 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LabelAssociationType = void 0;
4
- /** Association type */
5
- var LabelAssociationType;
1
+ //========================================//
2
+ /**
3
+ * @project @sixcore/baileys
4
+ * @author Sixx.js </>🌿
5
+ * @version 1.0.3
6
+ * @license MIT
7
+ * @country Mozambique 🇲🇿♥️
8
+ * @chamadas || sms +258860817689
9
+ * @whatsApp +55889616-2417 || +258851907875
10
+ * @description Biblioteca Node.js para integração e automação no WhatsApp usando Baileys
11
+ */
12
+
13
+ export var LabelAssociationType;
6
14
  (function (LabelAssociationType) {
7
- LabelAssociationType["Chat"] = "label_jid";
8
- LabelAssociationType["Message"] = "label_message";
9
- })(LabelAssociationType || (exports.LabelAssociationType = LabelAssociationType = {}));
15
+ LabelAssociationType["Chat"] = "label_jid";
16
+ LabelAssociationType["Message"] = "label_message";
17
+ })(LabelAssociationType || (LabelAssociationType = {}));
@@ -1,7 +1,22 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WAMessageStatus = exports.WAMessageStubType = exports.WAProto = void 0;
4
- const WAProto_1 = require("../../WAProto");
5
- Object.defineProperty(exports, "WAProto", { enumerable: true, get: function () { return WAProto_1.proto; } });
6
- exports.WAMessageStubType = WAProto_1.proto.WebMessageInfo.StubType;
7
- exports.WAMessageStatus = WAProto_1.proto.WebMessageInfo.Status;
1
+ //========================================//
2
+ /**
3
+ * @project @sixcore/baileys
4
+ * @author Sixx.js </>🌿
5
+ * @version 1.0.3
6
+ * @license MIT
7
+ * @country Mozambique 🇲🇿♥️
8
+ * @chamadas || sms +258860817689
9
+ * @whatsApp +55889616-2417 || +258851907875
10
+ * @description Biblioteca Node.js para integração e automação no WhatsApp usando Baileys
11
+ */
12
+
13
+ import { proto } from "../../WAProto/index.js";
14
+
15
+ export { proto as WAProto };
16
+ export const WAMessageStubType = proto.WebMessageInfo.StubType;
17
+ export const WAMessageStatus = proto.WebMessageInfo.Status;
18
+ export var WAMessageAddressingMode;
19
+ (function (WAMessageAddressingMode) {
20
+ WAMessageAddressingMode["PN"] = "pn";
21
+ WAMessageAddressingMode["LID"] = "lid";
22
+ })(WAMessageAddressingMode || (WAMessageAddressingMode = {}));
@@ -1,18 +1,43 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.XWAPaths = exports.MexOperations = void 0;
4
- var MexOperations;
5
- (function (MexOperations) {
6
- MexOperations["PROMOTE"] = "NotificationNewsletterAdminPromote";
7
- MexOperations["DEMOTE"] = "NotificationNewsletterAdminDemote";
8
- MexOperations["UPDATE"] = "NotificationNewsletterUpdate";
9
- })(MexOperations || (exports.MexOperations = MexOperations = {}));
10
- var XWAPaths;
1
+ //========================================//
2
+ /**
3
+ * @project @sixcore/baileys
4
+ * @author Sixx.js </>🌿
5
+ * @version 1.0.3
6
+ * @license MIT
7
+ * @country Mozambique 🇲🇿♥️
8
+ * @chamadas || sms +258860817689
9
+ * @whatsApp +55889616-2417 || +258851907875
10
+ * @description Biblioteca Node.js para integração e automação no WhatsApp usando Baileys
11
+ */
12
+
13
+ export var XWAPaths;
11
14
  (function (XWAPaths) {
12
- XWAPaths["PROMOTE"] = "xwa2_notify_newsletter_admin_promote";
13
- XWAPaths["DEMOTE"] = "xwa2_notify_newsletter_admin_demote";
14
- XWAPaths["ADMIN_COUNT"] = "xwa2_newsletter_admin";
15
- XWAPaths["CREATE"] = "xwa2_newsletter_create";
16
- XWAPaths["NEWSLETTER"] = "xwa2_newsletter";
17
- XWAPaths["METADATA_UPDATE"] = "xwa2_notify_newsletter_on_metadata_update";
18
- })(XWAPaths || (exports.XWAPaths = XWAPaths = {}));
15
+ XWAPaths["xwa2_newsletter_create"] = "xwa2_newsletter_create";
16
+ XWAPaths["xwa2_newsletter_subscribers"] = "xwa2_newsletter_subscribers";
17
+ XWAPaths["xwa2_newsletter_view"] = "xwa2_newsletter_view";
18
+ XWAPaths["xwa2_newsletter_metadata"] = "xwa2_newsletter";
19
+ XWAPaths["xwa2_newsletter_admin_count"] = "xwa2_newsletter_admin";
20
+ XWAPaths["xwa2_newsletter_mute_v2"] = "xwa2_newsletter_mute_v2";
21
+ XWAPaths["xwa2_newsletter_unmute_v2"] = "xwa2_newsletter_unmute_v2";
22
+ XWAPaths["xwa2_newsletter_follow"] = "xwa2_newsletter_follow";
23
+ XWAPaths["xwa2_newsletter_unfollow"] = "xwa2_newsletter_unfollow";
24
+ XWAPaths["xwa2_newsletter_change_owner"] = "xwa2_newsletter_change_owner";
25
+ XWAPaths["xwa2_newsletter_demote"] = "xwa2_newsletter_demote";
26
+ XWAPaths["xwa2_newsletter_delete_v2"] = "xwa2_newsletter_delete_v2";
27
+ })(XWAPaths || (XWAPaths = {}));
28
+
29
+ export var QueryIds;
30
+ (function (QueryIds) {
31
+ QueryIds["CREATE"] = "8823471724422422";
32
+ QueryIds["UPDATE_METADATA"] = "24250201037901610";
33
+ QueryIds["METADATA"] = "6620195908089573";
34
+ QueryIds["SUBSCRIBERS"] = "6388546374527196";
35
+ QueryIds["FOLLOW"] = "7871414976211147";
36
+ QueryIds["UNFOLLOW"] = "7238632346214362";
37
+ QueryIds["MUTE"] = "29766401636284406";
38
+ QueryIds["UNMUTE"] = "9864994326891137";
39
+ QueryIds["ADMIN_COUNT"] = "7130823597031706";
40
+ QueryIds["CHANGE_OWNER"] = "7341777602580933";
41
+ QueryIds["DEMOTE"] = "6551828931592903";
42
+ QueryIds["DELETE"] = "30062808666639665";
43
+ })(QueryIds || (QueryIds = {}));
@@ -1,2 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ //========================================//
2
+ /**
3
+ * @project @sixcore/baileys
4
+ * @author Sixx.js </>🌿
5
+ * @version 1.0.3
6
+ * @license MIT
7
+ * @country Mozambique 🇲🇿♥️
8
+ * @chamadas || sms +258860817689
9
+ * @whatsApp +55889616-2417 || +258851907875
10
+ * @description Biblioteca Node.js para integração e automação no WhatsApp usando Baileys
11
+ */
12
+
13
+ export {};
@@ -1,2 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ //========================================//
2
+ /**
3
+ * @project @sixcore/baileys
4
+ * @author Sixx.js </>🌿
5
+ * @version 1.0.3
6
+ * @license MIT
7
+ * @country Mozambique 🇲🇿♥️
8
+ * @chamadas || sms +258860817689
9
+ * @whatsApp +55889616-2417 || +258851907875
10
+ * @description Biblioteca Node.js para integração e automação no WhatsApp usando Baileys
11
+ */
12
+
13
+ import { proto } from "../../WAProto/index.js";
@@ -1,2 +1,14 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ //========================================//
2
+ /**
3
+ * @project @sixcore/baileys
4
+ * @author Sixx.js </>🌿
5
+ * @version 1.0.3
6
+ * @license MIT
7
+ * @country Mozambique 🇲🇿♥️
8
+ * @chamadas || sms +258860817689
9
+ * @whatsApp +55889616-2417 || +258851907875
10
+ * @description Biblioteca Node.js para integração e automação no WhatsApp usando Baileys
11
+ */
12
+
13
+ import { proto } from "../../WAProto/index.js";
14
+ import {} from "./Message.js";
@@ -1,2 +1,21 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ //========================================//
2
+ /**
3
+ * @project @sixcore/baileys
4
+ * @author Sixx.js </>🌿
5
+ * @version 1.0.3
6
+ * @license MIT
7
+ * @country Mozambique 🇲🇿♥️
8
+ * @chamadas || sms +258860817689
9
+ * @whatsApp +55889616-2417 || +258851907875
10
+ * @description Biblioteca Node.js para integração e automação no WhatsApp usando Baileys
11
+ */
12
+
13
+ import { Boom } from "@hapi/boom";
14
+
15
+ export var SyncState;
16
+ (function (SyncState) {
17
+ SyncState[SyncState["Connecting"] = 0] = "Connecting";
18
+ SyncState[SyncState["AwaitingInitialSync"] = 1] = "AwaitingInitialSync";
19
+ SyncState[SyncState["Syncing"] = 2] = "Syncing";
20
+ SyncState[SyncState["Online"] = 3] = "Online";
21
+ })(SyncState || (SyncState = {}));
@@ -1,2 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ //========================================//
2
+ /**
3
+ * @project @sixcore/baileys
4
+ * @author Sixx.js </>🌿
5
+ * @version 1.0.3
6
+ * @license MIT
7
+ * @country Mozambique 🇲🇿♥️
8
+ * @chamadas || sms +258860817689
9
+ * @whatsApp +55889616-2417 || +258851907875
10
+ * @description Biblioteca Node.js para integração e automação no WhatsApp usando Baileys
11
+ */
12
+
13
+ import { USyncUser } from "../WAUSync/index.js";