@hansaka02/baileys 7.3.2 → 7.3.4

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