@hansaka02/baileys 7.3.2 → 7.3.6

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 (210) hide show
  1. package/lib/Defaults/baileys-version.json +2 -2
  2. package/lib/Defaults/connection.js +51 -0
  3. package/lib/Defaults/constants.js +74 -0
  4. package/lib/Defaults/history.js +19 -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 +5 -18
  13. package/lib/Signal/Group/sender-key-distribution-message.js +7 -7
  14. package/lib/Signal/Group/sender-key-message.js +12 -8
  15. package/lib/Signal/Group/sender-key-record.js +7 -16
  16. package/lib/Signal/Group/sender-key-state.js +15 -61
  17. package/lib/Signal/Group/sender-message-key.js +2 -2
  18. package/lib/Signal/libsignal.js +237 -177
  19. package/lib/Signal/lid-mapping.js +128 -71
  20. package/lib/Socket/Client/types.js +2 -2
  21. package/lib/Socket/Client/websocket.js +25 -16
  22. package/lib/Socket/business.js +46 -33
  23. package/lib/Socket/chats.js +286 -170
  24. package/lib/Socket/community.js +215 -77
  25. package/lib/Socket/groups.js +77 -61
  26. package/lib/Socket/index.js +4 -4
  27. package/lib/Socket/messages-recv.js +629 -457
  28. package/lib/Socket/messages-send.js +645 -656
  29. package/lib/Socket/mex.js +61 -0
  30. package/lib/Socket/newsletter.js +166 -245
  31. package/lib/Socket/socket.js +396 -170
  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/Newsletter.js +32 -25
  39. package/lib/Types/State.js +4 -4
  40. package/lib/Types/index.js +28 -12
  41. package/lib/Utils/auth-utils.js +212 -375
  42. package/lib/Utils/baileys-event-stream.js +68 -69
  43. package/lib/Utils/browser-utils.js +43 -0
  44. package/lib/Utils/business.js +63 -53
  45. package/lib/Utils/chat-utils.js +241 -106
  46. package/lib/Utils/crypto.js +25 -45
  47. package/lib/Utils/decode-wa-message.js +361 -311
  48. package/lib/Utils/event-buffer.js +97 -42
  49. package/lib/Utils/generics.js +90 -207
  50. package/lib/Utils/history.js +29 -27
  51. package/lib/Utils/index.js +28 -14
  52. package/lib/Utils/link-preview.js +24 -62
  53. package/lib/Utils/logger.js +5 -5
  54. package/lib/Utils/lt-hash.js +29 -23
  55. package/lib/Utils/make-mutex.js +26 -28
  56. package/lib/Utils/message-retry-manager.js +55 -7
  57. package/lib/Utils/messages-media.js +434 -247
  58. package/lib/Utils/messages.js +963 -917
  59. package/lib/Utils/noise-handler.js +60 -20
  60. package/lib/Utils/pre-key-manager.js +126 -0
  61. package/lib/Utils/process-message.js +216 -141
  62. package/lib/Utils/signal.js +75 -37
  63. package/lib/Utils/use-multi-file-auth-state.js +18 -22
  64. package/lib/Utils/validate-connection.js +96 -66
  65. package/lib/WABinary/constants.js +1268 -1268
  66. package/lib/WABinary/decode.js +62 -34
  67. package/lib/WABinary/encode.js +57 -36
  68. package/lib/WABinary/generic-utils.js +4 -4
  69. package/lib/WABinary/index.js +27 -11
  70. package/lib/WABinary/jid-utils.js +58 -11
  71. package/lib/WAM/constants.js +19064 -11563
  72. package/lib/WAM/encode.js +71 -14
  73. package/lib/WAM/index.js +27 -11
  74. package/lib/WAUSync/Protocols/USyncBotProfileProtocol.js +20 -16
  75. package/lib/WAUSync/Protocols/USyncContactProtocol.js +2 -2
  76. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +7 -4
  77. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +2 -2
  78. package/lib/WAUSync/Protocols/USyncLIDProtocol.js +0 -2
  79. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +2 -2
  80. package/lib/WAUSync/Protocols/index.js +27 -11
  81. package/lib/WAUSync/USyncQuery.js +51 -28
  82. package/lib/WAUSync/index.js +27 -11
  83. package/lib/index.js +60 -31
  84. package/package.json +12 -17
  85. package/WAProto/AICommon/AICommon.d.ts +0 -11702
  86. package/WAProto/Adv/Adv.d.ts +0 -643
  87. package/WAProto/BotMetadata/BotMetadata.d.ts +0 -5654
  88. package/WAProto/Cert/Cert.d.ts +0 -613
  89. package/WAProto/ChatLockSettings/ChatLockSettings.d.ts +0 -476
  90. package/WAProto/CompanionReg/CompanionReg.d.ts +0 -1361
  91. package/WAProto/DeviceCapabilities/DeviceCapabilities.d.ts +0 -577
  92. package/WAProto/E2E/E2E.d.ts +0 -41724
  93. package/WAProto/Ephemeral/Ephemeral.d.ts +0 -114
  94. package/WAProto/HistorySync/HistorySync.d.ts +0 -51700
  95. package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.d.ts +0 -229
  96. package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.d.ts +0 -583
  97. package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.d.ts +0 -42897
  98. package/WAProto/MmsRetry/MmsRetry.d.ts +0 -243
  99. package/WAProto/Protocol/Protocol.d.ts +0 -270
  100. package/WAProto/Reporting/Reporting.d.ts +0 -371
  101. package/WAProto/ServerSync/ServerSync.d.ts +0 -1285
  102. package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.d.ts +0 -1868
  103. package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.d.ts +0 -767
  104. package/WAProto/StatusAttributions/StatusAttributions.d.ts +0 -1027
  105. package/WAProto/SyncAction/SyncAction.d.ts +0 -11193
  106. package/WAProto/UserPassword/UserPassword.d.ts +0 -363
  107. package/WAProto/VnameCert/VnameCert.d.ts +0 -821
  108. package/WAProto/Wa6/Wa6.d.ts +0 -2128
  109. package/WAProto/Web/Web.d.ts +0 -46383
  110. package/WAProto/index.d.ts +0 -55
  111. package/lib/Defaults/index.d.ts +0 -77
  112. package/lib/Signal/Group/ciphertext-message.d.ts +0 -9
  113. package/lib/Signal/Group/group-session-builder.d.ts +0 -17
  114. package/lib/Signal/Group/group_cipher.d.ts +0 -19
  115. package/lib/Signal/Group/index.d.ts +0 -11
  116. package/lib/Signal/Group/keyhelper.d.ts +0 -16
  117. package/lib/Signal/Group/sender-chain-key.d.ts +0 -14
  118. package/lib/Signal/Group/sender-key-distribution-message.d.ts +0 -17
  119. package/lib/Signal/Group/sender-key-message.d.ts +0 -19
  120. package/lib/Signal/Group/sender-key-name.d.ts +0 -19
  121. package/lib/Signal/Group/sender-key-record.d.ts +0 -32
  122. package/lib/Signal/Group/sender-key-state.d.ts +0 -44
  123. package/lib/Signal/Group/sender-message-key.d.ts +0 -11
  124. package/lib/Signal/libsignal.d.ts +0 -8
  125. package/lib/Signal/lid-mapping.d.ts +0 -28
  126. package/lib/Socket/Client/index.d.ts +0 -2
  127. package/lib/Socket/Client/types.d.ts +0 -16
  128. package/lib/Socket/Client/websocket.d.ts +0 -13
  129. package/lib/Socket/business.d.ts +0 -187
  130. package/lib/Socket/chats.d.ts +0 -97
  131. package/lib/Socket/community.d.ts +0 -129
  132. package/lib/Socket/groups.d.ts +0 -129
  133. package/lib/Socket/index.d.ts +0 -191
  134. package/lib/Socket/messages-recv.d.ts +0 -174
  135. package/lib/Socket/messages-send.d.ts +0 -165
  136. package/lib/Socket/newsletter.d.ts +0 -145
  137. package/lib/Socket/socket.d.ts +0 -45
  138. package/lib/Socket/usync.d.ts +0 -37
  139. package/lib/Socket/usync.js +0 -83
  140. package/lib/Store/index.d.ts +0 -4
  141. package/lib/Store/make-cache-manager-store.d.ts +0 -14
  142. package/lib/Store/make-in-memory-store.d.ts +0 -123
  143. package/lib/Store/make-ordered-dictionary.d.ts +0 -12
  144. package/lib/Store/object-repository.d.ts +0 -10
  145. package/lib/Types/Auth.d.ts +0 -121
  146. package/lib/Types/Bussiness.d.ts +0 -28
  147. package/lib/Types/Call.d.ts +0 -14
  148. package/lib/Types/Chat.d.ts +0 -143
  149. package/lib/Types/Contact.d.ts +0 -23
  150. package/lib/Types/Events.d.ts +0 -226
  151. package/lib/Types/GroupMetadata.d.ts +0 -66
  152. package/lib/Types/Label.d.ts +0 -48
  153. package/lib/Types/LabelAssociation.d.ts +0 -35
  154. package/lib/Types/Message.d.ts +0 -484
  155. package/lib/Types/MexUpdates.d.ts +0 -9
  156. package/lib/Types/Newsletter.d.ts +0 -109
  157. package/lib/Types/Product.d.ts +0 -92
  158. package/lib/Types/Signal.d.ts +0 -98
  159. package/lib/Types/Socket.d.ts +0 -141
  160. package/lib/Types/State.d.ts +0 -41
  161. package/lib/Types/USync.d.ts +0 -26
  162. package/lib/Types/index.d.ts +0 -80
  163. package/lib/Utils/auth-utils.d.ts +0 -21
  164. package/lib/Utils/baileys-event-stream.d.ts +0 -18
  165. package/lib/Utils/business.d.ts +0 -29
  166. package/lib/Utils/chat-utils.d.ts +0 -82
  167. package/lib/Utils/crypto.d.ts +0 -56
  168. package/lib/Utils/decode-wa-message.d.ts +0 -53
  169. package/lib/Utils/event-buffer.d.ts +0 -39
  170. package/lib/Utils/generics.d.ts +0 -117
  171. package/lib/Utils/history.d.ts +0 -23
  172. package/lib/Utils/index.d.ts +0 -20
  173. package/lib/Utils/link-preview.d.ts +0 -23
  174. package/lib/Utils/logger.d.ts +0 -13
  175. package/lib/Utils/lt-hash.d.ts +0 -14
  176. package/lib/Utils/make-mutex.d.ts +0 -9
  177. package/lib/Utils/message-retry-manager.d.ts +0 -88
  178. package/lib/Utils/messages-media.d.ts +0 -135
  179. package/lib/Utils/messages.d.ts +0 -105
  180. package/lib/Utils/noise-handler.d.ts +0 -20
  181. package/lib/Utils/process-message.d.ts +0 -49
  182. package/lib/Utils/signal.d.ts +0 -42
  183. package/lib/Utils/use-mongo-file-auth-state.d.ts +0 -6
  184. package/lib/Utils/use-mongo-file-auth-state.js +0 -84
  185. package/lib/Utils/use-multi-file-auth-state.d.ts +0 -13
  186. package/lib/Utils/use-single-file-auth-state.d.ts +0 -13
  187. package/lib/Utils/use-single-file-auth-state.js +0 -80
  188. package/lib/Utils/validate-connection.d.ts +0 -13
  189. package/lib/WABinary/constants.d.ts +0 -30
  190. package/lib/WABinary/decode.d.ts +0 -9
  191. package/lib/WABinary/encode.d.ts +0 -3
  192. package/lib/WABinary/generic-utils.d.ts +0 -28
  193. package/lib/WABinary/index.d.ts +0 -5
  194. package/lib/WABinary/jid-utils.d.ts +0 -58
  195. package/lib/WABinary/types.d.ts +0 -22
  196. package/lib/WAM/BinaryInfo.d.ts +0 -16
  197. package/lib/WAM/constants.d.ts +0 -47
  198. package/lib/WAM/encode.d.ts +0 -3
  199. package/lib/WAM/index.d.ts +0 -3
  200. package/lib/WAUSync/Protocols/USyncBotProfileProtocol.d.ts +0 -28
  201. package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +0 -10
  202. package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +0 -26
  203. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +0 -14
  204. package/lib/WAUSync/Protocols/USyncLIDProtocol.d.ts +0 -10
  205. package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +0 -14
  206. package/lib/WAUSync/Protocols/index.d.ts +0 -6
  207. package/lib/WAUSync/USyncQuery.d.ts +0 -31
  208. package/lib/WAUSync/USyncUser.d.ts +0 -12
  209. package/lib/WAUSync/index.d.ts +0 -3
  210. package/lib/index.d.ts +0 -13
