dcodeindra-baileyspro 2.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (286) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +2534 -0
  3. package/WAProto/Adv/Adv.d.ts +518 -0
  4. package/WAProto/Adv/Adv.js +1734 -0
  5. package/WAProto/Adv/Adv.proto +36 -0
  6. package/WAProto/BotMetadata/BotMetadata.d.ts +5745 -0
  7. package/WAProto/BotMetadata/BotMetadata.js +16291 -0
  8. package/WAProto/BotMetadata/BotMetadata.proto +463 -0
  9. package/WAProto/Cert/Cert.d.ts +497 -0
  10. package/WAProto/Cert/Cert.js +1503 -0
  11. package/WAProto/Cert/Cert.proto +28 -0
  12. package/WAProto/ChatLockSettings/ChatLockSettings.d.ts +391 -0
  13. package/WAProto/ChatLockSettings/ChatLockSettings.js +1155 -0
  14. package/WAProto/ChatLockSettings/ChatLockSettings.proto +7 -0
  15. package/WAProto/CompanionReg/CompanionReg.d.ts +1055 -0
  16. package/WAProto/CompanionReg/CompanionReg.js +3532 -0
  17. package/WAProto/CompanionReg/CompanionReg.proto +89 -0
  18. package/WAProto/DeviceCapabilities/DeviceCapabilities.d.ts +187 -0
  19. package/WAProto/DeviceCapabilities/DeviceCapabilities.js +520 -0
  20. package/WAProto/DeviceCapabilities/DeviceCapabilities.proto +14 -0
  21. package/WAProto/E2E/E2E.d.ts +28417 -0
  22. package/WAProto/E2E/E2E.js +98438 -0
  23. package/WAProto/E2E/E2E.proto +2289 -0
  24. package/WAProto/Ephemeral/Ephemeral.d.ts +95 -0
  25. package/WAProto/Ephemeral/Ephemeral.js +269 -0
  26. package/WAProto/Ephemeral/Ephemeral.proto +6 -0
  27. package/WAProto/HistorySync/HistorySync.d.ts +40728 -0
  28. package/WAProto/HistorySync/HistorySync.js +142980 -0
  29. package/WAProto/HistorySync/HistorySync.proto +207 -0
  30. package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.d.ts +189 -0
  31. package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.js +585 -0
  32. package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.proto +11 -0
  33. package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.d.ts +461 -0
  34. package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.js +1559 -0
  35. package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.proto +37 -0
  36. package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.d.ts +29294 -0
  37. package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.js +101732 -0
  38. package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.proto +76 -0
  39. package/WAProto/MmsRetry/MmsRetry.d.ts +200 -0
  40. package/WAProto/MmsRetry/MmsRetry.js +586 -0
  41. package/WAProto/MmsRetry/MmsRetry.proto +17 -0
  42. package/WAProto/Protocol/Protocol.d.ts +218 -0
  43. package/WAProto/Protocol/Protocol.js +701 -0
  44. package/WAProto/Protocol/Protocol.proto +20 -0
  45. package/WAProto/Reporting/Reporting.d.ts +301 -0
  46. package/WAProto/Reporting/Reporting.js +989 -0
  47. package/WAProto/Reporting/Reporting.proto +19 -0
  48. package/WAProto/ServerSync/ServerSync.d.ts +1050 -0
  49. package/WAProto/ServerSync/ServerSync.js +3176 -0
  50. package/WAProto/ServerSync/ServerSync.proto +59 -0
  51. package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.d.ts +1507 -0
  52. package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.js +4756 -0
  53. package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.proto +88 -0
  54. package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.d.ts +617 -0
  55. package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.js +1940 -0
  56. package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.proto +38 -0
  57. package/WAProto/StatusAttributions/StatusAttributions.d.ts +636 -0
  58. package/WAProto/StatusAttributions/StatusAttributions.js +2037 -0
  59. package/WAProto/StatusAttributions/StatusAttributions.proto +61 -0
  60. package/WAProto/SyncAction/SyncAction.d.ts +7227 -0
  61. package/WAProto/SyncAction/SyncAction.js +22271 -0
  62. package/WAProto/SyncAction/SyncAction.proto +423 -0
  63. package/WAProto/UserPassword/UserPassword.d.ts +298 -0
  64. package/WAProto/UserPassword/UserPassword.js +898 -0
  65. package/WAProto/UserPassword/UserPassword.proto +27 -0
  66. package/WAProto/VnameCert/VnameCert.d.ts +658 -0
  67. package/WAProto/VnameCert/VnameCert.js +2225 -0
  68. package/WAProto/VnameCert/VnameCert.proto +60 -0
  69. package/WAProto/Wa6/Wa6.d.ts +1613 -0
  70. package/WAProto/Wa6/Wa6.js +6299 -0
  71. package/WAProto/Wa6/Wa6.proto +229 -0
  72. package/WAProto/Web/Web.d.ts +31718 -0
  73. package/WAProto/Web/Web.js +113402 -0
  74. package/WAProto/Web/Web.proto +545 -0
  75. package/WAProto/index.d.ts +49 -0
  76. package/WAProto/index.js +28 -0
  77. package/WASignalGroup/GroupProtocol.js +1771 -0
  78. package/WASignalGroup/ciphertext_message.js +10 -0
  79. package/WASignalGroup/group_cipher.js +103 -0
  80. package/WASignalGroup/group_session_builder.js +39 -0
  81. package/WASignalGroup/index.js +5 -0
  82. package/WASignalGroup/keyhelper.js +17 -0
  83. package/WASignalGroup/protobufs.js +2 -0
  84. package/WASignalGroup/queue_job.js +64 -0
  85. package/WASignalGroup/sender_chain_key.js +38 -0
  86. package/WASignalGroup/sender_key_distribution_message.js +68 -0
  87. package/WASignalGroup/sender_key_message.js +79 -0
  88. package/WASignalGroup/sender_key_name.js +59 -0
  89. package/WASignalGroup/sender_key_record.js +47 -0
  90. package/WASignalGroup/sender_key_state.js +110 -0
  91. package/WASignalGroup/sender_message_key.js +30 -0
  92. package/check-node-version.js +10 -0
  93. package/lib/Defaults/baileys-version.json +3 -0
  94. package/lib/Defaults/index.d.ts +51 -0
  95. package/lib/Defaults/index.js +108 -0
  96. package/lib/Defaults/phonenumber-mcc.json +223 -0
  97. package/lib/Signal/Group/ciphertext-message.d.ts +9 -0
  98. package/lib/Signal/Group/ciphertext-message.js +19 -0
  99. package/lib/Signal/Group/group-session-builder.d.ts +17 -0
  100. package/lib/Signal/Group/group-session-builder.js +72 -0
  101. package/lib/Signal/Group/group_cipher.d.ts +19 -0
  102. package/lib/Signal/Group/group_cipher.js +99 -0
  103. package/lib/Signal/Group/index.d.ts +11 -0
  104. package/lib/Signal/Group/index.js +61 -0
  105. package/lib/Signal/Group/keyhelper.d.ts +16 -0
  106. package/lib/Signal/Group/keyhelper.js +66 -0
  107. package/lib/Signal/Group/queue-job.d.ts +1 -0
  108. package/lib/Signal/Group/queue-job.js +64 -0
  109. package/lib/Signal/Group/sender-chain-key.d.ts +14 -0
  110. package/lib/Signal/Group/sender-chain-key.js +39 -0
  111. package/lib/Signal/Group/sender-key-distribution-message.d.ts +17 -0
  112. package/lib/Signal/Group/sender-key-distribution-message.js +71 -0
  113. package/lib/Signal/Group/sender-key-message.d.ts +19 -0
  114. package/lib/Signal/Group/sender-key-message.js +73 -0
  115. package/lib/Signal/Group/sender-key-name.d.ts +19 -0
  116. package/lib/Signal/Group/sender-key-name.js +59 -0
  117. package/lib/Signal/Group/sender-key-record.d.ts +32 -0
  118. package/lib/Signal/Group/sender-key-record.js +53 -0
  119. package/lib/Signal/Group/sender-key-record.ts +77 -0
  120. package/lib/Signal/Group/sender-key-state.d.ts +44 -0
  121. package/lib/Signal/Group/sender-key-state.js +104 -0
  122. package/lib/Signal/Group/sender-message-key.d.ts +11 -0
  123. package/lib/Signal/Group/sender-message-key.js +33 -0
  124. package/lib/Signal/libsignal.d.ts +3 -0
  125. package/lib/Signal/libsignal.js +153 -0
  126. package/lib/Socket/Client/index.d.ts +2 -0
  127. package/lib/Socket/Client/index.js +18 -0
  128. package/lib/Socket/Client/types.d.ts +15 -0
  129. package/lib/Socket/Client/types.js +14 -0
  130. package/lib/Socket/Client/websocket.d.ts +12 -0
  131. package/lib/Socket/Client/websocket.js +57 -0
  132. package/lib/Socket/business.d.ts +181 -0
  133. package/lib/Socket/business.js +259 -0
  134. package/lib/Socket/chats.d.ts +95 -0
  135. package/lib/Socket/chats.js +906 -0
  136. package/lib/Socket/community.d.ts +131 -0
  137. package/lib/Socket/community.js +369 -0
  138. package/lib/Socket/groups.d.ts +122 -0
  139. package/lib/Socket/groups.js +360 -0
  140. package/lib/Socket/index.d.ts +183 -0
  141. package/lib/Socket/index.js +10 -0
  142. package/lib/Socket/messages-recv.d.ts +170 -0
  143. package/lib/Socket/messages-recv.js +1074 -0
  144. package/lib/Socket/messages-send.d.ts +161 -0
  145. package/lib/Socket/messages-send.js +982 -0
  146. package/lib/Socket/newsletter.d.ts +140 -0
  147. package/lib/Socket/newsletter.js +242 -0
  148. package/lib/Socket/socket.d.ts +43 -0
  149. package/lib/Socket/socket.js +749 -0
  150. package/lib/Socket/usync.d.ts +36 -0
  151. package/lib/Socket/usync.js +71 -0
  152. package/lib/Store/index.d.ts +4 -0
  153. package/lib/Store/index.js +20 -0
  154. package/lib/Store/make-cache-manager-store.d.ts +13 -0
  155. package/lib/Store/make-cache-manager-store.js +77 -0
  156. package/lib/Store/make-in-memory-store.d.ts +117 -0
  157. package/lib/Store/make-in-memory-store.js +420 -0
  158. package/lib/Store/make-ordered-dictionary.d.ts +12 -0
  159. package/lib/Store/make-ordered-dictionary.js +83 -0
  160. package/lib/Store/object-repository.d.ts +10 -0
  161. package/lib/Store/object-repository.js +28 -0
  162. package/lib/Types/Auth.d.ts +103 -0
  163. package/lib/Types/Auth.js +2 -0
  164. package/lib/Types/Call.d.ts +13 -0
  165. package/lib/Types/Call.js +2 -0
  166. package/lib/Types/Chat.d.ts +115 -0
  167. package/lib/Types/Chat.js +6 -0
  168. package/lib/Types/Contact.d.ts +35 -0
  169. package/lib/Types/Contact.js +2 -0
  170. package/lib/Types/Events.d.ts +208 -0
  171. package/lib/Types/Events.js +2 -0
  172. package/lib/Types/GroupMetadata.d.ts +81 -0
  173. package/lib/Types/GroupMetadata.js +2 -0
  174. package/lib/Types/Label.d.ts +46 -0
  175. package/lib/Types/Label.js +28 -0
  176. package/lib/Types/LabelAssociation.d.ts +29 -0
  177. package/lib/Types/LabelAssociation.js +10 -0
  178. package/lib/Types/Message.d.ts +480 -0
  179. package/lib/Types/Message.js +9 -0
  180. package/lib/Types/MexUpdates.d.ts +9 -0
  181. package/lib/Types/MexUpdates.js +18 -0
  182. package/lib/Types/Newsletter.d.ts +92 -0
  183. package/lib/Types/Newsletter.js +33 -0
  184. package/lib/Types/Product.d.ts +78 -0
  185. package/lib/Types/Product.js +2 -0
  186. package/lib/Types/Signal.d.ts +57 -0
  187. package/lib/Types/Signal.js +2 -0
  188. package/lib/Types/Socket.d.ts +116 -0
  189. package/lib/Types/Socket.js +2 -0
  190. package/lib/Types/State.d.ts +27 -0
  191. package/lib/Types/State.js +2 -0
  192. package/lib/Types/USync.d.ts +25 -0
  193. package/lib/Types/USync.js +2 -0
  194. package/lib/Types/index.d.ts +70 -0
  195. package/lib/Types/index.js +42 -0
  196. package/lib/Utils/auth-utils.d.ts +18 -0
  197. package/lib/Utils/auth-utils.js +198 -0
  198. package/lib/Utils/baileys-event-stream.d.ts +16 -0
  199. package/lib/Utils/baileys-event-stream.js +64 -0
  200. package/lib/Utils/business.d.ts +22 -0
  201. package/lib/Utils/business.js +243 -0
  202. package/lib/Utils/chat-utils.d.ts +72 -0
  203. package/lib/Utils/chat-utils.js +762 -0
  204. package/lib/Utils/crypto.d.ts +40 -0
  205. package/lib/Utils/crypto.js +150 -0
  206. package/lib/Utils/decode-wa-message.d.ts +252 -0
  207. package/lib/Utils/decode-wa-message.js +232 -0
  208. package/lib/Utils/event-buffer.d.ts +35 -0
  209. package/lib/Utils/event-buffer.js +539 -0
  210. package/lib/Utils/generics.d.ts +96 -0
  211. package/lib/Utils/generics.js +553 -0
  212. package/lib/Utils/history.d.ts +29 -0
  213. package/lib/Utils/history.js +109 -0
  214. package/lib/Utils/index.d.ts +19 -0
  215. package/lib/Utils/index.js +35 -0
  216. package/lib/Utils/link-preview.d.ts +21 -0
  217. package/lib/Utils/link-preview.js +112 -0
  218. package/lib/Utils/logger.d.ts +11 -0
  219. package/lib/Utils/logger.js +7 -0
  220. package/lib/Utils/lt-hash.d.ts +12 -0
  221. package/lib/Utils/lt-hash.js +53 -0
  222. package/lib/Utils/make-mutex.d.ts +7 -0
  223. package/lib/Utils/make-mutex.js +45 -0
  224. package/lib/Utils/messages-media.d.ts +104 -0
  225. package/lib/Utils/messages-media.js +751 -0
  226. package/lib/Utils/messages.d.ts +80 -0
  227. package/lib/Utils/messages.js +1741 -0
  228. package/lib/Utils/noise-handler.d.ts +19 -0
  229. package/lib/Utils/noise-handler.js +150 -0
  230. package/lib/Utils/process-message.d.ts +41 -0
  231. package/lib/Utils/process-message.js +391 -0
  232. package/lib/Utils/signal.d.ts +33 -0
  233. package/lib/Utils/signal.js +154 -0
  234. package/lib/Utils/use-mongo-file-auth-state.d.ts +5 -0
  235. package/lib/Utils/use-mongo-file-auth-state.js +75 -0
  236. package/lib/Utils/use-multi-file-auth-state.d.ts +12 -0
  237. package/lib/Utils/use-multi-file-auth-state.js +123 -0
  238. package/lib/Utils/use-single-file-auth-state.d.ts +12 -0
  239. package/lib/Utils/use-single-file-auth-state.js +75 -0
  240. package/lib/Utils/validate-connection.d.ts +10 -0
  241. package/lib/Utils/validate-connection.js +174 -0
  242. package/lib/WABinary/constants.d.ts +27 -0
  243. package/lib/WABinary/constants.js +45 -0
  244. package/lib/WABinary/decode.d.ts +6 -0
  245. package/lib/WABinary/decode.js +255 -0
  246. package/lib/WABinary/encode.d.ts +2 -0
  247. package/lib/WABinary/encode.js +243 -0
  248. package/lib/WABinary/generic-utils.d.ts +16 -0
  249. package/lib/WABinary/generic-utils.js +125 -0
  250. package/lib/WABinary/index.d.ts +5 -0
  251. package/lib/WABinary/index.js +21 -0
  252. package/lib/WABinary/jid-utils.d.ts +34 -0
  253. package/lib/WABinary/jid-utils.js +73 -0
  254. package/lib/WABinary/types.d.ts +18 -0
  255. package/lib/WABinary/types.js +2 -0
  256. package/lib/WAM/BinaryInfo.d.ts +16 -0
  257. package/lib/WAM/BinaryInfo.js +14 -0
  258. package/lib/WAM/constants.d.ts +39 -0
  259. package/lib/WAM/constants.js +15362 -0
  260. package/lib/WAM/encode.d.ts +2 -0
  261. package/lib/WAM/encode.js +156 -0
  262. package/lib/WAM/index.d.ts +3 -0
  263. package/lib/WAM/index.js +19 -0
  264. package/lib/WAUSync/Protocols/USyncBotProfileProtocol.d.ts +25 -0
  265. package/lib/WAUSync/Protocols/USyncBotProfileProtocol.js +60 -0
  266. package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +9 -0
  267. package/lib/WAUSync/Protocols/USyncContactProtocol.js +32 -0
  268. package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +22 -0
  269. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +58 -0
  270. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +12 -0
  271. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +31 -0
  272. package/lib/WAUSync/Protocols/USyncLIDProtocol.d.ts +8 -0
  273. package/lib/WAUSync/Protocols/USyncLIDProtocol.js +26 -0
  274. package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +12 -0
  275. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +42 -0
  276. package/lib/WAUSync/Protocols/index.d.ts +6 -0
  277. package/lib/WAUSync/Protocols/index.js +22 -0
  278. package/lib/WAUSync/USyncQuery.d.ts +28 -0
  279. package/lib/WAUSync/USyncQuery.js +88 -0
  280. package/lib/WAUSync/USyncUser.d.ts +12 -0
  281. package/lib/WAUSync/USyncUser.js +27 -0
  282. package/lib/WAUSync/index.d.ts +3 -0
  283. package/lib/WAUSync/index.js +19 -0
  284. package/lib/index.d.ts +13 -0
  285. package/lib/index.js +45 -0
  286. package/package.json +63 -0
