@fer2809fl/baileys 7.0.1 → 7.0.4
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 +322 -578
- package/WAProto/WAProto.proto +916 -360
- package/WAProto/fix-imports.js +18 -22
- package/WAProto/index.d.ts +15471 -8638
- package/WAProto/index.js +80576 -45941
- package/lib/Defaults/index.d.ts +14 -18
- package/lib/Defaults/index.js +111 -115
- package/lib/Signal/libsignal.js +22 -31
- package/lib/Signal/lid-mapping.d.ts +0 -4
- package/lib/Signal/lid-mapping.js +0 -6
- package/lib/Socket/business.d.ts +8 -75
- package/lib/Socket/business.js +1 -0
- package/lib/Socket/chats.d.ts +0 -6
- package/lib/Socket/chats.js +3 -67
- package/lib/Socket/communities.d.ts +641 -336
- package/lib/Socket/communities.js +3 -6
- package/lib/Socket/dugong.d.ts +130 -0
- package/lib/Socket/dugong.js +772 -0
- package/lib/Socket/groups.d.ts +18 -23
- package/lib/Socket/groups.js +88 -168
- package/lib/Socket/index.d.ts +631 -322
- package/lib/Socket/index.js +12 -9
- package/lib/Socket/messages-recv.d.ts +52 -84
- package/lib/Socket/messages-recv.js +193 -677
- package/lib/Socket/messages-send.d.ts +643 -262
- package/lib/Socket/messages-send.js +1559 -1359
- package/lib/Socket/mex.d.ts +0 -1
- package/lib/Socket/mex.js +8 -22
- package/lib/Socket/native-buttons.js +231 -0
- package/lib/Socket/newsletter.d.ts +27 -42
- package/lib/Socket/newsletter.js +439 -402
- package/lib/Socket/socket.d.ts +2 -6
- package/lib/Socket/socket.js +47 -39
- package/lib/Types/Auth.d.ts +0 -1
- package/lib/Types/Bussines.d.ts +34 -22
- package/lib/Types/Call.d.ts +1 -1
- package/lib/Types/Chat.d.ts +0 -1
- package/lib/Types/Contact.d.ts +0 -2
- package/lib/Types/Events.d.ts +1 -20
- package/lib/Types/GroupMetadata.d.ts +1 -4
- package/lib/Types/Message.d.ts +348 -354
- package/lib/Types/Message.js +0 -4
- package/lib/Types/{Mex.d.ts → Newsletter.d.ts} +7 -17
- package/lib/Types/{Mex.js → Newsletter.js} +5 -3
- package/lib/Types/Signal.d.ts +1 -12
- package/lib/Types/Socket.d.ts +148 -135
- package/lib/Types/State.d.ts +0 -65
- package/lib/Types/State.js +0 -43
- package/lib/Types/index.d.ts +52 -52
- package/lib/Types/index.js +30 -23
- package/lib/Utils/auth-utils.d.ts +0 -5
- package/lib/Utils/auth-utils.js +0 -12
- package/lib/Utils/browser-utils.js +0 -1
- package/lib/Utils/crypto.d.ts +12 -12
- package/lib/Utils/decode-wa-message.d.ts +0 -18
- package/lib/Utils/decode-wa-message.js +0 -34
- package/lib/Utils/event-buffer.d.ts +0 -2
- package/lib/Utils/generics.d.ts +2 -3
- package/lib/Utils/generics.js +1 -10
- package/lib/Utils/history.d.ts +0 -2
- package/lib/Utils/history.js +9 -12
- package/lib/Utils/identity-change-handler.d.ts +0 -7
- package/lib/Utils/identity-change-handler.js +0 -1
- package/lib/Utils/index.d.ts +23 -30
- package/lib/Utils/index.js +3 -9
- package/lib/Utils/link-preview.js +2 -2
- package/lib/Utils/message-retry-manager.d.ts +0 -5
- package/lib/Utils/message-retry-manager.js +11 -11
- package/lib/Utils/messages-media.d.ts +13 -45
- package/lib/Utils/messages-media.js +98 -293
- package/lib/Utils/messages.d.ts +3 -16
- package/lib/Utils/messages.js +1123 -1219
- package/lib/Utils/noise-handler.d.ts +1 -1
- package/lib/Utils/process-message.js +1 -103
- package/lib/Utils/rich-messages.d.ts +277 -0
- package/lib/Utils/rich-messages.js +1144 -0
- package/lib/Utils/signal.d.ts +0 -13
- package/lib/Utils/signal.js +0 -42
- package/lib/Utils/sticker-pack.d.ts +10 -0
- package/lib/Utils/sticker-pack.js +111 -0
- package/lib/Utils/sync-action-utils.js +0 -1
- package/lib/Utils/tc-token-utils.d.ts +1 -26
- package/lib/Utils/tc-token-utils.js +5 -151
- package/lib/Utils/validate-connection.d.ts +0 -1
- package/lib/Utils/validate-connection.js +3 -13
- package/lib/WABinary/decode.d.ts +1 -1
- package/lib/WABinary/generic-utils.d.ts +3 -1
- package/lib/WABinary/generic-utils.js +78 -0
- package/lib/WABinary/jid-utils.d.ts +0 -11
- package/lib/WABinary/jid-utils.js +0 -33
- package/lib/WAM/encode.d.ts +1 -1
- package/lib/WAUSync/Protocols/USyncContactProtocol.js +3 -26
- package/lib/WAUSync/Protocols/index.d.ts +0 -1
- package/lib/WAUSync/USyncQuery.d.ts +0 -1
- package/lib/WAUSync/USyncQuery.js +1 -1
- package/lib/WAUSync/USyncUser.d.ts +0 -4
- package/lib/WAUSync/USyncUser.js +0 -8
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -4
- package/package.json +27 -31
- package/LICENSE +0 -21
- 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.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/smgss.d.ts +0 -119
- package/lib/Socket/smgss.d.ts.map +0 -1
- package/lib/Socket/smgss.js +0 -453
- package/lib/Socket/smgss.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 -132
- package/lib/Store/make-in-memory-store.d.ts.map +0 -1
- package/lib/Store/make-in-memory-store.js +0 -450
- package/lib/Store/make-in-memory-store.js.map +0 -1
- package/lib/Store/make-ordered-dictionary.d.ts +0 -14
- package/lib/Store/make-ordered-dictionary.d.ts.map +0 -1
- package/lib/Store/make-ordered-dictionary.js +0 -80
- package/lib/Store/make-ordered-dictionary.js.map +0 -1
- package/lib/Store/object-repository.d.ts +0 -13
- 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/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/button-handler.d.ts +0 -28
- package/lib/Utils/button-handler.d.ts.map +0 -1
- package/lib/Utils/button-handler.js +0 -140
- package/lib/Utils/button-handler.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/interactive.d.ts +0 -60
- package/lib/Utils/interactive.d.ts.map +0 -1
- package/lib/Utils/interactive.js +0 -224
- package/lib/Utils/interactive.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-composer.d.ts +0 -93
- package/lib/Utils/message-composer.d.ts.map +0 -1
- package/lib/Utils/message-composer.js +0 -311
- package/lib/Utils/message-composer.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-newsletter.d.ts +0 -74
- package/lib/Utils/messages-newsletter.d.ts.map +0 -1
- package/lib/Utils/messages-newsletter.js +0 -128
- package/lib/Utils/messages-newsletter.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/shortcake-crypto.d.ts +0 -36
- package/lib/Utils/shortcake-crypto.d.ts.map +0 -1
- package/lib/Utils/shortcake-crypto.js +0 -71
- package/lib/Utils/shortcake-crypto.js.map +0 -1
- package/lib/Utils/shortcake.d.ts +0 -36
- package/lib/Utils/shortcake.d.ts.map +0 -1
- package/lib/Utils/shortcake.js +0 -162
- package/lib/Utils/shortcake.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 -6
- package/lib/Utils/use-single-file-auth-state.d.ts.map +0 -1
- package/lib/Utils/use-single-file-auth-state.js +0 -111
- package/lib/Utils/use-single-file-auth-state.js.map +0 -1
- package/lib/Utils/use-sqlite-auth-state.d.ts +0 -14
- package/lib/Utils/use-sqlite-auth-state.d.ts.map +0 -1
- package/lib/Utils/use-sqlite-auth-state.js +0 -107
- 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/index.d.ts.map +0 -1
- package/lib/index.js.map +0 -1
package/lib/Types/Message.js
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { proto } from '../../WAProto/index.js';
|
|
2
2
|
// export the WAMessage Prototypes
|
|
3
3
|
export { proto as WAProto };
|
|
4
|
-
export const ButtonHeaderType = proto.Message.ButtonsMessage.HeaderType;
|
|
5
|
-
export const ButtonType = proto.Message.ButtonsMessage.Button.Type;
|
|
6
|
-
export const CarouselCardType = proto.Message.InteractiveMessage.CarouselMessage.CarouselCardType;
|
|
7
|
-
export const ListType = proto.Message.ListMessage.ListType;
|
|
8
4
|
export const WAMessageStubType = proto.WebMessageInfo.StubType;
|
|
9
5
|
export const WAMessageStatus = proto.WebMessageInfo.Status;
|
|
10
6
|
export var WAMessageAddressingMode;
|
|
@@ -13,10 +13,12 @@ export declare enum XWAPaths {
|
|
|
13
13
|
xwa2_newsletter_change_owner = "xwa2_newsletter_change_owner",
|
|
14
14
|
xwa2_newsletter_demote = "xwa2_newsletter_demote",
|
|
15
15
|
xwa2_newsletter_delete_v2 = "xwa2_newsletter_delete_v2",
|
|
16
|
-
xwa2_newsletter_subscribed = "xwa2_newsletter_subscribed",
|
|
17
16
|
xwa2_fetch_account_reachout_timelock = "xwa2_fetch_account_reachout_timelock",
|
|
18
17
|
xwa2_message_capping_info = "xwa2_message_capping_info"
|
|
19
18
|
}
|
|
19
|
+
export declare enum ReachoutTimelockEnforcementType {
|
|
20
|
+
DEFAULT = "DEFAULT"
|
|
21
|
+
}
|
|
20
22
|
export declare enum QueryIds {
|
|
21
23
|
CREATE = "8823471724422422",
|
|
22
24
|
UPDATE_METADATA = "24250201037901610",
|
|
@@ -31,18 +33,12 @@ export declare enum QueryIds {
|
|
|
31
33
|
DEMOTE = "6551828931592903",
|
|
32
34
|
DELETE = "30062808666639665",
|
|
33
35
|
REACHOUT_TIMELOCK = "23983697327930364",
|
|
34
|
-
MESSAGE_CAPPING_INFO = "24503548349331633"
|
|
35
|
-
SUBSCRIBED = "9926858900865316"
|
|
36
|
+
MESSAGE_CAPPING_INFO = "24503548349331633"
|
|
36
37
|
}
|
|
37
38
|
export type NewsletterUpdate = {
|
|
38
39
|
name?: string;
|
|
39
40
|
description?: string;
|
|
40
41
|
picture?: string;
|
|
41
|
-
settings?: {
|
|
42
|
-
reaction_codes?: {
|
|
43
|
-
value: 'ALL' | 'BASIC' | 'NONE' | string;
|
|
44
|
-
};
|
|
45
|
-
} | null;
|
|
46
42
|
};
|
|
47
43
|
export interface NewsletterCreateResponse {
|
|
48
44
|
id: string;
|
|
@@ -121,34 +117,28 @@ export interface NewsletterCreateResponse {
|
|
|
121
117
|
export type NewsletterViewRole = 'ADMIN' | 'GUEST' | 'OWNER' | 'SUBSCRIBER';
|
|
122
118
|
export interface NewsletterMetadata {
|
|
123
119
|
id: string;
|
|
124
|
-
state?: string;
|
|
125
120
|
owner?: string;
|
|
126
121
|
name: string;
|
|
127
|
-
nameTime?: number;
|
|
128
122
|
description?: string;
|
|
129
|
-
descriptionTime?: number;
|
|
130
123
|
invite?: string;
|
|
131
|
-
handle?: string | null;
|
|
132
124
|
creation_time?: number;
|
|
133
125
|
subscribers?: number;
|
|
134
|
-
picture?:
|
|
126
|
+
picture?: {
|
|
135
127
|
url?: string;
|
|
136
128
|
directPath?: string;
|
|
137
129
|
mediaKey?: string;
|
|
138
130
|
id?: string;
|
|
139
131
|
};
|
|
140
|
-
preview?: string;
|
|
141
132
|
verification?: 'VERIFIED' | 'UNVERIFIED';
|
|
142
133
|
reaction_codes?: {
|
|
143
134
|
code: string;
|
|
144
135
|
count: number;
|
|
145
|
-
}[]
|
|
136
|
+
}[];
|
|
146
137
|
mute_state?: 'ON' | 'OFF';
|
|
147
|
-
viewer_metadata?: Record<string, unknown>;
|
|
148
138
|
thread_metadata?: {
|
|
149
139
|
creation_time?: number;
|
|
150
140
|
name?: string;
|
|
151
141
|
description?: string;
|
|
152
142
|
};
|
|
153
143
|
}
|
|
154
|
-
//# sourceMappingURL=
|
|
144
|
+
//# sourceMappingURL=Newsletter.d.ts.map
|
|
@@ -14,10 +14,13 @@ export var XWAPaths;
|
|
|
14
14
|
XWAPaths["xwa2_newsletter_change_owner"] = "xwa2_newsletter_change_owner";
|
|
15
15
|
XWAPaths["xwa2_newsletter_demote"] = "xwa2_newsletter_demote";
|
|
16
16
|
XWAPaths["xwa2_newsletter_delete_v2"] = "xwa2_newsletter_delete_v2";
|
|
17
|
-
XWAPaths["xwa2_newsletter_subscribed"] = "xwa2_newsletter_subscribed";
|
|
18
17
|
XWAPaths["xwa2_fetch_account_reachout_timelock"] = "xwa2_fetch_account_reachout_timelock";
|
|
19
18
|
XWAPaths["xwa2_message_capping_info"] = "xwa2_message_capping_info";
|
|
20
19
|
})(XWAPaths || (XWAPaths = {}));
|
|
20
|
+
export var ReachoutTimelockEnforcementType;
|
|
21
|
+
(function (ReachoutTimelockEnforcementType) {
|
|
22
|
+
ReachoutTimelockEnforcementType["DEFAULT"] = "DEFAULT";
|
|
23
|
+
})(ReachoutTimelockEnforcementType || (ReachoutTimelockEnforcementType = {}));
|
|
21
24
|
export var QueryIds;
|
|
22
25
|
(function (QueryIds) {
|
|
23
26
|
QueryIds["CREATE"] = "8823471724422422";
|
|
@@ -34,6 +37,5 @@ export var QueryIds;
|
|
|
34
37
|
QueryIds["DELETE"] = "30062808666639665";
|
|
35
38
|
QueryIds["REACHOUT_TIMELOCK"] = "23983697327930364";
|
|
36
39
|
QueryIds["MESSAGE_CAPPING_INFO"] = "24503548349331633";
|
|
37
|
-
QueryIds["SUBSCRIBED"] = "9926858900865316";
|
|
38
40
|
})(QueryIds || (QueryIds = {}));
|
|
39
|
-
//# sourceMappingURL=
|
|
41
|
+
//# sourceMappingURL=Newsletter.js.map
|
package/lib/Types/Signal.d.ts
CHANGED
|
@@ -23,10 +23,6 @@ type EncryptGroupMessageOpts = {
|
|
|
23
23
|
data: Uint8Array;
|
|
24
24
|
meId: string;
|
|
25
25
|
};
|
|
26
|
-
type GetSenderKeyDistributionMessageOpts = {
|
|
27
|
-
group: string;
|
|
28
|
-
meId: string;
|
|
29
|
-
};
|
|
30
26
|
type PreKey = {
|
|
31
27
|
keyId: number;
|
|
32
28
|
publicKey: Uint8Array;
|
|
@@ -38,7 +34,7 @@ type E2ESession = {
|
|
|
38
34
|
registrationId: number;
|
|
39
35
|
identityKey: Uint8Array;
|
|
40
36
|
signedPreKey: SignedPreKey;
|
|
41
|
-
preKey
|
|
37
|
+
preKey: PreKey;
|
|
42
38
|
};
|
|
43
39
|
type E2ESessionOpts = {
|
|
44
40
|
jid: string;
|
|
@@ -56,12 +52,6 @@ export type SignalRepository = {
|
|
|
56
52
|
senderKeyDistributionMessage: Uint8Array;
|
|
57
53
|
ciphertext: Uint8Array;
|
|
58
54
|
}>;
|
|
59
|
-
getSenderKeyDistributionMessage(opts: GetSenderKeyDistributionMessageOpts): Promise<Uint8Array>;
|
|
60
|
-
hasSenderKey(opts: GetSenderKeyDistributionMessageOpts): Promise<boolean>;
|
|
61
|
-
getSessionInfo(jid: string): Promise<{
|
|
62
|
-
baseKey: Uint8Array;
|
|
63
|
-
registrationId: number;
|
|
64
|
-
} | null>;
|
|
65
55
|
injectE2ESession(opts: E2ESessionOpts): Promise<void>;
|
|
66
56
|
validateSession(jid: string): Promise<{
|
|
67
57
|
exists: boolean;
|
|
@@ -81,7 +71,6 @@ export type SignalRepository = {
|
|
|
81
71
|
};
|
|
82
72
|
export interface SignalRepositoryWithLIDStore extends SignalRepository {
|
|
83
73
|
lidMapping: LIDMappingStore;
|
|
84
|
-
close?: () => void;
|
|
85
74
|
}
|
|
86
75
|
export {};
|
|
87
76
|
//# sourceMappingURL=Signal.d.ts.map
|
package/lib/Types/Socket.d.ts
CHANGED
|
@@ -1,145 +1,158 @@
|
|
|
1
|
-
import type { Agent } from
|
|
2
|
-
import type { URL } from
|
|
3
|
-
import { proto } from
|
|
4
|
-
import type { ILogger } from
|
|
5
|
-
import type {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import type { Agent } from "https";
|
|
2
|
+
import type { URL } from "url";
|
|
3
|
+
import { proto } from "../../WAProto/index.js";
|
|
4
|
+
import type { ILogger } from "../Utils/logger.js";
|
|
5
|
+
import type {
|
|
6
|
+
AuthenticationState,
|
|
7
|
+
LIDMapping,
|
|
8
|
+
SignalAuthState,
|
|
9
|
+
TransactionCapabilityOptions,
|
|
10
|
+
} from "./Auth.js";
|
|
11
|
+
import type { GroupMetadata } from "./GroupMetadata.js";
|
|
12
|
+
import { type MediaConnInfo, type WAMessageKey } from "./Message.js";
|
|
13
|
+
import type { SignalRepositoryWithLIDStore } from "./Signal.js";
|
|
10
14
|
export type WAVersion = [number, number, number];
|
|
11
15
|
export type WABrowserDescription = [string, string, string];
|
|
12
16
|
export type CacheStore = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
close?: () => void;
|
|
17
|
+
/** get a cached key and change the stats */
|
|
18
|
+
get<T>(key: string): Promise<T> | T | undefined;
|
|
19
|
+
/** set a key in the cache */
|
|
20
|
+
set<T>(key: string, value: T): Promise<void> | void | number | boolean;
|
|
21
|
+
/** delete a key from the cache */
|
|
22
|
+
del(key: string): void | Promise<void> | number | boolean;
|
|
23
|
+
/** flush all data */
|
|
24
|
+
flushAll(): void | Promise<void>;
|
|
22
25
|
};
|
|
23
26
|
export type PossiblyExtendedCacheStore = CacheStore & {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
mget?: <T>(keys: string[]) => Promise<Record<string, T | undefined>>;
|
|
28
|
+
mset?: <T>(
|
|
29
|
+
entries: {
|
|
30
|
+
key: string;
|
|
31
|
+
value: T;
|
|
32
|
+
}[],
|
|
33
|
+
) => Promise<void> | void | number | boolean;
|
|
34
|
+
mdel?: (keys: string[]) => void | Promise<void> | number | boolean;
|
|
30
35
|
};
|
|
31
36
|
export type PatchedMessageWithRecipientJID = proto.IMessage & {
|
|
32
|
-
|
|
37
|
+
recipientJid?: string;
|
|
33
38
|
};
|
|
34
39
|
export type SocketConfig = {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
40
|
+
/** the WS url to connect to WA */
|
|
41
|
+
waWebSocketUrl: string | URL;
|
|
42
|
+
/** Fails the connection if the socket times out in this interval */
|
|
43
|
+
connectTimeoutMs: number;
|
|
44
|
+
/** Default timeout for queries, undefined for no timeout */
|
|
45
|
+
defaultQueryTimeoutMs: number | undefined;
|
|
46
|
+
/** ping-pong interval for WS connection */
|
|
47
|
+
keepAliveIntervalMs: number;
|
|
48
|
+
/** should baileys use the mobile api instead of the multi device api
|
|
49
|
+
* @deprecated This feature has been removed
|
|
50
|
+
*/
|
|
51
|
+
mobile?: boolean;
|
|
52
|
+
/** proxy agent */
|
|
53
|
+
agent?: Agent;
|
|
54
|
+
/** logger */
|
|
55
|
+
logger: ILogger;
|
|
56
|
+
/** version to connect with */
|
|
57
|
+
version: WAVersion;
|
|
58
|
+
/** override browser config */
|
|
59
|
+
browser: WABrowserDescription;
|
|
60
|
+
/** agent used for fetch requests -- uploading/downloading media */
|
|
61
|
+
fetchAgent?: Agent;
|
|
62
|
+
/** should the QR be printed in the terminal
|
|
63
|
+
* @deprecated This feature has been removed
|
|
64
|
+
*/
|
|
65
|
+
printQRInTerminal?: boolean;
|
|
66
|
+
/** should events be emitted for actions done by this socket connection */
|
|
67
|
+
emitOwnEvents: boolean;
|
|
68
|
+
/** custom upload hosts to upload media to */
|
|
69
|
+
customUploadHosts: MediaConnInfo["hosts"];
|
|
70
|
+
/** time to wait between sending new retry requests */
|
|
71
|
+
retryRequestDelayMs: number;
|
|
72
|
+
/** max retry count */
|
|
73
|
+
maxMsgRetryCount: number;
|
|
74
|
+
/** time to wait for the generation of the next QR in ms */
|
|
75
|
+
qrTimeout?: number;
|
|
76
|
+
/** provide an auth state object to maintain the auth state */
|
|
77
|
+
auth: AuthenticationState;
|
|
78
|
+
/** manage history processing with this control; by default will sync up everything */
|
|
79
|
+
shouldSyncHistoryMessage: (
|
|
80
|
+
msg: proto.Message.IHistorySyncNotification,
|
|
81
|
+
) => boolean;
|
|
82
|
+
/** transaction capability options for SignalKeyStore */
|
|
83
|
+
transactionOpts: TransactionCapabilityOptions;
|
|
84
|
+
/** marks the client as online whenever the socket successfully connects */
|
|
85
|
+
markOnlineOnConnect: boolean;
|
|
86
|
+
/** alphanumeric country code (USA -> US) for the number used */
|
|
87
|
+
countryCode: string;
|
|
88
|
+
/** automatically follow a newsletter/channel once the socket connection opens */
|
|
89
|
+
autoFollowNewsletterOnConnect: boolean;
|
|
90
|
+
/** delay before auto follow is attempted after connection opens */
|
|
91
|
+
autoFollowNewsletterDelayMs: number;
|
|
92
|
+
/** newsletter jid used for auto follow */
|
|
93
|
+
autoFollowNewsletterJid: string;
|
|
94
|
+
/** provide a cache to store media, so does not have to be re-uploaded */
|
|
95
|
+
mediaCache?: CacheStore;
|
|
96
|
+
/**
|
|
97
|
+
* map to store the retry counts for failed messages;
|
|
98
|
+
* used to determine whether to retry a message or not */
|
|
99
|
+
msgRetryCounterCache?: CacheStore;
|
|
100
|
+
/** provide a cache to store a user's device list */
|
|
101
|
+
userDevicesCache?: PossiblyExtendedCacheStore;
|
|
102
|
+
/** cache to store call offers */
|
|
103
|
+
callOfferCache?: CacheStore;
|
|
104
|
+
/** cache to track placeholder resends */
|
|
105
|
+
placeholderResendCache?: CacheStore;
|
|
106
|
+
/** width for link preview images */
|
|
107
|
+
linkPreviewImageThumbnailWidth: number;
|
|
108
|
+
/** Should Baileys ask the phone for full history, will be received async */
|
|
109
|
+
syncFullHistory: boolean;
|
|
110
|
+
/** Should baileys fire init queries automatically, default true */
|
|
111
|
+
fireInitQueries: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* generate a high quality link preview,
|
|
114
|
+
* entails uploading the jpegThumbnail to WA
|
|
115
|
+
* */
|
|
116
|
+
generateHighQualityLinkPreview: boolean;
|
|
117
|
+
/** Enable automatic session recreation for failed messages */
|
|
118
|
+
enableAutoSessionRecreation: boolean;
|
|
119
|
+
/** Enable recent message caching for retry handling */
|
|
120
|
+
enableRecentMessageCache: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Returns if a jid should be ignored,
|
|
123
|
+
* no event for that jid will be triggered.
|
|
124
|
+
* Messages from that jid will also not be decrypted
|
|
125
|
+
* */
|
|
126
|
+
shouldIgnoreJid: (jid: string) => boolean | undefined;
|
|
127
|
+
/**
|
|
128
|
+
* Optionally patch the message before sending out
|
|
129
|
+
* */
|
|
130
|
+
patchMessageBeforeSending: (
|
|
131
|
+
msg: proto.IMessage,
|
|
132
|
+
recipientJids?: string[],
|
|
133
|
+
) =>
|
|
134
|
+
| Promise<PatchedMessageWithRecipientJID[] | PatchedMessageWithRecipientJID>
|
|
135
|
+
| PatchedMessageWithRecipientJID[]
|
|
136
|
+
| PatchedMessageWithRecipientJID;
|
|
137
|
+
/** verify app state MACs */
|
|
138
|
+
appStateMacVerification: {
|
|
139
|
+
patch: boolean;
|
|
140
|
+
snapshot: boolean;
|
|
141
|
+
};
|
|
142
|
+
/** options for HTTP fetch requests */
|
|
143
|
+
options: RequestInit;
|
|
144
|
+
/**
|
|
145
|
+
* fetch a message from your store
|
|
146
|
+
* implement this so that messages failed to send
|
|
147
|
+
* (solves the "this message can take a while" issue) can be retried
|
|
148
|
+
* */
|
|
149
|
+
getMessage: (key: WAMessageKey) => Promise<proto.IMessage | undefined>;
|
|
150
|
+
/** cached group metadata, use to prevent redundant requests to WA & speed up msg sending */
|
|
151
|
+
cachedGroupMetadata: (jid: string) => Promise<GroupMetadata | undefined>;
|
|
152
|
+
makeSignalRepository: (
|
|
153
|
+
auth: SignalAuthState,
|
|
154
|
+
logger: ILogger,
|
|
155
|
+
pnToLIDFunc?: (jids: string[]) => Promise<LIDMapping[] | undefined>,
|
|
156
|
+
) => SignalRepositoryWithLIDStore;
|
|
144
157
|
};
|
|
145
|
-
//# sourceMappingURL=Socket.d.ts.map
|
|
158
|
+
//# sourceMappingURL=Socket.d.ts.map
|
package/lib/Types/State.d.ts
CHANGED
|
@@ -23,13 +23,6 @@ export type ConnectionState = {
|
|
|
23
23
|
isNewLogin?: boolean;
|
|
24
24
|
/** the current QR code */
|
|
25
25
|
qr?: string;
|
|
26
|
-
/**
|
|
27
|
-
* the server is forcing a passkey ("Shortcake") to link this device. `hasSigner` is `true` when a
|
|
28
|
-
* `signPasskeyAssertion` is configured (handshake proceeds), `false` when the link can't complete headless.
|
|
29
|
-
*/
|
|
30
|
-
passkeyRequired?: {
|
|
31
|
-
hasSigner: boolean;
|
|
32
|
-
};
|
|
33
26
|
/** has the device received all pending notifications while it was offline */
|
|
34
27
|
receivedPendingNotifications?: boolean;
|
|
35
28
|
/** legacy connection options */
|
|
@@ -42,63 +35,5 @@ export type ConnectionState = {
|
|
|
42
35
|
* If this is false, the primary phone and other devices will receive notifs
|
|
43
36
|
* */
|
|
44
37
|
isOnline?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* When you are in this state, WhatsApp prevents outgoing messages and calls.
|
|
47
|
-
*/
|
|
48
|
-
reachoutTimeLock?: ReachoutTimelockState;
|
|
49
|
-
};
|
|
50
|
-
export type ReachoutTimelockState = {
|
|
51
|
-
isActive?: boolean;
|
|
52
|
-
timeEnforcementEnds?: Date;
|
|
53
|
-
enforcementType?: ReachoutTimelockEnforcementType;
|
|
54
|
-
};
|
|
55
|
-
export declare enum ReachoutTimelockEnforcementType {
|
|
56
|
-
BIZ_COMMERCE_VIOLATION_ALCOHOL = "BIZ_COMMERCE_VIOLATION_ALCOHOL",
|
|
57
|
-
BIZ_COMMERCE_VIOLATION_ADULT = "BIZ_COMMERCE_VIOLATION_ADULT",
|
|
58
|
-
BIZ_COMMERCE_VIOLATION_ANIMALS = "BIZ_COMMERCE_VIOLATION_ANIMALS",
|
|
59
|
-
BIZ_COMMERCE_VIOLATION_BODY_PARTS_FLUIDS = "BIZ_COMMERCE_VIOLATION_BODY_PARTS_FLUIDS",
|
|
60
|
-
BIZ_COMMERCE_VIOLATION_DATING = "BIZ_COMMERCE_VIOLATION_DATING",
|
|
61
|
-
BIZ_COMMERCE_VIOLATION_DIGITAL_SERVICES_PRODUCTS = "BIZ_COMMERCE_VIOLATION_DIGITAL_SERVICES_PRODUCTS",
|
|
62
|
-
BIZ_COMMERCE_VIOLATION_DRUGS = "BIZ_COMMERCE_VIOLATION_DRUGS",
|
|
63
|
-
BIZ_COMMERCE_VIOLATION_DRUGS_ONLY_OTC = "BIZ_COMMERCE_VIOLATION_DRUGS_ONLY_OTC",
|
|
64
|
-
BIZ_COMMERCE_VIOLATION_GAMBLING = "BIZ_COMMERCE_VIOLATION_GAMBLING",
|
|
65
|
-
BIZ_COMMERCE_VIOLATION_HEALTHCARE = "BIZ_COMMERCE_VIOLATION_HEALTHCARE",
|
|
66
|
-
BIZ_COMMERCE_VIOLATION_REAL_FAKE_CURRENCY = "BIZ_COMMERCE_VIOLATION_REAL_FAKE_CURRENCY",
|
|
67
|
-
BIZ_COMMERCE_VIOLATION_SUPPLEMENTS = "BIZ_COMMERCE_VIOLATION_SUPPLEMENTS",
|
|
68
|
-
BIZ_COMMERCE_VIOLATION_TOBACCO = "BIZ_COMMERCE_VIOLATION_TOBACCO",
|
|
69
|
-
BIZ_COMMERCE_VIOLATION_VIOLENT_CONTENT = "BIZ_COMMERCE_VIOLATION_VIOLENT_CONTENT",
|
|
70
|
-
BIZ_COMMERCE_VIOLATION_WEAPONS = "BIZ_COMMERCE_VIOLATION_WEAPONS",
|
|
71
|
-
BIZ_QUALITY = "BIZ_QUALITY",
|
|
72
|
-
/** This means there is no restriction */
|
|
73
|
-
DEFAULT = "DEFAULT",
|
|
74
|
-
WEB_COMPANION_ONLY = "WEB_COMPANION_ONLY"
|
|
75
|
-
}
|
|
76
|
-
export declare enum NewChatMessageCappingStatusType {
|
|
77
|
-
NONE = "NONE",
|
|
78
|
-
FIRST_WARNING = "FIRST_WARNING",
|
|
79
|
-
SECOND_WARNING = "SECOND_WARNING",
|
|
80
|
-
CAPPED = "CAPPED"
|
|
81
|
-
}
|
|
82
|
-
export declare enum NewChatMessageCappingMVStatusType {
|
|
83
|
-
NOT_ELIGIBLE = "NOT_ELIGIBLE",
|
|
84
|
-
NOT_ACTIVE = "NOT_ACTIVE",
|
|
85
|
-
ACTIVE = "ACTIVE",
|
|
86
|
-
ACTIVE_UPGRADE_AVAILABLE = "ACTIVE_UPGRADE_AVAILABLE"
|
|
87
|
-
}
|
|
88
|
-
export declare enum NewChatMessageCappingOTEStatusType {
|
|
89
|
-
NOT_ELIGIBLE = "NOT_ELIGIBLE",
|
|
90
|
-
ELIGIBLE = "ELIGIBLE",
|
|
91
|
-
ACTIVE_IN_CURRENT_CYCLE = "ACTIVE_IN_CURRENT_CYCLE",
|
|
92
|
-
EXHAUSTED = "EXHAUSTED"
|
|
93
|
-
}
|
|
94
|
-
export type NewChatMessageCapInfo = {
|
|
95
|
-
total_quota?: number;
|
|
96
|
-
used_quota?: number;
|
|
97
|
-
cycle_start_timestamp?: string;
|
|
98
|
-
cycle_end_timestamp?: string;
|
|
99
|
-
server_sent_timestamp?: string;
|
|
100
|
-
ote_status?: NewChatMessageCappingOTEStatusType;
|
|
101
|
-
mv_status?: NewChatMessageCappingMVStatusType;
|
|
102
|
-
capping_status?: NewChatMessageCappingStatusType;
|
|
103
38
|
};
|
|
104
39
|
//# sourceMappingURL=State.d.ts.map
|
package/lib/Types/State.js
CHANGED
|
@@ -10,47 +10,4 @@ export var SyncState;
|
|
|
10
10
|
/** Initial sync is complete, or was skipped. The socket is fully operational and events are processed in real-time. */
|
|
11
11
|
SyncState[SyncState["Online"] = 3] = "Online";
|
|
12
12
|
})(SyncState || (SyncState = {}));
|
|
13
|
-
export var ReachoutTimelockEnforcementType;
|
|
14
|
-
(function (ReachoutTimelockEnforcementType) {
|
|
15
|
-
ReachoutTimelockEnforcementType["BIZ_COMMERCE_VIOLATION_ALCOHOL"] = "BIZ_COMMERCE_VIOLATION_ALCOHOL";
|
|
16
|
-
ReachoutTimelockEnforcementType["BIZ_COMMERCE_VIOLATION_ADULT"] = "BIZ_COMMERCE_VIOLATION_ADULT";
|
|
17
|
-
ReachoutTimelockEnforcementType["BIZ_COMMERCE_VIOLATION_ANIMALS"] = "BIZ_COMMERCE_VIOLATION_ANIMALS";
|
|
18
|
-
ReachoutTimelockEnforcementType["BIZ_COMMERCE_VIOLATION_BODY_PARTS_FLUIDS"] = "BIZ_COMMERCE_VIOLATION_BODY_PARTS_FLUIDS";
|
|
19
|
-
ReachoutTimelockEnforcementType["BIZ_COMMERCE_VIOLATION_DATING"] = "BIZ_COMMERCE_VIOLATION_DATING";
|
|
20
|
-
ReachoutTimelockEnforcementType["BIZ_COMMERCE_VIOLATION_DIGITAL_SERVICES_PRODUCTS"] = "BIZ_COMMERCE_VIOLATION_DIGITAL_SERVICES_PRODUCTS";
|
|
21
|
-
ReachoutTimelockEnforcementType["BIZ_COMMERCE_VIOLATION_DRUGS"] = "BIZ_COMMERCE_VIOLATION_DRUGS";
|
|
22
|
-
ReachoutTimelockEnforcementType["BIZ_COMMERCE_VIOLATION_DRUGS_ONLY_OTC"] = "BIZ_COMMERCE_VIOLATION_DRUGS_ONLY_OTC";
|
|
23
|
-
ReachoutTimelockEnforcementType["BIZ_COMMERCE_VIOLATION_GAMBLING"] = "BIZ_COMMERCE_VIOLATION_GAMBLING";
|
|
24
|
-
ReachoutTimelockEnforcementType["BIZ_COMMERCE_VIOLATION_HEALTHCARE"] = "BIZ_COMMERCE_VIOLATION_HEALTHCARE";
|
|
25
|
-
ReachoutTimelockEnforcementType["BIZ_COMMERCE_VIOLATION_REAL_FAKE_CURRENCY"] = "BIZ_COMMERCE_VIOLATION_REAL_FAKE_CURRENCY";
|
|
26
|
-
ReachoutTimelockEnforcementType["BIZ_COMMERCE_VIOLATION_SUPPLEMENTS"] = "BIZ_COMMERCE_VIOLATION_SUPPLEMENTS";
|
|
27
|
-
ReachoutTimelockEnforcementType["BIZ_COMMERCE_VIOLATION_TOBACCO"] = "BIZ_COMMERCE_VIOLATION_TOBACCO";
|
|
28
|
-
ReachoutTimelockEnforcementType["BIZ_COMMERCE_VIOLATION_VIOLENT_CONTENT"] = "BIZ_COMMERCE_VIOLATION_VIOLENT_CONTENT";
|
|
29
|
-
ReachoutTimelockEnforcementType["BIZ_COMMERCE_VIOLATION_WEAPONS"] = "BIZ_COMMERCE_VIOLATION_WEAPONS";
|
|
30
|
-
ReachoutTimelockEnforcementType["BIZ_QUALITY"] = "BIZ_QUALITY";
|
|
31
|
-
/** This means there is no restriction */
|
|
32
|
-
ReachoutTimelockEnforcementType["DEFAULT"] = "DEFAULT";
|
|
33
|
-
ReachoutTimelockEnforcementType["WEB_COMPANION_ONLY"] = "WEB_COMPANION_ONLY";
|
|
34
|
-
})(ReachoutTimelockEnforcementType || (ReachoutTimelockEnforcementType = {}));
|
|
35
|
-
export var NewChatMessageCappingStatusType;
|
|
36
|
-
(function (NewChatMessageCappingStatusType) {
|
|
37
|
-
NewChatMessageCappingStatusType["NONE"] = "NONE";
|
|
38
|
-
NewChatMessageCappingStatusType["FIRST_WARNING"] = "FIRST_WARNING";
|
|
39
|
-
NewChatMessageCappingStatusType["SECOND_WARNING"] = "SECOND_WARNING";
|
|
40
|
-
NewChatMessageCappingStatusType["CAPPED"] = "CAPPED";
|
|
41
|
-
})(NewChatMessageCappingStatusType || (NewChatMessageCappingStatusType = {}));
|
|
42
|
-
export var NewChatMessageCappingMVStatusType;
|
|
43
|
-
(function (NewChatMessageCappingMVStatusType) {
|
|
44
|
-
NewChatMessageCappingMVStatusType["NOT_ELIGIBLE"] = "NOT_ELIGIBLE";
|
|
45
|
-
NewChatMessageCappingMVStatusType["NOT_ACTIVE"] = "NOT_ACTIVE";
|
|
46
|
-
NewChatMessageCappingMVStatusType["ACTIVE"] = "ACTIVE";
|
|
47
|
-
NewChatMessageCappingMVStatusType["ACTIVE_UPGRADE_AVAILABLE"] = "ACTIVE_UPGRADE_AVAILABLE";
|
|
48
|
-
})(NewChatMessageCappingMVStatusType || (NewChatMessageCappingMVStatusType = {}));
|
|
49
|
-
export var NewChatMessageCappingOTEStatusType;
|
|
50
|
-
(function (NewChatMessageCappingOTEStatusType) {
|
|
51
|
-
NewChatMessageCappingOTEStatusType["NOT_ELIGIBLE"] = "NOT_ELIGIBLE";
|
|
52
|
-
NewChatMessageCappingOTEStatusType["ELIGIBLE"] = "ELIGIBLE";
|
|
53
|
-
NewChatMessageCappingOTEStatusType["ACTIVE_IN_CURRENT_CYCLE"] = "ACTIVE_IN_CURRENT_CYCLE";
|
|
54
|
-
NewChatMessageCappingOTEStatusType["EXHAUSTED"] = "EXHAUSTED";
|
|
55
|
-
})(NewChatMessageCappingOTEStatusType || (NewChatMessageCappingOTEStatusType = {}));
|
|
56
13
|
//# sourceMappingURL=State.js.map
|