@hansaka02/baileys 7.3.2 → 7.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/README.md +247 -203
  2. package/lib/Defaults/connection.js +51 -0
  3. package/lib/Defaults/constants.js +62 -0
  4. package/lib/Defaults/history.js +17 -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 +4 -4
  13. package/lib/Signal/Group/sender-key-distribution-message.js +5 -5
  14. package/lib/Signal/Group/sender-key-message.js +12 -8
  15. package/lib/Signal/Group/sender-key-record.js +7 -7
  16. package/lib/Signal/Group/sender-key-state.js +4 -4
  17. package/lib/Signal/Group/sender-message-key.js +2 -2
  18. package/lib/Signal/libsignal.js +45 -69
  19. package/lib/Signal/lid-mapping.js +15 -11
  20. package/lib/Socket/Client/types.js +2 -2
  21. package/lib/Socket/Client/websocket.js +16 -14
  22. package/lib/Socket/business.js +41 -32
  23. package/lib/Socket/chats.js +123 -98
  24. package/lib/Socket/community.js +50 -40
  25. package/lib/Socket/groups.js +59 -47
  26. package/lib/Socket/index.js +4 -4
  27. package/lib/Socket/messages-recv.js +219 -172
  28. package/lib/Socket/messages-send.js +187 -143
  29. package/lib/Socket/newsletter.js +61 -47
  30. package/lib/Socket/socket.js +133 -90
  31. package/lib/Socket/usync.js +6 -6
  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/State.js +4 -4
  39. package/lib/Types/index.js +28 -12
  40. package/lib/Utils/auth-utils.js +28 -26
  41. package/lib/Utils/baileys-event-stream.js +68 -69
  42. package/lib/Utils/business.js +63 -53
  43. package/lib/Utils/chat-utils.js +81 -71
  44. package/lib/Utils/crypto.js +25 -45
  45. package/lib/Utils/decode-wa-message.js +319 -311
  46. package/lib/Utils/event-buffer.js +21 -22
  47. package/lib/Utils/generics.js +65 -82
  48. package/lib/Utils/history.js +21 -21
  49. package/lib/Utils/index.js +27 -13
  50. package/lib/Utils/link-preview.js +7 -30
  51. package/lib/Utils/logger.js +5 -5
  52. package/lib/Utils/lt-hash.js +3 -3
  53. package/lib/Utils/message-retry-manager.js +4 -4
  54. package/lib/Utils/messages-media.js +104 -109
  55. package/lib/Utils/messages.js +203 -171
  56. package/lib/Utils/noise-handler.js +28 -19
  57. package/lib/Utils/process-message.js +111 -96
  58. package/lib/Utils/signal.js +36 -25
  59. package/lib/Utils/use-multi-file-auth-state.js +18 -22
  60. package/lib/Utils/validate-connection.js +52 -45
  61. package/lib/WABinary/decode.js +6 -32
  62. package/lib/WABinary/encode.js +3 -29
  63. package/lib/WABinary/generic-utils.js +4 -4
  64. package/lib/WABinary/index.js +27 -11
  65. package/lib/WAM/encode.js +16 -8
  66. package/lib/WAM/index.js +27 -11
  67. package/lib/WAUSync/Protocols/USyncBotProfileProtocol.js +20 -16
  68. package/lib/WAUSync/Protocols/USyncContactProtocol.js +2 -2
  69. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +7 -4
  70. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +2 -2
  71. package/lib/WAUSync/Protocols/USyncLIDProtocol.js +0 -2
  72. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +2 -2
  73. package/lib/WAUSync/Protocols/index.js +27 -11
  74. package/lib/WAUSync/USyncQuery.js +17 -10
  75. package/lib/WAUSync/index.js +27 -11
  76. package/lib/index.js +60 -31
  77. package/package.json +8 -14
  78. package/WAProto/AICommon/AICommon.d.ts +0 -11702
  79. package/WAProto/Adv/Adv.d.ts +0 -643
  80. package/WAProto/BotMetadata/BotMetadata.d.ts +0 -5654
  81. package/WAProto/Cert/Cert.d.ts +0 -613
  82. package/WAProto/ChatLockSettings/ChatLockSettings.d.ts +0 -476
  83. package/WAProto/CompanionReg/CompanionReg.d.ts +0 -1361
  84. package/WAProto/DeviceCapabilities/DeviceCapabilities.d.ts +0 -577
  85. package/WAProto/E2E/E2E.d.ts +0 -41724
  86. package/WAProto/Ephemeral/Ephemeral.d.ts +0 -114
  87. package/WAProto/HistorySync/HistorySync.d.ts +0 -51700
  88. package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.d.ts +0 -229
  89. package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.d.ts +0 -583
  90. package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.d.ts +0 -42897
  91. package/WAProto/MmsRetry/MmsRetry.d.ts +0 -243
  92. package/WAProto/Protocol/Protocol.d.ts +0 -270
  93. package/WAProto/Reporting/Reporting.d.ts +0 -371
  94. package/WAProto/ServerSync/ServerSync.d.ts +0 -1285
  95. package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.d.ts +0 -1868
  96. package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.d.ts +0 -767
  97. package/WAProto/StatusAttributions/StatusAttributions.d.ts +0 -1027
  98. package/WAProto/SyncAction/SyncAction.d.ts +0 -11193
  99. package/WAProto/UserPassword/UserPassword.d.ts +0 -363
  100. package/WAProto/VnameCert/VnameCert.d.ts +0 -821
  101. package/WAProto/Wa6/Wa6.d.ts +0 -2128
  102. package/WAProto/Web/Web.d.ts +0 -46383
  103. package/WAProto/index.d.ts +0 -55
  104. package/lib/Defaults/index.d.ts +0 -77
  105. package/lib/Signal/Group/ciphertext-message.d.ts +0 -9
  106. package/lib/Signal/Group/group-session-builder.d.ts +0 -17
  107. package/lib/Signal/Group/group_cipher.d.ts +0 -19
  108. package/lib/Signal/Group/index.d.ts +0 -11
  109. package/lib/Signal/Group/keyhelper.d.ts +0 -16
  110. package/lib/Signal/Group/sender-chain-key.d.ts +0 -14
  111. package/lib/Signal/Group/sender-key-distribution-message.d.ts +0 -17
  112. package/lib/Signal/Group/sender-key-message.d.ts +0 -19
  113. package/lib/Signal/Group/sender-key-name.d.ts +0 -19
  114. package/lib/Signal/Group/sender-key-record.d.ts +0 -32
  115. package/lib/Signal/Group/sender-key-state.d.ts +0 -44
  116. package/lib/Signal/Group/sender-message-key.d.ts +0 -11
  117. package/lib/Signal/libsignal.d.ts +0 -8
  118. package/lib/Signal/lid-mapping.d.ts +0 -28
  119. package/lib/Socket/Client/index.d.ts +0 -2
  120. package/lib/Socket/Client/types.d.ts +0 -16
  121. package/lib/Socket/Client/websocket.d.ts +0 -13
  122. package/lib/Socket/business.d.ts +0 -187
  123. package/lib/Socket/chats.d.ts +0 -97
  124. package/lib/Socket/community.d.ts +0 -129
  125. package/lib/Socket/groups.d.ts +0 -129
  126. package/lib/Socket/index.d.ts +0 -191
  127. package/lib/Socket/messages-recv.d.ts +0 -174
  128. package/lib/Socket/messages-send.d.ts +0 -165
  129. package/lib/Socket/newsletter.d.ts +0 -145
  130. package/lib/Socket/socket.d.ts +0 -45
  131. package/lib/Socket/usync.d.ts +0 -37
  132. package/lib/Store/index.d.ts +0 -4
  133. package/lib/Store/make-cache-manager-store.d.ts +0 -14
  134. package/lib/Store/make-in-memory-store.d.ts +0 -123
  135. package/lib/Store/make-ordered-dictionary.d.ts +0 -12
  136. package/lib/Store/object-repository.d.ts +0 -10
  137. package/lib/Types/Auth.d.ts +0 -121
  138. package/lib/Types/Bussiness.d.ts +0 -28
  139. package/lib/Types/Call.d.ts +0 -14
  140. package/lib/Types/Chat.d.ts +0 -143
  141. package/lib/Types/Contact.d.ts +0 -23
  142. package/lib/Types/Events.d.ts +0 -226
  143. package/lib/Types/GroupMetadata.d.ts +0 -66
  144. package/lib/Types/Label.d.ts +0 -48
  145. package/lib/Types/LabelAssociation.d.ts +0 -35
  146. package/lib/Types/Message.d.ts +0 -484
  147. package/lib/Types/MexUpdates.d.ts +0 -9
  148. package/lib/Types/Newsletter.d.ts +0 -109
  149. package/lib/Types/Product.d.ts +0 -92
  150. package/lib/Types/Signal.d.ts +0 -98
  151. package/lib/Types/Socket.d.ts +0 -141
  152. package/lib/Types/State.d.ts +0 -41
  153. package/lib/Types/USync.d.ts +0 -26
  154. package/lib/Types/index.d.ts +0 -80
  155. package/lib/Utils/auth-utils.d.ts +0 -21
  156. package/lib/Utils/baileys-event-stream.d.ts +0 -18
  157. package/lib/Utils/business.d.ts +0 -29
  158. package/lib/Utils/chat-utils.d.ts +0 -82
  159. package/lib/Utils/crypto.d.ts +0 -56
  160. package/lib/Utils/decode-wa-message.d.ts +0 -53
  161. package/lib/Utils/event-buffer.d.ts +0 -39
  162. package/lib/Utils/generics.d.ts +0 -117
  163. package/lib/Utils/history.d.ts +0 -23
  164. package/lib/Utils/index.d.ts +0 -20
  165. package/lib/Utils/link-preview.d.ts +0 -23
  166. package/lib/Utils/logger.d.ts +0 -13
  167. package/lib/Utils/lt-hash.d.ts +0 -14
  168. package/lib/Utils/make-mutex.d.ts +0 -9
  169. package/lib/Utils/message-retry-manager.d.ts +0 -88
  170. package/lib/Utils/messages-media.d.ts +0 -135
  171. package/lib/Utils/messages.d.ts +0 -105
  172. package/lib/Utils/noise-handler.d.ts +0 -20
  173. package/lib/Utils/process-message.d.ts +0 -49
  174. package/lib/Utils/signal.d.ts +0 -42
  175. package/lib/Utils/use-mongo-file-auth-state.d.ts +0 -6
  176. package/lib/Utils/use-mongo-file-auth-state.js +0 -84
  177. package/lib/Utils/use-multi-file-auth-state.d.ts +0 -13
  178. package/lib/Utils/use-single-file-auth-state.d.ts +0 -13
  179. package/lib/Utils/use-single-file-auth-state.js +0 -80
  180. package/lib/Utils/validate-connection.d.ts +0 -13
  181. package/lib/WABinary/constants.d.ts +0 -30
  182. package/lib/WABinary/decode.d.ts +0 -9
  183. package/lib/WABinary/encode.d.ts +0 -3
  184. package/lib/WABinary/generic-utils.d.ts +0 -28
  185. package/lib/WABinary/index.d.ts +0 -5
  186. package/lib/WABinary/jid-utils.d.ts +0 -58
  187. package/lib/WABinary/types.d.ts +0 -22
  188. package/lib/WAM/BinaryInfo.d.ts +0 -16
  189. package/lib/WAM/constants.d.ts +0 -47
  190. package/lib/WAM/encode.d.ts +0 -3
  191. package/lib/WAM/index.d.ts +0 -3
  192. package/lib/WAUSync/Protocols/USyncBotProfileProtocol.d.ts +0 -28
  193. package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +0 -10
  194. package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +0 -26
  195. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +0 -14
  196. package/lib/WAUSync/Protocols/USyncLIDProtocol.d.ts +0 -10
  197. package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +0 -14
  198. package/lib/WAUSync/Protocols/index.d.ts +0 -6
  199. package/lib/WAUSync/USyncQuery.d.ts +0 -31
  200. package/lib/WAUSync/USyncUser.d.ts +0 -12
  201. package/lib/WAUSync/index.d.ts +0 -3
  202. package/lib/index.d.ts +0 -13
