valley-baileys 1.0.0

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 (1750) hide show
  1. package/index.js +4 -0
  2. package/node_modules/@borewit/text-codec/LICENSE.txt +9 -0
  3. package/node_modules/@borewit/text-codec/README.md +87 -0
  4. package/node_modules/@borewit/text-codec/lib/index.d.ts +6 -0
  5. package/node_modules/@borewit/text-codec/lib/index.js +380 -0
  6. package/node_modules/@borewit/text-codec/package.json +70 -0
  7. package/node_modules/@cacheable/memory/LICENSE +19 -0
  8. package/node_modules/@cacheable/memory/README.md +340 -0
  9. package/node_modules/@cacheable/memory/dist/index.cjs +830 -0
  10. package/node_modules/@cacheable/memory/dist/index.d.cts +310 -0
  11. package/node_modules/@cacheable/memory/dist/index.d.ts +310 -0
  12. package/node_modules/@cacheable/memory/dist/index.js +807 -0
  13. package/node_modules/@cacheable/memory/package.json +65 -0
  14. package/node_modules/@cacheable/node-cache/LICENSE +19 -0
  15. package/node_modules/@cacheable/node-cache/README.md +352 -0
  16. package/node_modules/@cacheable/node-cache/dist/index.cjs +567 -0
  17. package/node_modules/@cacheable/node-cache/dist/index.d.cts +335 -0
  18. package/node_modules/@cacheable/node-cache/dist/index.d.ts +335 -0
  19. package/node_modules/@cacheable/node-cache/dist/index.js +540 -0
  20. package/node_modules/@cacheable/node-cache/package.json +69 -0
  21. package/node_modules/@cacheable/utils/LICENSE +19 -0
  22. package/node_modules/@cacheable/utils/README.md +520 -0
  23. package/node_modules/@cacheable/utils/dist/index.cjs +677 -0
  24. package/node_modules/@cacheable/utils/dist/index.d.cts +307 -0
  25. package/node_modules/@cacheable/utils/dist/index.d.ts +307 -0
  26. package/node_modules/@cacheable/utils/dist/index.js +630 -0
  27. package/node_modules/@cacheable/utils/package.json +56 -0
  28. package/node_modules/@hapi/boom/LICENSE.md +10 -0
  29. package/node_modules/@hapi/boom/README.md +17 -0
  30. package/node_modules/@hapi/boom/lib/index.d.ts +549 -0
  31. package/node_modules/@hapi/boom/lib/index.js +469 -0
  32. package/node_modules/@hapi/boom/package.json +28 -0
  33. package/node_modules/@hapi/hoek/LICENSE.md +12 -0
  34. package/node_modules/@hapi/hoek/README.md +19 -0
  35. package/node_modules/@hapi/hoek/lib/applyToDefaults.js +102 -0
  36. package/node_modules/@hapi/hoek/lib/assert.js +22 -0
  37. package/node_modules/@hapi/hoek/lib/bench.js +29 -0
  38. package/node_modules/@hapi/hoek/lib/block.js +12 -0
  39. package/node_modules/@hapi/hoek/lib/clone.js +176 -0
  40. package/node_modules/@hapi/hoek/lib/contain.js +307 -0
  41. package/node_modules/@hapi/hoek/lib/deepEqual.js +317 -0
  42. package/node_modules/@hapi/hoek/lib/error.js +26 -0
  43. package/node_modules/@hapi/hoek/lib/escapeHeaderAttribute.js +16 -0
  44. package/node_modules/@hapi/hoek/lib/escapeHtml.js +87 -0
  45. package/node_modules/@hapi/hoek/lib/escapeJson.js +28 -0
  46. package/node_modules/@hapi/hoek/lib/escapeRegex.js +11 -0
  47. package/node_modules/@hapi/hoek/lib/flatten.js +20 -0
  48. package/node_modules/@hapi/hoek/lib/ignore.js +6 -0
  49. package/node_modules/@hapi/hoek/lib/index.d.ts +471 -0
  50. package/node_modules/@hapi/hoek/lib/index.js +45 -0
  51. package/node_modules/@hapi/hoek/lib/intersect.js +41 -0
  52. package/node_modules/@hapi/hoek/lib/isPromise.js +9 -0
  53. package/node_modules/@hapi/hoek/lib/merge.js +78 -0
  54. package/node_modules/@hapi/hoek/lib/once.js +25 -0
  55. package/node_modules/@hapi/hoek/lib/reach.js +76 -0
  56. package/node_modules/@hapi/hoek/lib/reachTemplate.js +16 -0
  57. package/node_modules/@hapi/hoek/lib/stringify.js +14 -0
  58. package/node_modules/@hapi/hoek/lib/types.js +55 -0
  59. package/node_modules/@hapi/hoek/lib/utils.js +9 -0
  60. package/node_modules/@hapi/hoek/lib/wait.js +37 -0
  61. package/node_modules/@hapi/hoek/package.json +31 -0
  62. package/node_modules/@keyv/bigmap/LICENSE +21 -0
  63. package/node_modules/@keyv/bigmap/README.md +624 -0
  64. package/node_modules/@keyv/bigmap/dist/index.cjs +268 -0
  65. package/node_modules/@keyv/bigmap/dist/index.d.cts +157 -0
  66. package/node_modules/@keyv/bigmap/dist/index.d.ts +157 -0
  67. package/node_modules/@keyv/bigmap/dist/index.js +239 -0
  68. package/node_modules/@keyv/bigmap/package.json +73 -0
  69. package/node_modules/@keyv/serialize/LICENSE +22 -0
  70. package/node_modules/@keyv/serialize/README.md +15 -0
  71. package/node_modules/@keyv/serialize/dist/index.cjs +84 -0
  72. package/node_modules/@keyv/serialize/dist/index.d.cts +4 -0
  73. package/node_modules/@keyv/serialize/dist/index.d.ts +4 -0
  74. package/node_modules/@keyv/serialize/dist/index.js +58 -0
  75. package/node_modules/@keyv/serialize/package.json +55 -0
  76. package/node_modules/@pinojs/redact/.github/dependabot.yml +13 -0
  77. package/node_modules/@pinojs/redact/.github/workflows/ci.yml +48 -0
  78. package/node_modules/@pinojs/redact/.github/workflows/publish-release.yml +43 -0
  79. package/node_modules/@pinojs/redact/LICENSE +21 -0
  80. package/node_modules/@pinojs/redact/README.md +350 -0
  81. package/node_modules/@pinojs/redact/benchmarks/basic.js +184 -0
  82. package/node_modules/@pinojs/redact/eslint.config.js +1 -0
  83. package/node_modules/@pinojs/redact/index.d.ts +52 -0
  84. package/node_modules/@pinojs/redact/index.js +529 -0
  85. package/node_modules/@pinojs/redact/index.test-d.ts +22 -0
  86. package/node_modules/@pinojs/redact/package.json +37 -0
  87. package/node_modules/@pinojs/redact/scripts/sync-version.mjs +20 -0
  88. package/node_modules/@pinojs/redact/test/actual-redact-comparison.test.js +211 -0
  89. package/node_modules/@pinojs/redact/test/index.test.js +824 -0
  90. package/node_modules/@pinojs/redact/test/integration.test.js +390 -0
  91. package/node_modules/@pinojs/redact/test/multiple-wildcards.test.js +227 -0
  92. package/node_modules/@pinojs/redact/test/prototype-pollution.test.js +223 -0
  93. package/node_modules/@pinojs/redact/test/selective-clone.test.js +115 -0
  94. package/node_modules/@pinojs/redact/tsconfig.json +19 -0
  95. package/node_modules/@protobufjs/aspromise/LICENSE +26 -0
  96. package/node_modules/@protobufjs/aspromise/README.md +13 -0
  97. package/node_modules/@protobufjs/aspromise/index.d.ts +13 -0
  98. package/node_modules/@protobufjs/aspromise/index.js +52 -0
  99. package/node_modules/@protobufjs/aspromise/package.json +21 -0
  100. package/node_modules/@protobufjs/aspromise/tests/index.js +130 -0
  101. package/node_modules/@protobufjs/base64/LICENSE +26 -0
  102. package/node_modules/@protobufjs/base64/README.md +19 -0
  103. package/node_modules/@protobufjs/base64/index.d.ts +32 -0
  104. package/node_modules/@protobufjs/base64/index.js +139 -0
  105. package/node_modules/@protobufjs/base64/package.json +21 -0
  106. package/node_modules/@protobufjs/base64/tests/index.js +46 -0
  107. package/node_modules/@protobufjs/codegen/LICENSE +26 -0
  108. package/node_modules/@protobufjs/codegen/README.md +49 -0
  109. package/node_modules/@protobufjs/codegen/index.d.ts +31 -0
  110. package/node_modules/@protobufjs/codegen/index.js +112 -0
  111. package/node_modules/@protobufjs/codegen/package.json +13 -0
  112. package/node_modules/@protobufjs/codegen/tests/index.js +13 -0
  113. package/node_modules/@protobufjs/eventemitter/CHANGELOG.md +8 -0
  114. package/node_modules/@protobufjs/eventemitter/LICENSE +26 -0
  115. package/node_modules/@protobufjs/eventemitter/README.md +22 -0
  116. package/node_modules/@protobufjs/eventemitter/index.d.ts +45 -0
  117. package/node_modules/@protobufjs/eventemitter/index.js +86 -0
  118. package/node_modules/@protobufjs/eventemitter/package.json +21 -0
  119. package/node_modules/@protobufjs/eventemitter/tests/index.js +83 -0
  120. package/node_modules/@protobufjs/fetch/CHANGELOG.md +8 -0
  121. package/node_modules/@protobufjs/fetch/LICENSE +26 -0
  122. package/node_modules/@protobufjs/fetch/README.md +13 -0
  123. package/node_modules/@protobufjs/fetch/index.d.ts +56 -0
  124. package/node_modules/@protobufjs/fetch/index.js +112 -0
  125. package/node_modules/@protobufjs/fetch/package.json +27 -0
  126. package/node_modules/@protobufjs/fetch/tests/data/file.txt +1 -0
  127. package/node_modules/@protobufjs/fetch/tests/index.js +158 -0
  128. package/node_modules/@protobufjs/fetch/util/fs.js +11 -0
  129. package/node_modules/@protobufjs/float/LICENSE +26 -0
  130. package/node_modules/@protobufjs/float/README.md +102 -0
  131. package/node_modules/@protobufjs/float/bench/index.js +87 -0
  132. package/node_modules/@protobufjs/float/bench/suite.js +46 -0
  133. package/node_modules/@protobufjs/float/index.d.ts +83 -0
  134. package/node_modules/@protobufjs/float/index.js +335 -0
  135. package/node_modules/@protobufjs/float/package.json +26 -0
  136. package/node_modules/@protobufjs/float/tests/index.js +100 -0
  137. package/node_modules/@protobufjs/path/LICENSE +26 -0
  138. package/node_modules/@protobufjs/path/README.md +19 -0
  139. package/node_modules/@protobufjs/path/index.d.ts +22 -0
  140. package/node_modules/@protobufjs/path/index.js +65 -0
  141. package/node_modules/@protobufjs/path/package.json +21 -0
  142. package/node_modules/@protobufjs/path/tests/index.js +60 -0
  143. package/node_modules/@protobufjs/pool/.npmignore +3 -0
  144. package/node_modules/@protobufjs/pool/LICENSE +26 -0
  145. package/node_modules/@protobufjs/pool/README.md +13 -0
  146. package/node_modules/@protobufjs/pool/index.d.ts +32 -0
  147. package/node_modules/@protobufjs/pool/index.js +48 -0
  148. package/node_modules/@protobufjs/pool/package.json +21 -0
  149. package/node_modules/@protobufjs/pool/tests/index.js +33 -0
  150. package/node_modules/@protobufjs/utf8/LICENSE +26 -0
  151. package/node_modules/@protobufjs/utf8/README.md +20 -0
  152. package/node_modules/@protobufjs/utf8/index.d.ts +24 -0
  153. package/node_modules/@protobufjs/utf8/index.js +104 -0
  154. package/node_modules/@protobufjs/utf8/package.json +21 -0
  155. package/node_modules/@protobufjs/utf8/tests/data/surrogate_pair_bug.txt +207 -0
  156. package/node_modules/@protobufjs/utf8/tests/data/utf8.txt +216 -0
  157. package/node_modules/@protobufjs/utf8/tests/index.js +74 -0
  158. package/node_modules/@tokenizer/inflate/LICENSE +15 -0
  159. package/node_modules/@tokenizer/inflate/README.md +114 -0
  160. package/node_modules/@tokenizer/inflate/lib/GzipHandler.d.ts +6 -0
  161. package/node_modules/@tokenizer/inflate/lib/GzipHandler.js +19 -0
  162. package/node_modules/@tokenizer/inflate/lib/ZipHandler.d.ts +26 -0
  163. package/node_modules/@tokenizer/inflate/lib/ZipHandler.js +233 -0
  164. package/node_modules/@tokenizer/inflate/lib/ZipToken.d.ts +94 -0
  165. package/node_modules/@tokenizer/inflate/lib/ZipToken.js +117 -0
  166. package/node_modules/@tokenizer/inflate/lib/index.d.ts +3 -0
  167. package/node_modules/@tokenizer/inflate/lib/index.js +2 -0
  168. package/node_modules/@tokenizer/inflate/package.json +76 -0
  169. package/node_modules/@tokenizer/token/README.md +19 -0
  170. package/node_modules/@tokenizer/token/index.d.ts +30 -0
  171. package/node_modules/@tokenizer/token/package.json +33 -0
  172. package/node_modules/@types/node/LICENSE +21 -0
  173. package/node_modules/@types/node/README.md +15 -0
  174. package/node_modules/@types/node/assert/strict.d.ts +68 -0
  175. package/node_modules/@types/node/assert.d.ts +1077 -0
  176. package/node_modules/@types/node/async_hooks.d.ts +711 -0
  177. package/node_modules/@types/node/buffer.buffer.d.ts +466 -0
  178. package/node_modules/@types/node/buffer.d.ts +1760 -0
  179. package/node_modules/@types/node/child_process.d.ts +1362 -0
  180. package/node_modules/@types/node/cluster.d.ts +432 -0
  181. package/node_modules/@types/node/console.d.ts +93 -0
  182. package/node_modules/@types/node/constants.d.ts +14 -0
  183. package/node_modules/@types/node/crypto.d.ts +3941 -0
  184. package/node_modules/@types/node/dgram.d.ts +537 -0
  185. package/node_modules/@types/node/diagnostics_channel.d.ts +563 -0
  186. package/node_modules/@types/node/dns/promises.d.ts +497 -0
  187. package/node_modules/@types/node/dns.d.ts +876 -0
  188. package/node_modules/@types/node/domain.d.ts +150 -0
  189. package/node_modules/@types/node/events.d.ts +1008 -0
  190. package/node_modules/@types/node/fs/promises.d.ts +1468 -0
  191. package/node_modules/@types/node/fs.d.ts +4771 -0
  192. package/node_modules/@types/node/globals.d.ts +150 -0
  193. package/node_modules/@types/node/globals.typedarray.d.ts +101 -0
  194. package/node_modules/@types/node/http.d.ts +2147 -0
  195. package/node_modules/@types/node/http2.d.ts +2489 -0
  196. package/node_modules/@types/node/https.d.ts +400 -0
  197. package/node_modules/@types/node/index.d.ts +114 -0
  198. package/node_modules/@types/node/inspector/promises.d.ts +35 -0
  199. package/node_modules/@types/node/inspector.d.ts +264 -0
  200. package/node_modules/@types/node/inspector.generated.d.ts +4406 -0
  201. package/node_modules/@types/node/module.d.ts +726 -0
  202. package/node_modules/@types/node/net.d.ts +970 -0
  203. package/node_modules/@types/node/os.d.ts +498 -0
  204. package/node_modules/@types/node/package.json +155 -0
  205. package/node_modules/@types/node/path/posix.d.ts +8 -0
  206. package/node_modules/@types/node/path/win32.d.ts +8 -0
  207. package/node_modules/@types/node/path.d.ts +178 -0
  208. package/node_modules/@types/node/perf_hooks.d.ts +604 -0
  209. package/node_modules/@types/node/process.d.ts +2204 -0
  210. package/node_modules/@types/node/punycode.d.ts +89 -0
  211. package/node_modules/@types/node/querystring.d.ts +139 -0
  212. package/node_modules/@types/node/quic.d.ts +897 -0
  213. package/node_modules/@types/node/readline/promises.d.ts +158 -0
  214. package/node_modules/@types/node/readline.d.ts +508 -0
  215. package/node_modules/@types/node/repl.d.ts +420 -0
  216. package/node_modules/@types/node/sea.d.ts +47 -0
  217. package/node_modules/@types/node/sqlite.d.ts +1068 -0
  218. package/node_modules/@types/node/stream/consumers.d.ts +114 -0
  219. package/node_modules/@types/node/stream/iter.d.ts +301 -0
  220. package/node_modules/@types/node/stream/promises.d.ts +211 -0
  221. package/node_modules/@types/node/stream/web.d.ts +300 -0
  222. package/node_modules/@types/node/stream.d.ts +1774 -0
  223. package/node_modules/@types/node/string_decoder.d.ts +27 -0
  224. package/node_modules/@types/node/test/reporters.d.ts +59 -0
  225. package/node_modules/@types/node/test.d.ts +2279 -0
  226. package/node_modules/@types/node/timers/promises.d.ts +93 -0
  227. package/node_modules/@types/node/timers.d.ts +149 -0
  228. package/node_modules/@types/node/tls.d.ts +1193 -0
  229. package/node_modules/@types/node/trace_events.d.ts +103 -0
  230. package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +462 -0
  231. package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  232. package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
  233. package/node_modules/@types/node/ts5.6/index.d.ts +116 -0
  234. package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  235. package/node_modules/@types/node/ts5.7/index.d.ts +116 -0
  236. package/node_modules/@types/node/tty.d.ts +225 -0
  237. package/node_modules/@types/node/url.d.ts +556 -0
  238. package/node_modules/@types/node/util/types.d.ts +558 -0
  239. package/node_modules/@types/node/util.d.ts +1660 -0
  240. package/node_modules/@types/node/v8.d.ts +980 -0
  241. package/node_modules/@types/node/vm.d.ts +1136 -0
  242. package/node_modules/@types/node/wasi.d.ts +131 -0
  243. package/node_modules/@types/node/web-globals/abortcontroller.d.ts +59 -0
  244. package/node_modules/@types/node/web-globals/blob.d.ts +23 -0
  245. package/node_modules/@types/node/web-globals/console.d.ts +9 -0
  246. package/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
  247. package/node_modules/@types/node/web-globals/domexception.d.ts +83 -0
  248. package/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
  249. package/node_modules/@types/node/web-globals/events.d.ts +106 -0
  250. package/node_modules/@types/node/web-globals/fetch.d.ts +69 -0
  251. package/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
  252. package/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
  253. package/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
  254. package/node_modules/@types/node/web-globals/performance.d.ts +45 -0
  255. package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  256. package/node_modules/@types/node/web-globals/streams.d.ts +115 -0
  257. package/node_modules/@types/node/web-globals/timers.d.ts +44 -0
  258. package/node_modules/@types/node/web-globals/url.d.ts +24 -0
  259. package/node_modules/@types/node/worker_threads.d.ts +668 -0
  260. package/node_modules/@types/node/zlib/iter.d.ts +131 -0
  261. package/node_modules/@types/node/zlib.d.ts +589 -0
  262. package/node_modules/@whiskeysockets/baileys/LICENSE +21 -0
  263. package/node_modules/@whiskeysockets/baileys/README.md +1312 -0
  264. package/node_modules/@whiskeysockets/baileys/WAProto/GenerateStatics.sh +3 -0
  265. package/node_modules/@whiskeysockets/baileys/WAProto/WAProto.proto +5479 -0
  266. package/node_modules/@whiskeysockets/baileys/WAProto/fix-imports.js +85 -0
  267. package/node_modules/@whiskeysockets/baileys/WAProto/index.d.ts +14017 -0
  268. package/node_modules/@whiskeysockets/baileys/WAProto/index.js +97691 -0
  269. package/node_modules/@whiskeysockets/baileys/engine-requirements.js +10 -0
  270. package/node_modules/@whiskeysockets/baileys/lib/Defaults/index.d.ts +75 -0
  271. package/node_modules/@whiskeysockets/baileys/lib/Defaults/index.d.ts.map +1 -0
  272. package/node_modules/@whiskeysockets/baileys/lib/Defaults/index.js +129 -0
  273. package/node_modules/@whiskeysockets/baileys/lib/Defaults/index.js.map +1 -0
  274. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/ciphertext-message.d.ts +10 -0
  275. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/ciphertext-message.d.ts.map +1 -0
  276. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/ciphertext-message.js +12 -0
  277. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/ciphertext-message.js.map +1 -0
  278. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/group-session-builder.d.ts +15 -0
  279. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/group-session-builder.d.ts.map +1 -0
  280. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/group-session-builder.js +30 -0
  281. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/group-session-builder.js.map +1 -0
  282. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/group_cipher.d.ts +17 -0
  283. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/group_cipher.d.ts.map +1 -0
  284. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/group_cipher.js +82 -0
  285. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/group_cipher.js.map +1 -0
  286. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/index.d.ts +12 -0
  287. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/index.d.ts.map +1 -0
  288. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/index.js +12 -0
  289. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/index.js.map +1 -0
  290. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/keyhelper.d.ts +11 -0
  291. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/keyhelper.d.ts.map +1 -0
  292. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/keyhelper.js +18 -0
  293. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/keyhelper.js.map +1 -0
  294. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-chain-key.d.ts +14 -0
  295. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-chain-key.d.ts.map +1 -0
  296. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-chain-key.js +26 -0
  297. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-chain-key.js.map +1 -0
  298. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-distribution-message.d.ts +17 -0
  299. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-distribution-message.d.ts.map +1 -0
  300. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-distribution-message.js +63 -0
  301. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-distribution-message.js.map +1 -0
  302. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-message.d.ts +19 -0
  303. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-message.d.ts.map +1 -0
  304. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-message.js +66 -0
  305. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-message.js.map +1 -0
  306. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-name.d.ts +18 -0
  307. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-name.d.ts.map +1 -0
  308. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-name.js +48 -0
  309. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-name.js.map +1 -0
  310. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-record.d.ts +31 -0
  311. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-record.d.ts.map +1 -0
  312. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-record.js +41 -0
  313. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-record.js.map +1 -0
  314. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-state.d.ts +39 -0
  315. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-state.d.ts.map +1 -0
  316. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-state.js +84 -0
  317. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-state.js.map +1 -0
  318. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-message-key.d.ts +12 -0
  319. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-message-key.d.ts.map +1 -0
  320. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-message-key.js +26 -0
  321. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-message-key.js.map +1 -0
  322. package/node_modules/@whiskeysockets/baileys/lib/Signal/libsignal.d.ts +5 -0
  323. package/node_modules/@whiskeysockets/baileys/lib/Signal/libsignal.d.ts.map +1 -0
  324. package/node_modules/@whiskeysockets/baileys/lib/Signal/libsignal.js +431 -0
  325. package/node_modules/@whiskeysockets/baileys/lib/Signal/libsignal.js.map +1 -0
  326. package/node_modules/@whiskeysockets/baileys/lib/Signal/lid-mapping.d.ts +23 -0
  327. package/node_modules/@whiskeysockets/baileys/lib/Signal/lid-mapping.d.ts.map +1 -0
  328. package/node_modules/@whiskeysockets/baileys/lib/Signal/lid-mapping.js +277 -0
  329. package/node_modules/@whiskeysockets/baileys/lib/Signal/lid-mapping.js.map +1 -0
  330. package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/index.d.ts +3 -0
  331. package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/index.d.ts.map +1 -0
  332. package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/index.js +3 -0
  333. package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/index.js.map +1 -0
  334. package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/types.d.ts +16 -0
  335. package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/types.d.ts.map +1 -0
  336. package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/types.js +11 -0
  337. package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/types.js.map +1 -0
  338. package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/websocket.d.ts +13 -0
  339. package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/websocket.d.ts.map +1 -0
  340. package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/websocket.js +54 -0
  341. package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/websocket.js.map +1 -0
  342. package/node_modules/@whiskeysockets/baileys/lib/Socket/business.d.ts +217 -0
  343. package/node_modules/@whiskeysockets/baileys/lib/Socket/business.d.ts.map +1 -0
  344. package/node_modules/@whiskeysockets/baileys/lib/Socket/business.js +379 -0
  345. package/node_modules/@whiskeysockets/baileys/lib/Socket/business.js.map +1 -0
  346. package/node_modules/@whiskeysockets/baileys/lib/Socket/chats.d.ts +124 -0
  347. package/node_modules/@whiskeysockets/baileys/lib/Socket/chats.d.ts.map +1 -0
  348. package/node_modules/@whiskeysockets/baileys/lib/Socket/chats.js +1193 -0
  349. package/node_modules/@whiskeysockets/baileys/lib/Socket/chats.js.map +1 -0
  350. package/node_modules/@whiskeysockets/baileys/lib/Socket/communities.d.ts +273 -0
  351. package/node_modules/@whiskeysockets/baileys/lib/Socket/communities.d.ts.map +1 -0
  352. package/node_modules/@whiskeysockets/baileys/lib/Socket/communities.js +431 -0
  353. package/node_modules/@whiskeysockets/baileys/lib/Socket/communities.js.map +1 -0
  354. package/node_modules/@whiskeysockets/baileys/lib/Socket/groups.d.ts +161 -0
  355. package/node_modules/@whiskeysockets/baileys/lib/Socket/groups.d.ts.map +1 -0
  356. package/node_modules/@whiskeysockets/baileys/lib/Socket/groups.js +347 -0
  357. package/node_modules/@whiskeysockets/baileys/lib/Socket/groups.js.map +1 -0
  358. package/node_modules/@whiskeysockets/baileys/lib/Socket/index.d.ts +260 -0
  359. package/node_modules/@whiskeysockets/baileys/lib/Socket/index.d.ts.map +1 -0
  360. package/node_modules/@whiskeysockets/baileys/lib/Socket/index.js +13 -0
  361. package/node_modules/@whiskeysockets/baileys/lib/Socket/index.js.map +1 -0
  362. package/node_modules/@whiskeysockets/baileys/lib/Socket/messages-recv.d.ts +203 -0
  363. package/node_modules/@whiskeysockets/baileys/lib/Socket/messages-recv.d.ts.map +1 -0
  364. package/node_modules/@whiskeysockets/baileys/lib/Socket/messages-recv.js +1772 -0
  365. package/node_modules/@whiskeysockets/baileys/lib/Socket/messages-recv.js.map +1 -0
  366. package/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.d.ts +199 -0
  367. package/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.d.ts.map +1 -0
  368. package/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.js +1145 -0
  369. package/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.js.map +1 -0
  370. package/node_modules/@whiskeysockets/baileys/lib/Socket/mex.d.ts +3 -0
  371. package/node_modules/@whiskeysockets/baileys/lib/Socket/mex.d.ts.map +1 -0
  372. package/node_modules/@whiskeysockets/baileys/lib/Socket/mex.js +42 -0
  373. package/node_modules/@whiskeysockets/baileys/lib/Socket/mex.js.map +1 -0
  374. package/node_modules/@whiskeysockets/baileys/lib/Socket/newsletter.d.ts +170 -0
  375. package/node_modules/@whiskeysockets/baileys/lib/Socket/newsletter.d.ts.map +1 -0
  376. package/node_modules/@whiskeysockets/baileys/lib/Socket/newsletter.js +181 -0
  377. package/node_modules/@whiskeysockets/baileys/lib/Socket/newsletter.js.map +1 -0
  378. package/node_modules/@whiskeysockets/baileys/lib/Socket/socket.d.ts +59 -0
  379. package/node_modules/@whiskeysockets/baileys/lib/Socket/socket.d.ts.map +1 -0
  380. package/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js +967 -0
  381. package/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js.map +1 -0
  382. package/node_modules/@whiskeysockets/baileys/lib/Types/Auth.d.ts +117 -0
  383. package/node_modules/@whiskeysockets/baileys/lib/Types/Auth.d.ts.map +1 -0
  384. package/node_modules/@whiskeysockets/baileys/lib/Types/Auth.js +2 -0
  385. package/node_modules/@whiskeysockets/baileys/lib/Types/Auth.js.map +1 -0
  386. package/node_modules/@whiskeysockets/baileys/lib/Types/Bussines.d.ts +25 -0
  387. package/node_modules/@whiskeysockets/baileys/lib/Types/Bussines.d.ts.map +1 -0
  388. package/node_modules/@whiskeysockets/baileys/lib/Types/Bussines.js +2 -0
  389. package/node_modules/@whiskeysockets/baileys/lib/Types/Bussines.js.map +1 -0
  390. package/node_modules/@whiskeysockets/baileys/lib/Types/Call.d.ts +15 -0
  391. package/node_modules/@whiskeysockets/baileys/lib/Types/Call.d.ts.map +1 -0
  392. package/node_modules/@whiskeysockets/baileys/lib/Types/Call.js +2 -0
  393. package/node_modules/@whiskeysockets/baileys/lib/Types/Call.js.map +1 -0
  394. package/node_modules/@whiskeysockets/baileys/lib/Types/Chat.d.ts +124 -0
  395. package/node_modules/@whiskeysockets/baileys/lib/Types/Chat.d.ts.map +1 -0
  396. package/node_modules/@whiskeysockets/baileys/lib/Types/Chat.js +8 -0
  397. package/node_modules/@whiskeysockets/baileys/lib/Types/Chat.js.map +1 -0
  398. package/node_modules/@whiskeysockets/baileys/lib/Types/Contact.d.ts +26 -0
  399. package/node_modules/@whiskeysockets/baileys/lib/Types/Contact.d.ts.map +1 -0
  400. package/node_modules/@whiskeysockets/baileys/lib/Types/Contact.js +2 -0
  401. package/node_modules/@whiskeysockets/baileys/lib/Types/Contact.js.map +1 -0
  402. package/node_modules/@whiskeysockets/baileys/lib/Types/Events.d.ts +256 -0
  403. package/node_modules/@whiskeysockets/baileys/lib/Types/Events.d.ts.map +1 -0
  404. package/node_modules/@whiskeysockets/baileys/lib/Types/Events.js +2 -0
  405. package/node_modules/@whiskeysockets/baileys/lib/Types/Events.js.map +1 -0
  406. package/node_modules/@whiskeysockets/baileys/lib/Types/GroupMetadata.d.ts +71 -0
  407. package/node_modules/@whiskeysockets/baileys/lib/Types/GroupMetadata.d.ts.map +1 -0
  408. package/node_modules/@whiskeysockets/baileys/lib/Types/GroupMetadata.js +2 -0
  409. package/node_modules/@whiskeysockets/baileys/lib/Types/GroupMetadata.js.map +1 -0
  410. package/node_modules/@whiskeysockets/baileys/lib/Types/Label.d.ts +47 -0
  411. package/node_modules/@whiskeysockets/baileys/lib/Types/Label.d.ts.map +1 -0
  412. package/node_modules/@whiskeysockets/baileys/lib/Types/Label.js +25 -0
  413. package/node_modules/@whiskeysockets/baileys/lib/Types/Label.js.map +1 -0
  414. package/node_modules/@whiskeysockets/baileys/lib/Types/LabelAssociation.d.ts +30 -0
  415. package/node_modules/@whiskeysockets/baileys/lib/Types/LabelAssociation.d.ts.map +1 -0
  416. package/node_modules/@whiskeysockets/baileys/lib/Types/LabelAssociation.js +7 -0
  417. package/node_modules/@whiskeysockets/baileys/lib/Types/LabelAssociation.js.map +1 -0
  418. package/node_modules/@whiskeysockets/baileys/lib/Types/Message.d.ts +320 -0
  419. package/node_modules/@whiskeysockets/baileys/lib/Types/Message.d.ts.map +1 -0
  420. package/node_modules/@whiskeysockets/baileys/lib/Types/Message.js +11 -0
  421. package/node_modules/@whiskeysockets/baileys/lib/Types/Message.js.map +1 -0
  422. package/node_modules/@whiskeysockets/baileys/lib/Types/Mex.d.ts +141 -0
  423. package/node_modules/@whiskeysockets/baileys/lib/Types/Mex.d.ts.map +1 -0
  424. package/node_modules/@whiskeysockets/baileys/lib/Types/Mex.js +37 -0
  425. package/node_modules/@whiskeysockets/baileys/lib/Types/Mex.js.map +1 -0
  426. package/node_modules/@whiskeysockets/baileys/lib/Types/Product.d.ts +79 -0
  427. package/node_modules/@whiskeysockets/baileys/lib/Types/Product.d.ts.map +1 -0
  428. package/node_modules/@whiskeysockets/baileys/lib/Types/Product.js +2 -0
  429. package/node_modules/@whiskeysockets/baileys/lib/Types/Product.js.map +1 -0
  430. package/node_modules/@whiskeysockets/baileys/lib/Types/Signal.d.ts +87 -0
  431. package/node_modules/@whiskeysockets/baileys/lib/Types/Signal.d.ts.map +1 -0
  432. package/node_modules/@whiskeysockets/baileys/lib/Types/Signal.js +2 -0
  433. package/node_modules/@whiskeysockets/baileys/lib/Types/Signal.js.map +1 -0
  434. package/node_modules/@whiskeysockets/baileys/lib/Types/Socket.d.ts +136 -0
  435. package/node_modules/@whiskeysockets/baileys/lib/Types/Socket.d.ts.map +1 -0
  436. package/node_modules/@whiskeysockets/baileys/lib/Types/Socket.js +3 -0
  437. package/node_modules/@whiskeysockets/baileys/lib/Types/Socket.js.map +1 -0
  438. package/node_modules/@whiskeysockets/baileys/lib/Types/State.d.ts +97 -0
  439. package/node_modules/@whiskeysockets/baileys/lib/Types/State.d.ts.map +1 -0
  440. package/node_modules/@whiskeysockets/baileys/lib/Types/State.js +56 -0
  441. package/node_modules/@whiskeysockets/baileys/lib/Types/State.js.map +1 -0
  442. package/node_modules/@whiskeysockets/baileys/lib/Types/USync.d.ts +26 -0
  443. package/node_modules/@whiskeysockets/baileys/lib/Types/USync.d.ts.map +1 -0
  444. package/node_modules/@whiskeysockets/baileys/lib/Types/USync.js +2 -0
  445. package/node_modules/@whiskeysockets/baileys/lib/Types/USync.js.map +1 -0
  446. package/node_modules/@whiskeysockets/baileys/lib/Types/index.d.ts +65 -0
  447. package/node_modules/@whiskeysockets/baileys/lib/Types/index.d.ts.map +1 -0
  448. package/node_modules/@whiskeysockets/baileys/lib/Types/index.js +26 -0
  449. package/node_modules/@whiskeysockets/baileys/lib/Types/index.js.map +1 -0
  450. package/node_modules/@whiskeysockets/baileys/lib/Utils/auth-utils.d.ts +24 -0
  451. package/node_modules/@whiskeysockets/baileys/lib/Utils/auth-utils.d.ts.map +1 -0
  452. package/node_modules/@whiskeysockets/baileys/lib/Utils/auth-utils.js +302 -0
  453. package/node_modules/@whiskeysockets/baileys/lib/Utils/auth-utils.js.map +1 -0
  454. package/node_modules/@whiskeysockets/baileys/lib/Utils/browser-utils.d.ts +4 -0
  455. package/node_modules/@whiskeysockets/baileys/lib/Utils/browser-utils.d.ts.map +1 -0
  456. package/node_modules/@whiskeysockets/baileys/lib/Utils/browser-utils.js +28 -0
  457. package/node_modules/@whiskeysockets/baileys/lib/Utils/browser-utils.js.map +1 -0
  458. package/node_modules/@whiskeysockets/baileys/lib/Utils/business.d.ts +23 -0
  459. package/node_modules/@whiskeysockets/baileys/lib/Utils/business.d.ts.map +1 -0
  460. package/node_modules/@whiskeysockets/baileys/lib/Utils/business.js +231 -0
  461. package/node_modules/@whiskeysockets/baileys/lib/Utils/business.js.map +1 -0
  462. package/node_modules/@whiskeysockets/baileys/lib/Utils/chat-utils.d.ts +100 -0
  463. package/node_modules/@whiskeysockets/baileys/lib/Utils/chat-utils.d.ts.map +1 -0
  464. package/node_modules/@whiskeysockets/baileys/lib/Utils/chat-utils.js +872 -0
  465. package/node_modules/@whiskeysockets/baileys/lib/Utils/chat-utils.js.map +1 -0
  466. package/node_modules/@whiskeysockets/baileys/lib/Utils/companion-reg-client-utils.d.ts +17 -0
  467. package/node_modules/@whiskeysockets/baileys/lib/Utils/companion-reg-client-utils.d.ts.map +1 -0
  468. package/node_modules/@whiskeysockets/baileys/lib/Utils/companion-reg-client-utils.js +35 -0
  469. package/node_modules/@whiskeysockets/baileys/lib/Utils/companion-reg-client-utils.js.map +1 -0
  470. package/node_modules/@whiskeysockets/baileys/lib/Utils/crypto.d.ts +37 -0
  471. package/node_modules/@whiskeysockets/baileys/lib/Utils/crypto.d.ts.map +1 -0
  472. package/node_modules/@whiskeysockets/baileys/lib/Utils/crypto.js +118 -0
  473. package/node_modules/@whiskeysockets/baileys/lib/Utils/crypto.js.map +1 -0
  474. package/node_modules/@whiskeysockets/baileys/lib/Utils/decode-wa-message.d.ts +66 -0
  475. package/node_modules/@whiskeysockets/baileys/lib/Utils/decode-wa-message.d.ts.map +1 -0
  476. package/node_modules/@whiskeysockets/baileys/lib/Utils/decode-wa-message.js +317 -0
  477. package/node_modules/@whiskeysockets/baileys/lib/Utils/decode-wa-message.js.map +1 -0
  478. package/node_modules/@whiskeysockets/baileys/lib/Utils/event-buffer.d.ts +36 -0
  479. package/node_modules/@whiskeysockets/baileys/lib/Utils/event-buffer.d.ts.map +1 -0
  480. package/node_modules/@whiskeysockets/baileys/lib/Utils/event-buffer.js +622 -0
  481. package/node_modules/@whiskeysockets/baileys/lib/Utils/event-buffer.js.map +1 -0
  482. package/node_modules/@whiskeysockets/baileys/lib/Utils/generics.d.ts +91 -0
  483. package/node_modules/@whiskeysockets/baileys/lib/Utils/generics.d.ts.map +1 -0
  484. package/node_modules/@whiskeysockets/baileys/lib/Utils/generics.js +393 -0
  485. package/node_modules/@whiskeysockets/baileys/lib/Utils/generics.js.map +1 -0
  486. package/node_modules/@whiskeysockets/baileys/lib/Utils/history.d.ts +24 -0
  487. package/node_modules/@whiskeysockets/baileys/lib/Utils/history.d.ts.map +1 -0
  488. package/node_modules/@whiskeysockets/baileys/lib/Utils/history.js +134 -0
  489. package/node_modules/@whiskeysockets/baileys/lib/Utils/history.js.map +1 -0
  490. package/node_modules/@whiskeysockets/baileys/lib/Utils/identity-change-handler.d.ts +44 -0
  491. package/node_modules/@whiskeysockets/baileys/lib/Utils/identity-change-handler.d.ts.map +1 -0
  492. package/node_modules/@whiskeysockets/baileys/lib/Utils/identity-change-handler.js +50 -0
  493. package/node_modules/@whiskeysockets/baileys/lib/Utils/identity-change-handler.js.map +1 -0
  494. package/node_modules/@whiskeysockets/baileys/lib/Utils/index.d.ts +22 -0
  495. package/node_modules/@whiskeysockets/baileys/lib/Utils/index.d.ts.map +1 -0
  496. package/node_modules/@whiskeysockets/baileys/lib/Utils/index.js +22 -0
  497. package/node_modules/@whiskeysockets/baileys/lib/Utils/index.js.map +1 -0
  498. package/node_modules/@whiskeysockets/baileys/lib/Utils/link-preview.d.ts +21 -0
  499. package/node_modules/@whiskeysockets/baileys/lib/Utils/link-preview.d.ts.map +1 -0
  500. package/node_modules/@whiskeysockets/baileys/lib/Utils/link-preview.js +85 -0
  501. package/node_modules/@whiskeysockets/baileys/lib/Utils/link-preview.js.map +1 -0
  502. package/node_modules/@whiskeysockets/baileys/lib/Utils/logger.d.ts +12 -0
  503. package/node_modules/@whiskeysockets/baileys/lib/Utils/logger.d.ts.map +1 -0
  504. package/node_modules/@whiskeysockets/baileys/lib/Utils/logger.js +3 -0
  505. package/node_modules/@whiskeysockets/baileys/lib/Utils/logger.js.map +1 -0
  506. package/node_modules/@whiskeysockets/baileys/lib/Utils/lt-hash.d.ts +8 -0
  507. package/node_modules/@whiskeysockets/baileys/lib/Utils/lt-hash.d.ts.map +1 -0
  508. package/node_modules/@whiskeysockets/baileys/lib/Utils/lt-hash.js +8 -0
  509. package/node_modules/@whiskeysockets/baileys/lib/Utils/lt-hash.js.map +1 -0
  510. package/node_modules/@whiskeysockets/baileys/lib/Utils/make-mutex.d.ts +9 -0
  511. package/node_modules/@whiskeysockets/baileys/lib/Utils/make-mutex.d.ts.map +1 -0
  512. package/node_modules/@whiskeysockets/baileys/lib/Utils/make-mutex.js +33 -0
  513. package/node_modules/@whiskeysockets/baileys/lib/Utils/make-mutex.js.map +1 -0
  514. package/node_modules/@whiskeysockets/baileys/lib/Utils/message-retry-manager.d.ts +115 -0
  515. package/node_modules/@whiskeysockets/baileys/lib/Utils/message-retry-manager.d.ts.map +1 -0
  516. package/node_modules/@whiskeysockets/baileys/lib/Utils/message-retry-manager.js +265 -0
  517. package/node_modules/@whiskeysockets/baileys/lib/Utils/message-retry-manager.js.map +1 -0
  518. package/node_modules/@whiskeysockets/baileys/lib/Utils/messages-media.d.ts +133 -0
  519. package/node_modules/@whiskeysockets/baileys/lib/Utils/messages-media.d.ts.map +1 -0
  520. package/node_modules/@whiskeysockets/baileys/lib/Utils/messages-media.js +788 -0
  521. package/node_modules/@whiskeysockets/baileys/lib/Utils/messages-media.js.map +1 -0
  522. package/node_modules/@whiskeysockets/baileys/lib/Utils/messages.d.ts +91 -0
  523. package/node_modules/@whiskeysockets/baileys/lib/Utils/messages.d.ts.map +1 -0
  524. package/node_modules/@whiskeysockets/baileys/lib/Utils/messages.js +893 -0
  525. package/node_modules/@whiskeysockets/baileys/lib/Utils/messages.js.map +1 -0
  526. package/node_modules/@whiskeysockets/baileys/lib/Utils/noise-handler.d.ts +20 -0
  527. package/node_modules/@whiskeysockets/baileys/lib/Utils/noise-handler.d.ts.map +1 -0
  528. package/node_modules/@whiskeysockets/baileys/lib/Utils/noise-handler.js +201 -0
  529. package/node_modules/@whiskeysockets/baileys/lib/Utils/noise-handler.js.map +1 -0
  530. package/node_modules/@whiskeysockets/baileys/lib/Utils/offline-node-processor.d.ts +17 -0
  531. package/node_modules/@whiskeysockets/baileys/lib/Utils/offline-node-processor.d.ts.map +1 -0
  532. package/node_modules/@whiskeysockets/baileys/lib/Utils/offline-node-processor.js +40 -0
  533. package/node_modules/@whiskeysockets/baileys/lib/Utils/offline-node-processor.js.map +1 -0
  534. package/node_modules/@whiskeysockets/baileys/lib/Utils/pre-key-manager.d.ts +28 -0
  535. package/node_modules/@whiskeysockets/baileys/lib/Utils/pre-key-manager.d.ts.map +1 -0
  536. package/node_modules/@whiskeysockets/baileys/lib/Utils/pre-key-manager.js +106 -0
  537. package/node_modules/@whiskeysockets/baileys/lib/Utils/pre-key-manager.js.map +1 -0
  538. package/node_modules/@whiskeysockets/baileys/lib/Utils/process-message.d.ts +60 -0
  539. package/node_modules/@whiskeysockets/baileys/lib/Utils/process-message.d.ts.map +1 -0
  540. package/node_modules/@whiskeysockets/baileys/lib/Utils/process-message.js +630 -0
  541. package/node_modules/@whiskeysockets/baileys/lib/Utils/process-message.js.map +1 -0
  542. package/node_modules/@whiskeysockets/baileys/lib/Utils/reporting-utils.d.ts +11 -0
  543. package/node_modules/@whiskeysockets/baileys/lib/Utils/reporting-utils.d.ts.map +1 -0
  544. package/node_modules/@whiskeysockets/baileys/lib/Utils/reporting-utils.js +258 -0
  545. package/node_modules/@whiskeysockets/baileys/lib/Utils/reporting-utils.js.map +1 -0
  546. package/node_modules/@whiskeysockets/baileys/lib/Utils/signal.d.ts +47 -0
  547. package/node_modules/@whiskeysockets/baileys/lib/Utils/signal.d.ts.map +1 -0
  548. package/node_modules/@whiskeysockets/baileys/lib/Utils/signal.js +201 -0
  549. package/node_modules/@whiskeysockets/baileys/lib/Utils/signal.js.map +1 -0
  550. package/node_modules/@whiskeysockets/baileys/lib/Utils/stanza-ack.d.ts +11 -0
  551. package/node_modules/@whiskeysockets/baileys/lib/Utils/stanza-ack.d.ts.map +1 -0
  552. package/node_modules/@whiskeysockets/baileys/lib/Utils/stanza-ack.js +38 -0
  553. package/node_modules/@whiskeysockets/baileys/lib/Utils/stanza-ack.js.map +1 -0
  554. package/node_modules/@whiskeysockets/baileys/lib/Utils/sync-action-utils.d.ts +19 -0
  555. package/node_modules/@whiskeysockets/baileys/lib/Utils/sync-action-utils.d.ts.map +1 -0
  556. package/node_modules/@whiskeysockets/baileys/lib/Utils/sync-action-utils.js +49 -0
  557. package/node_modules/@whiskeysockets/baileys/lib/Utils/sync-action-utils.js.map +1 -0
  558. package/node_modules/@whiskeysockets/baileys/lib/Utils/tc-token-utils.d.ts +37 -0
  559. package/node_modules/@whiskeysockets/baileys/lib/Utils/tc-token-utils.d.ts.map +1 -0
  560. package/node_modules/@whiskeysockets/baileys/lib/Utils/tc-token-utils.js +163 -0
  561. package/node_modules/@whiskeysockets/baileys/lib/Utils/tc-token-utils.js.map +1 -0
  562. package/node_modules/@whiskeysockets/baileys/lib/Utils/use-multi-file-auth-state.d.ts +13 -0
  563. package/node_modules/@whiskeysockets/baileys/lib/Utils/use-multi-file-auth-state.d.ts.map +1 -0
  564. package/node_modules/@whiskeysockets/baileys/lib/Utils/use-multi-file-auth-state.js +121 -0
  565. package/node_modules/@whiskeysockets/baileys/lib/Utils/use-multi-file-auth-state.js.map +1 -0
  566. package/node_modules/@whiskeysockets/baileys/lib/Utils/validate-connection.d.ts +11 -0
  567. package/node_modules/@whiskeysockets/baileys/lib/Utils/validate-connection.d.ts.map +1 -0
  568. package/node_modules/@whiskeysockets/baileys/lib/Utils/validate-connection.js +203 -0
  569. package/node_modules/@whiskeysockets/baileys/lib/Utils/validate-connection.js.map +1 -0
  570. package/node_modules/@whiskeysockets/baileys/lib/WABinary/constants.d.ts +28 -0
  571. package/node_modules/@whiskeysockets/baileys/lib/WABinary/constants.d.ts.map +1 -0
  572. package/node_modules/@whiskeysockets/baileys/lib/WABinary/constants.js +1301 -0
  573. package/node_modules/@whiskeysockets/baileys/lib/WABinary/constants.js.map +1 -0
  574. package/node_modules/@whiskeysockets/baileys/lib/WABinary/decode.d.ts +7 -0
  575. package/node_modules/@whiskeysockets/baileys/lib/WABinary/decode.d.ts.map +1 -0
  576. package/node_modules/@whiskeysockets/baileys/lib/WABinary/decode.js +262 -0
  577. package/node_modules/@whiskeysockets/baileys/lib/WABinary/decode.js.map +1 -0
  578. package/node_modules/@whiskeysockets/baileys/lib/WABinary/encode.d.ts +3 -0
  579. package/node_modules/@whiskeysockets/baileys/lib/WABinary/encode.d.ts.map +1 -0
  580. package/node_modules/@whiskeysockets/baileys/lib/WABinary/encode.js +220 -0
  581. package/node_modules/@whiskeysockets/baileys/lib/WABinary/encode.js.map +1 -0
  582. package/node_modules/@whiskeysockets/baileys/lib/WABinary/generic-utils.d.ts +15 -0
  583. package/node_modules/@whiskeysockets/baileys/lib/WABinary/generic-utils.d.ts.map +1 -0
  584. package/node_modules/@whiskeysockets/baileys/lib/WABinary/generic-utils.js +113 -0
  585. package/node_modules/@whiskeysockets/baileys/lib/WABinary/generic-utils.js.map +1 -0
  586. package/node_modules/@whiskeysockets/baileys/lib/WABinary/index.d.ts +6 -0
  587. package/node_modules/@whiskeysockets/baileys/lib/WABinary/index.d.ts.map +1 -0
  588. package/node_modules/@whiskeysockets/baileys/lib/WABinary/index.js +6 -0
  589. package/node_modules/@whiskeysockets/baileys/lib/WABinary/index.js.map +1 -0
  590. package/node_modules/@whiskeysockets/baileys/lib/WABinary/jid-utils.d.ts +48 -0
  591. package/node_modules/@whiskeysockets/baileys/lib/WABinary/jid-utils.d.ts.map +1 -0
  592. package/node_modules/@whiskeysockets/baileys/lib/WABinary/jid-utils.js +96 -0
  593. package/node_modules/@whiskeysockets/baileys/lib/WABinary/jid-utils.js.map +1 -0
  594. package/node_modules/@whiskeysockets/baileys/lib/WABinary/types.d.ts +19 -0
  595. package/node_modules/@whiskeysockets/baileys/lib/WABinary/types.d.ts.map +1 -0
  596. package/node_modules/@whiskeysockets/baileys/lib/WABinary/types.js +2 -0
  597. package/node_modules/@whiskeysockets/baileys/lib/WABinary/types.js.map +1 -0
  598. package/node_modules/@whiskeysockets/baileys/lib/WAM/BinaryInfo.d.ts +9 -0
  599. package/node_modules/@whiskeysockets/baileys/lib/WAM/BinaryInfo.d.ts.map +1 -0
  600. package/node_modules/@whiskeysockets/baileys/lib/WAM/BinaryInfo.js +10 -0
  601. package/node_modules/@whiskeysockets/baileys/lib/WAM/BinaryInfo.js.map +1 -0
  602. package/node_modules/@whiskeysockets/baileys/lib/WAM/constants.d.ts +40 -0
  603. package/node_modules/@whiskeysockets/baileys/lib/WAM/constants.d.ts.map +1 -0
  604. package/node_modules/@whiskeysockets/baileys/lib/WAM/constants.js +22853 -0
  605. package/node_modules/@whiskeysockets/baileys/lib/WAM/constants.js.map +1 -0
  606. package/node_modules/@whiskeysockets/baileys/lib/WAM/encode.d.ts +3 -0
  607. package/node_modules/@whiskeysockets/baileys/lib/WAM/encode.d.ts.map +1 -0
  608. package/node_modules/@whiskeysockets/baileys/lib/WAM/encode.js +150 -0
  609. package/node_modules/@whiskeysockets/baileys/lib/WAM/encode.js.map +1 -0
  610. package/node_modules/@whiskeysockets/baileys/lib/WAM/index.d.ts +4 -0
  611. package/node_modules/@whiskeysockets/baileys/lib/WAM/index.d.ts.map +1 -0
  612. package/node_modules/@whiskeysockets/baileys/lib/WAM/index.js +4 -0
  613. package/node_modules/@whiskeysockets/baileys/lib/WAM/index.js.map +1 -0
  614. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +10 -0
  615. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncContactProtocol.d.ts.map +1 -0
  616. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncContactProtocol.js +52 -0
  617. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncContactProtocol.js.map +1 -0
  618. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +23 -0
  619. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts.map +1 -0
  620. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncDeviceProtocol.js +54 -0
  621. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncDeviceProtocol.js.map +1 -0
  622. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +13 -0
  623. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts.map +1 -0
  624. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +27 -0
  625. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js.map +1 -0
  626. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +13 -0
  627. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts.map +1 -0
  628. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncStatusProtocol.js +38 -0
  629. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncStatusProtocol.js.map +1 -0
  630. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts +10 -0
  631. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts.map +1 -0
  632. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncUsernameProtocol.js +25 -0
  633. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncUsernameProtocol.js.map +1 -0
  634. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +26 -0
  635. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts.map +1 -0
  636. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +51 -0
  637. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js.map +1 -0
  638. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +10 -0
  639. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts.map +1 -0
  640. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/UsyncLIDProtocol.js +29 -0
  641. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/UsyncLIDProtocol.js.map +1 -0
  642. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/index.d.ts +6 -0
  643. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/index.d.ts.map +1 -0
  644. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/index.js +6 -0
  645. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/index.js.map +1 -0
  646. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/USyncQuery.d.ts +30 -0
  647. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/USyncQuery.d.ts.map +1 -0
  648. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/USyncQuery.js +98 -0
  649. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/USyncQuery.js.map +1 -0
  650. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/USyncUser.d.ts +17 -0
  651. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/USyncUser.d.ts.map +1 -0
  652. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/USyncUser.js +31 -0
  653. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/USyncUser.js.map +1 -0
  654. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/index.d.ts +4 -0
  655. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/index.d.ts.map +1 -0
  656. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/index.js +4 -0
  657. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/index.js.map +1 -0
  658. package/node_modules/@whiskeysockets/baileys/lib/index.d.ts +12 -0
  659. package/node_modules/@whiskeysockets/baileys/lib/index.d.ts.map +1 -0
  660. package/node_modules/@whiskeysockets/baileys/lib/index.js +11 -0
  661. package/node_modules/@whiskeysockets/baileys/lib/index.js.map +1 -0
  662. package/node_modules/@whiskeysockets/baileys/package.json +139 -0
  663. package/node_modules/async-mutex/LICENSE +21 -0
  664. package/node_modules/async-mutex/README.md +540 -0
  665. package/node_modules/async-mutex/es6/Mutex.js +41 -0
  666. package/node_modules/async-mutex/es6/MutexInterface.js +1 -0
  667. package/node_modules/async-mutex/es6/Semaphore.js +153 -0
  668. package/node_modules/async-mutex/es6/SemaphoreInterface.js +1 -0
  669. package/node_modules/async-mutex/es6/errors.js +3 -0
  670. package/node_modules/async-mutex/es6/index.js +5 -0
  671. package/node_modules/async-mutex/es6/tryAcquire.js +8 -0
  672. package/node_modules/async-mutex/es6/withTimeout.js +124 -0
  673. package/node_modules/async-mutex/index.mjs +291 -0
  674. package/node_modules/async-mutex/lib/Mutex.d.ts +12 -0
  675. package/node_modules/async-mutex/lib/Mutex.js +43 -0
  676. package/node_modules/async-mutex/lib/MutexInterface.d.ts +17 -0
  677. package/node_modules/async-mutex/lib/MutexInterface.js +2 -0
  678. package/node_modules/async-mutex/lib/Semaphore.d.ts +22 -0
  679. package/node_modules/async-mutex/lib/Semaphore.js +155 -0
  680. package/node_modules/async-mutex/lib/SemaphoreInterface.d.ts +19 -0
  681. package/node_modules/async-mutex/lib/SemaphoreInterface.js +2 -0
  682. package/node_modules/async-mutex/lib/errors.d.ts +3 -0
  683. package/node_modules/async-mutex/lib/errors.js +6 -0
  684. package/node_modules/async-mutex/lib/index.d.ts +7 -0
  685. package/node_modules/async-mutex/lib/index.js +13 -0
  686. package/node_modules/async-mutex/lib/tryAcquire.d.ts +4 -0
  687. package/node_modules/async-mutex/lib/tryAcquire.js +12 -0
  688. package/node_modules/async-mutex/lib/withTimeout.d.ts +4 -0
  689. package/node_modules/async-mutex/lib/withTimeout.js +128 -0
  690. package/node_modules/async-mutex/package.json +88 -0
  691. package/node_modules/atomic-sleep/.travis.yml +11 -0
  692. package/node_modules/atomic-sleep/LICENSE +22 -0
  693. package/node_modules/atomic-sleep/index.js +38 -0
  694. package/node_modules/atomic-sleep/package.json +37 -0
  695. package/node_modules/atomic-sleep/readme.md +58 -0
  696. package/node_modules/atomic-sleep/test.js +47 -0
  697. package/node_modules/cacheable/LICENSE +19 -0
  698. package/node_modules/cacheable/README.md +846 -0
  699. package/node_modules/cacheable/dist/index.cjs +1157 -0
  700. package/node_modules/cacheable/dist/index.d.cts +494 -0
  701. package/node_modules/cacheable/dist/index.d.ts +494 -0
  702. package/node_modules/cacheable/dist/index.js +1141 -0
  703. package/node_modules/cacheable/package.json +81 -0
  704. package/node_modules/content-type/LICENSE +22 -0
  705. package/node_modules/content-type/README.md +69 -0
  706. package/node_modules/content-type/dist/index.d.ts +26 -0
  707. package/node_modules/content-type/dist/index.js +170 -0
  708. package/node_modules/content-type/dist/index.js.map +1 -0
  709. package/node_modules/content-type/package.json +52 -0
  710. package/node_modules/curve25519-js/.prettierrc +6 -0
  711. package/node_modules/curve25519-js/LICENSE +19 -0
  712. package/node_modules/curve25519-js/README.md +111 -0
  713. package/node_modules/curve25519-js/lib/index.d.ts +69 -0
  714. package/node_modules/curve25519-js/lib/index.js +1669 -0
  715. package/node_modules/curve25519-js/package.json +34 -0
  716. package/node_modules/curve25519-js/tsconfig.json +20 -0
  717. package/node_modules/curve25519-js/tslint.json +10 -0
  718. package/node_modules/debug/LICENSE +20 -0
  719. package/node_modules/debug/README.md +481 -0
  720. package/node_modules/debug/package.json +64 -0
  721. package/node_modules/debug/src/browser.js +272 -0
  722. package/node_modules/debug/src/common.js +292 -0
  723. package/node_modules/debug/src/index.js +10 -0
  724. package/node_modules/debug/src/node.js +263 -0
  725. package/node_modules/eventemitter3/LICENSE +21 -0
  726. package/node_modules/eventemitter3/README.md +85 -0
  727. package/node_modules/eventemitter3/dist/eventemitter3.esm.js +355 -0
  728. package/node_modules/eventemitter3/dist/eventemitter3.esm.min.js +1 -0
  729. package/node_modules/eventemitter3/dist/eventemitter3.esm.min.js.map +1 -0
  730. package/node_modules/eventemitter3/dist/eventemitter3.umd.js +363 -0
  731. package/node_modules/eventemitter3/dist/eventemitter3.umd.min.js +1 -0
  732. package/node_modules/eventemitter3/dist/eventemitter3.umd.min.js.map +1 -0
  733. package/node_modules/eventemitter3/index.d.ts +135 -0
  734. package/node_modules/eventemitter3/index.js +336 -0
  735. package/node_modules/eventemitter3/index.mjs +4 -0
  736. package/node_modules/eventemitter3/package.json +62 -0
  737. package/node_modules/file-type/core.d.ts +253 -0
  738. package/node_modules/file-type/core.js +2899 -0
  739. package/node_modules/file-type/index.d.ts +98 -0
  740. package/node_modules/file-type/index.js +163 -0
  741. package/node_modules/file-type/license +9 -0
  742. package/node_modules/file-type/package.json +290 -0
  743. package/node_modules/file-type/readme.md +667 -0
  744. package/node_modules/file-type/supported.js +360 -0
  745. package/node_modules/file-type/util.js +60 -0
  746. package/node_modules/hashery/LICENSE +21 -0
  747. package/node_modules/hashery/README.md +1373 -0
  748. package/node_modules/hashery/dist/browser/index.global.js +8 -0
  749. package/node_modules/hashery/dist/browser/index.global.js.map +1 -0
  750. package/node_modules/hashery/dist/browser/index.js +3 -0
  751. package/node_modules/hashery/dist/browser/index.js.map +1 -0
  752. package/node_modules/hashery/dist/node/index.cjs +989 -0
  753. package/node_modules/hashery/dist/node/index.d.cts +935 -0
  754. package/node_modules/hashery/dist/node/index.d.ts +935 -0
  755. package/node_modules/hashery/dist/node/index.js +957 -0
  756. package/node_modules/hashery/package.json +92 -0
  757. package/node_modules/hookified/LICENSE +19 -0
  758. package/node_modules/hookified/README.md +1424 -0
  759. package/node_modules/hookified/dist/browser/index.global.js +693 -0
  760. package/node_modules/hookified/dist/browser/index.global.js.map +1 -0
  761. package/node_modules/hookified/dist/browser/index.js +694 -0
  762. package/node_modules/hookified/dist/browser/index.js.map +1 -0
  763. package/node_modules/hookified/dist/node/index.cjs +717 -0
  764. package/node_modules/hookified/dist/node/index.d.cts +543 -0
  765. package/node_modules/hookified/dist/node/index.d.ts +543 -0
  766. package/node_modules/hookified/dist/node/index.js +689 -0
  767. package/node_modules/hookified/package.json +92 -0
  768. package/node_modules/ieee754/LICENSE +11 -0
  769. package/node_modules/ieee754/README.md +51 -0
  770. package/node_modules/ieee754/index.d.ts +10 -0
  771. package/node_modules/ieee754/index.js +85 -0
  772. package/node_modules/ieee754/package.json +52 -0
  773. package/node_modules/keyv/LICENSE +22 -0
  774. package/node_modules/keyv/README.md +828 -0
  775. package/node_modules/keyv/dist/index.cjs +990 -0
  776. package/node_modules/keyv/dist/index.d.cts +378 -0
  777. package/node_modules/keyv/dist/index.d.ts +378 -0
  778. package/node_modules/keyv/dist/index.js +964 -0
  779. package/node_modules/keyv/package.json +88 -0
  780. package/node_modules/libsignal/LICENSE +621 -0
  781. package/node_modules/libsignal/README.md +64 -0
  782. package/node_modules/libsignal/index.d.ts +55 -0
  783. package/node_modules/libsignal/index.js +10 -0
  784. package/node_modules/libsignal/package.json +34 -0
  785. package/node_modules/libsignal/src/.eslintrc.json +31 -0
  786. package/node_modules/libsignal/src/WhisperTextProtocol.js +933 -0
  787. package/node_modules/libsignal/src/base_key_type.js +7 -0
  788. package/node_modules/libsignal/src/chain_type.js +6 -0
  789. package/node_modules/libsignal/src/crypto.d.ts +19 -0
  790. package/node_modules/libsignal/src/crypto.js +98 -0
  791. package/node_modules/libsignal/src/curve.d.ts +22 -0
  792. package/node_modules/libsignal/src/curve.js +142 -0
  793. package/node_modules/libsignal/src/errors.js +33 -0
  794. package/node_modules/libsignal/src/keyhelper.js +45 -0
  795. package/node_modules/libsignal/src/numeric_fingerprint.js +72 -0
  796. package/node_modules/libsignal/src/protobufs.js +10 -0
  797. package/node_modules/libsignal/src/protocol_address.js +40 -0
  798. package/node_modules/libsignal/src/queue_job.js +69 -0
  799. package/node_modules/libsignal/src/session_builder.js +164 -0
  800. package/node_modules/libsignal/src/session_cipher.js +336 -0
  801. package/node_modules/libsignal/src/session_record.js +316 -0
  802. package/node_modules/long/LICENSE +202 -0
  803. package/node_modules/long/README.md +286 -0
  804. package/node_modules/long/index.d.ts +2 -0
  805. package/node_modules/long/index.js +1581 -0
  806. package/node_modules/long/package.json +58 -0
  807. package/node_modules/long/types.d.ts +474 -0
  808. package/node_modules/long/umd/index.d.ts +3 -0
  809. package/node_modules/long/umd/index.js +1622 -0
  810. package/node_modules/long/umd/package.json +3 -0
  811. package/node_modules/long/umd/types.d.ts +474 -0
  812. package/node_modules/lru-cache/LICENSE.md +55 -0
  813. package/node_modules/lru-cache/README.md +469 -0
  814. package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.d.ts.map +1 -0
  815. package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.js.map +1 -0
  816. package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.d.ts +5 -0
  817. package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
  818. package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts +1400 -0
  819. package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +1 -0
  820. package/node_modules/lru-cache/dist/commonjs/browser/index.js +1726 -0
  821. package/node_modules/lru-cache/dist/commonjs/browser/index.js.map +1 -0
  822. package/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
  823. package/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +7 -0
  824. package/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts +12 -0
  825. package/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts.map +1 -0
  826. package/node_modules/lru-cache/dist/commonjs/browser/perf.js +10 -0
  827. package/node_modules/lru-cache/dist/commonjs/browser/perf.js.map +1 -0
  828. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.cjs.map +1 -0
  829. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +1 -0
  830. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts +5 -0
  831. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +7 -0
  832. package/node_modules/lru-cache/dist/commonjs/index.d.ts +1400 -0
  833. package/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -0
  834. package/node_modules/lru-cache/dist/commonjs/index.js +1726 -0
  835. package/node_modules/lru-cache/dist/commonjs/index.js.map +1 -0
  836. package/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
  837. package/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
  838. package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.d.ts.map +1 -0
  839. package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.js.map +1 -0
  840. package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.d.ts +5 -0
  841. package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
  842. package/node_modules/lru-cache/dist/commonjs/node/index.d.ts +1400 -0
  843. package/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +1 -0
  844. package/node_modules/lru-cache/dist/commonjs/node/index.js +1726 -0
  845. package/node_modules/lru-cache/dist/commonjs/node/index.js.map +1 -0
  846. package/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
  847. package/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +7 -0
  848. package/node_modules/lru-cache/dist/commonjs/node/perf.d.ts +12 -0
  849. package/node_modules/lru-cache/dist/commonjs/node/perf.d.ts.map +1 -0
  850. package/node_modules/lru-cache/dist/commonjs/node/perf.js +10 -0
  851. package/node_modules/lru-cache/dist/commonjs/node/perf.js.map +1 -0
  852. package/node_modules/lru-cache/dist/commonjs/package.json +3 -0
  853. package/node_modules/lru-cache/dist/commonjs/perf.d.ts +12 -0
  854. package/node_modules/lru-cache/dist/commonjs/perf.d.ts.map +1 -0
  855. package/node_modules/lru-cache/dist/commonjs/perf.js +10 -0
  856. package/node_modules/lru-cache/dist/commonjs/perf.js.map +1 -0
  857. package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.d.ts.map +1 -0
  858. package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.js.map +1 -0
  859. package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.d.ts +5 -0
  860. package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +4 -0
  861. package/node_modules/lru-cache/dist/esm/browser/index.d.ts +1400 -0
  862. package/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +1 -0
  863. package/node_modules/lru-cache/dist/esm/browser/index.js +1722 -0
  864. package/node_modules/lru-cache/dist/esm/browser/index.js.map +1 -0
  865. package/node_modules/lru-cache/dist/esm/browser/index.min.js +2 -0
  866. package/node_modules/lru-cache/dist/esm/browser/index.min.js.map +7 -0
  867. package/node_modules/lru-cache/dist/esm/browser/perf.d.ts +12 -0
  868. package/node_modules/lru-cache/dist/esm/browser/perf.d.ts.map +1 -0
  869. package/node_modules/lru-cache/dist/esm/browser/perf.js +7 -0
  870. package/node_modules/lru-cache/dist/esm/browser/perf.js.map +1 -0
  871. package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -0
  872. package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.mjs.map +1 -0
  873. package/node_modules/lru-cache/dist/esm/diagnostics-channel.d.ts +5 -0
  874. package/node_modules/lru-cache/dist/esm/diagnostics-channel.js +19 -0
  875. package/node_modules/lru-cache/dist/esm/index.d.ts +1400 -0
  876. package/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -0
  877. package/node_modules/lru-cache/dist/esm/index.js +1722 -0
  878. package/node_modules/lru-cache/dist/esm/index.js.map +1 -0
  879. package/node_modules/lru-cache/dist/esm/index.min.js +2 -0
  880. package/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
  881. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.ts.map +1 -0
  882. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.js.map +1 -0
  883. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.d.ts +5 -0
  884. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +6 -0
  885. package/node_modules/lru-cache/dist/esm/node/index.d.ts +1400 -0
  886. package/node_modules/lru-cache/dist/esm/node/index.d.ts.map +1 -0
  887. package/node_modules/lru-cache/dist/esm/node/index.js +1722 -0
  888. package/node_modules/lru-cache/dist/esm/node/index.js.map +1 -0
  889. package/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
  890. package/node_modules/lru-cache/dist/esm/node/index.min.js.map +7 -0
  891. package/node_modules/lru-cache/dist/esm/node/perf.d.ts +12 -0
  892. package/node_modules/lru-cache/dist/esm/node/perf.d.ts.map +1 -0
  893. package/node_modules/lru-cache/dist/esm/node/perf.js +7 -0
  894. package/node_modules/lru-cache/dist/esm/node/perf.js.map +1 -0
  895. package/node_modules/lru-cache/dist/esm/package.json +3 -0
  896. package/node_modules/lru-cache/dist/esm/perf.d.ts +12 -0
  897. package/node_modules/lru-cache/dist/esm/perf.d.ts.map +1 -0
  898. package/node_modules/lru-cache/dist/esm/perf.js +7 -0
  899. package/node_modules/lru-cache/dist/esm/perf.js.map +1 -0
  900. package/node_modules/lru-cache/package.json +154 -0
  901. package/node_modules/media-typer/LICENSE +22 -0
  902. package/node_modules/media-typer/README.md +79 -0
  903. package/node_modules/media-typer/dist/index.d.ts +29 -0
  904. package/node_modules/media-typer/dist/index.js +64 -0
  905. package/node_modules/media-typer/dist/index.js.map +1 -0
  906. package/node_modules/media-typer/package.json +48 -0
  907. package/node_modules/ms/index.js +162 -0
  908. package/node_modules/ms/license.md +21 -0
  909. package/node_modules/ms/package.json +38 -0
  910. package/node_modules/ms/readme.md +59 -0
  911. package/node_modules/music-metadata/LICENSE.txt +9 -0
  912. package/node_modules/music-metadata/README.md +878 -0
  913. package/node_modules/music-metadata/lib/ParseError.d.ts +87 -0
  914. package/node_modules/music-metadata/lib/ParseError.js +38 -0
  915. package/node_modules/music-metadata/lib/ParserFactory.d.ts +44 -0
  916. package/node_modules/music-metadata/lib/ParserFactory.js +141 -0
  917. package/node_modules/music-metadata/lib/aiff/AiffLoader.d.ts +2 -0
  918. package/node_modules/music-metadata/lib/aiff/AiffLoader.js +8 -0
  919. package/node_modules/music-metadata/lib/aiff/AiffParser.d.ts +15 -0
  920. package/node_modules/music-metadata/lib/aiff/AiffParser.js +104 -0
  921. package/node_modules/music-metadata/lib/aiff/AiffTagMap.d.ts +4 -0
  922. package/node_modules/music-metadata/lib/aiff/AiffTagMap.js +15 -0
  923. package/node_modules/music-metadata/lib/aiff/AiffToken.d.ts +48 -0
  924. package/node_modules/music-metadata/lib/aiff/AiffToken.js +58 -0
  925. package/node_modules/music-metadata/lib/apev2/APEv2Parser.d.ts +46 -0
  926. package/node_modules/music-metadata/lib/apev2/APEv2Parser.js +176 -0
  927. package/node_modules/music-metadata/lib/apev2/APEv2TagMapper.d.ts +4 -0
  928. package/node_modules/music-metadata/lib/apev2/APEv2TagMapper.js +83 -0
  929. package/node_modules/music-metadata/lib/apev2/APEv2Token.d.ts +99 -0
  930. package/node_modules/music-metadata/lib/apev2/APEv2Token.js +116 -0
  931. package/node_modules/music-metadata/lib/apev2/Apev2Loader.d.ts +2 -0
  932. package/node_modules/music-metadata/lib/apev2/Apev2Loader.js +8 -0
  933. package/node_modules/music-metadata/lib/asf/AsfGuid.d.ts +83 -0
  934. package/node_modules/music-metadata/lib/asf/AsfGuid.js +109 -0
  935. package/node_modules/music-metadata/lib/asf/AsfLoader.d.ts +2 -0
  936. package/node_modules/music-metadata/lib/asf/AsfLoader.js +8 -0
  937. package/node_modules/music-metadata/lib/asf/AsfObject.d.ts +325 -0
  938. package/node_modules/music-metadata/lib/asf/AsfObject.js +347 -0
  939. package/node_modules/music-metadata/lib/asf/AsfParser.d.ts +17 -0
  940. package/node_modules/music-metadata/lib/asf/AsfParser.js +134 -0
  941. package/node_modules/music-metadata/lib/asf/AsfTagMapper.d.ts +7 -0
  942. package/node_modules/music-metadata/lib/asf/AsfTagMapper.js +92 -0
  943. package/node_modules/music-metadata/lib/asf/AsfUtil.d.ts +4 -0
  944. package/node_modules/music-metadata/lib/asf/AsfUtil.js +32 -0
  945. package/node_modules/music-metadata/lib/common/BasicParser.d.ts +17 -0
  946. package/node_modules/music-metadata/lib/common/BasicParser.js +13 -0
  947. package/node_modules/music-metadata/lib/common/CaseInsensitiveTagMap.d.ts +10 -0
  948. package/node_modules/music-metadata/lib/common/CaseInsensitiveTagMap.js +17 -0
  949. package/node_modules/music-metadata/lib/common/CombinedTagMapper.d.ts +19 -0
  950. package/node_modules/music-metadata/lib/common/CombinedTagMapper.js +50 -0
  951. package/node_modules/music-metadata/lib/common/FourCC.d.ts +6 -0
  952. package/node_modules/music-metadata/lib/common/FourCC.js +25 -0
  953. package/node_modules/music-metadata/lib/common/GenericTagMapper.d.ts +51 -0
  954. package/node_modules/music-metadata/lib/common/GenericTagMapper.js +51 -0
  955. package/node_modules/music-metadata/lib/common/GenericTagTypes.d.ts +34 -0
  956. package/node_modules/music-metadata/lib/common/GenericTagTypes.js +133 -0
  957. package/node_modules/music-metadata/lib/common/MetadataCollector.d.ts +86 -0
  958. package/node_modules/music-metadata/lib/common/MetadataCollector.js +307 -0
  959. package/node_modules/music-metadata/lib/common/Util.d.ts +56 -0
  960. package/node_modules/music-metadata/lib/common/Util.js +152 -0
  961. package/node_modules/music-metadata/lib/core.d.ts +75 -0
  962. package/node_modules/music-metadata/lib/core.js +126 -0
  963. package/node_modules/music-metadata/lib/dsdiff/DsdiffLoader.d.ts +2 -0
  964. package/node_modules/music-metadata/lib/dsdiff/DsdiffLoader.js +8 -0
  965. package/node_modules/music-metadata/lib/dsdiff/DsdiffParser.d.ts +29 -0
  966. package/node_modules/music-metadata/lib/dsdiff/DsdiffParser.js +154 -0
  967. package/node_modules/music-metadata/lib/dsdiff/DsdiffToken.d.ts +9 -0
  968. package/node_modules/music-metadata/lib/dsdiff/DsdiffToken.js +18 -0
  969. package/node_modules/music-metadata/lib/dsf/DsfChunk.d.ts +87 -0
  970. package/node_modules/music-metadata/lib/dsf/DsfChunk.js +50 -0
  971. package/node_modules/music-metadata/lib/dsf/DsfLoader.d.ts +2 -0
  972. package/node_modules/music-metadata/lib/dsf/DsfLoader.js +8 -0
  973. package/node_modules/music-metadata/lib/dsf/DsfParser.d.ts +24 -0
  974. package/node_modules/music-metadata/lib/dsf/DsfParser.js +57 -0
  975. package/node_modules/music-metadata/lib/ebml/EbmlIterator.d.ts +67 -0
  976. package/node_modules/music-metadata/lib/ebml/EbmlIterator.js +218 -0
  977. package/node_modules/music-metadata/lib/ebml/types.d.ts +37 -0
  978. package/node_modules/music-metadata/lib/ebml/types.js +8 -0
  979. package/node_modules/music-metadata/lib/flac/FlacLoader.d.ts +2 -0
  980. package/node_modules/music-metadata/lib/flac/FlacLoader.js +8 -0
  981. package/node_modules/music-metadata/lib/flac/FlacParser.d.ts +29 -0
  982. package/node_modules/music-metadata/lib/flac/FlacParser.js +125 -0
  983. package/node_modules/music-metadata/lib/flac/FlacToken.d.ts +45 -0
  984. package/node_modules/music-metadata/lib/flac/FlacToken.js +63 -0
  985. package/node_modules/music-metadata/lib/id3v1/ID3v1Parser.d.ts +17 -0
  986. package/node_modules/music-metadata/lib/id3v1/ID3v1Parser.js +137 -0
  987. package/node_modules/music-metadata/lib/id3v1/ID3v1TagMap.d.ts +4 -0
  988. package/node_modules/music-metadata/lib/id3v1/ID3v1TagMap.js +18 -0
  989. package/node_modules/music-metadata/lib/id3v2/AbstractID3Parser.d.ts +17 -0
  990. package/node_modules/music-metadata/lib/id3v2/AbstractID3Parser.js +56 -0
  991. package/node_modules/music-metadata/lib/id3v2/FrameHeader.d.ts +31 -0
  992. package/node_modules/music-metadata/lib/id3v2/FrameHeader.js +73 -0
  993. package/node_modules/music-metadata/lib/id3v2/FrameParser.d.ts +92 -0
  994. package/node_modules/music-metadata/lib/id3v2/FrameParser.js +470 -0
  995. package/node_modules/music-metadata/lib/id3v2/ID3v22TagMapper.d.ts +9 -0
  996. package/node_modules/music-metadata/lib/id3v2/ID3v22TagMapper.js +46 -0
  997. package/node_modules/music-metadata/lib/id3v2/ID3v24TagMapper.d.ts +14 -0
  998. package/node_modules/music-metadata/lib/id3v2/ID3v24TagMapper.js +195 -0
  999. package/node_modules/music-metadata/lib/id3v2/ID3v2ChapterToken.d.ts +11 -0
  1000. package/node_modules/music-metadata/lib/id3v2/ID3v2ChapterToken.js +17 -0
  1001. package/node_modules/music-metadata/lib/id3v2/ID3v2Parser.d.ts +33 -0
  1002. package/node_modules/music-metadata/lib/id3v2/ID3v2Parser.js +169 -0
  1003. package/node_modules/music-metadata/lib/id3v2/ID3v2Token.d.ts +111 -0
  1004. package/node_modules/music-metadata/lib/id3v2/ID3v2Token.js +146 -0
  1005. package/node_modules/music-metadata/lib/iff/index.d.ts +33 -0
  1006. package/node_modules/music-metadata/lib/iff/index.js +16 -0
  1007. package/node_modules/music-metadata/lib/index.d.ts +22 -0
  1008. package/node_modules/music-metadata/lib/index.js +53 -0
  1009. package/node_modules/music-metadata/lib/lrc/LyricsParser.d.ts +9 -0
  1010. package/node_modules/music-metadata/lib/lrc/LyricsParser.js +45 -0
  1011. package/node_modules/music-metadata/lib/lyrics3/Lyrics3.d.ts +3 -0
  1012. package/node_modules/music-metadata/lib/lyrics3/Lyrics3.js +17 -0
  1013. package/node_modules/music-metadata/lib/matroska/MatroskaDtd.d.ts +8 -0
  1014. package/node_modules/music-metadata/lib/matroska/MatroskaDtd.js +283 -0
  1015. package/node_modules/music-metadata/lib/matroska/MatroskaLoader.d.ts +2 -0
  1016. package/node_modules/music-metadata/lib/matroska/MatroskaLoader.js +8 -0
  1017. package/node_modules/music-metadata/lib/matroska/MatroskaParser.d.ts +19 -0
  1018. package/node_modules/music-metadata/lib/matroska/MatroskaParser.js +143 -0
  1019. package/node_modules/music-metadata/lib/matroska/MatroskaTagMapper.d.ts +4 -0
  1020. package/node_modules/music-metadata/lib/matroska/MatroskaTagMapper.js +32 -0
  1021. package/node_modules/music-metadata/lib/matroska/types.d.ts +142 -0
  1022. package/node_modules/music-metadata/lib/matroska/types.js +27 -0
  1023. package/node_modules/music-metadata/lib/mp4/Atom.d.ts +16 -0
  1024. package/node_modules/music-metadata/lib/mp4/Atom.js +65 -0
  1025. package/node_modules/music-metadata/lib/mp4/AtomToken.d.ts +487 -0
  1026. package/node_modules/music-metadata/lib/mp4/AtomToken.js +576 -0
  1027. package/node_modules/music-metadata/lib/mp4/MP4Parser.d.ts +32 -0
  1028. package/node_modules/music-metadata/lib/mp4/MP4Parser.js +647 -0
  1029. package/node_modules/music-metadata/lib/mp4/MP4TagMapper.d.ts +8 -0
  1030. package/node_modules/music-metadata/lib/mp4/MP4TagMapper.js +123 -0
  1031. package/node_modules/music-metadata/lib/mp4/Mp4Loader.d.ts +2 -0
  1032. package/node_modules/music-metadata/lib/mp4/Mp4Loader.js +8 -0
  1033. package/node_modules/music-metadata/lib/mpeg/ExtendedLameHeader.d.ts +27 -0
  1034. package/node_modules/music-metadata/lib/mpeg/ExtendedLameHeader.js +28 -0
  1035. package/node_modules/music-metadata/lib/mpeg/MpegLoader.d.ts +2 -0
  1036. package/node_modules/music-metadata/lib/mpeg/MpegLoader.js +8 -0
  1037. package/node_modules/music-metadata/lib/mpeg/MpegParser.d.ts +62 -0
  1038. package/node_modules/music-metadata/lib/mpeg/MpegParser.js +569 -0
  1039. package/node_modules/music-metadata/lib/mpeg/ReplayGainDataFormat.d.ts +57 -0
  1040. package/node_modules/music-metadata/lib/mpeg/ReplayGainDataFormat.js +64 -0
  1041. package/node_modules/music-metadata/lib/mpeg/XingTag.d.ts +44 -0
  1042. package/node_modules/music-metadata/lib/mpeg/XingTag.js +65 -0
  1043. package/node_modules/music-metadata/lib/musepack/MusepackConentError.d.ts +15 -0
  1044. package/node_modules/music-metadata/lib/musepack/MusepackConentError.js +3 -0
  1045. package/node_modules/music-metadata/lib/musepack/MusepackLoader.d.ts +2 -0
  1046. package/node_modules/music-metadata/lib/musepack/MusepackLoader.js +8 -0
  1047. package/node_modules/music-metadata/lib/musepack/MusepackParser.d.ts +4 -0
  1048. package/node_modules/music-metadata/lib/musepack/MusepackParser.js +30 -0
  1049. package/node_modules/music-metadata/lib/musepack/sv7/BitReader.d.ts +13 -0
  1050. package/node_modules/music-metadata/lib/musepack/sv7/BitReader.js +46 -0
  1051. package/node_modules/music-metadata/lib/musepack/sv7/MpcSv7Parser.d.ts +8 -0
  1052. package/node_modules/music-metadata/lib/musepack/sv7/MpcSv7Parser.js +47 -0
  1053. package/node_modules/music-metadata/lib/musepack/sv7/StreamVersion7.d.ts +28 -0
  1054. package/node_modules/music-metadata/lib/musepack/sv7/StreamVersion7.js +39 -0
  1055. package/node_modules/music-metadata/lib/musepack/sv8/MpcSv8Parser.d.ts +6 -0
  1056. package/node_modules/music-metadata/lib/musepack/sv8/MpcSv8Parser.js +56 -0
  1057. package/node_modules/music-metadata/lib/musepack/sv8/StreamVersion8.d.ts +42 -0
  1058. package/node_modules/music-metadata/lib/musepack/sv8/StreamVersion8.js +82 -0
  1059. package/node_modules/music-metadata/lib/ogg/OggLoader.d.ts +2 -0
  1060. package/node_modules/music-metadata/lib/ogg/OggLoader.js +8 -0
  1061. package/node_modules/music-metadata/lib/ogg/OggParser.d.ts +27 -0
  1062. package/node_modules/music-metadata/lib/ogg/OggParser.js +125 -0
  1063. package/node_modules/music-metadata/lib/ogg/OggToken.d.ts +83 -0
  1064. package/node_modules/music-metadata/lib/ogg/OggToken.js +41 -0
  1065. package/node_modules/music-metadata/lib/ogg/flac/FlacStream.d.ts +29 -0
  1066. package/node_modules/music-metadata/lib/ogg/flac/FlacStream.js +74 -0
  1067. package/node_modules/music-metadata/lib/ogg/opus/Opus.d.ts +63 -0
  1068. package/node_modules/music-metadata/lib/ogg/opus/Opus.js +27 -0
  1069. package/node_modules/music-metadata/lib/ogg/opus/OpusStream.d.ts +24 -0
  1070. package/node_modules/music-metadata/lib/ogg/opus/OpusStream.js +56 -0
  1071. package/node_modules/music-metadata/lib/ogg/speex/Speex.d.ts +36 -0
  1072. package/node_modules/music-metadata/lib/ogg/speex/Speex.js +28 -0
  1073. package/node_modules/music-metadata/lib/ogg/speex/SpeexStream.d.ts +20 -0
  1074. package/node_modules/music-metadata/lib/ogg/speex/SpeexStream.js +31 -0
  1075. package/node_modules/music-metadata/lib/ogg/theora/Theora.d.ts +20 -0
  1076. package/node_modules/music-metadata/lib/ogg/theora/Theora.js +20 -0
  1077. package/node_modules/music-metadata/lib/ogg/theora/TheoraStream.d.ts +25 -0
  1078. package/node_modules/music-metadata/lib/ogg/theora/TheoraStream.js +39 -0
  1079. package/node_modules/music-metadata/lib/ogg/vorbis/Vorbis.d.ts +68 -0
  1080. package/node_modules/music-metadata/lib/ogg/vorbis/Vorbis.js +83 -0
  1081. package/node_modules/music-metadata/lib/ogg/vorbis/VorbisDecoder.d.ts +12 -0
  1082. package/node_modules/music-metadata/lib/ogg/vorbis/VorbisDecoder.js +29 -0
  1083. package/node_modules/music-metadata/lib/ogg/vorbis/VorbisStream.d.ts +53 -0
  1084. package/node_modules/music-metadata/lib/ogg/vorbis/VorbisStream.js +136 -0
  1085. package/node_modules/music-metadata/lib/ogg/vorbis/VorbisTagMapper.d.ts +7 -0
  1086. package/node_modules/music-metadata/lib/ogg/vorbis/VorbisTagMapper.js +133 -0
  1087. package/node_modules/music-metadata/lib/riff/RiffChunk.d.ts +16 -0
  1088. package/node_modules/music-metadata/lib/riff/RiffChunk.js +28 -0
  1089. package/node_modules/music-metadata/lib/riff/RiffInfoTagMap.d.ts +10 -0
  1090. package/node_modules/music-metadata/lib/riff/RiffInfoTagMap.js +34 -0
  1091. package/node_modules/music-metadata/lib/type.d.ts +661 -0
  1092. package/node_modules/music-metadata/lib/type.js +2 -0
  1093. package/node_modules/music-metadata/lib/wav/BwfChunk.d.ts +17 -0
  1094. package/node_modules/music-metadata/lib/wav/BwfChunk.js +26 -0
  1095. package/node_modules/music-metadata/lib/wav/WaveChunk.d.ts +104 -0
  1096. package/node_modules/music-metadata/lib/wav/WaveChunk.js +88 -0
  1097. package/node_modules/music-metadata/lib/wav/WaveLoader.d.ts +2 -0
  1098. package/node_modules/music-metadata/lib/wav/WaveLoader.js +8 -0
  1099. package/node_modules/music-metadata/lib/wav/WaveParser.d.ts +25 -0
  1100. package/node_modules/music-metadata/lib/wav/WaveParser.js +171 -0
  1101. package/node_modules/music-metadata/lib/wavpack/WavPackLoader.d.ts +2 -0
  1102. package/node_modules/music-metadata/lib/wavpack/WavPackLoader.js +8 -0
  1103. package/node_modules/music-metadata/lib/wavpack/WavPackParser.d.ts +30 -0
  1104. package/node_modules/music-metadata/lib/wavpack/WavPackParser.js +109 -0
  1105. package/node_modules/music-metadata/lib/wavpack/WavPackToken.d.ts +60 -0
  1106. package/node_modules/music-metadata/lib/wavpack/WavPackToken.js +70 -0
  1107. package/node_modules/music-metadata/package.json +156 -0
  1108. package/node_modules/on-exit-leak-free/.github/dependabot.yml +12 -0
  1109. package/node_modules/on-exit-leak-free/.github/workflows/ci.yml +46 -0
  1110. package/node_modules/on-exit-leak-free/LICENSE +21 -0
  1111. package/node_modules/on-exit-leak-free/README.md +54 -0
  1112. package/node_modules/on-exit-leak-free/index.js +108 -0
  1113. package/node_modules/on-exit-leak-free/package.json +37 -0
  1114. package/node_modules/on-exit-leak-free/test/base.test.js +30 -0
  1115. package/node_modules/on-exit-leak-free/test/event-emitter-leak.test.js +23 -0
  1116. package/node_modules/on-exit-leak-free/test/fixtures/beforeExit.js +33 -0
  1117. package/node_modules/on-exit-leak-free/test/fixtures/close.js +21 -0
  1118. package/node_modules/on-exit-leak-free/test/fixtures/gc-not-close.js +24 -0
  1119. package/node_modules/on-exit-leak-free/test/fixtures/unregister.js +24 -0
  1120. package/node_modules/p-queue/dist/index.d.ts +263 -0
  1121. package/node_modules/p-queue/dist/index.js +796 -0
  1122. package/node_modules/p-queue/dist/lower-bound.d.ts +1 -0
  1123. package/node_modules/p-queue/dist/lower-bound.js +18 -0
  1124. package/node_modules/p-queue/dist/options.d.ts +137 -0
  1125. package/node_modules/p-queue/dist/options.js +1 -0
  1126. package/node_modules/p-queue/dist/priority-queue.d.ts +15 -0
  1127. package/node_modules/p-queue/dist/priority-queue.js +94 -0
  1128. package/node_modules/p-queue/dist/queue.d.ts +9 -0
  1129. package/node_modules/p-queue/dist/queue.js +1 -0
  1130. package/node_modules/p-queue/license +9 -0
  1131. package/node_modules/p-queue/package.json +81 -0
  1132. package/node_modules/p-queue/readme.md +1079 -0
  1133. package/node_modules/p-timeout/index.d.ts +149 -0
  1134. package/node_modules/p-timeout/index.js +95 -0
  1135. package/node_modules/p-timeout/license +9 -0
  1136. package/node_modules/p-timeout/package.json +52 -0
  1137. package/node_modules/p-timeout/readme.md +192 -0
  1138. package/node_modules/pino/.eslintignore +2 -0
  1139. package/node_modules/pino/.eslintrc +8 -0
  1140. package/node_modules/pino/.github/dependabot.yml +13 -0
  1141. package/node_modules/pino/.github/workflows/bench.yml +61 -0
  1142. package/node_modules/pino/.github/workflows/ci.yml +90 -0
  1143. package/node_modules/pino/.github/workflows/lock-threads.yml +30 -0
  1144. package/node_modules/pino/.github/workflows/publish-release.yml +43 -0
  1145. package/node_modules/pino/.github/workflows/target-main.yml +23 -0
  1146. package/node_modules/pino/.nojekyll +0 -0
  1147. package/node_modules/pino/.prettierignore +1 -0
  1148. package/node_modules/pino/.taprc.yaml +8 -0
  1149. package/node_modules/pino/CNAME +1 -0
  1150. package/node_modules/pino/CONTRIBUTING.md +30 -0
  1151. package/node_modules/pino/LICENSE +21 -0
  1152. package/node_modules/pino/README.md +177 -0
  1153. package/node_modules/pino/SECURITY.md +68 -0
  1154. package/node_modules/pino/benchmarks/basic.bench.js +95 -0
  1155. package/node_modules/pino/benchmarks/child-child.bench.js +52 -0
  1156. package/node_modules/pino/benchmarks/child-creation.bench.js +73 -0
  1157. package/node_modules/pino/benchmarks/child.bench.js +62 -0
  1158. package/node_modules/pino/benchmarks/deep-object.bench.js +88 -0
  1159. package/node_modules/pino/benchmarks/formatters.bench.js +50 -0
  1160. package/node_modules/pino/benchmarks/internal/custom-levels.js +67 -0
  1161. package/node_modules/pino/benchmarks/internal/just-pino-heavy.bench.js +76 -0
  1162. package/node_modules/pino/benchmarks/internal/just-pino.bench.js +182 -0
  1163. package/node_modules/pino/benchmarks/internal/parent-vs-child.bench.js +75 -0
  1164. package/node_modules/pino/benchmarks/internal/redact.bench.js +86 -0
  1165. package/node_modules/pino/benchmarks/long-string.bench.js +81 -0
  1166. package/node_modules/pino/benchmarks/multi-arg.bench.js +193 -0
  1167. package/node_modules/pino/benchmarks/multistream.js +98 -0
  1168. package/node_modules/pino/benchmarks/object.bench.js +82 -0
  1169. package/node_modules/pino/benchmarks/utils/generate-benchmark-doc.js +36 -0
  1170. package/node_modules/pino/benchmarks/utils/runbench.js +138 -0
  1171. package/node_modules/pino/benchmarks/utils/wrap-log-level.js +55 -0
  1172. package/node_modules/pino/bin.js +6 -0
  1173. package/node_modules/pino/browser.js +505 -0
  1174. package/node_modules/pino/build/sync-version.js +25 -0
  1175. package/node_modules/pino/docs/api.md +1588 -0
  1176. package/node_modules/pino/docs/asynchronous.md +40 -0
  1177. package/node_modules/pino/docs/benchmarks.md +55 -0
  1178. package/node_modules/pino/docs/browser.md +242 -0
  1179. package/node_modules/pino/docs/bundling.md +40 -0
  1180. package/node_modules/pino/docs/child-loggers.md +95 -0
  1181. package/node_modules/pino/docs/diagnostics.md +16 -0
  1182. package/node_modules/pino/docs/ecosystem.md +86 -0
  1183. package/node_modules/pino/docs/help.md +345 -0
  1184. package/node_modules/pino/docs/lts.md +64 -0
  1185. package/node_modules/pino/docs/pretty.md +35 -0
  1186. package/node_modules/pino/docs/redaction.md +135 -0
  1187. package/node_modules/pino/docs/transports.md +1263 -0
  1188. package/node_modules/pino/docs/web.md +309 -0
  1189. package/node_modules/pino/docsify/sidebar.md +26 -0
  1190. package/node_modules/pino/examples/basic.js +43 -0
  1191. package/node_modules/pino/examples/transport.js +68 -0
  1192. package/node_modules/pino/favicon-16x16.png +0 -0
  1193. package/node_modules/pino/favicon-32x32.png +0 -0
  1194. package/node_modules/pino/favicon.ico +0 -0
  1195. package/node_modules/pino/file.js +12 -0
  1196. package/node_modules/pino/inc-version.sh +42 -0
  1197. package/node_modules/pino/index.html +55 -0
  1198. package/node_modules/pino/lib/caller.js +30 -0
  1199. package/node_modules/pino/lib/constants.js +28 -0
  1200. package/node_modules/pino/lib/deprecations.js +8 -0
  1201. package/node_modules/pino/lib/levels.js +241 -0
  1202. package/node_modules/pino/lib/meta.js +3 -0
  1203. package/node_modules/pino/lib/multistream.js +203 -0
  1204. package/node_modules/pino/lib/proto.js +260 -0
  1205. package/node_modules/pino/lib/redaction.js +114 -0
  1206. package/node_modules/pino/lib/symbols.js +74 -0
  1207. package/node_modules/pino/lib/time.js +39 -0
  1208. package/node_modules/pino/lib/tools.js +436 -0
  1209. package/node_modules/pino/lib/transport-stream.js +56 -0
  1210. package/node_modules/pino/lib/transport.js +167 -0
  1211. package/node_modules/pino/lib/worker.js +194 -0
  1212. package/node_modules/pino/package.json +122 -0
  1213. package/node_modules/pino/pino-banner.png +0 -0
  1214. package/node_modules/pino/pino-logo-hire.png +0 -0
  1215. package/node_modules/pino/pino-tree.png +0 -0
  1216. package/node_modules/pino/pino.d.ts +904 -0
  1217. package/node_modules/pino/pino.js +234 -0
  1218. package/node_modules/pino/pretty-demo.png +0 -0
  1219. package/node_modules/pino/test/basic.test.js +876 -0
  1220. package/node_modules/pino/test/broken-pipe.test.js +57 -0
  1221. package/node_modules/pino/test/browser-child.test.js +132 -0
  1222. package/node_modules/pino/test/browser-disabled.test.js +87 -0
  1223. package/node_modules/pino/test/browser-early-console-freeze.test.js +12 -0
  1224. package/node_modules/pino/test/browser-is-level-enabled.test.js +104 -0
  1225. package/node_modules/pino/test/browser-levels.test.js +241 -0
  1226. package/node_modules/pino/test/browser-serializers.test.js +352 -0
  1227. package/node_modules/pino/test/browser-timestamp.test.js +88 -0
  1228. package/node_modules/pino/test/browser-transmit.test.js +417 -0
  1229. package/node_modules/pino/test/browser.test.js +679 -0
  1230. package/node_modules/pino/test/complex-objects.test.js +34 -0
  1231. package/node_modules/pino/test/crlf.test.js +32 -0
  1232. package/node_modules/pino/test/custom-levels.test.js +253 -0
  1233. package/node_modules/pino/test/diagnostics.test.js +107 -0
  1234. package/node_modules/pino/test/error.test.js +398 -0
  1235. package/node_modules/pino/test/errorKey.test.js +34 -0
  1236. package/node_modules/pino/test/escaping.test.js +91 -0
  1237. package/node_modules/pino/test/esm/esm.mjs +12 -0
  1238. package/node_modules/pino/test/esm/index.test.js +34 -0
  1239. package/node_modules/pino/test/esm/named-exports.mjs +27 -0
  1240. package/node_modules/pino/test/exit.test.js +77 -0
  1241. package/node_modules/pino/test/fixtures/broken-pipe/basic.js +9 -0
  1242. package/node_modules/pino/test/fixtures/broken-pipe/destination.js +10 -0
  1243. package/node_modules/pino/test/fixtures/broken-pipe/syncfalse.js +12 -0
  1244. package/node_modules/pino/test/fixtures/console-transport.js +13 -0
  1245. package/node_modules/pino/test/fixtures/crashing-transport.js +13 -0
  1246. package/node_modules/pino/test/fixtures/default-exit.js +8 -0
  1247. package/node_modules/pino/test/fixtures/destination-exit.js +8 -0
  1248. package/node_modules/pino/test/fixtures/eval/index.js +13 -0
  1249. package/node_modules/pino/test/fixtures/eval/node_modules/14-files.js +3 -0
  1250. package/node_modules/pino/test/fixtures/eval/node_modules/2-files.js +3 -0
  1251. package/node_modules/pino/test/fixtures/eval/node_modules/file1.js +5 -0
  1252. package/node_modules/pino/test/fixtures/eval/node_modules/file10.js +5 -0
  1253. package/node_modules/pino/test/fixtures/eval/node_modules/file11.js +5 -0
  1254. package/node_modules/pino/test/fixtures/eval/node_modules/file12.js +5 -0
  1255. package/node_modules/pino/test/fixtures/eval/node_modules/file13.js +5 -0
  1256. package/node_modules/pino/test/fixtures/eval/node_modules/file14.js +11 -0
  1257. package/node_modules/pino/test/fixtures/eval/node_modules/file2.js +5 -0
  1258. package/node_modules/pino/test/fixtures/eval/node_modules/file3.js +5 -0
  1259. package/node_modules/pino/test/fixtures/eval/node_modules/file4.js +5 -0
  1260. package/node_modules/pino/test/fixtures/eval/node_modules/file5.js +5 -0
  1261. package/node_modules/pino/test/fixtures/eval/node_modules/file6.js +5 -0
  1262. package/node_modules/pino/test/fixtures/eval/node_modules/file7.js +5 -0
  1263. package/node_modules/pino/test/fixtures/eval/node_modules/file8.js +5 -0
  1264. package/node_modules/pino/test/fixtures/eval/node_modules/file9.js +5 -0
  1265. package/node_modules/pino/test/fixtures/noop-transport.js +10 -0
  1266. package/node_modules/pino/test/fixtures/pretty/null-prototype.js +8 -0
  1267. package/node_modules/pino/test/fixtures/stdout-hack-protection.js +11 -0
  1268. package/node_modules/pino/test/fixtures/syncfalse-child.js +6 -0
  1269. package/node_modules/pino/test/fixtures/syncfalse-exit.js +9 -0
  1270. package/node_modules/pino/test/fixtures/syncfalse-flush-exit.js +10 -0
  1271. package/node_modules/pino/test/fixtures/syncfalse.js +6 -0
  1272. package/node_modules/pino/test/fixtures/syntax-error-esm.mjs +2 -0
  1273. package/node_modules/pino/test/fixtures/to-file-transport-with-transform.js +20 -0
  1274. package/node_modules/pino/test/fixtures/to-file-transport.js +13 -0
  1275. package/node_modules/pino/test/fixtures/to-file-transport.mjs +8 -0
  1276. package/node_modules/pino/test/fixtures/transport/index.js +12 -0
  1277. package/node_modules/pino/test/fixtures/transport/package.json +5 -0
  1278. package/node_modules/pino/test/fixtures/transport-exit-immediately-with-async-dest.js +16 -0
  1279. package/node_modules/pino/test/fixtures/transport-exit-immediately.js +11 -0
  1280. package/node_modules/pino/test/fixtures/transport-exit-on-ready.js +12 -0
  1281. package/node_modules/pino/test/fixtures/transport-main.js +9 -0
  1282. package/node_modules/pino/test/fixtures/transport-many-lines.js +29 -0
  1283. package/node_modules/pino/test/fixtures/transport-string-stdout.js +9 -0
  1284. package/node_modules/pino/test/fixtures/transport-transform.js +21 -0
  1285. package/node_modules/pino/test/fixtures/transport-uses-pino-config.js +33 -0
  1286. package/node_modules/pino/test/fixtures/transport-with-on-exit.js +12 -0
  1287. package/node_modules/pino/test/fixtures/transport-worker-data.js +19 -0
  1288. package/node_modules/pino/test/fixtures/transport-worker.js +15 -0
  1289. package/node_modules/pino/test/fixtures/transport-wrong-export-type.js +3 -0
  1290. package/node_modules/pino/test/fixtures/ts/to-file-transport-with-transform.ts +18 -0
  1291. package/node_modules/pino/test/fixtures/ts/to-file-transport.ts +11 -0
  1292. package/node_modules/pino/test/fixtures/ts/transpile.cjs +36 -0
  1293. package/node_modules/pino/test/fixtures/ts/transport-exit-immediately-with-async-dest.ts +15 -0
  1294. package/node_modules/pino/test/fixtures/ts/transport-exit-immediately.ts +10 -0
  1295. package/node_modules/pino/test/fixtures/ts/transport-exit-on-ready.ts +11 -0
  1296. package/node_modules/pino/test/fixtures/ts/transport-main.ts +8 -0
  1297. package/node_modules/pino/test/fixtures/ts/transport-string-stdout.ts +8 -0
  1298. package/node_modules/pino/test/fixtures/ts/transport-worker.ts +14 -0
  1299. package/node_modules/pino/test/formatters.test.js +355 -0
  1300. package/node_modules/pino/test/helper.d.ts +4 -0
  1301. package/node_modules/pino/test/helper.js +128 -0
  1302. package/node_modules/pino/test/hooks.test.js +118 -0
  1303. package/node_modules/pino/test/http.test.js +242 -0
  1304. package/node_modules/pino/test/internals/version.test.js +15 -0
  1305. package/node_modules/pino/test/is-level-enabled.test.js +185 -0
  1306. package/node_modules/pino/test/jest/basic.spec.js +10 -0
  1307. package/node_modules/pino/test/levels.test.js +772 -0
  1308. package/node_modules/pino/test/metadata.test.js +106 -0
  1309. package/node_modules/pino/test/mixin-merge-strategy.test.js +55 -0
  1310. package/node_modules/pino/test/mixin.test.js +218 -0
  1311. package/node_modules/pino/test/multistream.test.js +723 -0
  1312. package/node_modules/pino/test/pkg/index.js +46 -0
  1313. package/node_modules/pino/test/pkg/pkg.config.json +16 -0
  1314. package/node_modules/pino/test/pkg/pkg.test.js +58 -0
  1315. package/node_modules/pino/test/redact.test.js +847 -0
  1316. package/node_modules/pino/test/serializers.test.js +253 -0
  1317. package/node_modules/pino/test/sinon-child-logger.test.js +75 -0
  1318. package/node_modules/pino/test/stdout-protection.test.js +39 -0
  1319. package/node_modules/pino/test/syncfalse.test.js +188 -0
  1320. package/node_modules/pino/test/timestamp-nano.test.js +35 -0
  1321. package/node_modules/pino/test/timestamp.test.js +122 -0
  1322. package/node_modules/pino/test/transport/big.test.js +43 -0
  1323. package/node_modules/pino/test/transport/bundlers-support.test.js +97 -0
  1324. package/node_modules/pino/test/transport/caller.test.js +23 -0
  1325. package/node_modules/pino/test/transport/core.test.js +643 -0
  1326. package/node_modules/pino/test/transport/core.test.ts +236 -0
  1327. package/node_modules/pino/test/transport/core.transpiled.test.ts +112 -0
  1328. package/node_modules/pino/test/transport/crash.test.js +34 -0
  1329. package/node_modules/pino/test/transport/module-link.test.js +239 -0
  1330. package/node_modules/pino/test/transport/pipeline.test.js +135 -0
  1331. package/node_modules/pino/test/transport/repl.test.js +14 -0
  1332. package/node_modules/pino/test/transport/syncTrue.test.js +55 -0
  1333. package/node_modules/pino/test/transport/syncfalse.test.js +68 -0
  1334. package/node_modules/pino/test/transport/targets.test.js +44 -0
  1335. package/node_modules/pino/test/transport/uses-pino-config.test.js +167 -0
  1336. package/node_modules/pino/test/transport-stream.test.js +26 -0
  1337. package/node_modules/pino/test/types/pino-import.test-d.cts +29 -0
  1338. package/node_modules/pino/test/types/pino-multistream.test-d.ts +28 -0
  1339. package/node_modules/pino/test/types/pino-top-export.test-d.ts +36 -0
  1340. package/node_modules/pino/test/types/pino-transport.test-d.ts +145 -0
  1341. package/node_modules/pino/test/types/pino-type-only.test-d.ts +66 -0
  1342. package/node_modules/pino/test/types/pino.test-d.ts +585 -0
  1343. package/node_modules/pino/test/types/pino.ts +90 -0
  1344. package/node_modules/pino/tsconfig.json +14 -0
  1345. package/node_modules/pino-abstract-transport/.github/dependabot.yml +13 -0
  1346. package/node_modules/pino-abstract-transport/.github/workflows/ci.yml +97 -0
  1347. package/node_modules/pino-abstract-transport/.husky/pre-commit +4 -0
  1348. package/node_modules/pino-abstract-transport/LICENSE +21 -0
  1349. package/node_modules/pino-abstract-transport/README.md +172 -0
  1350. package/node_modules/pino-abstract-transport/index.d.ts +122 -0
  1351. package/node_modules/pino-abstract-transport/index.js +128 -0
  1352. package/node_modules/pino-abstract-transport/package.json +40 -0
  1353. package/node_modules/pino-abstract-transport/test/base.test.js +445 -0
  1354. package/node_modules/pino-abstract-transport/test/fixtures/transport-async-iteration.js +22 -0
  1355. package/node_modules/pino-abstract-transport/test/fixtures/transport-on-data.js +22 -0
  1356. package/node_modules/pino-abstract-transport/test/fixtures/transport-transform.js +24 -0
  1357. package/node_modules/pino-abstract-transport/test/fixtures/worker-pipeline.js +15 -0
  1358. package/node_modules/pino-abstract-transport/test/types/index.test-d.ts +31 -0
  1359. package/node_modules/pino-abstract-transport/test/worker.test.js +357 -0
  1360. package/node_modules/pino-std-serializers/.editorconfig +13 -0
  1361. package/node_modules/pino-std-serializers/.github/dependabot.yml +13 -0
  1362. package/node_modules/pino-std-serializers/.github/workflows/ci.yml +81 -0
  1363. package/node_modules/pino-std-serializers/LICENSE +7 -0
  1364. package/node_modules/pino-std-serializers/Readme.md +182 -0
  1365. package/node_modules/pino-std-serializers/eslint.config.js +7 -0
  1366. package/node_modules/pino-std-serializers/index.d.ts +145 -0
  1367. package/node_modules/pino-std-serializers/index.js +36 -0
  1368. package/node_modules/pino-std-serializers/lib/err-helpers.js +118 -0
  1369. package/node_modules/pino-std-serializers/lib/err-proto.js +48 -0
  1370. package/node_modules/pino-std-serializers/lib/err-with-cause.js +48 -0
  1371. package/node_modules/pino-std-serializers/lib/err.js +45 -0
  1372. package/node_modules/pino-std-serializers/lib/req.js +100 -0
  1373. package/node_modules/pino-std-serializers/lib/res.js +47 -0
  1374. package/node_modules/pino-std-serializers/package.json +42 -0
  1375. package/node_modules/pino-std-serializers/test/err-with-cause.test.js +187 -0
  1376. package/node_modules/pino-std-serializers/test/err.test.js +200 -0
  1377. package/node_modules/pino-std-serializers/test/req.test.js +477 -0
  1378. package/node_modules/pino-std-serializers/test/res.test.js +120 -0
  1379. package/node_modules/pino-std-serializers/test/types/index.test-d.ts +71 -0
  1380. package/node_modules/pino-std-serializers/tsconfig.json +13 -0
  1381. package/node_modules/process-warning/.gitattributes +2 -0
  1382. package/node_modules/process-warning/.github/dependabot.yml +13 -0
  1383. package/node_modules/process-warning/.github/workflows/ci.yml +22 -0
  1384. package/node_modules/process-warning/LICENSE +21 -0
  1385. package/node_modules/process-warning/README.md +118 -0
  1386. package/node_modules/process-warning/benchmarks/warn.js +25 -0
  1387. package/node_modules/process-warning/eslint.config.js +6 -0
  1388. package/node_modules/process-warning/examples/example.js +11 -0
  1389. package/node_modules/process-warning/index.js +124 -0
  1390. package/node_modules/process-warning/package.json +73 -0
  1391. package/node_modules/process-warning/test/emit-interpolated-string.test.js +34 -0
  1392. package/node_modules/process-warning/test/emit-once-only.test.js +33 -0
  1393. package/node_modules/process-warning/test/emit-reset.test.js +40 -0
  1394. package/node_modules/process-warning/test/emit-set.test.js +35 -0
  1395. package/node_modules/process-warning/test/emit-unlimited.test.js +42 -0
  1396. package/node_modules/process-warning/test/index.test.js +99 -0
  1397. package/node_modules/process-warning/test/issue-88.test.js +38 -0
  1398. package/node_modules/process-warning/test/jest.test.js +24 -0
  1399. package/node_modules/process-warning/test/no-warnings.test.js +80 -0
  1400. package/node_modules/process-warning/test/promise.js +10 -0
  1401. package/node_modules/process-warning/types/index.d.ts +37 -0
  1402. package/node_modules/process-warning/types/index.test-d.ts +36 -0
  1403. package/node_modules/protobufjs/LICENSE +39 -0
  1404. package/node_modules/protobufjs/README.md +727 -0
  1405. package/node_modules/protobufjs/dist/light/protobuf.js +8041 -0
  1406. package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -0
  1407. package/node_modules/protobufjs/dist/light/protobuf.min.js +8 -0
  1408. package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -0
  1409. package/node_modules/protobufjs/dist/minimal/protobuf.js +2791 -0
  1410. package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -0
  1411. package/node_modules/protobufjs/dist/minimal/protobuf.min.js +8 -0
  1412. package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -0
  1413. package/node_modules/protobufjs/dist/protobuf.js +9865 -0
  1414. package/node_modules/protobufjs/dist/protobuf.js.map +1 -0
  1415. package/node_modules/protobufjs/dist/protobuf.min.js +8 -0
  1416. package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -0
  1417. package/node_modules/protobufjs/ext/debug/README.md +4 -0
  1418. package/node_modules/protobufjs/ext/debug/index.js +71 -0
  1419. package/node_modules/protobufjs/ext/descriptor/README.md +72 -0
  1420. package/node_modules/protobufjs/ext/descriptor/index.d.ts +195 -0
  1421. package/node_modules/protobufjs/ext/descriptor/index.js +1186 -0
  1422. package/node_modules/protobufjs/ext/descriptor/test.js +54 -0
  1423. package/node_modules/protobufjs/google/LICENSE +27 -0
  1424. package/node_modules/protobufjs/google/README.md +1 -0
  1425. package/node_modules/protobufjs/google/api/annotations.json +83 -0
  1426. package/node_modules/protobufjs/google/api/annotations.proto +11 -0
  1427. package/node_modules/protobufjs/google/api/http.json +86 -0
  1428. package/node_modules/protobufjs/google/api/http.proto +31 -0
  1429. package/node_modules/protobufjs/google/protobuf/api.json +118 -0
  1430. package/node_modules/protobufjs/google/protobuf/api.proto +34 -0
  1431. package/node_modules/protobufjs/google/protobuf/descriptor.json +1382 -0
  1432. package/node_modules/protobufjs/google/protobuf/descriptor.proto +535 -0
  1433. package/node_modules/protobufjs/google/protobuf/source_context.json +20 -0
  1434. package/node_modules/protobufjs/google/protobuf/source_context.proto +7 -0
  1435. package/node_modules/protobufjs/google/protobuf/type.json +202 -0
  1436. package/node_modules/protobufjs/google/protobuf/type.proto +89 -0
  1437. package/node_modules/protobufjs/index.d.ts +2832 -0
  1438. package/node_modules/protobufjs/index.js +4 -0
  1439. package/node_modules/protobufjs/light.d.ts +2 -0
  1440. package/node_modules/protobufjs/light.js +4 -0
  1441. package/node_modules/protobufjs/minimal.d.ts +2 -0
  1442. package/node_modules/protobufjs/minimal.js +4 -0
  1443. package/node_modules/protobufjs/package.json +119 -0
  1444. package/node_modules/protobufjs/scripts/postinstall.js +32 -0
  1445. package/node_modules/protobufjs/src/common.js +399 -0
  1446. package/node_modules/protobufjs/src/converter.js +318 -0
  1447. package/node_modules/protobufjs/src/decoder.js +135 -0
  1448. package/node_modules/protobufjs/src/encoder.js +103 -0
  1449. package/node_modules/protobufjs/src/enum.js +226 -0
  1450. package/node_modules/protobufjs/src/field.js +453 -0
  1451. package/node_modules/protobufjs/src/index-light.js +104 -0
  1452. package/node_modules/protobufjs/src/index-minimal.js +36 -0
  1453. package/node_modules/protobufjs/src/index.js +12 -0
  1454. package/node_modules/protobufjs/src/mapfield.js +126 -0
  1455. package/node_modules/protobufjs/src/message.js +143 -0
  1456. package/node_modules/protobufjs/src/method.js +160 -0
  1457. package/node_modules/protobufjs/src/namespace.js +558 -0
  1458. package/node_modules/protobufjs/src/object.js +382 -0
  1459. package/node_modules/protobufjs/src/oneof.js +222 -0
  1460. package/node_modules/protobufjs/src/parse.js +989 -0
  1461. package/node_modules/protobufjs/src/reader.js +426 -0
  1462. package/node_modules/protobufjs/src/reader_buffer.js +51 -0
  1463. package/node_modules/protobufjs/src/root.js +412 -0
  1464. package/node_modules/protobufjs/src/roots.js +18 -0
  1465. package/node_modules/protobufjs/src/rpc/service.js +142 -0
  1466. package/node_modules/protobufjs/src/rpc.js +36 -0
  1467. package/node_modules/protobufjs/src/service.js +193 -0
  1468. package/node_modules/protobufjs/src/tokenize.js +416 -0
  1469. package/node_modules/protobufjs/src/type.js +632 -0
  1470. package/node_modules/protobufjs/src/types.js +196 -0
  1471. package/node_modules/protobufjs/src/typescript.jsdoc +15 -0
  1472. package/node_modules/protobufjs/src/util/fs.js +11 -0
  1473. package/node_modules/protobufjs/src/util/longbits.js +200 -0
  1474. package/node_modules/protobufjs/src/util/minimal.js +491 -0
  1475. package/node_modules/protobufjs/src/util/patterns.js +7 -0
  1476. package/node_modules/protobufjs/src/util.js +230 -0
  1477. package/node_modules/protobufjs/src/verifier.js +180 -0
  1478. package/node_modules/protobufjs/src/wrappers.js +107 -0
  1479. package/node_modules/protobufjs/src/writer.js +467 -0
  1480. package/node_modules/protobufjs/src/writer_buffer.js +85 -0
  1481. package/node_modules/protobufjs/tsconfig.json +8 -0
  1482. package/node_modules/qified/LICENSE +19 -0
  1483. package/node_modules/qified/README.md +677 -0
  1484. package/node_modules/qified/dist/index.cjs +662 -0
  1485. package/node_modules/qified/dist/index.d.cts +626 -0
  1486. package/node_modules/qified/dist/index.d.mts +626 -0
  1487. package/node_modules/qified/dist/index.mjs +657 -0
  1488. package/node_modules/qified/node_modules/hookified/LICENSE +19 -0
  1489. package/node_modules/qified/node_modules/hookified/README.md +1792 -0
  1490. package/node_modules/qified/node_modules/hookified/dist/browser/index.global.js +951 -0
  1491. package/node_modules/qified/node_modules/hookified/dist/browser/index.global.js.map +1 -0
  1492. package/node_modules/qified/node_modules/hookified/dist/browser/index.js +943 -0
  1493. package/node_modules/qified/node_modules/hookified/dist/browser/index.js.map +1 -0
  1494. package/node_modules/qified/node_modules/hookified/dist/node/index.cjs +908 -0
  1495. package/node_modules/qified/node_modules/hookified/dist/node/index.d.cts +771 -0
  1496. package/node_modules/qified/node_modules/hookified/dist/node/index.d.ts +771 -0
  1497. package/node_modules/qified/node_modules/hookified/dist/node/index.js +903 -0
  1498. package/node_modules/qified/node_modules/hookified/package.json +94 -0
  1499. package/node_modules/qified/package.json +50 -0
  1500. package/node_modules/quick-format-unescaped/.github/workflows/ci.yml +21 -0
  1501. package/node_modules/quick-format-unescaped/LICENSE +21 -0
  1502. package/node_modules/quick-format-unescaped/benchmark.js +24 -0
  1503. package/node_modules/quick-format-unescaped/index.js +109 -0
  1504. package/node_modules/quick-format-unescaped/package.json +29 -0
  1505. package/node_modules/quick-format-unescaped/readme.md +66 -0
  1506. package/node_modules/quick-format-unescaped/test/index.js +136 -0
  1507. package/node_modules/real-require/LICENSE.md +21 -0
  1508. package/node_modules/real-require/README.md +51 -0
  1509. package/node_modules/real-require/package.json +49 -0
  1510. package/node_modules/real-require/src/index.js +14 -0
  1511. package/node_modules/safe-stable-stringify/LICENSE +21 -0
  1512. package/node_modules/safe-stable-stringify/esm/package.json +4 -0
  1513. package/node_modules/safe-stable-stringify/esm/wrapper.d.ts +4 -0
  1514. package/node_modules/safe-stable-stringify/esm/wrapper.js +6 -0
  1515. package/node_modules/safe-stable-stringify/index.d.ts +22 -0
  1516. package/node_modules/safe-stable-stringify/index.js +625 -0
  1517. package/node_modules/safe-stable-stringify/package.json +65 -0
  1518. package/node_modules/safe-stable-stringify/readme.md +179 -0
  1519. package/node_modules/sonic-boom/.eslintignore +2 -0
  1520. package/node_modules/sonic-boom/.taprc +3 -0
  1521. package/node_modules/sonic-boom/LICENSE +21 -0
  1522. package/node_modules/sonic-boom/README.md +153 -0
  1523. package/node_modules/sonic-boom/bench.js +98 -0
  1524. package/node_modules/sonic-boom/check.js +18 -0
  1525. package/node_modules/sonic-boom/example.js +8 -0
  1526. package/node_modules/sonic-boom/fixtures/firehose.js +22 -0
  1527. package/node_modules/sonic-boom/index.js +733 -0
  1528. package/node_modules/sonic-boom/package.json +52 -0
  1529. package/node_modules/sonic-boom/test/destroy.test.js +49 -0
  1530. package/node_modules/sonic-boom/test/end.test.js +98 -0
  1531. package/node_modules/sonic-boom/test/flush-sync.test.js +140 -0
  1532. package/node_modules/sonic-boom/test/flush.test.js +419 -0
  1533. package/node_modules/sonic-boom/test/fsync.test.js +63 -0
  1534. package/node_modules/sonic-boom/test/helper.js +42 -0
  1535. package/node_modules/sonic-boom/test/minlength.test.js +35 -0
  1536. package/node_modules/sonic-boom/test/mode.test.js +116 -0
  1537. package/node_modules/sonic-boom/test/periodicflush.test.js +61 -0
  1538. package/node_modules/sonic-boom/test/reopen.test.js +239 -0
  1539. package/node_modules/sonic-boom/test/retry.test.js +414 -0
  1540. package/node_modules/sonic-boom/test/sync.test.js +261 -0
  1541. package/node_modules/sonic-boom/test/write.test.js +515 -0
  1542. package/node_modules/sonic-boom/types/index.d.ts +63 -0
  1543. package/node_modules/sonic-boom/types/tests/test.ts +4 -0
  1544. package/node_modules/split2/LICENSE +13 -0
  1545. package/node_modules/split2/README.md +85 -0
  1546. package/node_modules/split2/bench.js +27 -0
  1547. package/node_modules/split2/index.js +141 -0
  1548. package/node_modules/split2/package.json +39 -0
  1549. package/node_modules/split2/test.js +409 -0
  1550. package/node_modules/strtok3/LICENSE.txt +21 -0
  1551. package/node_modules/strtok3/README.md +399 -0
  1552. package/node_modules/strtok3/lib/AbstractTokenizer.d.ts +76 -0
  1553. package/node_modules/strtok3/lib/AbstractTokenizer.js +111 -0
  1554. package/node_modules/strtok3/lib/BlobTokenizer.d.ts +29 -0
  1555. package/node_modules/strtok3/lib/BlobTokenizer.js +53 -0
  1556. package/node_modules/strtok3/lib/BufferTokenizer.d.ts +29 -0
  1557. package/node_modules/strtok3/lib/BufferTokenizer.js +52 -0
  1558. package/node_modules/strtok3/lib/FileTokenizer.d.ts +37 -0
  1559. package/node_modules/strtok3/lib/FileTokenizer.js +61 -0
  1560. package/node_modules/strtok3/lib/ReadStreamTokenizer.d.ts +34 -0
  1561. package/node_modules/strtok3/lib/ReadStreamTokenizer.js +107 -0
  1562. package/node_modules/strtok3/lib/core.d.ts +40 -0
  1563. package/node_modules/strtok3/lib/core.js +62 -0
  1564. package/node_modules/strtok3/lib/index.d.ts +16 -0
  1565. package/node_modules/strtok3/lib/index.js +22 -0
  1566. package/node_modules/strtok3/lib/stream/AbstractStreamReader.d.ts +54 -0
  1567. package/node_modules/strtok3/lib/stream/AbstractStreamReader.js +71 -0
  1568. package/node_modules/strtok3/lib/stream/Deferred.d.ts +6 -0
  1569. package/node_modules/strtok3/lib/stream/Deferred.js +10 -0
  1570. package/node_modules/strtok3/lib/stream/Errors.d.ts +10 -0
  1571. package/node_modules/strtok3/lib/stream/Errors.js +16 -0
  1572. package/node_modules/strtok3/lib/stream/StreamReader.d.ts +29 -0
  1573. package/node_modules/strtok3/lib/stream/StreamReader.js +83 -0
  1574. package/node_modules/strtok3/lib/stream/WebStreamByobReader.d.ts +14 -0
  1575. package/node_modules/strtok3/lib/stream/WebStreamByobReader.js +27 -0
  1576. package/node_modules/strtok3/lib/stream/WebStreamDefaultReader.d.ts +19 -0
  1577. package/node_modules/strtok3/lib/stream/WebStreamDefaultReader.js +62 -0
  1578. package/node_modules/strtok3/lib/stream/WebStreamReader.d.ts +14 -0
  1579. package/node_modules/strtok3/lib/stream/WebStreamReader.js +13 -0
  1580. package/node_modules/strtok3/lib/stream/WebStreamReaderFactory.d.ts +5 -0
  1581. package/node_modules/strtok3/lib/stream/WebStreamReaderFactory.js +19 -0
  1582. package/node_modules/strtok3/lib/stream/index.d.ts +6 -0
  1583. package/node_modules/strtok3/lib/stream/index.js +5 -0
  1584. package/node_modules/strtok3/lib/types.d.ts +139 -0
  1585. package/node_modules/strtok3/lib/types.js +1 -0
  1586. package/node_modules/strtok3/package.json +94 -0
  1587. package/node_modules/thread-stream/.claude/settings.local.json +15 -0
  1588. package/node_modules/thread-stream/.github/dependabot.yml +13 -0
  1589. package/node_modules/thread-stream/.github/workflows/ci.yml +94 -0
  1590. package/node_modules/thread-stream/.husky/pre-commit +4 -0
  1591. package/node_modules/thread-stream/.taprc +4 -0
  1592. package/node_modules/thread-stream/CLAUDE.md +64 -0
  1593. package/node_modules/thread-stream/LICENSE +21 -0
  1594. package/node_modules/thread-stream/README.md +136 -0
  1595. package/node_modules/thread-stream/bench.js +85 -0
  1596. package/node_modules/thread-stream/index.d.ts +92 -0
  1597. package/node_modules/thread-stream/index.js +565 -0
  1598. package/node_modules/thread-stream/lib/indexes.js +11 -0
  1599. package/node_modules/thread-stream/lib/wait.js +61 -0
  1600. package/node_modules/thread-stream/lib/worker.js +186 -0
  1601. package/node_modules/thread-stream/package.json +57 -0
  1602. package/node_modules/thread-stream/test/base.test.js +258 -0
  1603. package/node_modules/thread-stream/test/bench.test.js +38 -0
  1604. package/node_modules/thread-stream/test/bundlers.test.js +60 -0
  1605. package/node_modules/thread-stream/test/close-on-gc.js +37 -0
  1606. package/node_modules/thread-stream/test/commonjs-fallback.test.js +80 -0
  1607. package/node_modules/thread-stream/test/context.test.js +21 -0
  1608. package/node_modules/thread-stream/test/create-and-exit.js +16 -0
  1609. package/node_modules/thread-stream/test/custom-worker.js +9 -0
  1610. package/node_modules/thread-stream/test/dir with spaces/test-package.zip +0 -0
  1611. package/node_modules/thread-stream/test/emit-event.js +22 -0
  1612. package/node_modules/thread-stream/test/end.test.js +61 -0
  1613. package/node_modules/thread-stream/test/error.js +14 -0
  1614. package/node_modules/thread-stream/test/esm.test.mjs +47 -0
  1615. package/node_modules/thread-stream/test/event.test.js +23 -0
  1616. package/node_modules/thread-stream/test/exit.js +14 -0
  1617. package/node_modules/thread-stream/test/get-context.js +22 -0
  1618. package/node_modules/thread-stream/test/helper.d.ts +1 -0
  1619. package/node_modules/thread-stream/test/helper.js +35 -0
  1620. package/node_modules/thread-stream/test/indexes.test.js +11 -0
  1621. package/node_modules/thread-stream/test/message-without-code.js +19 -0
  1622. package/node_modules/thread-stream/test/multibyte-chars.test.mjs +74 -0
  1623. package/node_modules/thread-stream/test/never-drain.test.js +57 -0
  1624. package/node_modules/thread-stream/test/on-message.js +18 -0
  1625. package/node_modules/thread-stream/test/pkg/index.js +37 -0
  1626. package/node_modules/thread-stream/test/pkg/pkg.config.json +15 -0
  1627. package/node_modules/thread-stream/test/pkg/pkg.test.js +46 -0
  1628. package/node_modules/thread-stream/test/port.js +16 -0
  1629. package/node_modules/thread-stream/test/post-message.test.js +24 -0
  1630. package/node_modules/thread-stream/test/string-limit-2.test.js +41 -0
  1631. package/node_modules/thread-stream/test/string-limit.test.js +42 -0
  1632. package/node_modules/thread-stream/test/syntax-error.mjs +2 -0
  1633. package/node_modules/thread-stream/test/thread-management.test.js +121 -0
  1634. package/node_modules/thread-stream/test/to-file-on-destroy.js +23 -0
  1635. package/node_modules/thread-stream/test/to-file-on-final.js +24 -0
  1636. package/node_modules/thread-stream/test/to-file.js +12 -0
  1637. package/node_modules/thread-stream/test/to-file.mjs +8 -0
  1638. package/node_modules/thread-stream/test/to-next.js +9 -0
  1639. package/node_modules/thread-stream/test/transpiled.test.js +30 -0
  1640. package/node_modules/thread-stream/test/ts/to-file.ts +10 -0
  1641. package/node_modules/thread-stream/test/ts/transpile.sh +19 -0
  1642. package/node_modules/thread-stream/test/ts-commonjs-default-export.zip +0 -0
  1643. package/node_modules/thread-stream/test/ts.test.ts +33 -0
  1644. package/node_modules/thread-stream/test/uncaughtException.js +21 -0
  1645. package/node_modules/thread-stream/test/unhandledRejection.js +21 -0
  1646. package/node_modules/thread-stream/test/watch-mode.test.js +28 -0
  1647. package/node_modules/thread-stream/test/yarnrc.yml +7 -0
  1648. package/node_modules/thread-stream/tsconfig.json +8 -0
  1649. package/node_modules/token-types/LICENSE.txt +9 -0
  1650. package/node_modules/token-types/README.md +120 -0
  1651. package/node_modules/token-types/lib/index.d.ts +135 -0
  1652. package/node_modules/token-types/lib/index.js +401 -0
  1653. package/node_modules/token-types/package.json +81 -0
  1654. package/node_modules/tslib/CopyrightNotice.txt +15 -0
  1655. package/node_modules/tslib/LICENSE.txt +12 -0
  1656. package/node_modules/tslib/README.md +164 -0
  1657. package/node_modules/tslib/SECURITY.md +41 -0
  1658. package/node_modules/tslib/modules/index.d.ts +38 -0
  1659. package/node_modules/tslib/modules/index.js +70 -0
  1660. package/node_modules/tslib/modules/package.json +3 -0
  1661. package/node_modules/tslib/package.json +47 -0
  1662. package/node_modules/tslib/tslib.d.ts +460 -0
  1663. package/node_modules/tslib/tslib.es6.html +1 -0
  1664. package/node_modules/tslib/tslib.es6.js +402 -0
  1665. package/node_modules/tslib/tslib.es6.mjs +401 -0
  1666. package/node_modules/tslib/tslib.html +1 -0
  1667. package/node_modules/tslib/tslib.js +484 -0
  1668. package/node_modules/uint8array-extras/index.d.ts +331 -0
  1669. package/node_modules/uint8array-extras/index.js +318 -0
  1670. package/node_modules/uint8array-extras/license +9 -0
  1671. package/node_modules/uint8array-extras/package.json +54 -0
  1672. package/node_modules/uint8array-extras/readme.md +318 -0
  1673. package/node_modules/undici-types/LICENSE +21 -0
  1674. package/node_modules/undici-types/README.md +6 -0
  1675. package/node_modules/undici-types/agent.d.ts +30 -0
  1676. package/node_modules/undici-types/api.d.ts +43 -0
  1677. package/node_modules/undici-types/balanced-pool.d.ts +30 -0
  1678. package/node_modules/undici-types/cache-interceptor.d.ts +179 -0
  1679. package/node_modules/undici-types/cache.d.ts +36 -0
  1680. package/node_modules/undici-types/client-stats.d.ts +15 -0
  1681. package/node_modules/undici-types/client.d.ts +129 -0
  1682. package/node_modules/undici-types/connector.d.ts +36 -0
  1683. package/node_modules/undici-types/content-type.d.ts +21 -0
  1684. package/node_modules/undici-types/cookies.d.ts +30 -0
  1685. package/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
  1686. package/node_modules/undici-types/dispatcher.d.ts +253 -0
  1687. package/node_modules/undici-types/dispatcher1-wrapper.d.ts +7 -0
  1688. package/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
  1689. package/node_modules/undici-types/errors.d.ts +177 -0
  1690. package/node_modules/undici-types/eventsource.d.ts +66 -0
  1691. package/node_modules/undici-types/fetch.d.ts +231 -0
  1692. package/node_modules/undici-types/formdata.d.ts +108 -0
  1693. package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  1694. package/node_modules/undici-types/global-origin.d.ts +7 -0
  1695. package/node_modules/undici-types/h2c-client.d.ts +73 -0
  1696. package/node_modules/undici-types/handlers.d.ts +14 -0
  1697. package/node_modules/undici-types/header.d.ts +165 -0
  1698. package/node_modules/undici-types/index.d.ts +93 -0
  1699. package/node_modules/undici-types/interceptors.d.ts +80 -0
  1700. package/node_modules/undici-types/mock-agent.d.ts +68 -0
  1701. package/node_modules/undici-types/mock-call-history.d.ts +111 -0
  1702. package/node_modules/undici-types/mock-client.d.ts +27 -0
  1703. package/node_modules/undici-types/mock-errors.d.ts +12 -0
  1704. package/node_modules/undici-types/mock-interceptor.d.ts +94 -0
  1705. package/node_modules/undici-types/mock-pool.d.ts +27 -0
  1706. package/node_modules/undici-types/package.json +55 -0
  1707. package/node_modules/undici-types/patch.d.ts +29 -0
  1708. package/node_modules/undici-types/pool-stats.d.ts +19 -0
  1709. package/node_modules/undici-types/pool.d.ts +39 -0
  1710. package/node_modules/undici-types/proxy-agent.d.ts +29 -0
  1711. package/node_modules/undici-types/readable.d.ts +68 -0
  1712. package/node_modules/undici-types/retry-agent.d.ts +8 -0
  1713. package/node_modules/undici-types/retry-handler.d.ts +125 -0
  1714. package/node_modules/undici-types/round-robin-pool.d.ts +39 -0
  1715. package/node_modules/undici-types/snapshot-agent.d.ts +113 -0
  1716. package/node_modules/undici-types/socks5-proxy-agent.d.ts +25 -0
  1717. package/node_modules/undici-types/util.d.ts +18 -0
  1718. package/node_modules/undici-types/utility.d.ts +7 -0
  1719. package/node_modules/undici-types/webidl.d.ts +346 -0
  1720. package/node_modules/undici-types/websocket.d.ts +188 -0
  1721. package/node_modules/whatsapp-rust-bridge/README.md +19 -0
  1722. package/node_modules/whatsapp-rust-bridge/dist/index.d.ts +2 -0
  1723. package/node_modules/whatsapp-rust-bridge/dist/index.js +2015 -0
  1724. package/node_modules/whatsapp-rust-bridge/package.json +45 -0
  1725. package/node_modules/whatsapp-rust-bridge/pkg/whatsapp_rust_bridge.d.ts +446 -0
  1726. package/node_modules/win-guid/LICENSE.txt +9 -0
  1727. package/node_modules/win-guid/README.md +113 -0
  1728. package/node_modules/win-guid/lib/guid.d.ts +20 -0
  1729. package/node_modules/win-guid/lib/guid.js +107 -0
  1730. package/node_modules/win-guid/package.json +55 -0
  1731. package/node_modules/ws/LICENSE +20 -0
  1732. package/node_modules/ws/README.md +548 -0
  1733. package/node_modules/ws/browser.js +8 -0
  1734. package/node_modules/ws/index.js +22 -0
  1735. package/node_modules/ws/lib/buffer-util.js +131 -0
  1736. package/node_modules/ws/lib/constants.js +19 -0
  1737. package/node_modules/ws/lib/event-target.js +292 -0
  1738. package/node_modules/ws/lib/extension.js +203 -0
  1739. package/node_modules/ws/lib/limiter.js +55 -0
  1740. package/node_modules/ws/lib/permessage-deflate.js +528 -0
  1741. package/node_modules/ws/lib/receiver.js +760 -0
  1742. package/node_modules/ws/lib/sender.js +607 -0
  1743. package/node_modules/ws/lib/stream.js +161 -0
  1744. package/node_modules/ws/lib/subprotocol.js +62 -0
  1745. package/node_modules/ws/lib/validation.js +152 -0
  1746. package/node_modules/ws/lib/websocket-server.js +562 -0
  1747. package/node_modules/ws/lib/websocket.js +1571 -0
  1748. package/node_modules/ws/package.json +70 -0
  1749. package/node_modules/ws/wrapper.mjs +21 -0
  1750. package/package.json +28 -0
