dcodeindra-baileyspro 2.3.9

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