dcodeindra-baileyspro 2.3.9
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/LICENSE +21 -0
- package/README.md +2534 -0
- package/WAProto/Adv/Adv.d.ts +518 -0
- package/WAProto/Adv/Adv.js +1734 -0
- package/WAProto/Adv/Adv.proto +36 -0
- package/WAProto/BotMetadata/BotMetadata.d.ts +5745 -0
- package/WAProto/BotMetadata/BotMetadata.js +16291 -0
- package/WAProto/BotMetadata/BotMetadata.proto +463 -0
- package/WAProto/Cert/Cert.d.ts +497 -0
- package/WAProto/Cert/Cert.js +1503 -0
- package/WAProto/Cert/Cert.proto +28 -0
- package/WAProto/ChatLockSettings/ChatLockSettings.d.ts +391 -0
- package/WAProto/ChatLockSettings/ChatLockSettings.js +1155 -0
- package/WAProto/ChatLockSettings/ChatLockSettings.proto +7 -0
- package/WAProto/CompanionReg/CompanionReg.d.ts +1055 -0
- package/WAProto/CompanionReg/CompanionReg.js +3532 -0
- package/WAProto/CompanionReg/CompanionReg.proto +89 -0
- package/WAProto/DeviceCapabilities/DeviceCapabilities.d.ts +187 -0
- package/WAProto/DeviceCapabilities/DeviceCapabilities.js +520 -0
- package/WAProto/DeviceCapabilities/DeviceCapabilities.proto +14 -0
- package/WAProto/E2E/E2E.d.ts +28417 -0
- package/WAProto/E2E/E2E.js +98438 -0
- package/WAProto/E2E/E2E.proto +2289 -0
- package/WAProto/Ephemeral/Ephemeral.d.ts +95 -0
- package/WAProto/Ephemeral/Ephemeral.js +269 -0
- package/WAProto/Ephemeral/Ephemeral.proto +6 -0
- package/WAProto/HistorySync/HistorySync.d.ts +40728 -0
- package/WAProto/HistorySync/HistorySync.js +142980 -0
- package/WAProto/HistorySync/HistorySync.proto +207 -0
- package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.d.ts +189 -0
- package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.js +585 -0
- package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.proto +11 -0
- package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.d.ts +461 -0
- package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.js +1559 -0
- package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.proto +37 -0
- package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.d.ts +29294 -0
- package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.js +101732 -0
- package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.proto +76 -0
- package/WAProto/MmsRetry/MmsRetry.d.ts +200 -0
- package/WAProto/MmsRetry/MmsRetry.js +586 -0
- package/WAProto/MmsRetry/MmsRetry.proto +17 -0
- package/WAProto/Protocol/Protocol.d.ts +218 -0
- package/WAProto/Protocol/Protocol.js +701 -0
- package/WAProto/Protocol/Protocol.proto +20 -0
- package/WAProto/Reporting/Reporting.d.ts +301 -0
- package/WAProto/Reporting/Reporting.js +989 -0
- package/WAProto/Reporting/Reporting.proto +19 -0
- package/WAProto/ServerSync/ServerSync.d.ts +1050 -0
- package/WAProto/ServerSync/ServerSync.js +3176 -0
- package/WAProto/ServerSync/ServerSync.proto +59 -0
- package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.d.ts +1507 -0
- package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.js +4756 -0
- package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.proto +88 -0
- package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.d.ts +617 -0
- package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.js +1940 -0
- package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.proto +38 -0
- package/WAProto/StatusAttributions/StatusAttributions.d.ts +636 -0
- package/WAProto/StatusAttributions/StatusAttributions.js +2037 -0
- package/WAProto/StatusAttributions/StatusAttributions.proto +61 -0
- package/WAProto/SyncAction/SyncAction.d.ts +7227 -0
- package/WAProto/SyncAction/SyncAction.js +22271 -0
- package/WAProto/SyncAction/SyncAction.proto +423 -0
- package/WAProto/UserPassword/UserPassword.d.ts +298 -0
- package/WAProto/UserPassword/UserPassword.js +898 -0
- package/WAProto/UserPassword/UserPassword.proto +27 -0
- package/WAProto/VnameCert/VnameCert.d.ts +658 -0
- package/WAProto/VnameCert/VnameCert.js +2225 -0
- package/WAProto/VnameCert/VnameCert.proto +60 -0
- package/WAProto/Wa6/Wa6.d.ts +1613 -0
- package/WAProto/Wa6/Wa6.js +6299 -0
- package/WAProto/Wa6/Wa6.proto +229 -0
- package/WAProto/Web/Web.d.ts +31718 -0
- package/WAProto/Web/Web.js +113402 -0
- package/WAProto/Web/Web.proto +545 -0
- package/WAProto/index.d.ts +49 -0
- package/WAProto/index.js +28 -0
- package/WASignalGroup/GroupProtocol.js +1771 -0
- package/WASignalGroup/ciphertext_message.js +10 -0
- package/WASignalGroup/group_cipher.js +103 -0
- package/WASignalGroup/group_session_builder.js +39 -0
- package/WASignalGroup/index.js +5 -0
- package/WASignalGroup/keyhelper.js +17 -0
- package/WASignalGroup/protobufs.js +2 -0
- package/WASignalGroup/queue_job.js +64 -0
- package/WASignalGroup/sender_chain_key.js +38 -0
- package/WASignalGroup/sender_key_distribution_message.js +68 -0
- package/WASignalGroup/sender_key_message.js +79 -0
- package/WASignalGroup/sender_key_name.js +59 -0
- package/WASignalGroup/sender_key_record.js +47 -0
- package/WASignalGroup/sender_key_state.js +110 -0
- package/WASignalGroup/sender_message_key.js +30 -0
- package/check-node-version.js +10 -0
- package/lib/Defaults/baileys-version.json +3 -0
- package/lib/Defaults/index.d.ts +51 -0
- package/lib/Defaults/index.js +108 -0
- package/lib/Defaults/phonenumber-mcc.json +223 -0
- package/lib/Signal/Group/ciphertext-message.d.ts +9 -0
- package/lib/Signal/Group/ciphertext-message.js +19 -0
- package/lib/Signal/Group/group-session-builder.d.ts +17 -0
- package/lib/Signal/Group/group-session-builder.js +72 -0
- package/lib/Signal/Group/group_cipher.d.ts +19 -0
- package/lib/Signal/Group/group_cipher.js +99 -0
- package/lib/Signal/Group/index.d.ts +11 -0
- package/lib/Signal/Group/index.js +61 -0
- package/lib/Signal/Group/keyhelper.d.ts +16 -0
- package/lib/Signal/Group/keyhelper.js +66 -0
- package/lib/Signal/Group/queue-job.d.ts +1 -0
- package/lib/Signal/Group/queue-job.js +64 -0
- package/lib/Signal/Group/sender-chain-key.d.ts +14 -0
- package/lib/Signal/Group/sender-chain-key.js +39 -0
- package/lib/Signal/Group/sender-key-distribution-message.d.ts +17 -0
- package/lib/Signal/Group/sender-key-distribution-message.js +71 -0
- package/lib/Signal/Group/sender-key-message.d.ts +19 -0
- package/lib/Signal/Group/sender-key-message.js +73 -0
- package/lib/Signal/Group/sender-key-name.d.ts +19 -0
- package/lib/Signal/Group/sender-key-name.js +59 -0
- package/lib/Signal/Group/sender-key-record.d.ts +32 -0
- package/lib/Signal/Group/sender-key-record.js +53 -0
- package/lib/Signal/Group/sender-key-record.ts +77 -0
- package/lib/Signal/Group/sender-key-state.d.ts +44 -0
- package/lib/Signal/Group/sender-key-state.js +104 -0
- package/lib/Signal/Group/sender-message-key.d.ts +11 -0
- package/lib/Signal/Group/sender-message-key.js +33 -0
- package/lib/Signal/libsignal.d.ts +3 -0
- package/lib/Signal/libsignal.js +153 -0
- package/lib/Socket/Client/index.d.ts +2 -0
- package/lib/Socket/Client/index.js +18 -0
- package/lib/Socket/Client/types.d.ts +15 -0
- package/lib/Socket/Client/types.js +14 -0
- package/lib/Socket/Client/websocket.d.ts +12 -0
- package/lib/Socket/Client/websocket.js +57 -0
- package/lib/Socket/business.d.ts +181 -0
- package/lib/Socket/business.js +259 -0
- package/lib/Socket/chats.d.ts +95 -0
- package/lib/Socket/chats.js +906 -0
- package/lib/Socket/community.d.ts +131 -0
- package/lib/Socket/community.js +369 -0
- package/lib/Socket/groups.d.ts +122 -0
- package/lib/Socket/groups.js +360 -0
- package/lib/Socket/index.d.ts +183 -0
- package/lib/Socket/index.js +10 -0
- package/lib/Socket/messages-recv.d.ts +170 -0
- package/lib/Socket/messages-recv.js +1074 -0
- package/lib/Socket/messages-send.d.ts +161 -0
- package/lib/Socket/messages-send.js +982 -0
- package/lib/Socket/newsletter.d.ts +140 -0
- package/lib/Socket/newsletter.js +242 -0
- package/lib/Socket/socket.d.ts +43 -0
- package/lib/Socket/socket.js +749 -0
- package/lib/Socket/usync.d.ts +36 -0
- package/lib/Socket/usync.js +71 -0
- package/lib/Store/index.d.ts +4 -0
- package/lib/Store/index.js +20 -0
- package/lib/Store/make-cache-manager-store.d.ts +13 -0
- package/lib/Store/make-cache-manager-store.js +77 -0
- package/lib/Store/make-in-memory-store.d.ts +117 -0
- package/lib/Store/make-in-memory-store.js +420 -0
- package/lib/Store/make-ordered-dictionary.d.ts +12 -0
- package/lib/Store/make-ordered-dictionary.js +83 -0
- package/lib/Store/object-repository.d.ts +10 -0
- package/lib/Store/object-repository.js +28 -0
- package/lib/Types/Auth.d.ts +103 -0
- package/lib/Types/Auth.js +2 -0
- package/lib/Types/Call.d.ts +13 -0
- package/lib/Types/Call.js +2 -0
- package/lib/Types/Chat.d.ts +115 -0
- package/lib/Types/Chat.js +6 -0
- package/lib/Types/Contact.d.ts +35 -0
- package/lib/Types/Contact.js +2 -0
- package/lib/Types/Events.d.ts +208 -0
- package/lib/Types/Events.js +2 -0
- package/lib/Types/GroupMetadata.d.ts +81 -0
- package/lib/Types/GroupMetadata.js +2 -0
- package/lib/Types/Label.d.ts +46 -0
- package/lib/Types/Label.js +28 -0
- package/lib/Types/LabelAssociation.d.ts +29 -0
- package/lib/Types/LabelAssociation.js +10 -0
- package/lib/Types/Message.d.ts +480 -0
- package/lib/Types/Message.js +9 -0
- package/lib/Types/MexUpdates.d.ts +9 -0
- package/lib/Types/MexUpdates.js +18 -0
- package/lib/Types/Newsletter.d.ts +92 -0
- package/lib/Types/Newsletter.js +33 -0
- package/lib/Types/Product.d.ts +78 -0
- package/lib/Types/Product.js +2 -0
- package/lib/Types/Signal.d.ts +57 -0
- package/lib/Types/Signal.js +2 -0
- package/lib/Types/Socket.d.ts +116 -0
- package/lib/Types/Socket.js +2 -0
- package/lib/Types/State.d.ts +27 -0
- package/lib/Types/State.js +2 -0
- package/lib/Types/USync.d.ts +25 -0
- package/lib/Types/USync.js +2 -0
- package/lib/Types/index.d.ts +70 -0
- package/lib/Types/index.js +42 -0
- package/lib/Utils/auth-utils.d.ts +18 -0
- package/lib/Utils/auth-utils.js +198 -0
- package/lib/Utils/baileys-event-stream.d.ts +16 -0
- package/lib/Utils/baileys-event-stream.js +64 -0
- package/lib/Utils/business.d.ts +22 -0
- package/lib/Utils/business.js +243 -0
- package/lib/Utils/chat-utils.d.ts +72 -0
- package/lib/Utils/chat-utils.js +762 -0
- package/lib/Utils/crypto.d.ts +40 -0
- package/lib/Utils/crypto.js +150 -0
- package/lib/Utils/decode-wa-message.d.ts +252 -0
- package/lib/Utils/decode-wa-message.js +232 -0
- package/lib/Utils/event-buffer.d.ts +35 -0
- package/lib/Utils/event-buffer.js +539 -0
- package/lib/Utils/generics.d.ts +96 -0
- package/lib/Utils/generics.js +553 -0
- package/lib/Utils/history.d.ts +29 -0
- package/lib/Utils/history.js +109 -0
- package/lib/Utils/index.d.ts +19 -0
- package/lib/Utils/index.js +35 -0
- package/lib/Utils/link-preview.d.ts +21 -0
- package/lib/Utils/link-preview.js +112 -0
- package/lib/Utils/logger.d.ts +11 -0
- package/lib/Utils/logger.js +7 -0
- package/lib/Utils/lt-hash.d.ts +12 -0
- package/lib/Utils/lt-hash.js +53 -0
- package/lib/Utils/make-mutex.d.ts +7 -0
- package/lib/Utils/make-mutex.js +45 -0
- package/lib/Utils/messages-media.d.ts +104 -0
- package/lib/Utils/messages-media.js +751 -0
- package/lib/Utils/messages.d.ts +80 -0
- package/lib/Utils/messages.js +1741 -0
- package/lib/Utils/noise-handler.d.ts +19 -0
- package/lib/Utils/noise-handler.js +150 -0
- package/lib/Utils/process-message.d.ts +41 -0
- package/lib/Utils/process-message.js +391 -0
- package/lib/Utils/signal.d.ts +33 -0
- package/lib/Utils/signal.js +154 -0
- package/lib/Utils/use-mongo-file-auth-state.d.ts +5 -0
- package/lib/Utils/use-mongo-file-auth-state.js +75 -0
- package/lib/Utils/use-multi-file-auth-state.d.ts +12 -0
- package/lib/Utils/use-multi-file-auth-state.js +123 -0
- package/lib/Utils/use-single-file-auth-state.d.ts +12 -0
- package/lib/Utils/use-single-file-auth-state.js +75 -0
- package/lib/Utils/validate-connection.d.ts +10 -0
- package/lib/Utils/validate-connection.js +174 -0
- package/lib/WABinary/constants.d.ts +27 -0
- package/lib/WABinary/constants.js +45 -0
- package/lib/WABinary/decode.d.ts +6 -0
- package/lib/WABinary/decode.js +255 -0
- package/lib/WABinary/encode.d.ts +2 -0
- package/lib/WABinary/encode.js +243 -0
- package/lib/WABinary/generic-utils.d.ts +16 -0
- package/lib/WABinary/generic-utils.js +125 -0
- package/lib/WABinary/index.d.ts +5 -0
- package/lib/WABinary/index.js +21 -0
- package/lib/WABinary/jid-utils.d.ts +34 -0
- package/lib/WABinary/jid-utils.js +73 -0
- package/lib/WABinary/types.d.ts +18 -0
- package/lib/WABinary/types.js +2 -0
- package/lib/WAM/BinaryInfo.d.ts +16 -0
- package/lib/WAM/BinaryInfo.js +14 -0
- package/lib/WAM/constants.d.ts +39 -0
- package/lib/WAM/constants.js +15362 -0
- package/lib/WAM/encode.d.ts +2 -0
- package/lib/WAM/encode.js +156 -0
- package/lib/WAM/index.d.ts +3 -0
- package/lib/WAM/index.js +19 -0
- package/lib/WAUSync/Protocols/USyncBotProfileProtocol.d.ts +25 -0
- package/lib/WAUSync/Protocols/USyncBotProfileProtocol.js +60 -0
- package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +9 -0
- package/lib/WAUSync/Protocols/USyncContactProtocol.js +32 -0
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +22 -0
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +58 -0
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +12 -0
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +31 -0
- package/lib/WAUSync/Protocols/USyncLIDProtocol.d.ts +8 -0
- package/lib/WAUSync/Protocols/USyncLIDProtocol.js +26 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +12 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js +42 -0
- package/lib/WAUSync/Protocols/index.d.ts +6 -0
- package/lib/WAUSync/Protocols/index.js +22 -0
- package/lib/WAUSync/USyncQuery.d.ts +28 -0
- package/lib/WAUSync/USyncQuery.js +88 -0
- package/lib/WAUSync/USyncUser.d.ts +12 -0
- package/lib/WAUSync/USyncUser.js +27 -0
- package/lib/WAUSync/index.d.ts +3 -0
- package/lib/WAUSync/index.js +19 -0
- package/lib/index.d.ts +13 -0
- package/lib/index.js +45 -0
- package/package.json +63 -0
|
@@ -0,0 +1,617 @@
|
|
|
1
|
+
import * as $protobuf from "protobufjs";
|
|
2
|
+
import Long = require("long");
|
|
3
|
+
/** Namespace SignalWhisperTextProtocol. */
|
|
4
|
+
export namespace SignalWhisperTextProtocol {
|
|
5
|
+
/** Properties of a DeviceConsistencyCodeMessage. */
|
|
6
|
+
interface IDeviceConsistencyCodeMessage {
|
|
7
|
+
/** DeviceConsistencyCodeMessage generation */
|
|
8
|
+
generation?: (number|null);
|
|
9
|
+
/** DeviceConsistencyCodeMessage signature */
|
|
10
|
+
signature?: (Uint8Array|null);
|
|
11
|
+
}
|
|
12
|
+
/** Represents a DeviceConsistencyCodeMessage. */
|
|
13
|
+
class DeviceConsistencyCodeMessage implements IDeviceConsistencyCodeMessage {
|
|
14
|
+
/**
|
|
15
|
+
* Constructs a new DeviceConsistencyCodeMessage.
|
|
16
|
+
* @param [properties] Properties to set
|
|
17
|
+
*/
|
|
18
|
+
constructor(properties?: SignalWhisperTextProtocol.IDeviceConsistencyCodeMessage);
|
|
19
|
+
/** DeviceConsistencyCodeMessage generation. */
|
|
20
|
+
public generation?: (number|null);
|
|
21
|
+
/** DeviceConsistencyCodeMessage signature. */
|
|
22
|
+
public signature?: (Uint8Array|null);
|
|
23
|
+
/** DeviceConsistencyCodeMessage _generation. */
|
|
24
|
+
public _generation?: "generation";
|
|
25
|
+
/** DeviceConsistencyCodeMessage _signature. */
|
|
26
|
+
public _signature?: "signature";
|
|
27
|
+
/**
|
|
28
|
+
* Creates a new DeviceConsistencyCodeMessage instance using the specified properties.
|
|
29
|
+
* @param [properties] Properties to set
|
|
30
|
+
* @returns DeviceConsistencyCodeMessage instance
|
|
31
|
+
*/
|
|
32
|
+
public static create(properties?: SignalWhisperTextProtocol.IDeviceConsistencyCodeMessage): SignalWhisperTextProtocol.DeviceConsistencyCodeMessage;
|
|
33
|
+
/**
|
|
34
|
+
* Encodes the specified DeviceConsistencyCodeMessage message. Does not implicitly {@link SignalWhisperTextProtocol.DeviceConsistencyCodeMessage.verify|verify} messages.
|
|
35
|
+
* @param message DeviceConsistencyCodeMessage message or plain object to encode
|
|
36
|
+
* @param [writer] Writer to encode to
|
|
37
|
+
* @returns Writer
|
|
38
|
+
*/
|
|
39
|
+
public static encode(message: SignalWhisperTextProtocol.IDeviceConsistencyCodeMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
40
|
+
/**
|
|
41
|
+
* Encodes the specified DeviceConsistencyCodeMessage message, length delimited. Does not implicitly {@link SignalWhisperTextProtocol.DeviceConsistencyCodeMessage.verify|verify} messages.
|
|
42
|
+
* @param message DeviceConsistencyCodeMessage message or plain object to encode
|
|
43
|
+
* @param [writer] Writer to encode to
|
|
44
|
+
* @returns Writer
|
|
45
|
+
*/
|
|
46
|
+
public static encodeDelimited(message: SignalWhisperTextProtocol.IDeviceConsistencyCodeMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
47
|
+
/**
|
|
48
|
+
* Decodes a DeviceConsistencyCodeMessage message from the specified reader or buffer.
|
|
49
|
+
* @param reader Reader or buffer to decode from
|
|
50
|
+
* @param [length] Message length if known beforehand
|
|
51
|
+
* @returns DeviceConsistencyCodeMessage
|
|
52
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
53
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
54
|
+
*/
|
|
55
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SignalWhisperTextProtocol.DeviceConsistencyCodeMessage;
|
|
56
|
+
/**
|
|
57
|
+
* Decodes a DeviceConsistencyCodeMessage message from the specified reader or buffer, length delimited.
|
|
58
|
+
* @param reader Reader or buffer to decode from
|
|
59
|
+
* @returns DeviceConsistencyCodeMessage
|
|
60
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
61
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62
|
+
*/
|
|
63
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SignalWhisperTextProtocol.DeviceConsistencyCodeMessage;
|
|
64
|
+
/**
|
|
65
|
+
* Verifies a DeviceConsistencyCodeMessage message.
|
|
66
|
+
* @param message Plain object to verify
|
|
67
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
68
|
+
*/
|
|
69
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
70
|
+
/**
|
|
71
|
+
* Creates a DeviceConsistencyCodeMessage message from a plain object. Also converts values to their respective internal types.
|
|
72
|
+
* @param object Plain object
|
|
73
|
+
* @returns DeviceConsistencyCodeMessage
|
|
74
|
+
*/
|
|
75
|
+
public static fromObject(object: { [k: string]: any }): SignalWhisperTextProtocol.DeviceConsistencyCodeMessage;
|
|
76
|
+
/**
|
|
77
|
+
* Creates a plain object from a DeviceConsistencyCodeMessage message. Also converts values to other types if specified.
|
|
78
|
+
* @param message DeviceConsistencyCodeMessage
|
|
79
|
+
* @param [options] Conversion options
|
|
80
|
+
* @returns Plain object
|
|
81
|
+
*/
|
|
82
|
+
public static toObject(message: SignalWhisperTextProtocol.DeviceConsistencyCodeMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
83
|
+
/**
|
|
84
|
+
* Converts this DeviceConsistencyCodeMessage to JSON.
|
|
85
|
+
* @returns JSON object
|
|
86
|
+
*/
|
|
87
|
+
public toJSON(): { [k: string]: any };
|
|
88
|
+
/**
|
|
89
|
+
* Gets the default type url for DeviceConsistencyCodeMessage
|
|
90
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
91
|
+
* @returns The default type url
|
|
92
|
+
*/
|
|
93
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
94
|
+
}
|
|
95
|
+
/** Properties of a SenderKeyDistributionMessage. */
|
|
96
|
+
interface ISenderKeyDistributionMessage {
|
|
97
|
+
/** SenderKeyDistributionMessage id */
|
|
98
|
+
id?: (number|null);
|
|
99
|
+
/** SenderKeyDistributionMessage iteration */
|
|
100
|
+
iteration?: (number|null);
|
|
101
|
+
/** SenderKeyDistributionMessage chainKey */
|
|
102
|
+
chainKey?: (Uint8Array|null);
|
|
103
|
+
/** SenderKeyDistributionMessage signingKey */
|
|
104
|
+
signingKey?: (Uint8Array|null);
|
|
105
|
+
}
|
|
106
|
+
/** Represents a SenderKeyDistributionMessage. */
|
|
107
|
+
class SenderKeyDistributionMessage implements ISenderKeyDistributionMessage {
|
|
108
|
+
/**
|
|
109
|
+
* Constructs a new SenderKeyDistributionMessage.
|
|
110
|
+
* @param [properties] Properties to set
|
|
111
|
+
*/
|
|
112
|
+
constructor(properties?: SignalWhisperTextProtocol.ISenderKeyDistributionMessage);
|
|
113
|
+
/** SenderKeyDistributionMessage id. */
|
|
114
|
+
public id?: (number|null);
|
|
115
|
+
/** SenderKeyDistributionMessage iteration. */
|
|
116
|
+
public iteration?: (number|null);
|
|
117
|
+
/** SenderKeyDistributionMessage chainKey. */
|
|
118
|
+
public chainKey?: (Uint8Array|null);
|
|
119
|
+
/** SenderKeyDistributionMessage signingKey. */
|
|
120
|
+
public signingKey?: (Uint8Array|null);
|
|
121
|
+
/** SenderKeyDistributionMessage _id. */
|
|
122
|
+
public _id?: "id";
|
|
123
|
+
/** SenderKeyDistributionMessage _iteration. */
|
|
124
|
+
public _iteration?: "iteration";
|
|
125
|
+
/** SenderKeyDistributionMessage _chainKey. */
|
|
126
|
+
public _chainKey?: "chainKey";
|
|
127
|
+
/** SenderKeyDistributionMessage _signingKey. */
|
|
128
|
+
public _signingKey?: "signingKey";
|
|
129
|
+
/**
|
|
130
|
+
* Creates a new SenderKeyDistributionMessage instance using the specified properties.
|
|
131
|
+
* @param [properties] Properties to set
|
|
132
|
+
* @returns SenderKeyDistributionMessage instance
|
|
133
|
+
*/
|
|
134
|
+
public static create(properties?: SignalWhisperTextProtocol.ISenderKeyDistributionMessage): SignalWhisperTextProtocol.SenderKeyDistributionMessage;
|
|
135
|
+
/**
|
|
136
|
+
* Encodes the specified SenderKeyDistributionMessage message. Does not implicitly {@link SignalWhisperTextProtocol.SenderKeyDistributionMessage.verify|verify} messages.
|
|
137
|
+
* @param message SenderKeyDistributionMessage message or plain object to encode
|
|
138
|
+
* @param [writer] Writer to encode to
|
|
139
|
+
* @returns Writer
|
|
140
|
+
*/
|
|
141
|
+
public static encode(message: SignalWhisperTextProtocol.ISenderKeyDistributionMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
142
|
+
/**
|
|
143
|
+
* Encodes the specified SenderKeyDistributionMessage message, length delimited. Does not implicitly {@link SignalWhisperTextProtocol.SenderKeyDistributionMessage.verify|verify} messages.
|
|
144
|
+
* @param message SenderKeyDistributionMessage message or plain object to encode
|
|
145
|
+
* @param [writer] Writer to encode to
|
|
146
|
+
* @returns Writer
|
|
147
|
+
*/
|
|
148
|
+
public static encodeDelimited(message: SignalWhisperTextProtocol.ISenderKeyDistributionMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
149
|
+
/**
|
|
150
|
+
* Decodes a SenderKeyDistributionMessage message from the specified reader or buffer.
|
|
151
|
+
* @param reader Reader or buffer to decode from
|
|
152
|
+
* @param [length] Message length if known beforehand
|
|
153
|
+
* @returns SenderKeyDistributionMessage
|
|
154
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
155
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
156
|
+
*/
|
|
157
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SignalWhisperTextProtocol.SenderKeyDistributionMessage;
|
|
158
|
+
/**
|
|
159
|
+
* Decodes a SenderKeyDistributionMessage message from the specified reader or buffer, length delimited.
|
|
160
|
+
* @param reader Reader or buffer to decode from
|
|
161
|
+
* @returns SenderKeyDistributionMessage
|
|
162
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
163
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
164
|
+
*/
|
|
165
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SignalWhisperTextProtocol.SenderKeyDistributionMessage;
|
|
166
|
+
/**
|
|
167
|
+
* Verifies a SenderKeyDistributionMessage message.
|
|
168
|
+
* @param message Plain object to verify
|
|
169
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
170
|
+
*/
|
|
171
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
172
|
+
/**
|
|
173
|
+
* Creates a SenderKeyDistributionMessage message from a plain object. Also converts values to their respective internal types.
|
|
174
|
+
* @param object Plain object
|
|
175
|
+
* @returns SenderKeyDistributionMessage
|
|
176
|
+
*/
|
|
177
|
+
public static fromObject(object: { [k: string]: any }): SignalWhisperTextProtocol.SenderKeyDistributionMessage;
|
|
178
|
+
/**
|
|
179
|
+
* Creates a plain object from a SenderKeyDistributionMessage message. Also converts values to other types if specified.
|
|
180
|
+
* @param message SenderKeyDistributionMessage
|
|
181
|
+
* @param [options] Conversion options
|
|
182
|
+
* @returns Plain object
|
|
183
|
+
*/
|
|
184
|
+
public static toObject(message: SignalWhisperTextProtocol.SenderKeyDistributionMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
185
|
+
/**
|
|
186
|
+
* Converts this SenderKeyDistributionMessage to JSON.
|
|
187
|
+
* @returns JSON object
|
|
188
|
+
*/
|
|
189
|
+
public toJSON(): { [k: string]: any };
|
|
190
|
+
/**
|
|
191
|
+
* Gets the default type url for SenderKeyDistributionMessage
|
|
192
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
193
|
+
* @returns The default type url
|
|
194
|
+
*/
|
|
195
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
196
|
+
}
|
|
197
|
+
/** Properties of a SenderKeyMessage. */
|
|
198
|
+
interface ISenderKeyMessage {
|
|
199
|
+
/** SenderKeyMessage id */
|
|
200
|
+
id?: (number|null);
|
|
201
|
+
/** SenderKeyMessage iteration */
|
|
202
|
+
iteration?: (number|null);
|
|
203
|
+
/** SenderKeyMessage ciphertext */
|
|
204
|
+
ciphertext?: (Uint8Array|null);
|
|
205
|
+
}
|
|
206
|
+
/** Represents a SenderKeyMessage. */
|
|
207
|
+
class SenderKeyMessage implements ISenderKeyMessage {
|
|
208
|
+
/**
|
|
209
|
+
* Constructs a new SenderKeyMessage.
|
|
210
|
+
* @param [properties] Properties to set
|
|
211
|
+
*/
|
|
212
|
+
constructor(properties?: SignalWhisperTextProtocol.ISenderKeyMessage);
|
|
213
|
+
/** SenderKeyMessage id. */
|
|
214
|
+
public id?: (number|null);
|
|
215
|
+
/** SenderKeyMessage iteration. */
|
|
216
|
+
public iteration?: (number|null);
|
|
217
|
+
/** SenderKeyMessage ciphertext. */
|
|
218
|
+
public ciphertext?: (Uint8Array|null);
|
|
219
|
+
/** SenderKeyMessage _id. */
|
|
220
|
+
public _id?: "id";
|
|
221
|
+
/** SenderKeyMessage _iteration. */
|
|
222
|
+
public _iteration?: "iteration";
|
|
223
|
+
/** SenderKeyMessage _ciphertext. */
|
|
224
|
+
public _ciphertext?: "ciphertext";
|
|
225
|
+
/**
|
|
226
|
+
* Creates a new SenderKeyMessage instance using the specified properties.
|
|
227
|
+
* @param [properties] Properties to set
|
|
228
|
+
* @returns SenderKeyMessage instance
|
|
229
|
+
*/
|
|
230
|
+
public static create(properties?: SignalWhisperTextProtocol.ISenderKeyMessage): SignalWhisperTextProtocol.SenderKeyMessage;
|
|
231
|
+
/**
|
|
232
|
+
* Encodes the specified SenderKeyMessage message. Does not implicitly {@link SignalWhisperTextProtocol.SenderKeyMessage.verify|verify} messages.
|
|
233
|
+
* @param message SenderKeyMessage message or plain object to encode
|
|
234
|
+
* @param [writer] Writer to encode to
|
|
235
|
+
* @returns Writer
|
|
236
|
+
*/
|
|
237
|
+
public static encode(message: SignalWhisperTextProtocol.ISenderKeyMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
238
|
+
/**
|
|
239
|
+
* Encodes the specified SenderKeyMessage message, length delimited. Does not implicitly {@link SignalWhisperTextProtocol.SenderKeyMessage.verify|verify} messages.
|
|
240
|
+
* @param message SenderKeyMessage message or plain object to encode
|
|
241
|
+
* @param [writer] Writer to encode to
|
|
242
|
+
* @returns Writer
|
|
243
|
+
*/
|
|
244
|
+
public static encodeDelimited(message: SignalWhisperTextProtocol.ISenderKeyMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
245
|
+
/**
|
|
246
|
+
* Decodes a SenderKeyMessage message from the specified reader or buffer.
|
|
247
|
+
* @param reader Reader or buffer to decode from
|
|
248
|
+
* @param [length] Message length if known beforehand
|
|
249
|
+
* @returns SenderKeyMessage
|
|
250
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
251
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
252
|
+
*/
|
|
253
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SignalWhisperTextProtocol.SenderKeyMessage;
|
|
254
|
+
/**
|
|
255
|
+
* Decodes a SenderKeyMessage message from the specified reader or buffer, length delimited.
|
|
256
|
+
* @param reader Reader or buffer to decode from
|
|
257
|
+
* @returns SenderKeyMessage
|
|
258
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
259
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
260
|
+
*/
|
|
261
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SignalWhisperTextProtocol.SenderKeyMessage;
|
|
262
|
+
/**
|
|
263
|
+
* Verifies a SenderKeyMessage message.
|
|
264
|
+
* @param message Plain object to verify
|
|
265
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
266
|
+
*/
|
|
267
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
268
|
+
/**
|
|
269
|
+
* Creates a SenderKeyMessage message from a plain object. Also converts values to their respective internal types.
|
|
270
|
+
* @param object Plain object
|
|
271
|
+
* @returns SenderKeyMessage
|
|
272
|
+
*/
|
|
273
|
+
public static fromObject(object: { [k: string]: any }): SignalWhisperTextProtocol.SenderKeyMessage;
|
|
274
|
+
/**
|
|
275
|
+
* Creates a plain object from a SenderKeyMessage message. Also converts values to other types if specified.
|
|
276
|
+
* @param message SenderKeyMessage
|
|
277
|
+
* @param [options] Conversion options
|
|
278
|
+
* @returns Plain object
|
|
279
|
+
*/
|
|
280
|
+
public static toObject(message: SignalWhisperTextProtocol.SenderKeyMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
281
|
+
/**
|
|
282
|
+
* Converts this SenderKeyMessage to JSON.
|
|
283
|
+
* @returns JSON object
|
|
284
|
+
*/
|
|
285
|
+
public toJSON(): { [k: string]: any };
|
|
286
|
+
/**
|
|
287
|
+
* Gets the default type url for SenderKeyMessage
|
|
288
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
289
|
+
* @returns The default type url
|
|
290
|
+
*/
|
|
291
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
292
|
+
}
|
|
293
|
+
/** Properties of a KeyExchangeMessage. */
|
|
294
|
+
interface IKeyExchangeMessage {
|
|
295
|
+
/** KeyExchangeMessage id */
|
|
296
|
+
id?: (number|null);
|
|
297
|
+
/** KeyExchangeMessage baseKey */
|
|
298
|
+
baseKey?: (Uint8Array|null);
|
|
299
|
+
/** KeyExchangeMessage ratchetKey */
|
|
300
|
+
ratchetKey?: (Uint8Array|null);
|
|
301
|
+
/** KeyExchangeMessage identityKey */
|
|
302
|
+
identityKey?: (Uint8Array|null);
|
|
303
|
+
/** KeyExchangeMessage baseKeySignature */
|
|
304
|
+
baseKeySignature?: (Uint8Array|null);
|
|
305
|
+
}
|
|
306
|
+
/** Represents a KeyExchangeMessage. */
|
|
307
|
+
class KeyExchangeMessage implements IKeyExchangeMessage {
|
|
308
|
+
/**
|
|
309
|
+
* Constructs a new KeyExchangeMessage.
|
|
310
|
+
* @param [properties] Properties to set
|
|
311
|
+
*/
|
|
312
|
+
constructor(properties?: SignalWhisperTextProtocol.IKeyExchangeMessage);
|
|
313
|
+
/** KeyExchangeMessage id. */
|
|
314
|
+
public id?: (number|null);
|
|
315
|
+
/** KeyExchangeMessage baseKey. */
|
|
316
|
+
public baseKey?: (Uint8Array|null);
|
|
317
|
+
/** KeyExchangeMessage ratchetKey. */
|
|
318
|
+
public ratchetKey?: (Uint8Array|null);
|
|
319
|
+
/** KeyExchangeMessage identityKey. */
|
|
320
|
+
public identityKey?: (Uint8Array|null);
|
|
321
|
+
/** KeyExchangeMessage baseKeySignature. */
|
|
322
|
+
public baseKeySignature?: (Uint8Array|null);
|
|
323
|
+
/** KeyExchangeMessage _id. */
|
|
324
|
+
public _id?: "id";
|
|
325
|
+
/** KeyExchangeMessage _baseKey. */
|
|
326
|
+
public _baseKey?: "baseKey";
|
|
327
|
+
/** KeyExchangeMessage _ratchetKey. */
|
|
328
|
+
public _ratchetKey?: "ratchetKey";
|
|
329
|
+
/** KeyExchangeMessage _identityKey. */
|
|
330
|
+
public _identityKey?: "identityKey";
|
|
331
|
+
/** KeyExchangeMessage _baseKeySignature. */
|
|
332
|
+
public _baseKeySignature?: "baseKeySignature";
|
|
333
|
+
/**
|
|
334
|
+
* Creates a new KeyExchangeMessage instance using the specified properties.
|
|
335
|
+
* @param [properties] Properties to set
|
|
336
|
+
* @returns KeyExchangeMessage instance
|
|
337
|
+
*/
|
|
338
|
+
public static create(properties?: SignalWhisperTextProtocol.IKeyExchangeMessage): SignalWhisperTextProtocol.KeyExchangeMessage;
|
|
339
|
+
/**
|
|
340
|
+
* Encodes the specified KeyExchangeMessage message. Does not implicitly {@link SignalWhisperTextProtocol.KeyExchangeMessage.verify|verify} messages.
|
|
341
|
+
* @param message KeyExchangeMessage message or plain object to encode
|
|
342
|
+
* @param [writer] Writer to encode to
|
|
343
|
+
* @returns Writer
|
|
344
|
+
*/
|
|
345
|
+
public static encode(message: SignalWhisperTextProtocol.IKeyExchangeMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
346
|
+
/**
|
|
347
|
+
* Encodes the specified KeyExchangeMessage message, length delimited. Does not implicitly {@link SignalWhisperTextProtocol.KeyExchangeMessage.verify|verify} messages.
|
|
348
|
+
* @param message KeyExchangeMessage message or plain object to encode
|
|
349
|
+
* @param [writer] Writer to encode to
|
|
350
|
+
* @returns Writer
|
|
351
|
+
*/
|
|
352
|
+
public static encodeDelimited(message: SignalWhisperTextProtocol.IKeyExchangeMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
353
|
+
/**
|
|
354
|
+
* Decodes a KeyExchangeMessage message from the specified reader or buffer.
|
|
355
|
+
* @param reader Reader or buffer to decode from
|
|
356
|
+
* @param [length] Message length if known beforehand
|
|
357
|
+
* @returns KeyExchangeMessage
|
|
358
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
359
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
360
|
+
*/
|
|
361
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SignalWhisperTextProtocol.KeyExchangeMessage;
|
|
362
|
+
/**
|
|
363
|
+
* Decodes a KeyExchangeMessage message from the specified reader or buffer, length delimited.
|
|
364
|
+
* @param reader Reader or buffer to decode from
|
|
365
|
+
* @returns KeyExchangeMessage
|
|
366
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
367
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
368
|
+
*/
|
|
369
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SignalWhisperTextProtocol.KeyExchangeMessage;
|
|
370
|
+
/**
|
|
371
|
+
* Verifies a KeyExchangeMessage message.
|
|
372
|
+
* @param message Plain object to verify
|
|
373
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
374
|
+
*/
|
|
375
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
376
|
+
/**
|
|
377
|
+
* Creates a KeyExchangeMessage message from a plain object. Also converts values to their respective internal types.
|
|
378
|
+
* @param object Plain object
|
|
379
|
+
* @returns KeyExchangeMessage
|
|
380
|
+
*/
|
|
381
|
+
public static fromObject(object: { [k: string]: any }): SignalWhisperTextProtocol.KeyExchangeMessage;
|
|
382
|
+
/**
|
|
383
|
+
* Creates a plain object from a KeyExchangeMessage message. Also converts values to other types if specified.
|
|
384
|
+
* @param message KeyExchangeMessage
|
|
385
|
+
* @param [options] Conversion options
|
|
386
|
+
* @returns Plain object
|
|
387
|
+
*/
|
|
388
|
+
public static toObject(message: SignalWhisperTextProtocol.KeyExchangeMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
389
|
+
/**
|
|
390
|
+
* Converts this KeyExchangeMessage to JSON.
|
|
391
|
+
* @returns JSON object
|
|
392
|
+
*/
|
|
393
|
+
public toJSON(): { [k: string]: any };
|
|
394
|
+
/**
|
|
395
|
+
* Gets the default type url for KeyExchangeMessage
|
|
396
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
397
|
+
* @returns The default type url
|
|
398
|
+
*/
|
|
399
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
400
|
+
}
|
|
401
|
+
/** Properties of a PreKeySignalMessage. */
|
|
402
|
+
interface IPreKeySignalMessage {
|
|
403
|
+
/** PreKeySignalMessage registrationId */
|
|
404
|
+
registrationId?: (number|null);
|
|
405
|
+
/** PreKeySignalMessage preKeyId */
|
|
406
|
+
preKeyId?: (number|null);
|
|
407
|
+
/** PreKeySignalMessage signedPreKeyId */
|
|
408
|
+
signedPreKeyId?: (number|null);
|
|
409
|
+
/** PreKeySignalMessage baseKey */
|
|
410
|
+
baseKey?: (Uint8Array|null);
|
|
411
|
+
/** PreKeySignalMessage identityKey */
|
|
412
|
+
identityKey?: (Uint8Array|null);
|
|
413
|
+
/** PreKeySignalMessage message */
|
|
414
|
+
message?: (Uint8Array|null);
|
|
415
|
+
}
|
|
416
|
+
/** Represents a PreKeySignalMessage. */
|
|
417
|
+
class PreKeySignalMessage implements IPreKeySignalMessage {
|
|
418
|
+
/**
|
|
419
|
+
* Constructs a new PreKeySignalMessage.
|
|
420
|
+
* @param [properties] Properties to set
|
|
421
|
+
*/
|
|
422
|
+
constructor(properties?: SignalWhisperTextProtocol.IPreKeySignalMessage);
|
|
423
|
+
/** PreKeySignalMessage registrationId. */
|
|
424
|
+
public registrationId?: (number|null);
|
|
425
|
+
/** PreKeySignalMessage preKeyId. */
|
|
426
|
+
public preKeyId?: (number|null);
|
|
427
|
+
/** PreKeySignalMessage signedPreKeyId. */
|
|
428
|
+
public signedPreKeyId?: (number|null);
|
|
429
|
+
/** PreKeySignalMessage baseKey. */
|
|
430
|
+
public baseKey?: (Uint8Array|null);
|
|
431
|
+
/** PreKeySignalMessage identityKey. */
|
|
432
|
+
public identityKey?: (Uint8Array|null);
|
|
433
|
+
/** PreKeySignalMessage message. */
|
|
434
|
+
public message?: (Uint8Array|null);
|
|
435
|
+
/** PreKeySignalMessage _registrationId. */
|
|
436
|
+
public _registrationId?: "registrationId";
|
|
437
|
+
/** PreKeySignalMessage _preKeyId. */
|
|
438
|
+
public _preKeyId?: "preKeyId";
|
|
439
|
+
/** PreKeySignalMessage _signedPreKeyId. */
|
|
440
|
+
public _signedPreKeyId?: "signedPreKeyId";
|
|
441
|
+
/** PreKeySignalMessage _baseKey. */
|
|
442
|
+
public _baseKey?: "baseKey";
|
|
443
|
+
/** PreKeySignalMessage _identityKey. */
|
|
444
|
+
public _identityKey?: "identityKey";
|
|
445
|
+
/** PreKeySignalMessage _message. */
|
|
446
|
+
public _message?: "message";
|
|
447
|
+
/**
|
|
448
|
+
* Creates a new PreKeySignalMessage instance using the specified properties.
|
|
449
|
+
* @param [properties] Properties to set
|
|
450
|
+
* @returns PreKeySignalMessage instance
|
|
451
|
+
*/
|
|
452
|
+
public static create(properties?: SignalWhisperTextProtocol.IPreKeySignalMessage): SignalWhisperTextProtocol.PreKeySignalMessage;
|
|
453
|
+
/**
|
|
454
|
+
* Encodes the specified PreKeySignalMessage message. Does not implicitly {@link SignalWhisperTextProtocol.PreKeySignalMessage.verify|verify} messages.
|
|
455
|
+
* @param message PreKeySignalMessage message or plain object to encode
|
|
456
|
+
* @param [writer] Writer to encode to
|
|
457
|
+
* @returns Writer
|
|
458
|
+
*/
|
|
459
|
+
public static encode(message: SignalWhisperTextProtocol.IPreKeySignalMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
460
|
+
/**
|
|
461
|
+
* Encodes the specified PreKeySignalMessage message, length delimited. Does not implicitly {@link SignalWhisperTextProtocol.PreKeySignalMessage.verify|verify} messages.
|
|
462
|
+
* @param message PreKeySignalMessage message or plain object to encode
|
|
463
|
+
* @param [writer] Writer to encode to
|
|
464
|
+
* @returns Writer
|
|
465
|
+
*/
|
|
466
|
+
public static encodeDelimited(message: SignalWhisperTextProtocol.IPreKeySignalMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
467
|
+
/**
|
|
468
|
+
* Decodes a PreKeySignalMessage message from the specified reader or buffer.
|
|
469
|
+
* @param reader Reader or buffer to decode from
|
|
470
|
+
* @param [length] Message length if known beforehand
|
|
471
|
+
* @returns PreKeySignalMessage
|
|
472
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
473
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
474
|
+
*/
|
|
475
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SignalWhisperTextProtocol.PreKeySignalMessage;
|
|
476
|
+
/**
|
|
477
|
+
* Decodes a PreKeySignalMessage message from the specified reader or buffer, length delimited.
|
|
478
|
+
* @param reader Reader or buffer to decode from
|
|
479
|
+
* @returns PreKeySignalMessage
|
|
480
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
481
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
482
|
+
*/
|
|
483
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SignalWhisperTextProtocol.PreKeySignalMessage;
|
|
484
|
+
/**
|
|
485
|
+
* Verifies a PreKeySignalMessage message.
|
|
486
|
+
* @param message Plain object to verify
|
|
487
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
488
|
+
*/
|
|
489
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
490
|
+
/**
|
|
491
|
+
* Creates a PreKeySignalMessage message from a plain object. Also converts values to their respective internal types.
|
|
492
|
+
* @param object Plain object
|
|
493
|
+
* @returns PreKeySignalMessage
|
|
494
|
+
*/
|
|
495
|
+
public static fromObject(object: { [k: string]: any }): SignalWhisperTextProtocol.PreKeySignalMessage;
|
|
496
|
+
/**
|
|
497
|
+
* Creates a plain object from a PreKeySignalMessage message. Also converts values to other types if specified.
|
|
498
|
+
* @param message PreKeySignalMessage
|
|
499
|
+
* @param [options] Conversion options
|
|
500
|
+
* @returns Plain object
|
|
501
|
+
*/
|
|
502
|
+
public static toObject(message: SignalWhisperTextProtocol.PreKeySignalMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
503
|
+
/**
|
|
504
|
+
* Converts this PreKeySignalMessage to JSON.
|
|
505
|
+
* @returns JSON object
|
|
506
|
+
*/
|
|
507
|
+
public toJSON(): { [k: string]: any };
|
|
508
|
+
/**
|
|
509
|
+
* Gets the default type url for PreKeySignalMessage
|
|
510
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
511
|
+
* @returns The default type url
|
|
512
|
+
*/
|
|
513
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
514
|
+
}
|
|
515
|
+
/** Properties of a SignalMessage. */
|
|
516
|
+
interface ISignalMessage {
|
|
517
|
+
/** SignalMessage ratchetKey */
|
|
518
|
+
ratchetKey?: (Uint8Array|null);
|
|
519
|
+
/** SignalMessage counter */
|
|
520
|
+
counter?: (number|null);
|
|
521
|
+
/** SignalMessage previousCounter */
|
|
522
|
+
previousCounter?: (number|null);
|
|
523
|
+
/** SignalMessage ciphertext */
|
|
524
|
+
ciphertext?: (Uint8Array|null);
|
|
525
|
+
}
|
|
526
|
+
/** Represents a SignalMessage. */
|
|
527
|
+
class SignalMessage implements ISignalMessage {
|
|
528
|
+
/**
|
|
529
|
+
* Constructs a new SignalMessage.
|
|
530
|
+
* @param [properties] Properties to set
|
|
531
|
+
*/
|
|
532
|
+
constructor(properties?: SignalWhisperTextProtocol.ISignalMessage);
|
|
533
|
+
/** SignalMessage ratchetKey. */
|
|
534
|
+
public ratchetKey?: (Uint8Array|null);
|
|
535
|
+
/** SignalMessage counter. */
|
|
536
|
+
public counter?: (number|null);
|
|
537
|
+
/** SignalMessage previousCounter. */
|
|
538
|
+
public previousCounter?: (number|null);
|
|
539
|
+
/** SignalMessage ciphertext. */
|
|
540
|
+
public ciphertext?: (Uint8Array|null);
|
|
541
|
+
/** SignalMessage _ratchetKey. */
|
|
542
|
+
public _ratchetKey?: "ratchetKey";
|
|
543
|
+
/** SignalMessage _counter. */
|
|
544
|
+
public _counter?: "counter";
|
|
545
|
+
/** SignalMessage _previousCounter. */
|
|
546
|
+
public _previousCounter?: "previousCounter";
|
|
547
|
+
/** SignalMessage _ciphertext. */
|
|
548
|
+
public _ciphertext?: "ciphertext";
|
|
549
|
+
/**
|
|
550
|
+
* Creates a new SignalMessage instance using the specified properties.
|
|
551
|
+
* @param [properties] Properties to set
|
|
552
|
+
* @returns SignalMessage instance
|
|
553
|
+
*/
|
|
554
|
+
public static create(properties?: SignalWhisperTextProtocol.ISignalMessage): SignalWhisperTextProtocol.SignalMessage;
|
|
555
|
+
/**
|
|
556
|
+
* Encodes the specified SignalMessage message. Does not implicitly {@link SignalWhisperTextProtocol.SignalMessage.verify|verify} messages.
|
|
557
|
+
* @param message SignalMessage message or plain object to encode
|
|
558
|
+
* @param [writer] Writer to encode to
|
|
559
|
+
* @returns Writer
|
|
560
|
+
*/
|
|
561
|
+
public static encode(message: SignalWhisperTextProtocol.ISignalMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
562
|
+
/**
|
|
563
|
+
* Encodes the specified SignalMessage message, length delimited. Does not implicitly {@link SignalWhisperTextProtocol.SignalMessage.verify|verify} messages.
|
|
564
|
+
* @param message SignalMessage message or plain object to encode
|
|
565
|
+
* @param [writer] Writer to encode to
|
|
566
|
+
* @returns Writer
|
|
567
|
+
*/
|
|
568
|
+
public static encodeDelimited(message: SignalWhisperTextProtocol.ISignalMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
569
|
+
/**
|
|
570
|
+
* Decodes a SignalMessage message from the specified reader or buffer.
|
|
571
|
+
* @param reader Reader or buffer to decode from
|
|
572
|
+
* @param [length] Message length if known beforehand
|
|
573
|
+
* @returns SignalMessage
|
|
574
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
575
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
576
|
+
*/
|
|
577
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SignalWhisperTextProtocol.SignalMessage;
|
|
578
|
+
/**
|
|
579
|
+
* Decodes a SignalMessage message from the specified reader or buffer, length delimited.
|
|
580
|
+
* @param reader Reader or buffer to decode from
|
|
581
|
+
* @returns SignalMessage
|
|
582
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
583
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
584
|
+
*/
|
|
585
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SignalWhisperTextProtocol.SignalMessage;
|
|
586
|
+
/**
|
|
587
|
+
* Verifies a SignalMessage message.
|
|
588
|
+
* @param message Plain object to verify
|
|
589
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
590
|
+
*/
|
|
591
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
592
|
+
/**
|
|
593
|
+
* Creates a SignalMessage message from a plain object. Also converts values to their respective internal types.
|
|
594
|
+
* @param object Plain object
|
|
595
|
+
* @returns SignalMessage
|
|
596
|
+
*/
|
|
597
|
+
public static fromObject(object: { [k: string]: any }): SignalWhisperTextProtocol.SignalMessage;
|
|
598
|
+
/**
|
|
599
|
+
* Creates a plain object from a SignalMessage message. Also converts values to other types if specified.
|
|
600
|
+
* @param message SignalMessage
|
|
601
|
+
* @param [options] Conversion options
|
|
602
|
+
* @returns Plain object
|
|
603
|
+
*/
|
|
604
|
+
public static toObject(message: SignalWhisperTextProtocol.SignalMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
605
|
+
/**
|
|
606
|
+
* Converts this SignalMessage to JSON.
|
|
607
|
+
* @returns JSON object
|
|
608
|
+
*/
|
|
609
|
+
public toJSON(): { [k: string]: any };
|
|
610
|
+
/**
|
|
611
|
+
* Gets the default type url for SignalMessage
|
|
612
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
613
|
+
* @returns The default type url
|
|
614
|
+
*/
|
|
615
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
616
|
+
}
|
|
617
|
+
}
|