@@ -0,0 +1,2832 @@
1
+ // DO NOT EDIT! This is a generated file. Edit the JSDoc in src/*.js instead and run 'npm run build:types'.
2
+
3
+ export as namespace protobuf;
4
+
5
+ /**
6
+ * Provides common type definitions.
7
+ * Can also be used to provide additional google types or your own custom types.
8
+ * @param name Short name as in `google/protobuf/[name].proto` or full file name
9
+ * @param json JSON definition within `google.protobuf` if a short name, otherwise the file's root definition
10
+ */
11
+ export function common(name: string, json: { [k: string]: any }): void;
12
+
13
+ export namespace common {
14
+
15
+ /** Properties of a google.protobuf.Any message. */
16
+ interface IAny {
17
+ typeUrl?: string;
18
+ bytes?: Uint8Array;
19
+ }
20
+
21
+ /** Properties of a google.protobuf.Duration message. */
22
+ interface IDuration {
23
+ seconds?: (number|Long);
24
+ nanos?: number;
25
+ }
26
+
27
+ /** Properties of a google.protobuf.Timestamp message. */
28
+ interface ITimestamp {
29
+ seconds?: (number|Long);
30
+ nanos?: number;
31
+ }
32
+
33
+ /** Properties of a google.protobuf.Empty message. */
34
+ interface IEmpty {
35
+ }
36
+
37
+ /** Properties of a google.protobuf.Struct message. */
38
+ interface IStruct {
39
+ fields?: { [k: string]: IValue };
40
+ }
41
+
42
+ /** Properties of a google.protobuf.Value message. */
43
+ interface IValue {
44
+ kind?: string;
45
+ nullValue?: 0;
46
+ numberValue?: number;
47
+ stringValue?: string;
48
+ boolValue?: boolean;
49
+ structValue?: IStruct;
50
+ listValue?: IListValue;
51
+ }
52
+
53
+ /** Properties of a google.protobuf.ListValue message. */
54
+ interface IListValue {
55
+ values?: IValue[];
56
+ }
57
+
58
+ /** Properties of a google.protobuf.DoubleValue message. */
59
+ interface IDoubleValue {
60
+ value?: number;
61
+ }
62
+
63
+ /** Properties of a google.protobuf.FloatValue message. */
64
+ interface IFloatValue {
65
+ value?: number;
66
+ }
67
+
68
+ /** Properties of a google.protobuf.Int64Value message. */
69
+ interface IInt64Value {
70
+ value?: (number|Long);
71
+ }
72
+
73
+ /** Properties of a google.protobuf.UInt64Value message. */
74
+ interface IUInt64Value {
75
+ value?: (number|Long);
76
+ }
77
+
78
+ /** Properties of a google.protobuf.Int32Value message. */
79
+ interface IInt32Value {
80
+ value?: number;
81
+ }
82
+
83
+ /** Properties of a google.protobuf.UInt32Value message. */
84
+ interface IUInt32Value {
85
+ value?: number;
86
+ }
87
+
88
+ /** Properties of a google.protobuf.BoolValue message. */
89
+ interface IBoolValue {
90
+ value?: boolean;
91
+ }
92
+
93
+ /** Properties of a google.protobuf.StringValue message. */
94
+ interface IStringValue {
95
+ value?: string;
96
+ }
97
+
98
+ /** Properties of a google.protobuf.BytesValue message. */
99
+ interface IBytesValue {
100
+ value?: Uint8Array;
101
+ }
102
+
103
+ /**
104
+ * Gets the root definition of the specified common proto file.
105
+ *
106
+ * Bundled definitions are:
107
+ * - google/protobuf/any.proto
108
+ * - google/protobuf/duration.proto
109
+ * - google/protobuf/empty.proto
110
+ * - google/protobuf/field_mask.proto
111
+ * - google/protobuf/struct.proto
112
+ * - google/protobuf/timestamp.proto
113
+ * - google/protobuf/wrappers.proto
114
+ *
115
+ * @param file Proto file name
116
+ * @returns Root definition or `null` if not defined
117
+ */
118
+ function get(file: string): (INamespace|null);
119
+ }
120
+
121
+ /** Runtime message from/to plain object converters. */
122
+ export namespace converter {
123
+
124
+ /**
125
+ * Generates a plain object to runtime message converter specific to the specified message type.
126
+ * @param mtype Message type
127
+ * @returns Codegen instance
128
+ */
129
+ function fromObject(mtype: Type): Codegen;
130
+
131
+ /**
132
+ * Generates a runtime message to plain object converter specific to the specified message type.
133
+ * @param mtype Message type
134
+ * @returns Codegen instance
135
+ */
136
+ function toObject(mtype: Type): Codegen;
137
+ }
138
+
139
+ /**
140
+ * Generates a decoder specific to the specified message type.
141
+ * @param mtype Message type
142
+ * @returns Codegen instance
143
+ */
144
+ export function decoder(mtype: Type): Codegen;
145
+
146
+ /**
147
+ * Generates an encoder specific to the specified message type.
148
+ * @param mtype Message type
149
+ * @returns Codegen instance
150
+ */
151
+ export function encoder(mtype: Type): Codegen;
152
+
153
+ /** Reflected enum. */
154
+ export class Enum extends ReflectionObject {
155
+
156
+ /**
157
+ * Constructs a new enum instance.
158
+ * @param name Unique name within its namespace
159
+ * @param [values] Enum values as an object, by name
160
+ * @param [options] Declared options
161
+ * @param [comment] The comment for this enum
162
+ * @param [comments] The value comments for this enum
163
+ * @param [valuesOptions] The value options for this enum
164
+ */
165
+ constructor(name: string, values?: { [k: string]: number }, options?: { [k: string]: any }, comment?: string, comments?: { [k: string]: string }, valuesOptions?: ({ [k: string]: { [k: string]: any } }|undefined));
166
+
167
+ /** Enum values by id. */
168
+ public valuesById: { [k: number]: string };
169
+
170
+ /** Enum values by name. */
171
+ public values: { [k: string]: number };
172
+
173
+ /** Enum comment text. */
174
+ public comment: (string|null);
175
+
176
+ /** Value comment texts, if any. */
177
+ public comments: { [k: string]: string };
178
+
179
+ /** Values options, if any */
180
+ public valuesOptions?: { [k: string]: { [k: string]: any } };
181
+
182
+ /** Resolved values features, if any */
183
+ public _valuesFeatures?: { [k: string]: { [k: string]: any } };
184
+
185
+ /** Reserved ranges, if any. */
186
+ public reserved: (number[]|string)[];
187
+
188
+ /**
189
+ * Constructs an enum from an enum descriptor.
190
+ * @param name Enum name
191
+ * @param json Enum descriptor
192
+ * @returns Created enum
193
+ * @throws {TypeError} If arguments are invalid
194
+ */
195
+ public static fromJSON(name: string, json: IEnum): Enum;
196
+
197
+ /**
198
+ * Converts this enum to an enum descriptor.
199
+ * @param [toJSONOptions] JSON conversion options
200
+ * @returns Enum descriptor
201
+ */
202
+ public toJSON(toJSONOptions?: IToJSONOptions): IEnum;
203
+
204
+ /**
205
+ * Adds a value to this enum.
206
+ * @param name Value name
207
+ * @param id Value id
208
+ * @param [comment] Comment, if any
209
+ * @param {Object.<string, *>|undefined} [options] Options, if any
210
+ * @returns `this`
211
+ * @throws {TypeError} If arguments are invalid
212
+ * @throws {Error} If there is already a value with this name or id
213
+ */
214
+ public add(name: string, id: number, comment?: string, options?: ({ [k: string]: any }|undefined)): Enum;
215
+
216
+ /**
217
+ * Removes a value from this enum
218
+ * @param name Value name
219
+ * @returns `this`
220
+ * @throws {TypeError} If arguments are invalid
221
+ * @throws {Error} If `name` is not a name of this enum
222
+ */
223
+ public remove(name: string): Enum;
224
+
225
+ /**
226
+ * Tests if the specified id is reserved.
227
+ * @param id Id to test
228
+ * @returns `true` if reserved, otherwise `false`
229
+ */
230
+ public isReservedId(id: number): boolean;
231
+
232
+ /**
233
+ * Tests if the specified name is reserved.
234
+ * @param name Name to test
235
+ * @returns `true` if reserved, otherwise `false`
236
+ */
237
+ public isReservedName(name: string): boolean;
238
+ }
239
+
240
+ /** Enum descriptor. */
241
+ export interface IEnum {
242
+
243
+ /** Enum values */
244
+ values: { [k: string]: number };
245
+
246
+ /** Enum options */
247
+ options?: { [k: string]: any };
248
+ }
249
+
250
+ /** Reflected message field. */
251
+ export class Field extends FieldBase {
252
+
253
+ /**
254
+ * Constructs a new message field instance. Note that {@link MapField|map fields} have their own class.
255
+ * @param name Unique name within its namespace
256
+ * @param id Unique id within its namespace
257
+ * @param type Value type
258
+ * @param [rule="optional"] Field rule
259
+ * @param [extend] Extended type if different from parent
260
+ * @param [options] Declared options
261
+ */
262
+ constructor(name: string, id: number, type: string, rule?: (string|{ [k: string]: any }), extend?: (string|{ [k: string]: any }), options?: { [k: string]: any });
263
+
264
+ /**
265
+ * Constructs a field from a field descriptor.
266
+ * @param name Field name
267
+ * @param json Field descriptor
268
+ * @returns Created field
269
+ * @throws {TypeError} If arguments are invalid
270
+ */
271
+ public static fromJSON(name: string, json: IField): Field;
272
+
273
+ /** Determines whether this field is required. */
274
+ public readonly required: boolean;
275
+
276
+ /** Determines whether this field is not required. */
277
+ public readonly optional: boolean;
278
+
279
+ /**
280
+ * Determines whether this field uses tag-delimited encoding. In proto2 this
281
+ * corresponded to group syntax.
282
+ */
283
+ public readonly delimited: boolean;
284
+
285
+ /** Determines whether this field is packed. Only relevant when repeated. */
286
+ public readonly packed: boolean;
287
+
288
+ /** Determines whether this field tracks presence. */
289
+ public readonly hasPresence: boolean;
290
+
291
+ /**
292
+ * Field decorator (TypeScript).
293
+ * @param fieldId Field id
294
+ * @param fieldType Field type
295
+ * @param [fieldRule="optional"] Field rule
296
+ * @param [defaultValue] Default value
297
+ * @returns Decorator function
298
+ */
299
+ public static d<T extends number | number[] | Long | Long[] | string | string[] | boolean | boolean[] | Uint8Array | Uint8Array[] | Buffer | Buffer[]>(fieldId: number, fieldType: ("double"|"float"|"int32"|"uint32"|"sint32"|"fixed32"|"sfixed32"|"int64"|"uint64"|"sint64"|"fixed64"|"sfixed64"|"string"|"bool"|"bytes"|object), fieldRule?: ("optional"|"required"|"repeated"), defaultValue?: T): FieldDecorator;
300
+
301
+ /**
302
+ * Field decorator (TypeScript).
303
+ * @param fieldId Field id
304
+ * @param fieldType Field type
305
+ * @param [fieldRule="optional"] Field rule
306
+ * @returns Decorator function
307
+ */
308
+ public static d<T extends Message<T>>(fieldId: number, fieldType: (Constructor<T>|string), fieldRule?: ("optional"|"required"|"repeated")): FieldDecorator;
309
+ }
310
+
311
+ /** Base class of all reflected message fields. This is not an actual class but here for the sake of having consistent type definitions. */
312
+ export class FieldBase extends ReflectionObject {
313
+
314
+ /**
315
+ * Not an actual constructor. Use {@link Field} instead.
316
+ * @param name Unique name within its namespace
317
+ * @param id Unique id within its namespace
318
+ * @param type Value type
319
+ * @param [rule="optional"] Field rule
320
+ * @param [extend] Extended type if different from parent
321
+ * @param [options] Declared options
322
+ * @param [comment] Comment associated with this field
323
+ */
324
+ constructor(name: string, id: number, type: string, rule?: (string|{ [k: string]: any }), extend?: (string|{ [k: string]: any }), options?: { [k: string]: any }, comment?: string);
325
+
326
+ /** Field type. */
327
+ public type: string;
328
+
329
+ /** Unique field id. */
330
+ public id: number;
331
+
332
+ /** Extended type if different from parent. */
333
+ public extend?: string;
334
+
335
+ /** Whether this field is repeated. */
336
+ public repeated: boolean;
337
+
338
+ /** Whether this field is a map or not. */
339
+ public map: boolean;
340
+
341
+ /** Message this field belongs to. */
342
+ public message: (Type|null);
343
+
344
+ /** OneOf this field belongs to, if any, */
345
+ public partOf: (OneOf|null);
346
+
347
+ /** The field type's default value. */
348
+ public typeDefault: any;
349
+
350
+ /** The field's default value on prototypes. */
351
+ public defaultValue: any;
352
+
353
+ /** Whether this field's value should be treated as a long. */
354
+ public long: boolean;
355
+
356
+ /** Whether this field's value is a buffer. */
357
+ public bytes: boolean;
358
+
359
+ /** Resolved type if not a basic type. */
360
+ public resolvedType: (Type|Enum|null);
361
+
362
+ /** Sister-field within the extended type if a declaring extension field. */
363
+ public extensionField: (Field|null);
364
+
365
+ /** Sister-field within the declaring namespace if an extended field. */
366
+ public declaringField: (Field|null);
367
+
368
+ /** Comment for this field. */
369
+ public comment: (string|null);
370
+
371
+ /**
372
+ * Converts this field to a field descriptor.
373
+ * @param [toJSONOptions] JSON conversion options
374
+ * @returns Field descriptor
375
+ */
376
+ public toJSON(toJSONOptions?: IToJSONOptions): IField;
377
+
378
+ /**
379
+ * Resolves this field's type references.
380
+ * @returns `this`
381
+ * @throws {Error} If any reference cannot be resolved
382
+ */
383
+ public resolve(): Field;
384
+
385
+ /**
386
+ * Infers field features from legacy syntax that may have been specified differently.
387
+ * in older editions.
388
+ * @param edition The edition this proto is on, or undefined if pre-editions
389
+ * @returns The feature values to override
390
+ */
391
+ public _inferLegacyProtoFeatures(edition: (string|undefined)): object;
392
+ }
393
+
394
+ /** Field descriptor. */
395
+ export interface IField {
396
+
397
+ /** Field rule */
398
+ rule?: string;
399
+
400
+ /** Field type */
401
+ type: string;
402
+
403
+ /** Field id */
404
+ id: number;
405
+
406
+ /** Field options */
407
+ options?: { [k: string]: any };
408
+ }
409
+
410
+ /** Extension field descriptor. */
411
+ export interface IExtensionField extends IField {
412
+
413
+ /** Extended type */
414
+ extend: string;
415
+ }
416
+
417
+ /**
418
+ * Decorator function as returned by {@link Field.d} and {@link MapField.d} (TypeScript).
419
+ * @param prototype Target prototype
420
+ * @param fieldName Field name
421
+ */
422
+ type FieldDecorator = (prototype: object, fieldName: string) => void;
423
+
424
+ /**
425
+ * A node-style callback as used by {@link load} and {@link Root#load}.
426
+ * @param error Error, if any, otherwise `null`
427
+ * @param [root] Root, if there hasn't been an error
428
+ */
429
+ type LoadCallback = (error: (Error|null), root?: Root) => void;
430
+
431
+ /**
432
+ * Loads one or multiple .proto or preprocessed .json files into a common root namespace and calls the callback.
433
+ * @param filename One or multiple files to load
434
+ * @param root Root namespace, defaults to create a new one if omitted.
435
+ * @param callback Callback function
436
+ * @see {@link Root#load}
437
+ */
438
+ export function load(filename: (string|string[]), root: Root, callback: LoadCallback): void;
439
+
440
+ /**
441
+ * Loads one or multiple .proto or preprocessed .json files into a common root namespace and calls the callback.
442
+ * @param filename One or multiple files to load
443
+ * @param callback Callback function
444
+ * @see {@link Root#load}
445
+ */
446
+ export function load(filename: (string|string[]), callback: LoadCallback): void;
447
+
448
+ /**
449
+ * Loads one or multiple .proto or preprocessed .json files into a common root namespace and returns a promise.
450
+ * @param filename One or multiple files to load
451
+ * @param [root] Root namespace, defaults to create a new one if omitted.
452
+ * @returns Promise
453
+ * @see {@link Root#load}
454
+ */
455
+ export function load(filename: (string|string[]), root?: Root): Promise<Root>;
456
+
457
+ /**
458
+ * Synchronously loads one or multiple .proto or preprocessed .json files into a common root namespace (node only).
459
+ * @param filename One or multiple files to load
460
+ * @param [root] Root namespace, defaults to create a new one if omitted.
461
+ * @returns Root namespace
462
+ * @throws {Error} If synchronous fetching is not supported (i.e. in browsers) or if a file's syntax is invalid
463
+ * @see {@link Root#loadSync}
464
+ */
465
+ export function loadSync(filename: (string|string[]), root?: Root): Root;
466
+
467
+ /** Build type, one of `"full"`, `"light"` or `"minimal"`. */
468
+ export const build: string;
469
+
470
+ /** Reconfigures the library according to the environment. */
471
+ export function configure(): void;
472
+
473
+ /** Reflected map field. */
474
+ export class MapField extends FieldBase {
475
+
476
+ /**
477
+ * Constructs a new map field instance.
478
+ * @param name Unique name within its namespace
479
+ * @param id Unique id within its namespace
480
+ * @param keyType Key type
481
+ * @param type Value type
482
+ * @param [options] Declared options
483
+ * @param [comment] Comment associated with this field
484
+ */
485
+ constructor(name: string, id: number, keyType: string, type: string, options?: { [k: string]: any }, comment?: string);
486
+
487
+ /** Key type. */
488
+ public keyType: string;
489
+
490
+ /** Resolved key type if not a basic type. */
491
+ public resolvedKeyType: (ReflectionObject|null);
492
+
493
+ /**
494
+ * Constructs a map field from a map field descriptor.
495
+ * @param name Field name
496
+ * @param json Map field descriptor
497
+ * @returns Created map field
498
+ * @throws {TypeError} If arguments are invalid
499
+ */
500
+ public static fromJSON(name: string, json: IMapField): MapField;
501
+
502
+ /**
503
+ * Converts this map field to a map field descriptor.
504
+ * @param [toJSONOptions] JSON conversion options
505
+ * @returns Map field descriptor
506
+ */
507
+ public toJSON(toJSONOptions?: IToJSONOptions): IMapField;
508
+
509
+ /**
510
+ * Map field decorator (TypeScript).
511
+ * @param fieldId Field id
512
+ * @param fieldKeyType Field key type
513
+ * @param fieldValueType Field value type
514
+ * @returns Decorator function
515
+ */
516
+ public static d<T extends { [key: string]: number | Long | string | boolean | Uint8Array | Buffer | number[] | Message<{}> }>(fieldId: number, fieldKeyType: ("int32"|"uint32"|"sint32"|"fixed32"|"sfixed32"|"int64"|"uint64"|"sint64"|"fixed64"|"sfixed64"|"bool"|"string"), fieldValueType: ("double"|"float"|"int32"|"uint32"|"sint32"|"fixed32"|"sfixed32"|"int64"|"uint64"|"sint64"|"fixed64"|"sfixed64"|"bool"|"string"|"bytes"|object|Constructor<{}>)): FieldDecorator;
517
+ }
518
+
519
+ /** Map field descriptor. */
520
+ export interface IMapField extends IField {
521
+
522
+ /** Key type */
523
+ keyType: string;
524
+ }
525
+
526
+ /** Extension map field descriptor. */
527
+ export interface IExtensionMapField extends IMapField {
528
+
529
+ /** Extended type */
530
+ extend: string;
531
+ }
532
+
533
+ /** Abstract runtime message. */
534
+ export class Message<T extends object = object> {
535
+
536
+ /**
537
+ * Constructs a new message instance.
538
+ * @param [properties] Properties to set
539
+ */
540
+ constructor(properties?: Properties<T>);
541
+
542
+ /** Reference to the reflected type. */
543
+ public static readonly $type: Type;
544
+
545
+ /** Reference to the reflected type. */
546
+ public readonly $type: Type;
547
+
548
+ /**
549
+ * Creates a new message of this type using the specified properties.
550
+ * @param [properties] Properties to set
551
+ * @returns Message instance
552
+ */
553
+ public static create<T extends Message<T>>(this: Constructor<T>, properties?: { [k: string]: any }): Message<T>;
554
+
555
+ /**
556
+ * Encodes a message of this type.
557
+ * @param message Message to encode
558
+ * @param [writer] Writer to use
559
+ * @returns Writer
560
+ */
561
+ public static encode<T extends Message<T>>(this: Constructor<T>, message: (T|{ [k: string]: any }), writer?: Writer): Writer;
562
+
563
+ /**
564
+ * Encodes a message of this type preceeded by its length as a varint.
565
+ * @param message Message to encode
566
+ * @param [writer] Writer to use
567
+ * @returns Writer
568
+ */
569
+ public static encodeDelimited<T extends Message<T>>(this: Constructor<T>, message: (T|{ [k: string]: any }), writer?: Writer): Writer;
570
+
571
+ /**
572
+ * Decodes a message of this type.
573
+ * @param reader Reader or buffer to decode
574
+ * @returns Decoded message
575
+ */
576
+ public static decode<T extends Message<T>>(this: Constructor<T>, reader: (Reader|Uint8Array)): T;
577
+
578
+ /**
579
+ * Decodes a message of this type preceeded by its length as a varint.
580
+ * @param reader Reader or buffer to decode
581
+ * @returns Decoded message
582
+ */
583
+ public static decodeDelimited<T extends Message<T>>(this: Constructor<T>, reader: (Reader|Uint8Array)): T;
584
+
585
+ /**
586
+ * Verifies a message of this type.
587
+ * @param message Plain object to verify
588
+ * @returns `null` if valid, otherwise the reason why it is not
589
+ */
590
+ public static verify(message: { [k: string]: any }): (string|null);
591
+
592
+ /**
593
+ * Creates a new message of this type from a plain object. Also converts values to their respective internal types.
594
+ * @param object Plain object
595
+ * @returns Message instance
596
+ */
597
+ public static fromObject<T extends Message<T>>(this: Constructor<T>, object: { [k: string]: any }): T;
598
+
599
+ /**
600
+ * Creates a plain object from a message of this type. Also converts values to other types if specified.
601
+ * @param message Message instance
602
+ * @param [options] Conversion options
603
+ * @returns Plain object
604
+ */
605
+ public static toObject<T extends Message<T>>(this: Constructor<T>, message: T, options?: IConversionOptions): { [k: string]: any };
606
+
607
+ /**
608
+ * Converts this message to JSON.
609
+ * @returns JSON object
610
+ */
611
+ public toJSON(): { [k: string]: any };
612
+ }
613
+
614
+ /** Reflected service method. */
615
+ export class Method extends ReflectionObject {
616
+
617
+ /**
618
+ * Constructs a new service method instance.
619
+ * @param name Method name
620
+ * @param type Method type, usually `"rpc"`
621
+ * @param requestType Request message type
622
+ * @param responseType Response message type
623
+ * @param [requestStream] Whether the request is streamed
624
+ * @param [responseStream] Whether the response is streamed
625
+ * @param [options] Declared options
626
+ * @param [comment] The comment for this method
627
+ * @param [parsedOptions] Declared options, properly parsed into an object
628
+ */
629
+ constructor(name: string, type: (string|undefined), requestType: string, responseType: string, requestStream?: (boolean|{ [k: string]: any }), responseStream?: (boolean|{ [k: string]: any }), options?: { [k: string]: any }, comment?: string, parsedOptions?: { [k: string]: any });
630
+
631
+ /** Method type. */
632
+ public type: string;
633
+
634
+ /** Request type. */
635
+ public requestType: string;
636
+
637
+ /** Whether requests are streamed or not. */
638
+ public requestStream?: boolean;
639
+
640
+ /** Response type. */
641
+ public responseType: string;
642
+
643
+ /** Whether responses are streamed or not. */
644
+ public responseStream?: boolean;
645
+
646
+ /** Resolved request type. */
647
+ public resolvedRequestType: (Type|null);
648
+
649
+ /** Resolved response type. */
650
+ public resolvedResponseType: (Type|null);
651
+
652
+ /** Comment for this method */
653
+ public comment: (string|null);
654
+
655
+ /** Options properly parsed into an object */
656
+ public parsedOptions: any;
657
+
658
+ /**
659
+ * Constructs a method from a method descriptor.
660
+ * @param name Method name
661
+ * @param json Method descriptor
662
+ * @returns Created method
663
+ * @throws {TypeError} If arguments are invalid
664
+ */
665
+ public static fromJSON(name: string, json: IMethod): Method;
666
+
667
+ /**
668
+ * Converts this method to a method descriptor.
669
+ * @param [toJSONOptions] JSON conversion options
670
+ * @returns Method descriptor
671
+ */
672
+ public toJSON(toJSONOptions?: IToJSONOptions): IMethod;
673
+ }
674
+
675
+ /** Method descriptor. */
676
+ export interface IMethod {
677
+
678
+ /** Method type */
679
+ type?: string;
680
+
681
+ /** Request type */
682
+ requestType: string;
683
+
684
+ /** Response type */
685
+ responseType: string;
686
+
687
+ /** Whether requests are streamed */
688
+ requestStream?: boolean;
689
+
690
+ /** Whether responses are streamed */
691
+ responseStream?: boolean;
692
+
693
+ /** Method options */
694
+ options?: { [k: string]: any };
695
+
696
+ /** Method comments */
697
+ comment: string;
698
+
699
+ /** Method options properly parsed into an object */
700
+ parsedOptions?: { [k: string]: any };
701
+ }
702
+
703
+ /** Reflected namespace. */
704
+ export class Namespace extends NamespaceBase {
705
+
706
+ /**
707
+ * Constructs a new namespace instance.
708
+ * @param name Namespace name
709
+ * @param [options] Declared options
710
+ */
711
+ constructor(name: string, options?: { [k: string]: any });
712
+
713
+ /**
714
+ * Constructs a namespace from JSON.
715
+ * @param name Namespace name
716
+ * @param json JSON object
717
+ * @param [depth] Current nesting depth, defaults to `0`
718
+ * @returns Created namespace
719
+ * @throws {TypeError} If arguments are invalid
720
+ */
721
+ public static fromJSON(name: string, json: { [k: string]: any }, depth?: number): Namespace;
722
+
723
+ /**
724
+ * Converts an array of reflection objects to JSON.
725
+ * @param array Object array
726
+ * @param [toJSONOptions] JSON conversion options
727
+ * @returns JSON object or `undefined` when array is empty
728
+ */
729
+ public static arrayToJSON(array: ReflectionObject[], toJSONOptions?: IToJSONOptions): ({ [k: string]: any }|undefined);
730
+
731
+ /**
732
+ * Tests if the specified id is reserved.
733
+ * @param reserved Array of reserved ranges and names
734
+ * @param id Id to test
735
+ * @returns `true` if reserved, otherwise `false`
736
+ */
737
+ public static isReservedId(reserved: ((number[]|string)[]|undefined), id: number): boolean;
738
+
739
+ /**
740
+ * Tests if the specified name is reserved.
741
+ * @param reserved Array of reserved ranges and names
742
+ * @param name Name to test
743
+ * @returns `true` if reserved, otherwise `false`
744
+ */
745
+ public static isReservedName(reserved: ((number[]|string)[]|undefined), name: string): boolean;
746
+ }
747
+
748
+ /** Base class of all reflection objects containing nested objects. This is not an actual class but here for the sake of having consistent type definitions. */
749
+ export abstract class NamespaceBase extends ReflectionObject {
750
+
751
+ /** Nested objects by name. */
752
+ public nested?: { [k: string]: ReflectionObject };
753
+
754
+ /** Whether or not objects contained in this namespace need feature resolution. */
755
+ protected _needsRecursiveFeatureResolution: boolean;
756
+
757
+ /** Whether or not objects contained in this namespace need a resolve. */
758
+ protected _needsRecursiveResolve: boolean;
759
+
760
+ /** Nested objects of this namespace as an array for iteration. */
761
+ public readonly nestedArray: ReflectionObject[];
762
+
763
+ /**
764
+ * Converts this namespace to a namespace descriptor.
765
+ * @param [toJSONOptions] JSON conversion options
766
+ * @returns Namespace descriptor
767
+ */
768
+ public toJSON(toJSONOptions?: IToJSONOptions): INamespace;
769
+
770
+ /**
771
+ * Adds nested objects to this namespace from nested object descriptors.
772
+ * @param nestedJson Any nested object descriptors
773
+ * @param [depth] Current nesting depth, defaults to `0`
774
+ * @returns `this`
775
+ */
776
+ public addJSON(nestedJson: { [k: string]: AnyNestedObject }, depth?: number): Namespace;
777
+
778
+ /**
779
+ * Gets the nested object of the specified name.
780
+ * @param name Nested object name
781
+ * @returns The reflection object or `null` if it doesn't exist
782
+ */
783
+ public get(name: string): (ReflectionObject|null);
784
+
785
+ /**
786
+ * Gets the values of the nested {@link Enum|enum} of the specified name.
787
+ * This methods differs from {@link Namespace#get|get} in that it returns an enum's values directly and throws instead of returning `null`.
788
+ * @param name Nested enum name
789
+ * @returns Enum values
790
+ * @throws {Error} If there is no such enum
791
+ */
792
+ public getEnum(name: string): { [k: string]: number };
793
+
794
+ /**
795
+ * Adds a nested object to this namespace.
796
+ * @param object Nested object to add
797
+ * @returns `this`
798
+ * @throws {TypeError} If arguments are invalid
799
+ * @throws {Error} If there is already a nested object with this name
800
+ */
801
+ public add(object: ReflectionObject): Namespace;
802
+
803
+ /**
804
+ * Removes a nested object from this namespace.
805
+ * @param object Nested object to remove
806
+ * @returns `this`
807
+ * @throws {TypeError} If arguments are invalid
808
+ * @throws {Error} If `object` is not a member of this namespace
809
+ */
810
+ public remove(object: ReflectionObject): Namespace;
811
+
812
+ /**
813
+ * Defines additial namespaces within this one if not yet existing.
814
+ * @param path Path to create
815
+ * @param [json] Nested types to create from JSON
816
+ * @returns Pointer to the last namespace created or `this` if path is empty
817
+ */
818
+ public define(path: (string|string[]), json?: any): Namespace;
819
+
820
+ /**
821
+ * Resolves this namespace's and all its nested objects' type references. Useful to validate a reflection tree, but comes at a cost.
822
+ * @returns `this`
823
+ */
824
+ public resolveAll(): Namespace;
825
+
826
+ /**
827
+ * Recursively looks up the reflection object matching the specified path in the scope of this namespace.
828
+ * @param path Path to look up
829
+ * @param filterTypes Filter types, any combination of the constructors of `protobuf.Type`, `protobuf.Enum`, `protobuf.Service` etc.
830
+ * @param [parentAlreadyChecked=false] If known, whether the parent has already been checked
831
+ * @returns Looked up object or `null` if none could be found
832
+ */
833
+ public lookup(path: (string|string[]), filterTypes: (any|any[]), parentAlreadyChecked?: boolean): (ReflectionObject|null);
834
+
835
+ /**
836
+ * Looks up the reflection object at the specified path, relative to this namespace.
837
+ * @param path Path to look up
838
+ * @param [parentAlreadyChecked=false] Whether the parent has already been checked
839
+ * @returns Looked up object or `null` if none could be found
840
+ */
841
+ public lookup(path: (string|string[]), parentAlreadyChecked?: boolean): (ReflectionObject|null);
842
+
843
+ /**
844
+ * Looks up the {@link Type|type} at the specified path, relative to this namespace.
845
+ * Besides its signature, this methods differs from {@link Namespace#lookup|lookup} in that it throws instead of returning `null`.
846
+ * @param path Path to look up
847
+ * @returns Looked up type
848
+ * @throws {Error} If `path` does not point to a type
849
+ */
850
+ public lookupType(path: (string|string[])): Type;
851
+
852
+ /**
853
+ * Looks up the values of the {@link Enum|enum} at the specified path, relative to this namespace.
854
+ * Besides its signature, this methods differs from {@link Namespace#lookup|lookup} in that it throws instead of returning `null`.
855
+ * @param path Path to look up
856
+ * @returns Looked up enum
857
+ * @throws {Error} If `path` does not point to an enum
858
+ */
859
+ public lookupEnum(path: (string|string[])): Enum;
860
+
861
+ /**
862
+ * Looks up the {@link Type|type} or {@link Enum|enum} at the specified path, relative to this namespace.
863
+ * Besides its signature, this methods differs from {@link Namespace#lookup|lookup} in that it throws instead of returning `null`.
864
+ * @param path Path to look up
865
+ * @returns Looked up type or enum
866
+ * @throws {Error} If `path` does not point to a type or enum
867
+ */
868
+ public lookupTypeOrEnum(path: (string|string[])): Type;
869
+
870
+ /**
871
+ * Looks up the {@link Service|service} at the specified path, relative to this namespace.
872
+ * Besides its signature, this methods differs from {@link Namespace#lookup|lookup} in that it throws instead of returning `null`.
873
+ * @param path Path to look up
874
+ * @returns Looked up service
875
+ * @throws {Error} If `path` does not point to a service
876
+ */
877
+ public lookupService(path: (string|string[])): Service;
878
+ }
879
+
880
+ /** Namespace descriptor. */
881
+ export interface INamespace {
882
+
883
+ /** Namespace options */
884
+ options?: { [k: string]: any };
885
+
886
+ /** Nested object descriptors */
887
+ nested?: { [k: string]: AnyNestedObject };
888
+ }
889
+
890
+ /** Any extension field descriptor. */
891
+ type AnyExtensionField = (IExtensionField|IExtensionMapField);
892
+
893
+ /** Any nested object descriptor. */
894
+ type AnyNestedObject = (IEnum|IType|IService|AnyExtensionField|INamespace|IOneOf);
895
+
896
+ /** Base class of all reflection objects. */
897
+ export abstract class ReflectionObject {
898
+
899
+ /** Options. */
900
+ public options?: { [k: string]: any };
901
+
902
+ /** Parsed Options. */
903
+ public parsedOptions?: { [k: string]: any[] };
904
+
905
+ /** Unique name within its namespace. */
906
+ public name: string;
907
+
908
+ /** Parent namespace. */
909
+ public parent: (Namespace|null);
910
+
911
+ /** Whether already resolved or not. */
912
+ public resolved: boolean;
913
+
914
+ /** Comment text, if any. */
915
+ public comment: (string|null);
916
+
917
+ /** Defining file name. */
918
+ public filename: (string|null);
919
+
920
+ /** Reference to the root namespace. */
921
+ public readonly root: Root;
922
+
923
+ /** Full name including leading dot. */
924
+ public readonly fullName: string;
925
+
926
+ /**
927
+ * Converts this reflection object to its descriptor representation.
928
+ * @returns Descriptor
929
+ */
930
+ public toJSON(): { [k: string]: any };
931
+
932
+ /**
933
+ * Called when this object is added to a parent.
934
+ * @param parent Parent added to
935
+ */
936
+ public onAdd(parent: ReflectionObject): void;
937
+
938
+ /**
939
+ * Called when this object is removed from a parent.
940
+ * @param parent Parent removed from
941
+ */
942
+ public onRemove(parent: ReflectionObject): void;
943
+
944
+ /**
945
+ * Resolves this objects type references.
946
+ * @returns `this`
947
+ */
948
+ public resolve(): ReflectionObject;
949
+
950
+ /**
951
+ * Resolves this objects editions features.
952
+ * @param edition The edition we're currently resolving for.
953
+ * @returns `this`
954
+ */
955
+ public _resolveFeaturesRecursive(edition: string): ReflectionObject;
956
+
957
+ /**
958
+ * Resolves child features from parent features
959
+ * @param edition The edition we're currently resolving for.
960
+ */
961
+ public _resolveFeatures(edition: string): void;
962
+
963
+ /**
964
+ * Infers features from legacy syntax that may have been specified differently.
965
+ * in older editions.
966
+ * @param edition The edition this proto is on, or undefined if pre-editions
967
+ * @returns The feature values to override
968
+ */
969
+ public _inferLegacyProtoFeatures(edition: (string|undefined)): object;
970
+
971
+ /**
972
+ * Gets an option value.
973
+ * @param name Option name
974
+ * @returns Option value or `undefined` if not set
975
+ */
976
+ public getOption(name: string): any;
977
+
978
+ /**
979
+ * Sets an option.
980
+ * @param name Option name
981
+ * @param value Option value
982
+ * @param [ifNotSet] Sets the option only if it isn't currently set
983
+ * @returns `this`
984
+ */
985
+ public setOption(name: string, value: any, ifNotSet?: (boolean|undefined)): ReflectionObject;
986
+
987
+ /**
988
+ * Sets a parsed option.
989
+ * @param name parsed Option name
990
+ * @param value Option value
991
+ * @param propName dot '.' delimited full path of property within the option to set. if undefined\empty, will add a new option with that value
992
+ * @returns `this`
993
+ */
994
+ public setParsedOption(name: string, value: any, propName: string): ReflectionObject;
995
+
996
+ /**
997
+ * Sets multiple options.
998
+ * @param options Options to set
999
+ * @param [ifNotSet] Sets an option only if it isn't currently set
1000
+ * @returns `this`
1001
+ */
1002
+ public setOptions(options: { [k: string]: any }, ifNotSet?: boolean): ReflectionObject;
1003
+
1004
+ /**
1005
+ * Converts this instance to its string representation.
1006
+ * @returns Class name[, space, full name]
1007
+ */
1008
+ public toString(): string;
1009
+
1010
+ /**
1011
+ * Converts the edition this object is pinned to for JSON format.
1012
+ * @returns The edition string for JSON representation
1013
+ */
1014
+ public _editionToJSON(): (string|undefined);
1015
+ }
1016
+
1017
+ /** Reflected oneof. */
1018
+ export class OneOf extends ReflectionObject {
1019
+
1020
+ /**
1021
+ * Constructs a new oneof instance.
1022
+ * @param name Oneof name
1023
+ * @param [fieldNames] Field names
1024
+ * @param [options] Declared options
1025
+ * @param [comment] Comment associated with this field
1026
+ */
1027
+ constructor(name: string, fieldNames?: (string[]|{ [k: string]: any }), options?: { [k: string]: any }, comment?: string);
1028
+
1029
+ /** Field names that belong to this oneof. */
1030
+ public oneof: string[];
1031
+
1032
+ /** Fields that belong to this oneof as an array for iteration. */
1033
+ public readonly fieldsArray: Field[];
1034
+
1035
+ /** Comment for this field. */
1036
+ public comment: (string|null);
1037
+
1038
+ /**
1039
+ * Constructs a oneof from a oneof descriptor.
1040
+ * @param name Oneof name
1041
+ * @param json Oneof descriptor
1042
+ * @returns Created oneof
1043
+ * @throws {TypeError} If arguments are invalid
1044
+ */
1045
+ public static fromJSON(name: string, json: IOneOf): OneOf;
1046
+
1047
+ /**
1048
+ * Converts this oneof to a oneof descriptor.
1049
+ * @param [toJSONOptions] JSON conversion options
1050
+ * @returns Oneof descriptor
1051
+ */
1052
+ public toJSON(toJSONOptions?: IToJSONOptions): IOneOf;
1053
+
1054
+ /**
1055
+ * Adds a field to this oneof and removes it from its current parent, if any.
1056
+ * @param field Field to add
1057
+ * @returns `this`
1058
+ */
1059
+ public add(field: Field): OneOf;
1060
+
1061
+ /**
1062
+ * Removes a field from this oneof and puts it back to the oneof's parent.
1063
+ * @param field Field to remove
1064
+ * @returns `this`
1065
+ */
1066
+ public remove(field: Field): OneOf;
1067
+
1068
+ /**
1069
+ * Determines whether this field corresponds to a synthetic oneof created for
1070
+ * a proto3 optional field. No behavioral logic should depend on this, but it
1071
+ * can be relevant for reflection.
1072
+ */
1073
+ public readonly isProto3Optional: boolean;
1074
+
1075
+ /**
1076
+ * OneOf decorator (TypeScript).
1077
+ * @param fieldNames Field names
1078
+ * @returns Decorator function
1079
+ */
1080
+ public static d<T extends string>(...fieldNames: string[]): OneOfDecorator;
1081
+ }
1082
+
1083
+ /** Oneof descriptor. */
1084
+ export interface IOneOf {
1085
+
1086
+ /** Oneof field names */
1087
+ oneof: string[];
1088
+
1089
+ /** Oneof options */
1090
+ options?: { [k: string]: any };
1091
+ }
1092
+
1093
+ /**
1094
+ * Decorator function as returned by {@link OneOf.d} (TypeScript).
1095
+ * @param prototype Target prototype
1096
+ * @param oneofName OneOf name
1097
+ */
1098
+ type OneOfDecorator = (prototype: object, oneofName: string) => void;
1099
+
1100
+ /**
1101
+ * Parses the given .proto source and returns an object with the parsed contents.
1102
+ * @param source Source contents
1103
+ * @param [options] Parse options. Defaults to {@link parse.defaults} when omitted.
1104
+ * @returns Parser result
1105
+ */
1106
+ export function parse(source: string, options?: IParseOptions): IParserResult;
1107
+
1108
+ /** Result object returned from {@link parse}. */
1109
+ export interface IParserResult {
1110
+
1111
+ /** Package name, if declared */
1112
+ package: (string|undefined);
1113
+
1114
+ /** Imports, if any */
1115
+ imports: (string[]|undefined);
1116
+
1117
+ /** Weak imports, if any */
1118
+ weakImports: (string[]|undefined);
1119
+
1120
+ /** Populated root instance */
1121
+ root: Root;
1122
+ }
1123
+
1124
+ /** Options modifying the behavior of {@link parse}. */
1125
+ export interface IParseOptions {
1126
+
1127
+ /** Keeps field casing instead of converting to camel case */
1128
+ keepCase?: boolean;
1129
+
1130
+ /** Recognize double-slash comments in addition to doc-block comments. */
1131
+ alternateCommentMode?: boolean;
1132
+
1133
+ /** Use trailing comment when both leading comment and trailing comment exist. */
1134
+ preferTrailingComment?: boolean;
1135
+ }
1136
+
1137
+ /** Options modifying the behavior of JSON serialization. */
1138
+ export interface IToJSONOptions {
1139
+
1140
+ /** Serializes comments. */
1141
+ keepComments?: boolean;
1142
+ }
1143
+
1144
+ /**
1145
+ * Parses the given .proto source and returns an object with the parsed contents.
1146
+ * @param source Source contents
1147
+ * @param root Root to populate
1148
+ * @param [options] Parse options. Defaults to {@link parse.defaults} when omitted.
1149
+ * @returns Parser result
1150
+ */
1151
+ export function parse(source: string, root: Root, options?: IParseOptions): IParserResult;
1152
+
1153
+ /** Wire format reader using `Uint8Array` if available, otherwise `Array`. */
1154
+ export class Reader {
1155
+
1156
+ /**
1157
+ * Constructs a new reader instance using the specified buffer.
1158
+ * @param buffer Buffer to read from
1159
+ */
1160
+ constructor(buffer: Uint8Array);
1161
+
1162
+ /** Read buffer. */
1163
+ public buf: Uint8Array;
1164
+
1165
+ /** Read buffer position. */
1166
+ public pos: number;
1167
+
1168
+ /** Read buffer length. */
1169
+ public len: number;
1170
+
1171
+ /**
1172
+ * Creates a new reader using the specified buffer.
1173
+ * @param buffer Buffer to read from
1174
+ * @returns A {@link BufferReader} if `buffer` is a Buffer, otherwise a {@link Reader}
1175
+ * @throws {Error} If `buffer` is not a valid buffer
1176
+ */
1177
+ public static create(buffer: (Uint8Array|Buffer)): (Reader|BufferReader);
1178
+
1179
+ /**
1180
+ * Reads a varint as an unsigned 32 bit value.
1181
+ * @returns Value read
1182
+ */
1183
+ public uint32(): number;
1184
+
1185
+ /**
1186
+ * Reads a varint as a signed 32 bit value.
1187
+ * @returns Value read
1188
+ */
1189
+ public int32(): number;
1190
+
1191
+ /**
1192
+ * Reads a zig-zag encoded varint as a signed 32 bit value.
1193
+ * @returns Value read
1194
+ */
1195
+ public sint32(): number;
1196
+
1197
+ /**
1198
+ * Reads a varint as a signed 64 bit value.
1199
+ * @returns Value read
1200
+ */
1201
+ public int64(): Long;
1202
+
1203
+ /**
1204
+ * Reads a varint as an unsigned 64 bit value.
1205
+ * @returns Value read
1206
+ */
1207
+ public uint64(): Long;
1208
+
1209
+ /**
1210
+ * Reads a zig-zag encoded varint as a signed 64 bit value.
1211
+ * @returns Value read
1212
+ */
1213
+ public sint64(): Long;
1214
+
1215
+ /**
1216
+ * Reads a varint as a boolean.
1217
+ * @returns Value read
1218
+ */
1219
+ public bool(): boolean;
1220
+
1221
+ /**
1222
+ * Reads fixed 32 bits as an unsigned 32 bit integer.
1223
+ * @returns Value read
1224
+ */
1225
+ public fixed32(): number;
1226
+
1227
+ /**
1228
+ * Reads fixed 32 bits as a signed 32 bit integer.
1229
+ * @returns Value read
1230
+ */
1231
+ public sfixed32(): number;
1232
+
1233
+ /**
1234
+ * Reads fixed 64 bits.
1235
+ * @returns Value read
1236
+ */
1237
+ public fixed64(): Long;
1238
+
1239
+ /**
1240
+ * Reads zig-zag encoded fixed 64 bits.
1241
+ * @returns Value read
1242
+ */
1243
+ public sfixed64(): Long;
1244
+
1245
+ /**
1246
+ * Reads a float (32 bit) as a number.
1247
+ * @returns Value read
1248
+ */
1249
+ public float(): number;
1250
+
1251
+ /**
1252
+ * Reads a double (64 bit float) as a number.
1253
+ * @returns Value read
1254
+ */
1255
+ public double(): number;
1256
+
1257
+ /**
1258
+ * Reads a sequence of bytes preceeded by its length as a varint.
1259
+ * @returns Value read
1260
+ */
1261
+ public bytes(): Uint8Array;
1262
+
1263
+ /**
1264
+ * Reads a string preceeded by its byte length as a varint.
1265
+ * @returns Value read
1266
+ */
1267
+ public string(): string;
1268
+
1269
+ /**
1270
+ * Skips the specified number of bytes if specified, otherwise skips a varint.
1271
+ * @param [length] Length if known, otherwise a varint is assumed
1272
+ * @returns `this`
1273
+ */
1274
+ public skip(length?: number): Reader;
1275
+
1276
+ /** Recursion limit. */
1277
+ public static recursionLimit: number;
1278
+
1279
+ /**
1280
+ * Skips the next element of the specified wire type.
1281
+ * @param wireType Wire type received
1282
+ * @param [depth] Depth of recursion to control nested calls; 0 if omitted
1283
+ * @returns `this`
1284
+ */
1285
+ public skipType(wireType: number, depth?: number): Reader;
1286
+ }
1287
+
1288
+ /** Wire format reader using node buffers. */
1289
+ export class BufferReader extends Reader {
1290
+
1291
+ /**
1292
+ * Constructs a new buffer reader instance.
1293
+ * @param buffer Buffer to read from
1294
+ */
1295
+ constructor(buffer: Buffer);
1296
+
1297
+ /**
1298
+ * Reads a sequence of bytes preceeded by its length as a varint.
1299
+ * @returns Value read
1300
+ */
1301
+ public bytes(): Buffer;
1302
+ }
1303
+
1304
+ /** Root namespace wrapping all types, enums, services, sub-namespaces etc. that belong together. */
1305
+ export class Root extends NamespaceBase {
1306
+
1307
+ /**
1308
+ * Constructs a new root namespace instance.
1309
+ * @param [options] Top level options
1310
+ */
1311
+ constructor(options?: { [k: string]: any });
1312
+
1313
+ /** Deferred extension fields. */
1314
+ public deferred: Field[];
1315
+
1316
+ /** Resolved file names of loaded files. */
1317
+ public files: string[];
1318
+
1319
+ /**
1320
+ * Loads a namespace descriptor into a root namespace.
1321
+ * @param json Namespace descriptor
1322
+ * @param [root] Root namespace, defaults to create a new one if omitted
1323
+ * @param [depth] Current nesting depth, defaults to `0`
1324
+ * @returns Root namespace
1325
+ */
1326
+ public static fromJSON(json: INamespace, root?: Root, depth?: number): Root;
1327
+
1328
+ /**
1329
+ * Resolves the path of an imported file, relative to the importing origin.
1330
+ * This method exists so you can override it with your own logic in case your imports are scattered over multiple directories.
1331
+ * @param origin The file name of the importing file
1332
+ * @param target The file name being imported
1333
+ * @returns Resolved path to `target` or `null` to skip the file
1334
+ */
1335
+ public resolvePath(origin: string, target: string): (string|null);
1336
+
1337
+ /**
1338
+ * Fetch content from file path or url
1339
+ * This method exists so you can override it with your own logic.
1340
+ * @param path File path or url
1341
+ * @param callback Callback function
1342
+ */
1343
+ public fetch(path: string, callback: FetchCallback): void;
1344
+
1345
+ /**
1346
+ * Loads one or multiple .proto or preprocessed .json files into this root namespace and calls the callback.
1347
+ * @param filename Names of one or multiple files to load
1348
+ * @param options Parse options
1349
+ * @param callback Callback function
1350
+ */
1351
+ public load(filename: (string|string[]), options: IParseOptions, callback: LoadCallback): void;
1352
+
1353
+ /**
1354
+ * Loads one or multiple .proto or preprocessed .json files into this root namespace and calls the callback.
1355
+ * @param filename Names of one or multiple files to load
1356
+ * @param callback Callback function
1357
+ */
1358
+ public load(filename: (string|string[]), callback: LoadCallback): void;
1359
+
1360
+ /**
1361
+ * Loads one or multiple .proto or preprocessed .json files into this root namespace and returns a promise.
1362
+ * @param filename Names of one or multiple files to load
1363
+ * @param [options] Parse options. Defaults to {@link parse.defaults} when omitted.
1364
+ * @returns Promise
1365
+ */
1366
+ public load(filename: (string|string[]), options?: IParseOptions): Promise<Root>;
1367
+
1368
+ /**
1369
+ * Synchronously loads one or multiple .proto or preprocessed .json files into this root namespace (node only).
1370
+ * @param filename Names of one or multiple files to load
1371
+ * @param [options] Parse options. Defaults to {@link parse.defaults} when omitted.
1372
+ * @returns Root namespace
1373
+ * @throws {Error} If synchronous fetching is not supported (i.e. in browsers) or if a file's syntax is invalid
1374
+ */
1375
+ public loadSync(filename: (string|string[]), options?: IParseOptions): Root;
1376
+ }
1377
+
1378
+ /**
1379
+ * Named roots.
1380
+ * This is where pbjs stores generated structures (the option `-r, --root` specifies a name).
1381
+ * Can also be used manually to make roots available across modules.
1382
+ */
1383
+ export let roots: { [k: string]: Root };
1384
+
1385
+ /** Streaming RPC helpers. */
1386
+ export namespace rpc {
1387
+
1388
+ /**
1389
+ * A service method callback as used by {@link rpc.ServiceMethod|ServiceMethod}.
1390
+ *
1391
+ * Differs from {@link RPCImplCallback} in that it is an actual callback of a service method which may not return `response = null`.
1392
+ * @param error Error, if any
1393
+ * @param [response] Response message
1394
+ */
1395
+ type ServiceMethodCallback<TRes extends Message<TRes>> = (error: (Error|null), response?: TRes) => void;
1396
+
1397
+ /**
1398
+ * A service method part of a {@link rpc.Service} as created by {@link Service.create}.
1399
+ * @param request Request message or plain object
1400
+ * @param [callback] Node-style callback called with the error, if any, and the response message
1401
+ * @returns Promise if `callback` has been omitted, otherwise `undefined`
1402
+ */
1403
+ type ServiceMethod<TReq extends Message<TReq>, TRes extends Message<TRes>> = (request: (TReq|Properties<TReq>), callback?: rpc.ServiceMethodCallback<TRes>) => Promise<Message<TRes>>;
1404
+
1405
+ /** An RPC service as returned by {@link Service#create}. */
1406
+ class Service extends util.EventEmitter {
1407
+
1408
+ /**
1409
+ * Constructs a new RPC service instance.
1410
+ * @param rpcImpl RPC implementation
1411
+ * @param [requestDelimited=false] Whether requests are length-delimited
1412
+ * @param [responseDelimited=false] Whether responses are length-delimited
1413
+ */
1414
+ constructor(rpcImpl: RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
1415
+
1416
+ /** RPC implementation. Becomes `null` once the service is ended. */
1417
+ public rpcImpl: (RPCImpl|null);
1418
+
1419
+ /** Whether requests are length-delimited. */
1420
+ public requestDelimited: boolean;
1421
+
1422
+ /** Whether responses are length-delimited. */
1423
+ public responseDelimited: boolean;
1424
+
1425
+ /**
1426
+ * Calls a service method through {@link rpc.Service#rpcImpl|rpcImpl}.
1427
+ * @param method Reflected or static method
1428
+ * @param requestCtor Request constructor
1429
+ * @param responseCtor Response constructor
1430
+ * @param request Request message or plain object
1431
+ * @param callback Service callback
1432
+ */
1433
+ public rpcCall<TReq extends Message<TReq>, TRes extends Message<TRes>>(method: (Method|rpc.ServiceMethod<TReq, TRes>), requestCtor: Constructor<TReq>, responseCtor: Constructor<TRes>, request: (TReq|Properties<TReq>), callback: rpc.ServiceMethodCallback<TRes>): void;
1434
+
1435
+ /**
1436
+ * Ends this service and emits the `end` event.
1437
+ * @param [endedByRPC=false] Whether the service has been ended by the RPC implementation.
1438
+ * @returns `this`
1439
+ */
1440
+ public end(endedByRPC?: boolean): rpc.Service;
1441
+ }
1442
+ }
1443
+
1444
+ /**
1445
+ * RPC implementation passed to {@link Service#create} performing a service request on network level, i.e. by utilizing http requests or websockets.
1446
+ * @param method Reflected or static method being called
1447
+ * @param requestData Request data
1448
+ * @param callback Callback function
1449
+ */
1450
+ type RPCImpl = (method: (Method|rpc.ServiceMethod<Message<{}>, Message<{}>>), requestData: Uint8Array, callback: RPCImplCallback) => void;
1451
+
1452
+ /**
1453
+ * Node-style callback as used by {@link RPCImpl}.
1454
+ * @param error Error, if any, otherwise `null`
1455
+ * @param [response] Response data or `null` to signal end of stream, if there hasn't been an error
1456
+ */
1457
+ type RPCImplCallback = (error: (Error|null), response?: (Uint8Array|null)) => void;
1458
+
1459
+ /** Reflected service. */
1460
+ export class Service extends NamespaceBase {
1461
+
1462
+ /**
1463
+ * Constructs a new service instance.
1464
+ * @param name Service name
1465
+ * @param [options] Service options
1466
+ * @throws {TypeError} If arguments are invalid
1467
+ */
1468
+ constructor(name: string, options?: { [k: string]: any });
1469
+
1470
+ /** Service methods. */
1471
+ public methods: { [k: string]: Method };
1472
+
1473
+ /**
1474
+ * Constructs a service from a service descriptor.
1475
+ * @param name Service name
1476
+ * @param json Service descriptor
1477
+ * @param [depth] Current nesting depth, defaults to `0`
1478
+ * @returns Created service
1479
+ * @throws {TypeError} If arguments are invalid
1480
+ */
1481
+ public static fromJSON(name: string, json: IService, depth?: number): Service;
1482
+
1483
+ /**
1484
+ * Converts this service to a service descriptor.
1485
+ * @param [toJSONOptions] JSON conversion options
1486
+ * @returns Service descriptor
1487
+ */
1488
+ public toJSON(toJSONOptions?: IToJSONOptions): IService;
1489
+
1490
+ /** Methods of this service as an array for iteration. */
1491
+ public readonly methodsArray: Method[];
1492
+
1493
+ /**
1494
+ * Creates a runtime service using the specified rpc implementation.
1495
+ * @param rpcImpl RPC implementation
1496
+ * @param [requestDelimited=false] Whether requests are length-delimited
1497
+ * @param [responseDelimited=false] Whether responses are length-delimited
1498
+ * @returns RPC service. Useful where requests and/or responses are streamed.
1499
+ */
1500
+ public create(rpcImpl: RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): rpc.Service;
1501
+ }
1502
+
1503
+ /** Service descriptor. */
1504
+ export interface IService extends INamespace {
1505
+
1506
+ /** Method descriptors */
1507
+ methods: { [k: string]: IMethod };
1508
+ }
1509
+
1510
+ /**
1511
+ * Gets the next token and advances.
1512
+ * @returns Next token or `null` on eof
1513
+ */
1514
+ type TokenizerHandleNext = () => (string|null);
1515
+
1516
+ /**
1517
+ * Peeks for the next token.
1518
+ * @returns Next token or `null` on eof
1519
+ */
1520
+ type TokenizerHandlePeek = () => (string|null);
1521
+
1522
+ /**
1523
+ * Pushes a token back to the stack.
1524
+ * @param token Token
1525
+ */
1526
+ type TokenizerHandlePush = (token: string) => void;
1527
+
1528
+ /**
1529
+ * Skips the next token.
1530
+ * @param expected Expected token
1531
+ * @param [optional=false] If optional
1532
+ * @returns Whether the token matched
1533
+ * @throws {Error} If the token didn't match and is not optional
1534
+ */
1535
+ type TokenizerHandleSkip = (expected: string, optional?: boolean) => boolean;
1536
+
1537
+ /**
1538
+ * Gets the comment on the previous line or, alternatively, the line comment on the specified line.
1539
+ * @param [line] Line number
1540
+ * @returns Comment text or `null` if none
1541
+ */
1542
+ type TokenizerHandleCmnt = (line?: number) => (string|null);
1543
+
1544
+ /** Handle object returned from {@link tokenize}. */
1545
+ export interface ITokenizerHandle {
1546
+
1547
+ /** Gets the next token and advances (`null` on eof) */
1548
+ next: TokenizerHandleNext;
1549
+
1550
+ /** Peeks for the next token (`null` on eof) */
1551
+ peek: TokenizerHandlePeek;
1552
+
1553
+ /** Pushes a token back to the stack */
1554
+ push: TokenizerHandlePush;
1555
+
1556
+ /** Skips a token, returns its presence and advances or, if non-optional and not present, throws */
1557
+ skip: TokenizerHandleSkip;
1558
+
1559
+ /** Gets the comment on the previous line or the line comment on the specified line, if any */
1560
+ cmnt: TokenizerHandleCmnt;
1561
+
1562
+ /** Current line number */
1563
+ line: number;
1564
+ }
1565
+
1566
+ /**
1567
+ * Tokenizes the given .proto source and returns an object with useful utility functions.
1568
+ * @param source Source contents
1569
+ * @param alternateCommentMode Whether we should activate alternate comment parsing mode.
1570
+ * @returns Tokenizer handle
1571
+ */
1572
+ export function tokenize(source: string, alternateCommentMode: boolean): ITokenizerHandle;
1573
+
1574
+ export namespace tokenize {
1575
+
1576
+ /**
1577
+ * Unescapes a string.
1578
+ * @param str String to unescape
1579
+ * @returns Unescaped string
1580
+ */
1581
+ function unescape(str: string): string;
1582
+ }
1583
+
1584
+ /** Reflected message type. */
1585
+ export class Type extends NamespaceBase {
1586
+
1587
+ /**
1588
+ * Constructs a new reflected message type instance.
1589
+ * @param name Message name
1590
+ * @param [options] Declared options
1591
+ */
1592
+ constructor(name: string, options?: { [k: string]: any });
1593
+
1594
+ /** Message fields. */
1595
+ public fields: { [k: string]: Field };
1596
+
1597
+ /** Oneofs declared within this namespace, if any. */
1598
+ public oneofs: { [k: string]: OneOf };
1599
+
1600
+ /** Extension ranges, if any. */
1601
+ public extensions: number[][];
1602
+
1603
+ /** Reserved ranges, if any. */
1604
+ public reserved: (number[]|string)[];
1605
+
1606
+ /** Message fields by id. */
1607
+ public readonly fieldsById: { [k: number]: Field };
1608
+
1609
+ /** Fields of this message as an array for iteration. */
1610
+ public readonly fieldsArray: Field[];
1611
+
1612
+ /** Oneofs of this message as an array for iteration. */
1613
+ public readonly oneofsArray: OneOf[];
1614
+
1615
+ /**
1616
+ * The registered constructor, if any registered, otherwise a generic constructor.
1617
+ * Assigning a function replaces the internal constructor. If the function does not extend {@link Message} yet, its prototype will be setup accordingly and static methods will be populated. If it already extends {@link Message}, it will just replace the internal constructor.
1618
+ */
1619
+ public ctor: Constructor<{}>;
1620
+
1621
+ /**
1622
+ * Generates a constructor function for the specified type.
1623
+ * @param mtype Message type
1624
+ * @returns Codegen instance
1625
+ */
1626
+ public static generateConstructor(mtype: Type): Codegen;
1627
+
1628
+ /**
1629
+ * Creates a message type from a message type descriptor.
1630
+ * @param name Message name
1631
+ * @param json Message type descriptor
1632
+ * @param [depth] Current nesting depth, defaults to `0`
1633
+ * @returns Created message type
1634
+ */
1635
+ public static fromJSON(name: string, json: IType, depth?: number): Type;
1636
+
1637
+ /**
1638
+ * Converts this message type to a message type descriptor.
1639
+ * @param [toJSONOptions] JSON conversion options
1640
+ * @returns Message type descriptor
1641
+ */
1642
+ public toJSON(toJSONOptions?: IToJSONOptions): IType;
1643
+
1644
+ /**
1645
+ * Adds a nested object to this type.
1646
+ * @param object Nested object to add
1647
+ * @returns `this`
1648
+ * @throws {TypeError} If arguments are invalid
1649
+ * @throws {Error} If there is already a nested object with this name or, if a field, when there is already a field with this id
1650
+ */
1651
+ public add(object: ReflectionObject): Type;
1652
+
1653
+ /**
1654
+ * Removes a nested object from this type.
1655
+ * @param object Nested object to remove
1656
+ * @returns `this`
1657
+ * @throws {TypeError} If arguments are invalid
1658
+ * @throws {Error} If `object` is not a member of this type
1659
+ */
1660
+ public remove(object: ReflectionObject): Type;
1661
+
1662
+ /**
1663
+ * Tests if the specified id is reserved.
1664
+ * @param id Id to test
1665
+ * @returns `true` if reserved, otherwise `false`
1666
+ */
1667
+ public isReservedId(id: number): boolean;
1668
+
1669
+ /**
1670
+ * Tests if the specified name is reserved.
1671
+ * @param name Name to test
1672
+ * @returns `true` if reserved, otherwise `false`
1673
+ */
1674
+ public isReservedName(name: string): boolean;
1675
+
1676
+ /**
1677
+ * Creates a new message of this type using the specified properties.
1678
+ * @param [properties] Properties to set
1679
+ * @returns Message instance
1680
+ */
1681
+ public create(properties?: { [k: string]: any }): Message<{}>;
1682
+
1683
+ /**
1684
+ * Sets up {@link Type#encode|encode}, {@link Type#decode|decode} and {@link Type#verify|verify}.
1685
+ * @returns `this`
1686
+ */
1687
+ public setup(): Type;
1688
+
1689
+ /**
1690
+ * Encodes a message of this type. Does not implicitly {@link Type#verify|verify} messages.
1691
+ * @param message Message instance or plain object
1692
+ * @param [writer] Writer to encode to
1693
+ * @returns writer
1694
+ */
1695
+ public encode(message: (Message<{}>|{ [k: string]: any }), writer?: Writer): Writer;
1696
+
1697
+ /**
1698
+ * Encodes a message of this type preceeded by its byte length as a varint. Does not implicitly {@link Type#verify|verify} messages.
1699
+ * @param message Message instance or plain object
1700
+ * @param [writer] Writer to encode to
1701
+ * @returns writer
1702
+ */
1703
+ public encodeDelimited(message: (Message<{}>|{ [k: string]: any }), writer?: Writer): Writer;
1704
+
1705
+ /**
1706
+ * Decodes a message of this type.
1707
+ * @param reader Reader or buffer to decode from
1708
+ * @param [length] Length of the message, if known beforehand
1709
+ * @param [end] Expected group end tag, if decoding a group
1710
+ * @param [depth] Current nesting depth
1711
+ * @returns Decoded message
1712
+ * @throws {Error} If the payload is not a reader or valid buffer
1713
+ * @throws {util.ProtocolError<{}>} If required fields are missing
1714
+ */
1715
+ public decode(reader: (Reader|Uint8Array), length?: number, end?: number, depth?: number): Message<{}>;
1716
+
1717
+ /**
1718
+ * Decodes a message of this type preceeded by its byte length as a varint.
1719
+ * @param reader Reader or buffer to decode from
1720
+ * @returns Decoded message
1721
+ * @throws {Error} If the payload is not a reader or valid buffer
1722
+ * @throws {util.ProtocolError} If required fields are missing
1723
+ */
1724
+ public decodeDelimited(reader: (Reader|Uint8Array)): Message<{}>;
1725
+
1726
+ /**
1727
+ * Verifies that field values are valid and that required fields are present.
1728
+ * @param message Plain object to verify
1729
+ * @param [depth] Current nesting depth
1730
+ * @returns `null` if valid, otherwise the reason why it is not
1731
+ */
1732
+ public verify(message: { [k: string]: any }, depth?: number): (null|string);
1733
+
1734
+ /**
1735
+ * Creates a new message of this type from a plain object. Also converts values to their respective internal types.
1736
+ * @param object Plain object to convert
1737
+ * @param [depth] Current nesting depth
1738
+ * @returns Message instance
1739
+ */
1740
+ public fromObject(object: { [k: string]: any }, depth?: number): Message<{}>;
1741
+
1742
+ /**
1743
+ * Creates a plain object from a message of this type. Also converts values to other types if specified.
1744
+ * @param message Message instance
1745
+ * @param [options] Conversion options
1746
+ * @returns Plain object
1747
+ */
1748
+ public toObject(message: Message<{}>, options?: IConversionOptions): { [k: string]: any };
1749
+
1750
+ /**
1751
+ * Type decorator (TypeScript).
1752
+ * @param [typeName] Type name, defaults to the constructor's name
1753
+ * @returns Decorator function
1754
+ */
1755
+ public static d<T extends Message<T>>(typeName?: string): TypeDecorator<T>;
1756
+ }
1757
+
1758
+ /** Message type descriptor. */
1759
+ export interface IType extends INamespace {
1760
+
1761
+ /** Oneof descriptors */
1762
+ oneofs?: { [k: string]: IOneOf };
1763
+
1764
+ /** Field descriptors */
1765
+ fields: { [k: string]: IField };
1766
+
1767
+ /** Extension ranges */
1768
+ extensions?: number[][];
1769
+
1770
+ /** Reserved ranges */
1771
+ reserved?: (number[]|string)[];
1772
+
1773
+ /** Whether a legacy group or not */
1774
+ group?: boolean;
1775
+ }
1776
+
1777
+ /** Conversion options as used by {@link Type#toObject} and {@link Message.toObject}. */
1778
+ export interface IConversionOptions {
1779
+
1780
+ /**
1781
+ * Long conversion type.
1782
+ * Valid values are `BigInt`, `String` and `Number` (the global types).
1783
+ * Defaults to copy the present value, which is a possibly unsafe number without and a {@link Long} with a long library.
1784
+ */
1785
+ longs?: Function;
1786
+
1787
+ /**
1788
+ * Enum value conversion type.
1789
+ * Only valid value is `String` (the global type).
1790
+ * Defaults to copy the present value, which is the numeric id.
1791
+ */
1792
+ enums?: Function;
1793
+
1794
+ /**
1795
+ * Bytes value conversion type.
1796
+ * Valid values are `Array` and (a base64 encoded) `String` (the global types).
1797
+ * Defaults to copy the present value, which usually is a Buffer under node and an Uint8Array in the browser.
1798
+ */
1799
+ bytes?: Function;
1800
+
1801
+ /** Also sets default values on the resulting object */
1802
+ defaults?: boolean;
1803
+
1804
+ /** Sets empty arrays for missing repeated fields even if `defaults=false` */
1805
+ arrays?: boolean;
1806
+
1807
+ /** Sets empty objects for missing map fields even if `defaults=false` */
1808
+ objects?: boolean;
1809
+
1810
+ /** Includes virtual oneof properties set to the present field's name, if any */
1811
+ oneofs?: boolean;
1812
+
1813
+ /** Performs additional JSON compatibility conversions, i.e. NaN and Infinity to strings */
1814
+ json?: boolean;
1815
+ }
1816
+
1817
+ /**
1818
+ * Decorator function as returned by {@link Type.d} (TypeScript).
1819
+ * @param target Target constructor
1820
+ */
1821
+ type TypeDecorator<T extends Message<T>> = (target: Constructor<T>) => void;
1822
+
1823
+ /** Common type constants. */
1824
+ export namespace types {
1825
+
1826
+ /** Basic type wire types. */
1827
+ const basic: {
1828
+ "double": number,
1829
+ "float": number,
1830
+ "int32": number,
1831
+ "uint32": number,
1832
+ "sint32": number,
1833
+ "fixed32": number,
1834
+ "sfixed32": number,
1835
+ "int64": number,
1836
+ "uint64": number,
1837
+ "sint64": number,
1838
+ "fixed64": number,
1839
+ "sfixed64": number,
1840
+ "bool": number,
1841
+ "string": number,
1842
+ "bytes": number
1843
+ };
1844
+
1845
+ /** Basic type defaults. */
1846
+ const defaults: {
1847
+ "double": number,
1848
+ "float": number,
1849
+ "int32": number,
1850
+ "uint32": number,
1851
+ "sint32": number,
1852
+ "fixed32": number,
1853
+ "sfixed32": number,
1854
+ "int64": number,
1855
+ "uint64": number,
1856
+ "sint64": number,
1857
+ "fixed64": number,
1858
+ "sfixed64": number,
1859
+ "bool": boolean,
1860
+ "string": string,
1861
+ "bytes": number[],
1862
+ "message": null
1863
+ };
1864
+
1865
+ /** Basic long type wire types. */
1866
+ const long: {
1867
+ "int64": number,
1868
+ "uint64": number,
1869
+ "sint64": number,
1870
+ "fixed64": number,
1871
+ "sfixed64": number
1872
+ };
1873
+
1874
+ /** Allowed types for map keys with their associated wire type. */
1875
+ const mapKey: {
1876
+ "int32": number,
1877
+ "uint32": number,
1878
+ "sint32": number,
1879
+ "fixed32": number,
1880
+ "sfixed32": number,
1881
+ "int64": number,
1882
+ "uint64": number,
1883
+ "sint64": number,
1884
+ "fixed64": number,
1885
+ "sfixed64": number,
1886
+ "bool": number,
1887
+ "string": number
1888
+ };
1889
+
1890
+ /** Allowed types for packed repeated fields with their associated wire type. */
1891
+ const packed: {
1892
+ "double": number,
1893
+ "float": number,
1894
+ "int32": number,
1895
+ "uint32": number,
1896
+ "sint32": number,
1897
+ "fixed32": number,
1898
+ "sfixed32": number,
1899
+ "int64": number,
1900
+ "uint64": number,
1901
+ "sint64": number,
1902
+ "fixed64": number,
1903
+ "sfixed64": number,
1904
+ "bool": number
1905
+ };
1906
+ }
1907
+
1908
+ /** Constructor type. */
1909
+ export interface Constructor<T> extends Function {
1910
+ new(...params: any[]): T; prototype: T;
1911
+ }
1912
+
1913
+ /** Properties type. */
1914
+ type Properties<T> = { [P in keyof T]?: T[P] };
1915
+
1916
+ /**
1917
+ * Any compatible Buffer instance.
1918
+ * This is a minimal stand-alone definition of a Buffer instance. The actual type is that exported by node's typings.
1919
+ */
1920
+ export interface Buffer extends Uint8Array {
1921
+ }
1922
+
1923
+ /**
1924
+ * Any compatible Long instance.
1925
+ * This is a minimal stand-alone definition of a Long instance. The actual type is that exported by long.js.
1926
+ */
1927
+ export interface Long {
1928
+
1929
+ /** Low bits */
1930
+ low: number;
1931
+
1932
+ /** High bits */
1933
+ high: number;
1934
+
1935
+ /** Whether unsigned or not */
1936
+ unsigned: boolean;
1937
+ }
1938
+
1939
+ /**
1940
+ * A OneOf getter as returned by {@link util.oneOfGetter}.
1941
+ * @returns Set field name, if any
1942
+ */
1943
+ type OneOfGetter = () => (string|undefined);
1944
+
1945
+ /**
1946
+ * A OneOf setter as returned by {@link util.oneOfSetter}.
1947
+ * @param value Field name
1948
+ */
1949
+ type OneOfSetter = (value: (string|undefined)) => void;
1950
+
1951
+ /** Various utility functions. */
1952
+ export namespace util {
1953
+
1954
+ /** Helper class for working with the low and high bits of a 64 bit value. */
1955
+ class LongBits {
1956
+
1957
+ /**
1958
+ * Constructs new long bits.
1959
+ * @param lo Low 32 bits, unsigned
1960
+ * @param hi High 32 bits, unsigned
1961
+ */
1962
+ constructor(lo: number, hi: number);
1963
+
1964
+ /** Low bits. */
1965
+ public lo: number;
1966
+
1967
+ /** High bits. */
1968
+ public hi: number;
1969
+
1970
+ /** Zero bits. */
1971
+ public static zero: util.LongBits;
1972
+
1973
+ /** Zero hash. */
1974
+ public static zeroHash: string;
1975
+
1976
+ /**
1977
+ * Constructs new long bits from the specified number.
1978
+ * @param value Value
1979
+ * @returns Instance
1980
+ */
1981
+ public static fromNumber(value: number): util.LongBits;
1982
+
1983
+ /**
1984
+ * Constructs new long bits from a number, long or string.
1985
+ * @param value Value
1986
+ * @returns Instance
1987
+ */
1988
+ public static from(value: (Long|number|string)): util.LongBits;
1989
+
1990
+ /**
1991
+ * Converts this long bits to a possibly unsafe JavaScript number.
1992
+ * @param [unsigned=false] Whether unsigned or not
1993
+ * @returns Possibly unsafe number
1994
+ */
1995
+ public toNumber(unsigned?: boolean): number;
1996
+
1997
+ /**
1998
+ * Converts this long bits to a long.
1999
+ * @param [unsigned=false] Whether unsigned or not
2000
+ * @returns Long
2001
+ */
2002
+ public toLong(unsigned?: boolean): Long;
2003
+
2004
+ /**
2005
+ * Constructs new long bits from the specified 8 characters long hash.
2006
+ * @param hash Hash
2007
+ * @returns Bits
2008
+ */
2009
+ public static fromHash(hash: string): util.LongBits;
2010
+
2011
+ /**
2012
+ * Converts this long bits to a 8 characters long hash.
2013
+ * @returns Hash
2014
+ */
2015
+ public toHash(): string;
2016
+
2017
+ /**
2018
+ * Zig-zag encodes this long bits.
2019
+ * @returns `this`
2020
+ */
2021
+ public zzEncode(): util.LongBits;
2022
+
2023
+ /**
2024
+ * Zig-zag decodes this long bits.
2025
+ * @returns `this`
2026
+ */
2027
+ public zzDecode(): util.LongBits;
2028
+
2029
+ /**
2030
+ * Calculates the length of this longbits when encoded as a varint.
2031
+ * @returns Length
2032
+ */
2033
+ public length(): number;
2034
+ }
2035
+
2036
+ /**
2037
+ * Tests if the specified key can affect object prototypes.
2038
+ * @param key Key to test
2039
+ * @returns `true` if the key is unsafe
2040
+ */
2041
+ function isUnsafeProperty(key: string): boolean;
2042
+
2043
+ /** Whether running within node or not. */
2044
+ let isNode: boolean;
2045
+
2046
+ /** Global object reference. */
2047
+ let global: object;
2048
+
2049
+ /** An immuable empty array. */
2050
+ const emptyArray: any[];
2051
+
2052
+ /** An immutable empty object. */
2053
+ const emptyObject: object;
2054
+
2055
+ /**
2056
+ * Tests if the specified value is an integer.
2057
+ * @param value Value to test
2058
+ * @returns `true` if the value is an integer
2059
+ */
2060
+ function isInteger(value: any): boolean;
2061
+
2062
+ /**
2063
+ * Tests if the specified value is a string.
2064
+ * @param value Value to test
2065
+ * @returns `true` if the value is a string
2066
+ */
2067
+ function isString(value: any): boolean;
2068
+
2069
+ /**
2070
+ * Tests if the specified value is a non-null object.
2071
+ * @param value Value to test
2072
+ * @returns `true` if the value is a non-null object
2073
+ */
2074
+ function isObject(value: any): boolean;
2075
+
2076
+ /**
2077
+ * Checks if a property on a message is considered to be present.
2078
+ * This is an alias of {@link util.isSet}.
2079
+ * @param obj Plain object or message instance
2080
+ * @param prop Property name
2081
+ * @returns `true` if considered to be present, otherwise `false`
2082
+ */
2083
+ function isset(obj: object, prop: string): boolean;
2084
+
2085
+ /**
2086
+ * Checks if a property on a message is considered to be present.
2087
+ * @param obj Plain object or message instance
2088
+ * @param prop Property name
2089
+ * @returns `true` if considered to be present, otherwise `false`
2090
+ */
2091
+ function isSet(obj: object, prop: string): boolean;
2092
+
2093
+ /** Node's Buffer class if available. */
2094
+ let Buffer: Constructor<Buffer>;
2095
+
2096
+ /**
2097
+ * Creates a new buffer of whatever type supported by the environment.
2098
+ * @param [sizeOrArray=0] Buffer size or number array
2099
+ * @returns Buffer
2100
+ */
2101
+ function newBuffer(sizeOrArray?: (number|number[])): (Uint8Array|Buffer);
2102
+
2103
+ /** Array implementation used in the browser. `Uint8Array` if supported, otherwise `Array`. */
2104
+ let Array: Constructor<Uint8Array>;
2105
+
2106
+ /** Long.js's Long class if available. */
2107
+ let Long: Constructor<Long>;
2108
+
2109
+ /** Regular expression used to verify 2 bit (`bool`) map keys. */
2110
+ const key2Re: RegExp;
2111
+
2112
+ /** Regular expression used to verify 32 bit (`int32` etc.) map keys. */
2113
+ const key32Re: RegExp;
2114
+
2115
+ /** Regular expression used to verify 64 bit (`int64` etc.) map keys. */
2116
+ const key64Re: RegExp;
2117
+
2118
+ /**
2119
+ * Converts a number or long to an 8 characters long hash string.
2120
+ * @param value Value to convert
2121
+ * @returns Hash
2122
+ */
2123
+ function longToHash(value: (Long|number)): string;
2124
+
2125
+ /**
2126
+ * Converts an 8 characters long hash string to a long or number.
2127
+ * @param hash Hash
2128
+ * @param [unsigned=false] Whether unsigned or not
2129
+ * @returns Original value
2130
+ */
2131
+ function longFromHash(hash: string, unsigned?: boolean): (Long|number);
2132
+
2133
+ /**
2134
+ * Merges the properties of the source object into the destination object.
2135
+ * @param dst Destination object
2136
+ * @param src Source objects, optionally followed by an `ifNotSet` flag
2137
+ * @returns Destination object
2138
+ */
2139
+ function merge(dst: { [k: string]: any }, ...src: any[]): { [k: string]: any };
2140
+
2141
+ /** Schema declaration nesting limit. */
2142
+ let nestingLimit: number;
2143
+
2144
+ /** Recursion limit. */
2145
+ let recursionLimit: number;
2146
+
2147
+ /**
2148
+ * Makes a property safe for assignment as an own property.
2149
+ * @param obj Object
2150
+ * @param key Property key
2151
+ */
2152
+ function makeProp(obj: { [k: string]: any }, key: string): void;
2153
+
2154
+ /**
2155
+ * Converts the first character of a string to lower case.
2156
+ * @param str String to convert
2157
+ * @returns Converted string
2158
+ */
2159
+ function lcFirst(str: string): string;
2160
+
2161
+ /**
2162
+ * Creates a custom error constructor.
2163
+ * @param name Error name
2164
+ * @returns Custom error constructor
2165
+ */
2166
+ function newError(name: string): Constructor<Error>;
2167
+
2168
+ /** Error subclass indicating a protocol specifc error. */
2169
+ class ProtocolError<T extends Message<T>> extends Error {
2170
+
2171
+ /**
2172
+ * Constructs a new protocol error.
2173
+ * @param message Error message
2174
+ * @param [properties] Additional properties
2175
+ */
2176
+ constructor(message: string, properties?: { [k: string]: any });
2177
+
2178
+ /** So far decoded message instance. */
2179
+ public instance: Message<T>;
2180
+ }
2181
+
2182
+ /**
2183
+ * Builds a getter for a oneof's present field name.
2184
+ * @param fieldNames Field names
2185
+ * @returns Unbound getter
2186
+ */
2187
+ function oneOfGetter(fieldNames: string[]): OneOfGetter;
2188
+
2189
+ /**
2190
+ * Builds a setter for a oneof's present field name.
2191
+ * @param fieldNames Field names
2192
+ * @returns Unbound setter
2193
+ */
2194
+ function oneOfSetter(fieldNames: string[]): OneOfSetter;
2195
+
2196
+ /**
2197
+ * Default conversion options used for {@link Message#toJSON} implementations.
2198
+ *
2199
+ * These options are close to proto3's JSON mapping with the exception that internal types like Any are handled just like messages. More precisely:
2200
+ *
2201
+ * - Longs become strings
2202
+ * - Enums become string keys
2203
+ * - Bytes become base64 encoded strings
2204
+ * - (Sub-)Messages become plain objects
2205
+ * - Maps become plain objects with all string keys
2206
+ * - Repeated fields become arrays
2207
+ * - NaN and Infinity for float and double fields become strings
2208
+ *
2209
+ * @see https://developers.google.com/protocol-buffers/docs/proto3?hl=en#json
2210
+ */
2211
+ let toJSONOptions: IConversionOptions;
2212
+
2213
+ /** Node's fs module if available. */
2214
+ let fs: { [k: string]: any };
2215
+
2216
+ /**
2217
+ * Checks a recursion depth.
2218
+ * @param depth Depth of recursion
2219
+ * @returns Depth of recursion
2220
+ * @throws {Error} If depth exceeds util.recursionLimit
2221
+ */
2222
+ function checkDepth(depth: (number|undefined)): number;
2223
+
2224
+ /**
2225
+ * Converts an object's values to an array.
2226
+ * @param object Object to convert
2227
+ * @returns Converted array
2228
+ */
2229
+ function toArray(object: { [k: string]: any }): any[];
2230
+
2231
+ /**
2232
+ * Converts an array of keys immediately followed by their respective value to an object, omitting undefined values.
2233
+ * @param array Array to convert
2234
+ * @returns Converted object
2235
+ */
2236
+ function toObject(array: any[]): { [k: string]: any };
2237
+
2238
+ /**
2239
+ * Tests whether the specified name is a reserved word in JS.
2240
+ * @param name Name to test
2241
+ * @returns `true` if reserved, otherwise `false`
2242
+ */
2243
+ function isReserved(name: string): boolean;
2244
+
2245
+ /**
2246
+ * Returns a safe property accessor for the specified property name.
2247
+ * @param prop Property name
2248
+ * @returns Safe accessor
2249
+ */
2250
+ function safeProp(prop: string): string;
2251
+
2252
+ /**
2253
+ * Converts the first character of a string to upper case.
2254
+ * @param str String to convert
2255
+ * @returns Converted string
2256
+ */
2257
+ function ucFirst(str: string): string;
2258
+
2259
+ /**
2260
+ * Converts a string to camel case.
2261
+ * @param str String to convert
2262
+ * @returns Converted string
2263
+ */
2264
+ function camelCase(str: string): string;
2265
+
2266
+ /**
2267
+ * Compares reflected fields by id.
2268
+ * @param a First field
2269
+ * @param b Second field
2270
+ * @returns Comparison value
2271
+ */
2272
+ function compareFieldsById(a: Field, b: Field): number;
2273
+
2274
+ /**
2275
+ * Decorator helper for types (TypeScript).
2276
+ * @param ctor Constructor function
2277
+ * @param [typeName] Type name, defaults to the constructor's name
2278
+ * @returns Reflected type
2279
+ */
2280
+ function decorateType<T extends Message<T>>(ctor: Constructor<T>, typeName?: string): Type;
2281
+
2282
+ /**
2283
+ * Decorator helper for enums (TypeScript).
2284
+ * @param object Enum object
2285
+ * @returns Reflected enum
2286
+ */
2287
+ function decorateEnum(object: object): Enum;
2288
+
2289
+ /**
2290
+ * Sets the value of a property by property path. If a value already exists, it is turned to an array
2291
+ * @param dst Destination object
2292
+ * @param path dot '.' delimited path of the property to set
2293
+ * @param value the value to set
2294
+ * @param [ifNotSet] Sets the option only if it isn't currently set
2295
+ * @returns Destination object
2296
+ */
2297
+ function setProperty(dst: { [k: string]: any }, path: string, value: object, ifNotSet?: (boolean|undefined)): { [k: string]: any };
2298
+
2299
+ /** Decorator root (TypeScript). */
2300
+ let decorateRoot: Root;
2301
+
2302
+ /**
2303
+ * Returns a promise from a node-style callback function.
2304
+ * @param fn Function to call
2305
+ * @param ctx Function context
2306
+ * @param params Function arguments
2307
+ * @returns Promisified function
2308
+ */
2309
+ function asPromise(fn: asPromiseCallback, ctx: any, ...params: any[]): Promise<any>;
2310
+
2311
+ /** A minimal base64 implementation for number arrays. */
2312
+ namespace base64 {
2313
+
2314
+ /**
2315
+ * Calculates the byte length of a base64 encoded string.
2316
+ * @param string Base64 encoded string
2317
+ * @returns Byte length
2318
+ */
2319
+ function length(string: string): number;
2320
+
2321
+ /**
2322
+ * Encodes a buffer to a base64 encoded string.
2323
+ * @param buffer Source buffer
2324
+ * @param start Source start
2325
+ * @param end Source end
2326
+ * @returns Base64 encoded string
2327
+ */
2328
+ function encode(buffer: Uint8Array, start: number, end: number): string;
2329
+
2330
+ /**
2331
+ * Decodes a base64 encoded string to a buffer.
2332
+ * @param string Source string
2333
+ * @param buffer Destination buffer
2334
+ * @param offset Destination offset
2335
+ * @returns Number of bytes written
2336
+ * @throws {Error} If encoding is invalid
2337
+ */
2338
+ function decode(string: string, buffer: Uint8Array, offset: number): number;
2339
+
2340
+ /**
2341
+ * Tests if the specified string appears to be base64 encoded.
2342
+ * @param string String to test
2343
+ * @returns `true` if probably base64 encoded, otherwise false
2344
+ */
2345
+ function test(string: string): boolean;
2346
+ }
2347
+
2348
+ /**
2349
+ * Begins generating a function.
2350
+ * @param functionParams Function parameter names
2351
+ * @param [functionName] Function name if not anonymous
2352
+ * @returns Appender that appends code to the function's body
2353
+ */
2354
+ function codegen(functionParams: string[], functionName?: string): Codegen;
2355
+
2356
+ namespace codegen {
2357
+
2358
+ /** When set to `true`, codegen will log generated code to console. Useful for debugging. */
2359
+ let verbose: boolean;
2360
+ }
2361
+
2362
+ /**
2363
+ * Begins generating a function.
2364
+ * @param [functionName] Function name if not anonymous
2365
+ * @returns Appender that appends code to the function's body
2366
+ */
2367
+ function codegen(functionName?: string): Codegen;
2368
+
2369
+ /** A minimal event emitter. */
2370
+ class EventEmitter {
2371
+
2372
+ /** Constructs a new event emitter instance. */
2373
+ constructor();
2374
+
2375
+ /**
2376
+ * Registers an event listener.
2377
+ * @param evt Event name
2378
+ * @param fn Listener
2379
+ * @param [ctx] Listener context
2380
+ * @returns `this`
2381
+ */
2382
+ public on(evt: string, fn: EventEmitterListener, ctx?: any): this;
2383
+
2384
+ /**
2385
+ * Removes an event listener or any matching listeners if arguments are omitted.
2386
+ * @param [evt] Event name. Removes all listeners if omitted.
2387
+ * @param [fn] Listener to remove. Removes all listeners of `evt` if omitted.
2388
+ * @returns `this`
2389
+ */
2390
+ public off(evt?: string, fn?: EventEmitterListener): this;
2391
+
2392
+ /**
2393
+ * Emits an event by calling its listeners with the specified arguments.
2394
+ * @param evt Event name
2395
+ * @param args Arguments
2396
+ * @returns `this`
2397
+ */
2398
+ public emit(evt: string, ...args: any[]): this;
2399
+ }
2400
+
2401
+ /** Reads / writes floats / doubles from / to buffers. */
2402
+ namespace float {
2403
+
2404
+ /**
2405
+ * Writes a 32 bit float to a buffer using little endian byte order.
2406
+ * @param val Value to write
2407
+ * @param buf Target buffer
2408
+ * @param pos Target buffer offset
2409
+ */
2410
+ function writeFloatLE(val: number, buf: Uint8Array, pos: number): void;
2411
+
2412
+ /**
2413
+ * Writes a 32 bit float to a buffer using big endian byte order.
2414
+ * @param val Value to write
2415
+ * @param buf Target buffer
2416
+ * @param pos Target buffer offset
2417
+ */
2418
+ function writeFloatBE(val: number, buf: Uint8Array, pos: number): void;
2419
+
2420
+ /**
2421
+ * Reads a 32 bit float from a buffer using little endian byte order.
2422
+ * @param buf Source buffer
2423
+ * @param pos Source buffer offset
2424
+ * @returns Value read
2425
+ */
2426
+ function readFloatLE(buf: Uint8Array, pos: number): number;
2427
+
2428
+ /**
2429
+ * Reads a 32 bit float from a buffer using big endian byte order.
2430
+ * @param buf Source buffer
2431
+ * @param pos Source buffer offset
2432
+ * @returns Value read
2433
+ */
2434
+ function readFloatBE(buf: Uint8Array, pos: number): number;
2435
+
2436
+ /**
2437
+ * Writes a 64 bit double to a buffer using little endian byte order.
2438
+ * @param val Value to write
2439
+ * @param buf Target buffer
2440
+ * @param pos Target buffer offset
2441
+ */
2442
+ function writeDoubleLE(val: number, buf: Uint8Array, pos: number): void;
2443
+
2444
+ /**
2445
+ * Writes a 64 bit double to a buffer using big endian byte order.
2446
+ * @param val Value to write
2447
+ * @param buf Target buffer
2448
+ * @param pos Target buffer offset
2449
+ */
2450
+ function writeDoubleBE(val: number, buf: Uint8Array, pos: number): void;
2451
+
2452
+ /**
2453
+ * Reads a 64 bit double from a buffer using little endian byte order.
2454
+ * @param buf Source buffer
2455
+ * @param pos Source buffer offset
2456
+ * @returns Value read
2457
+ */
2458
+ function readDoubleLE(buf: Uint8Array, pos: number): number;
2459
+
2460
+ /**
2461
+ * Reads a 64 bit double from a buffer using big endian byte order.
2462
+ * @param buf Source buffer
2463
+ * @param pos Source buffer offset
2464
+ * @returns Value read
2465
+ */
2466
+ function readDoubleBE(buf: Uint8Array, pos: number): number;
2467
+ }
2468
+
2469
+ /**
2470
+ * Fetches the contents of a file.
2471
+ * @param filename File path or url
2472
+ * @param options Fetch options
2473
+ * @param callback Callback function
2474
+ */
2475
+ function fetch(filename: string, options: IFetchOptions, callback: FetchCallback): void;
2476
+
2477
+ /**
2478
+ * Fetches the contents of a file.
2479
+ * @param path File path or url
2480
+ * @param callback Callback function
2481
+ */
2482
+ function fetch(path: string, callback: FetchCallback): void;
2483
+
2484
+ /**
2485
+ * Fetches the contents of a file.
2486
+ * @param path File path or url
2487
+ * @param [options] Fetch options
2488
+ * @returns Promise
2489
+ */
2490
+ function fetch(path: string, options?: IFetchOptions): Promise<(string|Uint8Array)>;
2491
+
2492
+ /** A minimal path module to resolve Unix, Windows and URL paths alike. */
2493
+ namespace path {
2494
+
2495
+ /**
2496
+ * Tests if the specified path is absolute.
2497
+ * @param path Path to test
2498
+ * @returns `true` if path is absolute
2499
+ */
2500
+ function isAbsolute(path: string): boolean;
2501
+
2502
+ /**
2503
+ * Normalizes the specified path.
2504
+ * @param path Path to normalize
2505
+ * @returns Normalized path
2506
+ */
2507
+ function normalize(path: string): string;
2508
+
2509
+ /**
2510
+ * Resolves the specified include path against the specified origin path.
2511
+ * @param originPath Path to the origin file
2512
+ * @param includePath Include path relative to origin path
2513
+ * @param [alreadyNormalized=false] `true` if both paths are already known to be normalized
2514
+ * @returns Path to the include file
2515
+ */
2516
+ function resolve(originPath: string, includePath: string, alreadyNormalized?: boolean): string;
2517
+ }
2518
+
2519
+ /**
2520
+ * A general purpose buffer pool.
2521
+ * @param alloc Allocator
2522
+ * @param slice Slicer
2523
+ * @param [size=8192] Slab size
2524
+ * @returns Pooled allocator
2525
+ */
2526
+ function pool(alloc: PoolAllocator, slice: PoolSlicer, size?: number): PoolAllocator;
2527
+
2528
+ /** A minimal UTF8 implementation for number arrays. */
2529
+ namespace utf8 {
2530
+
2531
+ /**
2532
+ * Calculates the UTF8 byte length of a string.
2533
+ * @param string String
2534
+ * @returns Byte length
2535
+ */
2536
+ function length(string: string): number;
2537
+
2538
+ /**
2539
+ * Reads UTF8 bytes as a string.
2540
+ * @param buffer Source buffer
2541
+ * @param start Source start
2542
+ * @param end Source end
2543
+ * @returns String read
2544
+ */
2545
+ function read(buffer: Uint8Array, start: number, end: number): string;
2546
+
2547
+ /**
2548
+ * Writes a string as UTF8 bytes.
2549
+ * @param string Source string
2550
+ * @param buffer Destination buffer
2551
+ * @param offset Destination offset
2552
+ * @returns Bytes written
2553
+ */
2554
+ function write(string: string, buffer: Uint8Array, offset: number): number;
2555
+ }
2556
+ }
2557
+
2558
+ /**
2559
+ * Generates a verifier specific to the specified message type.
2560
+ * @param mtype Message type
2561
+ * @returns Codegen instance
2562
+ */
2563
+ export function verifier(mtype: Type): Codegen;
2564
+
2565
+ /** Wrappers for common types. */
2566
+ export const wrappers: { [k: string]: IWrapper };
2567
+
2568
+ /**
2569
+ * From object converter part of an {@link IWrapper}.
2570
+ * @param object Plain object
2571
+ * @returns Message instance
2572
+ */
2573
+ type WrapperFromObjectConverter = (this: Type, object: { [k: string]: any }) => Message<{}>;
2574
+
2575
+ /**
2576
+ * To object converter part of an {@link IWrapper}.
2577
+ * @param message Message instance
2578
+ * @param [options] Conversion options
2579
+ * @returns Plain object
2580
+ */
2581
+ type WrapperToObjectConverter = (this: Type, message: Message<{}>, options?: IConversionOptions) => { [k: string]: any };
2582
+
2583
+ /** Common type wrapper part of {@link wrappers}. */
2584
+ export interface IWrapper {
2585
+
2586
+ /** From object converter */
2587
+ fromObject?: WrapperFromObjectConverter;
2588
+
2589
+ /** To object converter */
2590
+ toObject?: WrapperToObjectConverter;
2591
+ }
2592
+
2593
+ /** Wire format writer using `Uint8Array` if available, otherwise `Array`. */
2594
+ export class Writer {
2595
+
2596
+ /** Constructs a new writer instance. */
2597
+ constructor();
2598
+
2599
+ /** Current length. */
2600
+ public len: number;
2601
+
2602
+ /** Operations head. */
2603
+ public head: object;
2604
+
2605
+ /** Operations tail */
2606
+ public tail: object;
2607
+
2608
+ /** Linked forked states. */
2609
+ public states: (object|null);
2610
+
2611
+ /**
2612
+ * Creates a new writer.
2613
+ * @returns A {@link BufferWriter} when Buffers are supported, otherwise a {@link Writer}
2614
+ */
2615
+ public static create(): (BufferWriter|Writer);
2616
+
2617
+ /**
2618
+ * Allocates a buffer of the specified size.
2619
+ * @param size Buffer size
2620
+ * @returns Buffer
2621
+ */
2622
+ public static alloc(size: number): Uint8Array;
2623
+
2624
+ /**
2625
+ * Writes an unsigned 32 bit value as a varint.
2626
+ * @param value Value to write
2627
+ * @returns `this`
2628
+ */
2629
+ public uint32(value: number): Writer;
2630
+
2631
+ /**
2632
+ * Writes a signed 32 bit value as a varint.
2633
+ * @param value Value to write
2634
+ * @returns `this`
2635
+ */
2636
+ public int32(value: number): Writer;
2637
+
2638
+ /**
2639
+ * Writes a 32 bit value as a varint, zig-zag encoded.
2640
+ * @param value Value to write
2641
+ * @returns `this`
2642
+ */
2643
+ public sint32(value: number): Writer;
2644
+
2645
+ /**
2646
+ * Writes an unsigned 64 bit value as a varint.
2647
+ * @param value Value to write
2648
+ * @returns `this`
2649
+ * @throws {TypeError} If `value` is a string and no long library is present.
2650
+ */
2651
+ public uint64(value: (Long|number|string)): Writer;
2652
+
2653
+ /**
2654
+ * Writes a signed 64 bit value as a varint.
2655
+ * @param value Value to write
2656
+ * @returns `this`
2657
+ * @throws {TypeError} If `value` is a string and no long library is present.
2658
+ */
2659
+ public int64(value: (Long|number|string)): Writer;
2660
+
2661
+ /**
2662
+ * Writes a signed 64 bit value as a varint, zig-zag encoded.
2663
+ * @param value Value to write
2664
+ * @returns `this`
2665
+ * @throws {TypeError} If `value` is a string and no long library is present.
2666
+ */
2667
+ public sint64(value: (Long|number|string)): Writer;
2668
+
2669
+ /**
2670
+ * Writes a boolish value as a varint.
2671
+ * @param value Value to write
2672
+ * @returns `this`
2673
+ */
2674
+ public bool(value: boolean): Writer;
2675
+
2676
+ /**
2677
+ * Writes an unsigned 32 bit value as fixed 32 bits.
2678
+ * @param value Value to write
2679
+ * @returns `this`
2680
+ */
2681
+ public fixed32(value: number): Writer;
2682
+
2683
+ /**
2684
+ * Writes a signed 32 bit value as fixed 32 bits.
2685
+ * @param value Value to write
2686
+ * @returns `this`
2687
+ */
2688
+ public sfixed32(value: number): Writer;
2689
+
2690
+ /**
2691
+ * Writes an unsigned 64 bit value as fixed 64 bits.
2692
+ * @param value Value to write
2693
+ * @returns `this`
2694
+ * @throws {TypeError} If `value` is a string and no long library is present.
2695
+ */
2696
+ public fixed64(value: (Long|number|string)): Writer;
2697
+
2698
+ /**
2699
+ * Writes a signed 64 bit value as fixed 64 bits.
2700
+ * @param value Value to write
2701
+ * @returns `this`
2702
+ * @throws {TypeError} If `value` is a string and no long library is present.
2703
+ */
2704
+ public sfixed64(value: (Long|number|string)): Writer;
2705
+
2706
+ /**
2707
+ * Writes a float (32 bit).
2708
+ * @param value Value to write
2709
+ * @returns `this`
2710
+ */
2711
+ public float(value: number): Writer;
2712
+
2713
+ /**
2714
+ * Writes a double (64 bit float).
2715
+ * @param value Value to write
2716
+ * @returns `this`
2717
+ */
2718
+ public double(value: number): Writer;
2719
+
2720
+ /**
2721
+ * Writes a sequence of bytes.
2722
+ * @param value Buffer or base64 encoded string to write
2723
+ * @returns `this`
2724
+ */
2725
+ public bytes(value: (Uint8Array|string)): Writer;
2726
+
2727
+ /**
2728
+ * Writes a string.
2729
+ * @param value Value to write
2730
+ * @returns `this`
2731
+ */
2732
+ public string(value: string): Writer;
2733
+
2734
+ /**
2735
+ * Forks this writer's state by pushing it to a stack.
2736
+ * Calling {@link Writer#reset|reset} or {@link Writer#ldelim|ldelim} resets the writer to the previous state.
2737
+ * @returns `this`
2738
+ */
2739
+ public fork(): Writer;
2740
+
2741
+ /**
2742
+ * Resets this instance to the last state.
2743
+ * @returns `this`
2744
+ */
2745
+ public reset(): Writer;
2746
+
2747
+ /**
2748
+ * Resets to the last state and appends the fork state's current write length as a varint followed by its operations.
2749
+ * @returns `this`
2750
+ */
2751
+ public ldelim(): Writer;
2752
+
2753
+ /**
2754
+ * Finishes the write operation.
2755
+ * @returns Finished buffer
2756
+ */
2757
+ public finish(): Uint8Array;
2758
+ }
2759
+
2760
+ /** Wire format writer using node buffers. */
2761
+ export class BufferWriter extends Writer {
2762
+
2763
+ /** Constructs a new buffer writer instance. */
2764
+ constructor();
2765
+
2766
+ /**
2767
+ * Allocates a buffer of the specified size.
2768
+ * @param size Buffer size
2769
+ * @returns Buffer
2770
+ */
2771
+ public static alloc(size: number): Buffer;
2772
+
2773
+ /**
2774
+ * Finishes the write operation.
2775
+ * @returns Finished buffer
2776
+ */
2777
+ public finish(): Buffer;
2778
+ }
2779
+
2780
+ /**
2781
+ * Callback as used by {@link util.asPromise}.
2782
+ * @param error Error, if any
2783
+ * @param params Additional arguments
2784
+ */
2785
+ type asPromiseCallback = (error: (Error|null), ...params: any[]) => void;
2786
+
2787
+ /**
2788
+ * Appends code to the function's body or finishes generation.
2789
+ * @param [formatStringOrScope] Format string or, to finish the function, an object of additional scope variables, if any
2790
+ * @param [formatParams] Format parameters
2791
+ * @returns Itself or the generated function if finished
2792
+ * @throws {Error} If format parameter counts do not match
2793
+ */
2794
+ type Codegen = (formatStringOrScope?: (string|{ [k: string]: any }), ...formatParams: any[]) => (Codegen|Function);
2795
+
2796
+ /**
2797
+ * Event listener as used by {@link util.EventEmitter}.
2798
+ * @param args Arguments
2799
+ */
2800
+ type EventEmitterListener = (...args: any[]) => void;
2801
+
2802
+ /**
2803
+ * Node-style callback as used by {@link util.fetch}.
2804
+ * @param error Error, if any, otherwise `null`
2805
+ * @param [contents] File contents, if there hasn't been an error
2806
+ */
2807
+ type FetchCallback = (error: Error, contents?: string) => void;
2808
+
2809
+ /** Options as used by {@link util.fetch}. */
2810
+ export interface IFetchOptions {
2811
+
2812
+ /** Whether expecting a binary response */
2813
+ binary?: boolean;
2814
+
2815
+ /** If `true`, forces the use of XMLHttpRequest */
2816
+ xhr?: boolean;
2817
+ }
2818
+
2819
+ /**
2820
+ * An allocator as used by {@link util.pool}.
2821
+ * @param size Buffer size
2822
+ * @returns Buffer
2823
+ */
2824
+ type PoolAllocator = (size: number) => Uint8Array;
2825
+
2826
+ /**
2827
+ * A slicer as used by {@link util.pool}.
2828
+ * @param start Start offset
2829
+ * @param end End offset
2830
+ * @returns Buffer slice
2831
+ */
2832
+ type PoolSlicer = (this: Uint8Array, start: number, end: number) => Uint8Array;