@hansaka02/baileys 7.3.2 → 7.3.6

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