@neelegirl/baileys 1.5.6 → 1.5.7
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 +21 -27
- package/WAProto/WAProto.proto +665 -291
- package/WAProto/index.d.ts +48037 -2294
- package/WAProto/index.js +139804 -45203
- package/lib/Defaults/baileys-version.json +3 -0
- package/lib/Defaults/index.d.ts +64 -58
- package/lib/Defaults/index.js +96 -74
- package/lib/Defaults/phonenumber-mcc.json +223 -0
- package/lib/Signal/WASignalGroup/GroupProtocol.js +1909 -0
- package/lib/Signal/WASignalGroup/ciphertext_message.js +16 -0
- package/lib/Signal/WASignalGroup/generate-proto.sh +1 -0
- package/lib/Signal/WASignalGroup/group.proto +42 -0
- package/lib/Signal/WASignalGroup/group_cipher.js +120 -0
- package/lib/Signal/WASignalGroup/group_session_builder.js +46 -0
- package/lib/Signal/WASignalGroup/index.js +6 -0
- package/lib/Signal/WASignalGroup/keyhelper.js +21 -0
- package/lib/Signal/WASignalGroup/protobufs.js +3 -0
- package/lib/Signal/WASignalGroup/queue_job.js +69 -0
- package/lib/Signal/WASignalGroup/readme.md +6 -0
- package/lib/Signal/WASignalGroup/sender_chain_key.js +50 -0
- package/lib/Signal/WASignalGroup/sender_key_distribution_message.js +78 -0
- package/lib/Signal/WASignalGroup/sender_key_message.js +92 -0
- package/lib/Signal/WASignalGroup/sender_key_name.js +70 -0
- package/lib/Signal/WASignalGroup/sender_key_record.js +56 -0
- package/lib/Signal/WASignalGroup/sender_key_state.js +129 -0
- package/lib/Signal/{Group/sender-message-key.js → WASignalGroup/sender_message_key.js} +16 -3
- package/lib/Signal/libsignal.d.ts +4 -5
- package/lib/Signal/libsignal.js +112 -292
- package/lib/Socket/Client/abstract-socket-client.d.ts +15 -0
- package/lib/Socket/Client/abstract-socket-client.js +13 -0
- package/lib/Socket/Client/index.d.ts +2 -3
- package/lib/Socket/Client/index.js +22 -3
- package/lib/Socket/Client/mobile-socket-client.d.ts +12 -0
- package/lib/Socket/Client/mobile-socket-client.js +65 -0
- package/lib/Socket/Client/types.d.ts +15 -15
- package/lib/Socket/Client/types.js +15 -8
- package/lib/Socket/Client/websocket.d.ts +12 -12
- package/lib/Socket/Client/websocket.js +36 -24
- package/lib/Socket/business.d.ts +177 -178
- package/lib/Socket/business.js +71 -179
- package/lib/Socket/chats.d.ts +93 -93
- package/lib/Socket/chats.js +625 -474
- package/lib/Socket/communities.d.ts +62 -83
- package/lib/Socket/communities.js +414 -412
- package/lib/Socket/groups.d.ts +112 -118
- package/lib/Socket/groups.js +171 -146
- package/lib/Socket/index.d.ts +182 -222
- package/lib/Socket/index.js +17 -12
- package/lib/Socket/messages-recv.d.ts +169 -165
- package/lib/Socket/messages-recv.js +1721 -1185
- package/lib/Socket/messages-send.d.ts +160 -161
- package/lib/Socket/messages-send.js +992 -642
- package/lib/Socket/mex.d.ts +0 -1
- package/lib/Socket/mex.js +9 -4
- package/lib/Socket/newsletter.d.ts +139 -139
- package/lib/Socket/newsletter.js +258 -153
- package/lib/Socket/registration.d.ts +266 -0
- package/lib/Socket/registration.js +166 -0
- package/lib/Socket/socket.d.ts +36 -42
- package/lib/Socket/socket.js +525 -623
- package/lib/Socket/usync.d.ts +37 -0
- package/lib/Socket/usync.js +83 -0
- package/lib/Store/index.d.ts +4 -0
- package/lib/Store/index.js +24 -0
- package/lib/Store/make-cache-manager-store.d.ts +14 -0
- package/lib/Store/make-cache-manager-store.js +90 -0
- package/lib/Store/make-in-memory-store.d.ts +123 -0
- package/lib/Store/make-in-memory-store.js +429 -0
- package/lib/Store/make-ordered-dictionary.d.ts +12 -0
- package/lib/Store/make-ordered-dictionary.js +86 -0
- package/lib/Store/object-repository.d.ts +10 -0
- package/lib/Store/object-repository.js +31 -0
- package/lib/Types/Auth.d.ts +96 -87
- package/lib/Types/Auth.js +3 -2
- package/lib/Types/Call.d.ts +13 -13
- package/lib/Types/Call.js +3 -2
- package/lib/Types/Chat.d.ts +94 -79
- package/lib/Types/Chat.js +9 -8
- package/lib/Types/Contact.d.ts +9 -13
- package/lib/Types/Contact.js +3 -2
- package/lib/Types/Events.d.ts +179 -152
- package/lib/Types/Events.js +3 -2
- package/lib/Types/GroupMetadata.d.ts +48 -49
- package/lib/Types/GroupMetadata.js +3 -2
- package/lib/Types/Label.d.ts +14 -13
- package/lib/Types/Label.js +30 -24
- package/lib/Types/LabelAssociation.d.ts +20 -15
- package/lib/Types/LabelAssociation.js +12 -6
- package/lib/Types/Message.d.ts +404 -234
- package/lib/Types/Message.js +13 -11
- package/lib/Types/MexUpdates.d.ts +9 -0
- package/lib/Types/MexUpdates.js +18 -0
- package/lib/Types/Newsletter.d.ts +104 -130
- package/lib/Types/Newsletter.js +40 -31
- package/lib/Types/Product.d.ts +71 -58
- package/lib/Types/Product.js +3 -2
- package/lib/Types/Signal.d.ts +55 -63
- package/lib/Types/Signal.js +3 -2
- package/lib/Types/Socket.d.ts +66 -77
- package/lib/Types/Socket.js +3 -3
- package/lib/Types/State.d.ts +19 -17
- package/lib/Types/State.js +14 -13
- package/lib/Types/USync.d.ts +8 -8
- package/lib/Types/USync.js +3 -2
- package/lib/Types/index.d.ts +61 -47
- package/lib/Types/index.js +48 -26
- package/lib/Utils/auth-utils.d.ts +10 -8
- package/lib/Utils/auth-utils.js +154 -206
- package/lib/Utils/baileys-event-stream.d.ts +7 -6
- package/lib/Utils/baileys-event-stream.js +43 -29
- package/lib/Utils/business.d.ts +20 -14
- package/lib/Utils/business.js +134 -110
- package/lib/Utils/chat-utils.d.ts +69 -57
- package/lib/Utils/chat-utils.js +380 -362
- package/lib/Utils/check-npm-version.d.ts +15 -0
- package/lib/Utils/check-npm-version.js +52 -0
- package/lib/Utils/crypto.d.ts +45 -30
- package/lib/Utils/crypto.js +178 -141
- package/lib/Utils/decode-wa-message.d.ts +35 -42
- package/lib/Utils/decode-wa-message.js +150 -176
- package/lib/Utils/event-buffer.d.ts +17 -12
- package/lib/Utils/event-buffer.js +286 -269
- package/lib/Utils/generics.d.ts +99 -60
- package/lib/Utils/generics.js +481 -244
- package/lib/Utils/history.d.ts +22 -18
- package/lib/Utils/history.js +80 -54
- package/lib/Utils/index.d.ts +19 -20
- package/lib/Utils/index.js +41 -19
- package/lib/Utils/link-preview.d.ts +14 -12
- package/lib/Utils/link-preview.js +75 -40
- package/lib/Utils/logger.d.ts +11 -10
- package/lib/Utils/logger.js +7 -3
- package/lib/Utils/lt-hash.d.ts +13 -12
- package/lib/Utils/lt-hash.js +37 -27
- package/lib/Utils/make-mutex.d.ts +7 -6
- package/lib/Utils/make-mutex.js +29 -20
- package/lib/Utils/message-retry-manager.d.ts +6 -6
- package/lib/Utils/message-retry-manager.js +36 -8
- package/lib/Utils/messages-media.d.ts +102 -87
- package/lib/Utils/messages-media.js +570 -427
- package/lib/Utils/messages.d.ts +64 -37
- package/lib/Utils/messages.js +1270 -511
- package/lib/Utils/noise-handler.d.ts +18 -18
- package/lib/Utils/noise-handler.js +109 -101
- package/lib/Utils/process-message.d.ts +32 -25
- package/lib/Utils/process-message.js +281 -266
- package/lib/Utils/signal.d.ts +32 -24
- package/lib/Utils/signal.js +105 -98
- package/lib/Utils/use-mongo-file-auth-state.d.ts +6 -0
- package/lib/Utils/use-mongo-file-auth-state.js +84 -0
- package/lib/Utils/use-multi-file-auth-state.d.ts +10 -5
- package/lib/Utils/use-multi-file-auth-state.js +186 -69
- package/lib/Utils/use-single-file-auth-state.d.ts +13 -0
- package/lib/Utils/use-single-file-auth-state.js +80 -0
- package/lib/Utils/validate-connection.d.ts +13 -11
- package/lib/Utils/validate-connection.js +116 -124
- package/lib/WABinary/constants.d.ts +27 -25
- package/lib/WABinary/constants.js +1292 -1277
- package/lib/WABinary/decode.d.ts +9 -7
- package/lib/WABinary/decode.js +189 -139
- package/lib/WABinary/encode.d.ts +3 -3
- package/lib/WABinary/encode.js +154 -105
- package/lib/WABinary/generic-utils.d.ts +27 -14
- package/lib/WABinary/generic-utils.js +102 -62
- package/lib/WABinary/index.d.ts +5 -6
- package/lib/WABinary/index.js +25 -6
- package/lib/WABinary/jid-utils.d.ts +46 -41
- package/lib/WABinary/jid-utils.js +80 -84
- package/lib/WABinary/types.d.ts +13 -10
- package/lib/WABinary/types.js +3 -2
- package/lib/WAM/BinaryInfo.d.ts +15 -8
- package/lib/WAM/BinaryInfo.js +14 -7
- package/lib/WAM/constants.d.ts +37 -30
- package/lib/WAM/constants.js +11983 -19465
- package/lib/WAM/encode.d.ts +3 -3
- package/lib/WAM/encode.js +110 -95
- package/lib/WAM/index.d.ts +3 -4
- package/lib/WAM/index.js +23 -4
- package/lib/WAUSync/Protocols/USyncBotProfileProtocol.d.ts +28 -0
- package/lib/WAUSync/Protocols/USyncBotProfileProtocol.js +69 -0
- package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +9 -9
- package/lib/WAUSync/Protocols/USyncContactProtocol.js +19 -12
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +22 -19
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +26 -18
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +12 -11
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +20 -12
- package/lib/WAUSync/Protocols/USyncLIDProtocol.d.ts +9 -0
- package/lib/WAUSync/Protocols/USyncLIDProtocol.js +30 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +12 -11
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js +24 -16
- package/lib/WAUSync/Protocols/index.d.ts +6 -5
- package/lib/WAUSync/Protocols/index.js +26 -5
- package/lib/WAUSync/USyncQuery.d.ts +28 -26
- package/lib/WAUSync/USyncQuery.js +62 -64
- package/lib/WAUSync/USyncUser.d.ts +10 -11
- package/lib/WAUSync/USyncUser.js +19 -12
- package/lib/WAUSync/index.d.ts +3 -4
- package/lib/WAUSync/index.js +23 -4
- package/lib/index.d.ts +11 -10
- package/lib/index.js +33 -11
- package/package.json +43 -48
- package/WAProto/GenerateStatics.sh +0 -3
- package/WAProto/fix-imports.js +0 -29
- package/engine-requirements.js +0 -10
- package/lib/Defaults/index.d.ts.map +0 -1
- package/lib/Defaults/index.js.map +0 -1
- package/lib/Signal/Group/ciphertext-message.d.ts +0 -10
- package/lib/Signal/Group/ciphertext-message.d.ts.map +0 -1
- package/lib/Signal/Group/ciphertext-message.js +0 -12
- package/lib/Signal/Group/ciphertext-message.js.map +0 -1
- package/lib/Signal/Group/group-session-builder.d.ts +0 -15
- package/lib/Signal/Group/group-session-builder.d.ts.map +0 -1
- package/lib/Signal/Group/group-session-builder.js +0 -30
- package/lib/Signal/Group/group-session-builder.js.map +0 -1
- package/lib/Signal/Group/group_cipher.d.ts +0 -17
- package/lib/Signal/Group/group_cipher.d.ts.map +0 -1
- package/lib/Signal/Group/group_cipher.js +0 -82
- package/lib/Signal/Group/group_cipher.js.map +0 -1
- package/lib/Signal/Group/index.d.ts +0 -12
- package/lib/Signal/Group/index.d.ts.map +0 -1
- package/lib/Signal/Group/index.js +0 -12
- package/lib/Signal/Group/index.js.map +0 -1
- package/lib/Signal/Group/keyhelper.d.ts +0 -11
- package/lib/Signal/Group/keyhelper.d.ts.map +0 -1
- package/lib/Signal/Group/keyhelper.js +0 -18
- package/lib/Signal/Group/keyhelper.js.map +0 -1
- package/lib/Signal/Group/sender-chain-key.d.ts +0 -14
- package/lib/Signal/Group/sender-chain-key.d.ts.map +0 -1
- package/lib/Signal/Group/sender-chain-key.js +0 -26
- package/lib/Signal/Group/sender-chain-key.js.map +0 -1
- package/lib/Signal/Group/sender-key-distribution-message.d.ts +0 -17
- package/lib/Signal/Group/sender-key-distribution-message.d.ts.map +0 -1
- package/lib/Signal/Group/sender-key-distribution-message.js +0 -63
- package/lib/Signal/Group/sender-key-distribution-message.js.map +0 -1
- package/lib/Signal/Group/sender-key-message.d.ts +0 -19
- package/lib/Signal/Group/sender-key-message.d.ts.map +0 -1
- package/lib/Signal/Group/sender-key-message.js +0 -66
- package/lib/Signal/Group/sender-key-message.js.map +0 -1
- package/lib/Signal/Group/sender-key-name.d.ts +0 -18
- package/lib/Signal/Group/sender-key-name.d.ts.map +0 -1
- package/lib/Signal/Group/sender-key-name.js +0 -48
- package/lib/Signal/Group/sender-key-name.js.map +0 -1
- package/lib/Signal/Group/sender-key-record.d.ts +0 -31
- package/lib/Signal/Group/sender-key-record.d.ts.map +0 -1
- package/lib/Signal/Group/sender-key-record.js +0 -41
- package/lib/Signal/Group/sender-key-record.js.map +0 -1
- package/lib/Signal/Group/sender-key-state.d.ts +0 -39
- package/lib/Signal/Group/sender-key-state.d.ts.map +0 -1
- package/lib/Signal/Group/sender-key-state.js +0 -84
- package/lib/Signal/Group/sender-key-state.js.map +0 -1
- package/lib/Signal/Group/sender-message-key.d.ts +0 -12
- package/lib/Signal/Group/sender-message-key.d.ts.map +0 -1
- package/lib/Signal/Group/sender-message-key.js.map +0 -1
- package/lib/Signal/libsignal.d.ts.map +0 -1
- package/lib/Signal/libsignal.js.map +0 -1
- package/lib/Signal/lid-mapping.d.ts +0 -23
- package/lib/Signal/lid-mapping.d.ts.map +0 -1
- package/lib/Signal/lid-mapping.js +0 -171
- package/lib/Signal/lid-mapping.js.map +0 -1
- package/lib/Socket/Client/index.d.ts.map +0 -1
- package/lib/Socket/Client/index.js.map +0 -1
- package/lib/Socket/Client/types.d.ts.map +0 -1
- package/lib/Socket/Client/types.js.map +0 -1
- package/lib/Socket/Client/websocket.d.ts.map +0 -1
- package/lib/Socket/Client/websocket.js.map +0 -1
- package/lib/Socket/business.d.ts.map +0 -1
- package/lib/Socket/business.js.map +0 -1
- package/lib/Socket/chats.d.ts.map +0 -1
- package/lib/Socket/chats.js.map +0 -1
- package/lib/Socket/communities.d.ts.map +0 -1
- package/lib/Socket/communities.js.map +0 -1
- package/lib/Socket/groups.d.ts.map +0 -1
- package/lib/Socket/groups.js.map +0 -1
- package/lib/Socket/index.d.ts.map +0 -1
- package/lib/Socket/index.js.map +0 -1
- package/lib/Socket/messages-recv.d.ts.map +0 -1
- package/lib/Socket/messages-recv.js.map +0 -1
- package/lib/Socket/messages-send.d.ts.map +0 -1
- package/lib/Socket/messages-send.js.map +0 -1
- package/lib/Socket/mex.d.ts.map +0 -1
- package/lib/Socket/mex.js.map +0 -1
- package/lib/Socket/newsletter.d.ts.map +0 -1
- package/lib/Socket/newsletter.js.map +0 -1
- package/lib/Socket/socket.d.ts.map +0 -1
- package/lib/Socket/socket.js.map +0 -1
- package/lib/Types/Auth.d.ts.map +0 -1
- package/lib/Types/Auth.js.map +0 -1
- package/lib/Types/Bussines.d.ts +0 -25
- package/lib/Types/Bussines.d.ts.map +0 -1
- package/lib/Types/Bussines.js +0 -2
- package/lib/Types/Bussines.js.map +0 -1
- package/lib/Types/Call.d.ts.map +0 -1
- package/lib/Types/Call.js.map +0 -1
- package/lib/Types/Chat.d.ts.map +0 -1
- package/lib/Types/Chat.js.map +0 -1
- package/lib/Types/Contact.d.ts.map +0 -1
- package/lib/Types/Contact.js.map +0 -1
- package/lib/Types/Events.d.ts.map +0 -1
- package/lib/Types/Events.js.map +0 -1
- package/lib/Types/GroupMetadata.d.ts.map +0 -1
- package/lib/Types/GroupMetadata.js.map +0 -1
- package/lib/Types/Label.d.ts.map +0 -1
- package/lib/Types/Label.js.map +0 -1
- package/lib/Types/LabelAssociation.d.ts.map +0 -1
- package/lib/Types/LabelAssociation.js.map +0 -1
- package/lib/Types/Message.d.ts.map +0 -1
- package/lib/Types/Message.js.map +0 -1
- package/lib/Types/Newsletter.d.ts.map +0 -1
- package/lib/Types/Newsletter.js.map +0 -1
- package/lib/Types/Product.d.ts.map +0 -1
- package/lib/Types/Product.js.map +0 -1
- package/lib/Types/Signal.d.ts.map +0 -1
- package/lib/Types/Signal.js.map +0 -1
- package/lib/Types/Socket.d.ts.map +0 -1
- package/lib/Types/Socket.js.map +0 -1
- package/lib/Types/State.d.ts.map +0 -1
- package/lib/Types/State.js.map +0 -1
- package/lib/Types/USync.d.ts.map +0 -1
- package/lib/Types/USync.js.map +0 -1
- package/lib/Types/index.d.ts.map +0 -1
- package/lib/Types/index.js.map +0 -1
- package/lib/Utils/auth-utils.d.ts.map +0 -1
- package/lib/Utils/auth-utils.js.map +0 -1
- package/lib/Utils/baileys-event-stream.d.ts.map +0 -1
- package/lib/Utils/baileys-event-stream.js.map +0 -1
- package/lib/Utils/browser-utils.d.ts +0 -4
- package/lib/Utils/browser-utils.d.ts.map +0 -1
- package/lib/Utils/browser-utils.js +0 -28
- package/lib/Utils/browser-utils.js.map +0 -1
- package/lib/Utils/business.d.ts.map +0 -1
- package/lib/Utils/business.js.map +0 -1
- package/lib/Utils/chat-utils.d.ts.map +0 -1
- package/lib/Utils/chat-utils.js.map +0 -1
- package/lib/Utils/crypto.d.ts.map +0 -1
- package/lib/Utils/crypto.js.map +0 -1
- package/lib/Utils/decode-wa-message.d.ts.map +0 -1
- package/lib/Utils/decode-wa-message.js.map +0 -1
- package/lib/Utils/event-buffer.d.ts.map +0 -1
- package/lib/Utils/event-buffer.js.map +0 -1
- package/lib/Utils/generics.d.ts.map +0 -1
- package/lib/Utils/generics.js.map +0 -1
- package/lib/Utils/history.d.ts.map +0 -1
- package/lib/Utils/history.js.map +0 -1
- package/lib/Utils/index.d.ts.map +0 -1
- package/lib/Utils/index.js.map +0 -1
- package/lib/Utils/link-preview.d.ts.map +0 -1
- package/lib/Utils/link-preview.js.map +0 -1
- package/lib/Utils/logger.d.ts.map +0 -1
- package/lib/Utils/logger.js.map +0 -1
- package/lib/Utils/lt-hash.d.ts.map +0 -1
- package/lib/Utils/lt-hash.js.map +0 -1
- package/lib/Utils/make-mutex.d.ts.map +0 -1
- package/lib/Utils/make-mutex.js.map +0 -1
- package/lib/Utils/message-retry-manager.d.ts.map +0 -1
- package/lib/Utils/message-retry-manager.js.map +0 -1
- package/lib/Utils/messages-media.d.ts.map +0 -1
- package/lib/Utils/messages-media.js.map +0 -1
- package/lib/Utils/messages.d.ts.map +0 -1
- package/lib/Utils/messages.js.map +0 -1
- package/lib/Utils/noise-handler.d.ts.map +0 -1
- package/lib/Utils/noise-handler.js.map +0 -1
- package/lib/Utils/pre-key-manager.d.ts +0 -28
- package/lib/Utils/pre-key-manager.d.ts.map +0 -1
- package/lib/Utils/pre-key-manager.js +0 -106
- package/lib/Utils/pre-key-manager.js.map +0 -1
- package/lib/Utils/process-message.d.ts.map +0 -1
- package/lib/Utils/process-message.js.map +0 -1
- package/lib/Utils/signal.d.ts.map +0 -1
- package/lib/Utils/signal.js.map +0 -1
- package/lib/Utils/use-multi-file-auth-state.d.ts.map +0 -1
- package/lib/Utils/use-multi-file-auth-state.js.map +0 -1
- package/lib/Utils/validate-connection.d.ts.map +0 -1
- package/lib/Utils/validate-connection.js.map +0 -1
- package/lib/WABinary/constants.d.ts.map +0 -1
- package/lib/WABinary/constants.js.map +0 -1
- package/lib/WABinary/decode.d.ts.map +0 -1
- package/lib/WABinary/decode.js.map +0 -1
- package/lib/WABinary/encode.d.ts.map +0 -1
- package/lib/WABinary/encode.js.map +0 -1
- package/lib/WABinary/generic-utils.d.ts.map +0 -1
- package/lib/WABinary/generic-utils.js.map +0 -1
- package/lib/WABinary/index.d.ts.map +0 -1
- package/lib/WABinary/index.js.map +0 -1
- package/lib/WABinary/jid-utils.d.ts.map +0 -1
- package/lib/WABinary/jid-utils.js.map +0 -1
- package/lib/WABinary/types.d.ts.map +0 -1
- package/lib/WABinary/types.js.map +0 -1
- package/lib/WAM/BinaryInfo.d.ts.map +0 -1
- package/lib/WAM/BinaryInfo.js.map +0 -1
- package/lib/WAM/constants.d.ts.map +0 -1
- package/lib/WAM/constants.js.map +0 -1
- package/lib/WAM/encode.d.ts.map +0 -1
- package/lib/WAM/encode.js.map +0 -1
- package/lib/WAM/index.d.ts.map +0 -1
- package/lib/WAM/index.js.map +0 -1
- package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts.map +0 -1
- package/lib/WAUSync/Protocols/USyncContactProtocol.js.map +0 -1
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts.map +0 -1
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.js.map +0 -1
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts.map +0 -1
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js.map +0 -1
- package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts.map +0 -1
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js.map +0 -1
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +0 -26
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts.map +0 -1
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +0 -51
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js.map +0 -1
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +0 -10
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts.map +0 -1
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +0 -29
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.js.map +0 -1
- package/lib/WAUSync/Protocols/index.d.ts.map +0 -1
- package/lib/WAUSync/Protocols/index.js.map +0 -1
- package/lib/WAUSync/USyncQuery.d.ts.map +0 -1
- package/lib/WAUSync/USyncQuery.js.map +0 -1
- package/lib/WAUSync/USyncUser.d.ts.map +0 -1
- package/lib/WAUSync/USyncUser.js.map +0 -1
- package/lib/WAUSync/index.d.ts.map +0 -1
- package/lib/WAUSync/index.js.map +0 -1
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js.map +0 -1
package/lib/Types/Auth.d.ts
CHANGED
|
@@ -1,111 +1,120 @@
|
|
|
1
|
-
import type { proto } from '../../WAProto
|
|
2
|
-
import type { Contact } from './Contact
|
|
3
|
-
import type { MinimalMessage } from './Message
|
|
1
|
+
import type { proto } from '../../WAProto'
|
|
2
|
+
import type { Contact } from './Contact'
|
|
3
|
+
import type { MinimalMessage } from './Message'
|
|
4
|
+
|
|
4
5
|
export type KeyPair = {
|
|
5
|
-
public: Uint8Array
|
|
6
|
-
private: Uint8Array
|
|
7
|
-
}
|
|
6
|
+
public: Uint8Array
|
|
7
|
+
private: Uint8Array
|
|
8
|
+
}
|
|
9
|
+
|
|
8
10
|
export type SignedKeyPair = {
|
|
9
|
-
keyPair: KeyPair
|
|
10
|
-
signature: Uint8Array
|
|
11
|
-
keyId: number
|
|
12
|
-
timestampS?: number
|
|
13
|
-
}
|
|
11
|
+
keyPair: KeyPair
|
|
12
|
+
signature: Uint8Array
|
|
13
|
+
keyId: number
|
|
14
|
+
timestampS?: number
|
|
15
|
+
}
|
|
16
|
+
|
|
14
17
|
export type ProtocolAddress = {
|
|
15
|
-
name: string
|
|
16
|
-
deviceId: number
|
|
17
|
-
}
|
|
18
|
+
name: string
|
|
19
|
+
deviceId: number
|
|
20
|
+
}
|
|
21
|
+
|
|
18
22
|
export type SignalIdentity = {
|
|
19
|
-
identifier: ProtocolAddress
|
|
20
|
-
identifierKey: Uint8Array
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
pn: string;
|
|
24
|
-
lid: string;
|
|
25
|
-
};
|
|
23
|
+
identifier: ProtocolAddress
|
|
24
|
+
identifierKey: Uint8Array
|
|
25
|
+
}
|
|
26
|
+
|
|
26
27
|
export type LTHashState = {
|
|
27
|
-
version: number
|
|
28
|
-
hash: Buffer
|
|
28
|
+
version: number
|
|
29
|
+
hash: Buffer
|
|
29
30
|
indexValueMap: {
|
|
30
31
|
[indexMacBase64: string]: {
|
|
31
|
-
valueMac: Uint8Array | Buffer
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
32
|
+
valueMac: Uint8Array | Buffer
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
35
37
|
export type SignalCreds = {
|
|
36
|
-
readonly signedIdentityKey: KeyPair
|
|
37
|
-
readonly signedPreKey: SignedKeyPair
|
|
38
|
-
readonly registrationId: number
|
|
39
|
-
}
|
|
38
|
+
readonly signedIdentityKey: KeyPair
|
|
39
|
+
readonly signedPreKey: SignedKeyPair
|
|
40
|
+
readonly registrationId: number
|
|
41
|
+
}
|
|
42
|
+
|
|
40
43
|
export type AccountSettings = {
|
|
41
44
|
/** unarchive chats when a new message is received */
|
|
42
|
-
unarchiveChats: boolean
|
|
45
|
+
unarchiveChats: boolean
|
|
43
46
|
/** the default mode to start new conversations with */
|
|
44
|
-
defaultDisappearingMode?: Pick<proto.IConversation, 'ephemeralExpiration' | 'ephemeralSettingTimestamp'
|
|
45
|
-
}
|
|
47
|
+
defaultDisappearingMode?: Pick<proto.IConversation, 'ephemeralExpiration' | 'ephemeralSettingTimestamp'>
|
|
48
|
+
}
|
|
49
|
+
|
|
46
50
|
export type AuthenticationCreds = SignalCreds & {
|
|
47
|
-
readonly noiseKey: KeyPair
|
|
48
|
-
readonly pairingEphemeralKeyPair: KeyPair
|
|
49
|
-
advSecretKey: string
|
|
50
|
-
me?: Contact
|
|
51
|
-
account?: proto.IADVSignedDeviceIdentity
|
|
52
|
-
signalIdentities?: SignalIdentity[]
|
|
53
|
-
myAppStateKeyId?: string
|
|
54
|
-
firstUnuploadedPreKeyId: number
|
|
55
|
-
nextPreKeyId: number
|
|
56
|
-
lastAccountSyncTimestamp?: number
|
|
57
|
-
platform?: string
|
|
58
|
-
processedHistoryMessages: MinimalMessage[]
|
|
51
|
+
readonly noiseKey: KeyPair
|
|
52
|
+
readonly pairingEphemeralKeyPair: KeyPair
|
|
53
|
+
advSecretKey: string
|
|
54
|
+
me?: Contact
|
|
55
|
+
account?: proto.IADVSignedDeviceIdentity
|
|
56
|
+
signalIdentities?: SignalIdentity[]
|
|
57
|
+
myAppStateKeyId?: string
|
|
58
|
+
firstUnuploadedPreKeyId: number
|
|
59
|
+
nextPreKeyId: number
|
|
60
|
+
lastAccountSyncTimestamp?: number
|
|
61
|
+
platform?: string
|
|
62
|
+
processedHistoryMessages: MinimalMessage[]
|
|
59
63
|
/** number of times history & app state has been synced */
|
|
60
|
-
accountSyncCounter: number
|
|
61
|
-
accountSettings: AccountSettings
|
|
62
|
-
registered: boolean
|
|
63
|
-
pairingCode: string | undefined
|
|
64
|
-
lastPropHash: string | undefined
|
|
65
|
-
routingInfo: Buffer | undefined
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
accountSyncCounter: number
|
|
65
|
+
accountSettings: AccountSettings
|
|
66
|
+
registered: boolean
|
|
67
|
+
pairingCode: string | undefined
|
|
68
|
+
lastPropHash: string | undefined
|
|
69
|
+
routingInfo: Buffer | undefined
|
|
70
|
+
}
|
|
71
|
+
|
|
68
72
|
export type SignalDataTypeMap = {
|
|
69
|
-
'pre-key': KeyPair
|
|
70
|
-
session: Uint8Array
|
|
71
|
-
'sender-key': Uint8Array
|
|
73
|
+
'pre-key': KeyPair
|
|
74
|
+
'session': Uint8Array
|
|
75
|
+
'sender-key': Uint8Array
|
|
72
76
|
'sender-key-memory': {
|
|
73
|
-
[jid: string]: boolean
|
|
74
|
-
}
|
|
75
|
-
'app-state-sync-key': proto.Message.IAppStateSyncKeyData
|
|
76
|
-
'app-state-sync-version': LTHashState
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
};
|
|
77
|
+
[jid: string]: boolean
|
|
78
|
+
}
|
|
79
|
+
'app-state-sync-key': proto.Message.IAppStateSyncKeyData
|
|
80
|
+
'app-state-sync-version': LTHashState
|
|
81
|
+
}
|
|
82
|
+
|
|
80
83
|
export type SignalDataSet = {
|
|
81
84
|
[T in keyof SignalDataTypeMap]?: {
|
|
82
|
-
[id: string]: SignalDataTypeMap[T] | null
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
85
|
+
[id: string]: SignalDataTypeMap[T] | null
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
type Awaitable<T> = T | Promise<T>
|
|
90
|
+
|
|
86
91
|
export type SignalKeyStore = {
|
|
87
92
|
get<T extends keyof SignalDataTypeMap>(type: T, ids: string[]): Awaitable<{
|
|
88
|
-
[id: string]: SignalDataTypeMap[T]
|
|
89
|
-
}
|
|
90
|
-
set(data: SignalDataSet): Awaitable<void
|
|
93
|
+
[id: string]: SignalDataTypeMap[T]
|
|
94
|
+
}>
|
|
95
|
+
set(data: SignalDataSet): Awaitable<void>
|
|
91
96
|
/** clear all the data in the store */
|
|
92
|
-
clear?(): Awaitable<void
|
|
93
|
-
}
|
|
97
|
+
clear?(): Awaitable<void>
|
|
98
|
+
}
|
|
99
|
+
|
|
94
100
|
export type SignalKeyStoreWithTransaction = SignalKeyStore & {
|
|
95
|
-
isInTransaction: () => boolean
|
|
96
|
-
transaction<T>(exec: () => Promise<T
|
|
97
|
-
}
|
|
101
|
+
isInTransaction: () => boolean
|
|
102
|
+
transaction<T>(exec: () => Promise<T>): Promise<T>
|
|
103
|
+
}
|
|
104
|
+
|
|
98
105
|
export type TransactionCapabilityOptions = {
|
|
99
|
-
maxCommitRetries: number
|
|
100
|
-
delayBetweenTriesMs: number
|
|
101
|
-
}
|
|
106
|
+
maxCommitRetries: number
|
|
107
|
+
delayBetweenTriesMs: number
|
|
108
|
+
}
|
|
109
|
+
|
|
102
110
|
export type SignalAuthState = {
|
|
103
|
-
creds: SignalCreds
|
|
104
|
-
keys: SignalKeyStore | SignalKeyStoreWithTransaction
|
|
105
|
-
}
|
|
111
|
+
creds: SignalCreds
|
|
112
|
+
keys: SignalKeyStore | SignalKeyStoreWithTransaction
|
|
113
|
+
}
|
|
114
|
+
|
|
106
115
|
export type AuthenticationState = {
|
|
107
|
-
creds: AuthenticationCreds
|
|
108
|
-
keys: SignalKeyStore
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
|
|
116
|
+
creds: AuthenticationCreds
|
|
117
|
+
keys: SignalKeyStore
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export {}
|
package/lib/Types/Auth.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict"
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true })
|
package/lib/Types/Call.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export type WACallUpdateType = 'offer' | 'ringing' | 'timeout' | 'reject' | 'accept' | 'terminate'
|
|
1
|
+
export type WACallUpdateType = 'offer' | 'ringing' | 'timeout' | 'reject' | 'accept' | 'terminate'
|
|
2
|
+
|
|
2
3
|
export type WACallEvent = {
|
|
3
|
-
chatId: string
|
|
4
|
-
from: string
|
|
5
|
-
isGroup?: boolean
|
|
6
|
-
groupJid?: string
|
|
7
|
-
id: string
|
|
8
|
-
date: Date
|
|
9
|
-
isVideo?: boolean
|
|
10
|
-
status: WACallUpdateType
|
|
11
|
-
offline: boolean
|
|
12
|
-
latencyMs?: number
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=Call.d.ts.map
|
|
4
|
+
chatId: string
|
|
5
|
+
from: string
|
|
6
|
+
isGroup?: boolean
|
|
7
|
+
groupJid?: string
|
|
8
|
+
id: string
|
|
9
|
+
date: Date
|
|
10
|
+
isVideo?: boolean
|
|
11
|
+
status: WACallUpdateType
|
|
12
|
+
offline: boolean
|
|
13
|
+
latencyMs?: number
|
|
14
|
+
}
|
package/lib/Types/Call.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict"
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true })
|
package/lib/Types/Chat.d.ts
CHANGED
|
@@ -1,123 +1,138 @@
|
|
|
1
|
-
import type { proto } from '../../WAProto
|
|
2
|
-
import type { AccountSettings } from './Auth
|
|
3
|
-
import type {
|
|
4
|
-
import type { BufferedEventData } from './Events
|
|
5
|
-
import type { LabelActionBody } from './Label
|
|
6
|
-
import type { ChatLabelAssociationActionBody } from './LabelAssociation
|
|
7
|
-
import type { MessageLabelAssociationActionBody } from './LabelAssociation
|
|
8
|
-
import type { MinimalMessage, WAMessageKey } from './Message
|
|
1
|
+
import type { proto } from '../../WAProto'
|
|
2
|
+
import type { AccountSettings } from './Auth'
|
|
3
|
+
import type { ContactAction } from './Contact'
|
|
4
|
+
import type { BufferedEventData } from './Events'
|
|
5
|
+
import type { LabelActionBody } from './Label'
|
|
6
|
+
import type { ChatLabelAssociationActionBody } from './LabelAssociation'
|
|
7
|
+
import type { MessageLabelAssociationActionBody } from './LabelAssociation'
|
|
8
|
+
import type { MinimalMessage, WAMessageKey } from './Message'
|
|
9
|
+
|
|
9
10
|
/** privacy settings in WhatsApp Web */
|
|
10
|
-
export type WAPrivacyValue = 'all' | 'contacts' | 'contact_blacklist' | 'none'
|
|
11
|
-
|
|
12
|
-
export type
|
|
13
|
-
|
|
14
|
-
export type
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export
|
|
19
|
-
|
|
11
|
+
export type WAPrivacyValue = 'all' | 'contacts' | 'contact_blacklist' | 'none'
|
|
12
|
+
|
|
13
|
+
export type WAPrivacyOnlineValue = 'all' | 'match_last_seen'
|
|
14
|
+
|
|
15
|
+
export type WAPrivacyGroupAddValue = 'all' | 'contacts' | 'contact_blacklist'
|
|
16
|
+
|
|
17
|
+
export type WAReadReceiptsValue = 'all' | 'none'
|
|
18
|
+
|
|
19
|
+
export type WAPrivacyCallValue = 'all' | 'known'
|
|
20
|
+
|
|
21
|
+
export type WAPrivacyMessagesValue = 'all' | 'contacts'
|
|
22
|
+
|
|
23
|
+
/** set of statuses visible to other people see updatePresence() in WhatsAppWeb.Send */
|
|
24
|
+
export type WAPresence = 'unavailable' | 'available' | 'composing' | 'recording' | 'paused'
|
|
25
|
+
|
|
26
|
+
export declare const ALL_WA_PATCH_NAMES: readonly ["critical_block", "critical_unblock_low", "regular_high", "regular_low", "regular"]
|
|
27
|
+
|
|
28
|
+
export type WAPatchName = typeof ALL_WA_PATCH_NAMES[number]
|
|
29
|
+
|
|
30
|
+
export type BotListInfo = {
|
|
31
|
+
jid: string
|
|
32
|
+
personaId: string
|
|
33
|
+
}
|
|
34
|
+
|
|
20
35
|
export interface PresenceData {
|
|
21
|
-
lastKnownPresence: WAPresence
|
|
22
|
-
lastSeen?: number
|
|
36
|
+
lastKnownPresence: WAPresence
|
|
37
|
+
lastSeen?: number
|
|
23
38
|
}
|
|
24
|
-
|
|
25
|
-
jid: string;
|
|
26
|
-
personaId: string;
|
|
27
|
-
};
|
|
39
|
+
|
|
28
40
|
export type ChatMutation = {
|
|
29
|
-
syncAction: proto.ISyncActionData
|
|
30
|
-
index: string[]
|
|
31
|
-
}
|
|
41
|
+
syncAction: proto.ISyncActionData
|
|
42
|
+
index: string[]
|
|
43
|
+
}
|
|
44
|
+
|
|
32
45
|
export type WAPatchCreate = {
|
|
33
|
-
syncAction: proto.ISyncActionValue
|
|
34
|
-
index: string[]
|
|
35
|
-
type: WAPatchName
|
|
36
|
-
apiVersion: number
|
|
37
|
-
operation: proto.SyncdMutation.SyncdOperation
|
|
38
|
-
}
|
|
46
|
+
syncAction: proto.ISyncActionValue
|
|
47
|
+
index: string[]
|
|
48
|
+
type: WAPatchName
|
|
49
|
+
apiVersion: number
|
|
50
|
+
operation: proto.SyncdMutation.SyncdOperation
|
|
51
|
+
}
|
|
52
|
+
|
|
39
53
|
export type Chat = proto.IConversation & {
|
|
40
54
|
/** unix timestamp of when the last message was received in the chat */
|
|
41
|
-
lastMessageRecvTimestamp?: number
|
|
42
|
-
}
|
|
55
|
+
lastMessageRecvTimestamp?: number
|
|
56
|
+
}
|
|
57
|
+
|
|
43
58
|
export type ChatUpdate = Partial<Chat & {
|
|
44
59
|
/**
|
|
45
60
|
* if specified in the update,
|
|
46
61
|
* the EV buffer will check if the condition gets fulfilled before applying the update
|
|
47
62
|
* Right now, used to determine when to release an app state sync event
|
|
48
63
|
*
|
|
49
|
-
* @returns true, if the update should be applied
|
|
50
|
-
* false if it can be discarded
|
|
64
|
+
* @returns true, if the update should be applied
|
|
65
|
+
* false if it can be discarded
|
|
51
66
|
* undefined if the condition is not yet fulfilled
|
|
52
67
|
* */
|
|
53
|
-
conditional: (bufferedData: BufferedEventData) => boolean | undefined
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}>;
|
|
68
|
+
conditional: (bufferedData: BufferedEventData) => boolean | undefined
|
|
69
|
+
}>
|
|
70
|
+
|
|
57
71
|
/**
|
|
58
72
|
* the last messages in a chat, sorted reverse-chronologically. That is, the latest message should be first in the chat
|
|
59
73
|
* for MD modifications, the last message in the array (i.e. the earlist message) must be the last message recv in the chat
|
|
60
74
|
* */
|
|
61
|
-
export type LastMessageList = MinimalMessage[] | proto.SyncActionValue.ISyncActionMessageRange
|
|
75
|
+
export type LastMessageList = MinimalMessage[] | proto.SyncActionValue.ISyncActionMessageRange
|
|
76
|
+
|
|
62
77
|
export type ChatModification = {
|
|
63
|
-
archive: boolean
|
|
64
|
-
lastMessages: LastMessageList
|
|
78
|
+
archive: boolean
|
|
79
|
+
lastMessages: LastMessageList
|
|
80
|
+
} | {
|
|
81
|
+
contact: ContactAction | null
|
|
65
82
|
} | {
|
|
66
|
-
pushNameSetting: string
|
|
83
|
+
pushNameSetting: string
|
|
67
84
|
} | {
|
|
68
|
-
pin: boolean
|
|
85
|
+
pin: boolean
|
|
69
86
|
} | {
|
|
70
87
|
/** mute for duration, or provide timestamp of mute to remove*/
|
|
71
|
-
mute: number | null
|
|
88
|
+
mute: number | null
|
|
72
89
|
} | {
|
|
73
|
-
clear: boolean
|
|
74
|
-
lastMessages: LastMessageList;
|
|
90
|
+
clear: boolean
|
|
75
91
|
} | {
|
|
76
92
|
deleteForMe: {
|
|
77
|
-
deleteMedia: boolean
|
|
78
|
-
key: WAMessageKey
|
|
79
|
-
timestamp: number
|
|
80
|
-
}
|
|
93
|
+
deleteMedia: boolean
|
|
94
|
+
key: WAMessageKey
|
|
95
|
+
timestamp: number
|
|
96
|
+
}
|
|
81
97
|
} | {
|
|
82
98
|
star: {
|
|
83
99
|
messages: {
|
|
84
|
-
id: string
|
|
85
|
-
fromMe?: boolean
|
|
86
|
-
}[]
|
|
87
|
-
star: boolean
|
|
88
|
-
}
|
|
89
|
-
} | {
|
|
90
|
-
markRead: boolean;
|
|
91
|
-
lastMessages: LastMessageList;
|
|
100
|
+
id: string
|
|
101
|
+
fromMe?: boolean
|
|
102
|
+
}[]
|
|
103
|
+
star: boolean
|
|
104
|
+
}
|
|
92
105
|
} | {
|
|
93
|
-
|
|
94
|
-
lastMessages: LastMessageList
|
|
106
|
+
markRead: boolean
|
|
107
|
+
lastMessages: LastMessageList
|
|
95
108
|
} | {
|
|
96
|
-
|
|
109
|
+
delete: true
|
|
110
|
+
lastMessages: LastMessageList
|
|
97
111
|
} | {
|
|
98
|
-
|
|
112
|
+
contact: proto.SyncActionValue.IContactAction | null
|
|
99
113
|
} | {
|
|
100
|
-
|
|
114
|
+
disableLinkPreviews: proto.SyncActionValue.IPrivacySettingDisableLinkPreviewsAction
|
|
101
115
|
} | {
|
|
102
|
-
|
|
116
|
+
addLabel: LabelActionBody
|
|
103
117
|
} | {
|
|
104
|
-
|
|
118
|
+
addChatLabel: ChatLabelAssociationActionBody
|
|
105
119
|
} | {
|
|
106
|
-
|
|
120
|
+
removeChatLabel: ChatLabelAssociationActionBody
|
|
107
121
|
} | {
|
|
108
|
-
|
|
122
|
+
addMessageLabel: MessageLabelAssociationActionBody
|
|
109
123
|
} | {
|
|
110
|
-
|
|
111
|
-
}
|
|
124
|
+
removeMessageLabel: MessageLabelAssociationActionBody
|
|
125
|
+
}
|
|
126
|
+
|
|
112
127
|
export type InitialReceivedChatsState = {
|
|
113
128
|
[jid: string]: {
|
|
114
129
|
/** the last message received from the other party */
|
|
115
|
-
lastMsgRecvTimestamp?: number
|
|
130
|
+
lastMsgRecvTimestamp?: number
|
|
116
131
|
/** the absolute last message in the chat */
|
|
117
|
-
lastMsgTimestamp: number
|
|
118
|
-
}
|
|
119
|
-
}
|
|
132
|
+
lastMsgTimestamp: number
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
120
136
|
export type InitialAppStateSyncOptions = {
|
|
121
|
-
accountSettings: AccountSettings
|
|
122
|
-
}
|
|
123
|
-
//# sourceMappingURL=Chat.d.ts.map
|
|
137
|
+
accountSettings: AccountSettings
|
|
138
|
+
}
|
package/lib/Types/Chat.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
"use strict"
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true })
|
|
4
|
+
|
|
5
|
+
const ALL_WA_PATCH_NAMES = ['critical_block', 'critical_unblock_low', 'regular_high', 'regular_low', 'regular']
|
|
6
|
+
|
|
7
|
+
module.exports = {
|
|
8
|
+
ALL_WA_PATCH_NAMES
|
|
9
|
+
}
|
package/lib/Types/Contact.d.ts
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
export interface Contact {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
lid?: string;
|
|
6
|
-
/** ID in PN format (@s.whatsapp.net) **/
|
|
7
|
-
phoneNumber?: string;
|
|
2
|
+
id: string
|
|
3
|
+
lid?: string
|
|
4
|
+
jid?: string
|
|
8
5
|
/** name of the contact, you have saved on your WA */
|
|
9
|
-
name?: string
|
|
6
|
+
name?: string
|
|
10
7
|
/** name of the contact, the contact has set on their own on WA */
|
|
11
|
-
notify?: string
|
|
8
|
+
notify?: string
|
|
12
9
|
/** I have no idea */
|
|
13
|
-
verifiedName?: string
|
|
10
|
+
verifiedName?: string
|
|
14
11
|
/**
|
|
15
12
|
* Url of the profile picture of the contact
|
|
16
13
|
*
|
|
@@ -18,7 +15,6 @@ export interface Contact {
|
|
|
18
15
|
* null => if the profile picture has not been set (default profile picture)
|
|
19
16
|
* any other string => url of the profile picture
|
|
20
17
|
*/
|
|
21
|
-
imgUrl?: string | null
|
|
22
|
-
status?: string
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=Contact.d.ts.map
|
|
18
|
+
imgUrl?: string | null
|
|
19
|
+
status?: string
|
|
20
|
+
}
|
package/lib/Types/Contact.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict"
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true })
|