sanka-baileyss 1.4.8

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