@@ -0,0 +1,497 @@
1
+ import * as $protobuf from "protobufjs";
2
+ import Long = require("long");
3
+ /** Namespace Cert. */
4
+ export namespace Cert {
5
+ /** Properties of a CertChain. */
6
+ interface ICertChain {
7
+ /** CertChain leaf */
8
+ leaf?: (Cert.CertChain.INoiseCertificate|null);
9
+ /** CertChain intermediate */
10
+ intermediate?: (Cert.CertChain.INoiseCertificate|null);
11
+ }
12
+ /** Represents a CertChain. */
13
+ class CertChain implements ICertChain {
14
+ /**
15
+ * Constructs a new CertChain.
16
+ * @param [properties] Properties to set
17
+ */
18
+ constructor(properties?: Cert.ICertChain);
19
+ /** CertChain leaf. */
20
+ public leaf?: (Cert.CertChain.INoiseCertificate|null);
21
+ /** CertChain intermediate. */
22
+ public intermediate?: (Cert.CertChain.INoiseCertificate|null);
23
+ /** CertChain _leaf. */
24
+ public _leaf?: "leaf";
25
+ /** CertChain _intermediate. */
26
+ public _intermediate?: "intermediate";
27
+ /**
28
+ * Creates a new CertChain instance using the specified properties.
29
+ * @param [properties] Properties to set
30
+ * @returns CertChain instance
31
+ */
32
+ public static create(properties?: Cert.ICertChain): Cert.CertChain;
33
+ /**
34
+ * Encodes the specified CertChain message. Does not implicitly {@link Cert.CertChain.verify|verify} messages.
35
+ * @param message CertChain message or plain object to encode
36
+ * @param [writer] Writer to encode to
37
+ * @returns Writer
38
+ */
39
+ public static encode(message: Cert.ICertChain, writer?: $protobuf.Writer): $protobuf.Writer;
40
+ /**
41
+ * Encodes the specified CertChain message, length delimited. Does not implicitly {@link Cert.CertChain.verify|verify} messages.
42
+ * @param message CertChain message or plain object to encode
43
+ * @param [writer] Writer to encode to
44
+ * @returns Writer
45
+ */
46
+ public static encodeDelimited(message: Cert.ICertChain, writer?: $protobuf.Writer): $protobuf.Writer;
47
+ /**
48
+ * Decodes a CertChain message from the specified reader or buffer.
49
+ * @param reader Reader or buffer to decode from
50
+ * @param [length] Message length if known beforehand
51
+ * @returns CertChain
52
+ * @throws {Error} If the payload is not a reader or valid buffer
53
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
54
+ */
55
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Cert.CertChain;
56
+ /**
57
+ * Decodes a CertChain message from the specified reader or buffer, length delimited.
58
+ * @param reader Reader or buffer to decode from
59
+ * @returns CertChain
60
+ * @throws {Error} If the payload is not a reader or valid buffer
61
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
62
+ */
63
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Cert.CertChain;
64
+ /**
65
+ * Verifies a CertChain message.
66
+ * @param message Plain object to verify
67
+ * @returns `null` if valid, otherwise the reason why it is not
68
+ */
69
+ public static verify(message: { [k: string]: any }): (string|null);
70
+ /**
71
+ * Creates a CertChain message from a plain object. Also converts values to their respective internal types.
72
+ * @param object Plain object
73
+ * @returns CertChain
74
+ */
75
+ public static fromObject(object: { [k: string]: any }): Cert.CertChain;
76
+ /**
77
+ * Creates a plain object from a CertChain message. Also converts values to other types if specified.
78
+ * @param message CertChain
79
+ * @param [options] Conversion options
80
+ * @returns Plain object
81
+ */
82
+ public static toObject(message: Cert.CertChain, options?: $protobuf.IConversionOptions): { [k: string]: any };
83
+ /**
84
+ * Converts this CertChain to JSON.
85
+ * @returns JSON object
86
+ */
87
+ public toJSON(): { [k: string]: any };
88
+ /**
89
+ * Gets the default type url for CertChain
90
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
91
+ * @returns The default type url
92
+ */
93
+ public static getTypeUrl(typeUrlPrefix?: string): string;
94
+ }
95
+ namespace CertChain {
96
+ /** Properties of a NoiseCertificate. */
97
+ interface INoiseCertificate {
98
+ /** NoiseCertificate details */
99
+ details?: (Uint8Array|null);
100
+ /** NoiseCertificate signature */
101
+ signature?: (Uint8Array|null);
102
+ }
103
+ /** Represents a NoiseCertificate. */
104
+ class NoiseCertificate implements INoiseCertificate {
105
+ /**
106
+ * Constructs a new NoiseCertificate.
107
+ * @param [properties] Properties to set
108
+ */
109
+ constructor(properties?: Cert.CertChain.INoiseCertificate);
110
+ /** NoiseCertificate details. */
111
+ public details?: (Uint8Array|null);
112
+ /** NoiseCertificate signature. */
113
+ public signature?: (Uint8Array|null);
114
+ /** NoiseCertificate _details. */
115
+ public _details?: "details";
116
+ /** NoiseCertificate _signature. */
117
+ public _signature?: "signature";
118
+ /**
119
+ * Creates a new NoiseCertificate instance using the specified properties.
120
+ * @param [properties] Properties to set
121
+ * @returns NoiseCertificate instance
122
+ */
123
+ public static create(properties?: Cert.CertChain.INoiseCertificate): Cert.CertChain.NoiseCertificate;
124
+ /**
125
+ * Encodes the specified NoiseCertificate message. Does not implicitly {@link Cert.CertChain.NoiseCertificate.verify|verify} messages.
126
+ * @param message NoiseCertificate message or plain object to encode
127
+ * @param [writer] Writer to encode to
128
+ * @returns Writer
129
+ */
130
+ public static encode(message: Cert.CertChain.INoiseCertificate, writer?: $protobuf.Writer): $protobuf.Writer;
131
+ /**
132
+ * Encodes the specified NoiseCertificate message, length delimited. Does not implicitly {@link Cert.CertChain.NoiseCertificate.verify|verify} messages.
133
+ * @param message NoiseCertificate message or plain object to encode
134
+ * @param [writer] Writer to encode to
135
+ * @returns Writer
136
+ */
137
+ public static encodeDelimited(message: Cert.CertChain.INoiseCertificate, writer?: $protobuf.Writer): $protobuf.Writer;
138
+ /**
139
+ * Decodes a NoiseCertificate message from the specified reader or buffer.
140
+ * @param reader Reader or buffer to decode from
141
+ * @param [length] Message length if known beforehand
142
+ * @returns NoiseCertificate
143
+ * @throws {Error} If the payload is not a reader or valid buffer
144
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
145
+ */
146
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Cert.CertChain.NoiseCertificate;
147
+ /**
148
+ * Decodes a NoiseCertificate message from the specified reader or buffer, length delimited.
149
+ * @param reader Reader or buffer to decode from
150
+ * @returns NoiseCertificate
151
+ * @throws {Error} If the payload is not a reader or valid buffer
152
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
153
+ */
154
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Cert.CertChain.NoiseCertificate;
155
+ /**
156
+ * Verifies a NoiseCertificate message.
157
+ * @param message Plain object to verify
158
+ * @returns `null` if valid, otherwise the reason why it is not
159
+ */
160
+ public static verify(message: { [k: string]: any }): (string|null);
161
+ /**
162
+ * Creates a NoiseCertificate message from a plain object. Also converts values to their respective internal types.
163
+ * @param object Plain object
164
+ * @returns NoiseCertificate
165
+ */
166
+ public static fromObject(object: { [k: string]: any }): Cert.CertChain.NoiseCertificate;
167
+ /**
168
+ * Creates a plain object from a NoiseCertificate message. Also converts values to other types if specified.
169
+ * @param message NoiseCertificate
170
+ * @param [options] Conversion options
171
+ * @returns Plain object
172
+ */
173
+ public static toObject(message: Cert.CertChain.NoiseCertificate, options?: $protobuf.IConversionOptions): { [k: string]: any };
174
+ /**
175
+ * Converts this NoiseCertificate to JSON.
176
+ * @returns JSON object
177
+ */
178
+ public toJSON(): { [k: string]: any };
179
+ /**
180
+ * Gets the default type url for NoiseCertificate
181
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
182
+ * @returns The default type url
183
+ */
184
+ public static getTypeUrl(typeUrlPrefix?: string): string;
185
+ }
186
+ namespace NoiseCertificate {
187
+ /** Properties of a Details. */
188
+ interface IDetails {
189
+ /** Details serial */
190
+ serial?: (number|null);
191
+ /** Details issuerSerial */
192
+ issuerSerial?: (number|null);
193
+ /** Details key */
194
+ key?: (Uint8Array|null);
195
+ /** Details notBefore */
196
+ notBefore?: (number|Long|null);
197
+ /** Details notAfter */
198
+ notAfter?: (number|Long|null);
199
+ }
200
+ /** Represents a Details. */
201
+ class Details implements IDetails {
202
+ /**
203
+ * Constructs a new Details.
204
+ * @param [properties] Properties to set
205
+ */
206
+ constructor(properties?: Cert.CertChain.NoiseCertificate.IDetails);
207
+ /** Details serial. */
208
+ public serial?: (number|null);
209
+ /** Details issuerSerial. */
210
+ public issuerSerial?: (number|null);
211
+ /** Details key. */
212
+ public key?: (Uint8Array|null);
213
+ /** Details notBefore. */
214
+ public notBefore?: (number|Long|null);
215
+ /** Details notAfter. */
216
+ public notAfter?: (number|Long|null);
217
+ /** Details _serial. */
218
+ public _serial?: "serial";
219
+ /** Details _issuerSerial. */
220
+ public _issuerSerial?: "issuerSerial";
221
+ /** Details _key. */
222
+ public _key?: "key";
223
+ /** Details _notBefore. */
224
+ public _notBefore?: "notBefore";
225
+ /** Details _notAfter. */
226
+ public _notAfter?: "notAfter";
227
+ /**
228
+ * Creates a new Details instance using the specified properties.
229
+ * @param [properties] Properties to set
230
+ * @returns Details instance
231
+ */
232
+ public static create(properties?: Cert.CertChain.NoiseCertificate.IDetails): Cert.CertChain.NoiseCertificate.Details;
233
+ /**
234
+ * Encodes the specified Details message. Does not implicitly {@link Cert.CertChain.NoiseCertificate.Details.verify|verify} messages.
235
+ * @param message Details message or plain object to encode
236
+ * @param [writer] Writer to encode to
237
+ * @returns Writer
238
+ */
239
+ public static encode(message: Cert.CertChain.NoiseCertificate.IDetails, writer?: $protobuf.Writer): $protobuf.Writer;
240
+ /**
241
+ * Encodes the specified Details message, length delimited. Does not implicitly {@link Cert.CertChain.NoiseCertificate.Details.verify|verify} messages.
242
+ * @param message Details message or plain object to encode
243
+ * @param [writer] Writer to encode to
244
+ * @returns Writer
245
+ */
246
+ public static encodeDelimited(message: Cert.CertChain.NoiseCertificate.IDetails, writer?: $protobuf.Writer): $protobuf.Writer;
247
+ /**
248
+ * Decodes a Details message from the specified reader or buffer.
249
+ * @param reader Reader or buffer to decode from
250
+ * @param [length] Message length if known beforehand
251
+ * @returns Details
252
+ * @throws {Error} If the payload is not a reader or valid buffer
253
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
254
+ */
255
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Cert.CertChain.NoiseCertificate.Details;
256
+ /**
257
+ * Decodes a Details message from the specified reader or buffer, length delimited.
258
+ * @param reader Reader or buffer to decode from
259
+ * @returns Details
260
+ * @throws {Error} If the payload is not a reader or valid buffer
261
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
262
+ */
263
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Cert.CertChain.NoiseCertificate.Details;
264
+ /**
265
+ * Verifies a Details message.
266
+ * @param message Plain object to verify
267
+ * @returns `null` if valid, otherwise the reason why it is not
268
+ */
269
+ public static verify(message: { [k: string]: any }): (string|null);
270
+ /**
271
+ * Creates a Details message from a plain object. Also converts values to their respective internal types.
272
+ * @param object Plain object
273
+ * @returns Details
274
+ */
275
+ public static fromObject(object: { [k: string]: any }): Cert.CertChain.NoiseCertificate.Details;
276
+ /**
277
+ * Creates a plain object from a Details message. Also converts values to other types if specified.
278
+ * @param message Details
279
+ * @param [options] Conversion options
280
+ * @returns Plain object
281
+ */
282
+ public static toObject(message: Cert.CertChain.NoiseCertificate.Details, options?: $protobuf.IConversionOptions): { [k: string]: any };
283
+ /**
284
+ * Converts this Details to JSON.
285
+ * @returns JSON object
286
+ */
287
+ public toJSON(): { [k: string]: any };
288
+ /**
289
+ * Gets the default type url for Details
290
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
291
+ * @returns The default type url
292
+ */
293
+ public static getTypeUrl(typeUrlPrefix?: string): string;
294
+ }
295
+ }
296
+ }
297
+ /** Properties of a NoiseCertificate. */
298
+ interface INoiseCertificate {
299
+ /** NoiseCertificate details */
300
+ details?: (Uint8Array|null);
301
+ /** NoiseCertificate signature */
302
+ signature?: (Uint8Array|null);
303
+ }
304
+ /** Represents a NoiseCertificate. */
305
+ class NoiseCertificate implements INoiseCertificate {
306
+ /**
307
+ * Constructs a new NoiseCertificate.
308
+ * @param [properties] Properties to set
309
+ */
310
+ constructor(properties?: Cert.INoiseCertificate);
311
+ /** NoiseCertificate details. */
312
+ public details?: (Uint8Array|null);
313
+ /** NoiseCertificate signature. */
314
+ public signature?: (Uint8Array|null);
315
+ /** NoiseCertificate _details. */
316
+ public _details?: "details";
317
+ /** NoiseCertificate _signature. */
318
+ public _signature?: "signature";
319
+ /**
320
+ * Creates a new NoiseCertificate instance using the specified properties.
321
+ * @param [properties] Properties to set
322
+ * @returns NoiseCertificate instance
323
+ */
324
+ public static create(properties?: Cert.INoiseCertificate): Cert.NoiseCertificate;
325
+ /**
326
+ * Encodes the specified NoiseCertificate message. Does not implicitly {@link Cert.NoiseCertificate.verify|verify} messages.
327
+ * @param message NoiseCertificate message or plain object to encode
328
+ * @param [writer] Writer to encode to
329
+ * @returns Writer
330
+ */
331
+ public static encode(message: Cert.INoiseCertificate, writer?: $protobuf.Writer): $protobuf.Writer;
332
+ /**
333
+ * Encodes the specified NoiseCertificate message, length delimited. Does not implicitly {@link Cert.NoiseCertificate.verify|verify} messages.
334
+ * @param message NoiseCertificate message or plain object to encode
335
+ * @param [writer] Writer to encode to
336
+ * @returns Writer
337
+ */
338
+ public static encodeDelimited(message: Cert.INoiseCertificate, writer?: $protobuf.Writer): $protobuf.Writer;
339
+ /**
340
+ * Decodes a NoiseCertificate message from the specified reader or buffer.
341
+ * @param reader Reader or buffer to decode from
342
+ * @param [length] Message length if known beforehand
343
+ * @returns NoiseCertificate
344
+ * @throws {Error} If the payload is not a reader or valid buffer
345
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
346
+ */
347
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Cert.NoiseCertificate;
348
+ /**
349
+ * Decodes a NoiseCertificate message from the specified reader or buffer, length delimited.
350
+ * @param reader Reader or buffer to decode from
351
+ * @returns NoiseCertificate
352
+ * @throws {Error} If the payload is not a reader or valid buffer
353
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
354
+ */
355
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Cert.NoiseCertificate;
356
+ /**
357
+ * Verifies a NoiseCertificate message.
358
+ * @param message Plain object to verify
359
+ * @returns `null` if valid, otherwise the reason why it is not
360
+ */
361
+ public static verify(message: { [k: string]: any }): (string|null);
362
+ /**
363
+ * Creates a NoiseCertificate message from a plain object. Also converts values to their respective internal types.
364
+ * @param object Plain object
365
+ * @returns NoiseCertificate
366
+ */
367
+ public static fromObject(object: { [k: string]: any }): Cert.NoiseCertificate;
368
+ /**
369
+ * Creates a plain object from a NoiseCertificate message. Also converts values to other types if specified.
370
+ * @param message NoiseCertificate
371
+ * @param [options] Conversion options
372
+ * @returns Plain object
373
+ */
374
+ public static toObject(message: Cert.NoiseCertificate, options?: $protobuf.IConversionOptions): { [k: string]: any };
375
+ /**
376
+ * Converts this NoiseCertificate to JSON.
377
+ * @returns JSON object
378
+ */
379
+ public toJSON(): { [k: string]: any };
380
+ /**
381
+ * Gets the default type url for NoiseCertificate
382
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
383
+ * @returns The default type url
384
+ */
385
+ public static getTypeUrl(typeUrlPrefix?: string): string;
386
+ }
387
+ namespace NoiseCertificate {
388
+ /** Properties of a Details. */
389
+ interface IDetails {
390
+ /** Details serial */
391
+ serial?: (number|null);
392
+ /** Details issuer */
393
+ issuer?: (string|null);
394
+ /** Details expires */
395
+ expires?: (number|Long|null);
396
+ /** Details subject */
397
+ subject?: (string|null);
398
+ /** Details key */
399
+ key?: (Uint8Array|null);
400
+ }
401
+ /** Represents a Details. */
402
+ class Details implements IDetails {
403
+ /**
404
+ * Constructs a new Details.
405
+ * @param [properties] Properties to set
406
+ */
407
+ constructor(properties?: Cert.NoiseCertificate.IDetails);
408
+ /** Details serial. */
409
+ public serial?: (number|null);
410
+ /** Details issuer. */
411
+ public issuer?: (string|null);
412
+ /** Details expires. */
413
+ public expires?: (number|Long|null);
414
+ /** Details subject. */
415
+ public subject?: (string|null);
416
+ /** Details key. */
417
+ public key?: (Uint8Array|null);
418
+ /** Details _serial. */
419
+ public _serial?: "serial";
420
+ /** Details _issuer. */
421
+ public _issuer?: "issuer";
422
+ /** Details _expires. */
423
+ public _expires?: "expires";
424
+ /** Details _subject. */
425
+ public _subject?: "subject";
426
+ /** Details _key. */
427
+ public _key?: "key";
428
+ /**
429
+ * Creates a new Details instance using the specified properties.
430
+ * @param [properties] Properties to set
431
+ * @returns Details instance
432
+ */
433
+ public static create(properties?: Cert.NoiseCertificate.IDetails): Cert.NoiseCertificate.Details;
434
+ /**
435
+ * Encodes the specified Details message. Does not implicitly {@link Cert.NoiseCertificate.Details.verify|verify} messages.
436
+ * @param message Details message or plain object to encode
437
+ * @param [writer] Writer to encode to
438
+ * @returns Writer
439
+ */
440
+ public static encode(message: Cert.NoiseCertificate.IDetails, writer?: $protobuf.Writer): $protobuf.Writer;
441
+ /**
442
+ * Encodes the specified Details message, length delimited. Does not implicitly {@link Cert.NoiseCertificate.Details.verify|verify} messages.
443
+ * @param message Details message or plain object to encode
444
+ * @param [writer] Writer to encode to
445
+ * @returns Writer
446
+ */
447
+ public static encodeDelimited(message: Cert.NoiseCertificate.IDetails, writer?: $protobuf.Writer): $protobuf.Writer;
448
+ /**
449
+ * Decodes a Details message from the specified reader or buffer.
450
+ * @param reader Reader or buffer to decode from
451
+ * @param [length] Message length if known beforehand
452
+ * @returns Details
453
+ * @throws {Error} If the payload is not a reader or valid buffer
454
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
455
+ */
456
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Cert.NoiseCertificate.Details;
457
+ /**
458
+ * Decodes a Details message from the specified reader or buffer, length delimited.
459
+ * @param reader Reader or buffer to decode from
460
+ * @returns Details
461
+ * @throws {Error} If the payload is not a reader or valid buffer
462
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
463
+ */
464
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Cert.NoiseCertificate.Details;
465
+ /**
466
+ * Verifies a Details message.
467
+ * @param message Plain object to verify
468
+ * @returns `null` if valid, otherwise the reason why it is not
469
+ */
470
+ public static verify(message: { [k: string]: any }): (string|null);
471
+ /**
472
+ * Creates a Details message from a plain object. Also converts values to their respective internal types.
473
+ * @param object Plain object
474
+ * @returns Details
475
+ */
476
+ public static fromObject(object: { [k: string]: any }): Cert.NoiseCertificate.Details;
477
+ /**
478
+ * Creates a plain object from a Details message. Also converts values to other types if specified.
479
+ * @param message Details
480
+ * @param [options] Conversion options
481
+ * @returns Plain object
482
+ */
483
+ public static toObject(message: Cert.NoiseCertificate.Details, options?: $protobuf.IConversionOptions): { [k: string]: any };
484
+ /**
485
+ * Converts this Details to JSON.
486
+ * @returns JSON object
487
+ */
488
+ public toJSON(): { [k: string]: any };
489
+ /**
490
+ * Gets the default type url for Details
491
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
492
+ * @returns The default type url
493
+ */
494
+ public static getTypeUrl(typeUrlPrefix?: string): string;
495
+ }
496
+ }
497
+ }