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,518 @@
1
+ import * as $protobuf from "protobufjs";
2
+ import Long = require("long");
3
+ /** Namespace Adv. */
4
+ export namespace Adv {
5
+ /** Properties of a ADVSignedDeviceIdentityHMAC. */
6
+ interface IADVSignedDeviceIdentityHMAC {
7
+ /** ADVSignedDeviceIdentityHMAC details */
8
+ details?: (Uint8Array|null);
9
+ /** ADVSignedDeviceIdentityHMAC hmac */
10
+ hmac?: (Uint8Array|null);
11
+ /** ADVSignedDeviceIdentityHMAC accountType */
12
+ accountType?: (Adv.ADVEncryptionType|null);
13
+ }
14
+ /** Represents a ADVSignedDeviceIdentityHMAC. */
15
+ class ADVSignedDeviceIdentityHMAC implements IADVSignedDeviceIdentityHMAC {
16
+ /**
17
+ * Constructs a new ADVSignedDeviceIdentityHMAC.
18
+ * @param [properties] Properties to set
19
+ */
20
+ constructor(properties?: Adv.IADVSignedDeviceIdentityHMAC);
21
+ /** ADVSignedDeviceIdentityHMAC details. */
22
+ public details?: (Uint8Array|null);
23
+ /** ADVSignedDeviceIdentityHMAC hmac. */
24
+ public hmac?: (Uint8Array|null);
25
+ /** ADVSignedDeviceIdentityHMAC accountType. */
26
+ public accountType?: (Adv.ADVEncryptionType|null);
27
+ /** ADVSignedDeviceIdentityHMAC _details. */
28
+ public _details?: "details";
29
+ /** ADVSignedDeviceIdentityHMAC _hmac. */
30
+ public _hmac?: "hmac";
31
+ /** ADVSignedDeviceIdentityHMAC _accountType. */
32
+ public _accountType?: "accountType";
33
+ /**
34
+ * Creates a new ADVSignedDeviceIdentityHMAC instance using the specified properties.
35
+ * @param [properties] Properties to set
36
+ * @returns ADVSignedDeviceIdentityHMAC instance
37
+ */
38
+ public static create(properties?: Adv.IADVSignedDeviceIdentityHMAC): Adv.ADVSignedDeviceIdentityHMAC;
39
+ /**
40
+ * Encodes the specified ADVSignedDeviceIdentityHMAC message. Does not implicitly {@link Adv.ADVSignedDeviceIdentityHMAC.verify|verify} messages.
41
+ * @param message ADVSignedDeviceIdentityHMAC message or plain object to encode
42
+ * @param [writer] Writer to encode to
43
+ * @returns Writer
44
+ */
45
+ public static encode(message: Adv.IADVSignedDeviceIdentityHMAC, writer?: $protobuf.Writer): $protobuf.Writer;
46
+ /**
47
+ * Encodes the specified ADVSignedDeviceIdentityHMAC message, length delimited. Does not implicitly {@link Adv.ADVSignedDeviceIdentityHMAC.verify|verify} messages.
48
+ * @param message ADVSignedDeviceIdentityHMAC message or plain object to encode
49
+ * @param [writer] Writer to encode to
50
+ * @returns Writer
51
+ */
52
+ public static encodeDelimited(message: Adv.IADVSignedDeviceIdentityHMAC, writer?: $protobuf.Writer): $protobuf.Writer;
53
+ /**
54
+ * Decodes a ADVSignedDeviceIdentityHMAC message from the specified reader or buffer.
55
+ * @param reader Reader or buffer to decode from
56
+ * @param [length] Message length if known beforehand
57
+ * @returns ADVSignedDeviceIdentityHMAC
58
+ * @throws {Error} If the payload is not a reader or valid buffer
59
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60
+ */
61
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Adv.ADVSignedDeviceIdentityHMAC;
62
+ /**
63
+ * Decodes a ADVSignedDeviceIdentityHMAC message from the specified reader or buffer, length delimited.
64
+ * @param reader Reader or buffer to decode from
65
+ * @returns ADVSignedDeviceIdentityHMAC
66
+ * @throws {Error} If the payload is not a reader or valid buffer
67
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
68
+ */
69
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Adv.ADVSignedDeviceIdentityHMAC;
70
+ /**
71
+ * Verifies a ADVSignedDeviceIdentityHMAC message.
72
+ * @param message Plain object to verify
73
+ * @returns `null` if valid, otherwise the reason why it is not
74
+ */
75
+ public static verify(message: { [k: string]: any }): (string|null);
76
+ /**
77
+ * Creates a ADVSignedDeviceIdentityHMAC message from a plain object. Also converts values to their respective internal types.
78
+ * @param object Plain object
79
+ * @returns ADVSignedDeviceIdentityHMAC
80
+ */
81
+ public static fromObject(object: { [k: string]: any }): Adv.ADVSignedDeviceIdentityHMAC;
82
+ /**
83
+ * Creates a plain object from a ADVSignedDeviceIdentityHMAC message. Also converts values to other types if specified.
84
+ * @param message ADVSignedDeviceIdentityHMAC
85
+ * @param [options] Conversion options
86
+ * @returns Plain object
87
+ */
88
+ public static toObject(message: Adv.ADVSignedDeviceIdentityHMAC, options?: $protobuf.IConversionOptions): { [k: string]: any };
89
+ /**
90
+ * Converts this ADVSignedDeviceIdentityHMAC to JSON.
91
+ * @returns JSON object
92
+ */
93
+ public toJSON(): { [k: string]: any };
94
+ /**
95
+ * Gets the default type url for ADVSignedDeviceIdentityHMAC
96
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
97
+ * @returns The default type url
98
+ */
99
+ public static getTypeUrl(typeUrlPrefix?: string): string;
100
+ }
101
+ /** Properties of a ADVSignedDeviceIdentity. */
102
+ interface IADVSignedDeviceIdentity {
103
+ /** ADVSignedDeviceIdentity details */
104
+ details?: (Uint8Array|null);
105
+ /** ADVSignedDeviceIdentity accountSignatureKey */
106
+ accountSignatureKey?: (Uint8Array|null);
107
+ /** ADVSignedDeviceIdentity accountSignature */
108
+ accountSignature?: (Uint8Array|null);
109
+ /** ADVSignedDeviceIdentity deviceSignature */
110
+ deviceSignature?: (Uint8Array|null);
111
+ }
112
+ /** Represents a ADVSignedDeviceIdentity. */
113
+ class ADVSignedDeviceIdentity implements IADVSignedDeviceIdentity {
114
+ /**
115
+ * Constructs a new ADVSignedDeviceIdentity.
116
+ * @param [properties] Properties to set
117
+ */
118
+ constructor(properties?: Adv.IADVSignedDeviceIdentity);
119
+ /** ADVSignedDeviceIdentity details. */
120
+ public details?: (Uint8Array|null);
121
+ /** ADVSignedDeviceIdentity accountSignatureKey. */
122
+ public accountSignatureKey?: (Uint8Array|null);
123
+ /** ADVSignedDeviceIdentity accountSignature. */
124
+ public accountSignature?: (Uint8Array|null);
125
+ /** ADVSignedDeviceIdentity deviceSignature. */
126
+ public deviceSignature?: (Uint8Array|null);
127
+ /** ADVSignedDeviceIdentity _details. */
128
+ public _details?: "details";
129
+ /** ADVSignedDeviceIdentity _accountSignatureKey. */
130
+ public _accountSignatureKey?: "accountSignatureKey";
131
+ /** ADVSignedDeviceIdentity _accountSignature. */
132
+ public _accountSignature?: "accountSignature";
133
+ /** ADVSignedDeviceIdentity _deviceSignature. */
134
+ public _deviceSignature?: "deviceSignature";
135
+ /**
136
+ * Creates a new ADVSignedDeviceIdentity instance using the specified properties.
137
+ * @param [properties] Properties to set
138
+ * @returns ADVSignedDeviceIdentity instance
139
+ */
140
+ public static create(properties?: Adv.IADVSignedDeviceIdentity): Adv.ADVSignedDeviceIdentity;
141
+ /**
142
+ * Encodes the specified ADVSignedDeviceIdentity message. Does not implicitly {@link Adv.ADVSignedDeviceIdentity.verify|verify} messages.
143
+ * @param message ADVSignedDeviceIdentity message or plain object to encode
144
+ * @param [writer] Writer to encode to
145
+ * @returns Writer
146
+ */
147
+ public static encode(message: Adv.IADVSignedDeviceIdentity, writer?: $protobuf.Writer): $protobuf.Writer;
148
+ /**
149
+ * Encodes the specified ADVSignedDeviceIdentity message, length delimited. Does not implicitly {@link Adv.ADVSignedDeviceIdentity.verify|verify} messages.
150
+ * @param message ADVSignedDeviceIdentity message or plain object to encode
151
+ * @param [writer] Writer to encode to
152
+ * @returns Writer
153
+ */
154
+ public static encodeDelimited(message: Adv.IADVSignedDeviceIdentity, writer?: $protobuf.Writer): $protobuf.Writer;
155
+ /**
156
+ * Decodes a ADVSignedDeviceIdentity message from the specified reader or buffer.
157
+ * @param reader Reader or buffer to decode from
158
+ * @param [length] Message length if known beforehand
159
+ * @returns ADVSignedDeviceIdentity
160
+ * @throws {Error} If the payload is not a reader or valid buffer
161
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
162
+ */
163
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Adv.ADVSignedDeviceIdentity;
164
+ /**
165
+ * Decodes a ADVSignedDeviceIdentity message from the specified reader or buffer, length delimited.
166
+ * @param reader Reader or buffer to decode from
167
+ * @returns ADVSignedDeviceIdentity
168
+ * @throws {Error} If the payload is not a reader or valid buffer
169
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
170
+ */
171
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Adv.ADVSignedDeviceIdentity;
172
+ /**
173
+ * Verifies a ADVSignedDeviceIdentity message.
174
+ * @param message Plain object to verify
175
+ * @returns `null` if valid, otherwise the reason why it is not
176
+ */
177
+ public static verify(message: { [k: string]: any }): (string|null);
178
+ /**
179
+ * Creates a ADVSignedDeviceIdentity message from a plain object. Also converts values to their respective internal types.
180
+ * @param object Plain object
181
+ * @returns ADVSignedDeviceIdentity
182
+ */
183
+ public static fromObject(object: { [k: string]: any }): Adv.ADVSignedDeviceIdentity;
184
+ /**
185
+ * Creates a plain object from a ADVSignedDeviceIdentity message. Also converts values to other types if specified.
186
+ * @param message ADVSignedDeviceIdentity
187
+ * @param [options] Conversion options
188
+ * @returns Plain object
189
+ */
190
+ public static toObject(message: Adv.ADVSignedDeviceIdentity, options?: $protobuf.IConversionOptions): { [k: string]: any };
191
+ /**
192
+ * Converts this ADVSignedDeviceIdentity to JSON.
193
+ * @returns JSON object
194
+ */
195
+ public toJSON(): { [k: string]: any };
196
+ /**
197
+ * Gets the default type url for ADVSignedDeviceIdentity
198
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
199
+ * @returns The default type url
200
+ */
201
+ public static getTypeUrl(typeUrlPrefix?: string): string;
202
+ }
203
+ /** Properties of a ADVDeviceIdentity. */
204
+ interface IADVDeviceIdentity {
205
+ /** ADVDeviceIdentity rawId */
206
+ rawId?: (number|null);
207
+ /** ADVDeviceIdentity timestamp */
208
+ timestamp?: (number|Long|null);
209
+ /** ADVDeviceIdentity keyIndex */
210
+ keyIndex?: (number|null);
211
+ /** ADVDeviceIdentity accountType */
212
+ accountType?: (Adv.ADVEncryptionType|null);
213
+ /** ADVDeviceIdentity deviceType */
214
+ deviceType?: (Adv.ADVEncryptionType|null);
215
+ }
216
+ /** Represents a ADVDeviceIdentity. */
217
+ class ADVDeviceIdentity implements IADVDeviceIdentity {
218
+ /**
219
+ * Constructs a new ADVDeviceIdentity.
220
+ * @param [properties] Properties to set
221
+ */
222
+ constructor(properties?: Adv.IADVDeviceIdentity);
223
+ /** ADVDeviceIdentity rawId. */
224
+ public rawId?: (number|null);
225
+ /** ADVDeviceIdentity timestamp. */
226
+ public timestamp?: (number|Long|null);
227
+ /** ADVDeviceIdentity keyIndex. */
228
+ public keyIndex?: (number|null);
229
+ /** ADVDeviceIdentity accountType. */
230
+ public accountType?: (Adv.ADVEncryptionType|null);
231
+ /** ADVDeviceIdentity deviceType. */
232
+ public deviceType?: (Adv.ADVEncryptionType|null);
233
+ /** ADVDeviceIdentity _rawId. */
234
+ public _rawId?: "rawId";
235
+ /** ADVDeviceIdentity _timestamp. */
236
+ public _timestamp?: "timestamp";
237
+ /** ADVDeviceIdentity _keyIndex. */
238
+ public _keyIndex?: "keyIndex";
239
+ /** ADVDeviceIdentity _accountType. */
240
+ public _accountType?: "accountType";
241
+ /** ADVDeviceIdentity _deviceType. */
242
+ public _deviceType?: "deviceType";
243
+ /**
244
+ * Creates a new ADVDeviceIdentity instance using the specified properties.
245
+ * @param [properties] Properties to set
246
+ * @returns ADVDeviceIdentity instance
247
+ */
248
+ public static create(properties?: Adv.IADVDeviceIdentity): Adv.ADVDeviceIdentity;
249
+ /**
250
+ * Encodes the specified ADVDeviceIdentity message. Does not implicitly {@link Adv.ADVDeviceIdentity.verify|verify} messages.
251
+ * @param message ADVDeviceIdentity message or plain object to encode
252
+ * @param [writer] Writer to encode to
253
+ * @returns Writer
254
+ */
255
+ public static encode(message: Adv.IADVDeviceIdentity, writer?: $protobuf.Writer): $protobuf.Writer;
256
+ /**
257
+ * Encodes the specified ADVDeviceIdentity message, length delimited. Does not implicitly {@link Adv.ADVDeviceIdentity.verify|verify} messages.
258
+ * @param message ADVDeviceIdentity message or plain object to encode
259
+ * @param [writer] Writer to encode to
260
+ * @returns Writer
261
+ */
262
+ public static encodeDelimited(message: Adv.IADVDeviceIdentity, writer?: $protobuf.Writer): $protobuf.Writer;
263
+ /**
264
+ * Decodes a ADVDeviceIdentity message from the specified reader or buffer.
265
+ * @param reader Reader or buffer to decode from
266
+ * @param [length] Message length if known beforehand
267
+ * @returns ADVDeviceIdentity
268
+ * @throws {Error} If the payload is not a reader or valid buffer
269
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
270
+ */
271
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Adv.ADVDeviceIdentity;
272
+ /**
273
+ * Decodes a ADVDeviceIdentity message from the specified reader or buffer, length delimited.
274
+ * @param reader Reader or buffer to decode from
275
+ * @returns ADVDeviceIdentity
276
+ * @throws {Error} If the payload is not a reader or valid buffer
277
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
278
+ */
279
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Adv.ADVDeviceIdentity;
280
+ /**
281
+ * Verifies a ADVDeviceIdentity message.
282
+ * @param message Plain object to verify
283
+ * @returns `null` if valid, otherwise the reason why it is not
284
+ */
285
+ public static verify(message: { [k: string]: any }): (string|null);
286
+ /**
287
+ * Creates a ADVDeviceIdentity message from a plain object. Also converts values to their respective internal types.
288
+ * @param object Plain object
289
+ * @returns ADVDeviceIdentity
290
+ */
291
+ public static fromObject(object: { [k: string]: any }): Adv.ADVDeviceIdentity;
292
+ /**
293
+ * Creates a plain object from a ADVDeviceIdentity message. Also converts values to other types if specified.
294
+ * @param message ADVDeviceIdentity
295
+ * @param [options] Conversion options
296
+ * @returns Plain object
297
+ */
298
+ public static toObject(message: Adv.ADVDeviceIdentity, options?: $protobuf.IConversionOptions): { [k: string]: any };
299
+ /**
300
+ * Converts this ADVDeviceIdentity to JSON.
301
+ * @returns JSON object
302
+ */
303
+ public toJSON(): { [k: string]: any };
304
+ /**
305
+ * Gets the default type url for ADVDeviceIdentity
306
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
307
+ * @returns The default type url
308
+ */
309
+ public static getTypeUrl(typeUrlPrefix?: string): string;
310
+ }
311
+ /** Properties of a ADVSignedKeyIndexList. */
312
+ interface IADVSignedKeyIndexList {
313
+ /** ADVSignedKeyIndexList details */
314
+ details?: (Uint8Array|null);
315
+ /** ADVSignedKeyIndexList accountSignature */
316
+ accountSignature?: (Uint8Array|null);
317
+ /** ADVSignedKeyIndexList accountSignatureKey */
318
+ accountSignatureKey?: (Uint8Array|null);
319
+ }
320
+ /** Represents a ADVSignedKeyIndexList. */
321
+ class ADVSignedKeyIndexList implements IADVSignedKeyIndexList {
322
+ /**
323
+ * Constructs a new ADVSignedKeyIndexList.
324
+ * @param [properties] Properties to set
325
+ */
326
+ constructor(properties?: Adv.IADVSignedKeyIndexList);
327
+ /** ADVSignedKeyIndexList details. */
328
+ public details?: (Uint8Array|null);
329
+ /** ADVSignedKeyIndexList accountSignature. */
330
+ public accountSignature?: (Uint8Array|null);
331
+ /** ADVSignedKeyIndexList accountSignatureKey. */
332
+ public accountSignatureKey?: (Uint8Array|null);
333
+ /** ADVSignedKeyIndexList _details. */
334
+ public _details?: "details";
335
+ /** ADVSignedKeyIndexList _accountSignature. */
336
+ public _accountSignature?: "accountSignature";
337
+ /** ADVSignedKeyIndexList _accountSignatureKey. */
338
+ public _accountSignatureKey?: "accountSignatureKey";
339
+ /**
340
+ * Creates a new ADVSignedKeyIndexList instance using the specified properties.
341
+ * @param [properties] Properties to set
342
+ * @returns ADVSignedKeyIndexList instance
343
+ */
344
+ public static create(properties?: Adv.IADVSignedKeyIndexList): Adv.ADVSignedKeyIndexList;
345
+ /**
346
+ * Encodes the specified ADVSignedKeyIndexList message. Does not implicitly {@link Adv.ADVSignedKeyIndexList.verify|verify} messages.
347
+ * @param message ADVSignedKeyIndexList message or plain object to encode
348
+ * @param [writer] Writer to encode to
349
+ * @returns Writer
350
+ */
351
+ public static encode(message: Adv.IADVSignedKeyIndexList, writer?: $protobuf.Writer): $protobuf.Writer;
352
+ /**
353
+ * Encodes the specified ADVSignedKeyIndexList message, length delimited. Does not implicitly {@link Adv.ADVSignedKeyIndexList.verify|verify} messages.
354
+ * @param message ADVSignedKeyIndexList message or plain object to encode
355
+ * @param [writer] Writer to encode to
356
+ * @returns Writer
357
+ */
358
+ public static encodeDelimited(message: Adv.IADVSignedKeyIndexList, writer?: $protobuf.Writer): $protobuf.Writer;
359
+ /**
360
+ * Decodes a ADVSignedKeyIndexList message from the specified reader or buffer.
361
+ * @param reader Reader or buffer to decode from
362
+ * @param [length] Message length if known beforehand
363
+ * @returns ADVSignedKeyIndexList
364
+ * @throws {Error} If the payload is not a reader or valid buffer
365
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
366
+ */
367
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Adv.ADVSignedKeyIndexList;
368
+ /**
369
+ * Decodes a ADVSignedKeyIndexList message from the specified reader or buffer, length delimited.
370
+ * @param reader Reader or buffer to decode from
371
+ * @returns ADVSignedKeyIndexList
372
+ * @throws {Error} If the payload is not a reader or valid buffer
373
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
374
+ */
375
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Adv.ADVSignedKeyIndexList;
376
+ /**
377
+ * Verifies a ADVSignedKeyIndexList message.
378
+ * @param message Plain object to verify
379
+ * @returns `null` if valid, otherwise the reason why it is not
380
+ */
381
+ public static verify(message: { [k: string]: any }): (string|null);
382
+ /**
383
+ * Creates a ADVSignedKeyIndexList message from a plain object. Also converts values to their respective internal types.
384
+ * @param object Plain object
385
+ * @returns ADVSignedKeyIndexList
386
+ */
387
+ public static fromObject(object: { [k: string]: any }): Adv.ADVSignedKeyIndexList;
388
+ /**
389
+ * Creates a plain object from a ADVSignedKeyIndexList message. Also converts values to other types if specified.
390
+ * @param message ADVSignedKeyIndexList
391
+ * @param [options] Conversion options
392
+ * @returns Plain object
393
+ */
394
+ public static toObject(message: Adv.ADVSignedKeyIndexList, options?: $protobuf.IConversionOptions): { [k: string]: any };
395
+ /**
396
+ * Converts this ADVSignedKeyIndexList to JSON.
397
+ * @returns JSON object
398
+ */
399
+ public toJSON(): { [k: string]: any };
400
+ /**
401
+ * Gets the default type url for ADVSignedKeyIndexList
402
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
403
+ * @returns The default type url
404
+ */
405
+ public static getTypeUrl(typeUrlPrefix?: string): string;
406
+ }
407
+ /** Properties of a ADVKeyIndexList. */
408
+ interface IADVKeyIndexList {
409
+ /** ADVKeyIndexList rawId */
410
+ rawId?: (number|null);
411
+ /** ADVKeyIndexList timestamp */
412
+ timestamp?: (number|Long|null);
413
+ /** ADVKeyIndexList currentIndex */
414
+ currentIndex?: (number|null);
415
+ /** ADVKeyIndexList validIndexes */
416
+ validIndexes?: (number[]|null);
417
+ /** ADVKeyIndexList accountType */
418
+ accountType?: (Adv.ADVEncryptionType|null);
419
+ }
420
+ /** Represents a ADVKeyIndexList. */
421
+ class ADVKeyIndexList implements IADVKeyIndexList {
422
+ /**
423
+ * Constructs a new ADVKeyIndexList.
424
+ * @param [properties] Properties to set
425
+ */
426
+ constructor(properties?: Adv.IADVKeyIndexList);
427
+ /** ADVKeyIndexList rawId. */
428
+ public rawId?: (number|null);
429
+ /** ADVKeyIndexList timestamp. */
430
+ public timestamp?: (number|Long|null);
431
+ /** ADVKeyIndexList currentIndex. */
432
+ public currentIndex?: (number|null);
433
+ /** ADVKeyIndexList validIndexes. */
434
+ public validIndexes: number[];
435
+ /** ADVKeyIndexList accountType. */
436
+ public accountType?: (Adv.ADVEncryptionType|null);
437
+ /** ADVKeyIndexList _rawId. */
438
+ public _rawId?: "rawId";
439
+ /** ADVKeyIndexList _timestamp. */
440
+ public _timestamp?: "timestamp";
441
+ /** ADVKeyIndexList _currentIndex. */
442
+ public _currentIndex?: "currentIndex";
443
+ /** ADVKeyIndexList _accountType. */
444
+ public _accountType?: "accountType";
445
+ /**
446
+ * Creates a new ADVKeyIndexList instance using the specified properties.
447
+ * @param [properties] Properties to set
448
+ * @returns ADVKeyIndexList instance
449
+ */
450
+ public static create(properties?: Adv.IADVKeyIndexList): Adv.ADVKeyIndexList;
451
+ /**
452
+ * Encodes the specified ADVKeyIndexList message. Does not implicitly {@link Adv.ADVKeyIndexList.verify|verify} messages.
453
+ * @param message ADVKeyIndexList message or plain object to encode
454
+ * @param [writer] Writer to encode to
455
+ * @returns Writer
456
+ */
457
+ public static encode(message: Adv.IADVKeyIndexList, writer?: $protobuf.Writer): $protobuf.Writer;
458
+ /**
459
+ * Encodes the specified ADVKeyIndexList message, length delimited. Does not implicitly {@link Adv.ADVKeyIndexList.verify|verify} messages.
460
+ * @param message ADVKeyIndexList message or plain object to encode
461
+ * @param [writer] Writer to encode to
462
+ * @returns Writer
463
+ */
464
+ public static encodeDelimited(message: Adv.IADVKeyIndexList, writer?: $protobuf.Writer): $protobuf.Writer;
465
+ /**
466
+ * Decodes a ADVKeyIndexList message from the specified reader or buffer.
467
+ * @param reader Reader or buffer to decode from
468
+ * @param [length] Message length if known beforehand
469
+ * @returns ADVKeyIndexList
470
+ * @throws {Error} If the payload is not a reader or valid buffer
471
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
472
+ */
473
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Adv.ADVKeyIndexList;
474
+ /**
475
+ * Decodes a ADVKeyIndexList message from the specified reader or buffer, length delimited.
476
+ * @param reader Reader or buffer to decode from
477
+ * @returns ADVKeyIndexList
478
+ * @throws {Error} If the payload is not a reader or valid buffer
479
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
480
+ */
481
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Adv.ADVKeyIndexList;
482
+ /**
483
+ * Verifies a ADVKeyIndexList message.
484
+ * @param message Plain object to verify
485
+ * @returns `null` if valid, otherwise the reason why it is not
486
+ */
487
+ public static verify(message: { [k: string]: any }): (string|null);
488
+ /**
489
+ * Creates a ADVKeyIndexList message from a plain object. Also converts values to their respective internal types.
490
+ * @param object Plain object
491
+ * @returns ADVKeyIndexList
492
+ */
493
+ public static fromObject(object: { [k: string]: any }): Adv.ADVKeyIndexList;
494
+ /**
495
+ * Creates a plain object from a ADVKeyIndexList message. Also converts values to other types if specified.
496
+ * @param message ADVKeyIndexList
497
+ * @param [options] Conversion options
498
+ * @returns Plain object
499
+ */
500
+ public static toObject(message: Adv.ADVKeyIndexList, options?: $protobuf.IConversionOptions): { [k: string]: any };
501
+ /**
502
+ * Converts this ADVKeyIndexList to JSON.
503
+ * @returns JSON object
504
+ */
505
+ public toJSON(): { [k: string]: any };
506
+ /**
507
+ * Gets the default type url for ADVKeyIndexList
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
+ /** ADVEncryptionType enum. */
514
+ enum ADVEncryptionType {
515
+ E2EE = 0,
516
+ HOSTED = 1
517
+ }
518
+ }