lordceaser-baileys 1.0.4 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Defaults/index.d.ts +1 -2
- package/lib/Defaults/index.js +1 -0
- package/lib/Signal/Group/ciphertext-message.js +1 -0
- package/lib/Signal/Group/group-session-builder.js +1 -0
- package/lib/Signal/Group/group_cipher.js +1 -0
- package/lib/Signal/Group/index.js +1 -0
- package/lib/Signal/Group/keyhelper.js +1 -0
- package/lib/Signal/Group/sender-chain-key.js +1 -0
- package/lib/Signal/Group/sender-key-distribution-message.js +1 -0
- package/lib/Signal/Group/sender-key-message.js +1 -0
- package/lib/Signal/Group/sender-key-record.js +1 -0
- package/lib/Signal/Group/sender-key-state.js +1 -0
- package/lib/Signal/Group/sender-message-key.js +1 -0
- package/lib/Signal/libsignal.js +6 -2
- package/lib/Signal/lid-mapping.js +6 -2
- package/lib/Socket/Client/index.js +1 -0
- package/lib/Socket/Client/types.js +1 -0
- package/lib/Socket/Client/websocket.js +1 -0
- package/lib/Socket/business.d.ts +8 -8
- package/lib/Socket/chats.d.ts +2 -2
- package/lib/Socket/chats.js +1 -0
- package/lib/Socket/communities.d.ts +5 -5
- package/lib/Socket/communities.js +1 -0
- package/lib/Socket/groups.d.ts +3 -3
- package/lib/Socket/groups.js +1 -0
- package/lib/Socket/index.d.ts +9 -9
- package/lib/Socket/index.js +1 -0
- package/lib/Socket/messages-recv.d.ts +4 -4
- package/lib/Socket/messages-recv.js +1 -0
- package/lib/Socket/messages-send.d.ts +4 -4
- package/lib/Socket/messages-send.js +1 -0
- package/lib/Socket/mex.js +1 -0
- package/lib/Socket/newsletter.d.ts +3 -3
- package/lib/Socket/socket.js +1 -0
- package/lib/Types/LabelAssociation.js +1 -0
- package/lib/Types/Message.d.ts +2 -2
- package/lib/Types/Mex.js +1 -0
- package/lib/Types/index.js +1 -0
- package/lib/Utils/auth-utils.js +1 -0
- package/lib/Utils/browser-utils.d.ts +1 -1
- package/lib/Utils/browser-utils.js +1 -0
- package/lib/Utils/business.js +1 -0
- package/lib/Utils/chat-utils.d.ts +1 -1
- package/lib/Utils/decode-wa-message.d.ts +2 -3
- package/lib/Utils/decode-wa-message.js +1 -0
- package/lib/Utils/event-buffer.js +1 -0
- package/lib/Utils/generics.d.ts +2 -2
- package/lib/Utils/history.d.ts +13 -13
- package/lib/Utils/history.js +1 -0
- package/lib/Utils/index.js +1 -0
- package/lib/Utils/logger.js +1 -0
- package/lib/Utils/make-mutex.js +1 -0
- package/lib/Utils/message-retry-manager.js +9 -5
- package/lib/Utils/messages-media.d.ts +2 -3
- package/lib/Utils/messages.d.ts +9 -13
- package/lib/Utils/messages.js +1 -0
- package/lib/Utils/noise-handler.js +1 -0
- package/lib/Utils/pre-key-manager.js +1 -0
- package/lib/Utils/process-message.d.ts +2 -2
- package/lib/Utils/process-message.js +1 -0
- package/lib/Utils/reporting-utils.js +1 -0
- package/lib/Utils/signal.js +1 -0
- package/lib/Utils/use-multi-file-auth-state.js +1 -0
- package/lib/Utils/validate-connection.d.ts +2 -2
- package/lib/Utils/validate-connection.js +1 -0
- package/lib/WABinary/constants.js +1 -0
- package/lib/WABinary/decode.js +1 -0
- package/lib/WABinary/encode.js +1 -0
- package/lib/WABinary/generic-utils.d.ts +0 -1
- package/lib/WABinary/index.js +1 -0
- package/lib/WABinary/jid-utils.js +1 -0
- package/lib/WAM/constants.js +1 -0
- package/lib/WAM/index.js +1 -0
- package/lib/WAUSync/Protocols/index.js +1 -0
- package/lib/WAUSync/USyncUser.js +1 -0
- package/lib/WAUSync/index.js +1 -0
- package/lib/index.js +1 -0
- package/package.json +7 -5
- 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.map +0 -1
- package/lib/Signal/Group/ciphertext-message.js.map +0 -1
- package/lib/Signal/Group/group-session-builder.d.ts.map +0 -1
- package/lib/Signal/Group/group-session-builder.js.map +0 -1
- package/lib/Signal/Group/group_cipher.d.ts.map +0 -1
- package/lib/Signal/Group/group_cipher.js.map +0 -1
- package/lib/Signal/Group/index.d.ts.map +0 -1
- package/lib/Signal/Group/index.js.map +0 -1
- package/lib/Signal/Group/keyhelper.d.ts.map +0 -1
- package/lib/Signal/Group/keyhelper.js.map +0 -1
- package/lib/Signal/Group/sender-chain-key.d.ts.map +0 -1
- package/lib/Signal/Group/sender-chain-key.js.map +0 -1
- package/lib/Signal/Group/sender-key-distribution-message.d.ts.map +0 -1
- package/lib/Signal/Group/sender-key-distribution-message.js.map +0 -1
- package/lib/Signal/Group/sender-key-message.d.ts.map +0 -1
- package/lib/Signal/Group/sender-key-message.js.map +0 -1
- package/lib/Signal/Group/sender-key-name.d.ts.map +0 -1
- package/lib/Signal/Group/sender-key-name.js.map +0 -1
- package/lib/Signal/Group/sender-key-record.d.ts.map +0 -1
- package/lib/Signal/Group/sender-key-record.js.map +0 -1
- package/lib/Signal/Group/sender-key-state.d.ts.map +0 -1
- package/lib/Signal/Group/sender-key-state.js.map +0 -1
- 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.map +0 -1
- 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/Store/index.d.ts +0 -4
- package/lib/Store/index.d.ts.map +0 -1
- package/lib/Store/index.js +0 -4
- package/lib/Store/index.js.map +0 -1
- package/lib/Store/make-in-memory-store.d.ts +0 -63
- package/lib/Store/make-in-memory-store.d.ts.map +0 -1
- package/lib/Store/make-in-memory-store.js +0 -421
- package/lib/Store/make-in-memory-store.js.map +0 -1
- package/lib/Store/make-ordered-dictionary.d.ts +0 -13
- package/lib/Store/make-ordered-dictionary.d.ts.map +0 -1
- package/lib/Store/make-ordered-dictionary.js +0 -79
- package/lib/Store/make-ordered-dictionary.js.map +0 -1
- package/lib/Store/object-repository.d.ts +0 -11
- package/lib/Store/object-repository.d.ts.map +0 -1
- package/lib/Store/object-repository.js +0 -24
- package/lib/Store/object-repository.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.map +0 -1
- 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/Mex.d.ts.map +0 -1
- package/lib/Types/Mex.js.map +0 -1
- package/lib/Types/Product.d.ts.map +0 -1
- package/lib/Types/Product.js.map +0 -1
- package/lib/Types/RichType.d.ts +0 -3
- package/lib/Types/RichType.d.ts.map +0 -1
- package/lib/Types/RichType.js +0 -23
- package/lib/Types/RichType.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/browser-utils.d.ts.map +0 -1
- 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/companion-reg-client-utils.d.ts.map +0 -1
- package/lib/Utils/companion-reg-client-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/identity-change-handler.d.ts.map +0 -1
- package/lib/Utils/identity-change-handler.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/offline-node-processor.d.ts.map +0 -1
- package/lib/Utils/offline-node-processor.js.map +0 -1
- package/lib/Utils/pre-key-manager.d.ts.map +0 -1
- 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/reporting-utils.d.ts.map +0 -1
- package/lib/Utils/reporting-utils.js.map +0 -1
- package/lib/Utils/rich-message-utils.d.ts +0 -49
- package/lib/Utils/rich-message-utils.d.ts.map +0 -1
- package/lib/Utils/rich-message-utils.js +0 -370
- package/lib/Utils/rich-message-utils.js.map +0 -1
- package/lib/Utils/signal.d.ts.map +0 -1
- package/lib/Utils/signal.js.map +0 -1
- package/lib/Utils/stanza-ack.d.ts.map +0 -1
- package/lib/Utils/stanza-ack.js.map +0 -1
- package/lib/Utils/sync-action-utils.d.ts.map +0 -1
- package/lib/Utils/sync-action-utils.js.map +0 -1
- package/lib/Utils/tc-token-utils.d.ts.map +0 -1
- package/lib/Utils/tc-token-utils.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/use-single-file-auth-state.d.ts +0 -11
- package/lib/Utils/use-single-file-auth-state.d.ts.map +0 -1
- package/lib/Utils/use-single-file-auth-state.js +0 -109
- package/lib/Utils/use-single-file-auth-state.js.map +0 -1
- package/lib/Utils/use-sqlite-auth-state.d.ts +0 -11
- package/lib/Utils/use-sqlite-auth-state.d.ts.map +0 -1
- package/lib/Utils/use-sqlite-auth-state.js +0 -109
- package/lib/Utils/use-sqlite-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/USyncUsernameProtocol.d.ts.map +0 -1
- package/lib/WAUSync/Protocols/USyncUsernameProtocol.js.map +0 -1
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts.map +0 -1
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js.map +0 -1
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts.map +0 -1
- 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/__tests__/Signal/Group/sender-key-state-regression.test.d.ts +0 -1
- package/lib/__tests__/Signal/Group/sender-key-state-regression.test.js +0 -21
- package/lib/__tests__/Signal/lid-mapping.test.d.ts +0 -1
- package/lib/__tests__/Signal/lid-mapping.test.js +0 -41
- package/lib/__tests__/Socket/chats.test.d.ts +0 -1
- package/lib/__tests__/Socket/chats.test.js +0 -27
- package/lib/__tests__/Socket/groups.test.d.ts +0 -1
- package/lib/__tests__/Socket/groups.test.js +0 -79
- package/lib/__tests__/Socket/identity-change-handling.test.d.ts +0 -1
- package/lib/__tests__/Socket/identity-change-handling.test.js +0 -205
- package/lib/__tests__/TestUtils/session.d.ts +0 -15
- package/lib/__tests__/TestUtils/session.js +0 -48
- package/lib/__tests__/Utils/app-state-sync-resilience.test.d.ts +0 -1
- package/lib/__tests__/Utils/app-state-sync-resilience.test.js +0 -91
- package/lib/__tests__/Utils/app-state-version.test.d.ts +0 -1
- package/lib/__tests__/Utils/app-state-version.test.js +0 -56
- package/lib/__tests__/Utils/auth-utils.test.d.ts +0 -1
- package/lib/__tests__/Utils/auth-utils.test.js +0 -34
- package/lib/__tests__/Utils/chat-utils-resilience.test.d.ts +0 -1
- package/lib/__tests__/Utils/chat-utils-resilience.test.js +0 -132
- package/lib/__tests__/Utils/decode-wa-message.test.d.ts +0 -1
- package/lib/__tests__/Utils/decode-wa-message.test.js +0 -73
- package/lib/__tests__/Utils/event-buffer.test.d.ts +0 -1
- package/lib/__tests__/Utils/event-buffer.test.js +0 -133
- package/lib/__tests__/Utils/generics.test.d.ts +0 -1
- package/lib/__tests__/Utils/generics.test.js +0 -59
- package/lib/__tests__/Utils/history.test.d.ts +0 -1
- package/lib/__tests__/Utils/history.test.js +0 -374
- package/lib/__tests__/Utils/lt-hash-generator.test.d.ts +0 -1
- package/lib/__tests__/Utils/lt-hash-generator.test.js +0 -127
- package/lib/__tests__/Utils/messages-media.test.d.ts +0 -1
- package/lib/__tests__/Utils/messages-media.test.js +0 -443
- package/lib/__tests__/Utils/noise-handler.test.d.ts +0 -1
- package/lib/__tests__/Utils/noise-handler.test.js +0 -263
- package/lib/__tests__/Utils/offline-node-processor.test.d.ts +0 -1
- package/lib/__tests__/Utils/offline-node-processor.test.js +0 -259
- package/lib/__tests__/Utils/process-message.test.d.ts +0 -1
- package/lib/__tests__/Utils/process-message.test.js +0 -144
- package/lib/__tests__/Utils/process-sync-action.test.d.ts +0 -1
- package/lib/__tests__/Utils/process-sync-action.test.js +0 -295
- package/lib/__tests__/Utils/reporting-utils.test.d.ts +0 -1
- package/lib/__tests__/Utils/reporting-utils.test.js +0 -143
- package/lib/__tests__/Utils/signal.test.d.ts +0 -1
- package/lib/__tests__/Utils/signal.test.js +0 -57
- package/lib/__tests__/Utils/stanza-ack.test.d.ts +0 -1
- package/lib/__tests__/Utils/stanza-ack.test.js +0 -365
- package/lib/__tests__/Utils/sync-action-utils.test.d.ts +0 -1
- package/lib/__tests__/Utils/sync-action-utils.test.js +0 -138
- package/lib/__tests__/Utils/tc-token.test.d.ts +0 -1
- package/lib/__tests__/Utils/tc-token.test.js +0 -887
- package/lib/__tests__/bigint-validation.test.d.ts +0 -1
- package/lib/__tests__/bigint-validation.test.js +0 -176
- package/lib/__tests__/binary/connection-deadlock.test.d.ts +0 -1
- package/lib/__tests__/binary/connection-deadlock.test.js +0 -48
- package/lib/__tests__/binary/reconnection-sync-skip.test.d.ts +0 -1
- package/lib/__tests__/binary/reconnection-sync-skip.test.js +0 -70
- package/lib/__tests__/e2e/fetch-wa-web-version.test-e2e.d.ts +0 -1
- package/lib/__tests__/e2e/fetch-wa-web-version.test-e2e.js +0 -49
- package/lib/__tests__/e2e/groups.test-e2e.d.ts +0 -1
- package/lib/__tests__/e2e/groups.test-e2e.js +0 -90
- package/lib/__tests__/e2e/helpers/mock-phone.d.ts +0 -1
- package/lib/__tests__/e2e/helpers/mock-phone.js +0 -39
- package/lib/__tests__/e2e/helpers/test-client.d.ts +0 -58
- package/lib/__tests__/e2e/helpers/test-client.js +0 -235
- package/lib/__tests__/e2e/messaging.test-e2e.d.ts +0 -1
- package/lib/__tests__/e2e/messaging.test-e2e.js +0 -52
- package/lib/__tests__/e2e/send-receive-message.test-e2e.d.ts +0 -1
- package/lib/__tests__/e2e/send-receive-message.test-e2e.js +0 -190
- package/lib/__tests__/proto-tojson-long.test.d.ts +0 -1
- package/lib/__tests__/proto-tojson-long.test.js +0 -108
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js.map +0 -1
package/lib/Defaults/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { proto } from '../../WAProto/index.js';
|
|
2
1
|
import type { SocketConfig } from '../Types';
|
|
3
2
|
export declare const UNAUTHORIZED_CODES: number[];
|
|
4
3
|
export declare const DEFAULT_ORIGIN = "https://web.whatsapp.com";
|
|
@@ -27,7 +26,7 @@ export declare const WA_CERT_DETAILS: {
|
|
|
27
26
|
ISSUER: string;
|
|
28
27
|
PUBLIC_KEY: Buffer<ArrayBuffer>;
|
|
29
28
|
};
|
|
30
|
-
export declare const PROCESSABLE_HISTORY_TYPES:
|
|
29
|
+
export declare const PROCESSABLE_HISTORY_TYPES: any[];
|
|
31
30
|
export declare const DEFAULT_CACHE_TTLS: {
|
|
32
31
|
SIGNAL_STORE: number;
|
|
33
32
|
MSG_RETRY: number;
|
package/lib/Defaults/index.js
CHANGED
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.TimeMs = exports.UPLOAD_TIMEOUT = exports.INITIAL_PREKEY_COUNT = exports.MIN_PREKEY_COUNT = exports.HISTORY_SYNC_PAUSED_TIMEOUT_MS = exports.MEDIA_KEYS = exports.MEDIA_HKDF_KEY_MAPPING = exports.MEDIA_PATH_MAP = exports.DEFAULT_CONNECTION_CONFIG = exports.DEFAULT_CACHE_TTLS = exports.PROCESSABLE_HISTORY_TYPES = exports.WA_CERT_DETAILS = exports.URL_REGEX = exports.NOISE_WA_HEADER = exports.KEY_BUNDLE_TYPE = exports.DICT_VERSION = exports.NOISE_MODE = exports.PLACEHOLDER_MAX_AGE_SECONDS = exports.STATUS_EXPIRY_SECONDS = exports.WA_DEFAULT_EPHEMERAL = exports.WA_ADV_HOSTED_DEVICE_SIG_PREFIX = exports.WA_ADV_HOSTED_ACCOUNT_SIG_PREFIX = exports.WA_ADV_DEVICE_SIG_PREFIX = exports.WA_ADV_ACCOUNT_SIG_PREFIX = exports.PHONE_CONNECTION_CB = exports.DEF_TAG_PREFIX = exports.DEF_CALLBACK_PREFIX = exports.CALL_AUDIO_PREFIX = exports.CALL_VIDEO_PREFIX = exports.DEFAULT_ORIGIN = exports.UNAUTHORIZED_CODES = void 0;
|
|
7
|
+
// @ts-nocheck
|
|
7
8
|
const index_js_1 = require("../../WAProto/index.js");
|
|
8
9
|
const libsignal_1 = require("../Signal/libsignal");
|
|
9
10
|
const browser_utils_1 = require("../Utils/browser-utils");
|
|
@@ -34,6 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.GroupSessionBuilder = void 0;
|
|
37
|
+
// @ts-nocheck
|
|
37
38
|
const keyhelper = __importStar(require("./keyhelper"));
|
|
38
39
|
const sender_key_distribution_message_1 = require("./sender-key-distribution-message");
|
|
39
40
|
class GroupSessionBuilder {
|
|
@@ -34,6 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.keyhelper = exports.CiphertextMessage = exports.SenderChainKey = exports.SenderMessageKey = exports.SenderKeyMessage = exports.SenderKeyState = exports.GroupCipher = exports.SenderKeyName = exports.SenderKeyRecord = exports.SenderKeyDistributionMessage = exports.GroupSessionBuilder = void 0;
|
|
37
|
+
// @ts-nocheck
|
|
37
38
|
var group_session_builder_1 = require("./group-session-builder");
|
|
38
39
|
Object.defineProperty(exports, "GroupSessionBuilder", { enumerable: true, get: function () { return group_session_builder_1.GroupSessionBuilder; } });
|
|
39
40
|
var sender_key_distribution_message_1 = require("./sender-key-distribution-message");
|
|
@@ -36,6 +36,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.generateSenderKey = generateSenderKey;
|
|
37
37
|
exports.generateSenderKeyId = generateSenderKeyId;
|
|
38
38
|
exports.generateSenderSigningKey = generateSenderSigningKey;
|
|
39
|
+
// @ts-nocheck
|
|
39
40
|
const nodeCrypto = __importStar(require("crypto"));
|
|
40
41
|
const curve_1 = require("libsignal/src/curve");
|
|
41
42
|
function generateSenderKey() {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SenderChainKey = void 0;
|
|
4
|
+
// @ts-nocheck
|
|
4
5
|
const crypto_1 = require("libsignal/src/crypto");
|
|
5
6
|
const sender_message_key_1 = require("./sender-message-key");
|
|
6
7
|
class SenderChainKey {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SenderKeyDistributionMessage = void 0;
|
|
4
|
+
// @ts-nocheck
|
|
4
5
|
const index_js_1 = require("../../../WAProto/index.js");
|
|
5
6
|
const ciphertext_message_1 = require("./ciphertext-message");
|
|
6
7
|
class SenderKeyDistributionMessage extends ciphertext_message_1.CiphertextMessage {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SenderKeyMessage = void 0;
|
|
4
|
+
// @ts-nocheck
|
|
4
5
|
const curve_1 = require("libsignal/src/curve");
|
|
5
6
|
const index_js_1 = require("../../../WAProto/index.js");
|
|
6
7
|
const ciphertext_message_1 = require("./ciphertext-message");
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SenderKeyRecord = void 0;
|
|
4
|
+
// @ts-nocheck
|
|
4
5
|
const generics_1 = require("../../Utils/generics");
|
|
5
6
|
const sender_key_state_1 = require("./sender-key-state");
|
|
6
7
|
class SenderKeyRecord {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SenderKeyState = void 0;
|
|
4
|
+
// @ts-nocheck
|
|
4
5
|
const sender_chain_key_1 = require("./sender-chain-key");
|
|
5
6
|
const sender_message_key_1 = require("./sender-message-key");
|
|
6
7
|
class SenderKeyState {
|
package/lib/Signal/libsignal.js
CHANGED
|
@@ -32,13 +32,17 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
35
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
39
|
exports.makeLibSignalRepository = makeLibSignalRepository;
|
|
40
|
+
// @ts-nocheck
|
|
37
41
|
// @ts-ignore
|
|
38
42
|
const libsignal = __importStar(require("libsignal"));
|
|
39
43
|
// @ts-ignore
|
|
40
44
|
const protobufs_1 = require("libsignal/src/protobufs");
|
|
41
|
-
const lru_cache_1 = require("lru-cache");
|
|
45
|
+
const lru_cache_1 = __importDefault(require("lru-cache"));
|
|
42
46
|
const Utils_1 = require("../Utils");
|
|
43
47
|
const WABinary_1 = require("../WABinary");
|
|
44
48
|
const sender_key_name_1 = require("./Group/sender-key-name");
|
|
@@ -71,7 +75,7 @@ function makeLibSignalRepository(auth, logger, pnToLIDFunc) {
|
|
|
71
75
|
const lidMapping = new lid_mapping_1.LIDMappingStore(auth.keys, logger, pnToLIDFunc);
|
|
72
76
|
const storage = signalStorage(auth, lidMapping);
|
|
73
77
|
const parsedKeys = auth.keys;
|
|
74
|
-
const migratedSessionCache = new lru_cache_1.
|
|
78
|
+
const migratedSessionCache = new lru_cache_1.default({
|
|
75
79
|
ttl: 3 * 24 * 60 * 60 * 1000, // 7 days
|
|
76
80
|
ttlAutopurge: true,
|
|
77
81
|
updateAgeOnGet: true
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.LIDMappingStore = void 0;
|
|
4
|
-
|
|
7
|
+
// @ts-nocheck
|
|
8
|
+
const lru_cache_1 = __importDefault(require("lru-cache"));
|
|
5
9
|
const WABinary_1 = require("../WABinary");
|
|
6
10
|
class LIDMappingStore {
|
|
7
11
|
constructor(keys, logger, pnToLIDFunc) {
|
|
8
|
-
this.mappingCache = new lru_cache_1.
|
|
12
|
+
this.mappingCache = new lru_cache_1.default({
|
|
9
13
|
ttl: 3 * 24 * 60 * 60 * 1000, // 7 days
|
|
10
14
|
ttlAutopurge: true,
|
|
11
15
|
updateAgeOnGet: true
|
|
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
// @ts-nocheck
|
|
17
18
|
__exportStar(require("./types"), exports);
|
|
18
19
|
__exportStar(require("./websocket"), exports);
|
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.WebSocketClient = void 0;
|
|
7
|
+
// @ts-nocheck
|
|
7
8
|
const ws_1 = __importDefault(require("ws"));
|
|
8
9
|
const Defaults_1 = require("../../Defaults");
|
|
9
10
|
const types_1 = require("./types");
|
package/lib/Socket/business.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export declare const makeBusinessSocket: (config: SocketConfig) => {
|
|
|
31
31
|
};
|
|
32
32
|
issuePrivacyTokens: (jids: string[], timestamp?: number) => Promise<any>;
|
|
33
33
|
assertSessions: (jids: string[], force?: boolean) => Promise<boolean>;
|
|
34
|
-
relayMessage: (jid: string, message:
|
|
34
|
+
relayMessage: (jid: string, message: proto.IMessage, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, useCachedGroupMetadata, statusJidList }: import("../Types").MessageRelayOptions) => Promise<string>;
|
|
35
35
|
sendReceipt: (jid: string, participant: string | undefined, messageIds: string[], type: import("../Types").MessageReceiptType) => Promise<void>;
|
|
36
36
|
sendReceipts: (keys: import("../Types").WAMessageKey[], type: import("../Types").MessageReceiptType) => Promise<void>;
|
|
37
37
|
readMessages: (keys: import("../Types").WAMessageKey[]) => Promise<void>;
|
|
@@ -41,8 +41,8 @@ export declare const makeBusinessSocket: (config: SocketConfig) => {
|
|
|
41
41
|
fetchPrivacySettings: (force?: boolean) => Promise<{
|
|
42
42
|
[_: string]: string;
|
|
43
43
|
}>;
|
|
44
|
-
sendPeerDataOperationMessage: (pdoMessage:
|
|
45
|
-
createParticipantNodes: (recipientJids: string[], message:
|
|
44
|
+
sendPeerDataOperationMessage: (pdoMessage: proto.Message.IPeerDataOperationRequestMessage) => Promise<string>;
|
|
45
|
+
createParticipantNodes: (recipientJids: string[], message: proto.IMessage, extraAttrs?: BinaryNode["attrs"], dsmMessage?: proto.IMessage) => Promise<{
|
|
46
46
|
nodes: BinaryNode[];
|
|
47
47
|
shouldIncludeDeviceIdentity: boolean;
|
|
48
48
|
}>;
|
|
@@ -50,8 +50,8 @@ export declare const makeBusinessSocket: (config: SocketConfig) => {
|
|
|
50
50
|
jid: string;
|
|
51
51
|
})[]>;
|
|
52
52
|
updateMemberLabel: (jid: string, memberLabel: string) => Promise<string>;
|
|
53
|
-
updateMediaMessage: (message: import("../Types").WAMessage) => Promise<
|
|
54
|
-
sendMessage: (jid: string, content: import("../Types").AnyMessageContent, options?: import("../Types").MiscMessageGenerationOptions) => Promise<
|
|
53
|
+
updateMediaMessage: (message: import("../Types").WAMessage) => Promise<any>;
|
|
54
|
+
sendMessage: (jid: string, content: import("../Types").AnyMessageContent, options?: import("../Types").MiscMessageGenerationOptions) => Promise<any>;
|
|
55
55
|
newsletterCreate: (name: string, description?: string) => Promise<import("../Types").NewsletterMetadata>;
|
|
56
56
|
newsletterUpdate: (jid: string, updates: import("../Types").NewsletterUpdate) => Promise<unknown>;
|
|
57
57
|
newsletterSubscribers: (jid: string) => Promise<{
|
|
@@ -96,7 +96,7 @@ export declare const makeBusinessSocket: (config: SocketConfig) => {
|
|
|
96
96
|
groupRevokeInvite: (jid: string) => Promise<string>;
|
|
97
97
|
groupAcceptInvite: (code: string) => Promise<string>;
|
|
98
98
|
groupRevokeInviteV4: (groupJid: string, invitedJid: string) => Promise<boolean>;
|
|
99
|
-
groupAcceptInviteV4: (key:
|
|
99
|
+
groupAcceptInviteV4: (key: any, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
|
|
100
100
|
groupGetInviteInfo: (code: string) => Promise<import("../Types").GroupMetadata>;
|
|
101
101
|
groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
|
|
102
102
|
groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
|
|
@@ -126,7 +126,7 @@ export declare const makeBusinessSocket: (config: SocketConfig) => {
|
|
|
126
126
|
notificationMutex: {
|
|
127
127
|
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
128
128
|
};
|
|
129
|
-
upsertMessage: (msg:
|
|
129
|
+
upsertMessage: (msg: any, type: import("../Types").MessageUpsertType) => Promise<void>;
|
|
130
130
|
appPatch: (patchCreate: import("../Types").WAPatchCreate) => Promise<void>;
|
|
131
131
|
sendPresenceUpdate: (type: import("../Types").WAPresence, toJid?: string) => Promise<void>;
|
|
132
132
|
presenceSubscribe: (toJid: string) => Promise<void>;
|
|
@@ -156,7 +156,7 @@ export declare const makeBusinessSocket: (config: SocketConfig) => {
|
|
|
156
156
|
resyncAppState: (collections: readonly ("critical_unblock_low" | "regular_high" | "regular_low" | "critical_block" | "regular")[], isInitialSync: boolean) => Promise<void>;
|
|
157
157
|
chatModify: (mod: import("../Types").ChatModification, jid: string) => Promise<void>;
|
|
158
158
|
cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: number | string) => Promise<void>;
|
|
159
|
-
addOrEditContact: (jid: string, contact:
|
|
159
|
+
addOrEditContact: (jid: string, contact: proto.SyncActionValue.IContactAction) => Promise<void>;
|
|
160
160
|
removeContact: (jid: string) => Promise<void>;
|
|
161
161
|
placeholderResendCache: import("../Types").CacheStore;
|
|
162
162
|
addLabel: (jid: string, labels: import("../Types/Label").LabelActionBody) => Promise<void>;
|
package/lib/Socket/chats.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Boom } from '@hapi/boom';
|
|
2
2
|
import { proto } from '../../WAProto/index.js';
|
|
3
|
-
import type { BotListInfo, CacheStore, ChatModification, MessageUpsertType, SocketConfig, WABusinessProfile, WAMediaUpload,
|
|
3
|
+
import type { BotListInfo, CacheStore, ChatModification, MessageUpsertType, SocketConfig, WABusinessProfile, WAMediaUpload, WAPatchCreate, WAPresence, WAPrivacyCallValue, WAPrivacyGroupAddValue, WAPrivacyMessagesValue, WAPrivacyOnlineValue, WAPrivacyValue, WAReadReceiptsValue } from '../Types';
|
|
4
4
|
import type { QuickReplyAction } from '../Types/Bussines.js';
|
|
5
5
|
import type { LabelActionBody } from '../Types/Label';
|
|
6
6
|
import { type BinaryNode } from '../WABinary';
|
|
@@ -34,7 +34,7 @@ export declare const makeChatsSocket: (config: SocketConfig) => {
|
|
|
34
34
|
fetchPrivacySettings: (force?: boolean) => Promise<{
|
|
35
35
|
[_: string]: string;
|
|
36
36
|
}>;
|
|
37
|
-
upsertMessage: (msg:
|
|
37
|
+
upsertMessage: (msg: any, type: MessageUpsertType) => Promise<void>;
|
|
38
38
|
appPatch: (patchCreate: WAPatchCreate) => Promise<void>;
|
|
39
39
|
sendPresenceUpdate: (type: WAPresence, toJid?: string) => Promise<void>;
|
|
40
40
|
presenceSubscribe: (toJid: string) => Promise<void>;
|
package/lib/Socket/chats.js
CHANGED
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.makeChatsSocket = exports.buildProfilePictureQueryContent = void 0;
|
|
7
|
+
// @ts-nocheck
|
|
7
8
|
const node_cache_1 = __importDefault(require("@cacheable/node-cache"));
|
|
8
9
|
const boom_1 = require("@hapi/boom");
|
|
9
10
|
const index_js_1 = require("../../WAProto/index.js");
|
|
@@ -42,7 +42,7 @@ export declare const makeCommunitiesSocket: (config: SocketConfig) => {
|
|
|
42
42
|
* @param key the key of the invite message, or optionally only provide the jid of the person who sent the invite
|
|
43
43
|
* @param inviteMessage the message to accept
|
|
44
44
|
*/
|
|
45
|
-
communityAcceptInviteV4: (key:
|
|
45
|
+
communityAcceptInviteV4: (key: any, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
|
|
46
46
|
communityGetInviteInfo: (code: string) => Promise<GroupMetadata>;
|
|
47
47
|
communityToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
|
|
48
48
|
communitySettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
|
|
@@ -99,8 +99,8 @@ export declare const makeCommunitiesSocket: (config: SocketConfig) => {
|
|
|
99
99
|
jid: string;
|
|
100
100
|
})[]>;
|
|
101
101
|
updateMemberLabel: (jid: string, memberLabel: string) => Promise<string>;
|
|
102
|
-
updateMediaMessage: (message: import("../Types").WAMessage) => Promise<
|
|
103
|
-
sendMessage: (jid: string, content: import("../Types").AnyMessageContent, options?: import("../Types").MiscMessageGenerationOptions) => Promise<
|
|
102
|
+
updateMediaMessage: (message: import("../Types").WAMessage) => Promise<any>;
|
|
103
|
+
sendMessage: (jid: string, content: import("../Types").AnyMessageContent, options?: import("../Types").MiscMessageGenerationOptions) => Promise<any>;
|
|
104
104
|
newsletterCreate: (name: string, description?: string) => Promise<import("../Types").NewsletterMetadata>;
|
|
105
105
|
newsletterUpdate: (jid: string, updates: import("../Types").NewsletterUpdate) => Promise<unknown>;
|
|
106
106
|
newsletterSubscribers: (jid: string) => Promise<{
|
|
@@ -145,7 +145,7 @@ export declare const makeCommunitiesSocket: (config: SocketConfig) => {
|
|
|
145
145
|
groupRevokeInvite: (jid: string) => Promise<string>;
|
|
146
146
|
groupAcceptInvite: (code: string) => Promise<string>;
|
|
147
147
|
groupRevokeInviteV4: (groupJid: string, invitedJid: string) => Promise<boolean>;
|
|
148
|
-
groupAcceptInviteV4: (key:
|
|
148
|
+
groupAcceptInviteV4: (key: any, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
|
|
149
149
|
groupGetInviteInfo: (code: string) => Promise<GroupMetadata>;
|
|
150
150
|
groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
|
|
151
151
|
groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
|
|
@@ -175,7 +175,7 @@ export declare const makeCommunitiesSocket: (config: SocketConfig) => {
|
|
|
175
175
|
notificationMutex: {
|
|
176
176
|
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
177
177
|
};
|
|
178
|
-
upsertMessage: (msg:
|
|
178
|
+
upsertMessage: (msg: any, type: import("../Types").MessageUpsertType) => Promise<void>;
|
|
179
179
|
appPatch: (patchCreate: import("../Types").WAPatchCreate) => Promise<void>;
|
|
180
180
|
sendPresenceUpdate: (type: import("../Types").WAPresence, toJid?: string) => Promise<void>;
|
|
181
181
|
presenceSubscribe: (toJid: string) => Promise<void>;
|
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.extractCommunityMetadata = exports.makeCommunitiesSocket = void 0;
|
|
7
|
+
// @ts-nocheck
|
|
7
8
|
const index_js_1 = require("../../WAProto/index.js");
|
|
8
9
|
const Types_1 = require("../Types");
|
|
9
10
|
const Utils_1 = require("../Utils");
|
package/lib/Socket/groups.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Boom } from '@hapi/boom';
|
|
2
2
|
import { proto } from '../../WAProto/index.js';
|
|
3
|
-
import type { GroupMetadata, ParticipantAction, SocketConfig
|
|
3
|
+
import type { GroupMetadata, ParticipantAction, SocketConfig } from '../Types';
|
|
4
4
|
import { type BinaryNode } from '../WABinary';
|
|
5
5
|
export declare const makeGroupsSocket: (config: SocketConfig) => {
|
|
6
6
|
groupMetadata: (jid: string) => Promise<GroupMetadata>;
|
|
@@ -35,7 +35,7 @@ export declare const makeGroupsSocket: (config: SocketConfig) => {
|
|
|
35
35
|
* @param key the key of the invite message, or optionally only provide the jid of the person who sent the invite
|
|
36
36
|
* @param inviteMessage the message to accept
|
|
37
37
|
*/
|
|
38
|
-
groupAcceptInviteV4: (key:
|
|
38
|
+
groupAcceptInviteV4: (key: any, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
|
|
39
39
|
groupGetInviteInfo: (code: string) => Promise<GroupMetadata>;
|
|
40
40
|
groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
|
|
41
41
|
groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
|
|
@@ -68,7 +68,7 @@ export declare const makeGroupsSocket: (config: SocketConfig) => {
|
|
|
68
68
|
fetchPrivacySettings: (force?: boolean) => Promise<{
|
|
69
69
|
[_: string]: string;
|
|
70
70
|
}>;
|
|
71
|
-
upsertMessage: (msg:
|
|
71
|
+
upsertMessage: (msg: any, type: import("../Types").MessageUpsertType) => Promise<void>;
|
|
72
72
|
appPatch: (patchCreate: import("../Types").WAPatchCreate) => Promise<void>;
|
|
73
73
|
sendPresenceUpdate: (type: import("../Types").WAPresence, toJid?: string) => Promise<void>;
|
|
74
74
|
presenceSubscribe: (toJid: string) => Promise<void>;
|
package/lib/Socket/groups.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.extractGroupMetadata = exports.makeGroupsSocket = void 0;
|
|
4
|
+
// @ts-nocheck
|
|
4
5
|
const boom_1 = require("@hapi/boom");
|
|
5
6
|
const index_js_1 = require("../../WAProto/index.js");
|
|
6
7
|
const Types_1 = require("../Types");
|
package/lib/Socket/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
|
|
|
29
29
|
communityRevokeInvite: (jid: string) => Promise<string>;
|
|
30
30
|
communityAcceptInvite: (code: string) => Promise<string>;
|
|
31
31
|
communityRevokeInviteV4: (communityJid: string, invitedJid: string) => Promise<boolean>;
|
|
32
|
-
communityAcceptInviteV4: (key:
|
|
32
|
+
communityAcceptInviteV4: (key: any, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
|
|
33
33
|
communityGetInviteInfo: (code: string) => Promise<import("../Types").GroupMetadata>;
|
|
34
34
|
communityToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
|
|
35
35
|
communitySettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
|
|
@@ -67,7 +67,7 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
|
|
|
67
67
|
};
|
|
68
68
|
issuePrivacyTokens: (jids: string[], timestamp?: number) => Promise<any>;
|
|
69
69
|
assertSessions: (jids: string[], force?: boolean) => Promise<boolean>;
|
|
70
|
-
relayMessage: (jid: string, message:
|
|
70
|
+
relayMessage: (jid: string, message: proto.IMessage, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, useCachedGroupMetadata, statusJidList }: import("../Types").MessageRelayOptions) => Promise<string>;
|
|
71
71
|
sendReceipt: (jid: string, participant: string | undefined, messageIds: string[], type: import("../Types").MessageReceiptType) => Promise<void>;
|
|
72
72
|
sendReceipts: (keys: import("../Types").WAMessageKey[], type: import("../Types").MessageReceiptType) => Promise<void>;
|
|
73
73
|
readMessages: (keys: import("../Types").WAMessageKey[]) => Promise<void>;
|
|
@@ -77,8 +77,8 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
|
|
|
77
77
|
fetchPrivacySettings: (force?: boolean) => Promise<{
|
|
78
78
|
[_: string]: string;
|
|
79
79
|
}>;
|
|
80
|
-
sendPeerDataOperationMessage: (pdoMessage:
|
|
81
|
-
createParticipantNodes: (recipientJids: string[], message:
|
|
80
|
+
sendPeerDataOperationMessage: (pdoMessage: proto.Message.IPeerDataOperationRequestMessage) => Promise<string>;
|
|
81
|
+
createParticipantNodes: (recipientJids: string[], message: proto.IMessage, extraAttrs?: import("..").BinaryNode["attrs"], dsmMessage?: proto.IMessage) => Promise<{
|
|
82
82
|
nodes: import("..").BinaryNode[];
|
|
83
83
|
shouldIncludeDeviceIdentity: boolean;
|
|
84
84
|
}>;
|
|
@@ -86,8 +86,8 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
|
|
|
86
86
|
jid: string;
|
|
87
87
|
})[]>;
|
|
88
88
|
updateMemberLabel: (jid: string, memberLabel: string) => Promise<string>;
|
|
89
|
-
updateMediaMessage: (message: import("../Types").WAMessage) => Promise<
|
|
90
|
-
sendMessage: (jid: string, content: import("../Types").AnyMessageContent, options?: import("../Types").MiscMessageGenerationOptions) => Promise<
|
|
89
|
+
updateMediaMessage: (message: import("../Types").WAMessage) => Promise<any>;
|
|
90
|
+
sendMessage: (jid: string, content: import("../Types").AnyMessageContent, options?: import("../Types").MiscMessageGenerationOptions) => Promise<any>;
|
|
91
91
|
newsletterCreate: (name: string, description?: string) => Promise<import("../Types").NewsletterMetadata>;
|
|
92
92
|
newsletterUpdate: (jid: string, updates: import("../Types").NewsletterUpdate) => Promise<unknown>;
|
|
93
93
|
newsletterSubscribers: (jid: string) => Promise<{
|
|
@@ -132,7 +132,7 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
|
|
|
132
132
|
groupRevokeInvite: (jid: string) => Promise<string>;
|
|
133
133
|
groupAcceptInvite: (code: string) => Promise<string>;
|
|
134
134
|
groupRevokeInviteV4: (groupJid: string, invitedJid: string) => Promise<boolean>;
|
|
135
|
-
groupAcceptInviteV4: (key:
|
|
135
|
+
groupAcceptInviteV4: (key: any, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
|
|
136
136
|
groupGetInviteInfo: (code: string) => Promise<import("../Types").GroupMetadata>;
|
|
137
137
|
groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
|
|
138
138
|
groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
|
|
@@ -162,7 +162,7 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
|
|
|
162
162
|
notificationMutex: {
|
|
163
163
|
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
164
164
|
};
|
|
165
|
-
upsertMessage: (msg:
|
|
165
|
+
upsertMessage: (msg: any, type: import("../Types").MessageUpsertType) => Promise<void>;
|
|
166
166
|
appPatch: (patchCreate: import("../Types").WAPatchCreate) => Promise<void>;
|
|
167
167
|
sendPresenceUpdate: (type: import("../Types").WAPresence, toJid?: string) => Promise<void>;
|
|
168
168
|
presenceSubscribe: (toJid: string) => Promise<void>;
|
|
@@ -192,7 +192,7 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
|
|
|
192
192
|
resyncAppState: (collections: readonly ("critical_unblock_low" | "regular_high" | "regular_low" | "critical_block" | "regular")[], isInitialSync: boolean) => Promise<void>;
|
|
193
193
|
chatModify: (mod: import("../Types").ChatModification, jid: string) => Promise<void>;
|
|
194
194
|
cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: number | string) => Promise<void>;
|
|
195
|
-
addOrEditContact: (jid: string, contact:
|
|
195
|
+
addOrEditContact: (jid: string, contact: proto.SyncActionValue.IContactAction) => Promise<void>;
|
|
196
196
|
removeContact: (jid: string) => Promise<void>;
|
|
197
197
|
placeholderResendCache: import("../Types").CacheStore;
|
|
198
198
|
addLabel: (jid: string, labels: import("../Types/Label").LabelActionBody) => Promise<void>;
|
package/lib/Socket/index.js
CHANGED
|
@@ -36,8 +36,8 @@ export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
|
|
|
36
36
|
jid: string;
|
|
37
37
|
})[]>;
|
|
38
38
|
updateMemberLabel: (jid: string, memberLabel: string) => Promise<string>;
|
|
39
|
-
updateMediaMessage: (message: WAMessage) => Promise<
|
|
40
|
-
sendMessage: (jid: string, content: import("../Types").AnyMessageContent, options?: import("../Types").MiscMessageGenerationOptions) => Promise<
|
|
39
|
+
updateMediaMessage: (message: WAMessage) => Promise<any>;
|
|
40
|
+
sendMessage: (jid: string, content: import("../Types").AnyMessageContent, options?: import("../Types").MiscMessageGenerationOptions) => Promise<any>;
|
|
41
41
|
newsletterCreate: (name: string, description?: string) => Promise<import("../Types").NewsletterMetadata>;
|
|
42
42
|
newsletterUpdate: (jid: string, updates: import("../Types").NewsletterUpdate) => Promise<unknown>;
|
|
43
43
|
newsletterSubscribers: (jid: string) => Promise<{
|
|
@@ -82,7 +82,7 @@ export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
|
|
|
82
82
|
groupRevokeInvite: (jid: string) => Promise<string>;
|
|
83
83
|
groupAcceptInvite: (code: string) => Promise<string>;
|
|
84
84
|
groupRevokeInviteV4: (groupJid: string, invitedJid: string) => Promise<boolean>;
|
|
85
|
-
groupAcceptInviteV4: (key:
|
|
85
|
+
groupAcceptInviteV4: (key: any, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
|
|
86
86
|
groupGetInviteInfo: (code: string) => Promise<import("../Types").GroupMetadata>;
|
|
87
87
|
groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
|
|
88
88
|
groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
|
|
@@ -112,7 +112,7 @@ export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
|
|
|
112
112
|
notificationMutex: {
|
|
113
113
|
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
114
114
|
};
|
|
115
|
-
upsertMessage: (msg:
|
|
115
|
+
upsertMessage: (msg: any, type: import("../Types").MessageUpsertType) => Promise<void>;
|
|
116
116
|
appPatch: (patchCreate: import("../Types").WAPatchCreate) => Promise<void>;
|
|
117
117
|
sendPresenceUpdate: (type: import("../Types").WAPresence, toJid?: string) => Promise<void>;
|
|
118
118
|
presenceSubscribe: (toJid: string) => Promise<void>;
|
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.makeMessagesRecvSocket = void 0;
|
|
7
|
+
// @ts-nocheck
|
|
7
8
|
const node_cache_1 = __importDefault(require("@cacheable/node-cache"));
|
|
8
9
|
const boom_1 = require("@hapi/boom");
|
|
9
10
|
const crypto_1 = require("crypto");
|
|
@@ -32,8 +32,8 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
|
|
|
32
32
|
})[]>;
|
|
33
33
|
messageRetryManager: MessageRetryManager;
|
|
34
34
|
updateMemberLabel: (jid: string, memberLabel: string) => Promise<string>;
|
|
35
|
-
updateMediaMessage: (message: WAMessage) => Promise<
|
|
36
|
-
sendMessage: (jid: string, content: AnyMessageContent, options?: MiscMessageGenerationOptions) => Promise<
|
|
35
|
+
updateMediaMessage: (message: WAMessage) => Promise<any>;
|
|
36
|
+
sendMessage: (jid: string, content: AnyMessageContent, options?: MiscMessageGenerationOptions) => Promise<any>;
|
|
37
37
|
newsletterCreate: (name: string, description?: string) => Promise<import("../Types").NewsletterMetadata>;
|
|
38
38
|
newsletterUpdate: (jid: string, updates: import("../Types").NewsletterUpdate) => Promise<unknown>;
|
|
39
39
|
newsletterSubscribers: (jid: string) => Promise<{
|
|
@@ -78,7 +78,7 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
|
|
|
78
78
|
groupRevokeInvite: (jid: string) => Promise<string>;
|
|
79
79
|
groupAcceptInvite: (code: string) => Promise<string>;
|
|
80
80
|
groupRevokeInviteV4: (groupJid: string, invitedJid: string) => Promise<boolean>;
|
|
81
|
-
groupAcceptInviteV4: (key:
|
|
81
|
+
groupAcceptInviteV4: (key: any, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
|
|
82
82
|
groupGetInviteInfo: (code: string) => Promise<import("../Types").GroupMetadata>;
|
|
83
83
|
groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
|
|
84
84
|
groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
|
|
@@ -108,7 +108,7 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
|
|
|
108
108
|
notificationMutex: {
|
|
109
109
|
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
110
110
|
};
|
|
111
|
-
upsertMessage: (msg:
|
|
111
|
+
upsertMessage: (msg: any, type: import("../Types").MessageUpsertType) => Promise<void>;
|
|
112
112
|
appPatch: (patchCreate: import("../Types").WAPatchCreate) => Promise<void>;
|
|
113
113
|
sendPresenceUpdate: (type: import("../Types").WAPresence, toJid?: string) => Promise<void>;
|
|
114
114
|
presenceSubscribe: (toJid: string) => Promise<void>;
|
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.makeMessagesSocket = void 0;
|
|
7
|
+
// @ts-nocheck
|
|
7
8
|
const node_cache_1 = __importDefault(require("@cacheable/node-cache"));
|
|
8
9
|
const boom_1 = require("@hapi/boom");
|
|
9
10
|
const index_js_1 = require("../../WAProto/index.js");
|
package/lib/Socket/mex.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.executeWMexQuery = void 0;
|
|
4
|
+
// @ts-nocheck
|
|
4
5
|
const boom_1 = require("@hapi/boom");
|
|
5
6
|
const WABinary_1 = require("../WABinary");
|
|
6
7
|
const wMexQuery = (variables, queryId, query, generateMessageTag) => {
|
|
@@ -45,7 +45,7 @@ export declare const makeNewsletterSocket: (config: SocketConfig) => {
|
|
|
45
45
|
groupRevokeInvite: (jid: string) => Promise<string>;
|
|
46
46
|
groupAcceptInvite: (code: string) => Promise<string>;
|
|
47
47
|
groupRevokeInviteV4: (groupJid: string, invitedJid: string) => Promise<boolean>;
|
|
48
|
-
groupAcceptInviteV4: (key:
|
|
48
|
+
groupAcceptInviteV4: (key: any, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
|
|
49
49
|
groupGetInviteInfo: (code: string) => Promise<import("../Types").GroupMetadata>;
|
|
50
50
|
groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
|
|
51
51
|
groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
|
|
@@ -78,7 +78,7 @@ export declare const makeNewsletterSocket: (config: SocketConfig) => {
|
|
|
78
78
|
fetchPrivacySettings: (force?: boolean) => Promise<{
|
|
79
79
|
[_: string]: string;
|
|
80
80
|
}>;
|
|
81
|
-
upsertMessage: (msg:
|
|
81
|
+
upsertMessage: (msg: any, type: import("../Types").MessageUpsertType) => Promise<void>;
|
|
82
82
|
appPatch: (patchCreate: import("../Types").WAPatchCreate) => Promise<void>;
|
|
83
83
|
sendPresenceUpdate: (type: import("../Types").WAPresence, toJid?: string) => Promise<void>;
|
|
84
84
|
presenceSubscribe: (toJid: string) => Promise<void>;
|
|
@@ -108,7 +108,7 @@ export declare const makeNewsletterSocket: (config: SocketConfig) => {
|
|
|
108
108
|
resyncAppState: (collections: readonly ("critical_unblock_low" | "regular_high" | "regular_low" | "critical_block" | "regular")[], isInitialSync: boolean) => Promise<void>;
|
|
109
109
|
chatModify: (mod: import("../Types").ChatModification, jid: string) => Promise<void>;
|
|
110
110
|
cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: number | string) => Promise<void>;
|
|
111
|
-
addOrEditContact: (jid: string, contact:
|
|
111
|
+
addOrEditContact: (jid: string, contact: proto.SyncActionValue.IContactAction) => Promise<void>;
|
|
112
112
|
removeContact: (jid: string) => Promise<void>;
|
|
113
113
|
placeholderResendCache: import("../Types").CacheStore;
|
|
114
114
|
addLabel: (jid: string, labels: import("../Types/Label").LabelActionBody) => Promise<void>;
|
package/lib/Socket/socket.js
CHANGED
package/lib/Types/Message.d.ts
CHANGED
|
@@ -28,8 +28,8 @@ export type WATextMessage = proto.Message.IExtendedTextMessage;
|
|
|
28
28
|
export type WAContextInfo = proto.IContextInfo;
|
|
29
29
|
export type WALocationMessage = proto.Message.ILocationMessage;
|
|
30
30
|
export type WAGenericMediaMessage = proto.Message.IVideoMessage | proto.Message.IImageMessage | proto.Message.IAudioMessage | proto.Message.IDocumentMessage | proto.Message.IStickerMessage;
|
|
31
|
-
export declare const WAMessageStubType:
|
|
32
|
-
export declare const WAMessageStatus:
|
|
31
|
+
export declare const WAMessageStubType: any;
|
|
32
|
+
export declare const WAMessageStatus: any;
|
|
33
33
|
import type { ILogger } from '../Utils/logger';
|
|
34
34
|
export type WAMediaPayloadURL = {
|
|
35
35
|
url: URL | string;
|
package/lib/Types/Mex.js
CHANGED