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,1613 @@
1
+ import * as $protobuf from "protobufjs";
2
+ import Long = require("long");
3
+ /** Namespace Wa6. */
4
+ export namespace Wa6 {
5
+ /** Properties of a ClientPayload. */
6
+ interface IClientPayload {
7
+ /** ClientPayload username */
8
+ username?: (number|Long|null);
9
+ /** ClientPayload passive */
10
+ passive?: (boolean|null);
11
+ /** ClientPayload userAgent */
12
+ userAgent?: (Wa6.ClientPayload.IUserAgent|null);
13
+ /** ClientPayload webInfo */
14
+ webInfo?: (Wa6.ClientPayload.IWebInfo|null);
15
+ /** ClientPayload pushName */
16
+ pushName?: (string|null);
17
+ /** ClientPayload sessionId */
18
+ sessionId?: (number|null);
19
+ /** ClientPayload shortConnect */
20
+ shortConnect?: (boolean|null);
21
+ /** ClientPayload connectType */
22
+ connectType?: (Wa6.ClientPayload.ConnectType|null);
23
+ /** ClientPayload connectReason */
24
+ connectReason?: (Wa6.ClientPayload.ConnectReason|null);
25
+ /** ClientPayload shards */
26
+ shards?: (number[]|null);
27
+ /** ClientPayload dnsSource */
28
+ dnsSource?: (Wa6.ClientPayload.IDNSSource|null);
29
+ /** ClientPayload connectAttemptCount */
30
+ connectAttemptCount?: (number|null);
31
+ /** ClientPayload device */
32
+ device?: (number|null);
33
+ /** ClientPayload devicePairingData */
34
+ devicePairingData?: (Wa6.ClientPayload.IDevicePairingRegistrationData|null);
35
+ /** ClientPayload product */
36
+ product?: (Wa6.ClientPayload.Product|null);
37
+ /** ClientPayload fbCat */
38
+ fbCat?: (Uint8Array|null);
39
+ /** ClientPayload fbUserAgent */
40
+ fbUserAgent?: (Uint8Array|null);
41
+ /** ClientPayload oc */
42
+ oc?: (boolean|null);
43
+ /** ClientPayload lc */
44
+ lc?: (number|null);
45
+ /** ClientPayload iosAppExtension */
46
+ iosAppExtension?: (Wa6.ClientPayload.IOSAppExtension|null);
47
+ /** ClientPayload fbAppId */
48
+ fbAppId?: (number|Long|null);
49
+ /** ClientPayload fbDeviceId */
50
+ fbDeviceId?: (Uint8Array|null);
51
+ /** ClientPayload pull */
52
+ pull?: (boolean|null);
53
+ /** ClientPayload paddingBytes */
54
+ paddingBytes?: (Uint8Array|null);
55
+ /** ClientPayload yearClass */
56
+ yearClass?: (number|null);
57
+ /** ClientPayload memClass */
58
+ memClass?: (number|null);
59
+ /** ClientPayload interopData */
60
+ interopData?: (Wa6.ClientPayload.IInteropData|null);
61
+ /** ClientPayload trafficAnonymization */
62
+ trafficAnonymization?: (Wa6.ClientPayload.TrafficAnonymization|null);
63
+ /** ClientPayload lidDbMigrated */
64
+ lidDbMigrated?: (boolean|null);
65
+ /** ClientPayload accountType */
66
+ accountType?: (Wa6.ClientPayload.AccountType|null);
67
+ }
68
+ /** Represents a ClientPayload. */
69
+ class ClientPayload implements IClientPayload {
70
+ /**
71
+ * Constructs a new ClientPayload.
72
+ * @param [properties] Properties to set
73
+ */
74
+ constructor(properties?: Wa6.IClientPayload);
75
+ /** ClientPayload username. */
76
+ public username?: (number|Long|null);
77
+ /** ClientPayload passive. */
78
+ public passive?: (boolean|null);
79
+ /** ClientPayload userAgent. */
80
+ public userAgent?: (Wa6.ClientPayload.IUserAgent|null);
81
+ /** ClientPayload webInfo. */
82
+ public webInfo?: (Wa6.ClientPayload.IWebInfo|null);
83
+ /** ClientPayload pushName. */
84
+ public pushName?: (string|null);
85
+ /** ClientPayload sessionId. */
86
+ public sessionId?: (number|null);
87
+ /** ClientPayload shortConnect. */
88
+ public shortConnect?: (boolean|null);
89
+ /** ClientPayload connectType. */
90
+ public connectType?: (Wa6.ClientPayload.ConnectType|null);
91
+ /** ClientPayload connectReason. */
92
+ public connectReason?: (Wa6.ClientPayload.ConnectReason|null);
93
+ /** ClientPayload shards. */
94
+ public shards: number[];
95
+ /** ClientPayload dnsSource. */
96
+ public dnsSource?: (Wa6.ClientPayload.IDNSSource|null);
97
+ /** ClientPayload connectAttemptCount. */
98
+ public connectAttemptCount?: (number|null);
99
+ /** ClientPayload device. */
100
+ public device?: (number|null);
101
+ /** ClientPayload devicePairingData. */
102
+ public devicePairingData?: (Wa6.ClientPayload.IDevicePairingRegistrationData|null);
103
+ /** ClientPayload product. */
104
+ public product?: (Wa6.ClientPayload.Product|null);
105
+ /** ClientPayload fbCat. */
106
+ public fbCat?: (Uint8Array|null);
107
+ /** ClientPayload fbUserAgent. */
108
+ public fbUserAgent?: (Uint8Array|null);
109
+ /** ClientPayload oc. */
110
+ public oc?: (boolean|null);
111
+ /** ClientPayload lc. */
112
+ public lc?: (number|null);
113
+ /** ClientPayload iosAppExtension. */
114
+ public iosAppExtension?: (Wa6.ClientPayload.IOSAppExtension|null);
115
+ /** ClientPayload fbAppId. */
116
+ public fbAppId?: (number|Long|null);
117
+ /** ClientPayload fbDeviceId. */
118
+ public fbDeviceId?: (Uint8Array|null);
119
+ /** ClientPayload pull. */
120
+ public pull?: (boolean|null);
121
+ /** ClientPayload paddingBytes. */
122
+ public paddingBytes?: (Uint8Array|null);
123
+ /** ClientPayload yearClass. */
124
+ public yearClass?: (number|null);
125
+ /** ClientPayload memClass. */
126
+ public memClass?: (number|null);
127
+ /** ClientPayload interopData. */
128
+ public interopData?: (Wa6.ClientPayload.IInteropData|null);
129
+ /** ClientPayload trafficAnonymization. */
130
+ public trafficAnonymization?: (Wa6.ClientPayload.TrafficAnonymization|null);
131
+ /** ClientPayload lidDbMigrated. */
132
+ public lidDbMigrated?: (boolean|null);
133
+ /** ClientPayload accountType. */
134
+ public accountType?: (Wa6.ClientPayload.AccountType|null);
135
+ /** ClientPayload _username. */
136
+ public _username?: "username";
137
+ /** ClientPayload _passive. */
138
+ public _passive?: "passive";
139
+ /** ClientPayload _userAgent. */
140
+ public _userAgent?: "userAgent";
141
+ /** ClientPayload _webInfo. */
142
+ public _webInfo?: "webInfo";
143
+ /** ClientPayload _pushName. */
144
+ public _pushName?: "pushName";
145
+ /** ClientPayload _sessionId. */
146
+ public _sessionId?: "sessionId";
147
+ /** ClientPayload _shortConnect. */
148
+ public _shortConnect?: "shortConnect";
149
+ /** ClientPayload _connectType. */
150
+ public _connectType?: "connectType";
151
+ /** ClientPayload _connectReason. */
152
+ public _connectReason?: "connectReason";
153
+ /** ClientPayload _dnsSource. */
154
+ public _dnsSource?: "dnsSource";
155
+ /** ClientPayload _connectAttemptCount. */
156
+ public _connectAttemptCount?: "connectAttemptCount";
157
+ /** ClientPayload _device. */
158
+ public _device?: "device";
159
+ /** ClientPayload _devicePairingData. */
160
+ public _devicePairingData?: "devicePairingData";
161
+ /** ClientPayload _product. */
162
+ public _product?: "product";
163
+ /** ClientPayload _fbCat. */
164
+ public _fbCat?: "fbCat";
165
+ /** ClientPayload _fbUserAgent. */
166
+ public _fbUserAgent?: "fbUserAgent";
167
+ /** ClientPayload _oc. */
168
+ public _oc?: "oc";
169
+ /** ClientPayload _lc. */
170
+ public _lc?: "lc";
171
+ /** ClientPayload _iosAppExtension. */
172
+ public _iosAppExtension?: "iosAppExtension";
173
+ /** ClientPayload _fbAppId. */
174
+ public _fbAppId?: "fbAppId";
175
+ /** ClientPayload _fbDeviceId. */
176
+ public _fbDeviceId?: "fbDeviceId";
177
+ /** ClientPayload _pull. */
178
+ public _pull?: "pull";
179
+ /** ClientPayload _paddingBytes. */
180
+ public _paddingBytes?: "paddingBytes";
181
+ /** ClientPayload _yearClass. */
182
+ public _yearClass?: "yearClass";
183
+ /** ClientPayload _memClass. */
184
+ public _memClass?: "memClass";
185
+ /** ClientPayload _interopData. */
186
+ public _interopData?: "interopData";
187
+ /** ClientPayload _trafficAnonymization. */
188
+ public _trafficAnonymization?: "trafficAnonymization";
189
+ /** ClientPayload _lidDbMigrated. */
190
+ public _lidDbMigrated?: "lidDbMigrated";
191
+ /** ClientPayload _accountType. */
192
+ public _accountType?: "accountType";
193
+ /**
194
+ * Creates a new ClientPayload instance using the specified properties.
195
+ * @param [properties] Properties to set
196
+ * @returns ClientPayload instance
197
+ */
198
+ public static create(properties?: Wa6.IClientPayload): Wa6.ClientPayload;
199
+ /**
200
+ * Encodes the specified ClientPayload message. Does not implicitly {@link Wa6.ClientPayload.verify|verify} messages.
201
+ * @param message ClientPayload message or plain object to encode
202
+ * @param [writer] Writer to encode to
203
+ * @returns Writer
204
+ */
205
+ public static encode(message: Wa6.IClientPayload, writer?: $protobuf.Writer): $protobuf.Writer;
206
+ /**
207
+ * Encodes the specified ClientPayload message, length delimited. Does not implicitly {@link Wa6.ClientPayload.verify|verify} messages.
208
+ * @param message ClientPayload message or plain object to encode
209
+ * @param [writer] Writer to encode to
210
+ * @returns Writer
211
+ */
212
+ public static encodeDelimited(message: Wa6.IClientPayload, writer?: $protobuf.Writer): $protobuf.Writer;
213
+ /**
214
+ * Decodes a ClientPayload message from the specified reader or buffer.
215
+ * @param reader Reader or buffer to decode from
216
+ * @param [length] Message length if known beforehand
217
+ * @returns ClientPayload
218
+ * @throws {Error} If the payload is not a reader or valid buffer
219
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
220
+ */
221
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Wa6.ClientPayload;
222
+ /**
223
+ * Decodes a ClientPayload message from the specified reader or buffer, length delimited.
224
+ * @param reader Reader or buffer to decode from
225
+ * @returns ClientPayload
226
+ * @throws {Error} If the payload is not a reader or valid buffer
227
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
228
+ */
229
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Wa6.ClientPayload;
230
+ /**
231
+ * Verifies a ClientPayload message.
232
+ * @param message Plain object to verify
233
+ * @returns `null` if valid, otherwise the reason why it is not
234
+ */
235
+ public static verify(message: { [k: string]: any }): (string|null);
236
+ /**
237
+ * Creates a ClientPayload message from a plain object. Also converts values to their respective internal types.
238
+ * @param object Plain object
239
+ * @returns ClientPayload
240
+ */
241
+ public static fromObject(object: { [k: string]: any }): Wa6.ClientPayload;
242
+ /**
243
+ * Creates a plain object from a ClientPayload message. Also converts values to other types if specified.
244
+ * @param message ClientPayload
245
+ * @param [options] Conversion options
246
+ * @returns Plain object
247
+ */
248
+ public static toObject(message: Wa6.ClientPayload, options?: $protobuf.IConversionOptions): { [k: string]: any };
249
+ /**
250
+ * Converts this ClientPayload to JSON.
251
+ * @returns JSON object
252
+ */
253
+ public toJSON(): { [k: string]: any };
254
+ /**
255
+ * Gets the default type url for ClientPayload
256
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
257
+ * @returns The default type url
258
+ */
259
+ public static getTypeUrl(typeUrlPrefix?: string): string;
260
+ }
261
+ namespace ClientPayload {
262
+ /** AccountType enum. */
263
+ enum AccountType {
264
+ DEFAULT = 0,
265
+ GUEST = 1
266
+ }
267
+ /** ConnectReason enum. */
268
+ enum ConnectReason {
269
+ PUSH = 0,
270
+ USER_ACTIVATED = 1,
271
+ SCHEDULED = 2,
272
+ ERROR_RECONNECT = 3,
273
+ NETWORK_SWITCH = 4,
274
+ PING_RECONNECT = 5,
275
+ UNKNOWN = 6
276
+ }
277
+ /** ConnectType enum. */
278
+ enum ConnectType {
279
+ CELLULAR_UNKNOWN = 0,
280
+ WIFI_UNKNOWN = 1,
281
+ CELLULAR_EDGE = 100,
282
+ CELLULAR_IDEN = 101,
283
+ CELLULAR_UMTS = 102,
284
+ CELLULAR_EVDO = 103,
285
+ CELLULAR_GPRS = 104,
286
+ CELLULAR_HSDPA = 105,
287
+ CELLULAR_HSUPA = 106,
288
+ CELLULAR_HSPA = 107,
289
+ CELLULAR_CDMA = 108,
290
+ CELLULAR_1XRTT = 109,
291
+ CELLULAR_EHRPD = 110,
292
+ CELLULAR_LTE = 111,
293
+ CELLULAR_HSPAP = 112
294
+ }
295
+ /** Properties of a DNSSource. */
296
+ interface IDNSSource {
297
+ /** DNSSource dnsMethod */
298
+ dnsMethod?: (Wa6.ClientPayload.DNSSource.DNSResolutionMethod|null);
299
+ /** DNSSource appCached */
300
+ appCached?: (boolean|null);
301
+ }
302
+ /** Represents a DNSSource. */
303
+ class DNSSource implements IDNSSource {
304
+ /**
305
+ * Constructs a new DNSSource.
306
+ * @param [properties] Properties to set
307
+ */
308
+ constructor(properties?: Wa6.ClientPayload.IDNSSource);
309
+ /** DNSSource dnsMethod. */
310
+ public dnsMethod?: (Wa6.ClientPayload.DNSSource.DNSResolutionMethod|null);
311
+ /** DNSSource appCached. */
312
+ public appCached?: (boolean|null);
313
+ /** DNSSource _dnsMethod. */
314
+ public _dnsMethod?: "dnsMethod";
315
+ /** DNSSource _appCached. */
316
+ public _appCached?: "appCached";
317
+ /**
318
+ * Creates a new DNSSource instance using the specified properties.
319
+ * @param [properties] Properties to set
320
+ * @returns DNSSource instance
321
+ */
322
+ public static create(properties?: Wa6.ClientPayload.IDNSSource): Wa6.ClientPayload.DNSSource;
323
+ /**
324
+ * Encodes the specified DNSSource message. Does not implicitly {@link Wa6.ClientPayload.DNSSource.verify|verify} messages.
325
+ * @param message DNSSource message or plain object to encode
326
+ * @param [writer] Writer to encode to
327
+ * @returns Writer
328
+ */
329
+ public static encode(message: Wa6.ClientPayload.IDNSSource, writer?: $protobuf.Writer): $protobuf.Writer;
330
+ /**
331
+ * Encodes the specified DNSSource message, length delimited. Does not implicitly {@link Wa6.ClientPayload.DNSSource.verify|verify} messages.
332
+ * @param message DNSSource message or plain object to encode
333
+ * @param [writer] Writer to encode to
334
+ * @returns Writer
335
+ */
336
+ public static encodeDelimited(message: Wa6.ClientPayload.IDNSSource, writer?: $protobuf.Writer): $protobuf.Writer;
337
+ /**
338
+ * Decodes a DNSSource message from the specified reader or buffer.
339
+ * @param reader Reader or buffer to decode from
340
+ * @param [length] Message length if known beforehand
341
+ * @returns DNSSource
342
+ * @throws {Error} If the payload is not a reader or valid buffer
343
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
344
+ */
345
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Wa6.ClientPayload.DNSSource;
346
+ /**
347
+ * Decodes a DNSSource message from the specified reader or buffer, length delimited.
348
+ * @param reader Reader or buffer to decode from
349
+ * @returns DNSSource
350
+ * @throws {Error} If the payload is not a reader or valid buffer
351
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
352
+ */
353
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Wa6.ClientPayload.DNSSource;
354
+ /**
355
+ * Verifies a DNSSource message.
356
+ * @param message Plain object to verify
357
+ * @returns `null` if valid, otherwise the reason why it is not
358
+ */
359
+ public static verify(message: { [k: string]: any }): (string|null);
360
+ /**
361
+ * Creates a DNSSource message from a plain object. Also converts values to their respective internal types.
362
+ * @param object Plain object
363
+ * @returns DNSSource
364
+ */
365
+ public static fromObject(object: { [k: string]: any }): Wa6.ClientPayload.DNSSource;
366
+ /**
367
+ * Creates a plain object from a DNSSource message. Also converts values to other types if specified.
368
+ * @param message DNSSource
369
+ * @param [options] Conversion options
370
+ * @returns Plain object
371
+ */
372
+ public static toObject(message: Wa6.ClientPayload.DNSSource, options?: $protobuf.IConversionOptions): { [k: string]: any };
373
+ /**
374
+ * Converts this DNSSource to JSON.
375
+ * @returns JSON object
376
+ */
377
+ public toJSON(): { [k: string]: any };
378
+ /**
379
+ * Gets the default type url for DNSSource
380
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
381
+ * @returns The default type url
382
+ */
383
+ public static getTypeUrl(typeUrlPrefix?: string): string;
384
+ }
385
+ namespace DNSSource {
386
+ /** DNSResolutionMethod enum. */
387
+ enum DNSResolutionMethod {
388
+ SYSTEM = 0,
389
+ GOOGLE = 1,
390
+ HARDCODED = 2,
391
+ OVERRIDE = 3,
392
+ FALLBACK = 4,
393
+ MNS = 5
394
+ }
395
+ }
396
+ /** Properties of a DevicePairingRegistrationData. */
397
+ interface IDevicePairingRegistrationData {
398
+ /** DevicePairingRegistrationData eRegid */
399
+ eRegid?: (Uint8Array|null);
400
+ /** DevicePairingRegistrationData eKeytype */
401
+ eKeytype?: (Uint8Array|null);
402
+ /** DevicePairingRegistrationData eIdent */
403
+ eIdent?: (Uint8Array|null);
404
+ /** DevicePairingRegistrationData eSkeyId */
405
+ eSkeyId?: (Uint8Array|null);
406
+ /** DevicePairingRegistrationData eSkeyVal */
407
+ eSkeyVal?: (Uint8Array|null);
408
+ /** DevicePairingRegistrationData eSkeySig */
409
+ eSkeySig?: (Uint8Array|null);
410
+ /** DevicePairingRegistrationData buildHash */
411
+ buildHash?: (Uint8Array|null);
412
+ /** DevicePairingRegistrationData deviceProps */
413
+ deviceProps?: (Uint8Array|null);
414
+ }
415
+ /** Represents a DevicePairingRegistrationData. */
416
+ class DevicePairingRegistrationData implements IDevicePairingRegistrationData {
417
+ /**
418
+ * Constructs a new DevicePairingRegistrationData.
419
+ * @param [properties] Properties to set
420
+ */
421
+ constructor(properties?: Wa6.ClientPayload.IDevicePairingRegistrationData);
422
+ /** DevicePairingRegistrationData eRegid. */
423
+ public eRegid?: (Uint8Array|null);
424
+ /** DevicePairingRegistrationData eKeytype. */
425
+ public eKeytype?: (Uint8Array|null);
426
+ /** DevicePairingRegistrationData eIdent. */
427
+ public eIdent?: (Uint8Array|null);
428
+ /** DevicePairingRegistrationData eSkeyId. */
429
+ public eSkeyId?: (Uint8Array|null);
430
+ /** DevicePairingRegistrationData eSkeyVal. */
431
+ public eSkeyVal?: (Uint8Array|null);
432
+ /** DevicePairingRegistrationData eSkeySig. */
433
+ public eSkeySig?: (Uint8Array|null);
434
+ /** DevicePairingRegistrationData buildHash. */
435
+ public buildHash?: (Uint8Array|null);
436
+ /** DevicePairingRegistrationData deviceProps. */
437
+ public deviceProps?: (Uint8Array|null);
438
+ /** DevicePairingRegistrationData _eRegid. */
439
+ public _eRegid?: "eRegid";
440
+ /** DevicePairingRegistrationData _eKeytype. */
441
+ public _eKeytype?: "eKeytype";
442
+ /** DevicePairingRegistrationData _eIdent. */
443
+ public _eIdent?: "eIdent";
444
+ /** DevicePairingRegistrationData _eSkeyId. */
445
+ public _eSkeyId?: "eSkeyId";
446
+ /** DevicePairingRegistrationData _eSkeyVal. */
447
+ public _eSkeyVal?: "eSkeyVal";
448
+ /** DevicePairingRegistrationData _eSkeySig. */
449
+ public _eSkeySig?: "eSkeySig";
450
+ /** DevicePairingRegistrationData _buildHash. */
451
+ public _buildHash?: "buildHash";
452
+ /** DevicePairingRegistrationData _deviceProps. */
453
+ public _deviceProps?: "deviceProps";
454
+ /**
455
+ * Creates a new DevicePairingRegistrationData instance using the specified properties.
456
+ * @param [properties] Properties to set
457
+ * @returns DevicePairingRegistrationData instance
458
+ */
459
+ public static create(properties?: Wa6.ClientPayload.IDevicePairingRegistrationData): Wa6.ClientPayload.DevicePairingRegistrationData;
460
+ /**
461
+ * Encodes the specified DevicePairingRegistrationData message. Does not implicitly {@link Wa6.ClientPayload.DevicePairingRegistrationData.verify|verify} messages.
462
+ * @param message DevicePairingRegistrationData message or plain object to encode
463
+ * @param [writer] Writer to encode to
464
+ * @returns Writer
465
+ */
466
+ public static encode(message: Wa6.ClientPayload.IDevicePairingRegistrationData, writer?: $protobuf.Writer): $protobuf.Writer;
467
+ /**
468
+ * Encodes the specified DevicePairingRegistrationData message, length delimited. Does not implicitly {@link Wa6.ClientPayload.DevicePairingRegistrationData.verify|verify} messages.
469
+ * @param message DevicePairingRegistrationData message or plain object to encode
470
+ * @param [writer] Writer to encode to
471
+ * @returns Writer
472
+ */
473
+ public static encodeDelimited(message: Wa6.ClientPayload.IDevicePairingRegistrationData, writer?: $protobuf.Writer): $protobuf.Writer;
474
+ /**
475
+ * Decodes a DevicePairingRegistrationData message from the specified reader or buffer.
476
+ * @param reader Reader or buffer to decode from
477
+ * @param [length] Message length if known beforehand
478
+ * @returns DevicePairingRegistrationData
479
+ * @throws {Error} If the payload is not a reader or valid buffer
480
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
481
+ */
482
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Wa6.ClientPayload.DevicePairingRegistrationData;
483
+ /**
484
+ * Decodes a DevicePairingRegistrationData message from the specified reader or buffer, length delimited.
485
+ * @param reader Reader or buffer to decode from
486
+ * @returns DevicePairingRegistrationData
487
+ * @throws {Error} If the payload is not a reader or valid buffer
488
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
489
+ */
490
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Wa6.ClientPayload.DevicePairingRegistrationData;
491
+ /**
492
+ * Verifies a DevicePairingRegistrationData message.
493
+ * @param message Plain object to verify
494
+ * @returns `null` if valid, otherwise the reason why it is not
495
+ */
496
+ public static verify(message: { [k: string]: any }): (string|null);
497
+ /**
498
+ * Creates a DevicePairingRegistrationData message from a plain object. Also converts values to their respective internal types.
499
+ * @param object Plain object
500
+ * @returns DevicePairingRegistrationData
501
+ */
502
+ public static fromObject(object: { [k: string]: any }): Wa6.ClientPayload.DevicePairingRegistrationData;
503
+ /**
504
+ * Creates a plain object from a DevicePairingRegistrationData message. Also converts values to other types if specified.
505
+ * @param message DevicePairingRegistrationData
506
+ * @param [options] Conversion options
507
+ * @returns Plain object
508
+ */
509
+ public static toObject(message: Wa6.ClientPayload.DevicePairingRegistrationData, options?: $protobuf.IConversionOptions): { [k: string]: any };
510
+ /**
511
+ * Converts this DevicePairingRegistrationData to JSON.
512
+ * @returns JSON object
513
+ */
514
+ public toJSON(): { [k: string]: any };
515
+ /**
516
+ * Gets the default type url for DevicePairingRegistrationData
517
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
518
+ * @returns The default type url
519
+ */
520
+ public static getTypeUrl(typeUrlPrefix?: string): string;
521
+ }
522
+ /** IOSAppExtension enum. */
523
+ enum IOSAppExtension {
524
+ SHARE_EXTENSION = 0,
525
+ SERVICE_EXTENSION = 1,
526
+ INTENTS_EXTENSION = 2
527
+ }
528
+ /** Properties of an InteropData. */
529
+ interface IInteropData {
530
+ /** InteropData accountId */
531
+ accountId?: (number|Long|null);
532
+ /** InteropData token */
533
+ token?: (Uint8Array|null);
534
+ /** InteropData enableReadReceipts */
535
+ enableReadReceipts?: (boolean|null);
536
+ }
537
+ /** Represents an InteropData. */
538
+ class InteropData implements IInteropData {
539
+ /**
540
+ * Constructs a new InteropData.
541
+ * @param [properties] Properties to set
542
+ */
543
+ constructor(properties?: Wa6.ClientPayload.IInteropData);
544
+ /** InteropData accountId. */
545
+ public accountId?: (number|Long|null);
546
+ /** InteropData token. */
547
+ public token?: (Uint8Array|null);
548
+ /** InteropData enableReadReceipts. */
549
+ public enableReadReceipts?: (boolean|null);
550
+ /** InteropData _accountId. */
551
+ public _accountId?: "accountId";
552
+ /** InteropData _token. */
553
+ public _token?: "token";
554
+ /** InteropData _enableReadReceipts. */
555
+ public _enableReadReceipts?: "enableReadReceipts";
556
+ /**
557
+ * Creates a new InteropData instance using the specified properties.
558
+ * @param [properties] Properties to set
559
+ * @returns InteropData instance
560
+ */
561
+ public static create(properties?: Wa6.ClientPayload.IInteropData): Wa6.ClientPayload.InteropData;
562
+ /**
563
+ * Encodes the specified InteropData message. Does not implicitly {@link Wa6.ClientPayload.InteropData.verify|verify} messages.
564
+ * @param message InteropData message or plain object to encode
565
+ * @param [writer] Writer to encode to
566
+ * @returns Writer
567
+ */
568
+ public static encode(message: Wa6.ClientPayload.IInteropData, writer?: $protobuf.Writer): $protobuf.Writer;
569
+ /**
570
+ * Encodes the specified InteropData message, length delimited. Does not implicitly {@link Wa6.ClientPayload.InteropData.verify|verify} messages.
571
+ * @param message InteropData message or plain object to encode
572
+ * @param [writer] Writer to encode to
573
+ * @returns Writer
574
+ */
575
+ public static encodeDelimited(message: Wa6.ClientPayload.IInteropData, writer?: $protobuf.Writer): $protobuf.Writer;
576
+ /**
577
+ * Decodes an InteropData 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 InteropData
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): Wa6.ClientPayload.InteropData;
585
+ /**
586
+ * Decodes an InteropData message from the specified reader or buffer, length delimited.
587
+ * @param reader Reader or buffer to decode from
588
+ * @returns InteropData
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)): Wa6.ClientPayload.InteropData;
593
+ /**
594
+ * Verifies an InteropData 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 an InteropData message from a plain object. Also converts values to their respective internal types.
601
+ * @param object Plain object
602
+ * @returns InteropData
603
+ */
604
+ public static fromObject(object: { [k: string]: any }): Wa6.ClientPayload.InteropData;
605
+ /**
606
+ * Creates a plain object from an InteropData message. Also converts values to other types if specified.
607
+ * @param message InteropData
608
+ * @param [options] Conversion options
609
+ * @returns Plain object
610
+ */
611
+ public static toObject(message: Wa6.ClientPayload.InteropData, options?: $protobuf.IConversionOptions): { [k: string]: any };
612
+ /**
613
+ * Converts this InteropData to JSON.
614
+ * @returns JSON object
615
+ */
616
+ public toJSON(): { [k: string]: any };
617
+ /**
618
+ * Gets the default type url for InteropData
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
+ /** Product enum. */
625
+ enum Product {
626
+ WHATSAPP = 0,
627
+ MESSENGER = 1,
628
+ INTEROP = 2,
629
+ INTEROP_MSGR = 3,
630
+ WHATSAPP_LID = 4
631
+ }
632
+ /** TrafficAnonymization enum. */
633
+ enum TrafficAnonymization {
634
+ OFF = 0,
635
+ STANDARD = 1
636
+ }
637
+ /** Properties of a UserAgent. */
638
+ interface IUserAgent {
639
+ /** UserAgent platform */
640
+ platform?: (Wa6.ClientPayload.UserAgent.Platform|null);
641
+ /** UserAgent appVersion */
642
+ appVersion?: (Wa6.ClientPayload.UserAgent.IAppVersion|null);
643
+ /** UserAgent mcc */
644
+ mcc?: (string|null);
645
+ /** UserAgent mnc */
646
+ mnc?: (string|null);
647
+ /** UserAgent osVersion */
648
+ osVersion?: (string|null);
649
+ /** UserAgent manufacturer */
650
+ manufacturer?: (string|null);
651
+ /** UserAgent device */
652
+ device?: (string|null);
653
+ /** UserAgent osBuildNumber */
654
+ osBuildNumber?: (string|null);
655
+ /** UserAgent phoneId */
656
+ phoneId?: (string|null);
657
+ /** UserAgent releaseChannel */
658
+ releaseChannel?: (Wa6.ClientPayload.UserAgent.ReleaseChannel|null);
659
+ /** UserAgent localeLanguageIso6391 */
660
+ localeLanguageIso6391?: (string|null);
661
+ /** UserAgent localeCountryIso31661Alpha2 */
662
+ localeCountryIso31661Alpha2?: (string|null);
663
+ /** UserAgent deviceBoard */
664
+ deviceBoard?: (string|null);
665
+ /** UserAgent deviceExpId */
666
+ deviceExpId?: (string|null);
667
+ /** UserAgent deviceType */
668
+ deviceType?: (Wa6.ClientPayload.UserAgent.DeviceType|null);
669
+ /** UserAgent deviceModelType */
670
+ deviceModelType?: (string|null);
671
+ }
672
+ /** Represents a UserAgent. */
673
+ class UserAgent implements IUserAgent {
674
+ /**
675
+ * Constructs a new UserAgent.
676
+ * @param [properties] Properties to set
677
+ */
678
+ constructor(properties?: Wa6.ClientPayload.IUserAgent);
679
+ /** UserAgent platform. */
680
+ public platform?: (Wa6.ClientPayload.UserAgent.Platform|null);
681
+ /** UserAgent appVersion. */
682
+ public appVersion?: (Wa6.ClientPayload.UserAgent.IAppVersion|null);
683
+ /** UserAgent mcc. */
684
+ public mcc?: (string|null);
685
+ /** UserAgent mnc. */
686
+ public mnc?: (string|null);
687
+ /** UserAgent osVersion. */
688
+ public osVersion?: (string|null);
689
+ /** UserAgent manufacturer. */
690
+ public manufacturer?: (string|null);
691
+ /** UserAgent device. */
692
+ public device?: (string|null);
693
+ /** UserAgent osBuildNumber. */
694
+ public osBuildNumber?: (string|null);
695
+ /** UserAgent phoneId. */
696
+ public phoneId?: (string|null);
697
+ /** UserAgent releaseChannel. */
698
+ public releaseChannel?: (Wa6.ClientPayload.UserAgent.ReleaseChannel|null);
699
+ /** UserAgent localeLanguageIso6391. */
700
+ public localeLanguageIso6391?: (string|null);
701
+ /** UserAgent localeCountryIso31661Alpha2. */
702
+ public localeCountryIso31661Alpha2?: (string|null);
703
+ /** UserAgent deviceBoard. */
704
+ public deviceBoard?: (string|null);
705
+ /** UserAgent deviceExpId. */
706
+ public deviceExpId?: (string|null);
707
+ /** UserAgent deviceType. */
708
+ public deviceType?: (Wa6.ClientPayload.UserAgent.DeviceType|null);
709
+ /** UserAgent deviceModelType. */
710
+ public deviceModelType?: (string|null);
711
+ /** UserAgent _platform. */
712
+ public _platform?: "platform";
713
+ /** UserAgent _appVersion. */
714
+ public _appVersion?: "appVersion";
715
+ /** UserAgent _mcc. */
716
+ public _mcc?: "mcc";
717
+ /** UserAgent _mnc. */
718
+ public _mnc?: "mnc";
719
+ /** UserAgent _osVersion. */
720
+ public _osVersion?: "osVersion";
721
+ /** UserAgent _manufacturer. */
722
+ public _manufacturer?: "manufacturer";
723
+ /** UserAgent _device. */
724
+ public _device?: "device";
725
+ /** UserAgent _osBuildNumber. */
726
+ public _osBuildNumber?: "osBuildNumber";
727
+ /** UserAgent _phoneId. */
728
+ public _phoneId?: "phoneId";
729
+ /** UserAgent _releaseChannel. */
730
+ public _releaseChannel?: "releaseChannel";
731
+ /** UserAgent _localeLanguageIso6391. */
732
+ public _localeLanguageIso6391?: "localeLanguageIso6391";
733
+ /** UserAgent _localeCountryIso31661Alpha2. */
734
+ public _localeCountryIso31661Alpha2?: "localeCountryIso31661Alpha2";
735
+ /** UserAgent _deviceBoard. */
736
+ public _deviceBoard?: "deviceBoard";
737
+ /** UserAgent _deviceExpId. */
738
+ public _deviceExpId?: "deviceExpId";
739
+ /** UserAgent _deviceType. */
740
+ public _deviceType?: "deviceType";
741
+ /** UserAgent _deviceModelType. */
742
+ public _deviceModelType?: "deviceModelType";
743
+ /**
744
+ * Creates a new UserAgent instance using the specified properties.
745
+ * @param [properties] Properties to set
746
+ * @returns UserAgent instance
747
+ */
748
+ public static create(properties?: Wa6.ClientPayload.IUserAgent): Wa6.ClientPayload.UserAgent;
749
+ /**
750
+ * Encodes the specified UserAgent message. Does not implicitly {@link Wa6.ClientPayload.UserAgent.verify|verify} messages.
751
+ * @param message UserAgent message or plain object to encode
752
+ * @param [writer] Writer to encode to
753
+ * @returns Writer
754
+ */
755
+ public static encode(message: Wa6.ClientPayload.IUserAgent, writer?: $protobuf.Writer): $protobuf.Writer;
756
+ /**
757
+ * Encodes the specified UserAgent message, length delimited. Does not implicitly {@link Wa6.ClientPayload.UserAgent.verify|verify} messages.
758
+ * @param message UserAgent message or plain object to encode
759
+ * @param [writer] Writer to encode to
760
+ * @returns Writer
761
+ */
762
+ public static encodeDelimited(message: Wa6.ClientPayload.IUserAgent, writer?: $protobuf.Writer): $protobuf.Writer;
763
+ /**
764
+ * Decodes a UserAgent message from the specified reader or buffer.
765
+ * @param reader Reader or buffer to decode from
766
+ * @param [length] Message length if known beforehand
767
+ * @returns UserAgent
768
+ * @throws {Error} If the payload is not a reader or valid buffer
769
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
770
+ */
771
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Wa6.ClientPayload.UserAgent;
772
+ /**
773
+ * Decodes a UserAgent message from the specified reader or buffer, length delimited.
774
+ * @param reader Reader or buffer to decode from
775
+ * @returns UserAgent
776
+ * @throws {Error} If the payload is not a reader or valid buffer
777
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
778
+ */
779
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Wa6.ClientPayload.UserAgent;
780
+ /**
781
+ * Verifies a UserAgent message.
782
+ * @param message Plain object to verify
783
+ * @returns `null` if valid, otherwise the reason why it is not
784
+ */
785
+ public static verify(message: { [k: string]: any }): (string|null);
786
+ /**
787
+ * Creates a UserAgent message from a plain object. Also converts values to their respective internal types.
788
+ * @param object Plain object
789
+ * @returns UserAgent
790
+ */
791
+ public static fromObject(object: { [k: string]: any }): Wa6.ClientPayload.UserAgent;
792
+ /**
793
+ * Creates a plain object from a UserAgent message. Also converts values to other types if specified.
794
+ * @param message UserAgent
795
+ * @param [options] Conversion options
796
+ * @returns Plain object
797
+ */
798
+ public static toObject(message: Wa6.ClientPayload.UserAgent, options?: $protobuf.IConversionOptions): { [k: string]: any };
799
+ /**
800
+ * Converts this UserAgent to JSON.
801
+ * @returns JSON object
802
+ */
803
+ public toJSON(): { [k: string]: any };
804
+ /**
805
+ * Gets the default type url for UserAgent
806
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
807
+ * @returns The default type url
808
+ */
809
+ public static getTypeUrl(typeUrlPrefix?: string): string;
810
+ }
811
+ namespace UserAgent {
812
+ /** Properties of an AppVersion. */
813
+ interface IAppVersion {
814
+ /** AppVersion primary */
815
+ primary?: (number|null);
816
+ /** AppVersion secondary */
817
+ secondary?: (number|null);
818
+ /** AppVersion tertiary */
819
+ tertiary?: (number|null);
820
+ /** AppVersion quaternary */
821
+ quaternary?: (number|null);
822
+ /** AppVersion quinary */
823
+ quinary?: (number|null);
824
+ }
825
+ /** Represents an AppVersion. */
826
+ class AppVersion implements IAppVersion {
827
+ /**
828
+ * Constructs a new AppVersion.
829
+ * @param [properties] Properties to set
830
+ */
831
+ constructor(properties?: Wa6.ClientPayload.UserAgent.IAppVersion);
832
+ /** AppVersion primary. */
833
+ public primary?: (number|null);
834
+ /** AppVersion secondary. */
835
+ public secondary?: (number|null);
836
+ /** AppVersion tertiary. */
837
+ public tertiary?: (number|null);
838
+ /** AppVersion quaternary. */
839
+ public quaternary?: (number|null);
840
+ /** AppVersion quinary. */
841
+ public quinary?: (number|null);
842
+ /** AppVersion _primary. */
843
+ public _primary?: "primary";
844
+ /** AppVersion _secondary. */
845
+ public _secondary?: "secondary";
846
+ /** AppVersion _tertiary. */
847
+ public _tertiary?: "tertiary";
848
+ /** AppVersion _quaternary. */
849
+ public _quaternary?: "quaternary";
850
+ /** AppVersion _quinary. */
851
+ public _quinary?: "quinary";
852
+ /**
853
+ * Creates a new AppVersion instance using the specified properties.
854
+ * @param [properties] Properties to set
855
+ * @returns AppVersion instance
856
+ */
857
+ public static create(properties?: Wa6.ClientPayload.UserAgent.IAppVersion): Wa6.ClientPayload.UserAgent.AppVersion;
858
+ /**
859
+ * Encodes the specified AppVersion message. Does not implicitly {@link Wa6.ClientPayload.UserAgent.AppVersion.verify|verify} messages.
860
+ * @param message AppVersion message or plain object to encode
861
+ * @param [writer] Writer to encode to
862
+ * @returns Writer
863
+ */
864
+ public static encode(message: Wa6.ClientPayload.UserAgent.IAppVersion, writer?: $protobuf.Writer): $protobuf.Writer;
865
+ /**
866
+ * Encodes the specified AppVersion message, length delimited. Does not implicitly {@link Wa6.ClientPayload.UserAgent.AppVersion.verify|verify} messages.
867
+ * @param message AppVersion message or plain object to encode
868
+ * @param [writer] Writer to encode to
869
+ * @returns Writer
870
+ */
871
+ public static encodeDelimited(message: Wa6.ClientPayload.UserAgent.IAppVersion, writer?: $protobuf.Writer): $protobuf.Writer;
872
+ /**
873
+ * Decodes an AppVersion message from the specified reader or buffer.
874
+ * @param reader Reader or buffer to decode from
875
+ * @param [length] Message length if known beforehand
876
+ * @returns AppVersion
877
+ * @throws {Error} If the payload is not a reader or valid buffer
878
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
879
+ */
880
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Wa6.ClientPayload.UserAgent.AppVersion;
881
+ /**
882
+ * Decodes an AppVersion message from the specified reader or buffer, length delimited.
883
+ * @param reader Reader or buffer to decode from
884
+ * @returns AppVersion
885
+ * @throws {Error} If the payload is not a reader or valid buffer
886
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
887
+ */
888
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Wa6.ClientPayload.UserAgent.AppVersion;
889
+ /**
890
+ * Verifies an AppVersion message.
891
+ * @param message Plain object to verify
892
+ * @returns `null` if valid, otherwise the reason why it is not
893
+ */
894
+ public static verify(message: { [k: string]: any }): (string|null);
895
+ /**
896
+ * Creates an AppVersion message from a plain object. Also converts values to their respective internal types.
897
+ * @param object Plain object
898
+ * @returns AppVersion
899
+ */
900
+ public static fromObject(object: { [k: string]: any }): Wa6.ClientPayload.UserAgent.AppVersion;
901
+ /**
902
+ * Creates a plain object from an AppVersion message. Also converts values to other types if specified.
903
+ * @param message AppVersion
904
+ * @param [options] Conversion options
905
+ * @returns Plain object
906
+ */
907
+ public static toObject(message: Wa6.ClientPayload.UserAgent.AppVersion, options?: $protobuf.IConversionOptions): { [k: string]: any };
908
+ /**
909
+ * Converts this AppVersion to JSON.
910
+ * @returns JSON object
911
+ */
912
+ public toJSON(): { [k: string]: any };
913
+ /**
914
+ * Gets the default type url for AppVersion
915
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
916
+ * @returns The default type url
917
+ */
918
+ public static getTypeUrl(typeUrlPrefix?: string): string;
919
+ }
920
+ /** DeviceType enum. */
921
+ enum DeviceType {
922
+ PHONE = 0,
923
+ TABLET = 1,
924
+ DESKTOP = 2,
925
+ WEARABLE = 3,
926
+ VR = 4
927
+ }
928
+ /** Platform enum. */
929
+ enum Platform {
930
+ ANDROID = 0,
931
+ IOS = 1,
932
+ WINDOWS_PHONE = 2,
933
+ BLACKBERRY = 3,
934
+ BLACKBERRYX = 4,
935
+ S40 = 5,
936
+ S60 = 6,
937
+ PYTHON_CLIENT = 7,
938
+ TIZEN = 8,
939
+ ENTERPRISE = 9,
940
+ SMB_ANDROID = 10,
941
+ KAIOS = 11,
942
+ SMB_IOS = 12,
943
+ WINDOWS = 13,
944
+ WEB = 14,
945
+ PORTAL = 15,
946
+ GREEN_ANDROID = 16,
947
+ GREEN_IPHONE = 17,
948
+ BLUE_ANDROID = 18,
949
+ BLUE_IPHONE = 19,
950
+ FBLITE_ANDROID = 20,
951
+ MLITE_ANDROID = 21,
952
+ IGLITE_ANDROID = 22,
953
+ PAGE = 23,
954
+ MACOS = 24,
955
+ OCULUS_MSG = 25,
956
+ OCULUS_CALL = 26,
957
+ MILAN = 27,
958
+ CAPI = 28,
959
+ WEAROS = 29,
960
+ ARDEVICE = 30,
961
+ VRDEVICE = 31,
962
+ BLUE_WEB = 32,
963
+ IPAD = 33,
964
+ TEST = 34,
965
+ SMART_GLASSES = 35
966
+ }
967
+ /** ReleaseChannel enum. */
968
+ enum ReleaseChannel {
969
+ RELEASE = 0,
970
+ BETA = 1,
971
+ ALPHA = 2,
972
+ DEBUG = 3
973
+ }
974
+ }
975
+ /** Properties of a WebInfo. */
976
+ interface IWebInfo {
977
+ /** WebInfo refToken */
978
+ refToken?: (string|null);
979
+ /** WebInfo version */
980
+ version?: (string|null);
981
+ /** WebInfo webdPayload */
982
+ webdPayload?: (Wa6.ClientPayload.WebInfo.IWebdPayload|null);
983
+ /** WebInfo webSubPlatform */
984
+ webSubPlatform?: (Wa6.ClientPayload.WebInfo.WebSubPlatform|null);
985
+ }
986
+ /** Represents a WebInfo. */
987
+ class WebInfo implements IWebInfo {
988
+ /**
989
+ * Constructs a new WebInfo.
990
+ * @param [properties] Properties to set
991
+ */
992
+ constructor(properties?: Wa6.ClientPayload.IWebInfo);
993
+ /** WebInfo refToken. */
994
+ public refToken?: (string|null);
995
+ /** WebInfo version. */
996
+ public version?: (string|null);
997
+ /** WebInfo webdPayload. */
998
+ public webdPayload?: (Wa6.ClientPayload.WebInfo.IWebdPayload|null);
999
+ /** WebInfo webSubPlatform. */
1000
+ public webSubPlatform?: (Wa6.ClientPayload.WebInfo.WebSubPlatform|null);
1001
+ /** WebInfo _refToken. */
1002
+ public _refToken?: "refToken";
1003
+ /** WebInfo _version. */
1004
+ public _version?: "version";
1005
+ /** WebInfo _webdPayload. */
1006
+ public _webdPayload?: "webdPayload";
1007
+ /** WebInfo _webSubPlatform. */
1008
+ public _webSubPlatform?: "webSubPlatform";
1009
+ /**
1010
+ * Creates a new WebInfo instance using the specified properties.
1011
+ * @param [properties] Properties to set
1012
+ * @returns WebInfo instance
1013
+ */
1014
+ public static create(properties?: Wa6.ClientPayload.IWebInfo): Wa6.ClientPayload.WebInfo;
1015
+ /**
1016
+ * Encodes the specified WebInfo message. Does not implicitly {@link Wa6.ClientPayload.WebInfo.verify|verify} messages.
1017
+ * @param message WebInfo message or plain object to encode
1018
+ * @param [writer] Writer to encode to
1019
+ * @returns Writer
1020
+ */
1021
+ public static encode(message: Wa6.ClientPayload.IWebInfo, writer?: $protobuf.Writer): $protobuf.Writer;
1022
+ /**
1023
+ * Encodes the specified WebInfo message, length delimited. Does not implicitly {@link Wa6.ClientPayload.WebInfo.verify|verify} messages.
1024
+ * @param message WebInfo message or plain object to encode
1025
+ * @param [writer] Writer to encode to
1026
+ * @returns Writer
1027
+ */
1028
+ public static encodeDelimited(message: Wa6.ClientPayload.IWebInfo, writer?: $protobuf.Writer): $protobuf.Writer;
1029
+ /**
1030
+ * Decodes a WebInfo message from the specified reader or buffer.
1031
+ * @param reader Reader or buffer to decode from
1032
+ * @param [length] Message length if known beforehand
1033
+ * @returns WebInfo
1034
+ * @throws {Error} If the payload is not a reader or valid buffer
1035
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1036
+ */
1037
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Wa6.ClientPayload.WebInfo;
1038
+ /**
1039
+ * Decodes a WebInfo message from the specified reader or buffer, length delimited.
1040
+ * @param reader Reader or buffer to decode from
1041
+ * @returns WebInfo
1042
+ * @throws {Error} If the payload is not a reader or valid buffer
1043
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1044
+ */
1045
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Wa6.ClientPayload.WebInfo;
1046
+ /**
1047
+ * Verifies a WebInfo message.
1048
+ * @param message Plain object to verify
1049
+ * @returns `null` if valid, otherwise the reason why it is not
1050
+ */
1051
+ public static verify(message: { [k: string]: any }): (string|null);
1052
+ /**
1053
+ * Creates a WebInfo message from a plain object. Also converts values to their respective internal types.
1054
+ * @param object Plain object
1055
+ * @returns WebInfo
1056
+ */
1057
+ public static fromObject(object: { [k: string]: any }): Wa6.ClientPayload.WebInfo;
1058
+ /**
1059
+ * Creates a plain object from a WebInfo message. Also converts values to other types if specified.
1060
+ * @param message WebInfo
1061
+ * @param [options] Conversion options
1062
+ * @returns Plain object
1063
+ */
1064
+ public static toObject(message: Wa6.ClientPayload.WebInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
1065
+ /**
1066
+ * Converts this WebInfo to JSON.
1067
+ * @returns JSON object
1068
+ */
1069
+ public toJSON(): { [k: string]: any };
1070
+ /**
1071
+ * Gets the default type url for WebInfo
1072
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1073
+ * @returns The default type url
1074
+ */
1075
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1076
+ }
1077
+ namespace WebInfo {
1078
+ /** WebSubPlatform enum. */
1079
+ enum WebSubPlatform {
1080
+ WEB_BROWSER = 0,
1081
+ APP_STORE = 1,
1082
+ WIN_STORE = 2,
1083
+ DARWIN = 3,
1084
+ WIN32 = 4,
1085
+ WIN_HYBRID = 5
1086
+ }
1087
+ /** Properties of a WebdPayload. */
1088
+ interface IWebdPayload {
1089
+ /** WebdPayload usesParticipantInKey */
1090
+ usesParticipantInKey?: (boolean|null);
1091
+ /** WebdPayload supportsStarredMessages */
1092
+ supportsStarredMessages?: (boolean|null);
1093
+ /** WebdPayload supportsDocumentMessages */
1094
+ supportsDocumentMessages?: (boolean|null);
1095
+ /** WebdPayload supportsUrlMessages */
1096
+ supportsUrlMessages?: (boolean|null);
1097
+ /** WebdPayload supportsMediaRetry */
1098
+ supportsMediaRetry?: (boolean|null);
1099
+ /** WebdPayload supportsE2EImage */
1100
+ supportsE2EImage?: (boolean|null);
1101
+ /** WebdPayload supportsE2EVideo */
1102
+ supportsE2EVideo?: (boolean|null);
1103
+ /** WebdPayload supportsE2EAudio */
1104
+ supportsE2EAudio?: (boolean|null);
1105
+ /** WebdPayload supportsE2EDocument */
1106
+ supportsE2EDocument?: (boolean|null);
1107
+ /** WebdPayload documentTypes */
1108
+ documentTypes?: (string|null);
1109
+ /** WebdPayload features */
1110
+ features?: (Uint8Array|null);
1111
+ }
1112
+ /** Represents a WebdPayload. */
1113
+ class WebdPayload implements IWebdPayload {
1114
+ /**
1115
+ * Constructs a new WebdPayload.
1116
+ * @param [properties] Properties to set
1117
+ */
1118
+ constructor(properties?: Wa6.ClientPayload.WebInfo.IWebdPayload);
1119
+ /** WebdPayload usesParticipantInKey. */
1120
+ public usesParticipantInKey?: (boolean|null);
1121
+ /** WebdPayload supportsStarredMessages. */
1122
+ public supportsStarredMessages?: (boolean|null);
1123
+ /** WebdPayload supportsDocumentMessages. */
1124
+ public supportsDocumentMessages?: (boolean|null);
1125
+ /** WebdPayload supportsUrlMessages. */
1126
+ public supportsUrlMessages?: (boolean|null);
1127
+ /** WebdPayload supportsMediaRetry. */
1128
+ public supportsMediaRetry?: (boolean|null);
1129
+ /** WebdPayload supportsE2EImage. */
1130
+ public supportsE2EImage?: (boolean|null);
1131
+ /** WebdPayload supportsE2EVideo. */
1132
+ public supportsE2EVideo?: (boolean|null);
1133
+ /** WebdPayload supportsE2EAudio. */
1134
+ public supportsE2EAudio?: (boolean|null);
1135
+ /** WebdPayload supportsE2EDocument. */
1136
+ public supportsE2EDocument?: (boolean|null);
1137
+ /** WebdPayload documentTypes. */
1138
+ public documentTypes?: (string|null);
1139
+ /** WebdPayload features. */
1140
+ public features?: (Uint8Array|null);
1141
+ /** WebdPayload _usesParticipantInKey. */
1142
+ public _usesParticipantInKey?: "usesParticipantInKey";
1143
+ /** WebdPayload _supportsStarredMessages. */
1144
+ public _supportsStarredMessages?: "supportsStarredMessages";
1145
+ /** WebdPayload _supportsDocumentMessages. */
1146
+ public _supportsDocumentMessages?: "supportsDocumentMessages";
1147
+ /** WebdPayload _supportsUrlMessages. */
1148
+ public _supportsUrlMessages?: "supportsUrlMessages";
1149
+ /** WebdPayload _supportsMediaRetry. */
1150
+ public _supportsMediaRetry?: "supportsMediaRetry";
1151
+ /** WebdPayload _supportsE2EImage. */
1152
+ public _supportsE2EImage?: "supportsE2EImage";
1153
+ /** WebdPayload _supportsE2EVideo. */
1154
+ public _supportsE2EVideo?: "supportsE2EVideo";
1155
+ /** WebdPayload _supportsE2EAudio. */
1156
+ public _supportsE2EAudio?: "supportsE2EAudio";
1157
+ /** WebdPayload _supportsE2EDocument. */
1158
+ public _supportsE2EDocument?: "supportsE2EDocument";
1159
+ /** WebdPayload _documentTypes. */
1160
+ public _documentTypes?: "documentTypes";
1161
+ /** WebdPayload _features. */
1162
+ public _features?: "features";
1163
+ /**
1164
+ * Creates a new WebdPayload instance using the specified properties.
1165
+ * @param [properties] Properties to set
1166
+ * @returns WebdPayload instance
1167
+ */
1168
+ public static create(properties?: Wa6.ClientPayload.WebInfo.IWebdPayload): Wa6.ClientPayload.WebInfo.WebdPayload;
1169
+ /**
1170
+ * Encodes the specified WebdPayload message. Does not implicitly {@link Wa6.ClientPayload.WebInfo.WebdPayload.verify|verify} messages.
1171
+ * @param message WebdPayload message or plain object to encode
1172
+ * @param [writer] Writer to encode to
1173
+ * @returns Writer
1174
+ */
1175
+ public static encode(message: Wa6.ClientPayload.WebInfo.IWebdPayload, writer?: $protobuf.Writer): $protobuf.Writer;
1176
+ /**
1177
+ * Encodes the specified WebdPayload message, length delimited. Does not implicitly {@link Wa6.ClientPayload.WebInfo.WebdPayload.verify|verify} messages.
1178
+ * @param message WebdPayload message or plain object to encode
1179
+ * @param [writer] Writer to encode to
1180
+ * @returns Writer
1181
+ */
1182
+ public static encodeDelimited(message: Wa6.ClientPayload.WebInfo.IWebdPayload, writer?: $protobuf.Writer): $protobuf.Writer;
1183
+ /**
1184
+ * Decodes a WebdPayload message from the specified reader or buffer.
1185
+ * @param reader Reader or buffer to decode from
1186
+ * @param [length] Message length if known beforehand
1187
+ * @returns WebdPayload
1188
+ * @throws {Error} If the payload is not a reader or valid buffer
1189
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1190
+ */
1191
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Wa6.ClientPayload.WebInfo.WebdPayload;
1192
+ /**
1193
+ * Decodes a WebdPayload message from the specified reader or buffer, length delimited.
1194
+ * @param reader Reader or buffer to decode from
1195
+ * @returns WebdPayload
1196
+ * @throws {Error} If the payload is not a reader or valid buffer
1197
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1198
+ */
1199
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Wa6.ClientPayload.WebInfo.WebdPayload;
1200
+ /**
1201
+ * Verifies a WebdPayload message.
1202
+ * @param message Plain object to verify
1203
+ * @returns `null` if valid, otherwise the reason why it is not
1204
+ */
1205
+ public static verify(message: { [k: string]: any }): (string|null);
1206
+ /**
1207
+ * Creates a WebdPayload message from a plain object. Also converts values to their respective internal types.
1208
+ * @param object Plain object
1209
+ * @returns WebdPayload
1210
+ */
1211
+ public static fromObject(object: { [k: string]: any }): Wa6.ClientPayload.WebInfo.WebdPayload;
1212
+ /**
1213
+ * Creates a plain object from a WebdPayload message. Also converts values to other types if specified.
1214
+ * @param message WebdPayload
1215
+ * @param [options] Conversion options
1216
+ * @returns Plain object
1217
+ */
1218
+ public static toObject(message: Wa6.ClientPayload.WebInfo.WebdPayload, options?: $protobuf.IConversionOptions): { [k: string]: any };
1219
+ /**
1220
+ * Converts this WebdPayload to JSON.
1221
+ * @returns JSON object
1222
+ */
1223
+ public toJSON(): { [k: string]: any };
1224
+ /**
1225
+ * Gets the default type url for WebdPayload
1226
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1227
+ * @returns The default type url
1228
+ */
1229
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1230
+ }
1231
+ }
1232
+ }
1233
+ /** Properties of a HandshakeMessage. */
1234
+ interface IHandshakeMessage {
1235
+ /** HandshakeMessage clientHello */
1236
+ clientHello?: (Wa6.HandshakeMessage.IClientHello|null);
1237
+ /** HandshakeMessage serverHello */
1238
+ serverHello?: (Wa6.HandshakeMessage.IServerHello|null);
1239
+ /** HandshakeMessage clientFinish */
1240
+ clientFinish?: (Wa6.HandshakeMessage.IClientFinish|null);
1241
+ }
1242
+ /** Represents a HandshakeMessage. */
1243
+ class HandshakeMessage implements IHandshakeMessage {
1244
+ /**
1245
+ * Constructs a new HandshakeMessage.
1246
+ * @param [properties] Properties to set
1247
+ */
1248
+ constructor(properties?: Wa6.IHandshakeMessage);
1249
+ /** HandshakeMessage clientHello. */
1250
+ public clientHello?: (Wa6.HandshakeMessage.IClientHello|null);
1251
+ /** HandshakeMessage serverHello. */
1252
+ public serverHello?: (Wa6.HandshakeMessage.IServerHello|null);
1253
+ /** HandshakeMessage clientFinish. */
1254
+ public clientFinish?: (Wa6.HandshakeMessage.IClientFinish|null);
1255
+ /** HandshakeMessage _clientHello. */
1256
+ public _clientHello?: "clientHello";
1257
+ /** HandshakeMessage _serverHello. */
1258
+ public _serverHello?: "serverHello";
1259
+ /** HandshakeMessage _clientFinish. */
1260
+ public _clientFinish?: "clientFinish";
1261
+ /**
1262
+ * Creates a new HandshakeMessage instance using the specified properties.
1263
+ * @param [properties] Properties to set
1264
+ * @returns HandshakeMessage instance
1265
+ */
1266
+ public static create(properties?: Wa6.IHandshakeMessage): Wa6.HandshakeMessage;
1267
+ /**
1268
+ * Encodes the specified HandshakeMessage message. Does not implicitly {@link Wa6.HandshakeMessage.verify|verify} messages.
1269
+ * @param message HandshakeMessage message or plain object to encode
1270
+ * @param [writer] Writer to encode to
1271
+ * @returns Writer
1272
+ */
1273
+ public static encode(message: Wa6.IHandshakeMessage, writer?: $protobuf.Writer): $protobuf.Writer;
1274
+ /**
1275
+ * Encodes the specified HandshakeMessage message, length delimited. Does not implicitly {@link Wa6.HandshakeMessage.verify|verify} messages.
1276
+ * @param message HandshakeMessage message or plain object to encode
1277
+ * @param [writer] Writer to encode to
1278
+ * @returns Writer
1279
+ */
1280
+ public static encodeDelimited(message: Wa6.IHandshakeMessage, writer?: $protobuf.Writer): $protobuf.Writer;
1281
+ /**
1282
+ * Decodes a HandshakeMessage message from the specified reader or buffer.
1283
+ * @param reader Reader or buffer to decode from
1284
+ * @param [length] Message length if known beforehand
1285
+ * @returns HandshakeMessage
1286
+ * @throws {Error} If the payload is not a reader or valid buffer
1287
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1288
+ */
1289
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Wa6.HandshakeMessage;
1290
+ /**
1291
+ * Decodes a HandshakeMessage message from the specified reader or buffer, length delimited.
1292
+ * @param reader Reader or buffer to decode from
1293
+ * @returns HandshakeMessage
1294
+ * @throws {Error} If the payload is not a reader or valid buffer
1295
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1296
+ */
1297
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Wa6.HandshakeMessage;
1298
+ /**
1299
+ * Verifies a HandshakeMessage message.
1300
+ * @param message Plain object to verify
1301
+ * @returns `null` if valid, otherwise the reason why it is not
1302
+ */
1303
+ public static verify(message: { [k: string]: any }): (string|null);
1304
+ /**
1305
+ * Creates a HandshakeMessage message from a plain object. Also converts values to their respective internal types.
1306
+ * @param object Plain object
1307
+ * @returns HandshakeMessage
1308
+ */
1309
+ public static fromObject(object: { [k: string]: any }): Wa6.HandshakeMessage;
1310
+ /**
1311
+ * Creates a plain object from a HandshakeMessage message. Also converts values to other types if specified.
1312
+ * @param message HandshakeMessage
1313
+ * @param [options] Conversion options
1314
+ * @returns Plain object
1315
+ */
1316
+ public static toObject(message: Wa6.HandshakeMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
1317
+ /**
1318
+ * Converts this HandshakeMessage to JSON.
1319
+ * @returns JSON object
1320
+ */
1321
+ public toJSON(): { [k: string]: any };
1322
+ /**
1323
+ * Gets the default type url for HandshakeMessage
1324
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1325
+ * @returns The default type url
1326
+ */
1327
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1328
+ }
1329
+ namespace HandshakeMessage {
1330
+ /** Properties of a ClientFinish. */
1331
+ interface IClientFinish {
1332
+ /** ClientFinish static */
1333
+ "static"?: (Uint8Array|null);
1334
+ /** ClientFinish payload */
1335
+ payload?: (Uint8Array|null);
1336
+ }
1337
+ /** Represents a ClientFinish. */
1338
+ class ClientFinish implements IClientFinish {
1339
+ /**
1340
+ * Constructs a new ClientFinish.
1341
+ * @param [properties] Properties to set
1342
+ */
1343
+ constructor(properties?: Wa6.HandshakeMessage.IClientFinish);
1344
+ /** ClientFinish static. */
1345
+ public static?: (Uint8Array|null);
1346
+ /** ClientFinish payload. */
1347
+ public payload?: (Uint8Array|null);
1348
+ /** ClientFinish _static. */
1349
+ public _static?: "static";
1350
+ /** ClientFinish _payload. */
1351
+ public _payload?: "payload";
1352
+ /**
1353
+ * Creates a new ClientFinish instance using the specified properties.
1354
+ * @param [properties] Properties to set
1355
+ * @returns ClientFinish instance
1356
+ */
1357
+ public static create(properties?: Wa6.HandshakeMessage.IClientFinish): Wa6.HandshakeMessage.ClientFinish;
1358
+ /**
1359
+ * Encodes the specified ClientFinish message. Does not implicitly {@link Wa6.HandshakeMessage.ClientFinish.verify|verify} messages.
1360
+ * @param message ClientFinish message or plain object to encode
1361
+ * @param [writer] Writer to encode to
1362
+ * @returns Writer
1363
+ */
1364
+ public static encode(message: Wa6.HandshakeMessage.IClientFinish, writer?: $protobuf.Writer): $protobuf.Writer;
1365
+ /**
1366
+ * Encodes the specified ClientFinish message, length delimited. Does not implicitly {@link Wa6.HandshakeMessage.ClientFinish.verify|verify} messages.
1367
+ * @param message ClientFinish message or plain object to encode
1368
+ * @param [writer] Writer to encode to
1369
+ * @returns Writer
1370
+ */
1371
+ public static encodeDelimited(message: Wa6.HandshakeMessage.IClientFinish, writer?: $protobuf.Writer): $protobuf.Writer;
1372
+ /**
1373
+ * Decodes a ClientFinish message from the specified reader or buffer.
1374
+ * @param reader Reader or buffer to decode from
1375
+ * @param [length] Message length if known beforehand
1376
+ * @returns ClientFinish
1377
+ * @throws {Error} If the payload is not a reader or valid buffer
1378
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1379
+ */
1380
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Wa6.HandshakeMessage.ClientFinish;
1381
+ /**
1382
+ * Decodes a ClientFinish message from the specified reader or buffer, length delimited.
1383
+ * @param reader Reader or buffer to decode from
1384
+ * @returns ClientFinish
1385
+ * @throws {Error} If the payload is not a reader or valid buffer
1386
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1387
+ */
1388
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Wa6.HandshakeMessage.ClientFinish;
1389
+ /**
1390
+ * Verifies a ClientFinish message.
1391
+ * @param message Plain object to verify
1392
+ * @returns `null` if valid, otherwise the reason why it is not
1393
+ */
1394
+ public static verify(message: { [k: string]: any }): (string|null);
1395
+ /**
1396
+ * Creates a ClientFinish message from a plain object. Also converts values to their respective internal types.
1397
+ * @param object Plain object
1398
+ * @returns ClientFinish
1399
+ */
1400
+ public static fromObject(object: { [k: string]: any }): Wa6.HandshakeMessage.ClientFinish;
1401
+ /**
1402
+ * Creates a plain object from a ClientFinish message. Also converts values to other types if specified.
1403
+ * @param message ClientFinish
1404
+ * @param [options] Conversion options
1405
+ * @returns Plain object
1406
+ */
1407
+ public static toObject(message: Wa6.HandshakeMessage.ClientFinish, options?: $protobuf.IConversionOptions): { [k: string]: any };
1408
+ /**
1409
+ * Converts this ClientFinish to JSON.
1410
+ * @returns JSON object
1411
+ */
1412
+ public toJSON(): { [k: string]: any };
1413
+ /**
1414
+ * Gets the default type url for ClientFinish
1415
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1416
+ * @returns The default type url
1417
+ */
1418
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1419
+ }
1420
+ /** Properties of a ClientHello. */
1421
+ interface IClientHello {
1422
+ /** ClientHello ephemeral */
1423
+ ephemeral?: (Uint8Array|null);
1424
+ /** ClientHello static */
1425
+ "static"?: (Uint8Array|null);
1426
+ /** ClientHello payload */
1427
+ payload?: (Uint8Array|null);
1428
+ }
1429
+ /** Represents a ClientHello. */
1430
+ class ClientHello implements IClientHello {
1431
+ /**
1432
+ * Constructs a new ClientHello.
1433
+ * @param [properties] Properties to set
1434
+ */
1435
+ constructor(properties?: Wa6.HandshakeMessage.IClientHello);
1436
+ /** ClientHello ephemeral. */
1437
+ public ephemeral?: (Uint8Array|null);
1438
+ /** ClientHello static. */
1439
+ public static?: (Uint8Array|null);
1440
+ /** ClientHello payload. */
1441
+ public payload?: (Uint8Array|null);
1442
+ /** ClientHello _ephemeral. */
1443
+ public _ephemeral?: "ephemeral";
1444
+ /** ClientHello _static. */
1445
+ public _static?: "static";
1446
+ /** ClientHello _payload. */
1447
+ public _payload?: "payload";
1448
+ /**
1449
+ * Creates a new ClientHello instance using the specified properties.
1450
+ * @param [properties] Properties to set
1451
+ * @returns ClientHello instance
1452
+ */
1453
+ public static create(properties?: Wa6.HandshakeMessage.IClientHello): Wa6.HandshakeMessage.ClientHello;
1454
+ /**
1455
+ * Encodes the specified ClientHello message. Does not implicitly {@link Wa6.HandshakeMessage.ClientHello.verify|verify} messages.
1456
+ * @param message ClientHello message or plain object to encode
1457
+ * @param [writer] Writer to encode to
1458
+ * @returns Writer
1459
+ */
1460
+ public static encode(message: Wa6.HandshakeMessage.IClientHello, writer?: $protobuf.Writer): $protobuf.Writer;
1461
+ /**
1462
+ * Encodes the specified ClientHello message, length delimited. Does not implicitly {@link Wa6.HandshakeMessage.ClientHello.verify|verify} messages.
1463
+ * @param message ClientHello message or plain object to encode
1464
+ * @param [writer] Writer to encode to
1465
+ * @returns Writer
1466
+ */
1467
+ public static encodeDelimited(message: Wa6.HandshakeMessage.IClientHello, writer?: $protobuf.Writer): $protobuf.Writer;
1468
+ /**
1469
+ * Decodes a ClientHello message from the specified reader or buffer.
1470
+ * @param reader Reader or buffer to decode from
1471
+ * @param [length] Message length if known beforehand
1472
+ * @returns ClientHello
1473
+ * @throws {Error} If the payload is not a reader or valid buffer
1474
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1475
+ */
1476
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Wa6.HandshakeMessage.ClientHello;
1477
+ /**
1478
+ * Decodes a ClientHello message from the specified reader or buffer, length delimited.
1479
+ * @param reader Reader or buffer to decode from
1480
+ * @returns ClientHello
1481
+ * @throws {Error} If the payload is not a reader or valid buffer
1482
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1483
+ */
1484
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Wa6.HandshakeMessage.ClientHello;
1485
+ /**
1486
+ * Verifies a ClientHello message.
1487
+ * @param message Plain object to verify
1488
+ * @returns `null` if valid, otherwise the reason why it is not
1489
+ */
1490
+ public static verify(message: { [k: string]: any }): (string|null);
1491
+ /**
1492
+ * Creates a ClientHello message from a plain object. Also converts values to their respective internal types.
1493
+ * @param object Plain object
1494
+ * @returns ClientHello
1495
+ */
1496
+ public static fromObject(object: { [k: string]: any }): Wa6.HandshakeMessage.ClientHello;
1497
+ /**
1498
+ * Creates a plain object from a ClientHello message. Also converts values to other types if specified.
1499
+ * @param message ClientHello
1500
+ * @param [options] Conversion options
1501
+ * @returns Plain object
1502
+ */
1503
+ public static toObject(message: Wa6.HandshakeMessage.ClientHello, options?: $protobuf.IConversionOptions): { [k: string]: any };
1504
+ /**
1505
+ * Converts this ClientHello to JSON.
1506
+ * @returns JSON object
1507
+ */
1508
+ public toJSON(): { [k: string]: any };
1509
+ /**
1510
+ * Gets the default type url for ClientHello
1511
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1512
+ * @returns The default type url
1513
+ */
1514
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1515
+ }
1516
+ /** Properties of a ServerHello. */
1517
+ interface IServerHello {
1518
+ /** ServerHello ephemeral */
1519
+ ephemeral?: (Uint8Array|null);
1520
+ /** ServerHello static */
1521
+ "static"?: (Uint8Array|null);
1522
+ /** ServerHello payload */
1523
+ payload?: (Uint8Array|null);
1524
+ }
1525
+ /** Represents a ServerHello. */
1526
+ class ServerHello implements IServerHello {
1527
+ /**
1528
+ * Constructs a new ServerHello.
1529
+ * @param [properties] Properties to set
1530
+ */
1531
+ constructor(properties?: Wa6.HandshakeMessage.IServerHello);
1532
+ /** ServerHello ephemeral. */
1533
+ public ephemeral?: (Uint8Array|null);
1534
+ /** ServerHello static. */
1535
+ public static?: (Uint8Array|null);
1536
+ /** ServerHello payload. */
1537
+ public payload?: (Uint8Array|null);
1538
+ /** ServerHello _ephemeral. */
1539
+ public _ephemeral?: "ephemeral";
1540
+ /** ServerHello _static. */
1541
+ public _static?: "static";
1542
+ /** ServerHello _payload. */
1543
+ public _payload?: "payload";
1544
+ /**
1545
+ * Creates a new ServerHello instance using the specified properties.
1546
+ * @param [properties] Properties to set
1547
+ * @returns ServerHello instance
1548
+ */
1549
+ public static create(properties?: Wa6.HandshakeMessage.IServerHello): Wa6.HandshakeMessage.ServerHello;
1550
+ /**
1551
+ * Encodes the specified ServerHello message. Does not implicitly {@link Wa6.HandshakeMessage.ServerHello.verify|verify} messages.
1552
+ * @param message ServerHello message or plain object to encode
1553
+ * @param [writer] Writer to encode to
1554
+ * @returns Writer
1555
+ */
1556
+ public static encode(message: Wa6.HandshakeMessage.IServerHello, writer?: $protobuf.Writer): $protobuf.Writer;
1557
+ /**
1558
+ * Encodes the specified ServerHello message, length delimited. Does not implicitly {@link Wa6.HandshakeMessage.ServerHello.verify|verify} messages.
1559
+ * @param message ServerHello message or plain object to encode
1560
+ * @param [writer] Writer to encode to
1561
+ * @returns Writer
1562
+ */
1563
+ public static encodeDelimited(message: Wa6.HandshakeMessage.IServerHello, writer?: $protobuf.Writer): $protobuf.Writer;
1564
+ /**
1565
+ * Decodes a ServerHello message from the specified reader or buffer.
1566
+ * @param reader Reader or buffer to decode from
1567
+ * @param [length] Message length if known beforehand
1568
+ * @returns ServerHello
1569
+ * @throws {Error} If the payload is not a reader or valid buffer
1570
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1571
+ */
1572
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Wa6.HandshakeMessage.ServerHello;
1573
+ /**
1574
+ * Decodes a ServerHello message from the specified reader or buffer, length delimited.
1575
+ * @param reader Reader or buffer to decode from
1576
+ * @returns ServerHello
1577
+ * @throws {Error} If the payload is not a reader or valid buffer
1578
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1579
+ */
1580
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Wa6.HandshakeMessage.ServerHello;
1581
+ /**
1582
+ * Verifies a ServerHello message.
1583
+ * @param message Plain object to verify
1584
+ * @returns `null` if valid, otherwise the reason why it is not
1585
+ */
1586
+ public static verify(message: { [k: string]: any }): (string|null);
1587
+ /**
1588
+ * Creates a ServerHello message from a plain object. Also converts values to their respective internal types.
1589
+ * @param object Plain object
1590
+ * @returns ServerHello
1591
+ */
1592
+ public static fromObject(object: { [k: string]: any }): Wa6.HandshakeMessage.ServerHello;
1593
+ /**
1594
+ * Creates a plain object from a ServerHello message. Also converts values to other types if specified.
1595
+ * @param message ServerHello
1596
+ * @param [options] Conversion options
1597
+ * @returns Plain object
1598
+ */
1599
+ public static toObject(message: Wa6.HandshakeMessage.ServerHello, options?: $protobuf.IConversionOptions): { [k: string]: any };
1600
+ /**
1601
+ * Converts this ServerHello to JSON.
1602
+ * @returns JSON object
1603
+ */
1604
+ public toJSON(): { [k: string]: any };
1605
+ /**
1606
+ * Gets the default type url for ServerHello
1607
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1608
+ * @returns The default type url
1609
+ */
1610
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1611
+ }
1612
+ }
1613
+ }