@ubedsockets/baileys 1.6.8 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/WAProto/GenerateStatics.sh +26 -3
- package/WAProto/WAProto.proto +432 -180
- package/WAProto/add-missing-proto-deps.js +134 -0
- package/WAProto/imports-elaina.js +48 -0
- package/WAProto/index.js +78044 -140686
- package/WAProto/merge-elaina-ai-proto.js +187 -0
- package/engine-requirements.js +10 -0
- package/lib/Defaults/elaina-version.json +3 -0
- package/lib/Defaults/index.js +57 -55
- package/lib/Signal/Group/group_cipher.js +1 -1
- package/lib/Signal/Group/keyhelper.js +1 -1
- package/lib/Signal/Group/sender-chain-key.js +1 -1
- package/lib/Signal/Group/sender-key-message.js +1 -1
- package/lib/Signal/Group/sender-message-key.js +1 -1
- package/lib/Signal/libsignal.js +1 -1
- package/lib/Signal/libsignalnode/LICENSE +621 -0
- package/lib/Signal/libsignalnode/README.md +11 -0
- package/lib/Signal/libsignalnode/generate-proto.sh +1 -0
- package/lib/Signal/libsignalnode/index.js +10 -0
- package/lib/Signal/libsignalnode/protos/WhisperTextProtocol.proto +28 -0
- package/lib/Signal/libsignalnode/src/.eslintrc.json +31 -0
- package/lib/Signal/libsignalnode/src/WhisperTextProtocol.js +948 -0
- package/lib/Signal/libsignalnode/src/base_key_type.js +6 -0
- package/lib/Signal/libsignalnode/src/chain_type.js +6 -0
- package/lib/Signal/libsignalnode/src/crypto.js +98 -0
- package/lib/Signal/libsignalnode/src/curve.js +142 -0
- package/lib/Signal/libsignalnode/src/errors.js +33 -0
- package/lib/Signal/libsignalnode/src/keyhelper.js +45 -0
- package/lib/Signal/libsignalnode/src/numeric_fingerprint.js +70 -0
- package/lib/Signal/libsignalnode/src/protobufs.js +10 -0
- package/lib/Signal/libsignalnode/src/protocol_address.js +40 -0
- package/lib/Signal/libsignalnode/src/queue_job.js +70 -0
- package/lib/Signal/libsignalnode/src/session_builder.js +164 -0
- package/lib/Signal/libsignalnode/src/session_cipher.js +332 -0
- package/lib/Signal/libsignalnode/src/session_record.js +325 -0
- package/lib/Socket/Client/websocket.js +2 -41
- package/lib/Socket/Rhandler.js +533 -0
- package/lib/Socket/chats.js +249 -123
- package/lib/Socket/index.js +1 -1
- package/lib/Socket/messages-recv.js +57 -5
- package/lib/Socket/messages-send.js +47 -280
- package/lib/Socket/newsletter.js +100 -132
- package/lib/Socket/socket.js +79 -87
- package/lib/Socket/usync.js +0 -2
- package/lib/Store/make-in-memory-store.js +1 -1
- package/lib/Utils/browser-utils.js +30 -23
- package/lib/Utils/crypto.js +22 -18
- package/lib/Utils/decode-wa-message.js +12 -2
- package/lib/Utils/{baileys-event-stream.js → elaina-event-stream.js} +1 -1
- package/lib/Utils/event-buffer.js +2 -2
- package/lib/Utils/generics.js +36 -10
- package/lib/Utils/index.js +3 -1
- package/lib/Utils/message-retry-manager.js +48 -185
- package/lib/Utils/messages-media.js +127 -236
- package/lib/Utils/messages.js +745 -221
- package/lib/Utils/noise-handler.js +1 -2
- package/lib/Utils/process-message.js +108 -25
- package/lib/Utils/signal.js +1 -10
- package/lib/Utils/use-multi-file-auth-state.js +1 -1
- package/lib/Utils/validate-connection.js +3 -7
- package/lib/Voip/audio-feeder.js +166 -0
- package/lib/Voip/index.js +639 -0
- package/lib/Voip/relay-transport.js +829 -0
- package/lib/Voip/signaling.js +1102 -0
- package/lib/Voip/types.js +23 -0
- package/lib/Voip/wasm-engine.js +1255 -0
- package/lib/Voip/worker-bootstrap.js +1078 -0
- package/lib/WABinary/jid-utils.js +17 -1
- package/lib/assets/wasm/loader.js +5 -0
- package/lib/assets/wasm/whatsapp.wasm +0 -0
- package/lib/assets/wasm/worker-modules.js +273 -0
- package/lib/index.js +21 -18
- package/package.json +32 -18
- package/WAProto/AICommon.js +0 -27981
- package/WAProto/AICommon.proto +0 -713
- package/WAProto/Ephemeral.js +0 -295
- package/WAProto/Ephemeral.proto +0 -7
- package/WAProto/fix-imports.js +0 -85
- package/WAProto/index.d.ts +0 -14017
- package/WAProto/vyzen.js +0 -7
- package/lib/Defaults/baileys-version.json +0 -3
- package/lib/Defaults/index.d.ts +0 -75
- package/lib/Defaults/index.d.ts.map +0 -1
- package/lib/Defaults/index.js.map +0 -1
- package/lib/Signal/Group/ciphertext-message.d.ts +0 -10
- package/lib/Signal/Group/ciphertext-message.d.ts.map +0 -1
- package/lib/Signal/Group/ciphertext-message.js.map +0 -1
- package/lib/Signal/Group/group-session-builder.d.ts +0 -15
- package/lib/Signal/Group/group-session-builder.d.ts.map +0 -1
- package/lib/Signal/Group/group-session-builder.js.map +0 -1
- package/lib/Signal/Group/group_cipher.d.ts +0 -17
- package/lib/Signal/Group/group_cipher.d.ts.map +0 -1
- package/lib/Signal/Group/group_cipher.js.map +0 -1
- package/lib/Signal/Group/index.d.ts +0 -12
- package/lib/Signal/Group/index.d.ts.map +0 -1
- package/lib/Signal/Group/index.js.map +0 -1
- package/lib/Signal/Group/keyhelper.d.ts +0 -11
- package/lib/Signal/Group/keyhelper.d.ts.map +0 -1
- package/lib/Signal/Group/keyhelper.js.map +0 -1
- package/lib/Signal/Group/sender-chain-key.d.ts +0 -14
- package/lib/Signal/Group/sender-chain-key.d.ts.map +0 -1
- package/lib/Signal/Group/sender-chain-key.js.map +0 -1
- package/lib/Signal/Group/sender-key-distribution-message.d.ts +0 -17
- package/lib/Signal/Group/sender-key-distribution-message.d.ts.map +0 -1
- package/lib/Signal/Group/sender-key-distribution-message.js.map +0 -1
- package/lib/Signal/Group/sender-key-message.d.ts +0 -19
- package/lib/Signal/Group/sender-key-message.d.ts.map +0 -1
- package/lib/Signal/Group/sender-key-message.js.map +0 -1
- package/lib/Signal/Group/sender-key-name.d.ts +0 -18
- package/lib/Signal/Group/sender-key-name.d.ts.map +0 -1
- package/lib/Signal/Group/sender-key-name.js.map +0 -1
- package/lib/Signal/Group/sender-key-record.d.ts +0 -31
- package/lib/Signal/Group/sender-key-record.d.ts.map +0 -1
- package/lib/Signal/Group/sender-key-record.js.map +0 -1
- package/lib/Signal/Group/sender-key-state.d.ts +0 -39
- package/lib/Signal/Group/sender-key-state.d.ts.map +0 -1
- package/lib/Signal/Group/sender-key-state.js.map +0 -1
- package/lib/Signal/Group/sender-message-key.d.ts +0 -12
- package/lib/Signal/Group/sender-message-key.d.ts.map +0 -1
- package/lib/Signal/Group/sender-message-key.js.map +0 -1
- package/lib/Signal/libsignal.d.ts +0 -5
- package/lib/Signal/libsignal.d.ts.map +0 -1
- package/lib/Signal/libsignal.js.map +0 -1
- package/lib/Signal/lid-mapping.d.ts +0 -23
- package/lib/Signal/lid-mapping.d.ts.map +0 -1
- package/lib/Signal/lid-mapping.js +0 -277
- package/lib/Signal/lid-mapping.js.map +0 -1
- package/lib/Socket/Client/index.d.ts +0 -3
- 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 +0 -16
- 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 +0 -13
- 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 +0 -217
- package/lib/Socket/business.d.ts.map +0 -1
- package/lib/Socket/business.js.map +0 -1
- package/lib/Socket/chats.d.ts +0 -124
- package/lib/Socket/chats.d.ts.map +0 -1
- package/lib/Socket/chats.js.map +0 -1
- package/lib/Socket/communities.d.ts +0 -273
- package/lib/Socket/communities.d.ts.map +0 -1
- package/lib/Socket/communities.js +0 -431
- package/lib/Socket/communities.js.map +0 -1
- package/lib/Socket/groups.d.ts +0 -161
- package/lib/Socket/groups.d.ts.map +0 -1
- package/lib/Socket/groups.js.map +0 -1
- package/lib/Socket/index.d.ts +0 -260
- package/lib/Socket/index.d.ts.map +0 -1
- package/lib/Socket/index.js.map +0 -1
- package/lib/Socket/messages-recv.d.ts +0 -203
- 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 +0 -199
- 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 +0 -3
- package/lib/Socket/mex.d.ts.map +0 -1
- package/lib/Socket/mex.js +0 -42
- package/lib/Socket/mex.js.map +0 -1
- package/lib/Socket/newsletter.d.ts +0 -170
- package/lib/Socket/newsletter.d.ts.map +0 -1
- package/lib/Socket/newsletter.js.map +0 -1
- package/lib/Socket/setup.js +0 -433
- package/lib/Socket/socket.d.ts +0 -59
- package/lib/Socket/socket.d.ts.map +0 -1
- package/lib/Socket/socket.js.map +0 -1
- package/lib/Types/Auth.d.ts +0 -117
- package/lib/Types/Auth.d.ts.map +0 -1
- package/lib/Types/Auth.js.map +0 -1
- package/lib/Types/Bussines.d.ts +0 -25
- package/lib/Types/Bussines.d.ts.map +0 -1
- package/lib/Types/Bussines.js +0 -2
- package/lib/Types/Bussines.js.map +0 -1
- package/lib/Types/Call.d.ts +0 -15
- package/lib/Types/Call.d.ts.map +0 -1
- package/lib/Types/Call.js.map +0 -1
- package/lib/Types/Chat.d.ts +0 -124
- package/lib/Types/Chat.d.ts.map +0 -1
- package/lib/Types/Chat.js.map +0 -1
- package/lib/Types/Contact.d.ts +0 -26
- package/lib/Types/Contact.d.ts.map +0 -1
- package/lib/Types/Contact.js.map +0 -1
- package/lib/Types/Events.d.ts +0 -256
- package/lib/Types/Events.d.ts.map +0 -1
- package/lib/Types/Events.js.map +0 -1
- package/lib/Types/GroupMetadata.d.ts +0 -71
- package/lib/Types/GroupMetadata.d.ts.map +0 -1
- package/lib/Types/GroupMetadata.js.map +0 -1
- package/lib/Types/Label.d.ts +0 -47
- package/lib/Types/Label.d.ts.map +0 -1
- package/lib/Types/Label.js.map +0 -1
- package/lib/Types/LabelAssociation.d.ts +0 -30
- package/lib/Types/LabelAssociation.d.ts.map +0 -1
- package/lib/Types/LabelAssociation.js.map +0 -1
- package/lib/Types/Message.d.ts +0 -320
- package/lib/Types/Message.d.ts.map +0 -1
- package/lib/Types/Message.js.map +0 -1
- package/lib/Types/Mex.d.ts +0 -141
- package/lib/Types/Mex.d.ts.map +0 -1
- package/lib/Types/Mex.js +0 -37
- package/lib/Types/Mex.js.map +0 -1
- package/lib/Types/Product.d.ts +0 -79
- package/lib/Types/Product.d.ts.map +0 -1
- package/lib/Types/Product.js.map +0 -1
- package/lib/Types/Signal.d.ts +0 -87
- package/lib/Types/Signal.d.ts.map +0 -1
- package/lib/Types/Signal.js.map +0 -1
- package/lib/Types/Socket.d.ts +0 -136
- package/lib/Types/Socket.d.ts.map +0 -1
- package/lib/Types/Socket.js.map +0 -1
- package/lib/Types/State.d.ts +0 -97
- package/lib/Types/State.d.ts.map +0 -1
- package/lib/Types/State.js.map +0 -1
- package/lib/Types/USync.d.ts +0 -26
- package/lib/Types/USync.d.ts.map +0 -1
- package/lib/Types/USync.js.map +0 -1
- package/lib/Types/index.d.ts +0 -65
- package/lib/Types/index.d.ts.map +0 -1
- package/lib/Types/index.js.map +0 -1
- package/lib/Utils/Tiktok.js +0 -80
- package/lib/Utils/auth-utils.d.ts +0 -24
- 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 +0 -4
- 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 +0 -23
- package/lib/Utils/business.d.ts.map +0 -1
- package/lib/Utils/business.js.map +0 -1
- package/lib/Utils/chaanel/vyzen.js +0 -0
- package/lib/Utils/chat-utils.d.ts +0 -100
- 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 +0 -17
- package/lib/Utils/companion-reg-client-utils.d.ts.map +0 -1
- package/lib/Utils/companion-reg-client-utils.js +0 -35
- package/lib/Utils/companion-reg-client-utils.js.map +0 -1
- package/lib/Utils/crypto.d.ts +0 -37
- 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 +0 -66
- 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 +0 -36
- package/lib/Utils/event-buffer.d.ts.map +0 -1
- package/lib/Utils/event-buffer.js.map +0 -1
- package/lib/Utils/facebook.js +0 -48
- package/lib/Utils/generics.d.ts +0 -91
- package/lib/Utils/generics.d.ts.map +0 -1
- package/lib/Utils/generics.js.map +0 -1
- package/lib/Utils/history.d.ts +0 -24
- 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 +0 -44
- package/lib/Utils/identity-change-handler.d.ts.map +0 -1
- package/lib/Utils/identity-change-handler.js +0 -50
- package/lib/Utils/identity-change-handler.js.map +0 -1
- package/lib/Utils/index.d.ts +0 -22
- package/lib/Utils/index.d.ts.map +0 -1
- package/lib/Utils/index.js.map +0 -1
- package/lib/Utils/instagram.js +0 -50
- package/lib/Utils/link-preview.d.ts +0 -21
- 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 +0 -12
- package/lib/Utils/logger.d.ts.map +0 -1
- package/lib/Utils/logger.js.map +0 -1
- package/lib/Utils/lt-hash.d.ts +0 -8
- 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 +0 -9
- 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 +0 -115
- 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 +0 -133
- 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 +0 -91
- package/lib/Utils/messages.d.ts.map +0 -1
- package/lib/Utils/messages.js.map +0 -1
- package/lib/Utils/noise-handler.d.ts +0 -20
- 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 +0 -17
- package/lib/Utils/offline-node-processor.d.ts.map +0 -1
- package/lib/Utils/offline-node-processor.js +0 -40
- package/lib/Utils/offline-node-processor.js.map +0 -1
- package/lib/Utils/pre-key-manager.d.ts +0 -28
- package/lib/Utils/pre-key-manager.d.ts.map +0 -1
- package/lib/Utils/pre-key-manager.js +0 -106
- package/lib/Utils/pre-key-manager.js.map +0 -1
- package/lib/Utils/process-message.d.ts +0 -60
- 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 +0 -11
- package/lib/Utils/reporting-utils.d.ts.map +0 -1
- package/lib/Utils/reporting-utils.js +0 -258
- package/lib/Utils/reporting-utils.js.map +0 -1
- package/lib/Utils/signal.d.ts +0 -47
- package/lib/Utils/signal.d.ts.map +0 -1
- package/lib/Utils/signal.js.map +0 -1
- package/lib/Utils/stanza-ack.d.ts +0 -11
- package/lib/Utils/stanza-ack.d.ts.map +0 -1
- package/lib/Utils/stanza-ack.js +0 -38
- package/lib/Utils/stanza-ack.js.map +0 -1
- package/lib/Utils/sync-action-utils.d.ts +0 -19
- package/lib/Utils/sync-action-utils.d.ts.map +0 -1
- package/lib/Utils/sync-action-utils.js +0 -49
- package/lib/Utils/sync-action-utils.js.map +0 -1
- package/lib/Utils/tc-token-utils.d.ts +0 -37
- package/lib/Utils/tc-token-utils.d.ts.map +0 -1
- package/lib/Utils/tc-token-utils.js +0 -163
- package/lib/Utils/tc-token-utils.js.map +0 -1
- package/lib/Utils/use-multi-file-auth-state.d.ts +0 -13
- package/lib/Utils/use-multi-file-auth-state.d.ts.map +0 -1
- package/lib/Utils/use-multi-file-auth-state.js.map +0 -1
- package/lib/Utils/validate-connection.d.ts +0 -11
- package/lib/Utils/validate-connection.d.ts.map +0 -1
- package/lib/Utils/validate-connection.js.map +0 -1
- package/lib/Utils/youtube.js +0 -44
- package/lib/WABinary/constants.d.ts +0 -28
- package/lib/WABinary/constants.d.ts.map +0 -1
- package/lib/WABinary/constants.js.map +0 -1
- package/lib/WABinary/decode.d.ts +0 -7
- package/lib/WABinary/decode.d.ts.map +0 -1
- package/lib/WABinary/decode.js.map +0 -1
- package/lib/WABinary/encode.d.ts +0 -3
- package/lib/WABinary/encode.d.ts.map +0 -1
- package/lib/WABinary/encode.js.map +0 -1
- package/lib/WABinary/generic-utils.d.ts +0 -15
- 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 +0 -6
- package/lib/WABinary/index.d.ts.map +0 -1
- package/lib/WABinary/index.js.map +0 -1
- package/lib/WABinary/jid-utils.d.ts +0 -48
- 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 +0 -19
- package/lib/WABinary/types.d.ts.map +0 -1
- package/lib/WABinary/types.js.map +0 -1
- package/lib/WAM/BinaryInfo.d.ts +0 -9
- package/lib/WAM/BinaryInfo.d.ts.map +0 -1
- package/lib/WAM/BinaryInfo.js.map +0 -1
- package/lib/WAM/constants.d.ts +0 -40
- package/lib/WAM/constants.d.ts.map +0 -1
- package/lib/WAM/constants.js.map +0 -1
- package/lib/WAM/encode.d.ts +0 -3
- package/lib/WAM/encode.d.ts.map +0 -1
- package/lib/WAM/encode.js.map +0 -1
- package/lib/WAM/index.d.ts +0 -4
- package/lib/WAM/index.d.ts.map +0 -1
- package/lib/WAM/index.js.map +0 -1
- package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +0 -10
- 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 +0 -23
- 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 +0 -13
- 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 +0 -13
- 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 +0 -10
- package/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts.map +0 -1
- package/lib/WAUSync/Protocols/USyncUsernameProtocol.js +0 -25
- package/lib/WAUSync/Protocols/USyncUsernameProtocol.js.map +0 -1
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +0 -26
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts.map +0 -1
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js.map +0 -1
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +0 -10
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts.map +0 -1
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.js.map +0 -1
- package/lib/WAUSync/Protocols/index.d.ts +0 -6
- 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 +0 -30
- package/lib/WAUSync/USyncQuery.d.ts.map +0 -1
- package/lib/WAUSync/USyncQuery.js.map +0 -1
- package/lib/WAUSync/USyncUser.d.ts +0 -17
- package/lib/WAUSync/USyncUser.d.ts.map +0 -1
- package/lib/WAUSync/USyncUser.js.map +0 -1
- package/lib/WAUSync/index.d.ts +0 -4
- package/lib/WAUSync/index.d.ts.map +0 -1
- package/lib/WAUSync/index.js.map +0 -1
- package/lib/index.d.ts +0 -12
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js.map +0 -1
package/WAProto/WAProto.proto
CHANGED
|
@@ -53,158 +53,6 @@ message AIRichResponseMessage {
|
|
|
53
53
|
repeated AIRichResponseSubMessage submessages = 2;
|
|
54
54
|
optional AIRichResponseUnifiedResponse unifiedResponse = 3;
|
|
55
55
|
optional ContextInfo contextInfo = 4;
|
|
56
|
-
message AIRichResponseCodeMetadata {
|
|
57
|
-
optional string codeLanguage = 1;
|
|
58
|
-
repeated AIRichResponseCodeBlock codeBlocks = 2;
|
|
59
|
-
message AIRichResponseCodeBlock {
|
|
60
|
-
optional AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType highlightType = 1;
|
|
61
|
-
optional string codeContent = 2;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
enum AIRichResponseCodeHighlightType {
|
|
65
|
-
AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT = 0;
|
|
66
|
-
AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD = 1;
|
|
67
|
-
AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD = 2;
|
|
68
|
-
AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING = 3;
|
|
69
|
-
AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER = 4;
|
|
70
|
-
AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT = 5;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
message AIRichResponseContentItemsMetadata {
|
|
75
|
-
repeated AIRichResponseContentItemMetadata itemsMetadata = 1;
|
|
76
|
-
optional ContentType contentType = 2;
|
|
77
|
-
message AIRichResponseContentItemMetadata {
|
|
78
|
-
oneof aIRichResponseContentItem {
|
|
79
|
-
AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem reelItem = 1;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
message AIRichResponseReelItem {
|
|
84
|
-
optional string title = 1;
|
|
85
|
-
optional string profileIconUrl = 2;
|
|
86
|
-
optional string thumbnailUrl = 3;
|
|
87
|
-
optional string videoUrl = 4;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
enum ContentType {
|
|
91
|
-
DEFAULT = 0;
|
|
92
|
-
CAROUSEL = 1;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
message AIRichResponseDynamicMetadata {
|
|
97
|
-
optional AIRichResponseDynamicMetadataType type = 1;
|
|
98
|
-
optional uint64 version = 2;
|
|
99
|
-
optional string url = 3;
|
|
100
|
-
optional uint32 loopCount = 4;
|
|
101
|
-
enum AIRichResponseDynamicMetadataType {
|
|
102
|
-
AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN = 0;
|
|
103
|
-
AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE = 1;
|
|
104
|
-
AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF = 2;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
message AIRichResponseGridImageMetadata {
|
|
109
|
-
optional AIRichResponseMessage.AIRichResponseImageURL gridImageUrl = 1;
|
|
110
|
-
repeated AIRichResponseMessage.AIRichResponseImageURL imageUrls = 2;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
message AIRichResponseImageURL {
|
|
114
|
-
optional string imagePreviewUrl = 1;
|
|
115
|
-
optional string imageHighResUrl = 2;
|
|
116
|
-
optional string sourceUrl = 3;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
message AIRichResponseInlineImageMetadata {
|
|
120
|
-
optional AIRichResponseMessage.AIRichResponseImageURL imageUrl = 1;
|
|
121
|
-
optional string imageText = 2;
|
|
122
|
-
optional AIRichResponseImageAlignment alignment = 3;
|
|
123
|
-
optional string tapLinkUrl = 4;
|
|
124
|
-
enum AIRichResponseImageAlignment {
|
|
125
|
-
AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED = 0;
|
|
126
|
-
AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED = 1;
|
|
127
|
-
AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED = 2;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
message AIRichResponseLatexMetadata {
|
|
132
|
-
optional string text = 1;
|
|
133
|
-
repeated AIRichResponseLatexExpression expressions = 2;
|
|
134
|
-
message AIRichResponseLatexExpression {
|
|
135
|
-
optional string latexExpression = 1;
|
|
136
|
-
optional string url = 2;
|
|
137
|
-
optional double width = 3;
|
|
138
|
-
optional double height = 4;
|
|
139
|
-
optional double fontHeight = 5;
|
|
140
|
-
optional double imageTopPadding = 6;
|
|
141
|
-
optional double imageLeadingPadding = 7;
|
|
142
|
-
optional double imageBottomPadding = 8;
|
|
143
|
-
optional double imageTrailingPadding = 9;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
message AIRichResponseMapMetadata {
|
|
149
|
-
optional double centerLatitude = 1;
|
|
150
|
-
optional double centerLongitude = 2;
|
|
151
|
-
optional double latitudeDelta = 3;
|
|
152
|
-
optional double longitudeDelta = 4;
|
|
153
|
-
repeated AIRichResponseMapAnnotation annotations = 5;
|
|
154
|
-
optional bool showInfoList = 6;
|
|
155
|
-
message AIRichResponseMapAnnotation {
|
|
156
|
-
optional uint32 annotationNumber = 1;
|
|
157
|
-
optional double latitude = 2;
|
|
158
|
-
optional double longitude = 3;
|
|
159
|
-
optional string title = 4;
|
|
160
|
-
optional string body = 5;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
enum AIRichResponseMessageType {
|
|
166
|
-
AI_RICH_RESPONSE_TYPE_UNKNOWN = 0;
|
|
167
|
-
AI_RICH_RESPONSE_TYPE_STANDARD = 1;
|
|
168
|
-
}
|
|
169
|
-
message AIRichResponseSubMessage {
|
|
170
|
-
optional AIRichResponseMessage.AIRichResponseSubMessageType messageType = 1;
|
|
171
|
-
optional AIRichResponseMessage.AIRichResponseGridImageMetadata gridImageMetadata = 2;
|
|
172
|
-
optional string messageText = 3;
|
|
173
|
-
optional AIRichResponseMessage.AIRichResponseInlineImageMetadata imageMetadata = 4;
|
|
174
|
-
optional AIRichResponseMessage.AIRichResponseCodeMetadata codeMetadata = 5;
|
|
175
|
-
optional AIRichResponseMessage.AIRichResponseTableMetadata tableMetadata = 6;
|
|
176
|
-
optional AIRichResponseMessage.AIRichResponseDynamicMetadata dynamicMetadata = 7;
|
|
177
|
-
optional AIRichResponseMessage.AIRichResponseLatexMetadata latexMetadata = 8;
|
|
178
|
-
optional AIRichResponseMessage.AIRichResponseMapMetadata mapMetadata = 9;
|
|
179
|
-
optional AIRichResponseMessage.AIRichResponseContentItemsMetadata contentItemsMetadata = 10;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
enum AIRichResponseSubMessageType {
|
|
183
|
-
AI_RICH_RESPONSE_UNKNOWN = 0;
|
|
184
|
-
AI_RICH_RESPONSE_GRID_IMAGE = 1;
|
|
185
|
-
AI_RICH_RESPONSE_TEXT = 2;
|
|
186
|
-
AI_RICH_RESPONSE_INLINE_IMAGE = 3;
|
|
187
|
-
AI_RICH_RESPONSE_TABLE = 4;
|
|
188
|
-
AI_RICH_RESPONSE_CODE = 5;
|
|
189
|
-
AI_RICH_RESPONSE_DYNAMIC = 6;
|
|
190
|
-
AI_RICH_RESPONSE_MAP = 7;
|
|
191
|
-
AI_RICH_RESPONSE_LATEX = 8;
|
|
192
|
-
AI_RICH_RESPONSE_CONTENT_ITEMS = 9;
|
|
193
|
-
}
|
|
194
|
-
message AIRichResponseTableMetadata {
|
|
195
|
-
repeated AIRichResponseTableRow rows = 1;
|
|
196
|
-
optional string title = 2;
|
|
197
|
-
message AIRichResponseTableRow {
|
|
198
|
-
repeated string items = 1;
|
|
199
|
-
optional bool isHeading = 2;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
message AIRichResponseUnifiedResponse {
|
|
205
|
-
optional bytes data = 1;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
56
|
}
|
|
209
57
|
|
|
210
58
|
message Account {
|
|
@@ -278,6 +126,11 @@ message BizIdentityInfo {
|
|
|
278
126
|
message BotAgeCollectionMetadata {
|
|
279
127
|
optional bool ageCollectionEligible = 1;
|
|
280
128
|
optional bool shouldTriggerAgeCollectionOnClient = 2;
|
|
129
|
+
optional AgeCollectionType ageCollectionType = 3;
|
|
130
|
+
enum AgeCollectionType {
|
|
131
|
+
O18_BINARY = 0;
|
|
132
|
+
WAFFLE = 1;
|
|
133
|
+
}
|
|
281
134
|
}
|
|
282
135
|
|
|
283
136
|
message BotAvatarMetadata {
|
|
@@ -328,6 +181,19 @@ message BotCapabilityMetadata {
|
|
|
328
181
|
RICH_RESPONSE_UNIFIED_RESPONSE = 34;
|
|
329
182
|
PROMOTION_MESSAGE = 35;
|
|
330
183
|
SIMPLIFIED_PROFILE_PAGE = 36;
|
|
184
|
+
RICH_RESPONSE_SOURCES_IN_MESSAGE = 37;
|
|
185
|
+
RICH_RESPONSE_SIDE_BY_SIDE_SURVEY = 38;
|
|
186
|
+
RICH_RESPONSE_UNIFIED_TEXT_COMPONENT = 39;
|
|
187
|
+
AI_SHARED_MEMORY = 40;
|
|
188
|
+
RICH_RESPONSE_UNIFIED_SOURCES = 41;
|
|
189
|
+
RICH_RESPONSE_UNIFIED_DOMAIN_CITATIONS = 42;
|
|
190
|
+
RICH_RESPONSE_UR_INLINE_REELS_ENABLED = 43;
|
|
191
|
+
RICH_RESPONSE_UR_MEDIA_GRID_ENABLED = 44;
|
|
192
|
+
RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER = 45;
|
|
193
|
+
RICH_RESPONSE_IN_APP_SURVEY = 46;
|
|
194
|
+
AI_RESPONSE_MODEL_BRANDING = 47;
|
|
195
|
+
SESSION_TRANSPARENCY_SYSTEM_MESSAGE = 48;
|
|
196
|
+
RICH_RESPONSE_UR_REASONING = 49;
|
|
331
197
|
}
|
|
332
198
|
}
|
|
333
199
|
|
|
@@ -413,6 +279,13 @@ message BotMetadata {
|
|
|
413
279
|
optional string conversationStarterPromptId = 25;
|
|
414
280
|
optional string botResponseId = 26;
|
|
415
281
|
optional BotSignatureVerificationMetadata verificationMetadata = 27;
|
|
282
|
+
optional BotUnifiedResponseMutation unifiedResponseMutation = 28;
|
|
283
|
+
optional BotMessageOriginMetadata botMessageOriginMetadata = 29;
|
|
284
|
+
optional InThreadSurveyMetadata inThreadSurveyMetadata = 30;
|
|
285
|
+
optional AIThreadInfo botThreadInfo = 31;
|
|
286
|
+
optional AIRegenerateMetadata regenerateMetadata = 32;
|
|
287
|
+
optional SessionTransparencyMetadata sessionTransparencyMetadata = 33;
|
|
288
|
+
optional bytes internalMetadata = 999;
|
|
416
289
|
}
|
|
417
290
|
|
|
418
291
|
enum BotMetricsEntryPoint {
|
|
@@ -465,6 +338,7 @@ message BotModeSelectionMetadata {
|
|
|
465
338
|
message BotModelMetadata {
|
|
466
339
|
optional ModelType modelType = 1;
|
|
467
340
|
optional PremiumModelStatus premiumModelStatus = 2;
|
|
341
|
+
optional string modelNameOverride = 3;
|
|
468
342
|
enum ModelType {
|
|
469
343
|
UNKNOWN_TYPE = 0;
|
|
470
344
|
LLAMA_PROD = 1;
|
|
@@ -520,7 +394,7 @@ message BotProgressIndicatorMetadata {
|
|
|
520
394
|
optional string sourceUrl = 3;
|
|
521
395
|
optional string favIconUrl = 4;
|
|
522
396
|
}
|
|
523
|
-
|
|
397
|
+
|
|
524
398
|
message BotPlanningSearchSourcesMetadata {
|
|
525
399
|
optional string sourceTitle = 1;
|
|
526
400
|
optional BotPlanningSearchSourceProvider provider = 2;
|
|
@@ -532,13 +406,13 @@ message BotProgressIndicatorMetadata {
|
|
|
532
406
|
BING = 3;
|
|
533
407
|
}
|
|
534
408
|
}
|
|
535
|
-
|
|
409
|
+
|
|
536
410
|
message BotPlanningStepSectionMetadata {
|
|
537
411
|
optional string sectionTitle = 1;
|
|
538
412
|
optional string sectionBody = 2;
|
|
539
413
|
repeated BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata sourcesMetadata = 3;
|
|
540
414
|
}
|
|
541
|
-
|
|
415
|
+
|
|
542
416
|
enum BotSearchSourceProvider {
|
|
543
417
|
UNKNOWN_PROVIDER = 0;
|
|
544
418
|
OTHER = 1;
|
|
@@ -552,7 +426,7 @@ message BotProgressIndicatorMetadata {
|
|
|
552
426
|
FINISHED = 3;
|
|
553
427
|
}
|
|
554
428
|
}
|
|
555
|
-
|
|
429
|
+
|
|
556
430
|
}
|
|
557
431
|
|
|
558
432
|
message BotPromotionMessageMetadata {
|
|
@@ -561,6 +435,7 @@ message BotPromotionMessageMetadata {
|
|
|
561
435
|
enum BotPromotionType {
|
|
562
436
|
UNKNOWN_TYPE = 0;
|
|
563
437
|
C50 = 1;
|
|
438
|
+
SURVEY_PLATFORM = 2;
|
|
564
439
|
}
|
|
565
440
|
}
|
|
566
441
|
|
|
@@ -584,7 +459,7 @@ message BotQuotaMetadata {
|
|
|
584
459
|
REASONING_FEATURE = 1;
|
|
585
460
|
}
|
|
586
461
|
}
|
|
587
|
-
|
|
462
|
+
|
|
588
463
|
}
|
|
589
464
|
|
|
590
465
|
message BotReminderMetadata {
|
|
@@ -614,7 +489,7 @@ message BotRenderingMetadata {
|
|
|
614
489
|
optional string value = 1;
|
|
615
490
|
repeated string associatedPrompts = 2;
|
|
616
491
|
}
|
|
617
|
-
|
|
492
|
+
|
|
618
493
|
}
|
|
619
494
|
|
|
620
495
|
message BotSessionMetadata {
|
|
@@ -654,14 +529,16 @@ message BotSourcesMetadata {
|
|
|
654
529
|
optional string sourceQuery = 4;
|
|
655
530
|
optional string faviconCdnUrl = 5;
|
|
656
531
|
optional uint32 citationNumber = 6;
|
|
532
|
+
optional string sourceTitle = 7;
|
|
657
533
|
enum SourceProvider {
|
|
658
534
|
UNKNOWN = 0;
|
|
659
535
|
BING = 1;
|
|
660
536
|
GOOGLE = 2;
|
|
661
537
|
SUPPORT = 3;
|
|
538
|
+
OTHER = 4;
|
|
662
539
|
}
|
|
663
540
|
}
|
|
664
|
-
|
|
541
|
+
|
|
665
542
|
}
|
|
666
543
|
|
|
667
544
|
message BotSuggestedPromptMetadata {
|
|
@@ -781,10 +658,10 @@ message ChatRowOpaqueData {
|
|
|
781
658
|
}
|
|
782
659
|
|
|
783
660
|
message Citation {
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
661
|
+
optional string title = 1;
|
|
662
|
+
optional string subtitle = 2;
|
|
663
|
+
optional string cmsId = 3;
|
|
664
|
+
optional string imageUrl = 4;
|
|
788
665
|
}
|
|
789
666
|
|
|
790
667
|
message ClientPairingProps {
|
|
@@ -1201,7 +1078,7 @@ message ContextInfo {
|
|
|
1201
1078
|
}
|
|
1202
1079
|
|
|
1203
1080
|
message Conversation {
|
|
1204
|
-
|
|
1081
|
+
optional string id = 1;
|
|
1205
1082
|
repeated HistorySyncMsg messages = 2;
|
|
1206
1083
|
optional string newJid = 3;
|
|
1207
1084
|
optional string oldJid = 4;
|
|
@@ -1470,7 +1347,7 @@ message GroupMention {
|
|
|
1470
1347
|
}
|
|
1471
1348
|
|
|
1472
1349
|
message GroupParticipant {
|
|
1473
|
-
|
|
1350
|
+
optional string userJid = 1;
|
|
1474
1351
|
optional Rank rank = 2;
|
|
1475
1352
|
enum Rank {
|
|
1476
1353
|
REGULAR = 0;
|
|
@@ -1503,7 +1380,7 @@ message HandshakeMessage {
|
|
|
1503
1380
|
}
|
|
1504
1381
|
|
|
1505
1382
|
message HistorySync {
|
|
1506
|
-
|
|
1383
|
+
optional HistorySyncType syncType = 1;
|
|
1507
1384
|
repeated Conversation conversations = 2;
|
|
1508
1385
|
repeated WebMessageInfo statusV3Messages = 3;
|
|
1509
1386
|
optional uint32 chunkOrder = 5;
|
|
@@ -1621,8 +1498,8 @@ message KeyId {
|
|
|
1621
1498
|
}
|
|
1622
1499
|
|
|
1623
1500
|
message LIDMigrationMapping {
|
|
1624
|
-
|
|
1625
|
-
|
|
1501
|
+
optional uint64 pn = 1;
|
|
1502
|
+
optional uint64 assignedLid = 2;
|
|
1626
1503
|
optional uint64 latestLid = 3;
|
|
1627
1504
|
}
|
|
1628
1505
|
|
|
@@ -3823,7 +3700,7 @@ message StatusMentionMessage {
|
|
|
3823
3700
|
}
|
|
3824
3701
|
|
|
3825
3702
|
message StatusPSA {
|
|
3826
|
-
|
|
3703
|
+
optional uint64 campaignId = 44;
|
|
3827
3704
|
optional uint64 campaignExpirationTimestamp = 45;
|
|
3828
3705
|
}
|
|
3829
3706
|
|
|
@@ -3962,15 +3839,15 @@ message SyncActionValue {
|
|
|
3962
3839
|
}
|
|
3963
3840
|
|
|
3964
3841
|
message CustomPaymentMethod {
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3842
|
+
optional string credentialId = 1;
|
|
3843
|
+
optional string country = 2;
|
|
3844
|
+
optional string type = 3;
|
|
3968
3845
|
repeated SyncActionValue.CustomPaymentMethodMetadata metadata = 4;
|
|
3969
3846
|
}
|
|
3970
3847
|
|
|
3971
3848
|
message CustomPaymentMethodMetadata {
|
|
3972
|
-
|
|
3973
|
-
|
|
3849
|
+
optional string key = 1;
|
|
3850
|
+
optional string value = 2;
|
|
3974
3851
|
}
|
|
3975
3852
|
|
|
3976
3853
|
message CustomPaymentMethodsAction {
|
|
@@ -4074,8 +3951,8 @@ message SyncActionValue {
|
|
|
4074
3951
|
}
|
|
4075
3952
|
|
|
4076
3953
|
message MerchantPaymentPartnerAction {
|
|
4077
|
-
|
|
4078
|
-
|
|
3954
|
+
optional Status status = 1;
|
|
3955
|
+
optional string country = 2;
|
|
4079
3956
|
optional string gatewayName = 3;
|
|
4080
3957
|
optional string credentialId = 4;
|
|
4081
3958
|
enum Status {
|
|
@@ -4121,8 +3998,8 @@ message SyncActionValue {
|
|
|
4121
3998
|
}
|
|
4122
3999
|
|
|
4123
4000
|
message PaymentTosAction {
|
|
4124
|
-
|
|
4125
|
-
|
|
4001
|
+
optional PaymentNotice paymentNotice = 1;
|
|
4002
|
+
optional bool accepted = 2;
|
|
4126
4003
|
enum PaymentNotice {
|
|
4127
4004
|
BR_PAY_PRIVACY_POLICY = 0;
|
|
4128
4005
|
}
|
|
@@ -4386,7 +4263,7 @@ message UserPassword {
|
|
|
4386
4263
|
}
|
|
4387
4264
|
|
|
4388
4265
|
message UserReceipt {
|
|
4389
|
-
|
|
4266
|
+
optional string userJid = 1;
|
|
4390
4267
|
optional int64 receiptTimestamp = 2;
|
|
4391
4268
|
optional int64 readTimestamp = 3;
|
|
4392
4269
|
optional int64 playedTimestamp = 4;
|
|
@@ -4468,7 +4345,7 @@ message WebFeatures {
|
|
|
4468
4345
|
}
|
|
4469
4346
|
|
|
4470
4347
|
message WebMessageInfo {
|
|
4471
|
-
|
|
4348
|
+
optional MessageKey key = 1;
|
|
4472
4349
|
optional Message message = 2;
|
|
4473
4350
|
optional uint64 messageTimestamp = 3;
|
|
4474
4351
|
optional Status status = 4;
|
|
@@ -4773,3 +4650,378 @@ message WebNotificationsInfo {
|
|
|
4773
4650
|
optional uint32 notifyMessageCount = 4;
|
|
4774
4651
|
repeated WebMessageInfo notifyMessages = 5;
|
|
4775
4652
|
}
|
|
4653
|
+
|
|
4654
|
+
message AIRichResponseSubMessage {
|
|
4655
|
+
optional AIRichResponseSubMessageType messageType = 1;
|
|
4656
|
+
optional AIRichResponseGridImageMetadata gridImageMetadata = 2;
|
|
4657
|
+
optional string messageText = 3;
|
|
4658
|
+
optional AIRichResponseInlineImageMetadata imageMetadata = 4;
|
|
4659
|
+
optional AIRichResponseCodeMetadata codeMetadata = 5;
|
|
4660
|
+
optional AIRichResponseTableMetadata tableMetadata = 6;
|
|
4661
|
+
optional AIRichResponseDynamicMetadata dynamicMetadata = 7;
|
|
4662
|
+
optional AIRichResponseLatexMetadata latexMetadata = 8;
|
|
4663
|
+
optional AIRichResponseMapMetadata mapMetadata = 9;
|
|
4664
|
+
optional AIRichResponseContentItemsMetadata contentItemsMetadata = 10;
|
|
4665
|
+
}
|
|
4666
|
+
|
|
4667
|
+
message AIRichResponseCodeMetadata {
|
|
4668
|
+
optional string codeLanguage = 1;
|
|
4669
|
+
repeated AIRichResponseCodeBlock codeBlocks = 2;
|
|
4670
|
+
message AIRichResponseCodeBlock {
|
|
4671
|
+
optional AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType highlightType = 1;
|
|
4672
|
+
optional string codeContent = 2;
|
|
4673
|
+
}
|
|
4674
|
+
|
|
4675
|
+
enum AIRichResponseCodeHighlightType {
|
|
4676
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT = 0;
|
|
4677
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD = 1;
|
|
4678
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD = 2;
|
|
4679
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING = 3;
|
|
4680
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER = 4;
|
|
4681
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT = 5;
|
|
4682
|
+
}
|
|
4683
|
+
}
|
|
4684
|
+
|
|
4685
|
+
message AIRichResponseContentItemsMetadata {
|
|
4686
|
+
repeated AIRichResponseContentItemMetadata itemsMetadata = 1;
|
|
4687
|
+
optional ContentType contentType = 2;
|
|
4688
|
+
message AIRichResponseContentItemMetadata {
|
|
4689
|
+
oneof aIRichResponseContentItem {
|
|
4690
|
+
AIRichResponseContentItemsMetadata.AIRichResponseReelItem reelItem = 1;
|
|
4691
|
+
}
|
|
4692
|
+
}
|
|
4693
|
+
|
|
4694
|
+
message AIRichResponseReelItem {
|
|
4695
|
+
optional string title = 1;
|
|
4696
|
+
optional string profileIconUrl = 2;
|
|
4697
|
+
optional string thumbnailUrl = 3;
|
|
4698
|
+
optional string videoUrl = 4;
|
|
4699
|
+
}
|
|
4700
|
+
|
|
4701
|
+
enum ContentType {
|
|
4702
|
+
DEFAULT = 0;
|
|
4703
|
+
CAROUSEL = 1;
|
|
4704
|
+
}
|
|
4705
|
+
}
|
|
4706
|
+
|
|
4707
|
+
message AIRichResponseDynamicMetadata {
|
|
4708
|
+
optional AIRichResponseDynamicMetadataType type = 1;
|
|
4709
|
+
optional uint64 version = 2;
|
|
4710
|
+
optional string url = 3;
|
|
4711
|
+
optional uint32 loopCount = 4;
|
|
4712
|
+
enum AIRichResponseDynamicMetadataType {
|
|
4713
|
+
AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN = 0;
|
|
4714
|
+
AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE = 1;
|
|
4715
|
+
AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF = 2;
|
|
4716
|
+
}
|
|
4717
|
+
}
|
|
4718
|
+
|
|
4719
|
+
message AIRichResponseGridImageMetadata {
|
|
4720
|
+
optional AIRichResponseImageURL gridImageUrl = 1;
|
|
4721
|
+
repeated AIRichResponseImageURL imageUrls = 2;
|
|
4722
|
+
}
|
|
4723
|
+
|
|
4724
|
+
message AIRichResponseImageURL {
|
|
4725
|
+
optional string imagePreviewUrl = 1;
|
|
4726
|
+
optional string imageHighResUrl = 2;
|
|
4727
|
+
optional string sourceUrl = 3;
|
|
4728
|
+
}
|
|
4729
|
+
|
|
4730
|
+
message AIRichResponseInlineImageMetadata {
|
|
4731
|
+
optional AIRichResponseImageURL imageUrl = 1;
|
|
4732
|
+
optional string imageText = 2;
|
|
4733
|
+
optional AIRichResponseImageAlignment alignment = 3;
|
|
4734
|
+
optional string tapLinkUrl = 4;
|
|
4735
|
+
enum AIRichResponseImageAlignment {
|
|
4736
|
+
AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED = 0;
|
|
4737
|
+
AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED = 1;
|
|
4738
|
+
AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED = 2;
|
|
4739
|
+
}
|
|
4740
|
+
}
|
|
4741
|
+
|
|
4742
|
+
message AIRichResponseLatexMetadata {
|
|
4743
|
+
optional string text = 1;
|
|
4744
|
+
repeated AIRichResponseLatexExpression expressions = 2;
|
|
4745
|
+
message AIRichResponseLatexExpression {
|
|
4746
|
+
optional string latexExpression = 1;
|
|
4747
|
+
optional string url = 2;
|
|
4748
|
+
optional double width = 3;
|
|
4749
|
+
optional double height = 4;
|
|
4750
|
+
optional double fontHeight = 5;
|
|
4751
|
+
optional double imageTopPadding = 6;
|
|
4752
|
+
optional double imageLeadingPadding = 7;
|
|
4753
|
+
optional double imageBottomPadding = 8;
|
|
4754
|
+
optional double imageTrailingPadding = 9;
|
|
4755
|
+
}
|
|
4756
|
+
|
|
4757
|
+
}
|
|
4758
|
+
|
|
4759
|
+
message AIRichResponseMapMetadata {
|
|
4760
|
+
optional double centerLatitude = 1;
|
|
4761
|
+
optional double centerLongitude = 2;
|
|
4762
|
+
optional double latitudeDelta = 3;
|
|
4763
|
+
optional double longitudeDelta = 4;
|
|
4764
|
+
repeated AIRichResponseMapAnnotation annotations = 5;
|
|
4765
|
+
optional bool showInfoList = 6;
|
|
4766
|
+
message AIRichResponseMapAnnotation {
|
|
4767
|
+
optional uint32 annotationNumber = 1;
|
|
4768
|
+
optional double latitude = 2;
|
|
4769
|
+
optional double longitude = 3;
|
|
4770
|
+
optional string title = 4;
|
|
4771
|
+
optional string body = 5;
|
|
4772
|
+
}
|
|
4773
|
+
|
|
4774
|
+
}
|
|
4775
|
+
|
|
4776
|
+
message AIRichResponseTableMetadata {
|
|
4777
|
+
repeated AIRichResponseTableRow rows = 1;
|
|
4778
|
+
optional string title = 2;
|
|
4779
|
+
message AIRichResponseTableRow {
|
|
4780
|
+
repeated string items = 1;
|
|
4781
|
+
optional bool isHeading = 2;
|
|
4782
|
+
}
|
|
4783
|
+
|
|
4784
|
+
}
|
|
4785
|
+
|
|
4786
|
+
message AIRichResponseUnifiedResponse {
|
|
4787
|
+
optional bytes data = 1;
|
|
4788
|
+
}
|
|
4789
|
+
|
|
4790
|
+
enum AIRichResponseMessageType {
|
|
4791
|
+
AI_RICH_RESPONSE_TYPE_UNKNOWN = 0;
|
|
4792
|
+
AI_RICH_RESPONSE_TYPE_STANDARD = 1;
|
|
4793
|
+
}
|
|
4794
|
+
|
|
4795
|
+
enum AIRichResponseSubMessageType {
|
|
4796
|
+
AI_RICH_RESPONSE_UNKNOWN = 0;
|
|
4797
|
+
AI_RICH_RESPONSE_GRID_IMAGE = 1;
|
|
4798
|
+
AI_RICH_RESPONSE_TEXT = 2;
|
|
4799
|
+
AI_RICH_RESPONSE_INLINE_IMAGE = 3;
|
|
4800
|
+
AI_RICH_RESPONSE_TABLE = 4;
|
|
4801
|
+
AI_RICH_RESPONSE_CODE = 5;
|
|
4802
|
+
AI_RICH_RESPONSE_DYNAMIC = 6;
|
|
4803
|
+
AI_RICH_RESPONSE_MAP = 7;
|
|
4804
|
+
AI_RICH_RESPONSE_LATEX = 8;
|
|
4805
|
+
AI_RICH_RESPONSE_CONTENT_ITEMS = 9;
|
|
4806
|
+
}
|
|
4807
|
+
|
|
4808
|
+
message BotFeedbackMessage {
|
|
4809
|
+
optional MessageKey messageKey = 1;
|
|
4810
|
+
optional BotFeedbackKind kind = 2;
|
|
4811
|
+
optional string text = 3;
|
|
4812
|
+
optional uint64 kindNegative = 4;
|
|
4813
|
+
optional uint64 kindPositive = 5;
|
|
4814
|
+
optional ReportKind kindReport = 6;
|
|
4815
|
+
optional SideBySideSurveyMetadata sideBySideSurveyMetadata = 7;
|
|
4816
|
+
enum BotFeedbackKind {
|
|
4817
|
+
BOT_FEEDBACK_POSITIVE = 0;
|
|
4818
|
+
BOT_FEEDBACK_NEGATIVE_GENERIC = 1;
|
|
4819
|
+
BOT_FEEDBACK_NEGATIVE_HELPFUL = 2;
|
|
4820
|
+
BOT_FEEDBACK_NEGATIVE_INTERESTING = 3;
|
|
4821
|
+
BOT_FEEDBACK_NEGATIVE_ACCURATE = 4;
|
|
4822
|
+
BOT_FEEDBACK_NEGATIVE_SAFE = 5;
|
|
4823
|
+
BOT_FEEDBACK_NEGATIVE_OTHER = 6;
|
|
4824
|
+
BOT_FEEDBACK_NEGATIVE_REFUSED = 7;
|
|
4825
|
+
BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING = 8;
|
|
4826
|
+
BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT = 9;
|
|
4827
|
+
BOT_FEEDBACK_NEGATIVE_PERSONALIZED = 10;
|
|
4828
|
+
BOT_FEEDBACK_NEGATIVE_CLARITY = 11;
|
|
4829
|
+
BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON = 12;
|
|
4830
|
+
BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY = 13;
|
|
4831
|
+
BOT_FEEDBACK_NEGATIVE = 14;
|
|
4832
|
+
}
|
|
4833
|
+
enum BotFeedbackKindMultipleNegative {
|
|
4834
|
+
BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC = 1;
|
|
4835
|
+
BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL = 2;
|
|
4836
|
+
BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING = 4;
|
|
4837
|
+
BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE = 8;
|
|
4838
|
+
BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE = 16;
|
|
4839
|
+
BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER = 32;
|
|
4840
|
+
BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED = 64;
|
|
4841
|
+
BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING = 128;
|
|
4842
|
+
BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT = 256;
|
|
4843
|
+
}
|
|
4844
|
+
enum BotFeedbackKindMultiplePositive {
|
|
4845
|
+
BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC = 1;
|
|
4846
|
+
}
|
|
4847
|
+
enum ReportKind {
|
|
4848
|
+
NONE = 0;
|
|
4849
|
+
GENERIC = 1;
|
|
4850
|
+
}
|
|
4851
|
+
message SideBySideSurveyMetadata {
|
|
4852
|
+
optional string selectedRequestId = 1;
|
|
4853
|
+
optional uint32 surveyId = 2;
|
|
4854
|
+
optional string simonSessionFbid = 3;
|
|
4855
|
+
optional string responseOtid = 4;
|
|
4856
|
+
optional string responseTimestampMsString = 5;
|
|
4857
|
+
optional bool isSelectedResponsePrimary = 6;
|
|
4858
|
+
optional string messageIdToEdit = 7;
|
|
4859
|
+
optional SideBySideSurveyAnalyticsData analyticsData = 8;
|
|
4860
|
+
optional SidebySideSurveyMetaAiAnalyticsData metaAiAnalyticsData = 9;
|
|
4861
|
+
message SideBySideSurveyAnalyticsData {
|
|
4862
|
+
optional string tessaEvent = 1;
|
|
4863
|
+
optional string tessaSessionFbid = 2;
|
|
4864
|
+
optional string simonSessionFbid = 3;
|
|
4865
|
+
}
|
|
4866
|
+
|
|
4867
|
+
message SidebySideSurveyMetaAiAnalyticsData {
|
|
4868
|
+
optional uint32 surveyId = 1;
|
|
4869
|
+
optional string primaryResponseId = 2;
|
|
4870
|
+
optional string testArmName = 3;
|
|
4871
|
+
optional string timestampMsString = 4;
|
|
4872
|
+
optional SideBySideSurveyCTAImpressionEventData ctaImpressionEvent = 5;
|
|
4873
|
+
optional SideBySideSurveyCTAClickEventData ctaClickEvent = 6;
|
|
4874
|
+
optional SideBySideSurveyCardImpressionEventData cardImpressionEvent = 7;
|
|
4875
|
+
optional SideBySideSurveyResponseEventData responseEvent = 8;
|
|
4876
|
+
optional SideBySideSurveyAbandonEventData abandonEvent = 9;
|
|
4877
|
+
message SideBySideSurveyAbandonEventData {
|
|
4878
|
+
optional string abandonDwellTimeMsString = 1;
|
|
4879
|
+
}
|
|
4880
|
+
|
|
4881
|
+
message SideBySideSurveyCTAClickEventData {
|
|
4882
|
+
optional bool isSurveyExpired = 1;
|
|
4883
|
+
optional string clickDwellTimeMsString = 2;
|
|
4884
|
+
}
|
|
4885
|
+
|
|
4886
|
+
message SideBySideSurveyCTAImpressionEventData {
|
|
4887
|
+
optional bool isSurveyExpired = 1;
|
|
4888
|
+
}
|
|
4889
|
+
|
|
4890
|
+
message SideBySideSurveyCardImpressionEventData {
|
|
4891
|
+
}
|
|
4892
|
+
|
|
4893
|
+
message SideBySideSurveyResponseEventData {
|
|
4894
|
+
optional string responseDwellTimeMsString = 1;
|
|
4895
|
+
optional string selectedResponseId = 2;
|
|
4896
|
+
}
|
|
4897
|
+
|
|
4898
|
+
}
|
|
4899
|
+
|
|
4900
|
+
}
|
|
4901
|
+
|
|
4902
|
+
}
|
|
4903
|
+
|
|
4904
|
+
message BotUnifiedResponseMutation {
|
|
4905
|
+
optional SideBySideMetadata sbsMetadata = 1;
|
|
4906
|
+
repeated MediaDetailsMetadata mediaDetailsMetadataList = 2;
|
|
4907
|
+
message MediaDetailsMetadata {
|
|
4908
|
+
optional string id = 1;
|
|
4909
|
+
optional BotMediaMetadata highResMedia = 2;
|
|
4910
|
+
optional BotMediaMetadata previewMedia = 3;
|
|
4911
|
+
}
|
|
4912
|
+
|
|
4913
|
+
message SideBySideMetadata {
|
|
4914
|
+
optional string primaryResponseId = 1;
|
|
4915
|
+
optional bool surveyCtaHasRendered = 2;
|
|
4916
|
+
}
|
|
4917
|
+
|
|
4918
|
+
}
|
|
4919
|
+
|
|
4920
|
+
message BotMessageOriginMetadata {
|
|
4921
|
+
repeated BotMessageOrigin origins = 1;
|
|
4922
|
+
}
|
|
4923
|
+
|
|
4924
|
+
message BotMessageSharingInfo {
|
|
4925
|
+
optional BotMetricsEntryPoint botEntryPointOrigin = 1;
|
|
4926
|
+
optional uint32 forwardScore = 2;
|
|
4927
|
+
}
|
|
4928
|
+
|
|
4929
|
+
message AIHomeState {
|
|
4930
|
+
optional int64 lastFetchTime = 1;
|
|
4931
|
+
repeated AIHomeOption capabilityOptions = 2;
|
|
4932
|
+
repeated AIHomeOption conversationOptions = 3;
|
|
4933
|
+
message AIHomeOption {
|
|
4934
|
+
optional AIHomeActionType type = 1;
|
|
4935
|
+
optional string title = 2;
|
|
4936
|
+
optional string promptText = 3;
|
|
4937
|
+
optional string sessionId = 4;
|
|
4938
|
+
optional string imageWdsIdentifier = 5;
|
|
4939
|
+
optional string imageTintColor = 6;
|
|
4940
|
+
optional string imageBackgroundColor = 7;
|
|
4941
|
+
enum AIHomeActionType {
|
|
4942
|
+
PROMPT = 0;
|
|
4943
|
+
CREATE_IMAGE = 1;
|
|
4944
|
+
ANIMATE_PHOTO = 2;
|
|
4945
|
+
ANALYZE_FILE = 3;
|
|
4946
|
+
}
|
|
4947
|
+
}
|
|
4948
|
+
|
|
4949
|
+
}
|
|
4950
|
+
|
|
4951
|
+
message AIRegenerateMetadata {
|
|
4952
|
+
optional MessageKey messageKey = 1;
|
|
4953
|
+
optional int64 responseTimestampMs = 2;
|
|
4954
|
+
}
|
|
4955
|
+
|
|
4956
|
+
message AIThreadInfo {
|
|
4957
|
+
optional AIThreadServerInfo serverInfo = 1;
|
|
4958
|
+
optional AIThreadClientInfo clientInfo = 2;
|
|
4959
|
+
message AIThreadClientInfo {
|
|
4960
|
+
optional AIThreadType type = 1;
|
|
4961
|
+
enum AIThreadType {
|
|
4962
|
+
UNKNOWN = 0;
|
|
4963
|
+
DEFAULT = 1;
|
|
4964
|
+
INCOGNITO = 2;
|
|
4965
|
+
}
|
|
4966
|
+
}
|
|
4967
|
+
|
|
4968
|
+
message AIThreadServerInfo {
|
|
4969
|
+
optional string title = 1;
|
|
4970
|
+
}
|
|
4971
|
+
|
|
4972
|
+
}
|
|
4973
|
+
|
|
4974
|
+
message InThreadSurveyMetadata {
|
|
4975
|
+
optional string tessaSessionId = 1;
|
|
4976
|
+
optional string simonSessionId = 2;
|
|
4977
|
+
optional string simonSurveyId = 3;
|
|
4978
|
+
optional string tessaRootId = 4;
|
|
4979
|
+
optional string requestId = 5;
|
|
4980
|
+
optional string tessaEvent = 6;
|
|
4981
|
+
optional string invitationHeaderText = 7;
|
|
4982
|
+
optional string invitationBodyText = 8;
|
|
4983
|
+
optional string invitationCtaText = 9;
|
|
4984
|
+
optional string invitationCtaUrl = 10;
|
|
4985
|
+
optional string surveyTitle = 11;
|
|
4986
|
+
repeated InThreadSurveyQuestion questions = 12;
|
|
4987
|
+
optional string surveyContinueButtonText = 13;
|
|
4988
|
+
optional string surveySubmitButtonText = 14;
|
|
4989
|
+
optional string privacyStatementFull = 15;
|
|
4990
|
+
repeated InThreadSurveyPrivacyStatementPart privacyStatementParts = 16;
|
|
4991
|
+
optional string feedbackToastText = 17;
|
|
4992
|
+
message InThreadSurveyOption {
|
|
4993
|
+
optional string stringValue = 1;
|
|
4994
|
+
optional uint32 numericValue = 2;
|
|
4995
|
+
optional string textTranslated = 3;
|
|
4996
|
+
}
|
|
4997
|
+
|
|
4998
|
+
message InThreadSurveyPrivacyStatementPart {
|
|
4999
|
+
optional string text = 1;
|
|
5000
|
+
optional string url = 2;
|
|
5001
|
+
}
|
|
5002
|
+
|
|
5003
|
+
message InThreadSurveyQuestion {
|
|
5004
|
+
optional string questionText = 1;
|
|
5005
|
+
optional string questionId = 2;
|
|
5006
|
+
repeated InThreadSurveyMetadata.InThreadSurveyOption questionOptions = 3;
|
|
5007
|
+
}
|
|
5008
|
+
|
|
5009
|
+
}
|
|
5010
|
+
|
|
5011
|
+
message SessionTransparencyMetadata {
|
|
5012
|
+
optional string disclaimerText = 1;
|
|
5013
|
+
optional string hcaId = 2;
|
|
5014
|
+
optional SessionTransparencyType sessionTransparencyType = 3;
|
|
5015
|
+
}
|
|
5016
|
+
|
|
5017
|
+
enum SessionTransparencyType {
|
|
5018
|
+
UNKNOWN_TYPE = 0;
|
|
5019
|
+
NY_AI_SAFETY_DISCLAIMER = 1;
|
|
5020
|
+
}
|
|
5021
|
+
|
|
5022
|
+
message BotMessageOrigin {
|
|
5023
|
+
optional BotMessageOriginType type = 1;
|
|
5024
|
+
enum BotMessageOriginType {
|
|
5025
|
+
BOT_MESSAGE_ORIGIN_TYPE_AI_INITIATED = 0;
|
|
5026
|
+
}
|
|
5027
|
+
}
|