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.
Files changed (286) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +2534 -0
  3. package/WAProto/Adv/Adv.d.ts +518 -0
  4. package/WAProto/Adv/Adv.js +1734 -0
  5. package/WAProto/Adv/Adv.proto +36 -0
  6. package/WAProto/BotMetadata/BotMetadata.d.ts +5745 -0
  7. package/WAProto/BotMetadata/BotMetadata.js +16291 -0
  8. package/WAProto/BotMetadata/BotMetadata.proto +463 -0
  9. package/WAProto/Cert/Cert.d.ts +497 -0
  10. package/WAProto/Cert/Cert.js +1503 -0
  11. package/WAProto/Cert/Cert.proto +28 -0
  12. package/WAProto/ChatLockSettings/ChatLockSettings.d.ts +391 -0
  13. package/WAProto/ChatLockSettings/ChatLockSettings.js +1155 -0
  14. package/WAProto/ChatLockSettings/ChatLockSettings.proto +7 -0
  15. package/WAProto/CompanionReg/CompanionReg.d.ts +1055 -0
  16. package/WAProto/CompanionReg/CompanionReg.js +3532 -0
  17. package/WAProto/CompanionReg/CompanionReg.proto +89 -0
  18. package/WAProto/DeviceCapabilities/DeviceCapabilities.d.ts +187 -0
  19. package/WAProto/DeviceCapabilities/DeviceCapabilities.js +520 -0
  20. package/WAProto/DeviceCapabilities/DeviceCapabilities.proto +14 -0
  21. package/WAProto/E2E/E2E.d.ts +28417 -0
  22. package/WAProto/E2E/E2E.js +98438 -0
  23. package/WAProto/E2E/E2E.proto +2289 -0
  24. package/WAProto/Ephemeral/Ephemeral.d.ts +95 -0
  25. package/WAProto/Ephemeral/Ephemeral.js +269 -0
  26. package/WAProto/Ephemeral/Ephemeral.proto +6 -0
  27. package/WAProto/HistorySync/HistorySync.d.ts +40728 -0
  28. package/WAProto/HistorySync/HistorySync.js +142980 -0
  29. package/WAProto/HistorySync/HistorySync.proto +207 -0
  30. package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.d.ts +189 -0
  31. package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.js +585 -0
  32. package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.proto +11 -0
  33. package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.d.ts +461 -0
  34. package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.js +1559 -0
  35. package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.proto +37 -0
  36. package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.d.ts +29294 -0
  37. package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.js +101732 -0
  38. package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.proto +76 -0
  39. package/WAProto/MmsRetry/MmsRetry.d.ts +200 -0
  40. package/WAProto/MmsRetry/MmsRetry.js +586 -0
  41. package/WAProto/MmsRetry/MmsRetry.proto +17 -0
  42. package/WAProto/Protocol/Protocol.d.ts +218 -0
  43. package/WAProto/Protocol/Protocol.js +701 -0
  44. package/WAProto/Protocol/Protocol.proto +20 -0
  45. package/WAProto/Reporting/Reporting.d.ts +301 -0
  46. package/WAProto/Reporting/Reporting.js +989 -0
  47. package/WAProto/Reporting/Reporting.proto +19 -0
  48. package/WAProto/ServerSync/ServerSync.d.ts +1050 -0
  49. package/WAProto/ServerSync/ServerSync.js +3176 -0
  50. package/WAProto/ServerSync/ServerSync.proto +59 -0
  51. package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.d.ts +1507 -0
  52. package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.js +4756 -0
  53. package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.proto +88 -0
  54. package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.d.ts +617 -0
  55. package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.js +1940 -0
  56. package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.proto +38 -0
  57. package/WAProto/StatusAttributions/StatusAttributions.d.ts +636 -0
  58. package/WAProto/StatusAttributions/StatusAttributions.js +2037 -0
  59. package/WAProto/StatusAttributions/StatusAttributions.proto +61 -0
  60. package/WAProto/SyncAction/SyncAction.d.ts +7227 -0
  61. package/WAProto/SyncAction/SyncAction.js +22271 -0
  62. package/WAProto/SyncAction/SyncAction.proto +423 -0
  63. package/WAProto/UserPassword/UserPassword.d.ts +298 -0
  64. package/WAProto/UserPassword/UserPassword.js +898 -0
  65. package/WAProto/UserPassword/UserPassword.proto +27 -0
  66. package/WAProto/VnameCert/VnameCert.d.ts +658 -0
  67. package/WAProto/VnameCert/VnameCert.js +2225 -0
  68. package/WAProto/VnameCert/VnameCert.proto +60 -0
  69. package/WAProto/Wa6/Wa6.d.ts +1613 -0
  70. package/WAProto/Wa6/Wa6.js +6299 -0
  71. package/WAProto/Wa6/Wa6.proto +229 -0
  72. package/WAProto/Web/Web.d.ts +31718 -0
  73. package/WAProto/Web/Web.js +113402 -0
  74. package/WAProto/Web/Web.proto +545 -0
  75. package/WAProto/index.d.ts +49 -0
  76. package/WAProto/index.js +28 -0
  77. package/WASignalGroup/GroupProtocol.js +1771 -0
  78. package/WASignalGroup/ciphertext_message.js +10 -0
  79. package/WASignalGroup/group_cipher.js +103 -0
  80. package/WASignalGroup/group_session_builder.js +39 -0
  81. package/WASignalGroup/index.js +5 -0
  82. package/WASignalGroup/keyhelper.js +17 -0
  83. package/WASignalGroup/protobufs.js +2 -0
  84. package/WASignalGroup/queue_job.js +64 -0
  85. package/WASignalGroup/sender_chain_key.js +38 -0
  86. package/WASignalGroup/sender_key_distribution_message.js +68 -0
  87. package/WASignalGroup/sender_key_message.js +79 -0
  88. package/WASignalGroup/sender_key_name.js +59 -0
  89. package/WASignalGroup/sender_key_record.js +47 -0
  90. package/WASignalGroup/sender_key_state.js +110 -0
  91. package/WASignalGroup/sender_message_key.js +30 -0
  92. package/check-node-version.js +10 -0
  93. package/lib/Defaults/baileys-version.json +3 -0
  94. package/lib/Defaults/index.d.ts +51 -0
  95. package/lib/Defaults/index.js +108 -0
  96. package/lib/Defaults/phonenumber-mcc.json +223 -0
  97. package/lib/Signal/Group/ciphertext-message.d.ts +9 -0
  98. package/lib/Signal/Group/ciphertext-message.js +19 -0
  99. package/lib/Signal/Group/group-session-builder.d.ts +17 -0
  100. package/lib/Signal/Group/group-session-builder.js +72 -0
  101. package/lib/Signal/Group/group_cipher.d.ts +19 -0
  102. package/lib/Signal/Group/group_cipher.js +99 -0
  103. package/lib/Signal/Group/index.d.ts +11 -0
  104. package/lib/Signal/Group/index.js +61 -0
  105. package/lib/Signal/Group/keyhelper.d.ts +16 -0
  106. package/lib/Signal/Group/keyhelper.js +66 -0
  107. package/lib/Signal/Group/queue-job.d.ts +1 -0
  108. package/lib/Signal/Group/queue-job.js +64 -0
  109. package/lib/Signal/Group/sender-chain-key.d.ts +14 -0
  110. package/lib/Signal/Group/sender-chain-key.js +39 -0
  111. package/lib/Signal/Group/sender-key-distribution-message.d.ts +17 -0
  112. package/lib/Signal/Group/sender-key-distribution-message.js +71 -0
  113. package/lib/Signal/Group/sender-key-message.d.ts +19 -0
  114. package/lib/Signal/Group/sender-key-message.js +73 -0
  115. package/lib/Signal/Group/sender-key-name.d.ts +19 -0
  116. package/lib/Signal/Group/sender-key-name.js +59 -0
  117. package/lib/Signal/Group/sender-key-record.d.ts +32 -0
  118. package/lib/Signal/Group/sender-key-record.js +53 -0
  119. package/lib/Signal/Group/sender-key-record.ts +77 -0
  120. package/lib/Signal/Group/sender-key-state.d.ts +44 -0
  121. package/lib/Signal/Group/sender-key-state.js +104 -0
  122. package/lib/Signal/Group/sender-message-key.d.ts +11 -0
  123. package/lib/Signal/Group/sender-message-key.js +33 -0
  124. package/lib/Signal/libsignal.d.ts +3 -0
  125. package/lib/Signal/libsignal.js +153 -0
  126. package/lib/Socket/Client/index.d.ts +2 -0
  127. package/lib/Socket/Client/index.js +18 -0
  128. package/lib/Socket/Client/types.d.ts +15 -0
  129. package/lib/Socket/Client/types.js +14 -0
  130. package/lib/Socket/Client/websocket.d.ts +12 -0
  131. package/lib/Socket/Client/websocket.js +57 -0
  132. package/lib/Socket/business.d.ts +181 -0
  133. package/lib/Socket/business.js +259 -0
  134. package/lib/Socket/chats.d.ts +95 -0
  135. package/lib/Socket/chats.js +906 -0
  136. package/lib/Socket/community.d.ts +131 -0
  137. package/lib/Socket/community.js +369 -0
  138. package/lib/Socket/groups.d.ts +122 -0
  139. package/lib/Socket/groups.js +360 -0
  140. package/lib/Socket/index.d.ts +183 -0
  141. package/lib/Socket/index.js +10 -0
  142. package/lib/Socket/messages-recv.d.ts +170 -0
  143. package/lib/Socket/messages-recv.js +1074 -0
  144. package/lib/Socket/messages-send.d.ts +161 -0
  145. package/lib/Socket/messages-send.js +982 -0
  146. package/lib/Socket/newsletter.d.ts +140 -0
  147. package/lib/Socket/newsletter.js +242 -0
  148. package/lib/Socket/socket.d.ts +43 -0
  149. package/lib/Socket/socket.js +749 -0
  150. package/lib/Socket/usync.d.ts +36 -0
  151. package/lib/Socket/usync.js +71 -0
  152. package/lib/Store/index.d.ts +4 -0
  153. package/lib/Store/index.js +20 -0
  154. package/lib/Store/make-cache-manager-store.d.ts +13 -0
  155. package/lib/Store/make-cache-manager-store.js +77 -0
  156. package/lib/Store/make-in-memory-store.d.ts +117 -0
  157. package/lib/Store/make-in-memory-store.js +420 -0
  158. package/lib/Store/make-ordered-dictionary.d.ts +12 -0
  159. package/lib/Store/make-ordered-dictionary.js +83 -0
  160. package/lib/Store/object-repository.d.ts +10 -0
  161. package/lib/Store/object-repository.js +28 -0
  162. package/lib/Types/Auth.d.ts +103 -0
  163. package/lib/Types/Auth.js +2 -0
  164. package/lib/Types/Call.d.ts +13 -0
  165. package/lib/Types/Call.js +2 -0
  166. package/lib/Types/Chat.d.ts +115 -0
  167. package/lib/Types/Chat.js +6 -0
  168. package/lib/Types/Contact.d.ts +35 -0
  169. package/lib/Types/Contact.js +2 -0
  170. package/lib/Types/Events.d.ts +208 -0
  171. package/lib/Types/Events.js +2 -0
  172. package/lib/Types/GroupMetadata.d.ts +81 -0
  173. package/lib/Types/GroupMetadata.js +2 -0
  174. package/lib/Types/Label.d.ts +46 -0
  175. package/lib/Types/Label.js +28 -0
  176. package/lib/Types/LabelAssociation.d.ts +29 -0
  177. package/lib/Types/LabelAssociation.js +10 -0
  178. package/lib/Types/Message.d.ts +480 -0
  179. package/lib/Types/Message.js +9 -0
  180. package/lib/Types/MexUpdates.d.ts +9 -0
  181. package/lib/Types/MexUpdates.js +18 -0
  182. package/lib/Types/Newsletter.d.ts +92 -0
  183. package/lib/Types/Newsletter.js +33 -0
  184. package/lib/Types/Product.d.ts +78 -0
  185. package/lib/Types/Product.js +2 -0
  186. package/lib/Types/Signal.d.ts +57 -0
  187. package/lib/Types/Signal.js +2 -0
  188. package/lib/Types/Socket.d.ts +116 -0
  189. package/lib/Types/Socket.js +2 -0
  190. package/lib/Types/State.d.ts +27 -0
  191. package/lib/Types/State.js +2 -0
  192. package/lib/Types/USync.d.ts +25 -0
  193. package/lib/Types/USync.js +2 -0
  194. package/lib/Types/index.d.ts +70 -0
  195. package/lib/Types/index.js +42 -0
  196. package/lib/Utils/auth-utils.d.ts +18 -0
  197. package/lib/Utils/auth-utils.js +198 -0
  198. package/lib/Utils/baileys-event-stream.d.ts +16 -0
  199. package/lib/Utils/baileys-event-stream.js +64 -0
  200. package/lib/Utils/business.d.ts +22 -0
  201. package/lib/Utils/business.js +243 -0
  202. package/lib/Utils/chat-utils.d.ts +72 -0
  203. package/lib/Utils/chat-utils.js +762 -0
  204. package/lib/Utils/crypto.d.ts +40 -0
  205. package/lib/Utils/crypto.js +150 -0
  206. package/lib/Utils/decode-wa-message.d.ts +252 -0
  207. package/lib/Utils/decode-wa-message.js +232 -0
  208. package/lib/Utils/event-buffer.d.ts +35 -0
  209. package/lib/Utils/event-buffer.js +539 -0
  210. package/lib/Utils/generics.d.ts +96 -0
  211. package/lib/Utils/generics.js +553 -0
  212. package/lib/Utils/history.d.ts +29 -0
  213. package/lib/Utils/history.js +109 -0
  214. package/lib/Utils/index.d.ts +19 -0
  215. package/lib/Utils/index.js +35 -0
  216. package/lib/Utils/link-preview.d.ts +21 -0
  217. package/lib/Utils/link-preview.js +112 -0
  218. package/lib/Utils/logger.d.ts +11 -0
  219. package/lib/Utils/logger.js +7 -0
  220. package/lib/Utils/lt-hash.d.ts +12 -0
  221. package/lib/Utils/lt-hash.js +53 -0
  222. package/lib/Utils/make-mutex.d.ts +7 -0
  223. package/lib/Utils/make-mutex.js +45 -0
  224. package/lib/Utils/messages-media.d.ts +104 -0
  225. package/lib/Utils/messages-media.js +751 -0
  226. package/lib/Utils/messages.d.ts +80 -0
  227. package/lib/Utils/messages.js +1741 -0
  228. package/lib/Utils/noise-handler.d.ts +19 -0
  229. package/lib/Utils/noise-handler.js +150 -0
  230. package/lib/Utils/process-message.d.ts +41 -0
  231. package/lib/Utils/process-message.js +391 -0
  232. package/lib/Utils/signal.d.ts +33 -0
  233. package/lib/Utils/signal.js +154 -0
  234. package/lib/Utils/use-mongo-file-auth-state.d.ts +5 -0
  235. package/lib/Utils/use-mongo-file-auth-state.js +75 -0
  236. package/lib/Utils/use-multi-file-auth-state.d.ts +12 -0
  237. package/lib/Utils/use-multi-file-auth-state.js +123 -0
  238. package/lib/Utils/use-single-file-auth-state.d.ts +12 -0
  239. package/lib/Utils/use-single-file-auth-state.js +75 -0
  240. package/lib/Utils/validate-connection.d.ts +10 -0
  241. package/lib/Utils/validate-connection.js +174 -0
  242. package/lib/WABinary/constants.d.ts +27 -0
  243. package/lib/WABinary/constants.js +45 -0
  244. package/lib/WABinary/decode.d.ts +6 -0
  245. package/lib/WABinary/decode.js +255 -0
  246. package/lib/WABinary/encode.d.ts +2 -0
  247. package/lib/WABinary/encode.js +243 -0
  248. package/lib/WABinary/generic-utils.d.ts +16 -0
  249. package/lib/WABinary/generic-utils.js +125 -0
  250. package/lib/WABinary/index.d.ts +5 -0
  251. package/lib/WABinary/index.js +21 -0
  252. package/lib/WABinary/jid-utils.d.ts +34 -0
  253. package/lib/WABinary/jid-utils.js +73 -0
  254. package/lib/WABinary/types.d.ts +18 -0
  255. package/lib/WABinary/types.js +2 -0
  256. package/lib/WAM/BinaryInfo.d.ts +16 -0
  257. package/lib/WAM/BinaryInfo.js +14 -0
  258. package/lib/WAM/constants.d.ts +39 -0
  259. package/lib/WAM/constants.js +15362 -0
  260. package/lib/WAM/encode.d.ts +2 -0
  261. package/lib/WAM/encode.js +156 -0
  262. package/lib/WAM/index.d.ts +3 -0
  263. package/lib/WAM/index.js +19 -0
  264. package/lib/WAUSync/Protocols/USyncBotProfileProtocol.d.ts +25 -0
  265. package/lib/WAUSync/Protocols/USyncBotProfileProtocol.js +60 -0
  266. package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +9 -0
  267. package/lib/WAUSync/Protocols/USyncContactProtocol.js +32 -0
  268. package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +22 -0
  269. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +58 -0
  270. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +12 -0
  271. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +31 -0
  272. package/lib/WAUSync/Protocols/USyncLIDProtocol.d.ts +8 -0
  273. package/lib/WAUSync/Protocols/USyncLIDProtocol.js +26 -0
  274. package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +12 -0
  275. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +42 -0
  276. package/lib/WAUSync/Protocols/index.d.ts +6 -0
  277. package/lib/WAUSync/Protocols/index.js +22 -0
  278. package/lib/WAUSync/USyncQuery.d.ts +28 -0
  279. package/lib/WAUSync/USyncQuery.js +88 -0
  280. package/lib/WAUSync/USyncUser.d.ts +12 -0
  281. package/lib/WAUSync/USyncUser.js +27 -0
  282. package/lib/WAUSync/index.d.ts +3 -0
  283. package/lib/WAUSync/index.js +19 -0
  284. package/lib/index.d.ts +13 -0
  285. package/lib/index.js +45 -0
  286. package/package.json +63 -0