@@ -1,643 +0,0 @@
1
- import * as $protobuf from "protobufjs";
2
- import Long = require("long");
3
- /** Namespace Adv. */
4
- export namespace Adv {
5
-
6
- /** Properties of a ADVSignedDeviceIdentityHMAC. */
7
- interface IADVSignedDeviceIdentityHMAC {
8
-
9
- /** ADVSignedDeviceIdentityHMAC details */
10
- details?: (Uint8Array|null);
11
-
12
- /** ADVSignedDeviceIdentityHMAC hmac */
13
- hmac?: (Uint8Array|null);
14
-
15
- /** ADVSignedDeviceIdentityHMAC accountType */
16
- accountType?: (Adv.ADVEncryptionType|null);
17
- }
18
-
19
- /** Represents a ADVSignedDeviceIdentityHMAC. */
20
- class ADVSignedDeviceIdentityHMAC implements IADVSignedDeviceIdentityHMAC {
21
-
22
- /**
23
- * Constructs a new ADVSignedDeviceIdentityHMAC.
24
- * @param [properties] Properties to set
25
- */
26
- constructor(properties?: Adv.IADVSignedDeviceIdentityHMAC);
27
-
28
- /** ADVSignedDeviceIdentityHMAC details. */
29
- public details?: (Uint8Array|null);
30
-
31
- /** ADVSignedDeviceIdentityHMAC hmac. */
32
- public hmac?: (Uint8Array|null);
33
-
34
- /** ADVSignedDeviceIdentityHMAC accountType. */
35
- public accountType?: (Adv.ADVEncryptionType|null);
36
-
37
- /** ADVSignedDeviceIdentityHMAC _details. */
38
- public _details?: "details";
39
-
40
- /** ADVSignedDeviceIdentityHMAC _hmac. */
41
- public _hmac?: "hmac";
42
-
43
- /** ADVSignedDeviceIdentityHMAC _accountType. */
44
- public _accountType?: "accountType";
45
-
46
- /**
47
- * Creates a new ADVSignedDeviceIdentityHMAC instance using the specified properties.
48
- * @param [properties] Properties to set
49
- * @returns ADVSignedDeviceIdentityHMAC instance
50
- */
51
- public static create(properties?: Adv.IADVSignedDeviceIdentityHMAC): Adv.ADVSignedDeviceIdentityHMAC;
52
-
53
- /**
54
- * Encodes the specified ADVSignedDeviceIdentityHMAC message. Does not implicitly {@link Adv.ADVSignedDeviceIdentityHMAC.verify|verify} messages.
55
- * @param message ADVSignedDeviceIdentityHMAC message or plain object to encode
56
- * @param [writer] Writer to encode to
57
- * @returns Writer
58
- */
59
- public static encode(message: Adv.IADVSignedDeviceIdentityHMAC, writer?: $protobuf.Writer): $protobuf.Writer;
60
-
61
- /**
62
- * Encodes the specified ADVSignedDeviceIdentityHMAC message, length delimited. Does not implicitly {@link Adv.ADVSignedDeviceIdentityHMAC.verify|verify} messages.
63
- * @param message ADVSignedDeviceIdentityHMAC message or plain object to encode
64
- * @param [writer] Writer to encode to
65
- * @returns Writer
66
- */
67
- public static encodeDelimited(message: Adv.IADVSignedDeviceIdentityHMAC, writer?: $protobuf.Writer): $protobuf.Writer;
68
-
69
- /**
70
- * Decodes a ADVSignedDeviceIdentityHMAC message from the specified reader or buffer.
71
- * @param reader Reader or buffer to decode from
72
- * @param [length] Message length if known beforehand
73
- * @returns ADVSignedDeviceIdentityHMAC
74
- * @throws {Error} If the payload is not a reader or valid buffer
75
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
76
- */
77
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Adv.ADVSignedDeviceIdentityHMAC;
78
-
79
- /**
80
- * Decodes a ADVSignedDeviceIdentityHMAC message from the specified reader or buffer, length delimited.
81
- * @param reader Reader or buffer to decode from
82
- * @returns ADVSignedDeviceIdentityHMAC
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 decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Adv.ADVSignedDeviceIdentityHMAC;
87
-
88
- /**
89
- * Verifies a ADVSignedDeviceIdentityHMAC message.
90
- * @param message Plain object to verify
91
- * @returns `null` if valid, otherwise the reason why it is not
92
- */
93
- public static verify(message: { [k: string]: any }): (string|null);
94
-
95
- /**
96
- * Creates a ADVSignedDeviceIdentityHMAC message from a plain object. Also converts values to their respective internal types.
97
- * @param object Plain object
98
- * @returns ADVSignedDeviceIdentityHMAC
99
- */
100
- public static fromObject(object: { [k: string]: any }): Adv.ADVSignedDeviceIdentityHMAC;
101
-
102
- /**
103
- * Creates a plain object from a ADVSignedDeviceIdentityHMAC message. Also converts values to other types if specified.
104
- * @param message ADVSignedDeviceIdentityHMAC
105
- * @param [options] Conversion options
106
- * @returns Plain object
107
- */
108
- public static toObject(message: Adv.ADVSignedDeviceIdentityHMAC, options?: $protobuf.IConversionOptions): { [k: string]: any };
109
-
110
- /**
111
- * Converts this ADVSignedDeviceIdentityHMAC to JSON.
112
- * @returns JSON object
113
- */
114
- public toJSON(): { [k: string]: any };
115
-
116
- /**
117
- * Gets the default type url for ADVSignedDeviceIdentityHMAC
118
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
119
- * @returns The default type url
120
- */
121
- public static getTypeUrl(typeUrlPrefix?: string): string;
122
- }
123
-
124
- /** Properties of a ADVSignedDeviceIdentity. */
125
- interface IADVSignedDeviceIdentity {
126
-
127
- /** ADVSignedDeviceIdentity details */
128
- details?: (Uint8Array|null);
129
-
130
- /** ADVSignedDeviceIdentity accountSignatureKey */
131
- accountSignatureKey?: (Uint8Array|null);
132
-
133
- /** ADVSignedDeviceIdentity accountSignature */
134
- accountSignature?: (Uint8Array|null);
135
-
136
- /** ADVSignedDeviceIdentity deviceSignature */
137
- deviceSignature?: (Uint8Array|null);
138
- }
139
-
140
- /** Represents a ADVSignedDeviceIdentity. */
141
- class ADVSignedDeviceIdentity implements IADVSignedDeviceIdentity {
142
-
143
- /**
144
- * Constructs a new ADVSignedDeviceIdentity.
145
- * @param [properties] Properties to set
146
- */
147
- constructor(properties?: Adv.IADVSignedDeviceIdentity);
148
-
149
- /** ADVSignedDeviceIdentity details. */
150
- public details?: (Uint8Array|null);
151
-
152
- /** ADVSignedDeviceIdentity accountSignatureKey. */
153
- public accountSignatureKey?: (Uint8Array|null);
154
-
155
- /** ADVSignedDeviceIdentity accountSignature. */
156
- public accountSignature?: (Uint8Array|null);
157
-
158
- /** ADVSignedDeviceIdentity deviceSignature. */
159
- public deviceSignature?: (Uint8Array|null);
160
-
161
- /** ADVSignedDeviceIdentity _details. */
162
- public _details?: "details";
163
-
164
- /** ADVSignedDeviceIdentity _accountSignatureKey. */
165
- public _accountSignatureKey?: "accountSignatureKey";
166
-
167
- /** ADVSignedDeviceIdentity _accountSignature. */
168
- public _accountSignature?: "accountSignature";
169
-
170
- /** ADVSignedDeviceIdentity _deviceSignature. */
171
- public _deviceSignature?: "deviceSignature";
172
-
173
- /**
174
- * Creates a new ADVSignedDeviceIdentity instance using the specified properties.
175
- * @param [properties] Properties to set
176
- * @returns ADVSignedDeviceIdentity instance
177
- */
178
- public static create(properties?: Adv.IADVSignedDeviceIdentity): Adv.ADVSignedDeviceIdentity;
179
-
180
- /**
181
- * Encodes the specified ADVSignedDeviceIdentity message. Does not implicitly {@link Adv.ADVSignedDeviceIdentity.verify|verify} messages.
182
- * @param message ADVSignedDeviceIdentity message or plain object to encode
183
- * @param [writer] Writer to encode to
184
- * @returns Writer
185
- */
186
- public static encode(message: Adv.IADVSignedDeviceIdentity, writer?: $protobuf.Writer): $protobuf.Writer;
187
-
188
- /**
189
- * Encodes the specified ADVSignedDeviceIdentity message, length delimited. Does not implicitly {@link Adv.ADVSignedDeviceIdentity.verify|verify} messages.
190
- * @param message ADVSignedDeviceIdentity message or plain object to encode
191
- * @param [writer] Writer to encode to
192
- * @returns Writer
193
- */
194
- public static encodeDelimited(message: Adv.IADVSignedDeviceIdentity, writer?: $protobuf.Writer): $protobuf.Writer;
195
-
196
- /**
197
- * Decodes a ADVSignedDeviceIdentity message from the specified reader or buffer.
198
- * @param reader Reader or buffer to decode from
199
- * @param [length] Message length if known beforehand
200
- * @returns ADVSignedDeviceIdentity
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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Adv.ADVSignedDeviceIdentity;
205
-
206
- /**
207
- * Decodes a ADVSignedDeviceIdentity message from the specified reader or buffer, length delimited.
208
- * @param reader Reader or buffer to decode from
209
- * @returns ADVSignedDeviceIdentity
210
- * @throws {Error} If the payload is not a reader or valid buffer
211
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
212
- */
213
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Adv.ADVSignedDeviceIdentity;
214
-
215
- /**
216
- * Verifies a ADVSignedDeviceIdentity message.
217
- * @param message Plain object to verify
218
- * @returns `null` if valid, otherwise the reason why it is not
219
- */
220
- public static verify(message: { [k: string]: any }): (string|null);
221
-
222
- /**
223
- * Creates a ADVSignedDeviceIdentity message from a plain object. Also converts values to their respective internal types.
224
- * @param object Plain object
225
- * @returns ADVSignedDeviceIdentity
226
- */
227
- public static fromObject(object: { [k: string]: any }): Adv.ADVSignedDeviceIdentity;
228
-
229
- /**
230
- * Creates a plain object from a ADVSignedDeviceIdentity message. Also converts values to other types if specified.
231
- * @param message ADVSignedDeviceIdentity
232
- * @param [options] Conversion options
233
- * @returns Plain object
234
- */
235
- public static toObject(message: Adv.ADVSignedDeviceIdentity, options?: $protobuf.IConversionOptions): { [k: string]: any };
236
-
237
- /**
238
- * Converts this ADVSignedDeviceIdentity to JSON.
239
- * @returns JSON object
240
- */
241
- public toJSON(): { [k: string]: any };
242
-
243
- /**
244
- * Gets the default type url for ADVSignedDeviceIdentity
245
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
246
- * @returns The default type url
247
- */
248
- public static getTypeUrl(typeUrlPrefix?: string): string;
249
- }
250
-
251
- /** Properties of a ADVDeviceIdentity. */
252
- interface IADVDeviceIdentity {
253
-
254
- /** ADVDeviceIdentity rawId */
255
- rawId?: (number|null);
256
-
257
- /** ADVDeviceIdentity timestamp */
258
- timestamp?: (number|Long|null);
259
-
260
- /** ADVDeviceIdentity keyIndex */
261
- keyIndex?: (number|null);
262
-
263
- /** ADVDeviceIdentity accountType */
264
- accountType?: (Adv.ADVEncryptionType|null);
265
-
266
- /** ADVDeviceIdentity deviceType */
267
- deviceType?: (Adv.ADVEncryptionType|null);
268
- }
269
-
270
- /** Represents a ADVDeviceIdentity. */
271
- class ADVDeviceIdentity implements IADVDeviceIdentity {
272
-
273
- /**
274
- * Constructs a new ADVDeviceIdentity.
275
- * @param [properties] Properties to set
276
- */
277
- constructor(properties?: Adv.IADVDeviceIdentity);
278
-
279
- /** ADVDeviceIdentity rawId. */
280
- public rawId?: (number|null);
281
-
282
- /** ADVDeviceIdentity timestamp. */
283
- public timestamp?: (number|Long|null);
284
-
285
- /** ADVDeviceIdentity keyIndex. */
286
- public keyIndex?: (number|null);
287
-
288
- /** ADVDeviceIdentity accountType. */
289
- public accountType?: (Adv.ADVEncryptionType|null);
290
-
291
- /** ADVDeviceIdentity deviceType. */
292
- public deviceType?: (Adv.ADVEncryptionType|null);
293
-
294
- /** ADVDeviceIdentity _rawId. */
295
- public _rawId?: "rawId";
296
-
297
- /** ADVDeviceIdentity _timestamp. */
298
- public _timestamp?: "timestamp";
299
-
300
- /** ADVDeviceIdentity _keyIndex. */
301
- public _keyIndex?: "keyIndex";
302
-
303
- /** ADVDeviceIdentity _accountType. */
304
- public _accountType?: "accountType";
305
-
306
- /** ADVDeviceIdentity _deviceType. */
307
- public _deviceType?: "deviceType";
308
-
309
- /**
310
- * Creates a new ADVDeviceIdentity instance using the specified properties.
311
- * @param [properties] Properties to set
312
- * @returns ADVDeviceIdentity instance
313
- */
314
- public static create(properties?: Adv.IADVDeviceIdentity): Adv.ADVDeviceIdentity;
315
-
316
- /**
317
- * Encodes the specified ADVDeviceIdentity message. Does not implicitly {@link Adv.ADVDeviceIdentity.verify|verify} messages.
318
- * @param message ADVDeviceIdentity message or plain object to encode
319
- * @param [writer] Writer to encode to
320
- * @returns Writer
321
- */
322
- public static encode(message: Adv.IADVDeviceIdentity, writer?: $protobuf.Writer): $protobuf.Writer;
323
-
324
- /**
325
- * Encodes the specified ADVDeviceIdentity message, length delimited. Does not implicitly {@link Adv.ADVDeviceIdentity.verify|verify} messages.
326
- * @param message ADVDeviceIdentity message or plain object to encode
327
- * @param [writer] Writer to encode to
328
- * @returns Writer
329
- */
330
- public static encodeDelimited(message: Adv.IADVDeviceIdentity, writer?: $protobuf.Writer): $protobuf.Writer;
331
-
332
- /**
333
- * Decodes a ADVDeviceIdentity message from the specified reader or buffer.
334
- * @param reader Reader or buffer to decode from
335
- * @param [length] Message length if known beforehand
336
- * @returns ADVDeviceIdentity
337
- * @throws {Error} If the payload is not a reader or valid buffer
338
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
339
- */
340
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Adv.ADVDeviceIdentity;
341
-
342
- /**
343
- * Decodes a ADVDeviceIdentity message from the specified reader or buffer, length delimited.
344
- * @param reader Reader or buffer to decode from
345
- * @returns ADVDeviceIdentity
346
- * @throws {Error} If the payload is not a reader or valid buffer
347
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
348
- */
349
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Adv.ADVDeviceIdentity;
350
-
351
- /**
352
- * Verifies a ADVDeviceIdentity message.
353
- * @param message Plain object to verify
354
- * @returns `null` if valid, otherwise the reason why it is not
355
- */
356
- public static verify(message: { [k: string]: any }): (string|null);
357
-
358
- /**
359
- * Creates a ADVDeviceIdentity message from a plain object. Also converts values to their respective internal types.
360
- * @param object Plain object
361
- * @returns ADVDeviceIdentity
362
- */
363
- public static fromObject(object: { [k: string]: any }): Adv.ADVDeviceIdentity;
364
-
365
- /**
366
- * Creates a plain object from a ADVDeviceIdentity message. Also converts values to other types if specified.
367
- * @param message ADVDeviceIdentity
368
- * @param [options] Conversion options
369
- * @returns Plain object
370
- */
371
- public static toObject(message: Adv.ADVDeviceIdentity, options?: $protobuf.IConversionOptions): { [k: string]: any };
372
-
373
- /**
374
- * Converts this ADVDeviceIdentity to JSON.
375
- * @returns JSON object
376
- */
377
- public toJSON(): { [k: string]: any };
378
-
379
- /**
380
- * Gets the default type url for ADVDeviceIdentity
381
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
382
- * @returns The default type url
383
- */
384
- public static getTypeUrl(typeUrlPrefix?: string): string;
385
- }
386
-
387
- /** Properties of a ADVSignedKeyIndexList. */
388
- interface IADVSignedKeyIndexList {
389
-
390
- /** ADVSignedKeyIndexList details */
391
- details?: (Uint8Array|null);
392
-
393
- /** ADVSignedKeyIndexList accountSignature */
394
- accountSignature?: (Uint8Array|null);
395
-
396
- /** ADVSignedKeyIndexList accountSignatureKey */
397
- accountSignatureKey?: (Uint8Array|null);
398
- }
399
-
400
- /** Represents a ADVSignedKeyIndexList. */
401
- class ADVSignedKeyIndexList implements IADVSignedKeyIndexList {
402
-
403
- /**
404
- * Constructs a new ADVSignedKeyIndexList.
405
- * @param [properties] Properties to set
406
- */
407
- constructor(properties?: Adv.IADVSignedKeyIndexList);
408
-
409
- /** ADVSignedKeyIndexList details. */
410
- public details?: (Uint8Array|null);
411
-
412
- /** ADVSignedKeyIndexList accountSignature. */
413
- public accountSignature?: (Uint8Array|null);
414
-
415
- /** ADVSignedKeyIndexList accountSignatureKey. */
416
- public accountSignatureKey?: (Uint8Array|null);
417
-
418
- /** ADVSignedKeyIndexList _details. */
419
- public _details?: "details";
420
-
421
- /** ADVSignedKeyIndexList _accountSignature. */
422
- public _accountSignature?: "accountSignature";
423
-
424
- /** ADVSignedKeyIndexList _accountSignatureKey. */
425
- public _accountSignatureKey?: "accountSignatureKey";
426
-
427
- /**
428
- * Creates a new ADVSignedKeyIndexList instance using the specified properties.
429
- * @param [properties] Properties to set
430
- * @returns ADVSignedKeyIndexList instance
431
- */
432
- public static create(properties?: Adv.IADVSignedKeyIndexList): Adv.ADVSignedKeyIndexList;
433
-
434
- /**
435
- * Encodes the specified ADVSignedKeyIndexList message. Does not implicitly {@link Adv.ADVSignedKeyIndexList.verify|verify} messages.
436
- * @param message ADVSignedKeyIndexList message or plain object to encode
437
- * @param [writer] Writer to encode to
438
- * @returns Writer
439
- */
440
- public static encode(message: Adv.IADVSignedKeyIndexList, writer?: $protobuf.Writer): $protobuf.Writer;
441
-
442
- /**
443
- * Encodes the specified ADVSignedKeyIndexList message, length delimited. Does not implicitly {@link Adv.ADVSignedKeyIndexList.verify|verify} messages.
444
- * @param message ADVSignedKeyIndexList message or plain object to encode
445
- * @param [writer] Writer to encode to
446
- * @returns Writer
447
- */
448
- public static encodeDelimited(message: Adv.IADVSignedKeyIndexList, writer?: $protobuf.Writer): $protobuf.Writer;
449
-
450
- /**
451
- * Decodes a ADVSignedKeyIndexList message from the specified reader or buffer.
452
- * @param reader Reader or buffer to decode from
453
- * @param [length] Message length if known beforehand
454
- * @returns ADVSignedKeyIndexList
455
- * @throws {Error} If the payload is not a reader or valid buffer
456
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
457
- */
458
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Adv.ADVSignedKeyIndexList;
459
-
460
- /**
461
- * Decodes a ADVSignedKeyIndexList message from the specified reader or buffer, length delimited.
462
- * @param reader Reader or buffer to decode from
463
- * @returns ADVSignedKeyIndexList
464
- * @throws {Error} If the payload is not a reader or valid buffer
465
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
466
- */
467
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Adv.ADVSignedKeyIndexList;
468
-
469
- /**
470
- * Verifies a ADVSignedKeyIndexList message.
471
- * @param message Plain object to verify
472
- * @returns `null` if valid, otherwise the reason why it is not
473
- */
474
- public static verify(message: { [k: string]: any }): (string|null);
475
-
476
- /**
477
- * Creates a ADVSignedKeyIndexList message from a plain object. Also converts values to their respective internal types.
478
- * @param object Plain object
479
- * @returns ADVSignedKeyIndexList
480
- */
481
- public static fromObject(object: { [k: string]: any }): Adv.ADVSignedKeyIndexList;
482
-
483
- /**
484
- * Creates a plain object from a ADVSignedKeyIndexList message. Also converts values to other types if specified.
485
- * @param message ADVSignedKeyIndexList
486
- * @param [options] Conversion options
487
- * @returns Plain object
488
- */
489
- public static toObject(message: Adv.ADVSignedKeyIndexList, options?: $protobuf.IConversionOptions): { [k: string]: any };
490
-
491
- /**
492
- * Converts this ADVSignedKeyIndexList to JSON.
493
- * @returns JSON object
494
- */
495
- public toJSON(): { [k: string]: any };
496
-
497
- /**
498
- * Gets the default type url for ADVSignedKeyIndexList
499
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
500
- * @returns The default type url
501
- */
502
- public static getTypeUrl(typeUrlPrefix?: string): string;
503
- }
504
-
505
- /** Properties of a ADVKeyIndexList. */
506
- interface IADVKeyIndexList {
507
-
508
- /** ADVKeyIndexList rawId */
509
- rawId?: (number|null);
510
-
511
- /** ADVKeyIndexList timestamp */
512
- timestamp?: (number|Long|null);
513
-
514
- /** ADVKeyIndexList currentIndex */
515
- currentIndex?: (number|null);
516
-
517
- /** ADVKeyIndexList validIndexes */
518
- validIndexes?: (number[]|null);
519
-
520
- /** ADVKeyIndexList accountType */
521
- accountType?: (Adv.ADVEncryptionType|null);
522
- }
523
-
524
- /** Represents a ADVKeyIndexList. */
525
- class ADVKeyIndexList implements IADVKeyIndexList {
526
-
527
- /**
528
- * Constructs a new ADVKeyIndexList.
529
- * @param [properties] Properties to set
530
- */
531
- constructor(properties?: Adv.IADVKeyIndexList);
532
-
533
- /** ADVKeyIndexList rawId. */
534
- public rawId?: (number|null);
535
-
536
- /** ADVKeyIndexList timestamp. */
537
- public timestamp?: (number|Long|null);
538
-
539
- /** ADVKeyIndexList currentIndex. */
540
- public currentIndex?: (number|null);
541
-
542
- /** ADVKeyIndexList validIndexes. */
543
- public validIndexes: number[];
544
-
545
- /** ADVKeyIndexList accountType. */
546
- public accountType?: (Adv.ADVEncryptionType|null);
547
-
548
- /** ADVKeyIndexList _rawId. */
549
- public _rawId?: "rawId";
550
-
551
- /** ADVKeyIndexList _timestamp. */
552
- public _timestamp?: "timestamp";
553
-
554
- /** ADVKeyIndexList _currentIndex. */
555
- public _currentIndex?: "currentIndex";
556
-
557
- /** ADVKeyIndexList _accountType. */
558
- public _accountType?: "accountType";
559
-
560
- /**
561
- * Creates a new ADVKeyIndexList instance using the specified properties.
562
- * @param [properties] Properties to set
563
- * @returns ADVKeyIndexList instance
564
- */
565
- public static create(properties?: Adv.IADVKeyIndexList): Adv.ADVKeyIndexList;
566
-
567
- /**
568
- * Encodes the specified ADVKeyIndexList message. Does not implicitly {@link Adv.ADVKeyIndexList.verify|verify} messages.
569
- * @param message ADVKeyIndexList message or plain object to encode
570
- * @param [writer] Writer to encode to
571
- * @returns Writer
572
- */
573
- public static encode(message: Adv.IADVKeyIndexList, writer?: $protobuf.Writer): $protobuf.Writer;
574
-
575
- /**
576
- * Encodes the specified ADVKeyIndexList message, length delimited. Does not implicitly {@link Adv.ADVKeyIndexList.verify|verify} messages.
577
- * @param message ADVKeyIndexList message or plain object to encode
578
- * @param [writer] Writer to encode to
579
- * @returns Writer
580
- */
581
- public static encodeDelimited(message: Adv.IADVKeyIndexList, writer?: $protobuf.Writer): $protobuf.Writer;
582
-
583
- /**
584
- * Decodes a ADVKeyIndexList message from the specified reader or buffer.
585
- * @param reader Reader or buffer to decode from
586
- * @param [length] Message length if known beforehand
587
- * @returns ADVKeyIndexList
588
- * @throws {Error} If the payload is not a reader or valid buffer
589
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
590
- */
591
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Adv.ADVKeyIndexList;
592
-
593
- /**
594
- * Decodes a ADVKeyIndexList message from the specified reader or buffer, length delimited.
595
- * @param reader Reader or buffer to decode from
596
- * @returns ADVKeyIndexList
597
- * @throws {Error} If the payload is not a reader or valid buffer
598
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
599
- */
600
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Adv.ADVKeyIndexList;
601
-
602
- /**
603
- * Verifies a ADVKeyIndexList message.
604
- * @param message Plain object to verify
605
- * @returns `null` if valid, otherwise the reason why it is not
606
- */
607
- public static verify(message: { [k: string]: any }): (string|null);
608
-
609
- /**
610
- * Creates a ADVKeyIndexList message from a plain object. Also converts values to their respective internal types.
611
- * @param object Plain object
612
- * @returns ADVKeyIndexList
613
- */
614
- public static fromObject(object: { [k: string]: any }): Adv.ADVKeyIndexList;
615
-
616
- /**
617
- * Creates a plain object from a ADVKeyIndexList message. Also converts values to other types if specified.
618
- * @param message ADVKeyIndexList
619
- * @param [options] Conversion options
620
- * @returns Plain object
621
- */
622
- public static toObject(message: Adv.ADVKeyIndexList, options?: $protobuf.IConversionOptions): { [k: string]: any };
623
-
624
- /**
625
- * Converts this ADVKeyIndexList to JSON.
626
- * @returns JSON object
627
- */
628
- public toJSON(): { [k: string]: any };
629
-
630
- /**
631
- * Gets the default type url for ADVKeyIndexList
632
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
633
- * @returns The default type url
634
- */
635
- public static getTypeUrl(typeUrlPrefix?: string): string;
636
- }
637
-
638
- /** ADVEncryptionType enum. */
639
- enum ADVEncryptionType {
640
- E2EE = 0,
641
- HOSTED = 1
642
- }
643
- }