@@ -1,1285 +0,0 @@
1
- import * as $protobuf from "protobufjs";
2
- import Long = require("long");
3
- /** Namespace ServerSync. */
4
- export namespace ServerSync {
5
-
6
- /** Properties of a SyncdPatch. */
7
- interface ISyncdPatch {
8
-
9
- /** SyncdPatch version */
10
- version?: (ServerSync.ISyncdVersion|null);
11
-
12
- /** SyncdPatch mutations */
13
- mutations?: (ServerSync.ISyncdMutation[]|null);
14
-
15
- /** SyncdPatch externalMutations */
16
- externalMutations?: (ServerSync.IExternalBlobReference|null);
17
-
18
- /** SyncdPatch snapshotMac */
19
- snapshotMac?: (Uint8Array|null);
20
-
21
- /** SyncdPatch patchMac */
22
- patchMac?: (Uint8Array|null);
23
-
24
- /** SyncdPatch keyId */
25
- keyId?: (ServerSync.IKeyId|null);
26
-
27
- /** SyncdPatch exitCode */
28
- exitCode?: (ServerSync.IExitCode|null);
29
-
30
- /** SyncdPatch deviceIndex */
31
- deviceIndex?: (number|null);
32
-
33
- /** SyncdPatch clientDebugData */
34
- clientDebugData?: (Uint8Array|null);
35
- }
36
-
37
- /** Represents a SyncdPatch. */
38
- class SyncdPatch implements ISyncdPatch {
39
-
40
- /**
41
- * Constructs a new SyncdPatch.
42
- * @param [properties] Properties to set
43
- */
44
- constructor(properties?: ServerSync.ISyncdPatch);
45
-
46
- /** SyncdPatch version. */
47
- public version?: (ServerSync.ISyncdVersion|null);
48
-
49
- /** SyncdPatch mutations. */
50
- public mutations: ServerSync.ISyncdMutation[];
51
-
52
- /** SyncdPatch externalMutations. */
53
- public externalMutations?: (ServerSync.IExternalBlobReference|null);
54
-
55
- /** SyncdPatch snapshotMac. */
56
- public snapshotMac?: (Uint8Array|null);
57
-
58
- /** SyncdPatch patchMac. */
59
- public patchMac?: (Uint8Array|null);
60
-
61
- /** SyncdPatch keyId. */
62
- public keyId?: (ServerSync.IKeyId|null);
63
-
64
- /** SyncdPatch exitCode. */
65
- public exitCode?: (ServerSync.IExitCode|null);
66
-
67
- /** SyncdPatch deviceIndex. */
68
- public deviceIndex?: (number|null);
69
-
70
- /** SyncdPatch clientDebugData. */
71
- public clientDebugData?: (Uint8Array|null);
72
-
73
- /** SyncdPatch _version. */
74
- public _version?: "version";
75
-
76
- /** SyncdPatch _externalMutations. */
77
- public _externalMutations?: "externalMutations";
78
-
79
- /** SyncdPatch _snapshotMac. */
80
- public _snapshotMac?: "snapshotMac";
81
-
82
- /** SyncdPatch _patchMac. */
83
- public _patchMac?: "patchMac";
84
-
85
- /** SyncdPatch _keyId. */
86
- public _keyId?: "keyId";
87
-
88
- /** SyncdPatch _exitCode. */
89
- public _exitCode?: "exitCode";
90
-
91
- /** SyncdPatch _deviceIndex. */
92
- public _deviceIndex?: "deviceIndex";
93
-
94
- /** SyncdPatch _clientDebugData. */
95
- public _clientDebugData?: "clientDebugData";
96
-
97
- /**
98
- * Creates a new SyncdPatch instance using the specified properties.
99
- * @param [properties] Properties to set
100
- * @returns SyncdPatch instance
101
- */
102
- public static create(properties?: ServerSync.ISyncdPatch): ServerSync.SyncdPatch;
103
-
104
- /**
105
- * Encodes the specified SyncdPatch message. Does not implicitly {@link ServerSync.SyncdPatch.verify|verify} messages.
106
- * @param message SyncdPatch message or plain object to encode
107
- * @param [writer] Writer to encode to
108
- * @returns Writer
109
- */
110
- public static encode(message: ServerSync.ISyncdPatch, writer?: $protobuf.Writer): $protobuf.Writer;
111
-
112
- /**
113
- * Encodes the specified SyncdPatch message, length delimited. Does not implicitly {@link ServerSync.SyncdPatch.verify|verify} messages.
114
- * @param message SyncdPatch message or plain object to encode
115
- * @param [writer] Writer to encode to
116
- * @returns Writer
117
- */
118
- public static encodeDelimited(message: ServerSync.ISyncdPatch, writer?: $protobuf.Writer): $protobuf.Writer;
119
-
120
- /**
121
- * Decodes a SyncdPatch message from the specified reader or buffer.
122
- * @param reader Reader or buffer to decode from
123
- * @param [length] Message length if known beforehand
124
- * @returns SyncdPatch
125
- * @throws {Error} If the payload is not a reader or valid buffer
126
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
127
- */
128
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServerSync.SyncdPatch;
129
-
130
- /**
131
- * Decodes a SyncdPatch message from the specified reader or buffer, length delimited.
132
- * @param reader Reader or buffer to decode from
133
- * @returns SyncdPatch
134
- * @throws {Error} If the payload is not a reader or valid buffer
135
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
136
- */
137
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServerSync.SyncdPatch;
138
-
139
- /**
140
- * Verifies a SyncdPatch message.
141
- * @param message Plain object to verify
142
- * @returns `null` if valid, otherwise the reason why it is not
143
- */
144
- public static verify(message: { [k: string]: any }): (string|null);
145
-
146
- /**
147
- * Creates a SyncdPatch message from a plain object. Also converts values to their respective internal types.
148
- * @param object Plain object
149
- * @returns SyncdPatch
150
- */
151
- public static fromObject(object: { [k: string]: any }): ServerSync.SyncdPatch;
152
-
153
- /**
154
- * Creates a plain object from a SyncdPatch message. Also converts values to other types if specified.
155
- * @param message SyncdPatch
156
- * @param [options] Conversion options
157
- * @returns Plain object
158
- */
159
- public static toObject(message: ServerSync.SyncdPatch, options?: $protobuf.IConversionOptions): { [k: string]: any };
160
-
161
- /**
162
- * Converts this SyncdPatch to JSON.
163
- * @returns JSON object
164
- */
165
- public toJSON(): { [k: string]: any };
166
-
167
- /**
168
- * Gets the default type url for SyncdPatch
169
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
170
- * @returns The default type url
171
- */
172
- public static getTypeUrl(typeUrlPrefix?: string): string;
173
- }
174
-
175
- /** Properties of a SyncdMutation. */
176
- interface ISyncdMutation {
177
-
178
- /** SyncdMutation operation */
179
- operation?: (ServerSync.SyncdMutation.SyncdOperation|null);
180
-
181
- /** SyncdMutation record */
182
- record?: (ServerSync.ISyncdRecord|null);
183
- }
184
-
185
- /** Represents a SyncdMutation. */
186
- class SyncdMutation implements ISyncdMutation {
187
-
188
- /**
189
- * Constructs a new SyncdMutation.
190
- * @param [properties] Properties to set
191
- */
192
- constructor(properties?: ServerSync.ISyncdMutation);
193
-
194
- /** SyncdMutation operation. */
195
- public operation?: (ServerSync.SyncdMutation.SyncdOperation|null);
196
-
197
- /** SyncdMutation record. */
198
- public record?: (ServerSync.ISyncdRecord|null);
199
-
200
- /** SyncdMutation _operation. */
201
- public _operation?: "operation";
202
-
203
- /** SyncdMutation _record. */
204
- public _record?: "record";
205
-
206
- /**
207
- * Creates a new SyncdMutation instance using the specified properties.
208
- * @param [properties] Properties to set
209
- * @returns SyncdMutation instance
210
- */
211
- public static create(properties?: ServerSync.ISyncdMutation): ServerSync.SyncdMutation;
212
-
213
- /**
214
- * Encodes the specified SyncdMutation message. Does not implicitly {@link ServerSync.SyncdMutation.verify|verify} messages.
215
- * @param message SyncdMutation message or plain object to encode
216
- * @param [writer] Writer to encode to
217
- * @returns Writer
218
- */
219
- public static encode(message: ServerSync.ISyncdMutation, writer?: $protobuf.Writer): $protobuf.Writer;
220
-
221
- /**
222
- * Encodes the specified SyncdMutation message, length delimited. Does not implicitly {@link ServerSync.SyncdMutation.verify|verify} messages.
223
- * @param message SyncdMutation message or plain object to encode
224
- * @param [writer] Writer to encode to
225
- * @returns Writer
226
- */
227
- public static encodeDelimited(message: ServerSync.ISyncdMutation, writer?: $protobuf.Writer): $protobuf.Writer;
228
-
229
- /**
230
- * Decodes a SyncdMutation message from the specified reader or buffer.
231
- * @param reader Reader or buffer to decode from
232
- * @param [length] Message length if known beforehand
233
- * @returns SyncdMutation
234
- * @throws {Error} If the payload is not a reader or valid buffer
235
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
236
- */
237
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServerSync.SyncdMutation;
238
-
239
- /**
240
- * Decodes a SyncdMutation message from the specified reader or buffer, length delimited.
241
- * @param reader Reader or buffer to decode from
242
- * @returns SyncdMutation
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)): ServerSync.SyncdMutation;
247
-
248
- /**
249
- * Verifies a SyncdMutation message.
250
- * @param message Plain object to verify
251
- * @returns `null` if valid, otherwise the reason why it is not
252
- */
253
- public static verify(message: { [k: string]: any }): (string|null);
254
-
255
- /**
256
- * Creates a SyncdMutation message from a plain object. Also converts values to their respective internal types.
257
- * @param object Plain object
258
- * @returns SyncdMutation
259
- */
260
- public static fromObject(object: { [k: string]: any }): ServerSync.SyncdMutation;
261
-
262
- /**
263
- * Creates a plain object from a SyncdMutation message. Also converts values to other types if specified.
264
- * @param message SyncdMutation
265
- * @param [options] Conversion options
266
- * @returns Plain object
267
- */
268
- public static toObject(message: ServerSync.SyncdMutation, options?: $protobuf.IConversionOptions): { [k: string]: any };
269
-
270
- /**
271
- * Converts this SyncdMutation to JSON.
272
- * @returns JSON object
273
- */
274
- public toJSON(): { [k: string]: any };
275
-
276
- /**
277
- * Gets the default type url for SyncdMutation
278
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
279
- * @returns The default type url
280
- */
281
- public static getTypeUrl(typeUrlPrefix?: string): string;
282
- }
283
-
284
- namespace SyncdMutation {
285
-
286
- /** SyncdOperation enum. */
287
- enum SyncdOperation {
288
- SET = 0,
289
- REMOVE = 1
290
- }
291
- }
292
-
293
- /** Properties of a SyncdMutations. */
294
- interface ISyncdMutations {
295
-
296
- /** SyncdMutations mutations */
297
- mutations?: (ServerSync.ISyncdMutation[]|null);
298
- }
299
-
300
- /** Represents a SyncdMutations. */
301
- class SyncdMutations implements ISyncdMutations {
302
-
303
- /**
304
- * Constructs a new SyncdMutations.
305
- * @param [properties] Properties to set
306
- */
307
- constructor(properties?: ServerSync.ISyncdMutations);
308
-
309
- /** SyncdMutations mutations. */
310
- public mutations: ServerSync.ISyncdMutation[];
311
-
312
- /**
313
- * Creates a new SyncdMutations instance using the specified properties.
314
- * @param [properties] Properties to set
315
- * @returns SyncdMutations instance
316
- */
317
- public static create(properties?: ServerSync.ISyncdMutations): ServerSync.SyncdMutations;
318
-
319
- /**
320
- * Encodes the specified SyncdMutations message. Does not implicitly {@link ServerSync.SyncdMutations.verify|verify} messages.
321
- * @param message SyncdMutations message or plain object to encode
322
- * @param [writer] Writer to encode to
323
- * @returns Writer
324
- */
325
- public static encode(message: ServerSync.ISyncdMutations, writer?: $protobuf.Writer): $protobuf.Writer;
326
-
327
- /**
328
- * Encodes the specified SyncdMutations message, length delimited. Does not implicitly {@link ServerSync.SyncdMutations.verify|verify} messages.
329
- * @param message SyncdMutations message or plain object to encode
330
- * @param [writer] Writer to encode to
331
- * @returns Writer
332
- */
333
- public static encodeDelimited(message: ServerSync.ISyncdMutations, writer?: $protobuf.Writer): $protobuf.Writer;
334
-
335
- /**
336
- * Decodes a SyncdMutations message from the specified reader or buffer.
337
- * @param reader Reader or buffer to decode from
338
- * @param [length] Message length if known beforehand
339
- * @returns SyncdMutations
340
- * @throws {Error} If the payload is not a reader or valid buffer
341
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
342
- */
343
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServerSync.SyncdMutations;
344
-
345
- /**
346
- * Decodes a SyncdMutations message from the specified reader or buffer, length delimited.
347
- * @param reader Reader or buffer to decode from
348
- * @returns SyncdMutations
349
- * @throws {Error} If the payload is not a reader or valid buffer
350
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
351
- */
352
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServerSync.SyncdMutations;
353
-
354
- /**
355
- * Verifies a SyncdMutations message.
356
- * @param message Plain object to verify
357
- * @returns `null` if valid, otherwise the reason why it is not
358
- */
359
- public static verify(message: { [k: string]: any }): (string|null);
360
-
361
- /**
362
- * Creates a SyncdMutations message from a plain object. Also converts values to their respective internal types.
363
- * @param object Plain object
364
- * @returns SyncdMutations
365
- */
366
- public static fromObject(object: { [k: string]: any }): ServerSync.SyncdMutations;
367
-
368
- /**
369
- * Creates a plain object from a SyncdMutations message. Also converts values to other types if specified.
370
- * @param message SyncdMutations
371
- * @param [options] Conversion options
372
- * @returns Plain object
373
- */
374
- public static toObject(message: ServerSync.SyncdMutations, options?: $protobuf.IConversionOptions): { [k: string]: any };
375
-
376
- /**
377
- * Converts this SyncdMutations to JSON.
378
- * @returns JSON object
379
- */
380
- public toJSON(): { [k: string]: any };
381
-
382
- /**
383
- * Gets the default type url for SyncdMutations
384
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
385
- * @returns The default type url
386
- */
387
- public static getTypeUrl(typeUrlPrefix?: string): string;
388
- }
389
-
390
- /** Properties of a SyncdSnapshot. */
391
- interface ISyncdSnapshot {
392
-
393
- /** SyncdSnapshot version */
394
- version?: (ServerSync.ISyncdVersion|null);
395
-
396
- /** SyncdSnapshot records */
397
- records?: (ServerSync.ISyncdRecord[]|null);
398
-
399
- /** SyncdSnapshot mac */
400
- mac?: (Uint8Array|null);
401
-
402
- /** SyncdSnapshot keyId */
403
- keyId?: (ServerSync.IKeyId|null);
404
- }
405
-
406
- /** Represents a SyncdSnapshot. */
407
- class SyncdSnapshot implements ISyncdSnapshot {
408
-
409
- /**
410
- * Constructs a new SyncdSnapshot.
411
- * @param [properties] Properties to set
412
- */
413
- constructor(properties?: ServerSync.ISyncdSnapshot);
414
-
415
- /** SyncdSnapshot version. */
416
- public version?: (ServerSync.ISyncdVersion|null);
417
-
418
- /** SyncdSnapshot records. */
419
- public records: ServerSync.ISyncdRecord[];
420
-
421
- /** SyncdSnapshot mac. */
422
- public mac?: (Uint8Array|null);
423
-
424
- /** SyncdSnapshot keyId. */
425
- public keyId?: (ServerSync.IKeyId|null);
426
-
427
- /** SyncdSnapshot _version. */
428
- public _version?: "version";
429
-
430
- /** SyncdSnapshot _mac. */
431
- public _mac?: "mac";
432
-
433
- /** SyncdSnapshot _keyId. */
434
- public _keyId?: "keyId";
435
-
436
- /**
437
- * Creates a new SyncdSnapshot instance using the specified properties.
438
- * @param [properties] Properties to set
439
- * @returns SyncdSnapshot instance
440
- */
441
- public static create(properties?: ServerSync.ISyncdSnapshot): ServerSync.SyncdSnapshot;
442
-
443
- /**
444
- * Encodes the specified SyncdSnapshot message. Does not implicitly {@link ServerSync.SyncdSnapshot.verify|verify} messages.
445
- * @param message SyncdSnapshot message or plain object to encode
446
- * @param [writer] Writer to encode to
447
- * @returns Writer
448
- */
449
- public static encode(message: ServerSync.ISyncdSnapshot, writer?: $protobuf.Writer): $protobuf.Writer;
450
-
451
- /**
452
- * Encodes the specified SyncdSnapshot message, length delimited. Does not implicitly {@link ServerSync.SyncdSnapshot.verify|verify} messages.
453
- * @param message SyncdSnapshot message or plain object to encode
454
- * @param [writer] Writer to encode to
455
- * @returns Writer
456
- */
457
- public static encodeDelimited(message: ServerSync.ISyncdSnapshot, writer?: $protobuf.Writer): $protobuf.Writer;
458
-
459
- /**
460
- * Decodes a SyncdSnapshot message from the specified reader or buffer.
461
- * @param reader Reader or buffer to decode from
462
- * @param [length] Message length if known beforehand
463
- * @returns SyncdSnapshot
464
- * @throws {Error} If the payload is not a reader or valid buffer
465
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
466
- */
467
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServerSync.SyncdSnapshot;
468
-
469
- /**
470
- * Decodes a SyncdSnapshot message from the specified reader or buffer, length delimited.
471
- * @param reader Reader or buffer to decode from
472
- * @returns SyncdSnapshot
473
- * @throws {Error} If the payload is not a reader or valid buffer
474
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
475
- */
476
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServerSync.SyncdSnapshot;
477
-
478
- /**
479
- * Verifies a SyncdSnapshot message.
480
- * @param message Plain object to verify
481
- * @returns `null` if valid, otherwise the reason why it is not
482
- */
483
- public static verify(message: { [k: string]: any }): (string|null);
484
-
485
- /**
486
- * Creates a SyncdSnapshot message from a plain object. Also converts values to their respective internal types.
487
- * @param object Plain object
488
- * @returns SyncdSnapshot
489
- */
490
- public static fromObject(object: { [k: string]: any }): ServerSync.SyncdSnapshot;
491
-
492
- /**
493
- * Creates a plain object from a SyncdSnapshot message. Also converts values to other types if specified.
494
- * @param message SyncdSnapshot
495
- * @param [options] Conversion options
496
- * @returns Plain object
497
- */
498
- public static toObject(message: ServerSync.SyncdSnapshot, options?: $protobuf.IConversionOptions): { [k: string]: any };
499
-
500
- /**
501
- * Converts this SyncdSnapshot to JSON.
502
- * @returns JSON object
503
- */
504
- public toJSON(): { [k: string]: any };
505
-
506
- /**
507
- * Gets the default type url for SyncdSnapshot
508
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
509
- * @returns The default type url
510
- */
511
- public static getTypeUrl(typeUrlPrefix?: string): string;
512
- }
513
-
514
- /** Properties of an ExternalBlobReference. */
515
- interface IExternalBlobReference {
516
-
517
- /** ExternalBlobReference mediaKey */
518
- mediaKey?: (Uint8Array|null);
519
-
520
- /** ExternalBlobReference directPath */
521
- directPath?: (string|null);
522
-
523
- /** ExternalBlobReference handle */
524
- handle?: (string|null);
525
-
526
- /** ExternalBlobReference fileSizeBytes */
527
- fileSizeBytes?: (number|Long|null);
528
-
529
- /** ExternalBlobReference fileSha256 */
530
- fileSha256?: (Uint8Array|null);
531
-
532
- /** ExternalBlobReference fileEncSha256 */
533
- fileEncSha256?: (Uint8Array|null);
534
- }
535
-
536
- /** Represents an ExternalBlobReference. */
537
- class ExternalBlobReference implements IExternalBlobReference {
538
-
539
- /**
540
- * Constructs a new ExternalBlobReference.
541
- * @param [properties] Properties to set
542
- */
543
- constructor(properties?: ServerSync.IExternalBlobReference);
544
-
545
- /** ExternalBlobReference mediaKey. */
546
- public mediaKey?: (Uint8Array|null);
547
-
548
- /** ExternalBlobReference directPath. */
549
- public directPath?: (string|null);
550
-
551
- /** ExternalBlobReference handle. */
552
- public handle?: (string|null);
553
-
554
- /** ExternalBlobReference fileSizeBytes. */
555
- public fileSizeBytes?: (number|Long|null);
556
-
557
- /** ExternalBlobReference fileSha256. */
558
- public fileSha256?: (Uint8Array|null);
559
-
560
- /** ExternalBlobReference fileEncSha256. */
561
- public fileEncSha256?: (Uint8Array|null);
562
-
563
- /** ExternalBlobReference _mediaKey. */
564
- public _mediaKey?: "mediaKey";
565
-
566
- /** ExternalBlobReference _directPath. */
567
- public _directPath?: "directPath";
568
-
569
- /** ExternalBlobReference _handle. */
570
- public _handle?: "handle";
571
-
572
- /** ExternalBlobReference _fileSizeBytes. */
573
- public _fileSizeBytes?: "fileSizeBytes";
574
-
575
- /** ExternalBlobReference _fileSha256. */
576
- public _fileSha256?: "fileSha256";
577
-
578
- /** ExternalBlobReference _fileEncSha256. */
579
- public _fileEncSha256?: "fileEncSha256";
580
-
581
- /**
582
- * Creates a new ExternalBlobReference instance using the specified properties.
583
- * @param [properties] Properties to set
584
- * @returns ExternalBlobReference instance
585
- */
586
- public static create(properties?: ServerSync.IExternalBlobReference): ServerSync.ExternalBlobReference;
587
-
588
- /**
589
- * Encodes the specified ExternalBlobReference message. Does not implicitly {@link ServerSync.ExternalBlobReference.verify|verify} messages.
590
- * @param message ExternalBlobReference message or plain object to encode
591
- * @param [writer] Writer to encode to
592
- * @returns Writer
593
- */
594
- public static encode(message: ServerSync.IExternalBlobReference, writer?: $protobuf.Writer): $protobuf.Writer;
595
-
596
- /**
597
- * Encodes the specified ExternalBlobReference message, length delimited. Does not implicitly {@link ServerSync.ExternalBlobReference.verify|verify} messages.
598
- * @param message ExternalBlobReference message or plain object to encode
599
- * @param [writer] Writer to encode to
600
- * @returns Writer
601
- */
602
- public static encodeDelimited(message: ServerSync.IExternalBlobReference, writer?: $protobuf.Writer): $protobuf.Writer;
603
-
604
- /**
605
- * Decodes an ExternalBlobReference message from the specified reader or buffer.
606
- * @param reader Reader or buffer to decode from
607
- * @param [length] Message length if known beforehand
608
- * @returns ExternalBlobReference
609
- * @throws {Error} If the payload is not a reader or valid buffer
610
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
611
- */
612
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServerSync.ExternalBlobReference;
613
-
614
- /**
615
- * Decodes an ExternalBlobReference message from the specified reader or buffer, length delimited.
616
- * @param reader Reader or buffer to decode from
617
- * @returns ExternalBlobReference
618
- * @throws {Error} If the payload is not a reader or valid buffer
619
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
620
- */
621
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServerSync.ExternalBlobReference;
622
-
623
- /**
624
- * Verifies an ExternalBlobReference message.
625
- * @param message Plain object to verify
626
- * @returns `null` if valid, otherwise the reason why it is not
627
- */
628
- public static verify(message: { [k: string]: any }): (string|null);
629
-
630
- /**
631
- * Creates an ExternalBlobReference message from a plain object. Also converts values to their respective internal types.
632
- * @param object Plain object
633
- * @returns ExternalBlobReference
634
- */
635
- public static fromObject(object: { [k: string]: any }): ServerSync.ExternalBlobReference;
636
-
637
- /**
638
- * Creates a plain object from an ExternalBlobReference message. Also converts values to other types if specified.
639
- * @param message ExternalBlobReference
640
- * @param [options] Conversion options
641
- * @returns Plain object
642
- */
643
- public static toObject(message: ServerSync.ExternalBlobReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
644
-
645
- /**
646
- * Converts this ExternalBlobReference to JSON.
647
- * @returns JSON object
648
- */
649
- public toJSON(): { [k: string]: any };
650
-
651
- /**
652
- * Gets the default type url for ExternalBlobReference
653
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
654
- * @returns The default type url
655
- */
656
- public static getTypeUrl(typeUrlPrefix?: string): string;
657
- }
658
-
659
- /** Properties of a SyncdRecord. */
660
- interface ISyncdRecord {
661
-
662
- /** SyncdRecord index */
663
- index?: (ServerSync.ISyncdIndex|null);
664
-
665
- /** SyncdRecord value */
666
- value?: (ServerSync.ISyncdValue|null);
667
-
668
- /** SyncdRecord keyId */
669
- keyId?: (ServerSync.IKeyId|null);
670
- }
671
-
672
- /** Represents a SyncdRecord. */
673
- class SyncdRecord implements ISyncdRecord {
674
-
675
- /**
676
- * Constructs a new SyncdRecord.
677
- * @param [properties] Properties to set
678
- */
679
- constructor(properties?: ServerSync.ISyncdRecord);
680
-
681
- /** SyncdRecord index. */
682
- public index?: (ServerSync.ISyncdIndex|null);
683
-
684
- /** SyncdRecord value. */
685
- public value?: (ServerSync.ISyncdValue|null);
686
-
687
- /** SyncdRecord keyId. */
688
- public keyId?: (ServerSync.IKeyId|null);
689
-
690
- /** SyncdRecord _index. */
691
- public _index?: "index";
692
-
693
- /** SyncdRecord _value. */
694
- public _value?: "value";
695
-
696
- /** SyncdRecord _keyId. */
697
- public _keyId?: "keyId";
698
-
699
- /**
700
- * Creates a new SyncdRecord instance using the specified properties.
701
- * @param [properties] Properties to set
702
- * @returns SyncdRecord instance
703
- */
704
- public static create(properties?: ServerSync.ISyncdRecord): ServerSync.SyncdRecord;
705
-
706
- /**
707
- * Encodes the specified SyncdRecord message. Does not implicitly {@link ServerSync.SyncdRecord.verify|verify} messages.
708
- * @param message SyncdRecord message or plain object to encode
709
- * @param [writer] Writer to encode to
710
- * @returns Writer
711
- */
712
- public static encode(message: ServerSync.ISyncdRecord, writer?: $protobuf.Writer): $protobuf.Writer;
713
-
714
- /**
715
- * Encodes the specified SyncdRecord message, length delimited. Does not implicitly {@link ServerSync.SyncdRecord.verify|verify} messages.
716
- * @param message SyncdRecord message or plain object to encode
717
- * @param [writer] Writer to encode to
718
- * @returns Writer
719
- */
720
- public static encodeDelimited(message: ServerSync.ISyncdRecord, writer?: $protobuf.Writer): $protobuf.Writer;
721
-
722
- /**
723
- * Decodes a SyncdRecord message from the specified reader or buffer.
724
- * @param reader Reader or buffer to decode from
725
- * @param [length] Message length if known beforehand
726
- * @returns SyncdRecord
727
- * @throws {Error} If the payload is not a reader or valid buffer
728
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
729
- */
730
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServerSync.SyncdRecord;
731
-
732
- /**
733
- * Decodes a SyncdRecord message from the specified reader or buffer, length delimited.
734
- * @param reader Reader or buffer to decode from
735
- * @returns SyncdRecord
736
- * @throws {Error} If the payload is not a reader or valid buffer
737
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
738
- */
739
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServerSync.SyncdRecord;
740
-
741
- /**
742
- * Verifies a SyncdRecord message.
743
- * @param message Plain object to verify
744
- * @returns `null` if valid, otherwise the reason why it is not
745
- */
746
- public static verify(message: { [k: string]: any }): (string|null);
747
-
748
- /**
749
- * Creates a SyncdRecord message from a plain object. Also converts values to their respective internal types.
750
- * @param object Plain object
751
- * @returns SyncdRecord
752
- */
753
- public static fromObject(object: { [k: string]: any }): ServerSync.SyncdRecord;
754
-
755
- /**
756
- * Creates a plain object from a SyncdRecord message. Also converts values to other types if specified.
757
- * @param message SyncdRecord
758
- * @param [options] Conversion options
759
- * @returns Plain object
760
- */
761
- public static toObject(message: ServerSync.SyncdRecord, options?: $protobuf.IConversionOptions): { [k: string]: any };
762
-
763
- /**
764
- * Converts this SyncdRecord to JSON.
765
- * @returns JSON object
766
- */
767
- public toJSON(): { [k: string]: any };
768
-
769
- /**
770
- * Gets the default type url for SyncdRecord
771
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
772
- * @returns The default type url
773
- */
774
- public static getTypeUrl(typeUrlPrefix?: string): string;
775
- }
776
-
777
- /** Properties of a KeyId. */
778
- interface IKeyId {
779
-
780
- /** KeyId id */
781
- id?: (Uint8Array|null);
782
- }
783
-
784
- /** Represents a KeyId. */
785
- class KeyId implements IKeyId {
786
-
787
- /**
788
- * Constructs a new KeyId.
789
- * @param [properties] Properties to set
790
- */
791
- constructor(properties?: ServerSync.IKeyId);
792
-
793
- /** KeyId id. */
794
- public id?: (Uint8Array|null);
795
-
796
- /** KeyId _id. */
797
- public _id?: "id";
798
-
799
- /**
800
- * Creates a new KeyId instance using the specified properties.
801
- * @param [properties] Properties to set
802
- * @returns KeyId instance
803
- */
804
- public static create(properties?: ServerSync.IKeyId): ServerSync.KeyId;
805
-
806
- /**
807
- * Encodes the specified KeyId message. Does not implicitly {@link ServerSync.KeyId.verify|verify} messages.
808
- * @param message KeyId message or plain object to encode
809
- * @param [writer] Writer to encode to
810
- * @returns Writer
811
- */
812
- public static encode(message: ServerSync.IKeyId, writer?: $protobuf.Writer): $protobuf.Writer;
813
-
814
- /**
815
- * Encodes the specified KeyId message, length delimited. Does not implicitly {@link ServerSync.KeyId.verify|verify} messages.
816
- * @param message KeyId message or plain object to encode
817
- * @param [writer] Writer to encode to
818
- * @returns Writer
819
- */
820
- public static encodeDelimited(message: ServerSync.IKeyId, writer?: $protobuf.Writer): $protobuf.Writer;
821
-
822
- /**
823
- * Decodes a KeyId message from the specified reader or buffer.
824
- * @param reader Reader or buffer to decode from
825
- * @param [length] Message length if known beforehand
826
- * @returns KeyId
827
- * @throws {Error} If the payload is not a reader or valid buffer
828
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
829
- */
830
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServerSync.KeyId;
831
-
832
- /**
833
- * Decodes a KeyId message from the specified reader or buffer, length delimited.
834
- * @param reader Reader or buffer to decode from
835
- * @returns KeyId
836
- * @throws {Error} If the payload is not a reader or valid buffer
837
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
838
- */
839
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServerSync.KeyId;
840
-
841
- /**
842
- * Verifies a KeyId message.
843
- * @param message Plain object to verify
844
- * @returns `null` if valid, otherwise the reason why it is not
845
- */
846
- public static verify(message: { [k: string]: any }): (string|null);
847
-
848
- /**
849
- * Creates a KeyId message from a plain object. Also converts values to their respective internal types.
850
- * @param object Plain object
851
- * @returns KeyId
852
- */
853
- public static fromObject(object: { [k: string]: any }): ServerSync.KeyId;
854
-
855
- /**
856
- * Creates a plain object from a KeyId message. Also converts values to other types if specified.
857
- * @param message KeyId
858
- * @param [options] Conversion options
859
- * @returns Plain object
860
- */
861
- public static toObject(message: ServerSync.KeyId, options?: $protobuf.IConversionOptions): { [k: string]: any };
862
-
863
- /**
864
- * Converts this KeyId to JSON.
865
- * @returns JSON object
866
- */
867
- public toJSON(): { [k: string]: any };
868
-
869
- /**
870
- * Gets the default type url for KeyId
871
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
872
- * @returns The default type url
873
- */
874
- public static getTypeUrl(typeUrlPrefix?: string): string;
875
- }
876
-
877
- /** Properties of a SyncdValue. */
878
- interface ISyncdValue {
879
-
880
- /** SyncdValue blob */
881
- blob?: (Uint8Array|null);
882
- }
883
-
884
- /** Represents a SyncdValue. */
885
- class SyncdValue implements ISyncdValue {
886
-
887
- /**
888
- * Constructs a new SyncdValue.
889
- * @param [properties] Properties to set
890
- */
891
- constructor(properties?: ServerSync.ISyncdValue);
892
-
893
- /** SyncdValue blob. */
894
- public blob?: (Uint8Array|null);
895
-
896
- /** SyncdValue _blob. */
897
- public _blob?: "blob";
898
-
899
- /**
900
- * Creates a new SyncdValue instance using the specified properties.
901
- * @param [properties] Properties to set
902
- * @returns SyncdValue instance
903
- */
904
- public static create(properties?: ServerSync.ISyncdValue): ServerSync.SyncdValue;
905
-
906
- /**
907
- * Encodes the specified SyncdValue message. Does not implicitly {@link ServerSync.SyncdValue.verify|verify} messages.
908
- * @param message SyncdValue message or plain object to encode
909
- * @param [writer] Writer to encode to
910
- * @returns Writer
911
- */
912
- public static encode(message: ServerSync.ISyncdValue, writer?: $protobuf.Writer): $protobuf.Writer;
913
-
914
- /**
915
- * Encodes the specified SyncdValue message, length delimited. Does not implicitly {@link ServerSync.SyncdValue.verify|verify} messages.
916
- * @param message SyncdValue message or plain object to encode
917
- * @param [writer] Writer to encode to
918
- * @returns Writer
919
- */
920
- public static encodeDelimited(message: ServerSync.ISyncdValue, writer?: $protobuf.Writer): $protobuf.Writer;
921
-
922
- /**
923
- * Decodes a SyncdValue message from the specified reader or buffer.
924
- * @param reader Reader or buffer to decode from
925
- * @param [length] Message length if known beforehand
926
- * @returns SyncdValue
927
- * @throws {Error} If the payload is not a reader or valid buffer
928
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
929
- */
930
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServerSync.SyncdValue;
931
-
932
- /**
933
- * Decodes a SyncdValue message from the specified reader or buffer, length delimited.
934
- * @param reader Reader or buffer to decode from
935
- * @returns SyncdValue
936
- * @throws {Error} If the payload is not a reader or valid buffer
937
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
938
- */
939
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServerSync.SyncdValue;
940
-
941
- /**
942
- * Verifies a SyncdValue message.
943
- * @param message Plain object to verify
944
- * @returns `null` if valid, otherwise the reason why it is not
945
- */
946
- public static verify(message: { [k: string]: any }): (string|null);
947
-
948
- /**
949
- * Creates a SyncdValue message from a plain object. Also converts values to their respective internal types.
950
- * @param object Plain object
951
- * @returns SyncdValue
952
- */
953
- public static fromObject(object: { [k: string]: any }): ServerSync.SyncdValue;
954
-
955
- /**
956
- * Creates a plain object from a SyncdValue message. Also converts values to other types if specified.
957
- * @param message SyncdValue
958
- * @param [options] Conversion options
959
- * @returns Plain object
960
- */
961
- public static toObject(message: ServerSync.SyncdValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
962
-
963
- /**
964
- * Converts this SyncdValue to JSON.
965
- * @returns JSON object
966
- */
967
- public toJSON(): { [k: string]: any };
968
-
969
- /**
970
- * Gets the default type url for SyncdValue
971
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
972
- * @returns The default type url
973
- */
974
- public static getTypeUrl(typeUrlPrefix?: string): string;
975
- }
976
-
977
- /** Properties of a SyncdIndex. */
978
- interface ISyncdIndex {
979
-
980
- /** SyncdIndex blob */
981
- blob?: (Uint8Array|null);
982
- }
983
-
984
- /** Represents a SyncdIndex. */
985
- class SyncdIndex implements ISyncdIndex {
986
-
987
- /**
988
- * Constructs a new SyncdIndex.
989
- * @param [properties] Properties to set
990
- */
991
- constructor(properties?: ServerSync.ISyncdIndex);
992
-
993
- /** SyncdIndex blob. */
994
- public blob?: (Uint8Array|null);
995
-
996
- /** SyncdIndex _blob. */
997
- public _blob?: "blob";
998
-
999
- /**
1000
- * Creates a new SyncdIndex instance using the specified properties.
1001
- * @param [properties] Properties to set
1002
- * @returns SyncdIndex instance
1003
- */
1004
- public static create(properties?: ServerSync.ISyncdIndex): ServerSync.SyncdIndex;
1005
-
1006
- /**
1007
- * Encodes the specified SyncdIndex message. Does not implicitly {@link ServerSync.SyncdIndex.verify|verify} messages.
1008
- * @param message SyncdIndex message or plain object to encode
1009
- * @param [writer] Writer to encode to
1010
- * @returns Writer
1011
- */
1012
- public static encode(message: ServerSync.ISyncdIndex, writer?: $protobuf.Writer): $protobuf.Writer;
1013
-
1014
- /**
1015
- * Encodes the specified SyncdIndex message, length delimited. Does not implicitly {@link ServerSync.SyncdIndex.verify|verify} messages.
1016
- * @param message SyncdIndex message or plain object to encode
1017
- * @param [writer] Writer to encode to
1018
- * @returns Writer
1019
- */
1020
- public static encodeDelimited(message: ServerSync.ISyncdIndex, writer?: $protobuf.Writer): $protobuf.Writer;
1021
-
1022
- /**
1023
- * Decodes a SyncdIndex message from the specified reader or buffer.
1024
- * @param reader Reader or buffer to decode from
1025
- * @param [length] Message length if known beforehand
1026
- * @returns SyncdIndex
1027
- * @throws {Error} If the payload is not a reader or valid buffer
1028
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1029
- */
1030
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServerSync.SyncdIndex;
1031
-
1032
- /**
1033
- * Decodes a SyncdIndex message from the specified reader or buffer, length delimited.
1034
- * @param reader Reader or buffer to decode from
1035
- * @returns SyncdIndex
1036
- * @throws {Error} If the payload is not a reader or valid buffer
1037
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1038
- */
1039
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServerSync.SyncdIndex;
1040
-
1041
- /**
1042
- * Verifies a SyncdIndex message.
1043
- * @param message Plain object to verify
1044
- * @returns `null` if valid, otherwise the reason why it is not
1045
- */
1046
- public static verify(message: { [k: string]: any }): (string|null);
1047
-
1048
- /**
1049
- * Creates a SyncdIndex message from a plain object. Also converts values to their respective internal types.
1050
- * @param object Plain object
1051
- * @returns SyncdIndex
1052
- */
1053
- public static fromObject(object: { [k: string]: any }): ServerSync.SyncdIndex;
1054
-
1055
- /**
1056
- * Creates a plain object from a SyncdIndex message. Also converts values to other types if specified.
1057
- * @param message SyncdIndex
1058
- * @param [options] Conversion options
1059
- * @returns Plain object
1060
- */
1061
- public static toObject(message: ServerSync.SyncdIndex, options?: $protobuf.IConversionOptions): { [k: string]: any };
1062
-
1063
- /**
1064
- * Converts this SyncdIndex to JSON.
1065
- * @returns JSON object
1066
- */
1067
- public toJSON(): { [k: string]: any };
1068
-
1069
- /**
1070
- * Gets the default type url for SyncdIndex
1071
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1072
- * @returns The default type url
1073
- */
1074
- public static getTypeUrl(typeUrlPrefix?: string): string;
1075
- }
1076
-
1077
- /** Properties of an ExitCode. */
1078
- interface IExitCode {
1079
-
1080
- /** ExitCode code */
1081
- code?: (number|Long|null);
1082
-
1083
- /** ExitCode text */
1084
- text?: (string|null);
1085
- }
1086
-
1087
- /** Represents an ExitCode. */
1088
- class ExitCode implements IExitCode {
1089
-
1090
- /**
1091
- * Constructs a new ExitCode.
1092
- * @param [properties] Properties to set
1093
- */
1094
- constructor(properties?: ServerSync.IExitCode);
1095
-
1096
- /** ExitCode code. */
1097
- public code?: (number|Long|null);
1098
-
1099
- /** ExitCode text. */
1100
- public text?: (string|null);
1101
-
1102
- /** ExitCode _code. */
1103
- public _code?: "code";
1104
-
1105
- /** ExitCode _text. */
1106
- public _text?: "text";
1107
-
1108
- /**
1109
- * Creates a new ExitCode instance using the specified properties.
1110
- * @param [properties] Properties to set
1111
- * @returns ExitCode instance
1112
- */
1113
- public static create(properties?: ServerSync.IExitCode): ServerSync.ExitCode;
1114
-
1115
- /**
1116
- * Encodes the specified ExitCode message. Does not implicitly {@link ServerSync.ExitCode.verify|verify} messages.
1117
- * @param message ExitCode message or plain object to encode
1118
- * @param [writer] Writer to encode to
1119
- * @returns Writer
1120
- */
1121
- public static encode(message: ServerSync.IExitCode, writer?: $protobuf.Writer): $protobuf.Writer;
1122
-
1123
- /**
1124
- * Encodes the specified ExitCode message, length delimited. Does not implicitly {@link ServerSync.ExitCode.verify|verify} messages.
1125
- * @param message ExitCode message or plain object to encode
1126
- * @param [writer] Writer to encode to
1127
- * @returns Writer
1128
- */
1129
- public static encodeDelimited(message: ServerSync.IExitCode, writer?: $protobuf.Writer): $protobuf.Writer;
1130
-
1131
- /**
1132
- * Decodes an ExitCode message from the specified reader or buffer.
1133
- * @param reader Reader or buffer to decode from
1134
- * @param [length] Message length if known beforehand
1135
- * @returns ExitCode
1136
- * @throws {Error} If the payload is not a reader or valid buffer
1137
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1138
- */
1139
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServerSync.ExitCode;
1140
-
1141
- /**
1142
- * Decodes an ExitCode message from the specified reader or buffer, length delimited.
1143
- * @param reader Reader or buffer to decode from
1144
- * @returns ExitCode
1145
- * @throws {Error} If the payload is not a reader or valid buffer
1146
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1147
- */
1148
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServerSync.ExitCode;
1149
-
1150
- /**
1151
- * Verifies an ExitCode message.
1152
- * @param message Plain object to verify
1153
- * @returns `null` if valid, otherwise the reason why it is not
1154
- */
1155
- public static verify(message: { [k: string]: any }): (string|null);
1156
-
1157
- /**
1158
- * Creates an ExitCode message from a plain object. Also converts values to their respective internal types.
1159
- * @param object Plain object
1160
- * @returns ExitCode
1161
- */
1162
- public static fromObject(object: { [k: string]: any }): ServerSync.ExitCode;
1163
-
1164
- /**
1165
- * Creates a plain object from an ExitCode message. Also converts values to other types if specified.
1166
- * @param message ExitCode
1167
- * @param [options] Conversion options
1168
- * @returns Plain object
1169
- */
1170
- public static toObject(message: ServerSync.ExitCode, options?: $protobuf.IConversionOptions): { [k: string]: any };
1171
-
1172
- /**
1173
- * Converts this ExitCode to JSON.
1174
- * @returns JSON object
1175
- */
1176
- public toJSON(): { [k: string]: any };
1177
-
1178
- /**
1179
- * Gets the default type url for ExitCode
1180
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1181
- * @returns The default type url
1182
- */
1183
- public static getTypeUrl(typeUrlPrefix?: string): string;
1184
- }
1185
-
1186
- /** Properties of a SyncdVersion. */
1187
- interface ISyncdVersion {
1188
-
1189
- /** SyncdVersion version */
1190
- version?: (number|Long|null);
1191
- }
1192
-
1193
- /** Represents a SyncdVersion. */
1194
- class SyncdVersion implements ISyncdVersion {
1195
-
1196
- /**
1197
- * Constructs a new SyncdVersion.
1198
- * @param [properties] Properties to set
1199
- */
1200
- constructor(properties?: ServerSync.ISyncdVersion);
1201
-
1202
- /** SyncdVersion version. */
1203
- public version?: (number|Long|null);
1204
-
1205
- /** SyncdVersion _version. */
1206
- public _version?: "version";
1207
-
1208
- /**
1209
- * Creates a new SyncdVersion instance using the specified properties.
1210
- * @param [properties] Properties to set
1211
- * @returns SyncdVersion instance
1212
- */
1213
- public static create(properties?: ServerSync.ISyncdVersion): ServerSync.SyncdVersion;
1214
-
1215
- /**
1216
- * Encodes the specified SyncdVersion message. Does not implicitly {@link ServerSync.SyncdVersion.verify|verify} messages.
1217
- * @param message SyncdVersion message or plain object to encode
1218
- * @param [writer] Writer to encode to
1219
- * @returns Writer
1220
- */
1221
- public static encode(message: ServerSync.ISyncdVersion, writer?: $protobuf.Writer): $protobuf.Writer;
1222
-
1223
- /**
1224
- * Encodes the specified SyncdVersion message, length delimited. Does not implicitly {@link ServerSync.SyncdVersion.verify|verify} messages.
1225
- * @param message SyncdVersion message or plain object to encode
1226
- * @param [writer] Writer to encode to
1227
- * @returns Writer
1228
- */
1229
- public static encodeDelimited(message: ServerSync.ISyncdVersion, writer?: $protobuf.Writer): $protobuf.Writer;
1230
-
1231
- /**
1232
- * Decodes a SyncdVersion message from the specified reader or buffer.
1233
- * @param reader Reader or buffer to decode from
1234
- * @param [length] Message length if known beforehand
1235
- * @returns SyncdVersion
1236
- * @throws {Error} If the payload is not a reader or valid buffer
1237
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1238
- */
1239
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServerSync.SyncdVersion;
1240
-
1241
- /**
1242
- * Decodes a SyncdVersion message from the specified reader or buffer, length delimited.
1243
- * @param reader Reader or buffer to decode from
1244
- * @returns SyncdVersion
1245
- * @throws {Error} If the payload is not a reader or valid buffer
1246
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1247
- */
1248
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServerSync.SyncdVersion;
1249
-
1250
- /**
1251
- * Verifies a SyncdVersion message.
1252
- * @param message Plain object to verify
1253
- * @returns `null` if valid, otherwise the reason why it is not
1254
- */
1255
- public static verify(message: { [k: string]: any }): (string|null);
1256
-
1257
- /**
1258
- * Creates a SyncdVersion message from a plain object. Also converts values to their respective internal types.
1259
- * @param object Plain object
1260
- * @returns SyncdVersion
1261
- */
1262
- public static fromObject(object: { [k: string]: any }): ServerSync.SyncdVersion;
1263
-
1264
- /**
1265
- * Creates a plain object from a SyncdVersion message. Also converts values to other types if specified.
1266
- * @param message SyncdVersion
1267
- * @param [options] Conversion options
1268
- * @returns Plain object
1269
- */
1270
- public static toObject(message: ServerSync.SyncdVersion, options?: $protobuf.IConversionOptions): { [k: string]: any };
1271
-
1272
- /**
1273
- * Converts this SyncdVersion to JSON.
1274
- * @returns JSON object
1275
- */
1276
- public toJSON(): { [k: string]: any };
1277
-
1278
- /**
1279
- * Gets the default type url for SyncdVersion
1280
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1281
- * @returns The default type url
1282
- */
1283
- public static getTypeUrl(typeUrlPrefix?: string): string;
1284
- }
1285
- }