kage-baileys 3.0.6 → 3.2.3
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/Example/connection.cjs +4 -0
- package/README.MD +4726 -48
- package/WAProto/WAProto.proto +3395 -415
- package/WAProto/compat.cjs +12 -0
- package/WAProto/index.d.ts +47104 -19888
- package/WAProto/index.js +131979 -57361
- package/lib/Addon/http-error.js +43 -0
- package/lib/Addon/index.js +32 -0
- package/lib/Addon/keyed-db.js +250 -0
- package/lib/Addon/link-preview.js +82 -0
- package/lib/Defaults/baileys-version.json +3 -0
- package/lib/Defaults/connection.js +110 -0
- package/lib/Defaults/constants.js +156 -0
- package/lib/Defaults/history.js +46 -0
- package/lib/Defaults/index.js +230 -0
- package/lib/Defaults/media.js +104 -0
- package/lib/Defaults/phonenumber-mcc.json +223 -0
- package/lib/Defaults/prefix.js +44 -0
- package/lib/Extensions/business-advanced.js +382 -0
- package/lib/Extensions/business.js +159 -0
- package/lib/Extensions/chats-advanced.js +1106 -0
- package/lib/Extensions/chats.js +349 -0
- package/lib/Extensions/communities-advanced.js +430 -0
- package/lib/Extensions/community.js +94 -0
- package/lib/Extensions/groups-advanced.js +343 -0
- package/lib/Extensions/index.js +30 -0
- package/lib/Extensions/messages-recv-advanced.js +1690 -0
- package/lib/Extensions/messages-send-advanced.js +622 -0
- package/lib/Extensions/messages-send.js +1380 -0
- package/lib/Extensions/newsletter-advanced.js +228 -0
- package/lib/Extensions/newsletter.js +72 -0
- package/lib/Extensions/socket.js +389 -0
- package/lib/Modded/message_builder.js +2084 -4
- package/lib/Signal/Group/ciphertext-message.js +54 -0
- package/lib/Signal/Group/group-session-builder.js +124 -0
- package/lib/Signal/Group/group_cipher.js +216 -0
- package/lib/Signal/Group/index.js +124 -0
- package/lib/Signal/Group/keyhelper.js +108 -0
- package/lib/Signal/Group/sender-chain-key.js +83 -0
- package/lib/Signal/Group/sender-key-distribution-message.js +157 -0
- package/lib/Signal/Group/sender-key-message.js +166 -0
- package/lib/Signal/Group/sender-key-name.js +130 -0
- package/lib/Signal/Group/sender-key-record.js +113 -0
- package/lib/Signal/Group/sender-key-state.js +208 -0
- package/lib/Signal/Group/sender-message-key.js +82 -0
- package/lib/Signal/libsignal.js +935 -0
- package/lib/Signal/lid-mapping.js +545 -1
- package/lib/Socket/Client/index.js +60 -0
- package/lib/Socket/Client/types.js +51 -0
- package/lib/Socket/Client/websocket.js +152 -0
- package/lib/Socket/business.js +831 -0
- package/lib/Socket/chats.js +2535 -49
- package/lib/Socket/communities.js +450 -1
- package/lib/Socket/community.js +1022 -0
- package/lib/Socket/dugong.js +1 -1
- package/lib/Socket/groups.js +747 -0
- package/lib/Socket/index.js +60 -2
- package/lib/Socket/messages-recv.js +3450 -5
- package/lib/Socket/messages-send.js +3123 -0
- package/lib/Socket/mex.js +126 -1
- package/lib/Socket/newsletter.js +465 -0
- package/lib/Socket/socket.js +2217 -1
- package/lib/Store/index.js +79 -0
- package/lib/Store/make-cache-manager-store.js +186 -0
- package/lib/Store/make-in-memory-store.js +878 -0
- package/lib/Store/make-ordered-dictionary.js +187 -0
- package/lib/Store/object-repository.js +78 -0
- package/lib/Types/Auth.js +25 -0
- package/lib/Types/Bussines.js +25 -1
- package/lib/Types/Call.js +25 -0
- package/lib/Types/Chat.js +39 -0
- package/lib/Types/Contact.js +25 -0
- package/lib/Types/Events.js +25 -0
- package/lib/Types/GroupMetadata.js +25 -0
- package/lib/Types/Label.js +76 -0
- package/lib/Types/LabelAssociation.js +40 -0
- package/lib/Types/Message.js +57 -0
- package/lib/Types/Mex.js +56 -1
- package/lib/Types/MexUpdates.js +46 -0
- package/lib/Types/Newsletter.js +56 -0
- package/lib/Types/Product.js +25 -0
- package/lib/Types/RichType.js +23 -0
- package/lib/Types/Signal.js +25 -0
- package/lib/Types/Socket.js +25 -0
- package/lib/Types/State.js +92 -0
- package/lib/Types/USync.js +25 -0
- package/lib/Types/index.js +133 -0
- package/lib/Utils/auth-utils.js +703 -0
- package/lib/Utils/automation-tools.js +51 -16
- package/lib/Utils/baileys-event-stream.js +146 -0
- package/lib/Utils/browser-utils.js +95 -0
- package/lib/Utils/business.js +525 -0
- package/lib/Utils/chat-utils.js +1861 -0
- package/lib/Utils/companion-reg-client-utils.js +55 -1
- package/lib/Utils/crypto.js +355 -0
- package/lib/Utils/decode-wa-message.js +709 -0
- package/lib/Utils/event-buffer.js +1323 -8
- package/lib/Utils/generics.js +945 -1
- package/lib/Utils/history.js +266 -0
- package/lib/Utils/identity-change-handler.js +62 -1
- package/lib/Utils/index.js +114 -0
- package/lib/Utils/link-preview.js +179 -0
- package/lib/Utils/logger.js +42 -0
- package/lib/Utils/lt-hash.js +73 -0
- package/lib/Utils/make-mutex.js +104 -0
- package/lib/Utils/message-inspector.js +110 -0
- package/lib/Utils/message-retry-manager.js +507 -2
- package/lib/Utils/messages-media.js +1931 -1
- package/lib/Utils/messages.js +3748 -0
- package/lib/Utils/noise-handler.js +423 -0
- package/lib/Utils/offline-node-processor.js +53 -1
- package/lib/Utils/pre-key-manager.js +255 -1
- package/lib/Utils/process-message.js +1592 -0
- package/lib/Utils/reporting-utils.js +272 -1
- package/lib/Utils/rich-message-utils.js +377 -0
- package/lib/Utils/rich-messages.js +1 -1
- package/lib/Utils/signal.js +437 -0
- package/lib/Utils/stanza-ack.js +51 -1
- package/lib/Utils/status-refresh.js +37 -0
- package/lib/Utils/status-tools.js +4 -2
- package/lib/Utils/sync-action-utils.js +63 -1
- package/lib/Utils/tc-token-utils.js +185 -1
- package/lib/Utils/terminal-banner.js +31 -0
- package/lib/Utils/use-multi-file-auth-state.js +271 -0
- package/lib/Utils/use-single-file-auth-state.js +108 -0
- package/lib/Utils/use-sqlite-auth-state.js +142 -0
- package/lib/Utils/validate-connection.js +497 -1
- package/lib/Utils/view-once-compat.js +13 -5
- package/lib/VoIP/audio-feeder.js +150 -0
- package/lib/VoIP/index.js +289 -0
- package/lib/VoIP/relay-transport.js +608 -0
- package/lib/VoIP/signaling.js +583 -0
- package/lib/VoIP/types.js +30 -0
- package/lib/VoIP/wasm-engine.js +1261 -2
- package/lib/VoIP/worker-bootstrap.js +1090 -2
- package/lib/WABinary/constants.js +2805 -0
- package/lib/WABinary/decode.js +649 -2
- package/lib/WABinary/encode.js +564 -2
- package/lib/WABinary/generic-utils.js +401 -0
- package/lib/WABinary/index.js +82 -0
- package/lib/WABinary/jid-utils.js +290 -0
- package/lib/WABinary/types.js +25 -0
- package/lib/WAM/BinaryInfo.js +50 -0
- package/lib/WAM/constants.js +45747 -0
- package/lib/WAM/encode.js +393 -0
- package/lib/WAM/index.js +78 -0
- package/lib/WAUSync/Protocols/USyncBotProfileProtocol.js +135 -0
- package/lib/WAUSync/Protocols/USyncContactProtocol.js +110 -0
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +142 -0
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +85 -0
- package/lib/WAUSync/Protocols/USyncLIDProtocol.js +69 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js +107 -0
- package/lib/WAUSync/Protocols/USyncUsernameProtocol.js +38 -1
- package/lib/WAUSync/Protocols/index.js +83 -0
- package/lib/WAUSync/USyncQuery.js +241 -2
- package/lib/WAUSync/USyncUser.js +86 -0
- package/lib/WAUSync/index.js +78 -0
- package/lib/assets/wasm/loader.js +1875 -1
- package/lib/assets/wasm/worker-modules.js +11047 -1
- package/lib/index.d.ts +126 -0
- package/lib/index.js +53 -21
- package/lib/index.mjs +437 -0
- package/licenses/upstream-MIT.txt +22 -0
- package/maintenance/api-coverage.json +1642 -0
- package/maintenance/archivos-sha256.json +207 -0
- package/maintenance/consumer-validation.log +3 -0
- package/maintenance/dependency-audit.json +4 -4
- package/maintenance/extension-inventory.json +57 -0
- package/maintenance/protocol-update.json +1101 -0
- package/maintenance/protocol-wire-audit.json +4 -0
- package/maintenance/reference-socket-surface.json +209 -0
- package/maintenance/resumen-validacion.json +50 -0
- package/maintenance/validation.log +2725 -0
- package/maintenance/verification.json +566 -0
- package/package.json +107 -9
- package/scripts/check-imports.cjs +10 -0
- package/scripts/check-package.cjs +40 -0
- package/scripts/check-syntax.cjs +1 -1
- package/scripts/generate-protobuf.cjs +6 -1
- package/scripts/generate-public-types.cjs +9 -0
- package/scripts/kage-base64-fix.cjs +45 -0
- package/scripts/maintenance.cjs +10 -0
- package/test/advanced.test.cjs +24 -0
- package/test/base64-fix.test.cjs +49 -0
- package/test/maintenance.test.cjs +1 -1
- package/test/npm-publication.test.cjs +141 -0
- package/test/recepcion-reparada.test.cjs +98 -0
- package/test/resilience-binary.test.cjs +69 -0
- package/test/resilience-transport.test.cjs +34 -0
- package/test/types.test.ts +5 -0
- package/test/upgrade.test.cjs +104 -0
- package/tsconfig.json +20 -0
- package/WAProto/p.html +0 -1
- package/lib/KageExtra/Modded/message_builder.js +0 -2330
- package/lib/KageExtra/VoIP/audio-feeder.js +0 -136
- package/lib/KageExtra/VoIP/index.js +0 -282
- package/lib/KageExtra/VoIP/relay-transport.js +0 -559
- package/lib/KageExtra/VoIP/signaling.js +0 -603
- package/lib/KageExtra/VoIP/types.js +0 -17
- package/lib/KageExtra/VoIP/wasm-engine.js +0 -1214
- package/lib/KageExtra/VoIP/worker-bootstrap.js +0 -1042
- package/lib/KageExtra/assets/wasm/loader.js +0 -5
- package/lib/KageExtra/assets/wasm/whatsapp.wasm +0 -0
- package/lib/KageExtra/assets/wasm/worker-modules.js +0 -273
- package/lib/KageExtra/index.js +0 -3
- package/lib/KageExtra/package.json +0 -1
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +0 -53
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +0 -24
- package/maintenance/revision-full-check.txt +0 -1097
- package/maintenance/revision-library-tests.tap +0 -1088
- package/maintenance/revision-protobuf.txt +0 -5
- package/maintenance/revision-syntax.txt +0 -5
- package/maintenance/schema-coverage.json +0 -23
- package/maintenance/schema-merge.json +0 -30
- package/maintenance/validation-node20.txt +0 -191
- package/maintenance/validation-node22.txt +0 -237
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"sources": [
|
|
3
|
-
{
|
|
4
|
-
"name": "original",
|
|
5
|
-
"sha256": "4bab5324186daf8de5ab592548ee80dfc753651667fa9411e0666837f90e4c8d",
|
|
6
|
-
"messageTypes": 498,
|
|
7
|
-
"fields": 2424,
|
|
8
|
-
"enumValues": 1173
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"name": "extended",
|
|
12
|
-
"sha256": "a659fc30ce32ecd6e05406533bb3bb0b85bc869881db37014652d4a5a7f06415",
|
|
13
|
-
"messageTypes": 539,
|
|
14
|
-
"fields": 2695,
|
|
15
|
-
"enumValues": 1315
|
|
16
|
-
}
|
|
17
|
-
],
|
|
18
|
-
"exceptions": [
|
|
19
|
-
"Message.pollResultSnapshotMessageV3 tag 114 is retained as pollResultSnapshotMessageV3Legacy; tag 115 remains canonical",
|
|
20
|
-
"MessageHistoryMetadata.oldestMessageTimestamp is a runtime alias for oldestMessageTimestampInWindow, both using wire tag 2"
|
|
21
|
-
],
|
|
22
|
-
"errors": []
|
|
23
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"added": [
|
|
3
|
-
".proto.BotMetadata.avatarMetadata",
|
|
4
|
-
".proto.Message.AudioMessage.mediaKeyDomain",
|
|
5
|
-
".proto.Message.DocumentMessage.mediaKeyDomain",
|
|
6
|
-
".proto.Message.ImageMessage.mediaKeyDomain",
|
|
7
|
-
".proto.Message.MMSThumbnailMetadata.mediaKeyDomain",
|
|
8
|
-
".proto.Message.MediaKeyDomain",
|
|
9
|
-
".proto.Message.PaymentExtendedMetadata.messageParamsJson",
|
|
10
|
-
".proto.Message.StickerMessage.mediaKeyDomain",
|
|
11
|
-
".proto.Message.VideoMessage.mediaKeyDomain",
|
|
12
|
-
".proto.SyncActionValue.businessBroadcastAssociationAction"
|
|
13
|
-
],
|
|
14
|
-
"aliases": [
|
|
15
|
-
{
|
|
16
|
-
"type": ".proto.Message.MessageHistoryMetadata",
|
|
17
|
-
"old": "oldestMessageTimestamp",
|
|
18
|
-
"current": "oldestMessageTimestampInWindow",
|
|
19
|
-
"id": 2
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
"conflicts": [
|
|
23
|
-
{
|
|
24
|
-
"field": ".proto.Message.pollResultSnapshotMessageV3",
|
|
25
|
-
"canonical": 115,
|
|
26
|
-
"legacy": 114,
|
|
27
|
-
"legacyName": "pollResultSnapshotMessageV3Legacy"
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
}
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
TAP version 13
|
|
2
|
-
# Subtest: force flush resets buffering state and live events are not trapped
|
|
3
|
-
ok 1 - force flush resets buffering state and live events are not trapped
|
|
4
|
-
---
|
|
5
|
-
duration_ms: 2.016994
|
|
6
|
-
...
|
|
7
|
-
# Subtest: normal nested buffers still require matching releases
|
|
8
|
-
ok 2 - normal nested buffers still require matching releases
|
|
9
|
-
---
|
|
10
|
-
duration_ms: 0.183609
|
|
11
|
-
...
|
|
12
|
-
# Subtest: single canonical proto resolves every message, enum and wire identifier
|
|
13
|
-
ok 3 - single canonical proto resolves every message, enum and wire identifier
|
|
14
|
-
---
|
|
15
|
-
duration_ms: 179.168334
|
|
16
|
-
...
|
|
17
|
-
# Subtest: restored media, bot and sync fields survive serialization
|
|
18
|
-
ok 4 - restored media, bot and sync fields survive serialization
|
|
19
|
-
---
|
|
20
|
-
duration_ms: 8.350209
|
|
21
|
-
...
|
|
22
|
-
# Subtest: historical enum aliases and timestamp alias remain usable
|
|
23
|
-
ok 5 - historical enum aliases and timestamp alias remain usable
|
|
24
|
-
---
|
|
25
|
-
duration_ms: 1.278549
|
|
26
|
-
...
|
|
27
|
-
# Subtest: poll snapshot canonical and legacy tags decode independently
|
|
28
|
-
ok 6 - poll snapshot canonical and legacy tags decode independently
|
|
29
|
-
---
|
|
30
|
-
duration_ms: 0.523069
|
|
31
|
-
...
|
|
32
|
-
# Subtest: exact supplied event payload round trips including reminder and false flags
|
|
33
|
-
ok 7 - exact supplied event payload round trips including reminder and false flags
|
|
34
|
-
---
|
|
35
|
-
duration_ms: 5.989408
|
|
36
|
-
...
|
|
37
|
-
# Subtest: event secret is retained across retries and wrappers
|
|
38
|
-
ok 8 - event secret is retained across retries and wrappers
|
|
39
|
-
---
|
|
40
|
-
duration_ms: 0.716161
|
|
41
|
-
...
|
|
42
|
-
# Subtest: event secret supplied as base64 is normalized without replacement
|
|
43
|
-
ok 9 - event secret supplied as base64 is normalized without replacement
|
|
44
|
-
---
|
|
45
|
-
duration_ms: 0.559153
|
|
46
|
-
...
|
|
47
|
-
# Subtest: legacy event.messageSecret is moved out of EventMessage
|
|
48
|
-
ok 10 - legacy event.messageSecret is moved out of EventMessage
|
|
49
|
-
---
|
|
50
|
-
duration_ms: 0.24751
|
|
51
|
-
...
|
|
52
|
-
# Subtest: event validation rejects missing name
|
|
53
|
-
ok 11 - event validation rejects missing name
|
|
54
|
-
---
|
|
55
|
-
duration_ms: 0.337404
|
|
56
|
-
...
|
|
57
|
-
# Subtest: event validation rejects milliseconds
|
|
58
|
-
ok 12 - event validation rejects milliseconds
|
|
59
|
-
---
|
|
60
|
-
duration_ms: 0.608398
|
|
61
|
-
...
|
|
62
|
-
# Subtest: event validation rejects invalid latitude
|
|
63
|
-
ok 13 - event validation rejects invalid latitude
|
|
64
|
-
---
|
|
65
|
-
duration_ms: 0.14301
|
|
66
|
-
...
|
|
67
|
-
# Subtest: event validation rejects end before start
|
|
68
|
-
ok 14 - event validation rejects end before start
|
|
69
|
-
---
|
|
70
|
-
duration_ms: 0.123578
|
|
71
|
-
...
|
|
72
|
-
# Subtest: event validation rejects string boolean
|
|
73
|
-
ok 15 - event validation rejects string boolean
|
|
74
|
-
---
|
|
75
|
-
duration_ms: 0.166277
|
|
76
|
-
...
|
|
77
|
-
# Subtest: event validation rejects negative reminder
|
|
78
|
-
ok 16 - event validation rejects negative reminder
|
|
79
|
-
---
|
|
80
|
-
duration_ms: 0.167136
|
|
81
|
-
...
|
|
82
|
-
# Subtest: event validation rejects decimal timestamp
|
|
83
|
-
ok 17 - event validation rejects decimal timestamp
|
|
84
|
-
---
|
|
85
|
-
duration_ms: 0.103893
|
|
86
|
-
...
|
|
87
|
-
# Subtest: invalid event secret fails locally
|
|
88
|
-
ok 18 - invalid event secret fails locally
|
|
89
|
-
---
|
|
90
|
-
duration_ms: 0.813654
|
|
91
|
-
...
|
|
92
|
-
# Subtest: int64 strings and bigint convert without losing precision in toObject
|
|
93
|
-
ok 19 - int64 strings and bigint convert without losing precision in toObject
|
|
94
|
-
---
|
|
95
|
-
duration_ms: 1.64522
|
|
96
|
-
...
|
|
97
|
-
# Subtest: sendMessage content builder supports event shorthand and preserves mention context
|
|
98
|
-
ok 20 - sendMessage content builder supports event shorthand and preserves mention context
|
|
99
|
-
---
|
|
100
|
-
duration_ms: 1.422779
|
|
101
|
-
...
|
|
102
|
-
# Subtest: mention handling does not overwrite existing context fields
|
|
103
|
-
ok 21 - mention handling does not overwrite existing context fields
|
|
104
|
-
---
|
|
105
|
-
duration_ms: 0.837177
|
|
106
|
-
...
|
|
107
|
-
# Subtest: text, reaction, location, poll and revoke messages still serialize
|
|
108
|
-
ok 22 - text, reaction, location, poll and revoke messages still serialize
|
|
109
|
-
---
|
|
110
|
-
duration_ms: 3.396686
|
|
111
|
-
...
|
|
112
|
-
# Subtest: history skips malformed rows, selects newest message and does not mutate input
|
|
113
|
-
ok 23 - history skips malformed rows, selects newest message and does not mutate input
|
|
114
|
-
---
|
|
115
|
-
duration_ms: 0.504245
|
|
116
|
-
...
|
|
117
|
-
# Subtest: missing optional history arrays are accepted
|
|
118
|
-
ok 24 - missing optional history arrays are accepted
|
|
119
|
-
---
|
|
120
|
-
duration_ms: 0.142517
|
|
121
|
-
...
|
|
122
|
-
# Subtest: on-demand history is merged instead of discarded
|
|
123
|
-
ok 25 - on-demand history is merged instead of discarded
|
|
124
|
-
---
|
|
125
|
-
duration_ms: 1.994735
|
|
126
|
-
...
|
|
127
|
-
# Subtest: initial history does not erase already received live messages by default
|
|
128
|
-
ok 26 - initial history does not erase already received live messages by default
|
|
129
|
-
---
|
|
130
|
-
duration_ms: 0.467181
|
|
131
|
-
...
|
|
132
|
-
# Subtest: store snapshots preserve bytes and support serialized async atomic writes
|
|
133
|
-
ok 27 - store snapshots preserve bytes and support serialized async atomic writes
|
|
134
|
-
---
|
|
135
|
-
duration_ms: 45.719556
|
|
136
|
-
...
|
|
137
|
-
# Subtest: auth concurrent saves round trip credentials and Signal keys atomically
|
|
138
|
-
ok 28 - auth concurrent saves round trip credentials and Signal keys atomically
|
|
139
|
-
---
|
|
140
|
-
duration_ms: 48.025733
|
|
141
|
-
...
|
|
142
|
-
# Subtest: corrupt auth is surfaced instead of silently creating a new identity
|
|
143
|
-
ok 29 - corrupt auth is surfaced instead of silently creating a new identity
|
|
144
|
-
---
|
|
145
|
-
duration_ms: 2.578026
|
|
146
|
-
...
|
|
147
|
-
# Subtest: updated Jimp thumbnails and profile pictures work without native sharp
|
|
148
|
-
ok 30 - updated Jimp thumbnails and profile pictures work without native sharp
|
|
149
|
-
---
|
|
150
|
-
duration_ms: 289.625226
|
|
151
|
-
...
|
|
152
|
-
# /\\ /\\
|
|
153
|
-
# / \\____/ \\
|
|
154
|
-
# / \\
|
|
155
|
-
# | () () |
|
|
156
|
-
# \\ __ /
|
|
157
|
-
# /\\ \\__/ \\__/ /\\
|
|
158
|
-
# / \\__| KAGE |__/ \\
|
|
159
|
-
# / \\______/ \\
|
|
160
|
-
# / /\\ / \\ /\\ \\
|
|
161
|
-
# / \\_/ \\ / \\_/ \\
|
|
162
|
-
# / \\/\\/ \\
|
|
163
|
-
# >>> KAGE BAILEYS <<<
|
|
164
|
-
# La mejor baileys
|
|
165
|
-
# Botones | Carruseles | Albums | Newsletters | Meta AI | VoIP | Llamadas
|
|
166
|
-
# Creador: xrljosedv • Jose • 100% en Español
|
|
167
|
-
# Cliente no oficial; compatibilidad sujeta al protocolo de WhatsApp
|
|
168
|
-
# Subtest: updated music metadata parses generated PCM WAV
|
|
169
|
-
ok 31 - updated music metadata parses generated PCM WAV
|
|
170
|
-
---
|
|
171
|
-
duration_ms: 38.917654
|
|
172
|
-
...
|
|
173
|
-
# Subtest: queue module supports CommonJS and package exports load
|
|
174
|
-
ok 32 - queue module supports CommonJS and package exports load
|
|
175
|
-
---
|
|
176
|
-
duration_ms: 52.645728
|
|
177
|
-
...
|
|
178
|
-
# Subtest: relayMessage group pipeline encrypts the supplied event with reminder and secret
|
|
179
|
-
ok 33 - relayMessage group pipeline encrypts the supplied event with reminder and secret
|
|
180
|
-
---
|
|
181
|
-
duration_ms: 5.712102
|
|
182
|
-
...
|
|
183
|
-
1..33
|
|
184
|
-
# tests 33
|
|
185
|
-
# suites 0
|
|
186
|
-
# pass 33
|
|
187
|
-
# fail 0
|
|
188
|
-
# cancelled 0
|
|
189
|
-
# skipped 0
|
|
190
|
-
# todo 0
|
|
191
|
-
# duration_ms 1666.916523
|
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> kage-baileys@1.1.4 check
|
|
3
|
-
> npm run lint && npm test
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
> kage-baileys@1.1.4 lint
|
|
7
|
-
> node scripts/check-syntax.cjs
|
|
8
|
-
|
|
9
|
-
SYNTAX_OK: 141 JavaScript files
|
|
10
|
-
|
|
11
|
-
> kage-baileys@1.1.4 test
|
|
12
|
-
> node --test test/*.test.cjs
|
|
13
|
-
|
|
14
|
-
TAP version 13
|
|
15
|
-
# Subtest: force flush resets buffering state and live events are not trapped
|
|
16
|
-
ok 1 - force flush resets buffering state and live events are not trapped
|
|
17
|
-
---
|
|
18
|
-
duration_ms: 1.496316
|
|
19
|
-
type: 'test'
|
|
20
|
-
...
|
|
21
|
-
# Subtest: normal nested buffers still require matching releases
|
|
22
|
-
ok 2 - normal nested buffers still require matching releases
|
|
23
|
-
---
|
|
24
|
-
duration_ms: 0.19048
|
|
25
|
-
type: 'test'
|
|
26
|
-
...
|
|
27
|
-
# Subtest: single canonical proto resolves every message, enum and wire identifier
|
|
28
|
-
ok 3 - single canonical proto resolves every message, enum and wire identifier
|
|
29
|
-
---
|
|
30
|
-
duration_ms: 175.234199
|
|
31
|
-
type: 'test'
|
|
32
|
-
...
|
|
33
|
-
# Subtest: restored media, bot and sync fields survive serialization
|
|
34
|
-
ok 4 - restored media, bot and sync fields survive serialization
|
|
35
|
-
---
|
|
36
|
-
duration_ms: 10.470345
|
|
37
|
-
type: 'test'
|
|
38
|
-
...
|
|
39
|
-
# Subtest: historical enum aliases and timestamp alias remain usable
|
|
40
|
-
ok 5 - historical enum aliases and timestamp alias remain usable
|
|
41
|
-
---
|
|
42
|
-
duration_ms: 1.239919
|
|
43
|
-
type: 'test'
|
|
44
|
-
...
|
|
45
|
-
# Subtest: poll snapshot canonical and legacy tags decode independently
|
|
46
|
-
ok 6 - poll snapshot canonical and legacy tags decode independently
|
|
47
|
-
---
|
|
48
|
-
duration_ms: 0.56119
|
|
49
|
-
type: 'test'
|
|
50
|
-
...
|
|
51
|
-
# Subtest: exact supplied event payload round trips including reminder and false flags
|
|
52
|
-
ok 7 - exact supplied event payload round trips including reminder and false flags
|
|
53
|
-
---
|
|
54
|
-
duration_ms: 4.911194
|
|
55
|
-
type: 'test'
|
|
56
|
-
...
|
|
57
|
-
# Subtest: event secret is retained across retries and wrappers
|
|
58
|
-
ok 8 - event secret is retained across retries and wrappers
|
|
59
|
-
---
|
|
60
|
-
duration_ms: 0.759372
|
|
61
|
-
type: 'test'
|
|
62
|
-
...
|
|
63
|
-
# Subtest: event secret supplied as base64 is normalized without replacement
|
|
64
|
-
ok 9 - event secret supplied as base64 is normalized without replacement
|
|
65
|
-
---
|
|
66
|
-
duration_ms: 0.292285
|
|
67
|
-
type: 'test'
|
|
68
|
-
...
|
|
69
|
-
# Subtest: legacy event.messageSecret is moved out of EventMessage
|
|
70
|
-
ok 10 - legacy event.messageSecret is moved out of EventMessage
|
|
71
|
-
---
|
|
72
|
-
duration_ms: 0.291728
|
|
73
|
-
type: 'test'
|
|
74
|
-
...
|
|
75
|
-
# Subtest: event validation rejects missing name
|
|
76
|
-
ok 11 - event validation rejects missing name
|
|
77
|
-
---
|
|
78
|
-
duration_ms: 0.47102
|
|
79
|
-
type: 'test'
|
|
80
|
-
...
|
|
81
|
-
# Subtest: event validation rejects milliseconds
|
|
82
|
-
ok 12 - event validation rejects milliseconds
|
|
83
|
-
---
|
|
84
|
-
duration_ms: 0.431736
|
|
85
|
-
type: 'test'
|
|
86
|
-
...
|
|
87
|
-
# Subtest: event validation rejects invalid latitude
|
|
88
|
-
ok 13 - event validation rejects invalid latitude
|
|
89
|
-
---
|
|
90
|
-
duration_ms: 0.180807
|
|
91
|
-
type: 'test'
|
|
92
|
-
...
|
|
93
|
-
# Subtest: event validation rejects end before start
|
|
94
|
-
ok 14 - event validation rejects end before start
|
|
95
|
-
---
|
|
96
|
-
duration_ms: 0.10796
|
|
97
|
-
type: 'test'
|
|
98
|
-
...
|
|
99
|
-
# Subtest: event validation rejects string boolean
|
|
100
|
-
ok 15 - event validation rejects string boolean
|
|
101
|
-
---
|
|
102
|
-
duration_ms: 0.08228
|
|
103
|
-
type: 'test'
|
|
104
|
-
...
|
|
105
|
-
# Subtest: event validation rejects negative reminder
|
|
106
|
-
ok 16 - event validation rejects negative reminder
|
|
107
|
-
---
|
|
108
|
-
duration_ms: 0.080303
|
|
109
|
-
type: 'test'
|
|
110
|
-
...
|
|
111
|
-
# Subtest: event validation rejects decimal timestamp
|
|
112
|
-
ok 17 - event validation rejects decimal timestamp
|
|
113
|
-
---
|
|
114
|
-
duration_ms: 0.070752
|
|
115
|
-
type: 'test'
|
|
116
|
-
...
|
|
117
|
-
# Subtest: invalid event secret fails locally
|
|
118
|
-
ok 18 - invalid event secret fails locally
|
|
119
|
-
---
|
|
120
|
-
duration_ms: 0.422434
|
|
121
|
-
type: 'test'
|
|
122
|
-
...
|
|
123
|
-
# Subtest: int64 strings and bigint convert without losing precision in toObject
|
|
124
|
-
ok 19 - int64 strings and bigint convert without losing precision in toObject
|
|
125
|
-
---
|
|
126
|
-
duration_ms: 0.992695
|
|
127
|
-
type: 'test'
|
|
128
|
-
...
|
|
129
|
-
# Subtest: sendMessage content builder supports event shorthand and preserves mention context
|
|
130
|
-
ok 20 - sendMessage content builder supports event shorthand and preserves mention context
|
|
131
|
-
---
|
|
132
|
-
duration_ms: 1.621364
|
|
133
|
-
type: 'test'
|
|
134
|
-
...
|
|
135
|
-
# Subtest: mention handling does not overwrite existing context fields
|
|
136
|
-
ok 21 - mention handling does not overwrite existing context fields
|
|
137
|
-
---
|
|
138
|
-
duration_ms: 0.686804
|
|
139
|
-
type: 'test'
|
|
140
|
-
...
|
|
141
|
-
# Subtest: text, reaction, location, poll and revoke messages still serialize
|
|
142
|
-
ok 22 - text, reaction, location, poll and revoke messages still serialize
|
|
143
|
-
---
|
|
144
|
-
duration_ms: 4.148587
|
|
145
|
-
type: 'test'
|
|
146
|
-
...
|
|
147
|
-
# Subtest: history skips malformed rows, selects newest message and does not mutate input
|
|
148
|
-
ok 23 - history skips malformed rows, selects newest message and does not mutate input
|
|
149
|
-
---
|
|
150
|
-
duration_ms: 0.412592
|
|
151
|
-
type: 'test'
|
|
152
|
-
...
|
|
153
|
-
# Subtest: missing optional history arrays are accepted
|
|
154
|
-
ok 24 - missing optional history arrays are accepted
|
|
155
|
-
---
|
|
156
|
-
duration_ms: 0.118764
|
|
157
|
-
type: 'test'
|
|
158
|
-
...
|
|
159
|
-
# Subtest: on-demand history is merged instead of discarded
|
|
160
|
-
ok 25 - on-demand history is merged instead of discarded
|
|
161
|
-
---
|
|
162
|
-
duration_ms: 2.076943
|
|
163
|
-
type: 'test'
|
|
164
|
-
...
|
|
165
|
-
# Subtest: initial history does not erase already received live messages by default
|
|
166
|
-
ok 26 - initial history does not erase already received live messages by default
|
|
167
|
-
---
|
|
168
|
-
duration_ms: 0.470341
|
|
169
|
-
type: 'test'
|
|
170
|
-
...
|
|
171
|
-
# Subtest: store snapshots preserve bytes and support serialized async atomic writes
|
|
172
|
-
ok 27 - store snapshots preserve bytes and support serialized async atomic writes
|
|
173
|
-
---
|
|
174
|
-
duration_ms: 25.493055
|
|
175
|
-
type: 'test'
|
|
176
|
-
...
|
|
177
|
-
# Subtest: auth concurrent saves round trip credentials and Signal keys atomically
|
|
178
|
-
ok 28 - auth concurrent saves round trip credentials and Signal keys atomically
|
|
179
|
-
---
|
|
180
|
-
duration_ms: 56.876142
|
|
181
|
-
type: 'test'
|
|
182
|
-
...
|
|
183
|
-
# /\\ /\\
|
|
184
|
-
# / \\____/ \\
|
|
185
|
-
# / \\
|
|
186
|
-
# | () () |
|
|
187
|
-
# \\ __ /
|
|
188
|
-
# /\\ \\__/ \\__/ /\\
|
|
189
|
-
# / \\__| KAGE |__/ \\
|
|
190
|
-
# / \\______/ \\
|
|
191
|
-
# / /\\ / \\ /\\ \\
|
|
192
|
-
# / \\_/ \\ / \\_/ \\
|
|
193
|
-
# / \\/\\/ \\
|
|
194
|
-
# >>> KAGE BAILEYS <<<
|
|
195
|
-
# La mejor baileys
|
|
196
|
-
# Botones | Carruseles | Albums | Newsletters | Meta AI | VoIP | Llamadas
|
|
197
|
-
# Creador: xrljosedv • Jose • 100% en Español
|
|
198
|
-
# Cliente no oficial; compatibilidad sujeta al protocolo de WhatsApp
|
|
199
|
-
# Subtest: corrupt auth is surfaced instead of silently creating a new identity
|
|
200
|
-
ok 29 - corrupt auth is surfaced instead of silently creating a new identity
|
|
201
|
-
---
|
|
202
|
-
duration_ms: 1.695313
|
|
203
|
-
type: 'test'
|
|
204
|
-
...
|
|
205
|
-
# Subtest: updated Jimp thumbnails and profile pictures work without native sharp
|
|
206
|
-
ok 30 - updated Jimp thumbnails and profile pictures work without native sharp
|
|
207
|
-
---
|
|
208
|
-
duration_ms: 243.173141
|
|
209
|
-
type: 'test'
|
|
210
|
-
...
|
|
211
|
-
# Subtest: updated music metadata parses generated PCM WAV
|
|
212
|
-
ok 31 - updated music metadata parses generated PCM WAV
|
|
213
|
-
---
|
|
214
|
-
duration_ms: 28.091622
|
|
215
|
-
type: 'test'
|
|
216
|
-
...
|
|
217
|
-
# Subtest: queue module supports CommonJS and package exports load
|
|
218
|
-
ok 32 - queue module supports CommonJS and package exports load
|
|
219
|
-
---
|
|
220
|
-
duration_ms: 235.81938
|
|
221
|
-
type: 'test'
|
|
222
|
-
...
|
|
223
|
-
# Subtest: relayMessage group pipeline encrypts the supplied event with reminder and secret
|
|
224
|
-
ok 33 - relayMessage group pipeline encrypts the supplied event with reminder and secret
|
|
225
|
-
---
|
|
226
|
-
duration_ms: 4.892056
|
|
227
|
-
type: 'test'
|
|
228
|
-
...
|
|
229
|
-
1..33
|
|
230
|
-
# tests 33
|
|
231
|
-
# suites 0
|
|
232
|
-
# pass 33
|
|
233
|
-
# fail 0
|
|
234
|
-
# cancelled 0
|
|
235
|
-
# skipped 0
|
|
236
|
-
# todo 0
|
|
237
|
-
# duration_ms 1844.804907
|