@@ -0,0 +1,1507 @@
1
+ import * as $protobuf from "protobufjs";
2
+ import Long = require("long");
3
+ /** Namespace SignalLocalStorageProtocol. */
4
+ export namespace SignalLocalStorageProtocol {
5
+ /** Properties of a SenderKeyRecordStructure. */
6
+ interface ISenderKeyRecordStructure {
7
+ /** SenderKeyRecordStructure senderKeyStates */
8
+ senderKeyStates?: (SignalLocalStorageProtocol.ISenderKeyStateStructure[]|null);
9
+ }
10
+ /** Represents a SenderKeyRecordStructure. */
11
+ class SenderKeyRecordStructure implements ISenderKeyRecordStructure {
12
+ /**
13
+ * Constructs a new SenderKeyRecordStructure.
14
+ * @param [properties] Properties to set
15
+ */
16
+ constructor(properties?: SignalLocalStorageProtocol.ISenderKeyRecordStructure);
17
+ /** SenderKeyRecordStructure senderKeyStates. */
18
+ public senderKeyStates: SignalLocalStorageProtocol.ISenderKeyStateStructure[];
19
+ /**
20
+ * Creates a new SenderKeyRecordStructure instance using the specified properties.
21
+ * @param [properties] Properties to set
22
+ * @returns SenderKeyRecordStructure instance
23
+ */
24
+ public static create(properties?: SignalLocalStorageProtocol.ISenderKeyRecordStructure): SignalLocalStorageProtocol.SenderKeyRecordStructure;
25
+ /**
26
+ * Encodes the specified SenderKeyRecordStructure message. Does not implicitly {@link SignalLocalStorageProtocol.SenderKeyRecordStructure.verify|verify} messages.
27
+ * @param message SenderKeyRecordStructure message or plain object to encode
28
+ * @param [writer] Writer to encode to
29
+ * @returns Writer
30
+ */
31
+ public static encode(message: SignalLocalStorageProtocol.ISenderKeyRecordStructure, writer?: $protobuf.Writer): $protobuf.Writer;
32
+ /**
33
+ * Encodes the specified SenderKeyRecordStructure message, length delimited. Does not implicitly {@link SignalLocalStorageProtocol.SenderKeyRecordStructure.verify|verify} messages.
34
+ * @param message SenderKeyRecordStructure message or plain object to encode
35
+ * @param [writer] Writer to encode to
36
+ * @returns Writer
37
+ */
38
+ public static encodeDelimited(message: SignalLocalStorageProtocol.ISenderKeyRecordStructure, writer?: $protobuf.Writer): $protobuf.Writer;
39
+ /**
40
+ * Decodes a SenderKeyRecordStructure message from the specified reader or buffer.
41
+ * @param reader Reader or buffer to decode from
42
+ * @param [length] Message length if known beforehand
43
+ * @returns SenderKeyRecordStructure
44
+ * @throws {Error} If the payload is not a reader or valid buffer
45
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
46
+ */
47
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SignalLocalStorageProtocol.SenderKeyRecordStructure;
48
+ /**
49
+ * Decodes a SenderKeyRecordStructure message from the specified reader or buffer, length delimited.
50
+ * @param reader Reader or buffer to decode from
51
+ * @returns SenderKeyRecordStructure
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 decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SignalLocalStorageProtocol.SenderKeyRecordStructure;
56
+ /**
57
+ * Verifies a SenderKeyRecordStructure message.
58
+ * @param message Plain object to verify
59
+ * @returns `null` if valid, otherwise the reason why it is not
60
+ */
61
+ public static verify(message: { [k: string]: any }): (string|null);
62
+ /**
63
+ * Creates a SenderKeyRecordStructure message from a plain object. Also converts values to their respective internal types.
64
+ * @param object Plain object
65
+ * @returns SenderKeyRecordStructure
66
+ */
67
+ public static fromObject(object: { [k: string]: any }): SignalLocalStorageProtocol.SenderKeyRecordStructure;
68
+ /**
69
+ * Creates a plain object from a SenderKeyRecordStructure message. Also converts values to other types if specified.
70
+ * @param message SenderKeyRecordStructure
71
+ * @param [options] Conversion options
72
+ * @returns Plain object
73
+ */
74
+ public static toObject(message: SignalLocalStorageProtocol.SenderKeyRecordStructure, options?: $protobuf.IConversionOptions): { [k: string]: any };
75
+ /**
76
+ * Converts this SenderKeyRecordStructure to JSON.
77
+ * @returns JSON object
78
+ */
79
+ public toJSON(): { [k: string]: any };
80
+ /**
81
+ * Gets the default type url for SenderKeyRecordStructure
82
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
83
+ * @returns The default type url
84
+ */
85
+ public static getTypeUrl(typeUrlPrefix?: string): string;
86
+ }
87
+ /** Properties of a SenderKeyStateStructure. */
88
+ interface ISenderKeyStateStructure {
89
+ /** SenderKeyStateStructure senderKeyId */
90
+ senderKeyId?: (number|null);
91
+ /** SenderKeyStateStructure senderChainKey */
92
+ senderChainKey?: (SignalLocalStorageProtocol.SenderKeyStateStructure.ISenderChainKey|null);
93
+ /** SenderKeyStateStructure senderSigningKey */
94
+ senderSigningKey?: (SignalLocalStorageProtocol.SenderKeyStateStructure.ISenderSigningKey|null);
95
+ /** SenderKeyStateStructure senderMessageKeys */
96
+ senderMessageKeys?: (SignalLocalStorageProtocol.SenderKeyStateStructure.ISenderMessageKey[]|null);
97
+ }
98
+ /** Represents a SenderKeyStateStructure. */
99
+ class SenderKeyStateStructure implements ISenderKeyStateStructure {
100
+ /**
101
+ * Constructs a new SenderKeyStateStructure.
102
+ * @param [properties] Properties to set
103
+ */
104
+ constructor(properties?: SignalLocalStorageProtocol.ISenderKeyStateStructure);
105
+ /** SenderKeyStateStructure senderKeyId. */
106
+ public senderKeyId?: (number|null);
107
+ /** SenderKeyStateStructure senderChainKey. */
108
+ public senderChainKey?: (SignalLocalStorageProtocol.SenderKeyStateStructure.ISenderChainKey|null);
109
+ /** SenderKeyStateStructure senderSigningKey. */
110
+ public senderSigningKey?: (SignalLocalStorageProtocol.SenderKeyStateStructure.ISenderSigningKey|null);
111
+ /** SenderKeyStateStructure senderMessageKeys. */
112
+ public senderMessageKeys: SignalLocalStorageProtocol.SenderKeyStateStructure.ISenderMessageKey[];
113
+ /** SenderKeyStateStructure _senderKeyId. */
114
+ public _senderKeyId?: "senderKeyId";
115
+ /** SenderKeyStateStructure _senderChainKey. */
116
+ public _senderChainKey?: "senderChainKey";
117
+ /** SenderKeyStateStructure _senderSigningKey. */
118
+ public _senderSigningKey?: "senderSigningKey";
119
+ /**
120
+ * Creates a new SenderKeyStateStructure instance using the specified properties.
121
+ * @param [properties] Properties to set
122
+ * @returns SenderKeyStateStructure instance
123
+ */
124
+ public static create(properties?: SignalLocalStorageProtocol.ISenderKeyStateStructure): SignalLocalStorageProtocol.SenderKeyStateStructure;
125
+ /**
126
+ * Encodes the specified SenderKeyStateStructure message. Does not implicitly {@link SignalLocalStorageProtocol.SenderKeyStateStructure.verify|verify} messages.
127
+ * @param message SenderKeyStateStructure message or plain object to encode
128
+ * @param [writer] Writer to encode to
129
+ * @returns Writer
130
+ */
131
+ public static encode(message: SignalLocalStorageProtocol.ISenderKeyStateStructure, writer?: $protobuf.Writer): $protobuf.Writer;
132
+ /**
133
+ * Encodes the specified SenderKeyStateStructure message, length delimited. Does not implicitly {@link SignalLocalStorageProtocol.SenderKeyStateStructure.verify|verify} messages.
134
+ * @param message SenderKeyStateStructure message or plain object to encode
135
+ * @param [writer] Writer to encode to
136
+ * @returns Writer
137
+ */
138
+ public static encodeDelimited(message: SignalLocalStorageProtocol.ISenderKeyStateStructure, writer?: $protobuf.Writer): $protobuf.Writer;
139
+ /**
140
+ * Decodes a SenderKeyStateStructure message from the specified reader or buffer.
141
+ * @param reader Reader or buffer to decode from
142
+ * @param [length] Message length if known beforehand
143
+ * @returns SenderKeyStateStructure
144
+ * @throws {Error} If the payload is not a reader or valid buffer
145
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
146
+ */
147
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SignalLocalStorageProtocol.SenderKeyStateStructure;
148
+ /**
149
+ * Decodes a SenderKeyStateStructure message from the specified reader or buffer, length delimited.
150
+ * @param reader Reader or buffer to decode from
151
+ * @returns SenderKeyStateStructure
152
+ * @throws {Error} If the payload is not a reader or valid buffer
153
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
154
+ */
155
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SignalLocalStorageProtocol.SenderKeyStateStructure;
156
+ /**
157
+ * Verifies a SenderKeyStateStructure message.
158
+ * @param message Plain object to verify
159
+ * @returns `null` if valid, otherwise the reason why it is not
160
+ */
161
+ public static verify(message: { [k: string]: any }): (string|null);
162
+ /**
163
+ * Creates a SenderKeyStateStructure message from a plain object. Also converts values to their respective internal types.
164
+ * @param object Plain object
165
+ * @returns SenderKeyStateStructure
166
+ */
167
+ public static fromObject(object: { [k: string]: any }): SignalLocalStorageProtocol.SenderKeyStateStructure;
168
+ /**
169
+ * Creates a plain object from a SenderKeyStateStructure message. Also converts values to other types if specified.
170
+ * @param message SenderKeyStateStructure
171
+ * @param [options] Conversion options
172
+ * @returns Plain object
173
+ */
174
+ public static toObject(message: SignalLocalStorageProtocol.SenderKeyStateStructure, options?: $protobuf.IConversionOptions): { [k: string]: any };
175
+ /**
176
+ * Converts this SenderKeyStateStructure to JSON.
177
+ * @returns JSON object
178
+ */
179
+ public toJSON(): { [k: string]: any };
180
+ /**
181
+ * Gets the default type url for SenderKeyStateStructure
182
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
183
+ * @returns The default type url
184
+ */
185
+ public static getTypeUrl(typeUrlPrefix?: string): string;
186
+ }
187
+ namespace SenderKeyStateStructure {
188
+ /** Properties of a SenderChainKey. */
189
+ interface ISenderChainKey {
190
+ /** SenderChainKey iteration */
191
+ iteration?: (number|null);
192
+ /** SenderChainKey seed */
193
+ seed?: (Uint8Array|null);
194
+ }
195
+ /** Represents a SenderChainKey. */
196
+ class SenderChainKey implements ISenderChainKey {
197
+ /**
198
+ * Constructs a new SenderChainKey.
199
+ * @param [properties] Properties to set
200
+ */
201
+ constructor(properties?: SignalLocalStorageProtocol.SenderKeyStateStructure.ISenderChainKey);
202
+ /** SenderChainKey iteration. */
203
+ public iteration?: (number|null);
204
+ /** SenderChainKey seed. */
205
+ public seed?: (Uint8Array|null);
206
+ /** SenderChainKey _iteration. */
207
+ public _iteration?: "iteration";
208
+ /** SenderChainKey _seed. */
209
+ public _seed?: "seed";
210
+ /**
211
+ * Creates a new SenderChainKey instance using the specified properties.
212
+ * @param [properties] Properties to set
213
+ * @returns SenderChainKey instance
214
+ */
215
+ public static create(properties?: SignalLocalStorageProtocol.SenderKeyStateStructure.ISenderChainKey): SignalLocalStorageProtocol.SenderKeyStateStructure.SenderChainKey;
216
+ /**
217
+ * Encodes the specified SenderChainKey message. Does not implicitly {@link SignalLocalStorageProtocol.SenderKeyStateStructure.SenderChainKey.verify|verify} messages.
218
+ * @param message SenderChainKey message or plain object to encode
219
+ * @param [writer] Writer to encode to
220
+ * @returns Writer
221
+ */
222
+ public static encode(message: SignalLocalStorageProtocol.SenderKeyStateStructure.ISenderChainKey, writer?: $protobuf.Writer): $protobuf.Writer;
223
+ /**
224
+ * Encodes the specified SenderChainKey message, length delimited. Does not implicitly {@link SignalLocalStorageProtocol.SenderKeyStateStructure.SenderChainKey.verify|verify} messages.
225
+ * @param message SenderChainKey message or plain object to encode
226
+ * @param [writer] Writer to encode to
227
+ * @returns Writer
228
+ */
229
+ public static encodeDelimited(message: SignalLocalStorageProtocol.SenderKeyStateStructure.ISenderChainKey, writer?: $protobuf.Writer): $protobuf.Writer;
230
+ /**
231
+ * Decodes a SenderChainKey message from the specified reader or buffer.
232
+ * @param reader Reader or buffer to decode from
233
+ * @param [length] Message length if known beforehand
234
+ * @returns SenderChainKey
235
+ * @throws {Error} If the payload is not a reader or valid buffer
236
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
237
+ */
238
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SignalLocalStorageProtocol.SenderKeyStateStructure.SenderChainKey;
239
+ /**
240
+ * Decodes a SenderChainKey message from the specified reader or buffer, length delimited.
241
+ * @param reader Reader or buffer to decode from
242
+ * @returns SenderChainKey
243
+ * @throws {Error} If the payload is not a reader or valid buffer
244
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
245
+ */
246
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SignalLocalStorageProtocol.SenderKeyStateStructure.SenderChainKey;
247
+ /**
248
+ * Verifies a SenderChainKey message.
249
+ * @param message Plain object to verify
250
+ * @returns `null` if valid, otherwise the reason why it is not
251
+ */
252
+ public static verify(message: { [k: string]: any }): (string|null);
253
+ /**
254
+ * Creates a SenderChainKey message from a plain object. Also converts values to their respective internal types.
255
+ * @param object Plain object
256
+ * @returns SenderChainKey
257
+ */
258
+ public static fromObject(object: { [k: string]: any }): SignalLocalStorageProtocol.SenderKeyStateStructure.SenderChainKey;
259
+ /**
260
+ * Creates a plain object from a SenderChainKey message. Also converts values to other types if specified.
261
+ * @param message SenderChainKey
262
+ * @param [options] Conversion options
263
+ * @returns Plain object
264
+ */
265
+ public static toObject(message: SignalLocalStorageProtocol.SenderKeyStateStructure.SenderChainKey, options?: $protobuf.IConversionOptions): { [k: string]: any };
266
+ /**
267
+ * Converts this SenderChainKey to JSON.
268
+ * @returns JSON object
269
+ */
270
+ public toJSON(): { [k: string]: any };
271
+ /**
272
+ * Gets the default type url for SenderChainKey
273
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
274
+ * @returns The default type url
275
+ */
276
+ public static getTypeUrl(typeUrlPrefix?: string): string;
277
+ }
278
+ /** Properties of a SenderMessageKey. */
279
+ interface ISenderMessageKey {
280
+ /** SenderMessageKey iteration */
281
+ iteration?: (number|null);
282
+ /** SenderMessageKey seed */
283
+ seed?: (Uint8Array|null);
284
+ }
285
+ /** Represents a SenderMessageKey. */
286
+ class SenderMessageKey implements ISenderMessageKey {
287
+ /**
288
+ * Constructs a new SenderMessageKey.
289
+ * @param [properties] Properties to set
290
+ */
291
+ constructor(properties?: SignalLocalStorageProtocol.SenderKeyStateStructure.ISenderMessageKey);
292
+ /** SenderMessageKey iteration. */
293
+ public iteration?: (number|null);
294
+ /** SenderMessageKey seed. */
295
+ public seed?: (Uint8Array|null);
296
+ /** SenderMessageKey _iteration. */
297
+ public _iteration?: "iteration";
298
+ /** SenderMessageKey _seed. */
299
+ public _seed?: "seed";
300
+ /**
301
+ * Creates a new SenderMessageKey instance using the specified properties.
302
+ * @param [properties] Properties to set
303
+ * @returns SenderMessageKey instance
304
+ */
305
+ public static create(properties?: SignalLocalStorageProtocol.SenderKeyStateStructure.ISenderMessageKey): SignalLocalStorageProtocol.SenderKeyStateStructure.SenderMessageKey;
306
+ /**
307
+ * Encodes the specified SenderMessageKey message. Does not implicitly {@link SignalLocalStorageProtocol.SenderKeyStateStructure.SenderMessageKey.verify|verify} messages.
308
+ * @param message SenderMessageKey message or plain object to encode
309
+ * @param [writer] Writer to encode to
310
+ * @returns Writer
311
+ */
312
+ public static encode(message: SignalLocalStorageProtocol.SenderKeyStateStructure.ISenderMessageKey, writer?: $protobuf.Writer): $protobuf.Writer;
313
+ /**
314
+ * Encodes the specified SenderMessageKey message, length delimited. Does not implicitly {@link SignalLocalStorageProtocol.SenderKeyStateStructure.SenderMessageKey.verify|verify} messages.
315
+ * @param message SenderMessageKey message or plain object to encode
316
+ * @param [writer] Writer to encode to
317
+ * @returns Writer
318
+ */
319
+ public static encodeDelimited(message: SignalLocalStorageProtocol.SenderKeyStateStructure.ISenderMessageKey, writer?: $protobuf.Writer): $protobuf.Writer;
320
+ /**
321
+ * Decodes a SenderMessageKey message from the specified reader or buffer.
322
+ * @param reader Reader or buffer to decode from
323
+ * @param [length] Message length if known beforehand
324
+ * @returns SenderMessageKey
325
+ * @throws {Error} If the payload is not a reader or valid buffer
326
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
327
+ */
328
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SignalLocalStorageProtocol.SenderKeyStateStructure.SenderMessageKey;
329
+ /**
330
+ * Decodes a SenderMessageKey message from the specified reader or buffer, length delimited.
331
+ * @param reader Reader or buffer to decode from
332
+ * @returns SenderMessageKey
333
+ * @throws {Error} If the payload is not a reader or valid buffer
334
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
335
+ */
336
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SignalLocalStorageProtocol.SenderKeyStateStructure.SenderMessageKey;
337
+ /**
338
+ * Verifies a SenderMessageKey message.
339
+ * @param message Plain object to verify
340
+ * @returns `null` if valid, otherwise the reason why it is not
341
+ */
342
+ public static verify(message: { [k: string]: any }): (string|null);
343
+ /**
344
+ * Creates a SenderMessageKey message from a plain object. Also converts values to their respective internal types.
345
+ * @param object Plain object
346
+ * @returns SenderMessageKey
347
+ */
348
+ public static fromObject(object: { [k: string]: any }): SignalLocalStorageProtocol.SenderKeyStateStructure.SenderMessageKey;
349
+ /**
350
+ * Creates a plain object from a SenderMessageKey message. Also converts values to other types if specified.
351
+ * @param message SenderMessageKey
352
+ * @param [options] Conversion options
353
+ * @returns Plain object
354
+ */
355
+ public static toObject(message: SignalLocalStorageProtocol.SenderKeyStateStructure.SenderMessageKey, options?: $protobuf.IConversionOptions): { [k: string]: any };
356
+ /**
357
+ * Converts this SenderMessageKey to JSON.
358
+ * @returns JSON object
359
+ */
360
+ public toJSON(): { [k: string]: any };
361
+ /**
362
+ * Gets the default type url for SenderMessageKey
363
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
364
+ * @returns The default type url
365
+ */
366
+ public static getTypeUrl(typeUrlPrefix?: string): string;
367
+ }
368
+ /** Properties of a SenderSigningKey. */
369
+ interface ISenderSigningKey {
370
+ /** SenderSigningKey public */
371
+ "public"?: (Uint8Array|null);
372
+ /** SenderSigningKey private */
373
+ "private"?: (Uint8Array|null);
374
+ }
375
+ /** Represents a SenderSigningKey. */
376
+ class SenderSigningKey implements ISenderSigningKey {
377
+ /**
378
+ * Constructs a new SenderSigningKey.
379
+ * @param [properties] Properties to set
380
+ */
381
+ constructor(properties?: SignalLocalStorageProtocol.SenderKeyStateStructure.ISenderSigningKey);
382
+ /** SenderSigningKey public. */
383
+ public public?: (Uint8Array|null);
384
+ /** SenderSigningKey private. */
385
+ public private?: (Uint8Array|null);
386
+ /** SenderSigningKey _public. */
387
+ public _public?: "public";
388
+ /** SenderSigningKey _private. */
389
+ public _private?: "private";
390
+ /**
391
+ * Creates a new SenderSigningKey instance using the specified properties.
392
+ * @param [properties] Properties to set
393
+ * @returns SenderSigningKey instance
394
+ */
395
+ public static create(properties?: SignalLocalStorageProtocol.SenderKeyStateStructure.ISenderSigningKey): SignalLocalStorageProtocol.SenderKeyStateStructure.SenderSigningKey;
396
+ /**
397
+ * Encodes the specified SenderSigningKey message. Does not implicitly {@link SignalLocalStorageProtocol.SenderKeyStateStructure.SenderSigningKey.verify|verify} messages.
398
+ * @param message SenderSigningKey message or plain object to encode
399
+ * @param [writer] Writer to encode to
400
+ * @returns Writer
401
+ */
402
+ public static encode(message: SignalLocalStorageProtocol.SenderKeyStateStructure.ISenderSigningKey, writer?: $protobuf.Writer): $protobuf.Writer;
403
+ /**
404
+ * Encodes the specified SenderSigningKey message, length delimited. Does not implicitly {@link SignalLocalStorageProtocol.SenderKeyStateStructure.SenderSigningKey.verify|verify} messages.
405
+ * @param message SenderSigningKey message or plain object to encode
406
+ * @param [writer] Writer to encode to
407
+ * @returns Writer
408
+ */
409
+ public static encodeDelimited(message: SignalLocalStorageProtocol.SenderKeyStateStructure.ISenderSigningKey, writer?: $protobuf.Writer): $protobuf.Writer;
410
+ /**
411
+ * Decodes a SenderSigningKey message from the specified reader or buffer.
412
+ * @param reader Reader or buffer to decode from
413
+ * @param [length] Message length if known beforehand
414
+ * @returns SenderSigningKey
415
+ * @throws {Error} If the payload is not a reader or valid buffer
416
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
417
+ */
418
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SignalLocalStorageProtocol.SenderKeyStateStructure.SenderSigningKey;
419
+ /**
420
+ * Decodes a SenderSigningKey message from the specified reader or buffer, length delimited.
421
+ * @param reader Reader or buffer to decode from
422
+ * @returns SenderSigningKey
423
+ * @throws {Error} If the payload is not a reader or valid buffer
424
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
425
+ */
426
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SignalLocalStorageProtocol.SenderKeyStateStructure.SenderSigningKey;
427
+ /**
428
+ * Verifies a SenderSigningKey message.
429
+ * @param message Plain object to verify
430
+ * @returns `null` if valid, otherwise the reason why it is not
431
+ */
432
+ public static verify(message: { [k: string]: any }): (string|null);
433
+ /**
434
+ * Creates a SenderSigningKey message from a plain object. Also converts values to their respective internal types.
435
+ * @param object Plain object
436
+ * @returns SenderSigningKey
437
+ */
438
+ public static fromObject(object: { [k: string]: any }): SignalLocalStorageProtocol.SenderKeyStateStructure.SenderSigningKey;
439
+ /**
440
+ * Creates a plain object from a SenderSigningKey message. Also converts values to other types if specified.
441
+ * @param message SenderSigningKey
442
+ * @param [options] Conversion options
443
+ * @returns Plain object
444
+ */
445
+ public static toObject(message: SignalLocalStorageProtocol.SenderKeyStateStructure.SenderSigningKey, options?: $protobuf.IConversionOptions): { [k: string]: any };
446
+ /**
447
+ * Converts this SenderSigningKey to JSON.
448
+ * @returns JSON object
449
+ */
450
+ public toJSON(): { [k: string]: any };
451
+ /**
452
+ * Gets the default type url for SenderSigningKey
453
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
454
+ * @returns The default type url
455
+ */
456
+ public static getTypeUrl(typeUrlPrefix?: string): string;
457
+ }
458
+ }
459
+ /** Properties of an IdentityKeyPairStructure. */
460
+ interface IIdentityKeyPairStructure {
461
+ /** IdentityKeyPairStructure publicKey */
462
+ publicKey?: (Uint8Array|null);
463
+ /** IdentityKeyPairStructure privateKey */
464
+ privateKey?: (Uint8Array|null);
465
+ }
466
+ /** Represents an IdentityKeyPairStructure. */
467
+ class IdentityKeyPairStructure implements IIdentityKeyPairStructure {
468
+ /**
469
+ * Constructs a new IdentityKeyPairStructure.
470
+ * @param [properties] Properties to set
471
+ */
472
+ constructor(properties?: SignalLocalStorageProtocol.IIdentityKeyPairStructure);
473
+ /** IdentityKeyPairStructure publicKey. */
474
+ public publicKey?: (Uint8Array|null);
475
+ /** IdentityKeyPairStructure privateKey. */
476
+ public privateKey?: (Uint8Array|null);
477
+ /** IdentityKeyPairStructure _publicKey. */
478
+ public _publicKey?: "publicKey";
479
+ /** IdentityKeyPairStructure _privateKey. */
480
+ public _privateKey?: "privateKey";
481
+ /**
482
+ * Creates a new IdentityKeyPairStructure instance using the specified properties.
483
+ * @param [properties] Properties to set
484
+ * @returns IdentityKeyPairStructure instance
485
+ */
486
+ public static create(properties?: SignalLocalStorageProtocol.IIdentityKeyPairStructure): SignalLocalStorageProtocol.IdentityKeyPairStructure;
487
+ /**
488
+ * Encodes the specified IdentityKeyPairStructure message. Does not implicitly {@link SignalLocalStorageProtocol.IdentityKeyPairStructure.verify|verify} messages.
489
+ * @param message IdentityKeyPairStructure message or plain object to encode
490
+ * @param [writer] Writer to encode to
491
+ * @returns Writer
492
+ */
493
+ public static encode(message: SignalLocalStorageProtocol.IIdentityKeyPairStructure, writer?: $protobuf.Writer): $protobuf.Writer;
494
+ /**
495
+ * Encodes the specified IdentityKeyPairStructure message, length delimited. Does not implicitly {@link SignalLocalStorageProtocol.IdentityKeyPairStructure.verify|verify} messages.
496
+ * @param message IdentityKeyPairStructure message or plain object to encode
497
+ * @param [writer] Writer to encode to
498
+ * @returns Writer
499
+ */
500
+ public static encodeDelimited(message: SignalLocalStorageProtocol.IIdentityKeyPairStructure, writer?: $protobuf.Writer): $protobuf.Writer;
501
+ /**
502
+ * Decodes an IdentityKeyPairStructure message from the specified reader or buffer.
503
+ * @param reader Reader or buffer to decode from
504
+ * @param [length] Message length if known beforehand
505
+ * @returns IdentityKeyPairStructure
506
+ * @throws {Error} If the payload is not a reader or valid buffer
507
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
508
+ */
509
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SignalLocalStorageProtocol.IdentityKeyPairStructure;
510
+ /**
511
+ * Decodes an IdentityKeyPairStructure message from the specified reader or buffer, length delimited.
512
+ * @param reader Reader or buffer to decode from
513
+ * @returns IdentityKeyPairStructure
514
+ * @throws {Error} If the payload is not a reader or valid buffer
515
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
516
+ */
517
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SignalLocalStorageProtocol.IdentityKeyPairStructure;
518
+ /**
519
+ * Verifies an IdentityKeyPairStructure message.
520
+ * @param message Plain object to verify
521
+ * @returns `null` if valid, otherwise the reason why it is not
522
+ */
523
+ public static verify(message: { [k: string]: any }): (string|null);
524
+ /**
525
+ * Creates an IdentityKeyPairStructure message from a plain object. Also converts values to their respective internal types.
526
+ * @param object Plain object
527
+ * @returns IdentityKeyPairStructure
528
+ */
529
+ public static fromObject(object: { [k: string]: any }): SignalLocalStorageProtocol.IdentityKeyPairStructure;
530
+ /**
531
+ * Creates a plain object from an IdentityKeyPairStructure message. Also converts values to other types if specified.
532
+ * @param message IdentityKeyPairStructure
533
+ * @param [options] Conversion options
534
+ * @returns Plain object
535
+ */
536
+ public static toObject(message: SignalLocalStorageProtocol.IdentityKeyPairStructure, options?: $protobuf.IConversionOptions): { [k: string]: any };
537
+ /**
538
+ * Converts this IdentityKeyPairStructure to JSON.
539
+ * @returns JSON object
540
+ */
541
+ public toJSON(): { [k: string]: any };
542
+ /**
543
+ * Gets the default type url for IdentityKeyPairStructure
544
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
545
+ * @returns The default type url
546
+ */
547
+ public static getTypeUrl(typeUrlPrefix?: string): string;
548
+ }
549
+ /** Properties of a SignedPreKeyRecordStructure. */
550
+ interface ISignedPreKeyRecordStructure {
551
+ /** SignedPreKeyRecordStructure id */
552
+ id?: (number|null);
553
+ /** SignedPreKeyRecordStructure publicKey */
554
+ publicKey?: (Uint8Array|null);
555
+ /** SignedPreKeyRecordStructure privateKey */
556
+ privateKey?: (Uint8Array|null);
557
+ /** SignedPreKeyRecordStructure signature */
558
+ signature?: (Uint8Array|null);
559
+ /** SignedPreKeyRecordStructure timestamp */
560
+ timestamp?: (number|Long|null);
561
+ }
562
+ /** Represents a SignedPreKeyRecordStructure. */
563
+ class SignedPreKeyRecordStructure implements ISignedPreKeyRecordStructure {
564
+ /**
565
+ * Constructs a new SignedPreKeyRecordStructure.
566
+ * @param [properties] Properties to set
567
+ */
568
+ constructor(properties?: SignalLocalStorageProtocol.ISignedPreKeyRecordStructure);
569
+ /** SignedPreKeyRecordStructure id. */
570
+ public id?: (number|null);
571
+ /** SignedPreKeyRecordStructure publicKey. */
572
+ public publicKey?: (Uint8Array|null);
573
+ /** SignedPreKeyRecordStructure privateKey. */
574
+ public privateKey?: (Uint8Array|null);
575
+ /** SignedPreKeyRecordStructure signature. */
576
+ public signature?: (Uint8Array|null);
577
+ /** SignedPreKeyRecordStructure timestamp. */
578
+ public timestamp?: (number|Long|null);
579
+ /** SignedPreKeyRecordStructure _id. */
580
+ public _id?: "id";
581
+ /** SignedPreKeyRecordStructure _publicKey. */
582
+ public _publicKey?: "publicKey";
583
+ /** SignedPreKeyRecordStructure _privateKey. */
584
+ public _privateKey?: "privateKey";
585
+ /** SignedPreKeyRecordStructure _signature. */
586
+ public _signature?: "signature";
587
+ /** SignedPreKeyRecordStructure _timestamp. */
588
+ public _timestamp?: "timestamp";
589
+ /**
590
+ * Creates a new SignedPreKeyRecordStructure instance using the specified properties.
591
+ * @param [properties] Properties to set
592
+ * @returns SignedPreKeyRecordStructure instance
593
+ */
594
+ public static create(properties?: SignalLocalStorageProtocol.ISignedPreKeyRecordStructure): SignalLocalStorageProtocol.SignedPreKeyRecordStructure;
595
+ /**
596
+ * Encodes the specified SignedPreKeyRecordStructure message. Does not implicitly {@link SignalLocalStorageProtocol.SignedPreKeyRecordStructure.verify|verify} messages.
597
+ * @param message SignedPreKeyRecordStructure message or plain object to encode
598
+ * @param [writer] Writer to encode to
599
+ * @returns Writer
600
+ */
601
+ public static encode(message: SignalLocalStorageProtocol.ISignedPreKeyRecordStructure, writer?: $protobuf.Writer): $protobuf.Writer;
602
+ /**
603
+ * Encodes the specified SignedPreKeyRecordStructure message, length delimited. Does not implicitly {@link SignalLocalStorageProtocol.SignedPreKeyRecordStructure.verify|verify} messages.
604
+ * @param message SignedPreKeyRecordStructure message or plain object to encode
605
+ * @param [writer] Writer to encode to
606
+ * @returns Writer
607
+ */
608
+ public static encodeDelimited(message: SignalLocalStorageProtocol.ISignedPreKeyRecordStructure, writer?: $protobuf.Writer): $protobuf.Writer;
609
+ /**
610
+ * Decodes a SignedPreKeyRecordStructure message from the specified reader or buffer.
611
+ * @param reader Reader or buffer to decode from
612
+ * @param [length] Message length if known beforehand
613
+ * @returns SignedPreKeyRecordStructure
614
+ * @throws {Error} If the payload is not a reader or valid buffer
615
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
616
+ */
617
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SignalLocalStorageProtocol.SignedPreKeyRecordStructure;
618
+ /**
619
+ * Decodes a SignedPreKeyRecordStructure message from the specified reader or buffer, length delimited.
620
+ * @param reader Reader or buffer to decode from
621
+ * @returns SignedPreKeyRecordStructure
622
+ * @throws {Error} If the payload is not a reader or valid buffer
623
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
624
+ */
625
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SignalLocalStorageProtocol.SignedPreKeyRecordStructure;
626
+ /**
627
+ * Verifies a SignedPreKeyRecordStructure message.
628
+ * @param message Plain object to verify
629
+ * @returns `null` if valid, otherwise the reason why it is not
630
+ */
631
+ public static verify(message: { [k: string]: any }): (string|null);
632
+ /**
633
+ * Creates a SignedPreKeyRecordStructure message from a plain object. Also converts values to their respective internal types.
634
+ * @param object Plain object
635
+ * @returns SignedPreKeyRecordStructure
636
+ */
637
+ public static fromObject(object: { [k: string]: any }): SignalLocalStorageProtocol.SignedPreKeyRecordStructure;
638
+ /**
639
+ * Creates a plain object from a SignedPreKeyRecordStructure message. Also converts values to other types if specified.
640
+ * @param message SignedPreKeyRecordStructure
641
+ * @param [options] Conversion options
642
+ * @returns Plain object
643
+ */
644
+ public static toObject(message: SignalLocalStorageProtocol.SignedPreKeyRecordStructure, options?: $protobuf.IConversionOptions): { [k: string]: any };
645
+ /**
646
+ * Converts this SignedPreKeyRecordStructure to JSON.
647
+ * @returns JSON object
648
+ */
649
+ public toJSON(): { [k: string]: any };
650
+ /**
651
+ * Gets the default type url for SignedPreKeyRecordStructure
652
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
653
+ * @returns The default type url
654
+ */
655
+ public static getTypeUrl(typeUrlPrefix?: string): string;
656
+ }
657
+ /** Properties of a PreKeyRecordStructure. */
658
+ interface IPreKeyRecordStructure {
659
+ /** PreKeyRecordStructure id */
660
+ id?: (number|null);
661
+ /** PreKeyRecordStructure publicKey */
662
+ publicKey?: (Uint8Array|null);
663
+ /** PreKeyRecordStructure privateKey */
664
+ privateKey?: (Uint8Array|null);
665
+ }
666
+ /** Represents a PreKeyRecordStructure. */
667
+ class PreKeyRecordStructure implements IPreKeyRecordStructure {
668
+ /**
669
+ * Constructs a new PreKeyRecordStructure.
670
+ * @param [properties] Properties to set
671
+ */
672
+ constructor(properties?: SignalLocalStorageProtocol.IPreKeyRecordStructure);
673
+ /** PreKeyRecordStructure id. */
674
+ public id?: (number|null);
675
+ /** PreKeyRecordStructure publicKey. */
676
+ public publicKey?: (Uint8Array|null);
677
+ /** PreKeyRecordStructure privateKey. */
678
+ public privateKey?: (Uint8Array|null);
679
+ /** PreKeyRecordStructure _id. */
680
+ public _id?: "id";
681
+ /** PreKeyRecordStructure _publicKey. */
682
+ public _publicKey?: "publicKey";
683
+ /** PreKeyRecordStructure _privateKey. */
684
+ public _privateKey?: "privateKey";
685
+ /**
686
+ * Creates a new PreKeyRecordStructure instance using the specified properties.
687
+ * @param [properties] Properties to set
688
+ * @returns PreKeyRecordStructure instance
689
+ */
690
+ public static create(properties?: SignalLocalStorageProtocol.IPreKeyRecordStructure): SignalLocalStorageProtocol.PreKeyRecordStructure;
691
+ /**
692
+ * Encodes the specified PreKeyRecordStructure message. Does not implicitly {@link SignalLocalStorageProtocol.PreKeyRecordStructure.verify|verify} messages.
693
+ * @param message PreKeyRecordStructure message or plain object to encode
694
+ * @param [writer] Writer to encode to
695
+ * @returns Writer
696
+ */
697
+ public static encode(message: SignalLocalStorageProtocol.IPreKeyRecordStructure, writer?: $protobuf.Writer): $protobuf.Writer;
698
+ /**
699
+ * Encodes the specified PreKeyRecordStructure message, length delimited. Does not implicitly {@link SignalLocalStorageProtocol.PreKeyRecordStructure.verify|verify} messages.
700
+ * @param message PreKeyRecordStructure message or plain object to encode
701
+ * @param [writer] Writer to encode to
702
+ * @returns Writer
703
+ */
704
+ public static encodeDelimited(message: SignalLocalStorageProtocol.IPreKeyRecordStructure, writer?: $protobuf.Writer): $protobuf.Writer;
705
+ /**
706
+ * Decodes a PreKeyRecordStructure message from the specified reader or buffer.
707
+ * @param reader Reader or buffer to decode from
708
+ * @param [length] Message length if known beforehand
709
+ * @returns PreKeyRecordStructure
710
+ * @throws {Error} If the payload is not a reader or valid buffer
711
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
712
+ */
713
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SignalLocalStorageProtocol.PreKeyRecordStructure;
714
+ /**
715
+ * Decodes a PreKeyRecordStructure message from the specified reader or buffer, length delimited.
716
+ * @param reader Reader or buffer to decode from
717
+ * @returns PreKeyRecordStructure
718
+ * @throws {Error} If the payload is not a reader or valid buffer
719
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
720
+ */
721
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SignalLocalStorageProtocol.PreKeyRecordStructure;
722
+ /**
723
+ * Verifies a PreKeyRecordStructure message.
724
+ * @param message Plain object to verify
725
+ * @returns `null` if valid, otherwise the reason why it is not
726
+ */
727
+ public static verify(message: { [k: string]: any }): (string|null);
728
+ /**
729
+ * Creates a PreKeyRecordStructure message from a plain object. Also converts values to their respective internal types.
730
+ * @param object Plain object
731
+ * @returns PreKeyRecordStructure
732
+ */
733
+ public static fromObject(object: { [k: string]: any }): SignalLocalStorageProtocol.PreKeyRecordStructure;
734
+ /**
735
+ * Creates a plain object from a PreKeyRecordStructure message. Also converts values to other types if specified.
736
+ * @param message PreKeyRecordStructure
737
+ * @param [options] Conversion options
738
+ * @returns Plain object
739
+ */
740
+ public static toObject(message: SignalLocalStorageProtocol.PreKeyRecordStructure, options?: $protobuf.IConversionOptions): { [k: string]: any };
741
+ /**
742
+ * Converts this PreKeyRecordStructure to JSON.
743
+ * @returns JSON object
744
+ */
745
+ public toJSON(): { [k: string]: any };
746
+ /**
747
+ * Gets the default type url for PreKeyRecordStructure
748
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
749
+ * @returns The default type url
750
+ */
751
+ public static getTypeUrl(typeUrlPrefix?: string): string;
752
+ }
753
+ /** Properties of a RecordStructure. */
754
+ interface IRecordStructure {
755
+ /** RecordStructure currentSession */
756
+ currentSession?: (SignalLocalStorageProtocol.ISessionStructure|null);
757
+ /** RecordStructure previousSessions */
758
+ previousSessions?: (SignalLocalStorageProtocol.ISessionStructure[]|null);
759
+ }
760
+ /** Represents a RecordStructure. */
761
+ class RecordStructure implements IRecordStructure {
762
+ /**
763
+ * Constructs a new RecordStructure.
764
+ * @param [properties] Properties to set
765
+ */
766
+ constructor(properties?: SignalLocalStorageProtocol.IRecordStructure);
767
+ /** RecordStructure currentSession. */
768
+ public currentSession?: (SignalLocalStorageProtocol.ISessionStructure|null);
769
+ /** RecordStructure previousSessions. */
770
+ public previousSessions: SignalLocalStorageProtocol.ISessionStructure[];
771
+ /** RecordStructure _currentSession. */
772
+ public _currentSession?: "currentSession";
773
+ /**
774
+ * Creates a new RecordStructure instance using the specified properties.
775
+ * @param [properties] Properties to set
776
+ * @returns RecordStructure instance
777
+ */
778
+ public static create(properties?: SignalLocalStorageProtocol.IRecordStructure): SignalLocalStorageProtocol.RecordStructure;
779
+ /**
780
+ * Encodes the specified RecordStructure message. Does not implicitly {@link SignalLocalStorageProtocol.RecordStructure.verify|verify} messages.
781
+ * @param message RecordStructure message or plain object to encode
782
+ * @param [writer] Writer to encode to
783
+ * @returns Writer
784
+ */
785
+ public static encode(message: SignalLocalStorageProtocol.IRecordStructure, writer?: $protobuf.Writer): $protobuf.Writer;
786
+ /**
787
+ * Encodes the specified RecordStructure message, length delimited. Does not implicitly {@link SignalLocalStorageProtocol.RecordStructure.verify|verify} messages.
788
+ * @param message RecordStructure message or plain object to encode
789
+ * @param [writer] Writer to encode to
790
+ * @returns Writer
791
+ */
792
+ public static encodeDelimited(message: SignalLocalStorageProtocol.IRecordStructure, writer?: $protobuf.Writer): $protobuf.Writer;
793
+ /**
794
+ * Decodes a RecordStructure message from the specified reader or buffer.
795
+ * @param reader Reader or buffer to decode from
796
+ * @param [length] Message length if known beforehand
797
+ * @returns RecordStructure
798
+ * @throws {Error} If the payload is not a reader or valid buffer
799
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
800
+ */
801
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SignalLocalStorageProtocol.RecordStructure;
802
+ /**
803
+ * Decodes a RecordStructure message from the specified reader or buffer, length delimited.
804
+ * @param reader Reader or buffer to decode from
805
+ * @returns RecordStructure
806
+ * @throws {Error} If the payload is not a reader or valid buffer
807
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
808
+ */
809
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SignalLocalStorageProtocol.RecordStructure;
810
+ /**
811
+ * Verifies a RecordStructure message.
812
+ * @param message Plain object to verify
813
+ * @returns `null` if valid, otherwise the reason why it is not
814
+ */
815
+ public static verify(message: { [k: string]: any }): (string|null);
816
+ /**
817
+ * Creates a RecordStructure message from a plain object. Also converts values to their respective internal types.
818
+ * @param object Plain object
819
+ * @returns RecordStructure
820
+ */
821
+ public static fromObject(object: { [k: string]: any }): SignalLocalStorageProtocol.RecordStructure;
822
+ /**
823
+ * Creates a plain object from a RecordStructure message. Also converts values to other types if specified.
824
+ * @param message RecordStructure
825
+ * @param [options] Conversion options
826
+ * @returns Plain object
827
+ */
828
+ public static toObject(message: SignalLocalStorageProtocol.RecordStructure, options?: $protobuf.IConversionOptions): { [k: string]: any };
829
+ /**
830
+ * Converts this RecordStructure to JSON.
831
+ * @returns JSON object
832
+ */
833
+ public toJSON(): { [k: string]: any };
834
+ /**
835
+ * Gets the default type url for RecordStructure
836
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
837
+ * @returns The default type url
838
+ */
839
+ public static getTypeUrl(typeUrlPrefix?: string): string;
840
+ }
841
+ /** Properties of a SessionStructure. */
842
+ interface ISessionStructure {
843
+ /** SessionStructure sessionVersion */
844
+ sessionVersion?: (number|null);
845
+ /** SessionStructure localIdentityPublic */
846
+ localIdentityPublic?: (Uint8Array|null);
847
+ /** SessionStructure remoteIdentityPublic */
848
+ remoteIdentityPublic?: (Uint8Array|null);
849
+ /** SessionStructure rootKey */
850
+ rootKey?: (Uint8Array|null);
851
+ /** SessionStructure previousCounter */
852
+ previousCounter?: (number|null);
853
+ /** SessionStructure senderChain */
854
+ senderChain?: (SignalLocalStorageProtocol.SessionStructure.IChain|null);
855
+ /** SessionStructure receiverChains */
856
+ receiverChains?: (SignalLocalStorageProtocol.SessionStructure.IChain[]|null);
857
+ /** SessionStructure pendingKeyExchange */
858
+ pendingKeyExchange?: (SignalLocalStorageProtocol.SessionStructure.IPendingKeyExchange|null);
859
+ /** SessionStructure pendingPreKey */
860
+ pendingPreKey?: (SignalLocalStorageProtocol.SessionStructure.IPendingPreKey|null);
861
+ /** SessionStructure remoteRegistrationId */
862
+ remoteRegistrationId?: (number|null);
863
+ /** SessionStructure localRegistrationId */
864
+ localRegistrationId?: (number|null);
865
+ /** SessionStructure needsRefresh */
866
+ needsRefresh?: (boolean|null);
867
+ /** SessionStructure aliceBaseKey */
868
+ aliceBaseKey?: (Uint8Array|null);
869
+ }
870
+ /** Represents a SessionStructure. */
871
+ class SessionStructure implements ISessionStructure {
872
+ /**
873
+ * Constructs a new SessionStructure.
874
+ * @param [properties] Properties to set
875
+ */
876
+ constructor(properties?: SignalLocalStorageProtocol.ISessionStructure);
877
+ /** SessionStructure sessionVersion. */
878
+ public sessionVersion?: (number|null);
879
+ /** SessionStructure localIdentityPublic. */
880
+ public localIdentityPublic?: (Uint8Array|null);
881
+ /** SessionStructure remoteIdentityPublic. */
882
+ public remoteIdentityPublic?: (Uint8Array|null);
883
+ /** SessionStructure rootKey. */
884
+ public rootKey?: (Uint8Array|null);
885
+ /** SessionStructure previousCounter. */
886
+ public previousCounter?: (number|null);
887
+ /** SessionStructure senderChain. */
888
+ public senderChain?: (SignalLocalStorageProtocol.SessionStructure.IChain|null);
889
+ /** SessionStructure receiverChains. */
890
+ public receiverChains: SignalLocalStorageProtocol.SessionStructure.IChain[];
891
+ /** SessionStructure pendingKeyExchange. */
892
+ public pendingKeyExchange?: (SignalLocalStorageProtocol.SessionStructure.IPendingKeyExchange|null);
893
+ /** SessionStructure pendingPreKey. */
894
+ public pendingPreKey?: (SignalLocalStorageProtocol.SessionStructure.IPendingPreKey|null);
895
+ /** SessionStructure remoteRegistrationId. */
896
+ public remoteRegistrationId?: (number|null);
897
+ /** SessionStructure localRegistrationId. */
898
+ public localRegistrationId?: (number|null);
899
+ /** SessionStructure needsRefresh. */
900
+ public needsRefresh?: (boolean|null);
901
+ /** SessionStructure aliceBaseKey. */
902
+ public aliceBaseKey?: (Uint8Array|null);
903
+ /** SessionStructure _sessionVersion. */
904
+ public _sessionVersion?: "sessionVersion";
905
+ /** SessionStructure _localIdentityPublic. */
906
+ public _localIdentityPublic?: "localIdentityPublic";
907
+ /** SessionStructure _remoteIdentityPublic. */
908
+ public _remoteIdentityPublic?: "remoteIdentityPublic";
909
+ /** SessionStructure _rootKey. */
910
+ public _rootKey?: "rootKey";
911
+ /** SessionStructure _previousCounter. */
912
+ public _previousCounter?: "previousCounter";
913
+ /** SessionStructure _senderChain. */
914
+ public _senderChain?: "senderChain";
915
+ /** SessionStructure _pendingKeyExchange. */
916
+ public _pendingKeyExchange?: "pendingKeyExchange";
917
+ /** SessionStructure _pendingPreKey. */
918
+ public _pendingPreKey?: "pendingPreKey";
919
+ /** SessionStructure _remoteRegistrationId. */
920
+ public _remoteRegistrationId?: "remoteRegistrationId";
921
+ /** SessionStructure _localRegistrationId. */
922
+ public _localRegistrationId?: "localRegistrationId";
923
+ /** SessionStructure _needsRefresh. */
924
+ public _needsRefresh?: "needsRefresh";
925
+ /** SessionStructure _aliceBaseKey. */
926
+ public _aliceBaseKey?: "aliceBaseKey";
927
+ /**
928
+ * Creates a new SessionStructure instance using the specified properties.
929
+ * @param [properties] Properties to set
930
+ * @returns SessionStructure instance
931
+ */
932
+ public static create(properties?: SignalLocalStorageProtocol.ISessionStructure): SignalLocalStorageProtocol.SessionStructure;
933
+ /**
934
+ * Encodes the specified SessionStructure message. Does not implicitly {@link SignalLocalStorageProtocol.SessionStructure.verify|verify} messages.
935
+ * @param message SessionStructure message or plain object to encode
936
+ * @param [writer] Writer to encode to
937
+ * @returns Writer
938
+ */
939
+ public static encode(message: SignalLocalStorageProtocol.ISessionStructure, writer?: $protobuf.Writer): $protobuf.Writer;
940
+ /**
941
+ * Encodes the specified SessionStructure message, length delimited. Does not implicitly {@link SignalLocalStorageProtocol.SessionStructure.verify|verify} messages.
942
+ * @param message SessionStructure message or plain object to encode
943
+ * @param [writer] Writer to encode to
944
+ * @returns Writer
945
+ */
946
+ public static encodeDelimited(message: SignalLocalStorageProtocol.ISessionStructure, writer?: $protobuf.Writer): $protobuf.Writer;
947
+ /**
948
+ * Decodes a SessionStructure message from the specified reader or buffer.
949
+ * @param reader Reader or buffer to decode from
950
+ * @param [length] Message length if known beforehand
951
+ * @returns SessionStructure
952
+ * @throws {Error} If the payload is not a reader or valid buffer
953
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
954
+ */
955
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SignalLocalStorageProtocol.SessionStructure;
956
+ /**
957
+ * Decodes a SessionStructure message from the specified reader or buffer, length delimited.
958
+ * @param reader Reader or buffer to decode from
959
+ * @returns SessionStructure
960
+ * @throws {Error} If the payload is not a reader or valid buffer
961
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
962
+ */
963
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SignalLocalStorageProtocol.SessionStructure;
964
+ /**
965
+ * Verifies a SessionStructure message.
966
+ * @param message Plain object to verify
967
+ * @returns `null` if valid, otherwise the reason why it is not
968
+ */
969
+ public static verify(message: { [k: string]: any }): (string|null);
970
+ /**
971
+ * Creates a SessionStructure message from a plain object. Also converts values to their respective internal types.
972
+ * @param object Plain object
973
+ * @returns SessionStructure
974
+ */
975
+ public static fromObject(object: { [k: string]: any }): SignalLocalStorageProtocol.SessionStructure;
976
+ /**
977
+ * Creates a plain object from a SessionStructure message. Also converts values to other types if specified.
978
+ * @param message SessionStructure
979
+ * @param [options] Conversion options
980
+ * @returns Plain object
981
+ */
982
+ public static toObject(message: SignalLocalStorageProtocol.SessionStructure, options?: $protobuf.IConversionOptions): { [k: string]: any };
983
+ /**
984
+ * Converts this SessionStructure to JSON.
985
+ * @returns JSON object
986
+ */
987
+ public toJSON(): { [k: string]: any };
988
+ /**
989
+ * Gets the default type url for SessionStructure
990
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
991
+ * @returns The default type url
992
+ */
993
+ public static getTypeUrl(typeUrlPrefix?: string): string;
994
+ }
995
+ namespace SessionStructure {
996
+ /** Properties of a Chain. */
997
+ interface IChain {
998
+ /** Chain senderRatchetKey */
999
+ senderRatchetKey?: (Uint8Array|null);
1000
+ /** Chain senderRatchetKeyPrivate */
1001
+ senderRatchetKeyPrivate?: (Uint8Array|null);
1002
+ /** Chain chainKey */
1003
+ chainKey?: (SignalLocalStorageProtocol.SessionStructure.Chain.IChainKey|null);
1004
+ /** Chain messageKeys */
1005
+ messageKeys?: (SignalLocalStorageProtocol.SessionStructure.Chain.IMessageKey[]|null);
1006
+ }
1007
+ /** Represents a Chain. */
1008
+ class Chain implements IChain {
1009
+ /**
1010
+ * Constructs a new Chain.
1011
+ * @param [properties] Properties to set
1012
+ */
1013
+ constructor(properties?: SignalLocalStorageProtocol.SessionStructure.IChain);
1014
+ /** Chain senderRatchetKey. */
1015
+ public senderRatchetKey?: (Uint8Array|null);
1016
+ /** Chain senderRatchetKeyPrivate. */
1017
+ public senderRatchetKeyPrivate?: (Uint8Array|null);
1018
+ /** Chain chainKey. */
1019
+ public chainKey?: (SignalLocalStorageProtocol.SessionStructure.Chain.IChainKey|null);
1020
+ /** Chain messageKeys. */
1021
+ public messageKeys: SignalLocalStorageProtocol.SessionStructure.Chain.IMessageKey[];
1022
+ /** Chain _senderRatchetKey. */
1023
+ public _senderRatchetKey?: "senderRatchetKey";
1024
+ /** Chain _senderRatchetKeyPrivate. */
1025
+ public _senderRatchetKeyPrivate?: "senderRatchetKeyPrivate";
1026
+ /** Chain _chainKey. */
1027
+ public _chainKey?: "chainKey";
1028
+ /**
1029
+ * Creates a new Chain instance using the specified properties.
1030
+ * @param [properties] Properties to set
1031
+ * @returns Chain instance
1032
+ */
1033
+ public static create(properties?: SignalLocalStorageProtocol.SessionStructure.IChain): SignalLocalStorageProtocol.SessionStructure.Chain;
1034
+ /**
1035
+ * Encodes the specified Chain message. Does not implicitly {@link SignalLocalStorageProtocol.SessionStructure.Chain.verify|verify} messages.
1036
+ * @param message Chain message or plain object to encode
1037
+ * @param [writer] Writer to encode to
1038
+ * @returns Writer
1039
+ */
1040
+ public static encode(message: SignalLocalStorageProtocol.SessionStructure.IChain, writer?: $protobuf.Writer): $protobuf.Writer;
1041
+ /**
1042
+ * Encodes the specified Chain message, length delimited. Does not implicitly {@link SignalLocalStorageProtocol.SessionStructure.Chain.verify|verify} messages.
1043
+ * @param message Chain message or plain object to encode
1044
+ * @param [writer] Writer to encode to
1045
+ * @returns Writer
1046
+ */
1047
+ public static encodeDelimited(message: SignalLocalStorageProtocol.SessionStructure.IChain, writer?: $protobuf.Writer): $protobuf.Writer;
1048
+ /**
1049
+ * Decodes a Chain message from the specified reader or buffer.
1050
+ * @param reader Reader or buffer to decode from
1051
+ * @param [length] Message length if known beforehand
1052
+ * @returns Chain
1053
+ * @throws {Error} If the payload is not a reader or valid buffer
1054
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1055
+ */
1056
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SignalLocalStorageProtocol.SessionStructure.Chain;
1057
+ /**
1058
+ * Decodes a Chain message from the specified reader or buffer, length delimited.
1059
+ * @param reader Reader or buffer to decode from
1060
+ * @returns Chain
1061
+ * @throws {Error} If the payload is not a reader or valid buffer
1062
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1063
+ */
1064
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SignalLocalStorageProtocol.SessionStructure.Chain;
1065
+ /**
1066
+ * Verifies a Chain message.
1067
+ * @param message Plain object to verify
1068
+ * @returns `null` if valid, otherwise the reason why it is not
1069
+ */
1070
+ public static verify(message: { [k: string]: any }): (string|null);
1071
+ /**
1072
+ * Creates a Chain message from a plain object. Also converts values to their respective internal types.
1073
+ * @param object Plain object
1074
+ * @returns Chain
1075
+ */
1076
+ public static fromObject(object: { [k: string]: any }): SignalLocalStorageProtocol.SessionStructure.Chain;
1077
+ /**
1078
+ * Creates a plain object from a Chain message. Also converts values to other types if specified.
1079
+ * @param message Chain
1080
+ * @param [options] Conversion options
1081
+ * @returns Plain object
1082
+ */
1083
+ public static toObject(message: SignalLocalStorageProtocol.SessionStructure.Chain, options?: $protobuf.IConversionOptions): { [k: string]: any };
1084
+ /**
1085
+ * Converts this Chain to JSON.
1086
+ * @returns JSON object
1087
+ */
1088
+ public toJSON(): { [k: string]: any };
1089
+ /**
1090
+ * Gets the default type url for Chain
1091
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1092
+ * @returns The default type url
1093
+ */
1094
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1095
+ }
1096
+ namespace Chain {
1097
+ /** Properties of a ChainKey. */
1098
+ interface IChainKey {
1099
+ /** ChainKey index */
1100
+ index?: (number|null);
1101
+ /** ChainKey key */
1102
+ key?: (Uint8Array|null);
1103
+ }
1104
+ /** Represents a ChainKey. */
1105
+ class ChainKey implements IChainKey {
1106
+ /**
1107
+ * Constructs a new ChainKey.
1108
+ * @param [properties] Properties to set
1109
+ */
1110
+ constructor(properties?: SignalLocalStorageProtocol.SessionStructure.Chain.IChainKey);
1111
+ /** ChainKey index. */
1112
+ public index?: (number|null);
1113
+ /** ChainKey key. */
1114
+ public key?: (Uint8Array|null);
1115
+ /** ChainKey _index. */
1116
+ public _index?: "index";
1117
+ /** ChainKey _key. */
1118
+ public _key?: "key";
1119
+ /**
1120
+ * Creates a new ChainKey instance using the specified properties.
1121
+ * @param [properties] Properties to set
1122
+ * @returns ChainKey instance
1123
+ */
1124
+ public static create(properties?: SignalLocalStorageProtocol.SessionStructure.Chain.IChainKey): SignalLocalStorageProtocol.SessionStructure.Chain.ChainKey;
1125
+ /**
1126
+ * Encodes the specified ChainKey message. Does not implicitly {@link SignalLocalStorageProtocol.SessionStructure.Chain.ChainKey.verify|verify} messages.
1127
+ * @param message ChainKey message or plain object to encode
1128
+ * @param [writer] Writer to encode to
1129
+ * @returns Writer
1130
+ */
1131
+ public static encode(message: SignalLocalStorageProtocol.SessionStructure.Chain.IChainKey, writer?: $protobuf.Writer): $protobuf.Writer;
1132
+ /**
1133
+ * Encodes the specified ChainKey message, length delimited. Does not implicitly {@link SignalLocalStorageProtocol.SessionStructure.Chain.ChainKey.verify|verify} messages.
1134
+ * @param message ChainKey message or plain object to encode
1135
+ * @param [writer] Writer to encode to
1136
+ * @returns Writer
1137
+ */
1138
+ public static encodeDelimited(message: SignalLocalStorageProtocol.SessionStructure.Chain.IChainKey, writer?: $protobuf.Writer): $protobuf.Writer;
1139
+ /**
1140
+ * Decodes a ChainKey message from the specified reader or buffer.
1141
+ * @param reader Reader or buffer to decode from
1142
+ * @param [length] Message length if known beforehand
1143
+ * @returns ChainKey
1144
+ * @throws {Error} If the payload is not a reader or valid buffer
1145
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1146
+ */
1147
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SignalLocalStorageProtocol.SessionStructure.Chain.ChainKey;
1148
+ /**
1149
+ * Decodes a ChainKey message from the specified reader or buffer, length delimited.
1150
+ * @param reader Reader or buffer to decode from
1151
+ * @returns ChainKey
1152
+ * @throws {Error} If the payload is not a reader or valid buffer
1153
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1154
+ */
1155
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SignalLocalStorageProtocol.SessionStructure.Chain.ChainKey;
1156
+ /**
1157
+ * Verifies a ChainKey message.
1158
+ * @param message Plain object to verify
1159
+ * @returns `null` if valid, otherwise the reason why it is not
1160
+ */
1161
+ public static verify(message: { [k: string]: any }): (string|null);
1162
+ /**
1163
+ * Creates a ChainKey message from a plain object. Also converts values to their respective internal types.
1164
+ * @param object Plain object
1165
+ * @returns ChainKey
1166
+ */
1167
+ public static fromObject(object: { [k: string]: any }): SignalLocalStorageProtocol.SessionStructure.Chain.ChainKey;
1168
+ /**
1169
+ * Creates a plain object from a ChainKey message. Also converts values to other types if specified.
1170
+ * @param message ChainKey
1171
+ * @param [options] Conversion options
1172
+ * @returns Plain object
1173
+ */
1174
+ public static toObject(message: SignalLocalStorageProtocol.SessionStructure.Chain.ChainKey, options?: $protobuf.IConversionOptions): { [k: string]: any };
1175
+ /**
1176
+ * Converts this ChainKey to JSON.
1177
+ * @returns JSON object
1178
+ */
1179
+ public toJSON(): { [k: string]: any };
1180
+ /**
1181
+ * Gets the default type url for ChainKey
1182
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1183
+ * @returns The default type url
1184
+ */
1185
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1186
+ }
1187
+ /** Properties of a MessageKey. */
1188
+ interface IMessageKey {
1189
+ /** MessageKey index */
1190
+ index?: (number|null);
1191
+ /** MessageKey cipherKey */
1192
+ cipherKey?: (Uint8Array|null);
1193
+ /** MessageKey macKey */
1194
+ macKey?: (Uint8Array|null);
1195
+ /** MessageKey iv */
1196
+ iv?: (Uint8Array|null);
1197
+ }
1198
+ /** Represents a MessageKey. */
1199
+ class MessageKey implements IMessageKey {
1200
+ /**
1201
+ * Constructs a new MessageKey.
1202
+ * @param [properties] Properties to set
1203
+ */
1204
+ constructor(properties?: SignalLocalStorageProtocol.SessionStructure.Chain.IMessageKey);
1205
+ /** MessageKey index. */
1206
+ public index?: (number|null);
1207
+ /** MessageKey cipherKey. */
1208
+ public cipherKey?: (Uint8Array|null);
1209
+ /** MessageKey macKey. */
1210
+ public macKey?: (Uint8Array|null);
1211
+ /** MessageKey iv. */
1212
+ public iv?: (Uint8Array|null);
1213
+ /** MessageKey _index. */
1214
+ public _index?: "index";
1215
+ /** MessageKey _cipherKey. */
1216
+ public _cipherKey?: "cipherKey";
1217
+ /** MessageKey _macKey. */
1218
+ public _macKey?: "macKey";
1219
+ /** MessageKey _iv. */
1220
+ public _iv?: "iv";
1221
+ /**
1222
+ * Creates a new MessageKey instance using the specified properties.
1223
+ * @param [properties] Properties to set
1224
+ * @returns MessageKey instance
1225
+ */
1226
+ public static create(properties?: SignalLocalStorageProtocol.SessionStructure.Chain.IMessageKey): SignalLocalStorageProtocol.SessionStructure.Chain.MessageKey;
1227
+ /**
1228
+ * Encodes the specified MessageKey message. Does not implicitly {@link SignalLocalStorageProtocol.SessionStructure.Chain.MessageKey.verify|verify} messages.
1229
+ * @param message MessageKey message or plain object to encode
1230
+ * @param [writer] Writer to encode to
1231
+ * @returns Writer
1232
+ */
1233
+ public static encode(message: SignalLocalStorageProtocol.SessionStructure.Chain.IMessageKey, writer?: $protobuf.Writer): $protobuf.Writer;
1234
+ /**
1235
+ * Encodes the specified MessageKey message, length delimited. Does not implicitly {@link SignalLocalStorageProtocol.SessionStructure.Chain.MessageKey.verify|verify} messages.
1236
+ * @param message MessageKey message or plain object to encode
1237
+ * @param [writer] Writer to encode to
1238
+ * @returns Writer
1239
+ */
1240
+ public static encodeDelimited(message: SignalLocalStorageProtocol.SessionStructure.Chain.IMessageKey, writer?: $protobuf.Writer): $protobuf.Writer;
1241
+ /**
1242
+ * Decodes a MessageKey message from the specified reader or buffer.
1243
+ * @param reader Reader or buffer to decode from
1244
+ * @param [length] Message length if known beforehand
1245
+ * @returns MessageKey
1246
+ * @throws {Error} If the payload is not a reader or valid buffer
1247
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1248
+ */
1249
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SignalLocalStorageProtocol.SessionStructure.Chain.MessageKey;
1250
+ /**
1251
+ * Decodes a MessageKey message from the specified reader or buffer, length delimited.
1252
+ * @param reader Reader or buffer to decode from
1253
+ * @returns MessageKey
1254
+ * @throws {Error} If the payload is not a reader or valid buffer
1255
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1256
+ */
1257
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SignalLocalStorageProtocol.SessionStructure.Chain.MessageKey;
1258
+ /**
1259
+ * Verifies a MessageKey message.
1260
+ * @param message Plain object to verify
1261
+ * @returns `null` if valid, otherwise the reason why it is not
1262
+ */
1263
+ public static verify(message: { [k: string]: any }): (string|null);
1264
+ /**
1265
+ * Creates a MessageKey message from a plain object. Also converts values to their respective internal types.
1266
+ * @param object Plain object
1267
+ * @returns MessageKey
1268
+ */
1269
+ public static fromObject(object: { [k: string]: any }): SignalLocalStorageProtocol.SessionStructure.Chain.MessageKey;
1270
+ /**
1271
+ * Creates a plain object from a MessageKey message. Also converts values to other types if specified.
1272
+ * @param message MessageKey
1273
+ * @param [options] Conversion options
1274
+ * @returns Plain object
1275
+ */
1276
+ public static toObject(message: SignalLocalStorageProtocol.SessionStructure.Chain.MessageKey, options?: $protobuf.IConversionOptions): { [k: string]: any };
1277
+ /**
1278
+ * Converts this MessageKey to JSON.
1279
+ * @returns JSON object
1280
+ */
1281
+ public toJSON(): { [k: string]: any };
1282
+ /**
1283
+ * Gets the default type url for MessageKey
1284
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1285
+ * @returns The default type url
1286
+ */
1287
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1288
+ }
1289
+ }
1290
+ /** Properties of a PendingKeyExchange. */
1291
+ interface IPendingKeyExchange {
1292
+ /** PendingKeyExchange sequence */
1293
+ sequence?: (number|null);
1294
+ /** PendingKeyExchange localBaseKey */
1295
+ localBaseKey?: (Uint8Array|null);
1296
+ /** PendingKeyExchange localBaseKeyPrivate */
1297
+ localBaseKeyPrivate?: (Uint8Array|null);
1298
+ /** PendingKeyExchange localRatchetKey */
1299
+ localRatchetKey?: (Uint8Array|null);
1300
+ /** PendingKeyExchange localRatchetKeyPrivate */
1301
+ localRatchetKeyPrivate?: (Uint8Array|null);
1302
+ /** PendingKeyExchange localIdentityKey */
1303
+ localIdentityKey?: (Uint8Array|null);
1304
+ /** PendingKeyExchange localIdentityKeyPrivate */
1305
+ localIdentityKeyPrivate?: (Uint8Array|null);
1306
+ }
1307
+ /** Represents a PendingKeyExchange. */
1308
+ class PendingKeyExchange implements IPendingKeyExchange {
1309
+ /**
1310
+ * Constructs a new PendingKeyExchange.
1311
+ * @param [properties] Properties to set
1312
+ */
1313
+ constructor(properties?: SignalLocalStorageProtocol.SessionStructure.IPendingKeyExchange);
1314
+ /** PendingKeyExchange sequence. */
1315
+ public sequence?: (number|null);
1316
+ /** PendingKeyExchange localBaseKey. */
1317
+ public localBaseKey?: (Uint8Array|null);
1318
+ /** PendingKeyExchange localBaseKeyPrivate. */
1319
+ public localBaseKeyPrivate?: (Uint8Array|null);
1320
+ /** PendingKeyExchange localRatchetKey. */
1321
+ public localRatchetKey?: (Uint8Array|null);
1322
+ /** PendingKeyExchange localRatchetKeyPrivate. */
1323
+ public localRatchetKeyPrivate?: (Uint8Array|null);
1324
+ /** PendingKeyExchange localIdentityKey. */
1325
+ public localIdentityKey?: (Uint8Array|null);
1326
+ /** PendingKeyExchange localIdentityKeyPrivate. */
1327
+ public localIdentityKeyPrivate?: (Uint8Array|null);
1328
+ /** PendingKeyExchange _sequence. */
1329
+ public _sequence?: "sequence";
1330
+ /** PendingKeyExchange _localBaseKey. */
1331
+ public _localBaseKey?: "localBaseKey";
1332
+ /** PendingKeyExchange _localBaseKeyPrivate. */
1333
+ public _localBaseKeyPrivate?: "localBaseKeyPrivate";
1334
+ /** PendingKeyExchange _localRatchetKey. */
1335
+ public _localRatchetKey?: "localRatchetKey";
1336
+ /** PendingKeyExchange _localRatchetKeyPrivate. */
1337
+ public _localRatchetKeyPrivate?: "localRatchetKeyPrivate";
1338
+ /** PendingKeyExchange _localIdentityKey. */
1339
+ public _localIdentityKey?: "localIdentityKey";
1340
+ /** PendingKeyExchange _localIdentityKeyPrivate. */
1341
+ public _localIdentityKeyPrivate?: "localIdentityKeyPrivate";
1342
+ /**
1343
+ * Creates a new PendingKeyExchange instance using the specified properties.
1344
+ * @param [properties] Properties to set
1345
+ * @returns PendingKeyExchange instance
1346
+ */
1347
+ public static create(properties?: SignalLocalStorageProtocol.SessionStructure.IPendingKeyExchange): SignalLocalStorageProtocol.SessionStructure.PendingKeyExchange;
1348
+ /**
1349
+ * Encodes the specified PendingKeyExchange message. Does not implicitly {@link SignalLocalStorageProtocol.SessionStructure.PendingKeyExchange.verify|verify} messages.
1350
+ * @param message PendingKeyExchange message or plain object to encode
1351
+ * @param [writer] Writer to encode to
1352
+ * @returns Writer
1353
+ */
1354
+ public static encode(message: SignalLocalStorageProtocol.SessionStructure.IPendingKeyExchange, writer?: $protobuf.Writer): $protobuf.Writer;
1355
+ /**
1356
+ * Encodes the specified PendingKeyExchange message, length delimited. Does not implicitly {@link SignalLocalStorageProtocol.SessionStructure.PendingKeyExchange.verify|verify} messages.
1357
+ * @param message PendingKeyExchange message or plain object to encode
1358
+ * @param [writer] Writer to encode to
1359
+ * @returns Writer
1360
+ */
1361
+ public static encodeDelimited(message: SignalLocalStorageProtocol.SessionStructure.IPendingKeyExchange, writer?: $protobuf.Writer): $protobuf.Writer;
1362
+ /**
1363
+ * Decodes a PendingKeyExchange message from the specified reader or buffer.
1364
+ * @param reader Reader or buffer to decode from
1365
+ * @param [length] Message length if known beforehand
1366
+ * @returns PendingKeyExchange
1367
+ * @throws {Error} If the payload is not a reader or valid buffer
1368
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1369
+ */
1370
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SignalLocalStorageProtocol.SessionStructure.PendingKeyExchange;
1371
+ /**
1372
+ * Decodes a PendingKeyExchange message from the specified reader or buffer, length delimited.
1373
+ * @param reader Reader or buffer to decode from
1374
+ * @returns PendingKeyExchange
1375
+ * @throws {Error} If the payload is not a reader or valid buffer
1376
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1377
+ */
1378
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SignalLocalStorageProtocol.SessionStructure.PendingKeyExchange;
1379
+ /**
1380
+ * Verifies a PendingKeyExchange message.
1381
+ * @param message Plain object to verify
1382
+ * @returns `null` if valid, otherwise the reason why it is not
1383
+ */
1384
+ public static verify(message: { [k: string]: any }): (string|null);
1385
+ /**
1386
+ * Creates a PendingKeyExchange message from a plain object. Also converts values to their respective internal types.
1387
+ * @param object Plain object
1388
+ * @returns PendingKeyExchange
1389
+ */
1390
+ public static fromObject(object: { [k: string]: any }): SignalLocalStorageProtocol.SessionStructure.PendingKeyExchange;
1391
+ /**
1392
+ * Creates a plain object from a PendingKeyExchange message. Also converts values to other types if specified.
1393
+ * @param message PendingKeyExchange
1394
+ * @param [options] Conversion options
1395
+ * @returns Plain object
1396
+ */
1397
+ public static toObject(message: SignalLocalStorageProtocol.SessionStructure.PendingKeyExchange, options?: $protobuf.IConversionOptions): { [k: string]: any };
1398
+ /**
1399
+ * Converts this PendingKeyExchange to JSON.
1400
+ * @returns JSON object
1401
+ */
1402
+ public toJSON(): { [k: string]: any };
1403
+ /**
1404
+ * Gets the default type url for PendingKeyExchange
1405
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1406
+ * @returns The default type url
1407
+ */
1408
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1409
+ }
1410
+ /** Properties of a PendingPreKey. */
1411
+ interface IPendingPreKey {
1412
+ /** PendingPreKey preKeyId */
1413
+ preKeyId?: (number|null);
1414
+ /** PendingPreKey signedPreKeyId */
1415
+ signedPreKeyId?: (number|null);
1416
+ /** PendingPreKey baseKey */
1417
+ baseKey?: (Uint8Array|null);
1418
+ }
1419
+ /** Represents a PendingPreKey. */
1420
+ class PendingPreKey implements IPendingPreKey {
1421
+ /**
1422
+ * Constructs a new PendingPreKey.
1423
+ * @param [properties] Properties to set
1424
+ */
1425
+ constructor(properties?: SignalLocalStorageProtocol.SessionStructure.IPendingPreKey);
1426
+ /** PendingPreKey preKeyId. */
1427
+ public preKeyId?: (number|null);
1428
+ /** PendingPreKey signedPreKeyId. */
1429
+ public signedPreKeyId?: (number|null);
1430
+ /** PendingPreKey baseKey. */
1431
+ public baseKey?: (Uint8Array|null);
1432
+ /** PendingPreKey _preKeyId. */
1433
+ public _preKeyId?: "preKeyId";
1434
+ /** PendingPreKey _signedPreKeyId. */
1435
+ public _signedPreKeyId?: "signedPreKeyId";
1436
+ /** PendingPreKey _baseKey. */
1437
+ public _baseKey?: "baseKey";
1438
+ /**
1439
+ * Creates a new PendingPreKey instance using the specified properties.
1440
+ * @param [properties] Properties to set
1441
+ * @returns PendingPreKey instance
1442
+ */
1443
+ public static create(properties?: SignalLocalStorageProtocol.SessionStructure.IPendingPreKey): SignalLocalStorageProtocol.SessionStructure.PendingPreKey;
1444
+ /**
1445
+ * Encodes the specified PendingPreKey message. Does not implicitly {@link SignalLocalStorageProtocol.SessionStructure.PendingPreKey.verify|verify} messages.
1446
+ * @param message PendingPreKey message or plain object to encode
1447
+ * @param [writer] Writer to encode to
1448
+ * @returns Writer
1449
+ */
1450
+ public static encode(message: SignalLocalStorageProtocol.SessionStructure.IPendingPreKey, writer?: $protobuf.Writer): $protobuf.Writer;
1451
+ /**
1452
+ * Encodes the specified PendingPreKey message, length delimited. Does not implicitly {@link SignalLocalStorageProtocol.SessionStructure.PendingPreKey.verify|verify} messages.
1453
+ * @param message PendingPreKey message or plain object to encode
1454
+ * @param [writer] Writer to encode to
1455
+ * @returns Writer
1456
+ */
1457
+ public static encodeDelimited(message: SignalLocalStorageProtocol.SessionStructure.IPendingPreKey, writer?: $protobuf.Writer): $protobuf.Writer;
1458
+ /**
1459
+ * Decodes a PendingPreKey message from the specified reader or buffer.
1460
+ * @param reader Reader or buffer to decode from
1461
+ * @param [length] Message length if known beforehand
1462
+ * @returns PendingPreKey
1463
+ * @throws {Error} If the payload is not a reader or valid buffer
1464
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1465
+ */
1466
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SignalLocalStorageProtocol.SessionStructure.PendingPreKey;
1467
+ /**
1468
+ * Decodes a PendingPreKey message from the specified reader or buffer, length delimited.
1469
+ * @param reader Reader or buffer to decode from
1470
+ * @returns PendingPreKey
1471
+ * @throws {Error} If the payload is not a reader or valid buffer
1472
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1473
+ */
1474
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SignalLocalStorageProtocol.SessionStructure.PendingPreKey;
1475
+ /**
1476
+ * Verifies a PendingPreKey message.
1477
+ * @param message Plain object to verify
1478
+ * @returns `null` if valid, otherwise the reason why it is not
1479
+ */
1480
+ public static verify(message: { [k: string]: any }): (string|null);
1481
+ /**
1482
+ * Creates a PendingPreKey message from a plain object. Also converts values to their respective internal types.
1483
+ * @param object Plain object
1484
+ * @returns PendingPreKey
1485
+ */
1486
+ public static fromObject(object: { [k: string]: any }): SignalLocalStorageProtocol.SessionStructure.PendingPreKey;
1487
+ /**
1488
+ * Creates a plain object from a PendingPreKey message. Also converts values to other types if specified.
1489
+ * @param message PendingPreKey
1490
+ * @param [options] Conversion options
1491
+ * @returns Plain object
1492
+ */
1493
+ public static toObject(message: SignalLocalStorageProtocol.SessionStructure.PendingPreKey, options?: $protobuf.IConversionOptions): { [k: string]: any };
1494
+ /**
1495
+ * Converts this PendingPreKey to JSON.
1496
+ * @returns JSON object
1497
+ */
1498
+ public toJSON(): { [k: string]: any };
1499
+ /**
1500
+ * Gets the default type url for PendingPreKey
1501
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1502
+ * @returns The default type url
1503
+ */
1504
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1505
+ }
1506
+ }
1507
+ }