waves_lib 0.1.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 (1222) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/.rubocop.yml +22 -0
  4. data/CHANGELOG.md +5 -0
  5. data/CODE_OF_CONDUCT.md +84 -0
  6. data/LICENSE.txt +19 -0
  7. data/README.md +39 -0
  8. data/Rakefile +12 -0
  9. data/js/node_modules/@protobufjs/aspromise/LICENSE +26 -0
  10. data/js/node_modules/@protobufjs/aspromise/README.md +13 -0
  11. data/js/node_modules/@protobufjs/aspromise/index.d.ts +13 -0
  12. data/js/node_modules/@protobufjs/aspromise/index.js +52 -0
  13. data/js/node_modules/@protobufjs/aspromise/package.json +21 -0
  14. data/js/node_modules/@protobufjs/aspromise/tests/index.js +130 -0
  15. data/js/node_modules/@protobufjs/base64/LICENSE +26 -0
  16. data/js/node_modules/@protobufjs/base64/README.md +19 -0
  17. data/js/node_modules/@protobufjs/base64/index.d.ts +32 -0
  18. data/js/node_modules/@protobufjs/base64/index.js +139 -0
  19. data/js/node_modules/@protobufjs/base64/package.json +21 -0
  20. data/js/node_modules/@protobufjs/base64/tests/index.js +46 -0
  21. data/js/node_modules/@protobufjs/codegen/LICENSE +26 -0
  22. data/js/node_modules/@protobufjs/codegen/README.md +49 -0
  23. data/js/node_modules/@protobufjs/codegen/index.d.ts +31 -0
  24. data/js/node_modules/@protobufjs/codegen/index.js +99 -0
  25. data/js/node_modules/@protobufjs/codegen/package.json +13 -0
  26. data/js/node_modules/@protobufjs/codegen/tests/index.js +13 -0
  27. data/js/node_modules/@protobufjs/eventemitter/LICENSE +26 -0
  28. data/js/node_modules/@protobufjs/eventemitter/README.md +22 -0
  29. data/js/node_modules/@protobufjs/eventemitter/index.d.ts +43 -0
  30. data/js/node_modules/@protobufjs/eventemitter/index.js +76 -0
  31. data/js/node_modules/@protobufjs/eventemitter/package.json +21 -0
  32. data/js/node_modules/@protobufjs/eventemitter/tests/index.js +47 -0
  33. data/js/node_modules/@protobufjs/fetch/LICENSE +26 -0
  34. data/js/node_modules/@protobufjs/fetch/README.md +13 -0
  35. data/js/node_modules/@protobufjs/fetch/index.d.ts +56 -0
  36. data/js/node_modules/@protobufjs/fetch/index.js +115 -0
  37. data/js/node_modules/@protobufjs/fetch/package.json +25 -0
  38. data/js/node_modules/@protobufjs/fetch/tests/index.js +16 -0
  39. data/js/node_modules/@protobufjs/float/LICENSE +26 -0
  40. data/js/node_modules/@protobufjs/float/README.md +102 -0
  41. data/js/node_modules/@protobufjs/float/bench/index.js +87 -0
  42. data/js/node_modules/@protobufjs/float/bench/suite.js +46 -0
  43. data/js/node_modules/@protobufjs/float/index.d.ts +83 -0
  44. data/js/node_modules/@protobufjs/float/index.js +335 -0
  45. data/js/node_modules/@protobufjs/float/package.json +26 -0
  46. data/js/node_modules/@protobufjs/float/tests/index.js +100 -0
  47. data/js/node_modules/@protobufjs/inquire/LICENSE +26 -0
  48. data/js/node_modules/@protobufjs/inquire/README.md +13 -0
  49. data/js/node_modules/@protobufjs/inquire/index.d.ts +9 -0
  50. data/js/node_modules/@protobufjs/inquire/index.js +17 -0
  51. data/js/node_modules/@protobufjs/inquire/package.json +21 -0
  52. data/js/node_modules/@protobufjs/inquire/tests/data/array.js +1 -0
  53. data/js/node_modules/@protobufjs/inquire/tests/data/emptyArray.js +1 -0
  54. data/js/node_modules/@protobufjs/inquire/tests/data/emptyObject.js +1 -0
  55. data/js/node_modules/@protobufjs/inquire/tests/data/object.js +1 -0
  56. data/js/node_modules/@protobufjs/inquire/tests/index.js +20 -0
  57. data/js/node_modules/@protobufjs/path/LICENSE +26 -0
  58. data/js/node_modules/@protobufjs/path/README.md +19 -0
  59. data/js/node_modules/@protobufjs/path/index.d.ts +22 -0
  60. data/js/node_modules/@protobufjs/path/index.js +65 -0
  61. data/js/node_modules/@protobufjs/path/package.json +21 -0
  62. data/js/node_modules/@protobufjs/path/tests/index.js +60 -0
  63. data/js/node_modules/@protobufjs/pool/LICENSE +26 -0
  64. data/js/node_modules/@protobufjs/pool/README.md +13 -0
  65. data/js/node_modules/@protobufjs/pool/index.d.ts +32 -0
  66. data/js/node_modules/@protobufjs/pool/index.js +48 -0
  67. data/js/node_modules/@protobufjs/pool/package.json +21 -0
  68. data/js/node_modules/@protobufjs/pool/tests/index.js +33 -0
  69. data/js/node_modules/@protobufjs/utf8/LICENSE +26 -0
  70. data/js/node_modules/@protobufjs/utf8/README.md +20 -0
  71. data/js/node_modules/@protobufjs/utf8/index.d.ts +24 -0
  72. data/js/node_modules/@protobufjs/utf8/index.js +105 -0
  73. data/js/node_modules/@protobufjs/utf8/package.json +21 -0
  74. data/js/node_modules/@protobufjs/utf8/tests/data/utf8.txt +216 -0
  75. data/js/node_modules/@protobufjs/utf8/tests/index.js +57 -0
  76. data/js/node_modules/@types/base64-js/LICENSE +21 -0
  77. data/js/node_modules/@types/base64-js/README.md +16 -0
  78. data/js/node_modules/@types/base64-js/index.d.ts +23 -0
  79. data/js/node_modules/@types/base64-js/package.json +29 -0
  80. data/js/node_modules/@types/long/LICENSE +21 -0
  81. data/js/node_modules/@types/long/README.md +16 -0
  82. data/js/node_modules/@types/long/index.d.ts +389 -0
  83. data/js/node_modules/@types/long/package.json +25 -0
  84. data/js/node_modules/@types/node/LICENSE +21 -0
  85. data/js/node_modules/@types/node/README.md +16 -0
  86. data/js/node_modules/@types/node/assert/strict.d.ts +8 -0
  87. data/js/node_modules/@types/node/assert.d.ts +972 -0
  88. data/js/node_modules/@types/node/async_hooks.d.ts +530 -0
  89. data/js/node_modules/@types/node/buffer.d.ts +2354 -0
  90. data/js/node_modules/@types/node/child_process.d.ts +1395 -0
  91. data/js/node_modules/@types/node/cluster.d.ts +414 -0
  92. data/js/node_modules/@types/node/console.d.ts +412 -0
  93. data/js/node_modules/@types/node/constants.d.ts +18 -0
  94. data/js/node_modules/@types/node/crypto.d.ts +3978 -0
  95. data/js/node_modules/@types/node/dgram.d.ts +545 -0
  96. data/js/node_modules/@types/node/diagnostics_channel.d.ts +191 -0
  97. data/js/node_modules/@types/node/dns/promises.d.ts +414 -0
  98. data/js/node_modules/@types/node/dns.d.ts +668 -0
  99. data/js/node_modules/@types/node/dom-events.d.ts +126 -0
  100. data/js/node_modules/@types/node/domain.d.ts +170 -0
  101. data/js/node_modules/@types/node/events.d.ts +724 -0
  102. data/js/node_modules/@types/node/fs/promises.d.ts +1190 -0
  103. data/js/node_modules/@types/node/fs.d.ts +4044 -0
  104. data/js/node_modules/@types/node/globals.d.ts +303 -0
  105. data/js/node_modules/@types/node/globals.global.d.ts +1 -0
  106. data/js/node_modules/@types/node/http.d.ts +1724 -0
  107. data/js/node_modules/@types/node/http2.d.ts +2129 -0
  108. data/js/node_modules/@types/node/https.d.ts +441 -0
  109. data/js/node_modules/@types/node/index.d.ts +134 -0
  110. data/js/node_modules/@types/node/inspector.d.ts +2748 -0
  111. data/js/node_modules/@types/node/module.d.ts +129 -0
  112. data/js/node_modules/@types/node/net.d.ts +888 -0
  113. data/js/node_modules/@types/node/os.d.ts +477 -0
  114. data/js/node_modules/@types/node/package.json +237 -0
  115. data/js/node_modules/@types/node/path.d.ts +191 -0
  116. data/js/node_modules/@types/node/perf_hooks.d.ts +638 -0
  117. data/js/node_modules/@types/node/process.d.ts +1494 -0
  118. data/js/node_modules/@types/node/punycode.d.ts +117 -0
  119. data/js/node_modules/@types/node/querystring.d.ts +131 -0
  120. data/js/node_modules/@types/node/readline/promises.d.ts +145 -0
  121. data/js/node_modules/@types/node/readline.d.ts +526 -0
  122. data/js/node_modules/@types/node/repl.d.ts +424 -0
  123. data/js/node_modules/@types/node/stream/consumers.d.ts +12 -0
  124. data/js/node_modules/@types/node/stream/promises.d.ts +42 -0
  125. data/js/node_modules/@types/node/stream/web.d.ts +330 -0
  126. data/js/node_modules/@types/node/stream.d.ts +1421 -0
  127. data/js/node_modules/@types/node/string_decoder.d.ts +67 -0
  128. data/js/node_modules/@types/node/test.d.ts +1383 -0
  129. data/js/node_modules/@types/node/timers/promises.d.ts +93 -0
  130. data/js/node_modules/@types/node/timers.d.ts +215 -0
  131. data/js/node_modules/@types/node/tls.d.ts +1130 -0
  132. data/js/node_modules/@types/node/trace_events.d.ts +182 -0
  133. data/js/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
  134. data/js/node_modules/@types/node/ts4.8/assert.d.ts +972 -0
  135. data/js/node_modules/@types/node/ts4.8/async_hooks.d.ts +530 -0
  136. data/js/node_modules/@types/node/ts4.8/buffer.d.ts +2354 -0
  137. data/js/node_modules/@types/node/ts4.8/child_process.d.ts +1395 -0
  138. data/js/node_modules/@types/node/ts4.8/cluster.d.ts +414 -0
  139. data/js/node_modules/@types/node/ts4.8/console.d.ts +412 -0
  140. data/js/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
  141. data/js/node_modules/@types/node/ts4.8/crypto.d.ts +3977 -0
  142. data/js/node_modules/@types/node/ts4.8/dgram.d.ts +545 -0
  143. data/js/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
  144. data/js/node_modules/@types/node/ts4.8/dns/promises.d.ts +414 -0
  145. data/js/node_modules/@types/node/ts4.8/dns.d.ts +668 -0
  146. data/js/node_modules/@types/node/ts4.8/dom-events.d.ts +126 -0
  147. data/js/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
  148. data/js/node_modules/@types/node/ts4.8/events.d.ts +724 -0
  149. data/js/node_modules/@types/node/ts4.8/fs/promises.d.ts +1189 -0
  150. data/js/node_modules/@types/node/ts4.8/fs.d.ts +4044 -0
  151. data/js/node_modules/@types/node/ts4.8/globals.d.ts +303 -0
  152. data/js/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
  153. data/js/node_modules/@types/node/ts4.8/http.d.ts +1724 -0
  154. data/js/node_modules/@types/node/ts4.8/http2.d.ts +2129 -0
  155. data/js/node_modules/@types/node/ts4.8/https.d.ts +441 -0
  156. data/js/node_modules/@types/node/ts4.8/index.d.ts +88 -0
  157. data/js/node_modules/@types/node/ts4.8/inspector.d.ts +2748 -0
  158. data/js/node_modules/@types/node/ts4.8/module.d.ts +129 -0
  159. data/js/node_modules/@types/node/ts4.8/net.d.ts +888 -0
  160. data/js/node_modules/@types/node/ts4.8/os.d.ts +477 -0
  161. data/js/node_modules/@types/node/ts4.8/path.d.ts +191 -0
  162. data/js/node_modules/@types/node/ts4.8/perf_hooks.d.ts +638 -0
  163. data/js/node_modules/@types/node/ts4.8/process.d.ts +1494 -0
  164. data/js/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
  165. data/js/node_modules/@types/node/ts4.8/querystring.d.ts +131 -0
  166. data/js/node_modules/@types/node/ts4.8/readline/promises.d.ts +145 -0
  167. data/js/node_modules/@types/node/ts4.8/readline.d.ts +526 -0
  168. data/js/node_modules/@types/node/ts4.8/repl.d.ts +424 -0
  169. data/js/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
  170. data/js/node_modules/@types/node/ts4.8/stream/promises.d.ts +42 -0
  171. data/js/node_modules/@types/node/ts4.8/stream/web.d.ts +330 -0
  172. data/js/node_modules/@types/node/ts4.8/stream.d.ts +1392 -0
  173. data/js/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
  174. data/js/node_modules/@types/node/ts4.8/test.d.ts +1365 -0
  175. data/js/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
  176. data/js/node_modules/@types/node/ts4.8/timers.d.ts +215 -0
  177. data/js/node_modules/@types/node/ts4.8/tls.d.ts +1130 -0
  178. data/js/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
  179. data/js/node_modules/@types/node/ts4.8/tty.d.ts +208 -0
  180. data/js/node_modules/@types/node/ts4.8/url.d.ts +901 -0
  181. data/js/node_modules/@types/node/ts4.8/util.d.ts +2116 -0
  182. data/js/node_modules/@types/node/ts4.8/v8.d.ts +635 -0
  183. data/js/node_modules/@types/node/ts4.8/vm.d.ts +894 -0
  184. data/js/node_modules/@types/node/ts4.8/wasi.d.ts +152 -0
  185. data/js/node_modules/@types/node/ts4.8/worker_threads.d.ts +693 -0
  186. data/js/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
  187. data/js/node_modules/@types/node/tty.d.ts +208 -0
  188. data/js/node_modules/@types/node/url.d.ts +901 -0
  189. data/js/node_modules/@types/node/util.d.ts +2116 -0
  190. data/js/node_modules/@types/node/v8.d.ts +635 -0
  191. data/js/node_modules/@types/node/vm.d.ts +894 -0
  192. data/js/node_modules/@types/node/wasi.d.ts +152 -0
  193. data/js/node_modules/@types/node/worker_threads.d.ts +693 -0
  194. data/js/node_modules/@types/node/zlib.d.ts +517 -0
  195. data/js/node_modules/@types/node-fetch/LICENSE +21 -0
  196. data/js/node_modules/@types/node-fetch/README.md +16 -0
  197. data/js/node_modules/@types/node-fetch/externals.d.ts +24 -0
  198. data/js/node_modules/@types/node-fetch/index.d.ts +224 -0
  199. data/js/node_modules/@types/node-fetch/package.json +83 -0
  200. data/js/node_modules/@waves/bignumber/dist/BigNumber.d.ts +74 -0
  201. data/js/node_modules/@waves/bignumber/dist/BigNumber.js +252 -0
  202. data/js/node_modules/@waves/bignumber/dist/BigNumber.js.map +1 -0
  203. data/js/node_modules/@waves/bignumber/dist/Config.d.ts +22 -0
  204. data/js/node_modules/@waves/bignumber/dist/Config.js +43 -0
  205. data/js/node_modules/@waves/bignumber/dist/Config.js.map +1 -0
  206. data/js/node_modules/@waves/bignumber/dist/bignumber.umd.js +3194 -0
  207. data/js/node_modules/@waves/bignumber/dist/bignumber.umd.min.js +1 -0
  208. data/js/node_modules/@waves/bignumber/dist/index.d.ts +3 -0
  209. data/js/node_modules/@waves/bignumber/dist/index.js +9 -0
  210. data/js/node_modules/@waves/bignumber/dist/index.js.map +1 -0
  211. data/js/node_modules/@waves/bignumber/package.json +64 -0
  212. data/js/node_modules/@waves/bignumber/readme.md +285 -0
  213. data/js/node_modules/@waves/marshall/LICENSE +9 -0
  214. data/js/node_modules/@waves/marshall/README.md +39 -0
  215. data/js/node_modules/@waves/marshall/dist/index.d.ts +26 -0
  216. data/js/node_modules/@waves/marshall/dist/index.js +45 -0
  217. data/js/node_modules/@waves/marshall/dist/index.js.map +1 -0
  218. data/js/node_modules/@waves/marshall/dist/jsonMethods.d.ts +36 -0
  219. data/js/node_modules/@waves/marshall/dist/jsonMethods.js +194 -0
  220. data/js/node_modules/@waves/marshall/dist/jsonMethods.js.map +1 -0
  221. data/js/node_modules/@waves/marshall/dist/libs/Utf8ArrayToStr.d.ts +1 -0
  222. data/js/node_modules/@waves/marshall/dist/libs/Utf8ArrayToStr.js +35 -0
  223. data/js/node_modules/@waves/marshall/dist/libs/Utf8ArrayToStr.js.map +1 -0
  224. data/js/node_modules/@waves/marshall/dist/libs/base58.d.ts +5 -0
  225. data/js/node_modules/@waves/marshall/dist/libs/base58.js +66 -0
  226. data/js/node_modules/@waves/marshall/dist/libs/base58.js.map +1 -0
  227. data/js/node_modules/@waves/marshall/dist/libs/utils.d.ts +2 -0
  228. data/js/node_modules/@waves/marshall/dist/libs/utils.js +6 -0
  229. data/js/node_modules/@waves/marshall/dist/libs/utils.js.map +1 -0
  230. data/js/node_modules/@waves/marshall/dist/min/waves-marshall.min.js +1 -0
  231. data/js/node_modules/@waves/marshall/dist/parse.d.ts +21 -0
  232. data/js/node_modules/@waves/marshall/dist/parse.js +142 -0
  233. data/js/node_modules/@waves/marshall/dist/parse.js.map +1 -0
  234. data/js/node_modules/@waves/marshall/dist/parsePrimitives.d.ts +57 -0
  235. data/js/node_modules/@waves/marshall/dist/parsePrimitives.js +96 -0
  236. data/js/node_modules/@waves/marshall/dist/parsePrimitives.js.map +1 -0
  237. data/js/node_modules/@waves/marshall/dist/schemaTypes.d.ts +62 -0
  238. data/js/node_modules/@waves/marshall/dist/schemaTypes.js +41 -0
  239. data/js/node_modules/@waves/marshall/dist/schemaTypes.js.map +1 -0
  240. data/js/node_modules/@waves/marshall/dist/schemas.d.ts +128 -0
  241. data/js/node_modules/@waves/marshall/dist/schemas.js +542 -0
  242. data/js/node_modules/@waves/marshall/dist/schemas.js.map +1 -0
  243. data/js/node_modules/@waves/marshall/dist/serialize.d.ts +11 -0
  244. data/js/node_modules/@waves/marshall/dist/serialize.js +102 -0
  245. data/js/node_modules/@waves/marshall/dist/serialize.js.map +1 -0
  246. data/js/node_modules/@waves/marshall/dist/serializePrimitives.d.ts +21 -0
  247. data/js/node_modules/@waves/marshall/dist/serializePrimitives.js +63 -0
  248. data/js/node_modules/@waves/marshall/dist/serializePrimitives.js.map +1 -0
  249. data/js/node_modules/@waves/marshall/package.json +45 -0
  250. data/js/node_modules/@waves/marshall/src/index.ts +51 -0
  251. data/js/node_modules/@waves/marshall/src/jsonMethods.ts +231 -0
  252. data/js/node_modules/@waves/marshall/src/libs/Utf8ArrayToStr.ts +35 -0
  253. data/js/node_modules/@waves/marshall/src/libs/base58.ts +88 -0
  254. data/js/node_modules/@waves/marshall/src/libs/utils.ts +6 -0
  255. data/js/node_modules/@waves/marshall/src/parse.ts +157 -0
  256. data/js/node_modules/@waves/marshall/src/parsePrimitives.ts +118 -0
  257. data/js/node_modules/@waves/marshall/src/schemaTypes.ts +91 -0
  258. data/js/node_modules/@waves/marshall/src/schemas.ts +630 -0
  259. data/js/node_modules/@waves/marshall/src/serialize.ts +110 -0
  260. data/js/node_modules/@waves/marshall/src/serializePrimitives.ts +80 -0
  261. data/js/node_modules/@waves/node-api-js/README.md +2 -0
  262. data/js/node_modules/@waves/node-api-js/cjs/api-node/activation/index.d.ts +21 -0
  263. data/js/node_modules/@waves/node-api-js/cjs/api-node/activation/index.js +20 -0
  264. data/js/node_modules/@waves/node-api-js/cjs/api-node/activation/index.js.map +1 -0
  265. data/js/node_modules/@waves/node-api-js/cjs/api-node/addresses/index.d.ts +81 -0
  266. data/js/node_modules/@waves/node-api-js/cjs/api-node/addresses/index.js +174 -0
  267. data/js/node_modules/@waves/node-api-js/cjs/api-node/addresses/index.js.map +1 -0
  268. data/js/node_modules/@waves/node-api-js/cjs/api-node/alias/index.d.ts +6 -0
  269. data/js/node_modules/@waves/node-api-js/cjs/api-node/alias/index.js +22 -0
  270. data/js/node_modules/@waves/node-api-js/cjs/api-node/alias/index.js.map +1 -0
  271. data/js/node_modules/@waves/node-api-js/cjs/api-node/assets/index.d.ts +79 -0
  272. data/js/node_modules/@waves/node-api-js/cjs/api-node/assets/index.js +172 -0
  273. data/js/node_modules/@waves/node-api-js/cjs/api-node/assets/index.js.map +1 -0
  274. data/js/node_modules/@waves/node-api-js/cjs/api-node/blocks/index.d.ts +131 -0
  275. data/js/node_modules/@waves/node-api-js/cjs/api-node/blocks/index.js +210 -0
  276. data/js/node_modules/@waves/node-api-js/cjs/api-node/blocks/index.js.map +1 -0
  277. data/js/node_modules/@waves/node-api-js/cjs/api-node/consensus/index.d.ts +39 -0
  278. data/js/node_modules/@waves/node-api-js/cjs/api-node/consensus/index.js +37 -0
  279. data/js/node_modules/@waves/node-api-js/cjs/api-node/consensus/index.js.map +1 -0
  280. data/js/node_modules/@waves/node-api-js/cjs/api-node/debug/index.d.ts +189 -0
  281. data/js/node_modules/@waves/node-api-js/cjs/api-node/debug/index.js +245 -0
  282. data/js/node_modules/@waves/node-api-js/cjs/api-node/debug/index.js.map +1 -0
  283. data/js/node_modules/@waves/node-api-js/cjs/api-node/eth/index.d.ts +3 -0
  284. data/js/node_modules/@waves/node-api-js/cjs/api-node/eth/index.js +15 -0
  285. data/js/node_modules/@waves/node-api-js/cjs/api-node/eth/index.js.map +1 -0
  286. data/js/node_modules/@waves/node-api-js/cjs/api-node/leasing/index.d.ts +22 -0
  287. data/js/node_modules/@waves/node-api-js/cjs/api-node/leasing/index.js +42 -0
  288. data/js/node_modules/@waves/node-api-js/cjs/api-node/leasing/index.js.map +1 -0
  289. data/js/node_modules/@waves/node-api-js/cjs/api-node/node/index.d.ts +11 -0
  290. data/js/node_modules/@waves/node-api-js/cjs/api-node/node/index.js +20 -0
  291. data/js/node_modules/@waves/node-api-js/cjs/api-node/node/index.js.map +1 -0
  292. data/js/node_modules/@waves/node-api-js/cjs/api-node/peers/index.d.ts +46 -0
  293. data/js/node_modules/@waves/node-api-js/cjs/api-node/peers/index.js +60 -0
  294. data/js/node_modules/@waves/node-api-js/cjs/api-node/peers/index.js.map +1 -0
  295. data/js/node_modules/@waves/node-api-js/cjs/api-node/rewards/index.d.ts +21 -0
  296. data/js/node_modules/@waves/node-api-js/cjs/api-node/rewards/index.js +21 -0
  297. data/js/node_modules/@waves/node-api-js/cjs/api-node/rewards/index.js.map +1 -0
  298. data/js/node_modules/@waves/node-api-js/cjs/api-node/transactions/index.d.ts +73 -0
  299. data/js/node_modules/@waves/node-api-js/cjs/api-node/transactions/index.js +193 -0
  300. data/js/node_modules/@waves/node-api-js/cjs/api-node/transactions/index.js.map +1 -0
  301. data/js/node_modules/@waves/node-api-js/cjs/api-node/utils/index.d.ts +110 -0
  302. data/js/node_modules/@waves/node-api-js/cjs/api-node/utils/index.js +211 -0
  303. data/js/node_modules/@waves/node-api-js/cjs/api-node/utils/index.js.map +1 -0
  304. data/js/node_modules/@waves/node-api-js/cjs/api-node/wallet/index.d.ts +5 -0
  305. data/js/node_modules/@waves/node-api-js/cjs/api-node/wallet/index.js +7 -0
  306. data/js/node_modules/@waves/node-api-js/cjs/api-node/wallet/index.js.map +1 -0
  307. data/js/node_modules/@waves/node-api-js/cjs/constants.d.ts +40 -0
  308. data/js/node_modules/@waves/node-api-js/cjs/constants.js +43 -0
  309. data/js/node_modules/@waves/node-api-js/cjs/constants.js.map +1 -0
  310. data/js/node_modules/@waves/node-api-js/cjs/create.d.ts +1240 -0
  311. data/js/node_modules/@waves/node-api-js/cjs/create.js +119 -0
  312. data/js/node_modules/@waves/node-api-js/cjs/create.js.map +1 -0
  313. data/js/node_modules/@waves/node-api-js/cjs/index.d.ts +9 -0
  314. data/js/node_modules/@waves/node-api-js/cjs/index.js +18 -0
  315. data/js/node_modules/@waves/node-api-js/cjs/index.js.map +1 -0
  316. data/js/node_modules/@waves/node-api-js/cjs/interface.d.ts +44 -0
  317. data/js/node_modules/@waves/node-api-js/cjs/interface.js +10 -0
  318. data/js/node_modules/@waves/node-api-js/cjs/interface.js.map +1 -0
  319. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/availableSponsoredBalances.d.ts +7 -0
  320. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/availableSponsoredBalances.js +30 -0
  321. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/availableSponsoredBalances.js.map +1 -0
  322. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/ethAddress2waves.d.ts +1 -0
  323. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/ethAddress2waves.js +47 -0
  324. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/ethAddress2waves.js.map +1 -0
  325. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetIdListByTx.d.ts +2 -0
  326. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetIdListByTx.js +48 -0
  327. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetIdListByTx.js.map +1 -0
  328. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetsByTransaction.d.ts +3 -0
  329. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetsByTransaction.js +14 -0
  330. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetsByTransaction.js.map +1 -0
  331. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getTransactionsWithAssets.d.ts +6 -0
  332. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getTransactionsWithAssets.js +13 -0
  333. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getTransactionsWithAssets.js.map +1 -0
  334. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/watch.d.ts +24 -0
  335. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/watch.js +168 -0
  336. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/watch.js.map +1 -0
  337. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/wavesAddress2eth.d.ts +1 -0
  338. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/wavesAddress2eth.js +10 -0
  339. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/wavesAddress2eth.js.map +1 -0
  340. data/js/node_modules/@waves/node-api-js/cjs/tools/assets/wavesAsset2eth.d.ts +1 -0
  341. data/js/node_modules/@waves/node-api-js/cjs/tools/assets/wavesAsset2eth.js +10 -0
  342. data/js/node_modules/@waves/node-api-js/cjs/tools/assets/wavesAsset2eth.js.map +1 -0
  343. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/detectInterval.d.ts +1 -0
  344. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/detectInterval.js +12 -0
  345. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/detectInterval.js.map +1 -0
  346. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkByte.d.ts +1 -0
  347. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkByte.js +54 -0
  348. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkByte.js.map +1 -0
  349. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkCode.d.ts +1 -0
  350. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkCode.js +11 -0
  351. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkCode.js.map +1 -0
  352. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/waitHeight.d.ts +3 -0
  353. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/waitHeight.js +65 -0
  354. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/waitHeight.js.map +1 -0
  355. data/js/node_modules/@waves/node-api-js/cjs/tools/parse.d.ts +1 -0
  356. data/js/node_modules/@waves/node-api-js/cjs/tools/parse.js +8 -0
  357. data/js/node_modules/@waves/node-api-js/cjs/tools/parse.js.map +1 -0
  358. data/js/node_modules/@waves/node-api-js/cjs/tools/query.d.ts +4 -0
  359. data/js/node_modules/@waves/node-api-js/cjs/tools/query.js +41 -0
  360. data/js/node_modules/@waves/node-api-js/cjs/tools/query.js.map +1 -0
  361. data/js/node_modules/@waves/node-api-js/cjs/tools/request.d.ts +64 -0
  362. data/js/node_modules/@waves/node-api-js/cjs/tools/request.js +42 -0
  363. data/js/node_modules/@waves/node-api-js/cjs/tools/request.js.map +1 -0
  364. data/js/node_modules/@waves/node-api-js/cjs/tools/resolve.d.ts +1 -0
  365. data/js/node_modules/@waves/node-api-js/cjs/tools/resolve.js +7 -0
  366. data/js/node_modules/@waves/node-api-js/cjs/tools/resolve.js.map +1 -0
  367. data/js/node_modules/@waves/node-api-js/cjs/tools/stringify.d.ts +1 -0
  368. data/js/node_modules/@waves/node-api-js/cjs/tools/stringify.js +21 -0
  369. data/js/node_modules/@waves/node-api-js/cjs/tools/stringify.js.map +1 -0
  370. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/broadcast.d.ts +14 -0
  371. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/broadcast.js +60 -0
  372. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/broadcast.js.map +1 -0
  373. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/ethTxId2waves.d.ts +1 -0
  374. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/ethTxId2waves.js +11 -0
  375. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/ethTxId2waves.js.map +1 -0
  376. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/transactions.d.ts +0 -0
  377. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/transactions.js +2 -0
  378. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/transactions.js.map +1 -0
  379. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/wait.d.ts +10 -0
  380. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/wait.js +42 -0
  381. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/wait.js.map +1 -0
  382. data/js/node_modules/@waves/node-api-js/cjs/tools/utils.d.ts +32 -0
  383. data/js/node_modules/@waves/node-api-js/cjs/tools/utils.js +118 -0
  384. data/js/node_modules/@waves/node-api-js/cjs/tools/utils.js.map +1 -0
  385. data/js/node_modules/@waves/node-api-js/dist/0.node-api.js +467 -0
  386. data/js/node_modules/@waves/node-api-js/dist/node-api.js +30544 -0
  387. data/js/node_modules/@waves/node-api-js/dist/node-api.min.js +26 -0
  388. data/js/node_modules/@waves/node-api-js/dist/node-api.min.js.LICENSE.txt +17 -0
  389. data/js/node_modules/@waves/node-api-js/dist/node_fs-node_path.node-api.js +23 -0
  390. data/js/node_modules/@waves/node-api-js/dist/vendors-node_modules_node-fetch_src_utils_multipart-parser_js.node-api.js +599 -0
  391. data/js/node_modules/@waves/node-api-js/es/api-node/activation/index.d.ts +21 -0
  392. data/js/node_modules/@waves/node-api-js/es/api-node/activation/index.js +13 -0
  393. data/js/node_modules/@waves/node-api-js/es/api-node/activation/index.js.map +1 -0
  394. data/js/node_modules/@waves/node-api-js/es/api-node/addresses/index.d.ts +81 -0
  395. data/js/node_modules/@waves/node-api-js/es/api-node/addresses/index.js +111 -0
  396. data/js/node_modules/@waves/node-api-js/es/api-node/addresses/index.js.map +1 -0
  397. data/js/node_modules/@waves/node-api-js/es/api-node/alias/index.d.ts +6 -0
  398. data/js/node_modules/@waves/node-api-js/es/api-node/alias/index.js +14 -0
  399. data/js/node_modules/@waves/node-api-js/es/api-node/alias/index.js.map +1 -0
  400. data/js/node_modules/@waves/node-api-js/es/api-node/assets/index.d.ts +79 -0
  401. data/js/node_modules/@waves/node-api-js/es/api-node/assets/index.js +103 -0
  402. data/js/node_modules/@waves/node-api-js/es/api-node/assets/index.js.map +1 -0
  403. data/js/node_modules/@waves/node-api-js/es/api-node/blocks/index.d.ts +131 -0
  404. data/js/node_modules/@waves/node-api-js/es/api-node/blocks/index.js +179 -0
  405. data/js/node_modules/@waves/node-api-js/es/api-node/blocks/index.js.map +1 -0
  406. data/js/node_modules/@waves/node-api-js/es/api-node/consensus/index.d.ts +39 -0
  407. data/js/node_modules/@waves/node-api-js/es/api-node/consensus/index.js +27 -0
  408. data/js/node_modules/@waves/node-api-js/es/api-node/consensus/index.js.map +1 -0
  409. data/js/node_modules/@waves/node-api-js/es/api-node/debug/index.d.ts +189 -0
  410. data/js/node_modules/@waves/node-api-js/es/api-node/debug/index.js +201 -0
  411. data/js/node_modules/@waves/node-api-js/es/api-node/debug/index.js.map +1 -0
  412. data/js/node_modules/@waves/node-api-js/es/api-node/eth/index.d.ts +3 -0
  413. data/js/node_modules/@waves/node-api-js/es/api-node/eth/index.js +8 -0
  414. data/js/node_modules/@waves/node-api-js/es/api-node/eth/index.js.map +1 -0
  415. data/js/node_modules/@waves/node-api-js/es/api-node/leasing/index.d.ts +22 -0
  416. data/js/node_modules/@waves/node-api-js/es/api-node/leasing/index.js +22 -0
  417. data/js/node_modules/@waves/node-api-js/es/api-node/leasing/index.js.map +1 -0
  418. data/js/node_modules/@waves/node-api-js/es/api-node/node/index.d.ts +11 -0
  419. data/js/node_modules/@waves/node-api-js/es/api-node/node/index.js +10 -0
  420. data/js/node_modules/@waves/node-api-js/es/api-node/node/index.js.map +1 -0
  421. data/js/node_modules/@waves/node-api-js/es/api-node/peers/index.d.ts +46 -0
  422. data/js/node_modules/@waves/node-api-js/es/api-node/peers/index.js +46 -0
  423. data/js/node_modules/@waves/node-api-js/es/api-node/peers/index.js.map +1 -0
  424. data/js/node_modules/@waves/node-api-js/es/api-node/rewards/index.d.ts +21 -0
  425. data/js/node_modules/@waves/node-api-js/es/api-node/rewards/index.js +13 -0
  426. data/js/node_modules/@waves/node-api-js/es/api-node/rewards/index.js.map +1 -0
  427. data/js/node_modules/@waves/node-api-js/es/api-node/transactions/index.d.ts +73 -0
  428. data/js/node_modules/@waves/node-api-js/es/api-node/transactions/index.js +137 -0
  429. data/js/node_modules/@waves/node-api-js/es/api-node/transactions/index.js.map +1 -0
  430. data/js/node_modules/@waves/node-api-js/es/api-node/utils/index.d.ts +110 -0
  431. data/js/node_modules/@waves/node-api-js/es/api-node/utils/index.js +193 -0
  432. data/js/node_modules/@waves/node-api-js/es/api-node/utils/index.js.map +1 -0
  433. data/js/node_modules/@waves/node-api-js/es/api-node/wallet/index.d.ts +5 -0
  434. data/js/node_modules/@waves/node-api-js/es/api-node/wallet/index.js +7 -0
  435. data/js/node_modules/@waves/node-api-js/es/api-node/wallet/index.js.map +1 -0
  436. data/js/node_modules/@waves/node-api-js/es/constants.d.ts +40 -0
  437. data/js/node_modules/@waves/node-api-js/es/constants.js +40 -0
  438. data/js/node_modules/@waves/node-api-js/es/constants.js.map +1 -0
  439. data/js/node_modules/@waves/node-api-js/es/create.d.ts +1240 -0
  440. data/js/node_modules/@waves/node-api-js/es/create.js +93 -0
  441. data/js/node_modules/@waves/node-api-js/es/create.js.map +1 -0
  442. data/js/node_modules/@waves/node-api-js/es/index.d.ts +9 -0
  443. data/js/node_modules/@waves/node-api-js/es/index.js +9 -0
  444. data/js/node_modules/@waves/node-api-js/es/index.js.map +1 -0
  445. data/js/node_modules/@waves/node-api-js/es/interface.d.ts +44 -0
  446. data/js/node_modules/@waves/node-api-js/es/interface.js +3 -0
  447. data/js/node_modules/@waves/node-api-js/es/interface.js.map +1 -0
  448. data/js/node_modules/@waves/node-api-js/es/tools/adresses/availableSponsoredBalances.d.ts +7 -0
  449. data/js/node_modules/@waves/node-api-js/es/tools/adresses/availableSponsoredBalances.js +27 -0
  450. data/js/node_modules/@waves/node-api-js/es/tools/adresses/availableSponsoredBalances.js.map +1 -0
  451. data/js/node_modules/@waves/node-api-js/es/tools/adresses/ethAddress2waves.d.ts +1 -0
  452. data/js/node_modules/@waves/node-api-js/es/tools/adresses/ethAddress2waves.js +31 -0
  453. data/js/node_modules/@waves/node-api-js/es/tools/adresses/ethAddress2waves.js.map +1 -0
  454. data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetIdListByTx.d.ts +2 -0
  455. data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetIdListByTx.js +24 -0
  456. data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetIdListByTx.js.map +1 -0
  457. data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetsByTransaction.d.ts +3 -0
  458. data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetsByTransaction.js +8 -0
  459. data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetsByTransaction.js.map +1 -0
  460. data/js/node_modules/@waves/node-api-js/es/tools/adresses/getTransactionsWithAssets.d.ts +6 -0
  461. data/js/node_modules/@waves/node-api-js/es/tools/adresses/getTransactionsWithAssets.js +7 -0
  462. data/js/node_modules/@waves/node-api-js/es/tools/adresses/getTransactionsWithAssets.js.map +1 -0
  463. data/js/node_modules/@waves/node-api-js/es/tools/adresses/watch.d.ts +24 -0
  464. data/js/node_modules/@waves/node-api-js/es/tools/adresses/watch.js +134 -0
  465. data/js/node_modules/@waves/node-api-js/es/tools/adresses/watch.js.map +1 -0
  466. data/js/node_modules/@waves/node-api-js/es/tools/adresses/wavesAddress2eth.d.ts +1 -0
  467. data/js/node_modules/@waves/node-api-js/es/tools/adresses/wavesAddress2eth.js +7 -0
  468. data/js/node_modules/@waves/node-api-js/es/tools/adresses/wavesAddress2eth.js.map +1 -0
  469. data/js/node_modules/@waves/node-api-js/es/tools/assets/wavesAsset2eth.d.ts +1 -0
  470. data/js/node_modules/@waves/node-api-js/es/tools/assets/wavesAsset2eth.js +7 -0
  471. data/js/node_modules/@waves/node-api-js/es/tools/assets/wavesAsset2eth.js.map +1 -0
  472. data/js/node_modules/@waves/node-api-js/es/tools/blocks/detectInterval.d.ts +1 -0
  473. data/js/node_modules/@waves/node-api-js/es/tools/blocks/detectInterval.js +9 -0
  474. data/js/node_modules/@waves/node-api-js/es/tools/blocks/detectInterval.js.map +1 -0
  475. data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkByte.d.ts +1 -0
  476. data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkByte.js +51 -0
  477. data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkByte.js.map +1 -0
  478. data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkCode.d.ts +1 -0
  479. data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkCode.js +5 -0
  480. data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkCode.js.map +1 -0
  481. data/js/node_modules/@waves/node-api-js/es/tools/blocks/waitHeight.d.ts +3 -0
  482. data/js/node_modules/@waves/node-api-js/es/tools/blocks/waitHeight.js +36 -0
  483. data/js/node_modules/@waves/node-api-js/es/tools/blocks/waitHeight.js.map +1 -0
  484. data/js/node_modules/@waves/node-api-js/es/tools/parse.d.ts +1 -0
  485. data/js/node_modules/@waves/node-api-js/es/tools/parse.js +5 -0
  486. data/js/node_modules/@waves/node-api-js/es/tools/parse.js.map +1 -0
  487. data/js/node_modules/@waves/node-api-js/es/tools/query.d.ts +4 -0
  488. data/js/node_modules/@waves/node-api-js/es/tools/query.js +12 -0
  489. data/js/node_modules/@waves/node-api-js/es/tools/query.js.map +1 -0
  490. data/js/node_modules/@waves/node-api-js/es/tools/request.d.ts +64 -0
  491. data/js/node_modules/@waves/node-api-js/es/tools/request.js +22 -0
  492. data/js/node_modules/@waves/node-api-js/es/tools/request.js.map +1 -0
  493. data/js/node_modules/@waves/node-api-js/es/tools/resolve.d.ts +1 -0
  494. data/js/node_modules/@waves/node-api-js/es/tools/resolve.js +4 -0
  495. data/js/node_modules/@waves/node-api-js/es/tools/resolve.js.map +1 -0
  496. data/js/node_modules/@waves/node-api-js/es/tools/stringify.d.ts +1 -0
  497. data/js/node_modules/@waves/node-api-js/es/tools/stringify.js +18 -0
  498. data/js/node_modules/@waves/node-api-js/es/tools/stringify.js.map +1 -0
  499. data/js/node_modules/@waves/node-api-js/es/tools/transactions/broadcast.d.ts +14 -0
  500. data/js/node_modules/@waves/node-api-js/es/tools/transactions/broadcast.js +43 -0
  501. data/js/node_modules/@waves/node-api-js/es/tools/transactions/broadcast.js.map +1 -0
  502. data/js/node_modules/@waves/node-api-js/es/tools/transactions/ethTxId2waves.d.ts +1 -0
  503. data/js/node_modules/@waves/node-api-js/es/tools/transactions/ethTxId2waves.js +8 -0
  504. data/js/node_modules/@waves/node-api-js/es/tools/transactions/ethTxId2waves.js.map +1 -0
  505. data/js/node_modules/@waves/node-api-js/es/tools/transactions/transactions.d.ts +0 -0
  506. data/js/node_modules/@waves/node-api-js/es/tools/transactions/transactions.js +2 -0
  507. data/js/node_modules/@waves/node-api-js/es/tools/transactions/transactions.js.map +1 -0
  508. data/js/node_modules/@waves/node-api-js/es/tools/transactions/wait.d.ts +10 -0
  509. data/js/node_modules/@waves/node-api-js/es/tools/transactions/wait.js +39 -0
  510. data/js/node_modules/@waves/node-api-js/es/tools/transactions/wait.js.map +1 -0
  511. data/js/node_modules/@waves/node-api-js/es/tools/utils.d.ts +32 -0
  512. data/js/node_modules/@waves/node-api-js/es/tools/utils.js +73 -0
  513. data/js/node_modules/@waves/node-api-js/es/tools/utils.js.map +1 -0
  514. data/js/node_modules/@waves/node-api-js/package.json +66 -0
  515. data/js/node_modules/@waves/parse-json-bignumber/coverage/clover.xml +225 -0
  516. data/js/node_modules/@waves/parse-json-bignumber/coverage/coverage-final.json +2 -0
  517. data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/base.css +212 -0
  518. data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/index.html +93 -0
  519. data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/parse-json-bignumber.ts.html +1598 -0
  520. data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/prettify.css +1 -0
  521. data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/prettify.js +1 -0
  522. data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  523. data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/sorter.js +158 -0
  524. data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov.info +415 -0
  525. data/js/node_modules/@waves/parse-json-bignumber/dist/parse-json-bignumber.d.ts +11 -0
  526. data/js/node_modules/@waves/parse-json-bignumber/dist/parse-json-bignumber.js +412 -0
  527. data/js/node_modules/@waves/parse-json-bignumber/dist/parse-json-bignumber.min.js +1 -0
  528. data/js/node_modules/@waves/parse-json-bignumber/package.json +40 -0
  529. data/js/node_modules/@waves/parse-json-bignumber/src/parse-json-bignumber.ts +511 -0
  530. data/js/node_modules/@waves/parse-json-bignumber/test/index.ts +130 -0
  531. data/js/node_modules/@waves/parse-json-bignumber/test/tsconfig.json +14 -0
  532. data/js/node_modules/@waves/parse-json-bignumber/tsconfig.json +15 -0
  533. data/js/node_modules/@waves/protobuf-serialization/README.MD +116 -0
  534. data/js/node_modules/@waves/protobuf-serialization/dist/index.d.ts +2005 -0
  535. data/js/node_modules/@waves/protobuf-serialization/dist/index.js +6636 -0
  536. data/js/node_modules/@waves/protobuf-serialization/package.json +30 -0
  537. data/js/node_modules/@waves/protobuf-serialization/proto/waves/amount.proto +10 -0
  538. data/js/node_modules/@waves/protobuf-serialization/proto/waves/block.proto +40 -0
  539. data/js/node_modules/@waves/protobuf-serialization/proto/waves/events/events.proto +213 -0
  540. data/js/node_modules/@waves/protobuf-serialization/proto/waves/events/grpc/blockchain_updates.proto +42 -0
  541. data/js/node_modules/@waves/protobuf-serialization/proto/waves/invoke_script_result.proto +98 -0
  542. data/js/node_modules/@waves/protobuf-serialization/proto/waves/lang/dapp_meta.proto +21 -0
  543. data/js/node_modules/@waves/protobuf-serialization/proto/waves/node/grpc/accounts_api.proto +68 -0
  544. data/js/node_modules/@waves/protobuf-serialization/proto/waves/node/grpc/assets_api.proto +41 -0
  545. data/js/node_modules/@waves/protobuf-serialization/proto/waves/node/grpc/blockchain_api.proto +54 -0
  546. data/js/node_modules/@waves/protobuf-serialization/proto/waves/node/grpc/blocks_api.proto +41 -0
  547. data/js/node_modules/@waves/protobuf-serialization/proto/waves/node/grpc/transactions_api.proto +73 -0
  548. data/js/node_modules/@waves/protobuf-serialization/proto/waves/order.proto +43 -0
  549. data/js/node_modules/@waves/protobuf-serialization/proto/waves/recipient.proto +13 -0
  550. data/js/node_modules/@waves/protobuf-serialization/proto/waves/transaction.proto +156 -0
  551. data/js/node_modules/@waves/ts-lib-crypto/README.md +492 -0
  552. data/js/node_modules/@waves/ts-lib-crypto/bytes.d.ts +10 -0
  553. data/js/node_modules/@waves/ts-lib-crypto/bytes.js +21 -0
  554. data/js/node_modules/@waves/ts-lib-crypto/bytes.js.map +1 -0
  555. data/js/node_modules/@waves/ts-lib-crypto/conversions/base-xx.d.ts +7 -0
  556. data/js/node_modules/@waves/ts-lib-crypto/conversions/base-xx.js +27 -0
  557. data/js/node_modules/@waves/ts-lib-crypto/conversions/base-xx.js.map +1 -0
  558. data/js/node_modules/@waves/ts-lib-crypto/conversions/param.d.ts +3 -0
  559. data/js/node_modules/@waves/ts-lib-crypto/conversions/param.js +24 -0
  560. data/js/node_modules/@waves/ts-lib-crypto/conversions/param.js.map +1 -0
  561. data/js/node_modules/@waves/ts-lib-crypto/conversions/string-bytes.d.ts +11 -0
  562. data/js/node_modules/@waves/ts-lib-crypto/conversions/string-bytes.js +65 -0
  563. data/js/node_modules/@waves/ts-lib-crypto/conversions/string-bytes.js.map +1 -0
  564. data/js/node_modules/@waves/ts-lib-crypto/crypto/address-keys-seed.d.ts +7 -0
  565. data/js/node_modules/@waves/ts-lib-crypto/crypto/address-keys-seed.js +58 -0
  566. data/js/node_modules/@waves/ts-lib-crypto/crypto/address-keys-seed.js.map +1 -0
  567. data/js/node_modules/@waves/ts-lib-crypto/crypto/concat-split.d.ts +3 -0
  568. data/js/node_modules/@waves/ts-lib-crypto/crypto/concat-split.js +39 -0
  569. data/js/node_modules/@waves/ts-lib-crypto/crypto/concat-split.js.map +1 -0
  570. data/js/node_modules/@waves/ts-lib-crypto/crypto/crypto.d.ts +13 -0
  571. data/js/node_modules/@waves/ts-lib-crypto/crypto/crypto.js +117 -0
  572. data/js/node_modules/@waves/ts-lib-crypto/crypto/crypto.js.map +1 -0
  573. data/js/node_modules/@waves/ts-lib-crypto/crypto/encryption.d.ts +6 -0
  574. data/js/node_modules/@waves/ts-lib-crypto/crypto/encryption.js +89 -0
  575. data/js/node_modules/@waves/ts-lib-crypto/crypto/encryption.js.map +1 -0
  576. data/js/node_modules/@waves/ts-lib-crypto/crypto/hashing.d.ts +7 -0
  577. data/js/node_modules/@waves/ts-lib-crypto/crypto/hashing.js +39 -0
  578. data/js/node_modules/@waves/ts-lib-crypto/crypto/hashing.js.map +1 -0
  579. data/js/node_modules/@waves/ts-lib-crypto/crypto/interface.d.ts +98 -0
  580. data/js/node_modules/@waves/ts-lib-crypto/crypto/interface.js +9 -0
  581. data/js/node_modules/@waves/ts-lib-crypto/crypto/interface.js.map +1 -0
  582. data/js/node_modules/@waves/ts-lib-crypto/crypto/merkle-verify.d.ts +7 -0
  583. data/js/node_modules/@waves/ts-lib-crypto/crypto/merkle-verify.js +51 -0
  584. data/js/node_modules/@waves/ts-lib-crypto/crypto/merkle-verify.js.map +1 -0
  585. data/js/node_modules/@waves/ts-lib-crypto/crypto/random.d.ts +4 -0
  586. data/js/node_modules/@waves/ts-lib-crypto/crypto/random.js +51 -0
  587. data/js/node_modules/@waves/ts-lib-crypto/crypto/random.js.map +1 -0
  588. data/js/node_modules/@waves/ts-lib-crypto/crypto/rsa.d.ts +7 -0
  589. data/js/node_modules/@waves/ts-lib-crypto/crypto/rsa.js +159 -0
  590. data/js/node_modules/@waves/ts-lib-crypto/crypto/rsa.js.map +1 -0
  591. data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-ecryption.d.ts +9 -0
  592. data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-ecryption.js +62 -0
  593. data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-ecryption.js.map +1 -0
  594. data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-words-list.d.ts +1 -0
  595. data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-words-list.js +189 -0
  596. data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-words-list.js.map +1 -0
  597. data/js/node_modules/@waves/ts-lib-crypto/crypto/sign.d.ts +2 -0
  598. data/js/node_modules/@waves/ts-lib-crypto/crypto/sign.js +16 -0
  599. data/js/node_modules/@waves/ts-lib-crypto/crypto/sign.js.map +1 -0
  600. data/js/node_modules/@waves/ts-lib-crypto/crypto/util.d.ts +3 -0
  601. data/js/node_modules/@waves/ts-lib-crypto/crypto/util.js +9 -0
  602. data/js/node_modules/@waves/ts-lib-crypto/crypto/util.js.map +1 -0
  603. data/js/node_modules/@waves/ts-lib-crypto/crypto/verification.d.ts +7 -0
  604. data/js/node_modules/@waves/ts-lib-crypto/crypto/verification.js +49 -0
  605. data/js/node_modules/@waves/ts-lib-crypto/crypto/verification.js.map +1 -0
  606. data/js/node_modules/@waves/ts-lib-crypto/extensions/chain-id.d.ts +5 -0
  607. data/js/node_modules/@waves/ts-lib-crypto/extensions/chain-id.js +16 -0
  608. data/js/node_modules/@waves/ts-lib-crypto/extensions/chain-id.js.map +1 -0
  609. data/js/node_modules/@waves/ts-lib-crypto/extensions/seed.d.ts +6 -0
  610. data/js/node_modules/@waves/ts-lib-crypto/extensions/seed.js +18 -0
  611. data/js/node_modules/@waves/ts-lib-crypto/extensions/seed.js.map +1 -0
  612. data/js/node_modules/@waves/ts-lib-crypto/index.d.ts +10 -0
  613. data/js/node_modules/@waves/ts-lib-crypto/index.js +21 -0
  614. data/js/node_modules/@waves/ts-lib-crypto/index.js.map +1 -0
  615. data/js/node_modules/@waves/ts-lib-crypto/libs/Utf8.d.ts +2 -0
  616. data/js/node_modules/@waves/ts-lib-crypto/libs/Utf8.js +61 -0
  617. data/js/node_modules/@waves/ts-lib-crypto/libs/Utf8.js.map +1 -0
  618. data/js/node_modules/@waves/ts-lib-crypto/libs/axlsign.js +1374 -0
  619. data/js/node_modules/@waves/ts-lib-crypto/libs/base58.d.ts +5 -0
  620. data/js/node_modules/@waves/ts-lib-crypto/libs/base58.js +66 -0
  621. data/js/node_modules/@waves/ts-lib-crypto/libs/base58.js.map +1 -0
  622. data/js/node_modules/@waves/ts-lib-crypto/libs/blake2b.js +308 -0
  623. data/js/node_modules/@waves/ts-lib-crypto/libs/sha3.js +441 -0
  624. data/js/node_modules/@waves/ts-lib-crypto/min/waves-lib-crypto.js +33 -0
  625. data/js/node_modules/@waves/ts-lib-crypto/package.json +31 -0
  626. data/js/node_modules/@waves/ts-types/dist/src/common.d.ts +59 -0
  627. data/js/node_modules/@waves/ts-types/dist/src/common.js +53 -0
  628. data/js/node_modules/@waves/ts-types/dist/src/exchange.d.ts +47 -0
  629. data/js/node_modules/@waves/ts-types/dist/src/exchange.js +2 -0
  630. data/js/node_modules/@waves/ts-types/dist/src/index.d.ts +52 -0
  631. data/js/node_modules/@waves/ts-types/dist/src/index.js +63 -0
  632. data/js/node_modules/@waves/ts-types/dist/src/invoke.d.ts +22 -0
  633. data/js/node_modules/@waves/ts-types/dist/src/invoke.js +2 -0
  634. data/js/node_modules/@waves/ts-types/dist/src/network.d.ts +6 -0
  635. data/js/node_modules/@waves/ts-types/dist/src/network.js +10 -0
  636. data/js/node_modules/@waves/ts-types/dist/src/parts.d.ts +159 -0
  637. data/js/node_modules/@waves/ts-types/dist/src/parts.js +2 -0
  638. data/js/node_modules/@waves/ts-types/dist/transactions/index.d.ts +363 -0
  639. data/js/node_modules/@waves/ts-types/dist/transactions/index.js +3 -0
  640. data/js/node_modules/@waves/ts-types/index.ts +1 -0
  641. data/js/node_modules/@waves/ts-types/package.json +41 -0
  642. data/js/node_modules/@waves/ts-types/src/index.ts +57 -0
  643. data/js/node_modules/@waves/ts-types/src/parts.ts +247 -0
  644. data/js/node_modules/@waves/ts-types/transactions/index.ts +789 -0
  645. data/js/node_modules/@waves/ts-types/tsconfig.json +16 -0
  646. data/js/node_modules/@waves/waves-transactions/README.md +432 -0
  647. data/js/node_modules/@waves/waves-transactions/dist/defaultVersions.d.ts +18 -0
  648. data/js/node_modules/@waves/waves-transactions/dist/defaultVersions.js +22 -0
  649. data/js/node_modules/@waves/waves-transactions/dist/defaultVersions.js.map +1 -0
  650. data/js/node_modules/@waves/waves-transactions/dist/general.d.ts +68 -0
  651. data/js/node_modules/@waves/waves-transactions/dist/general.js +135 -0
  652. data/js/node_modules/@waves/waves-transactions/dist/general.js.map +1 -0
  653. data/js/node_modules/@waves/waves-transactions/dist/generic.d.ts +28 -0
  654. data/js/node_modules/@waves/waves-transactions/dist/generic.js +88 -0
  655. data/js/node_modules/@waves/waves-transactions/dist/generic.js.map +1 -0
  656. data/js/node_modules/@waves/waves-transactions/dist/index.d.ts +37 -0
  657. data/js/node_modules/@waves/waves-transactions/dist/index.js +98 -0
  658. data/js/node_modules/@waves/waves-transactions/dist/index.js.map +1 -0
  659. data/js/node_modules/@waves/waves-transactions/dist/make-tx.d.ts +50 -0
  660. data/js/node_modules/@waves/waves-transactions/dist/make-tx.js +106 -0
  661. data/js/node_modules/@waves/waves-transactions/dist/make-tx.js.map +1 -0
  662. data/js/node_modules/@waves/waves-transactions/dist/min/waves-transactions.min.js +26 -0
  663. data/js/node_modules/@waves/waves-transactions/dist/nodeInteraction.d.ts +116 -0
  664. data/js/node_modules/@waves/waves-transactions/dist/nodeInteraction.js +277 -0
  665. data/js/node_modules/@waves/waves-transactions/dist/nodeInteraction.js.map +1 -0
  666. data/js/node_modules/@waves/waves-transactions/dist/proto-serialize.d.ts +62 -0
  667. data/js/node_modules/@waves/waves-transactions/dist/proto-serialize.js +514 -0
  668. data/js/node_modules/@waves/waves-transactions/dist/proto-serialize.js.map +1 -0
  669. data/js/node_modules/@waves/waves-transactions/dist/requests/auth.d.ts +7 -0
  670. data/js/node_modules/@waves/waves-transactions/dist/requests/auth.js +31 -0
  671. data/js/node_modules/@waves/waves-transactions/dist/requests/auth.js.map +1 -0
  672. data/js/node_modules/@waves/waves-transactions/dist/requests/cancel-order.d.ts +7 -0
  673. data/js/node_modules/@waves/waves-transactions/dist/requests/cancel-order.js +29 -0
  674. data/js/node_modules/@waves/waves-transactions/dist/requests/cancel-order.js.map +1 -0
  675. data/js/node_modules/@waves/waves-transactions/dist/requests/custom-data.d.ts +40 -0
  676. data/js/node_modules/@waves/waves-transactions/dist/requests/custom-data.js +37 -0
  677. data/js/node_modules/@waves/waves-transactions/dist/requests/custom-data.js.map +1 -0
  678. data/js/node_modules/@waves/waves-transactions/dist/requests/order.d.ts +50 -0
  679. data/js/node_modules/@waves/waves-transactions/dist/requests/order.js +62 -0
  680. data/js/node_modules/@waves/waves-transactions/dist/requests/order.js.map +1 -0
  681. data/js/node_modules/@waves/waves-transactions/dist/requests/wavesAuth.d.ts +7 -0
  682. data/js/node_modules/@waves/waves-transactions/dist/requests/wavesAuth.js +31 -0
  683. data/js/node_modules/@waves/waves-transactions/dist/requests/wavesAuth.js.map +1 -0
  684. data/js/node_modules/@waves/waves-transactions/dist/seedUtils/index.d.ts +21 -0
  685. data/js/node_modules/@waves/waves-transactions/dist/seedUtils/index.js +85 -0
  686. data/js/node_modules/@waves/waves-transactions/dist/seedUtils/index.js.map +1 -0
  687. data/js/node_modules/@waves/waves-transactions/dist/transactions/alias.d.ts +8 -0
  688. data/js/node_modules/@waves/waves-transactions/dist/transactions/alias.js +35 -0
  689. data/js/node_modules/@waves/waves-transactions/dist/transactions/alias.js.map +1 -0
  690. data/js/node_modules/@waves/waves-transactions/dist/transactions/burn.d.ts +8 -0
  691. data/js/node_modules/@waves/waves-transactions/dist/transactions/burn.js +35 -0
  692. data/js/node_modules/@waves/waves-transactions/dist/transactions/burn.js.map +1 -0
  693. data/js/node_modules/@waves/waves-transactions/dist/transactions/cancel-lease.d.ts +8 -0
  694. data/js/node_modules/@waves/waves-transactions/dist/transactions/cancel-lease.js +34 -0
  695. data/js/node_modules/@waves/waves-transactions/dist/transactions/cancel-lease.js.map +1 -0
  696. data/js/node_modules/@waves/waves-transactions/dist/transactions/data.d.ts +5 -0
  697. data/js/node_modules/@waves/waves-transactions/dist/transactions/data.js +112 -0
  698. data/js/node_modules/@waves/waves-transactions/dist/transactions/data.js.map +1 -0
  699. data/js/node_modules/@waves/waves-transactions/dist/transactions/exchange.d.ts +7 -0
  700. data/js/node_modules/@waves/waves-transactions/dist/transactions/exchange.js +39 -0
  701. data/js/node_modules/@waves/waves-transactions/dist/transactions/exchange.js.map +1 -0
  702. data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-expression.d.ts +0 -0
  703. data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-expression.js +52 -0
  704. data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-expression.js.map +1 -0
  705. data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-script.d.ts +8 -0
  706. data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-script.js +43 -0
  707. data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-script.js.map +1 -0
  708. data/js/node_modules/@waves/waves-transactions/dist/transactions/issue.d.ts +8 -0
  709. data/js/node_modules/@waves/waves-transactions/dist/transactions/issue.js +42 -0
  710. data/js/node_modules/@waves/waves-transactions/dist/transactions/issue.js.map +1 -0
  711. data/js/node_modules/@waves/waves-transactions/dist/transactions/lease.d.ts +8 -0
  712. data/js/node_modules/@waves/waves-transactions/dist/transactions/lease.js +35 -0
  713. data/js/node_modules/@waves/waves-transactions/dist/transactions/lease.js.map +1 -0
  714. data/js/node_modules/@waves/waves-transactions/dist/transactions/mass-transfer.d.ts +8 -0
  715. data/js/node_modules/@waves/waves-transactions/dist/transactions/mass-transfer.js +39 -0
  716. data/js/node_modules/@waves/waves-transactions/dist/transactions/mass-transfer.js.map +1 -0
  717. data/js/node_modules/@waves/waves-transactions/dist/transactions/reissue.d.ts +8 -0
  718. data/js/node_modules/@waves/waves-transactions/dist/transactions/reissue.js +36 -0
  719. data/js/node_modules/@waves/waves-transactions/dist/transactions/reissue.js.map +1 -0
  720. data/js/node_modules/@waves/waves-transactions/dist/transactions/set-asset-script.d.ts +8 -0
  721. data/js/node_modules/@waves/waves-transactions/dist/transactions/set-asset-script.js +37 -0
  722. data/js/node_modules/@waves/waves-transactions/dist/transactions/set-asset-script.js.map +1 -0
  723. data/js/node_modules/@waves/waves-transactions/dist/transactions/set-script.d.ts +8 -0
  724. data/js/node_modules/@waves/waves-transactions/dist/transactions/set-script.js +38 -0
  725. data/js/node_modules/@waves/waves-transactions/dist/transactions/set-script.js.map +1 -0
  726. data/js/node_modules/@waves/waves-transactions/dist/transactions/sponsorship.d.ts +8 -0
  727. data/js/node_modules/@waves/waves-transactions/dist/transactions/sponsorship.js +35 -0
  728. data/js/node_modules/@waves/waves-transactions/dist/transactions/sponsorship.js.map +1 -0
  729. data/js/node_modules/@waves/waves-transactions/dist/transactions/transfer.d.ts +8 -0
  730. data/js/node_modules/@waves/waves-transactions/dist/transactions/transfer.js +38 -0
  731. data/js/node_modules/@waves/waves-transactions/dist/transactions/transfer.js.map +1 -0
  732. data/js/node_modules/@waves/waves-transactions/dist/transactions/update-asset-info.d.ts +8 -0
  733. data/js/node_modules/@waves/waves-transactions/dist/transactions/update-asset-info.js +35 -0
  734. data/js/node_modules/@waves/waves-transactions/dist/transactions/update-asset-info.js.map +1 -0
  735. data/js/node_modules/@waves/waves-transactions/dist/transactions.d.ts +277 -0
  736. data/js/node_modules/@waves/waves-transactions/dist/transactions.js +3 -0
  737. data/js/node_modules/@waves/waves-transactions/dist/transactions.js.map +1 -0
  738. data/js/node_modules/@waves/waves-transactions/dist/types.d.ts +11 -0
  739. data/js/node_modules/@waves/waves-transactions/dist/types.js +6 -0
  740. data/js/node_modules/@waves/waves-transactions/dist/types.js.map +1 -0
  741. data/js/node_modules/@waves/waves-transactions/dist/validators/alias.d.ts +1 -0
  742. data/js/node_modules/@waves/waves-transactions/dist/validators/alias.js +17 -0
  743. data/js/node_modules/@waves/waves-transactions/dist/validators/alias.js.map +1 -0
  744. data/js/node_modules/@waves/waves-transactions/dist/validators/auth.d.ts +1 -0
  745. data/js/node_modules/@waves/waves-transactions/dist/validators/auth.js +10 -0
  746. data/js/node_modules/@waves/waves-transactions/dist/validators/auth.js.map +1 -0
  747. data/js/node_modules/@waves/waves-transactions/dist/validators/burn.d.ts +1 -0
  748. data/js/node_modules/@waves/waves-transactions/dist/validators/burn.js +18 -0
  749. data/js/node_modules/@waves/waves-transactions/dist/validators/burn.js.map +1 -0
  750. data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-lease.d.ts +1 -0
  751. data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-lease.js +17 -0
  752. data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-lease.js.map +1 -0
  753. data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-order.d.ts +1 -0
  754. data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-order.js +12 -0
  755. data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-order.js.map +1 -0
  756. data/js/node_modules/@waves/waves-transactions/dist/validators/custom-data.d.ts +1 -0
  757. data/js/node_modules/@waves/waves-transactions/dist/validators/custom-data.js +16 -0
  758. data/js/node_modules/@waves/waves-transactions/dist/validators/custom-data.js.map +1 -0
  759. data/js/node_modules/@waves/waves-transactions/dist/validators/data.d.ts +2 -0
  760. data/js/node_modules/@waves/waves-transactions/dist/validators/data.js +18 -0
  761. data/js/node_modules/@waves/waves-transactions/dist/validators/data.js.map +1 -0
  762. data/js/node_modules/@waves/waves-transactions/dist/validators/exchange.d.ts +1 -0
  763. data/js/node_modules/@waves/waves-transactions/dist/validators/exchange.js +22 -0
  764. data/js/node_modules/@waves/waves-transactions/dist/validators/exchange.js.map +1 -0
  765. data/js/node_modules/@waves/waves-transactions/dist/validators/index.d.ts +24 -0
  766. data/js/node_modules/@waves/waves-transactions/dist/validators/index.js +60 -0
  767. data/js/node_modules/@waves/waves-transactions/dist/validators/index.js.map +1 -0
  768. data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-expression.d.ts +0 -0
  769. data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-expression.js +33 -0
  770. data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-expression.js.map +1 -0
  771. data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-script.d.ts +1 -0
  772. data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-script.js +20 -0
  773. data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-script.js.map +1 -0
  774. data/js/node_modules/@waves/waves-transactions/dist/validators/issue.d.ts +1 -0
  775. data/js/node_modules/@waves/waves-transactions/dist/validators/issue.js +22 -0
  776. data/js/node_modules/@waves/waves-transactions/dist/validators/issue.js.map +1 -0
  777. data/js/node_modules/@waves/waves-transactions/dist/validators/lease.d.ts +1 -0
  778. data/js/node_modules/@waves/waves-transactions/dist/validators/lease.js +17 -0
  779. data/js/node_modules/@waves/waves-transactions/dist/validators/lease.js.map +1 -0
  780. data/js/node_modules/@waves/waves-transactions/dist/validators/mass-transfer.d.ts +1 -0
  781. data/js/node_modules/@waves/waves-transactions/dist/validators/mass-transfer.js +18 -0
  782. data/js/node_modules/@waves/waves-transactions/dist/validators/mass-transfer.js.map +1 -0
  783. data/js/node_modules/@waves/waves-transactions/dist/validators/order.d.ts +1 -0
  784. data/js/node_modules/@waves/waves-transactions/dist/validators/order.js +34 -0
  785. data/js/node_modules/@waves/waves-transactions/dist/validators/order.js.map +1 -0
  786. data/js/node_modules/@waves/waves-transactions/dist/validators/reissue.d.ts +1 -0
  787. data/js/node_modules/@waves/waves-transactions/dist/validators/reissue.js +19 -0
  788. data/js/node_modules/@waves/waves-transactions/dist/validators/reissue.js.map +1 -0
  789. data/js/node_modules/@waves/waves-transactions/dist/validators/set-asset-script.d.ts +1 -0
  790. data/js/node_modules/@waves/waves-transactions/dist/validators/set-asset-script.js +18 -0
  791. data/js/node_modules/@waves/waves-transactions/dist/validators/set-asset-script.js.map +1 -0
  792. data/js/node_modules/@waves/waves-transactions/dist/validators/set-script.d.ts +1 -0
  793. data/js/node_modules/@waves/waves-transactions/dist/validators/set-script.js +17 -0
  794. data/js/node_modules/@waves/waves-transactions/dist/validators/set-script.js.map +1 -0
  795. data/js/node_modules/@waves/waves-transactions/dist/validators/sponsorship.d.ts +1 -0
  796. data/js/node_modules/@waves/waves-transactions/dist/validators/sponsorship.js +17 -0
  797. data/js/node_modules/@waves/waves-transactions/dist/validators/sponsorship.js.map +1 -0
  798. data/js/node_modules/@waves/waves-transactions/dist/validators/transfer.d.ts +1 -0
  799. data/js/node_modules/@waves/waves-transactions/dist/validators/transfer.js +20 -0
  800. data/js/node_modules/@waves/waves-transactions/dist/validators/transfer.js.map +1 -0
  801. data/js/node_modules/@waves/waves-transactions/dist/validators/update-asset-info.d.ts +1 -0
  802. data/js/node_modules/@waves/waves-transactions/dist/validators/update-asset-info.js +18 -0
  803. data/js/node_modules/@waves/waves-transactions/dist/validators/update-asset-info.js.map +1 -0
  804. data/js/node_modules/@waves/waves-transactions/dist/validators/validators.d.ts +52 -0
  805. data/js/node_modules/@waves/waves-transactions/dist/validators/validators.js +160 -0
  806. data/js/node_modules/@waves/waves-transactions/dist/validators/validators.js.map +1 -0
  807. data/js/node_modules/@waves/waves-transactions/dist/validators/wavesAuth.d.ts +1 -0
  808. data/js/node_modules/@waves/waves-transactions/dist/validators/wavesAuth.js +10 -0
  809. data/js/node_modules/@waves/waves-transactions/dist/validators/wavesAuth.js.map +1 -0
  810. data/js/node_modules/@waves/waves-transactions/package.json +83 -0
  811. data/js/node_modules/@waves/waves-transactions/src/defaultVersions.ts +18 -0
  812. data/js/node_modules/@waves/waves-transactions/src/general.ts +165 -0
  813. data/js/node_modules/@waves/waves-transactions/src/generic.ts +88 -0
  814. data/js/node_modules/@waves/waves-transactions/src/index.ts +87 -0
  815. data/js/node_modules/@waves/waves-transactions/src/make-tx.ts +179 -0
  816. data/js/node_modules/@waves/waves-transactions/src/nodeInteraction.ts +297 -0
  817. data/js/node_modules/@waves/waves-transactions/src/proto-serialize.ts +571 -0
  818. data/js/node_modules/@waves/waves-transactions/src/requests/auth.ts +42 -0
  819. data/js/node_modules/@waves/waves-transactions/src/requests/cancel-order.ts +37 -0
  820. data/js/node_modules/@waves/waves-transactions/src/requests/custom-data.ts +73 -0
  821. data/js/node_modules/@waves/waves-transactions/src/requests/order.ts +121 -0
  822. data/js/node_modules/@waves/waves-transactions/src/requests/wavesAuth.ts +40 -0
  823. data/js/node_modules/@waves/waves-transactions/src/seedUtils/index.ts +124 -0
  824. data/js/node_modules/@waves/waves-transactions/src/transactions/alias.ts +46 -0
  825. data/js/node_modules/@waves/waves-transactions/src/transactions/burn.ts +45 -0
  826. data/js/node_modules/@waves/waves-transactions/src/transactions/cancel-lease.ts +44 -0
  827. data/js/node_modules/@waves/waves-transactions/src/transactions/data.ts +122 -0
  828. data/js/node_modules/@waves/waves-transactions/src/transactions/exchange.ts +47 -0
  829. data/js/node_modules/@waves/waves-transactions/src/transactions/invoke-expression.ts +50 -0
  830. data/js/node_modules/@waves/waves-transactions/src/transactions/invoke-script.ts +54 -0
  831. data/js/node_modules/@waves/waves-transactions/src/transactions/issue.ts +52 -0
  832. data/js/node_modules/@waves/waves-transactions/src/transactions/lease.ts +45 -0
  833. data/js/node_modules/@waves/waves-transactions/src/transactions/mass-transfer.ts +55 -0
  834. data/js/node_modules/@waves/waves-transactions/src/transactions/reissue.ts +46 -0
  835. data/js/node_modules/@waves/waves-transactions/src/transactions/set-asset-script.ts +57 -0
  836. data/js/node_modules/@waves/waves-transactions/src/transactions/set-script.ts +54 -0
  837. data/js/node_modules/@waves/waves-transactions/src/transactions/sponsorship.ts +45 -0
  838. data/js/node_modules/@waves/waves-transactions/src/transactions/transfer.ts +55 -0
  839. data/js/node_modules/@waves/waves-transactions/src/transactions/update-asset-info.ts +44 -0
  840. data/js/node_modules/@waves/waves-transactions/src/transactions.ts +352 -0
  841. data/js/node_modules/@waves/waves-transactions/src/types.ts +12 -0
  842. data/js/node_modules/@waves/waves-transactions/src/validators/alias.ts +28 -0
  843. data/js/node_modules/@waves/waves-transactions/src/validators/auth.ts +14 -0
  844. data/js/node_modules/@waves/waves-transactions/src/validators/burn.ts +29 -0
  845. data/js/node_modules/@waves/waves-transactions/src/validators/cancel-lease.ts +27 -0
  846. data/js/node_modules/@waves/waves-transactions/src/validators/cancel-order.ts +17 -0
  847. data/js/node_modules/@waves/waves-transactions/src/validators/custom-data.ts +40 -0
  848. data/js/node_modules/@waves/waves-transactions/src/validators/data.ts +33 -0
  849. data/js/node_modules/@waves/waves-transactions/src/validators/exchange.ts +36 -0
  850. data/js/node_modules/@waves/waves-transactions/src/validators/index.ts +50 -0
  851. data/js/node_modules/@waves/waves-transactions/src/validators/invoke-expression.ts +31 -0
  852. data/js/node_modules/@waves/waves-transactions/src/validators/invoke-script.ts +64 -0
  853. data/js/node_modules/@waves/waves-transactions/src/validators/issue.ts +41 -0
  854. data/js/node_modules/@waves/waves-transactions/src/validators/lease.ts +29 -0
  855. data/js/node_modules/@waves/waves-transactions/src/validators/mass-transfer.ts +47 -0
  856. data/js/node_modules/@waves/waves-transactions/src/validators/order.ts +68 -0
  857. data/js/node_modules/@waves/waves-transactions/src/validators/reissue.ts +31 -0
  858. data/js/node_modules/@waves/waves-transactions/src/validators/set-asset-script.ts +28 -0
  859. data/js/node_modules/@waves/waves-transactions/src/validators/set-script.ts +28 -0
  860. data/js/node_modules/@waves/waves-transactions/src/validators/sponsorship.ts +28 -0
  861. data/js/node_modules/@waves/waves-transactions/src/validators/transfer.ts +32 -0
  862. data/js/node_modules/@waves/waves-transactions/src/validators/update-asset-info.ts +32 -0
  863. data/js/node_modules/@waves/waves-transactions/src/validators/validators.ts +306 -0
  864. data/js/node_modules/@waves/waves-transactions/src/validators/wavesAuth.ts +15 -0
  865. data/js/node_modules/asynckit/LICENSE +21 -0
  866. data/js/node_modules/asynckit/README.md +233 -0
  867. data/js/node_modules/asynckit/bench.js +76 -0
  868. data/js/node_modules/asynckit/index.js +6 -0
  869. data/js/node_modules/asynckit/lib/abort.js +29 -0
  870. data/js/node_modules/asynckit/lib/async.js +34 -0
  871. data/js/node_modules/asynckit/lib/defer.js +26 -0
  872. data/js/node_modules/asynckit/lib/iterate.js +75 -0
  873. data/js/node_modules/asynckit/lib/readable_asynckit.js +91 -0
  874. data/js/node_modules/asynckit/lib/readable_parallel.js +25 -0
  875. data/js/node_modules/asynckit/lib/readable_serial.js +25 -0
  876. data/js/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
  877. data/js/node_modules/asynckit/lib/state.js +37 -0
  878. data/js/node_modules/asynckit/lib/streamify.js +141 -0
  879. data/js/node_modules/asynckit/lib/terminator.js +29 -0
  880. data/js/node_modules/asynckit/package.json +63 -0
  881. data/js/node_modules/asynckit/parallel.js +43 -0
  882. data/js/node_modules/asynckit/serial.js +17 -0
  883. data/js/node_modules/asynckit/serialOrdered.js +75 -0
  884. data/js/node_modules/asynckit/stream.js +21 -0
  885. data/js/node_modules/axios/CHANGELOG.md +413 -0
  886. data/js/node_modules/axios/LICENSE +19 -0
  887. data/js/node_modules/axios/README.md +709 -0
  888. data/js/node_modules/axios/UPGRADE_GUIDE.md +162 -0
  889. data/js/node_modules/axios/dist/axios.js +1715 -0
  890. data/js/node_modules/axios/dist/axios.map +1 -0
  891. data/js/node_modules/axios/dist/axios.min.js +3 -0
  892. data/js/node_modules/axios/dist/axios.min.map +1 -0
  893. data/js/node_modules/axios/index.d.ts +157 -0
  894. data/js/node_modules/axios/index.js +1 -0
  895. data/js/node_modules/axios/lib/adapters/README.md +37 -0
  896. data/js/node_modules/axios/lib/adapters/http.js +279 -0
  897. data/js/node_modules/axios/lib/adapters/xhr.js +180 -0
  898. data/js/node_modules/axios/lib/axios.js +53 -0
  899. data/js/node_modules/axios/lib/cancel/Cancel.js +19 -0
  900. data/js/node_modules/axios/lib/cancel/CancelToken.js +57 -0
  901. data/js/node_modules/axios/lib/cancel/isCancel.js +5 -0
  902. data/js/node_modules/axios/lib/core/Axios.js +94 -0
  903. data/js/node_modules/axios/lib/core/InterceptorManager.js +52 -0
  904. data/js/node_modules/axios/lib/core/README.md +7 -0
  905. data/js/node_modules/axios/lib/core/buildFullPath.js +20 -0
  906. data/js/node_modules/axios/lib/core/createError.js +18 -0
  907. data/js/node_modules/axios/lib/core/dispatchRequest.js +79 -0
  908. data/js/node_modules/axios/lib/core/enhanceError.js +42 -0
  909. data/js/node_modules/axios/lib/core/mergeConfig.js +73 -0
  910. data/js/node_modules/axios/lib/core/settle.js +25 -0
  911. data/js/node_modules/axios/lib/core/transformData.js +20 -0
  912. data/js/node_modules/axios/lib/defaults.js +97 -0
  913. data/js/node_modules/axios/lib/helpers/README.md +7 -0
  914. data/js/node_modules/axios/lib/helpers/bind.js +11 -0
  915. data/js/node_modules/axios/lib/helpers/buildURL.js +71 -0
  916. data/js/node_modules/axios/lib/helpers/combineURLs.js +14 -0
  917. data/js/node_modules/axios/lib/helpers/cookies.js +53 -0
  918. data/js/node_modules/axios/lib/helpers/deprecatedMethod.js +24 -0
  919. data/js/node_modules/axios/lib/helpers/isAbsoluteURL.js +14 -0
  920. data/js/node_modules/axios/lib/helpers/isURLSameOrigin.js +68 -0
  921. data/js/node_modules/axios/lib/helpers/normalizeHeaderName.js +12 -0
  922. data/js/node_modules/axios/lib/helpers/parseHeaders.js +53 -0
  923. data/js/node_modules/axios/lib/helpers/spread.js +27 -0
  924. data/js/node_modules/axios/lib/utils.js +344 -0
  925. data/js/node_modules/axios/package.json +84 -0
  926. data/js/node_modules/base64-js/LICENSE +21 -0
  927. data/js/node_modules/base64-js/README.md +34 -0
  928. data/js/node_modules/base64-js/base64js.min.js +1 -0
  929. data/js/node_modules/base64-js/index.d.ts +3 -0
  930. data/js/node_modules/base64-js/index.js +150 -0
  931. data/js/node_modules/base64-js/package.json +47 -0
  932. data/js/node_modules/bignumber.js/CHANGELOG.md +290 -0
  933. data/js/node_modules/bignumber.js/LICENCE.md +26 -0
  934. data/js/node_modules/bignumber.js/README.md +286 -0
  935. data/js/node_modules/bignumber.js/bignumber.d.ts +1831 -0
  936. data/js/node_modules/bignumber.js/bignumber.js +2926 -0
  937. data/js/node_modules/bignumber.js/bignumber.mjs +2889 -0
  938. data/js/node_modules/bignumber.js/doc/API.html +2249 -0
  939. data/js/node_modules/bignumber.js/package.json +50 -0
  940. data/js/node_modules/combined-stream/License +19 -0
  941. data/js/node_modules/combined-stream/Readme.md +138 -0
  942. data/js/node_modules/combined-stream/lib/combined_stream.js +208 -0
  943. data/js/node_modules/combined-stream/package.json +25 -0
  944. data/js/node_modules/combined-stream/yarn.lock +17 -0
  945. data/js/node_modules/debug/CHANGELOG.md +395 -0
  946. data/js/node_modules/debug/LICENSE +19 -0
  947. data/js/node_modules/debug/Makefile +58 -0
  948. data/js/node_modules/debug/README.md +368 -0
  949. data/js/node_modules/debug/karma.conf.js +70 -0
  950. data/js/node_modules/debug/node.js +1 -0
  951. data/js/node_modules/debug/package.json +43 -0
  952. data/js/node_modules/debug/src/browser.js +195 -0
  953. data/js/node_modules/debug/src/debug.js +225 -0
  954. data/js/node_modules/debug/src/index.js +10 -0
  955. data/js/node_modules/debug/src/node.js +186 -0
  956. data/js/node_modules/delayed-stream/License +19 -0
  957. data/js/node_modules/delayed-stream/Makefile +7 -0
  958. data/js/node_modules/delayed-stream/Readme.md +141 -0
  959. data/js/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
  960. data/js/node_modules/delayed-stream/package.json +27 -0
  961. data/js/node_modules/follow-redirects/LICENSE +18 -0
  962. data/js/node_modules/follow-redirects/README.md +155 -0
  963. data/js/node_modules/follow-redirects/http.js +1 -0
  964. data/js/node_modules/follow-redirects/https.js +1 -0
  965. data/js/node_modules/follow-redirects/index.js +322 -0
  966. data/js/node_modules/follow-redirects/package.json +60 -0
  967. data/js/node_modules/form-data/License +19 -0
  968. data/js/node_modules/form-data/README.md.bak +356 -0
  969. data/js/node_modules/form-data/Readme.md +356 -0
  970. data/js/node_modules/form-data/index.d.ts +62 -0
  971. data/js/node_modules/form-data/lib/browser.js +2 -0
  972. data/js/node_modules/form-data/lib/form_data.js +498 -0
  973. data/js/node_modules/form-data/lib/populate.js +10 -0
  974. data/js/node_modules/form-data/package.json +68 -0
  975. data/js/node_modules/js-sha3/CHANGELOG.md +106 -0
  976. data/js/node_modules/js-sha3/LICENSE.txt +20 -0
  977. data/js/node_modules/js-sha3/README.md +241 -0
  978. data/js/node_modules/js-sha3/build/sha3.min.js +9 -0
  979. data/js/node_modules/js-sha3/index.d.ts +317 -0
  980. data/js/node_modules/js-sha3/package.json +45 -0
  981. data/js/node_modules/js-sha3/src/sha3.js +656 -0
  982. data/js/node_modules/long/LICENSE +202 -0
  983. data/js/node_modules/long/README.md +246 -0
  984. data/js/node_modules/long/dist/long.js +2 -0
  985. data/js/node_modules/long/dist/long.js.map +1 -0
  986. data/js/node_modules/long/index.js +1 -0
  987. data/js/node_modules/long/package.json +34 -0
  988. data/js/node_modules/long/src/long.js +1323 -0
  989. data/js/node_modules/mime-db/HISTORY.md +507 -0
  990. data/js/node_modules/mime-db/LICENSE +23 -0
  991. data/js/node_modules/mime-db/README.md +100 -0
  992. data/js/node_modules/mime-db/db.json +8519 -0
  993. data/js/node_modules/mime-db/index.js +12 -0
  994. data/js/node_modules/mime-db/package.json +60 -0
  995. data/js/node_modules/mime-types/HISTORY.md +397 -0
  996. data/js/node_modules/mime-types/LICENSE +23 -0
  997. data/js/node_modules/mime-types/README.md +113 -0
  998. data/js/node_modules/mime-types/index.js +188 -0
  999. data/js/node_modules/mime-types/package.json +44 -0
  1000. data/js/node_modules/ms/index.js +152 -0
  1001. data/js/node_modules/ms/license.md +21 -0
  1002. data/js/node_modules/ms/package.json +37 -0
  1003. data/js/node_modules/ms/readme.md +51 -0
  1004. data/js/node_modules/node-fetch/LICENSE.md +22 -0
  1005. data/js/node_modules/node-fetch/README.md +633 -0
  1006. data/js/node_modules/node-fetch/browser.js +25 -0
  1007. data/js/node_modules/node-fetch/lib/index.es.js +1781 -0
  1008. data/js/node_modules/node-fetch/lib/index.js +1790 -0
  1009. data/js/node_modules/node-fetch/lib/index.mjs +1779 -0
  1010. data/js/node_modules/node-fetch/package.json +89 -0
  1011. data/js/node_modules/node-forge/CHANGELOG.md +211 -0
  1012. data/js/node_modules/node-forge/LICENSE +331 -0
  1013. data/js/node_modules/node-forge/README.md +2097 -0
  1014. data/js/node_modules/node-forge/dist/forge.all.min.js +2 -0
  1015. data/js/node_modules/node-forge/dist/forge.all.min.js.map +1 -0
  1016. data/js/node_modules/node-forge/dist/forge.min.js +2 -0
  1017. data/js/node_modules/node-forge/dist/forge.min.js.map +1 -0
  1018. data/js/node_modules/node-forge/dist/prime.worker.min.js +2 -0
  1019. data/js/node_modules/node-forge/dist/prime.worker.min.js.map +1 -0
  1020. data/js/node_modules/node-forge/flash/README.md +48 -0
  1021. data/js/node_modules/node-forge/flash/package.json +28 -0
  1022. data/js/node_modules/node-forge/flash/swf/SocketPool.swf +0 -0
  1023. data/js/node_modules/node-forge/lib/aes.js +1091 -0
  1024. data/js/node_modules/node-forge/lib/aesCipherSuites.js +282 -0
  1025. data/js/node_modules/node-forge/lib/asn1.js +1408 -0
  1026. data/js/node_modules/node-forge/lib/baseN.js +186 -0
  1027. data/js/node_modules/node-forge/lib/cipher.js +230 -0
  1028. data/js/node_modules/node-forge/lib/cipherModes.js +987 -0
  1029. data/js/node_modules/node-forge/lib/debug.js +78 -0
  1030. data/js/node_modules/node-forge/lib/des.js +496 -0
  1031. data/js/node_modules/node-forge/lib/ed25519.js +996 -0
  1032. data/js/node_modules/node-forge/lib/forge.js +13 -0
  1033. data/js/node_modules/node-forge/lib/form.js +149 -0
  1034. data/js/node_modules/node-forge/lib/hmac.js +146 -0
  1035. data/js/node_modules/node-forge/lib/http.js +1364 -0
  1036. data/js/node_modules/node-forge/lib/index.all.js +16 -0
  1037. data/js/node_modules/node-forge/lib/index.js +35 -0
  1038. data/js/node_modules/node-forge/lib/jsbn.js +1264 -0
  1039. data/js/node_modules/node-forge/lib/kem.js +168 -0
  1040. data/js/node_modules/node-forge/lib/log.js +317 -0
  1041. data/js/node_modules/node-forge/lib/md.all.js +13 -0
  1042. data/js/node_modules/node-forge/lib/md.js +11 -0
  1043. data/js/node_modules/node-forge/lib/md5.js +289 -0
  1044. data/js/node_modules/node-forge/lib/mgf.js +12 -0
  1045. data/js/node_modules/node-forge/lib/mgf1.js +57 -0
  1046. data/js/node_modules/node-forge/lib/oids.js +163 -0
  1047. data/js/node_modules/node-forge/lib/pbe.js +1023 -0
  1048. data/js/node_modules/node-forge/lib/pbkdf2.js +211 -0
  1049. data/js/node_modules/node-forge/lib/pem.js +230 -0
  1050. data/js/node_modules/node-forge/lib/pkcs1.js +276 -0
  1051. data/js/node_modules/node-forge/lib/pkcs12.js +1074 -0
  1052. data/js/node_modules/node-forge/lib/pkcs7.js +1257 -0
  1053. data/js/node_modules/node-forge/lib/pkcs7asn1.js +409 -0
  1054. data/js/node_modules/node-forge/lib/pki.js +102 -0
  1055. data/js/node_modules/node-forge/lib/prime.js +297 -0
  1056. data/js/node_modules/node-forge/lib/prime.worker.js +168 -0
  1057. data/js/node_modules/node-forge/lib/prng.js +419 -0
  1058. data/js/node_modules/node-forge/lib/pss.js +241 -0
  1059. data/js/node_modules/node-forge/lib/random.js +191 -0
  1060. data/js/node_modules/node-forge/lib/rc2.js +410 -0
  1061. data/js/node_modules/node-forge/lib/rsa.js +1858 -0
  1062. data/js/node_modules/node-forge/lib/sha1.js +319 -0
  1063. data/js/node_modules/node-forge/lib/sha256.js +327 -0
  1064. data/js/node_modules/node-forge/lib/sha512.js +561 -0
  1065. data/js/node_modules/node-forge/lib/socket.js +287 -0
  1066. data/js/node_modules/node-forge/lib/ssh.js +236 -0
  1067. data/js/node_modules/node-forge/lib/task.js +725 -0
  1068. data/js/node_modules/node-forge/lib/tls.js +4282 -0
  1069. data/js/node_modules/node-forge/lib/tlssocket.js +249 -0
  1070. data/js/node_modules/node-forge/lib/util.js +2993 -0
  1071. data/js/node_modules/node-forge/lib/x509.js +3333 -0
  1072. data/js/node_modules/node-forge/lib/xhr.js +736 -0
  1073. data/js/node_modules/node-forge/package.json +120 -0
  1074. data/js/node_modules/protobufjs/CHANGELOG.md +1027 -0
  1075. data/js/node_modules/protobufjs/LICENSE +39 -0
  1076. data/js/node_modules/protobufjs/README.md +905 -0
  1077. data/js/node_modules/protobufjs/bin/pbjs +6 -0
  1078. data/js/node_modules/protobufjs/bin/pbts +6 -0
  1079. data/js/node_modules/protobufjs/cli/LICENSE +33 -0
  1080. data/js/node_modules/protobufjs/cli/README.md +174 -0
  1081. data/js/node_modules/protobufjs/cli/bin/pbjs +6 -0
  1082. data/js/node_modules/protobufjs/cli/bin/pbts +6 -0
  1083. data/js/node_modules/protobufjs/cli/index.d.ts +3 -0
  1084. data/js/node_modules/protobufjs/cli/index.js +3 -0
  1085. data/js/node_modules/protobufjs/cli/lib/tsd-jsdoc/LICENSE +21 -0
  1086. data/js/node_modules/protobufjs/cli/lib/tsd-jsdoc/README.md +23 -0
  1087. data/js/node_modules/protobufjs/cli/lib/tsd-jsdoc/plugin.js +21 -0
  1088. data/js/node_modules/protobufjs/cli/lib/tsd-jsdoc/publish.js +705 -0
  1089. data/js/node_modules/protobufjs/cli/lib/tsd-jsdoc.json +18 -0
  1090. data/js/node_modules/protobufjs/cli/package.json +8 -0
  1091. data/js/node_modules/protobufjs/cli/package.standalone.json +32 -0
  1092. data/js/node_modules/protobufjs/cli/pbjs.d.ts +9 -0
  1093. data/js/node_modules/protobufjs/cli/pbjs.js +330 -0
  1094. data/js/node_modules/protobufjs/cli/pbts.d.ts +9 -0
  1095. data/js/node_modules/protobufjs/cli/pbts.js +197 -0
  1096. data/js/node_modules/protobufjs/cli/targets/json-module.js +38 -0
  1097. data/js/node_modules/protobufjs/cli/targets/json.js +8 -0
  1098. data/js/node_modules/protobufjs/cli/targets/proto.js +326 -0
  1099. data/js/node_modules/protobufjs/cli/targets/proto2.js +10 -0
  1100. data/js/node_modules/protobufjs/cli/targets/proto3.js +10 -0
  1101. data/js/node_modules/protobufjs/cli/targets/static-module.js +29 -0
  1102. data/js/node_modules/protobufjs/cli/targets/static.js +711 -0
  1103. data/js/node_modules/protobufjs/cli/util.js +183 -0
  1104. data/js/node_modules/protobufjs/cli/wrappers/amd.js +7 -0
  1105. data/js/node_modules/protobufjs/cli/wrappers/closure.js +7 -0
  1106. data/js/node_modules/protobufjs/cli/wrappers/commonjs.js +7 -0
  1107. data/js/node_modules/protobufjs/cli/wrappers/default.js +15 -0
  1108. data/js/node_modules/protobufjs/cli/wrappers/es6.js +5 -0
  1109. data/js/node_modules/protobufjs/dist/README.md +31 -0
  1110. data/js/node_modules/protobufjs/dist/light/README.md +31 -0
  1111. data/js/node_modules/protobufjs/dist/light/protobuf.js +7322 -0
  1112. data/js/node_modules/protobufjs/dist/light/protobuf.js.map +1 -0
  1113. data/js/node_modules/protobufjs/dist/light/protobuf.min.js +8 -0
  1114. data/js/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -0
  1115. data/js/node_modules/protobufjs/dist/minimal/README.md +31 -0
  1116. data/js/node_modules/protobufjs/dist/minimal/protobuf.js +2714 -0
  1117. data/js/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -0
  1118. data/js/node_modules/protobufjs/dist/minimal/protobuf.min.js +8 -0
  1119. data/js/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -0
  1120. data/js/node_modules/protobufjs/dist/protobuf.js +8964 -0
  1121. data/js/node_modules/protobufjs/dist/protobuf.js.map +1 -0
  1122. data/js/node_modules/protobufjs/dist/protobuf.min.js +8 -0
  1123. data/js/node_modules/protobufjs/dist/protobuf.min.js.map +1 -0
  1124. data/js/node_modules/protobufjs/ext/debug/README.md +4 -0
  1125. data/js/node_modules/protobufjs/ext/debug/index.js +71 -0
  1126. data/js/node_modules/protobufjs/ext/descriptor/README.md +72 -0
  1127. data/js/node_modules/protobufjs/ext/descriptor/index.d.ts +191 -0
  1128. data/js/node_modules/protobufjs/ext/descriptor/index.js +1052 -0
  1129. data/js/node_modules/protobufjs/ext/descriptor/test.js +54 -0
  1130. data/js/node_modules/protobufjs/google/LICENSE +27 -0
  1131. data/js/node_modules/protobufjs/google/README.md +1 -0
  1132. data/js/node_modules/protobufjs/google/api/annotations.json +83 -0
  1133. data/js/node_modules/protobufjs/google/api/annotations.proto +11 -0
  1134. data/js/node_modules/protobufjs/google/api/http.json +86 -0
  1135. data/js/node_modules/protobufjs/google/api/http.proto +31 -0
  1136. data/js/node_modules/protobufjs/google/protobuf/api.json +118 -0
  1137. data/js/node_modules/protobufjs/google/protobuf/api.proto +34 -0
  1138. data/js/node_modules/protobufjs/google/protobuf/descriptor.json +739 -0
  1139. data/js/node_modules/protobufjs/google/protobuf/descriptor.proto +286 -0
  1140. data/js/node_modules/protobufjs/google/protobuf/source_context.json +20 -0
  1141. data/js/node_modules/protobufjs/google/protobuf/source_context.proto +7 -0
  1142. data/js/node_modules/protobufjs/google/protobuf/type.json +202 -0
  1143. data/js/node_modules/protobufjs/google/protobuf/type.proto +89 -0
  1144. data/js/node_modules/protobufjs/index.d.ts +2739 -0
  1145. data/js/node_modules/protobufjs/index.js +4 -0
  1146. data/js/node_modules/protobufjs/light.d.ts +2 -0
  1147. data/js/node_modules/protobufjs/light.js +4 -0
  1148. data/js/node_modules/protobufjs/minimal.d.ts +2 -0
  1149. data/js/node_modules/protobufjs/minimal.js +4 -0
  1150. data/js/node_modules/protobufjs/package-lock.json +7870 -0
  1151. data/js/node_modules/protobufjs/package.json +122 -0
  1152. data/js/node_modules/protobufjs/scripts/changelog.js +150 -0
  1153. data/js/node_modules/protobufjs/scripts/postinstall.js +35 -0
  1154. data/js/node_modules/protobufjs/src/common.js +399 -0
  1155. data/js/node_modules/protobufjs/src/converter.js +293 -0
  1156. data/js/node_modules/protobufjs/src/decoder.js +128 -0
  1157. data/js/node_modules/protobufjs/src/encoder.js +100 -0
  1158. data/js/node_modules/protobufjs/src/enum.js +181 -0
  1159. data/js/node_modules/protobufjs/src/field.js +374 -0
  1160. data/js/node_modules/protobufjs/src/index-light.js +104 -0
  1161. data/js/node_modules/protobufjs/src/index-minimal.js +36 -0
  1162. data/js/node_modules/protobufjs/src/index.js +12 -0
  1163. data/js/node_modules/protobufjs/src/mapfield.js +126 -0
  1164. data/js/node_modules/protobufjs/src/message.js +139 -0
  1165. data/js/node_modules/protobufjs/src/method.js +160 -0
  1166. data/js/node_modules/protobufjs/src/namespace.js +434 -0
  1167. data/js/node_modules/protobufjs/src/object.js +243 -0
  1168. data/js/node_modules/protobufjs/src/oneof.js +203 -0
  1169. data/js/node_modules/protobufjs/src/parse.js +820 -0
  1170. data/js/node_modules/protobufjs/src/reader.js +411 -0
  1171. data/js/node_modules/protobufjs/src/reader_buffer.js +51 -0
  1172. data/js/node_modules/protobufjs/src/root.js +363 -0
  1173. data/js/node_modules/protobufjs/src/roots.js +18 -0
  1174. data/js/node_modules/protobufjs/src/rpc/service.js +142 -0
  1175. data/js/node_modules/protobufjs/src/rpc.js +36 -0
  1176. data/js/node_modules/protobufjs/src/service.js +167 -0
  1177. data/js/node_modules/protobufjs/src/tokenize.js +403 -0
  1178. data/js/node_modules/protobufjs/src/type.js +589 -0
  1179. data/js/node_modules/protobufjs/src/types.js +196 -0
  1180. data/js/node_modules/protobufjs/src/typescript.jsdoc +15 -0
  1181. data/js/node_modules/protobufjs/src/util/longbits.js +200 -0
  1182. data/js/node_modules/protobufjs/src/util/minimal.js +421 -0
  1183. data/js/node_modules/protobufjs/src/util.js +212 -0
  1184. data/js/node_modules/protobufjs/src/verifier.js +177 -0
  1185. data/js/node_modules/protobufjs/src/wrappers.js +102 -0
  1186. data/js/node_modules/protobufjs/src/writer.js +465 -0
  1187. data/js/node_modules/protobufjs/src/writer_buffer.js +85 -0
  1188. data/js/node_modules/protobufjs/tsconfig.json +7 -0
  1189. data/js/node_modules/tr46/index.js +193 -0
  1190. data/js/node_modules/tr46/lib/mappingTable.json +1 -0
  1191. data/js/node_modules/tr46/package.json +31 -0
  1192. data/js/node_modules/typed-ts-events/dist/EventEmitter.d.ts +23 -0
  1193. data/js/node_modules/typed-ts-events/dist/events.js +145 -0
  1194. data/js/node_modules/typed-ts-events/dist/events.js.map +1 -0
  1195. data/js/node_modules/typed-ts-events/dist/events.min.js +2 -0
  1196. data/js/node_modules/typed-ts-events/dist/events.min.js.map +1 -0
  1197. data/js/node_modules/typed-ts-events/dist/index.d.ts +3 -0
  1198. data/js/node_modules/typed-ts-events/package.json +64 -0
  1199. data/js/node_modules/typed-ts-events/readme.md +77 -0
  1200. data/js/node_modules/webidl-conversions/LICENSE.md +12 -0
  1201. data/js/node_modules/webidl-conversions/README.md +53 -0
  1202. data/js/node_modules/webidl-conversions/lib/index.js +189 -0
  1203. data/js/node_modules/webidl-conversions/package.json +23 -0
  1204. data/js/node_modules/whatwg-url/LICENSE.txt +21 -0
  1205. data/js/node_modules/whatwg-url/README.md +67 -0
  1206. data/js/node_modules/whatwg-url/lib/URL-impl.js +200 -0
  1207. data/js/node_modules/whatwg-url/lib/URL.js +196 -0
  1208. data/js/node_modules/whatwg-url/lib/public-api.js +11 -0
  1209. data/js/node_modules/whatwg-url/lib/url-state-machine.js +1297 -0
  1210. data/js/node_modules/whatwg-url/lib/utils.js +20 -0
  1211. data/js/node_modules/whatwg-url/package.json +32 -0
  1212. data/js/package-lock.json +706 -0
  1213. data/js/package.json +15 -0
  1214. data/js/worker.js +109 -0
  1215. data/js/yarn.lock +285 -0
  1216. data/lib/waves_lib/map.rb +211 -0
  1217. data/lib/waves_lib/root_wrapper.rb +85 -0
  1218. data/lib/waves_lib/version.rb +6 -0
  1219. data/lib/waves_lib/wrapped_buffer.rb +26 -0
  1220. data/lib/waves_lib/wrapper.rb +82 -0
  1221. data/lib/waves_lib.rb +10 -0
  1222. metadata +1264 -0
@@ -0,0 +1,2739 @@
1
+ // DO NOT EDIT! This is a generated file. Edit the JSDoc in src/*.js instead and run 'npm run 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
+ */
164
+ constructor(name: string, values?: { [k: string]: number }, options?: { [k: string]: any }, comment?: string, comments?: { [k: string]: string });
165
+
166
+ /** Enum values by id. */
167
+ public valuesById: { [k: number]: string };
168
+
169
+ /** Enum values by name. */
170
+ public values: { [k: string]: number };
171
+
172
+ /** Enum comment text. */
173
+ public comment: (string|null);
174
+
175
+ /** Value comment texts, if any. */
176
+ public comments: { [k: string]: string };
177
+
178
+ /** Reserved ranges, if any. */
179
+ public reserved: (number[]|string)[];
180
+
181
+ /**
182
+ * Constructs an enum from an enum descriptor.
183
+ * @param name Enum name
184
+ * @param json Enum descriptor
185
+ * @returns Created enum
186
+ * @throws {TypeError} If arguments are invalid
187
+ */
188
+ public static fromJSON(name: string, json: IEnum): Enum;
189
+
190
+ /**
191
+ * Converts this enum to an enum descriptor.
192
+ * @param [toJSONOptions] JSON conversion options
193
+ * @returns Enum descriptor
194
+ */
195
+ public toJSON(toJSONOptions?: IToJSONOptions): IEnum;
196
+
197
+ /**
198
+ * Adds a value to this enum.
199
+ * @param name Value name
200
+ * @param id Value id
201
+ * @param [comment] Comment, if any
202
+ * @returns `this`
203
+ * @throws {TypeError} If arguments are invalid
204
+ * @throws {Error} If there is already a value with this name or id
205
+ */
206
+ public add(name: string, id: number, comment?: string): Enum;
207
+
208
+ /**
209
+ * Removes a value from this enum
210
+ * @param name Value name
211
+ * @returns `this`
212
+ * @throws {TypeError} If arguments are invalid
213
+ * @throws {Error} If `name` is not a name of this enum
214
+ */
215
+ public remove(name: string): Enum;
216
+
217
+ /**
218
+ * Tests if the specified id is reserved.
219
+ * @param id Id to test
220
+ * @returns `true` if reserved, otherwise `false`
221
+ */
222
+ public isReservedId(id: number): boolean;
223
+
224
+ /**
225
+ * Tests if the specified name is reserved.
226
+ * @param name Name to test
227
+ * @returns `true` if reserved, otherwise `false`
228
+ */
229
+ public isReservedName(name: string): boolean;
230
+ }
231
+
232
+ /** Enum descriptor. */
233
+ export interface IEnum {
234
+
235
+ /** Enum values */
236
+ values: { [k: string]: number };
237
+
238
+ /** Enum options */
239
+ options?: { [k: string]: any };
240
+ }
241
+
242
+ /** Reflected message field. */
243
+ export class Field extends FieldBase {
244
+
245
+ /**
246
+ * Constructs a new message field instance. Note that {@link MapField|map fields} have their own class.
247
+ * @param name Unique name within its namespace
248
+ * @param id Unique id within its namespace
249
+ * @param type Value type
250
+ * @param [rule="optional"] Field rule
251
+ * @param [extend] Extended type if different from parent
252
+ * @param [options] Declared options
253
+ */
254
+ constructor(name: string, id: number, type: string, rule?: (string|{ [k: string]: any }), extend?: (string|{ [k: string]: any }), options?: { [k: string]: any });
255
+
256
+ /**
257
+ * Constructs a field from a field descriptor.
258
+ * @param name Field name
259
+ * @param json Field descriptor
260
+ * @returns Created field
261
+ * @throws {TypeError} If arguments are invalid
262
+ */
263
+ public static fromJSON(name: string, json: IField): Field;
264
+
265
+ /** Determines whether this field is packed. Only relevant when repeated and working with proto2. */
266
+ public readonly packed: boolean;
267
+
268
+ /**
269
+ * Field decorator (TypeScript).
270
+ * @param fieldId Field id
271
+ * @param fieldType Field type
272
+ * @param [fieldRule="optional"] Field rule
273
+ * @param [defaultValue] Default value
274
+ * @returns Decorator function
275
+ */
276
+ 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;
277
+
278
+ /**
279
+ * Field decorator (TypeScript).
280
+ * @param fieldId Field id
281
+ * @param fieldType Field type
282
+ * @param [fieldRule="optional"] Field rule
283
+ * @returns Decorator function
284
+ */
285
+ public static d<T extends Message<T>>(fieldId: number, fieldType: (Constructor<T>|string), fieldRule?: ("optional"|"required"|"repeated")): FieldDecorator;
286
+ }
287
+
288
+ /** Base class of all reflected message fields. This is not an actual class but here for the sake of having consistent type definitions. */
289
+ export class FieldBase extends ReflectionObject {
290
+
291
+ /**
292
+ * Not an actual constructor. Use {@link Field} instead.
293
+ * @param name Unique name within its namespace
294
+ * @param id Unique id within its namespace
295
+ * @param type Value type
296
+ * @param [rule="optional"] Field rule
297
+ * @param [extend] Extended type if different from parent
298
+ * @param [options] Declared options
299
+ * @param [comment] Comment associated with this field
300
+ */
301
+ constructor(name: string, id: number, type: string, rule?: (string|{ [k: string]: any }), extend?: (string|{ [k: string]: any }), options?: { [k: string]: any }, comment?: string);
302
+
303
+ /** Field rule, if any. */
304
+ public rule?: string;
305
+
306
+ /** Field type. */
307
+ public type: string;
308
+
309
+ /** Unique field id. */
310
+ public id: number;
311
+
312
+ /** Extended type if different from parent. */
313
+ public extend?: string;
314
+
315
+ /** Whether this field is required. */
316
+ public required: boolean;
317
+
318
+ /** Whether this field is optional. */
319
+ public optional: boolean;
320
+
321
+ /** Whether this field is repeated. */
322
+ public repeated: boolean;
323
+
324
+ /** Whether this field is a map or not. */
325
+ public map: boolean;
326
+
327
+ /** Message this field belongs to. */
328
+ public message: (Type|null);
329
+
330
+ /** OneOf this field belongs to, if any, */
331
+ public partOf: (OneOf|null);
332
+
333
+ /** The field type's default value. */
334
+ public typeDefault: any;
335
+
336
+ /** The field's default value on prototypes. */
337
+ public defaultValue: any;
338
+
339
+ /** Whether this field's value should be treated as a long. */
340
+ public long: boolean;
341
+
342
+ /** Whether this field's value is a buffer. */
343
+ public bytes: boolean;
344
+
345
+ /** Resolved type if not a basic type. */
346
+ public resolvedType: (Type|Enum|null);
347
+
348
+ /** Sister-field within the extended type if a declaring extension field. */
349
+ public extensionField: (Field|null);
350
+
351
+ /** Sister-field within the declaring namespace if an extended field. */
352
+ public declaringField: (Field|null);
353
+
354
+ /** Comment for this field. */
355
+ public comment: (string|null);
356
+
357
+ /**
358
+ * Converts this field to a field descriptor.
359
+ * @param [toJSONOptions] JSON conversion options
360
+ * @returns Field descriptor
361
+ */
362
+ public toJSON(toJSONOptions?: IToJSONOptions): IField;
363
+
364
+ /**
365
+ * Resolves this field's type references.
366
+ * @returns `this`
367
+ * @throws {Error} If any reference cannot be resolved
368
+ */
369
+ public resolve(): Field;
370
+ }
371
+
372
+ /** Field descriptor. */
373
+ export interface IField {
374
+
375
+ /** Field rule */
376
+ rule?: string;
377
+
378
+ /** Field type */
379
+ type: string;
380
+
381
+ /** Field id */
382
+ id: number;
383
+
384
+ /** Field options */
385
+ options?: { [k: string]: any };
386
+ }
387
+
388
+ /** Extension field descriptor. */
389
+ export interface IExtensionField extends IField {
390
+
391
+ /** Extended type */
392
+ extend: string;
393
+ }
394
+
395
+ /**
396
+ * Decorator function as returned by {@link Field.d} and {@link MapField.d} (TypeScript).
397
+ * @param prototype Target prototype
398
+ * @param fieldName Field name
399
+ */
400
+ type FieldDecorator = (prototype: object, fieldName: string) => void;
401
+
402
+ /**
403
+ * A node-style callback as used by {@link load} and {@link Root#load}.
404
+ * @param error Error, if any, otherwise `null`
405
+ * @param [root] Root, if there hasn't been an error
406
+ */
407
+ type LoadCallback = (error: (Error|null), root?: Root) => void;
408
+
409
+ /**
410
+ * Loads one or multiple .proto or preprocessed .json files into a common root namespace and calls the callback.
411
+ * @param filename One or multiple files to load
412
+ * @param root Root namespace, defaults to create a new one if omitted.
413
+ * @param callback Callback function
414
+ * @see {@link Root#load}
415
+ */
416
+ export function load(filename: (string|string[]), root: Root, callback: LoadCallback): void;
417
+
418
+ /**
419
+ * Loads one or multiple .proto or preprocessed .json files into a common root namespace and calls the callback.
420
+ * @param filename One or multiple files to load
421
+ * @param callback Callback function
422
+ * @see {@link Root#load}
423
+ */
424
+ export function load(filename: (string|string[]), callback: LoadCallback): void;
425
+
426
+ /**
427
+ * Loads one or multiple .proto or preprocessed .json files into a common root namespace and returns a promise.
428
+ * @param filename One or multiple files to load
429
+ * @param [root] Root namespace, defaults to create a new one if omitted.
430
+ * @returns Promise
431
+ * @see {@link Root#load}
432
+ */
433
+ export function load(filename: (string|string[]), root?: Root): Promise<Root>;
434
+
435
+ /**
436
+ * Synchronously loads one or multiple .proto or preprocessed .json files into a common root namespace (node only).
437
+ * @param filename One or multiple files to load
438
+ * @param [root] Root namespace, defaults to create a new one if omitted.
439
+ * @returns Root namespace
440
+ * @throws {Error} If synchronous fetching is not supported (i.e. in browsers) or if a file's syntax is invalid
441
+ * @see {@link Root#loadSync}
442
+ */
443
+ export function loadSync(filename: (string|string[]), root?: Root): Root;
444
+
445
+ /** Build type, one of `"full"`, `"light"` or `"minimal"`. */
446
+ export const build: string;
447
+
448
+ /** Reconfigures the library according to the environment. */
449
+ export function configure(): void;
450
+
451
+ /** Reflected map field. */
452
+ export class MapField extends FieldBase {
453
+
454
+ /**
455
+ * Constructs a new map field instance.
456
+ * @param name Unique name within its namespace
457
+ * @param id Unique id within its namespace
458
+ * @param keyType Key type
459
+ * @param type Value type
460
+ * @param [options] Declared options
461
+ * @param [comment] Comment associated with this field
462
+ */
463
+ constructor(name: string, id: number, keyType: string, type: string, options?: { [k: string]: any }, comment?: string);
464
+
465
+ /** Key type. */
466
+ public keyType: string;
467
+
468
+ /** Resolved key type if not a basic type. */
469
+ public resolvedKeyType: (ReflectionObject|null);
470
+
471
+ /**
472
+ * Constructs a map field from a map field descriptor.
473
+ * @param name Field name
474
+ * @param json Map field descriptor
475
+ * @returns Created map field
476
+ * @throws {TypeError} If arguments are invalid
477
+ */
478
+ public static fromJSON(name: string, json: IMapField): MapField;
479
+
480
+ /**
481
+ * Converts this map field to a map field descriptor.
482
+ * @param [toJSONOptions] JSON conversion options
483
+ * @returns Map field descriptor
484
+ */
485
+ public toJSON(toJSONOptions?: IToJSONOptions): IMapField;
486
+
487
+ /**
488
+ * Map field decorator (TypeScript).
489
+ * @param fieldId Field id
490
+ * @param fieldKeyType Field key type
491
+ * @param fieldValueType Field value type
492
+ * @returns Decorator function
493
+ */
494
+ 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;
495
+ }
496
+
497
+ /** Map field descriptor. */
498
+ export interface IMapField extends IField {
499
+
500
+ /** Key type */
501
+ keyType: string;
502
+ }
503
+
504
+ /** Extension map field descriptor. */
505
+ export interface IExtensionMapField extends IMapField {
506
+
507
+ /** Extended type */
508
+ extend: string;
509
+ }
510
+
511
+ /** Abstract runtime message. */
512
+ export class Message<T extends object = object> {
513
+
514
+ /**
515
+ * Constructs a new message instance.
516
+ * @param [properties] Properties to set
517
+ */
518
+ constructor(properties?: Properties<T>);
519
+
520
+ /** Reference to the reflected type. */
521
+ public static readonly $type: Type;
522
+
523
+ /** Reference to the reflected type. */
524
+ public readonly $type: Type;
525
+
526
+ /**
527
+ * Creates a new message of this type using the specified properties.
528
+ * @param [properties] Properties to set
529
+ * @returns Message instance
530
+ */
531
+ public static create<T extends Message<T>>(this: Constructor<T>, properties?: { [k: string]: any }): Message<T>;
532
+
533
+ /**
534
+ * Encodes a message of this type.
535
+ * @param message Message to encode
536
+ * @param [writer] Writer to use
537
+ * @returns Writer
538
+ */
539
+ public static encode<T extends Message<T>>(this: Constructor<T>, message: (T|{ [k: string]: any }), writer?: Writer): Writer;
540
+
541
+ /**
542
+ * Encodes a message of this type preceeded by its length as a varint.
543
+ * @param message Message to encode
544
+ * @param [writer] Writer to use
545
+ * @returns Writer
546
+ */
547
+ public static encodeDelimited<T extends Message<T>>(this: Constructor<T>, message: (T|{ [k: string]: any }), writer?: Writer): Writer;
548
+
549
+ /**
550
+ * Decodes a message of this type.
551
+ * @param reader Reader or buffer to decode
552
+ * @returns Decoded message
553
+ */
554
+ public static decode<T extends Message<T>>(this: Constructor<T>, reader: (Reader|Uint8Array)): T;
555
+
556
+ /**
557
+ * Decodes a message of this type preceeded by its length as a varint.
558
+ * @param reader Reader or buffer to decode
559
+ * @returns Decoded message
560
+ */
561
+ public static decodeDelimited<T extends Message<T>>(this: Constructor<T>, reader: (Reader|Uint8Array)): T;
562
+
563
+ /**
564
+ * Verifies a message of this type.
565
+ * @param message Plain object to verify
566
+ * @returns `null` if valid, otherwise the reason why it is not
567
+ */
568
+ public static verify(message: { [k: string]: any }): (string|null);
569
+
570
+ /**
571
+ * Creates a new message of this type from a plain object. Also converts values to their respective internal types.
572
+ * @param object Plain object
573
+ * @returns Message instance
574
+ */
575
+ public static fromObject<T extends Message<T>>(this: Constructor<T>, object: { [k: string]: any }): T;
576
+
577
+ /**
578
+ * Creates a plain object from a message of this type. Also converts values to other types if specified.
579
+ * @param message Message instance
580
+ * @param [options] Conversion options
581
+ * @returns Plain object
582
+ */
583
+ public static toObject<T extends Message<T>>(this: Constructor<T>, message: T, options?: IConversionOptions): { [k: string]: any };
584
+
585
+ /**
586
+ * Converts this message to JSON.
587
+ * @returns JSON object
588
+ */
589
+ public toJSON(): { [k: string]: any };
590
+ }
591
+
592
+ /** Reflected service method. */
593
+ export class Method extends ReflectionObject {
594
+
595
+ /**
596
+ * Constructs a new service method instance.
597
+ * @param name Method name
598
+ * @param type Method type, usually `"rpc"`
599
+ * @param requestType Request message type
600
+ * @param responseType Response message type
601
+ * @param [requestStream] Whether the request is streamed
602
+ * @param [responseStream] Whether the response is streamed
603
+ * @param [options] Declared options
604
+ * @param [comment] The comment for this method
605
+ * @param [parsedOptions] Declared options, properly parsed into an object
606
+ */
607
+ 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 });
608
+
609
+ /** Method type. */
610
+ public type: string;
611
+
612
+ /** Request type. */
613
+ public requestType: string;
614
+
615
+ /** Whether requests are streamed or not. */
616
+ public requestStream?: boolean;
617
+
618
+ /** Response type. */
619
+ public responseType: string;
620
+
621
+ /** Whether responses are streamed or not. */
622
+ public responseStream?: boolean;
623
+
624
+ /** Resolved request type. */
625
+ public resolvedRequestType: (Type|null);
626
+
627
+ /** Resolved response type. */
628
+ public resolvedResponseType: (Type|null);
629
+
630
+ /** Comment for this method */
631
+ public comment: (string|null);
632
+
633
+ /** Options properly parsed into an object */
634
+ public parsedOptions: any;
635
+
636
+ /**
637
+ * Constructs a method from a method descriptor.
638
+ * @param name Method name
639
+ * @param json Method descriptor
640
+ * @returns Created method
641
+ * @throws {TypeError} If arguments are invalid
642
+ */
643
+ public static fromJSON(name: string, json: IMethod): Method;
644
+
645
+ /**
646
+ * Converts this method to a method descriptor.
647
+ * @param [toJSONOptions] JSON conversion options
648
+ * @returns Method descriptor
649
+ */
650
+ public toJSON(toJSONOptions?: IToJSONOptions): IMethod;
651
+ }
652
+
653
+ /** Method descriptor. */
654
+ export interface IMethod {
655
+
656
+ /** Method type */
657
+ type?: string;
658
+
659
+ /** Request type */
660
+ requestType: string;
661
+
662
+ /** Response type */
663
+ responseType: string;
664
+
665
+ /** Whether requests are streamed */
666
+ requestStream?: boolean;
667
+
668
+ /** Whether responses are streamed */
669
+ responseStream?: boolean;
670
+
671
+ /** Method options */
672
+ options?: { [k: string]: any };
673
+
674
+ /** Method comments */
675
+ comment: string;
676
+
677
+ /** Method options properly parsed into an object */
678
+ parsedOptions?: { [k: string]: any };
679
+ }
680
+
681
+ /** Reflected namespace. */
682
+ export class Namespace extends NamespaceBase {
683
+
684
+ /**
685
+ * Constructs a new namespace instance.
686
+ * @param name Namespace name
687
+ * @param [options] Declared options
688
+ */
689
+ constructor(name: string, options?: { [k: string]: any });
690
+
691
+ /**
692
+ * Constructs a namespace from JSON.
693
+ * @param name Namespace name
694
+ * @param json JSON object
695
+ * @returns Created namespace
696
+ * @throws {TypeError} If arguments are invalid
697
+ */
698
+ public static fromJSON(name: string, json: { [k: string]: any }): Namespace;
699
+
700
+ /**
701
+ * Converts an array of reflection objects to JSON.
702
+ * @param array Object array
703
+ * @param [toJSONOptions] JSON conversion options
704
+ * @returns JSON object or `undefined` when array is empty
705
+ */
706
+ public static arrayToJSON(array: ReflectionObject[], toJSONOptions?: IToJSONOptions): ({ [k: string]: any }|undefined);
707
+
708
+ /**
709
+ * Tests if the specified id is reserved.
710
+ * @param reserved Array of reserved ranges and names
711
+ * @param id Id to test
712
+ * @returns `true` if reserved, otherwise `false`
713
+ */
714
+ public static isReservedId(reserved: ((number[]|string)[]|undefined), id: number): boolean;
715
+
716
+ /**
717
+ * Tests if the specified name is reserved.
718
+ * @param reserved Array of reserved ranges and names
719
+ * @param name Name to test
720
+ * @returns `true` if reserved, otherwise `false`
721
+ */
722
+ public static isReservedName(reserved: ((number[]|string)[]|undefined), name: string): boolean;
723
+ }
724
+
725
+ /** 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. */
726
+ export abstract class NamespaceBase extends ReflectionObject {
727
+
728
+ /** Nested objects by name. */
729
+ public nested?: { [k: string]: ReflectionObject };
730
+
731
+ /** Nested objects of this namespace as an array for iteration. */
732
+ public readonly nestedArray: ReflectionObject[];
733
+
734
+ /**
735
+ * Converts this namespace to a namespace descriptor.
736
+ * @param [toJSONOptions] JSON conversion options
737
+ * @returns Namespace descriptor
738
+ */
739
+ public toJSON(toJSONOptions?: IToJSONOptions): INamespace;
740
+
741
+ /**
742
+ * Adds nested objects to this namespace from nested object descriptors.
743
+ * @param nestedJson Any nested object descriptors
744
+ * @returns `this`
745
+ */
746
+ public addJSON(nestedJson: { [k: string]: AnyNestedObject }): Namespace;
747
+
748
+ /**
749
+ * Gets the nested object of the specified name.
750
+ * @param name Nested object name
751
+ * @returns The reflection object or `null` if it doesn't exist
752
+ */
753
+ public get(name: string): (ReflectionObject|null);
754
+
755
+ /**
756
+ * Gets the values of the nested {@link Enum|enum} of the specified name.
757
+ * This methods differs from {@link Namespace#get|get} in that it returns an enum's values directly and throws instead of returning `null`.
758
+ * @param name Nested enum name
759
+ * @returns Enum values
760
+ * @throws {Error} If there is no such enum
761
+ */
762
+ public getEnum(name: string): { [k: string]: number };
763
+
764
+ /**
765
+ * Adds a nested object to this namespace.
766
+ * @param object Nested object to add
767
+ * @returns `this`
768
+ * @throws {TypeError} If arguments are invalid
769
+ * @throws {Error} If there is already a nested object with this name
770
+ */
771
+ public add(object: ReflectionObject): Namespace;
772
+
773
+ /**
774
+ * Removes a nested object from this namespace.
775
+ * @param object Nested object to remove
776
+ * @returns `this`
777
+ * @throws {TypeError} If arguments are invalid
778
+ * @throws {Error} If `object` is not a member of this namespace
779
+ */
780
+ public remove(object: ReflectionObject): Namespace;
781
+
782
+ /**
783
+ * Defines additial namespaces within this one if not yet existing.
784
+ * @param path Path to create
785
+ * @param [json] Nested types to create from JSON
786
+ * @returns Pointer to the last namespace created or `this` if path is empty
787
+ */
788
+ public define(path: (string|string[]), json?: any): Namespace;
789
+
790
+ /**
791
+ * Resolves this namespace's and all its nested objects' type references. Useful to validate a reflection tree, but comes at a cost.
792
+ * @returns `this`
793
+ */
794
+ public resolveAll(): Namespace;
795
+
796
+ /**
797
+ * Recursively looks up the reflection object matching the specified path in the scope of this namespace.
798
+ * @param path Path to look up
799
+ * @param filterTypes Filter types, any combination of the constructors of `protobuf.Type`, `protobuf.Enum`, `protobuf.Service` etc.
800
+ * @param [parentAlreadyChecked=false] If known, whether the parent has already been checked
801
+ * @returns Looked up object or `null` if none could be found
802
+ */
803
+ public lookup(path: (string|string[]), filterTypes: (any|any[]), parentAlreadyChecked?: boolean): (ReflectionObject|null);
804
+
805
+ /**
806
+ * Looks up the reflection object at the specified path, relative to this namespace.
807
+ * @param path Path to look up
808
+ * @param [parentAlreadyChecked=false] Whether the parent has already been checked
809
+ * @returns Looked up object or `null` if none could be found
810
+ */
811
+ public lookup(path: (string|string[]), parentAlreadyChecked?: boolean): (ReflectionObject|null);
812
+
813
+ /**
814
+ * Looks up the {@link Type|type} at the specified path, relative to this namespace.
815
+ * Besides its signature, this methods differs from {@link Namespace#lookup|lookup} in that it throws instead of returning `null`.
816
+ * @param path Path to look up
817
+ * @returns Looked up type
818
+ * @throws {Error} If `path` does not point to a type
819
+ */
820
+ public lookupType(path: (string|string[])): Type;
821
+
822
+ /**
823
+ * Looks up the values of the {@link Enum|enum} at the specified path, relative to this namespace.
824
+ * Besides its signature, this methods differs from {@link Namespace#lookup|lookup} in that it throws instead of returning `null`.
825
+ * @param path Path to look up
826
+ * @returns Looked up enum
827
+ * @throws {Error} If `path` does not point to an enum
828
+ */
829
+ public lookupEnum(path: (string|string[])): Enum;
830
+
831
+ /**
832
+ * Looks up the {@link Type|type} or {@link Enum|enum} at the specified path, relative to this namespace.
833
+ * Besides its signature, this methods differs from {@link Namespace#lookup|lookup} in that it throws instead of returning `null`.
834
+ * @param path Path to look up
835
+ * @returns Looked up type or enum
836
+ * @throws {Error} If `path` does not point to a type or enum
837
+ */
838
+ public lookupTypeOrEnum(path: (string|string[])): Type;
839
+
840
+ /**
841
+ * Looks up the {@link Service|service} at the specified path, relative to this namespace.
842
+ * Besides its signature, this methods differs from {@link Namespace#lookup|lookup} in that it throws instead of returning `null`.
843
+ * @param path Path to look up
844
+ * @returns Looked up service
845
+ * @throws {Error} If `path` does not point to a service
846
+ */
847
+ public lookupService(path: (string|string[])): Service;
848
+ }
849
+
850
+ /** Namespace descriptor. */
851
+ export interface INamespace {
852
+
853
+ /** Namespace options */
854
+ options?: { [k: string]: any };
855
+
856
+ /** Nested object descriptors */
857
+ nested?: { [k: string]: AnyNestedObject };
858
+ }
859
+
860
+ /** Any extension field descriptor. */
861
+ type AnyExtensionField = (IExtensionField|IExtensionMapField);
862
+
863
+ /** Any nested object descriptor. */
864
+ type AnyNestedObject = (IEnum|IType|IService|AnyExtensionField|INamespace);
865
+
866
+ /** Base class of all reflection objects. */
867
+ export abstract class ReflectionObject {
868
+
869
+ /** Options. */
870
+ public options?: { [k: string]: any };
871
+
872
+ /** Parsed Options. */
873
+ public parsedOptions?: { [k: string]: any[] };
874
+
875
+ /** Unique name within its namespace. */
876
+ public name: string;
877
+
878
+ /** Parent namespace. */
879
+ public parent: (Namespace|null);
880
+
881
+ /** Whether already resolved or not. */
882
+ public resolved: boolean;
883
+
884
+ /** Comment text, if any. */
885
+ public comment: (string|null);
886
+
887
+ /** Defining file name. */
888
+ public filename: (string|null);
889
+
890
+ /** Reference to the root namespace. */
891
+ public readonly root: Root;
892
+
893
+ /** Full name including leading dot. */
894
+ public readonly fullName: string;
895
+
896
+ /**
897
+ * Converts this reflection object to its descriptor representation.
898
+ * @returns Descriptor
899
+ */
900
+ public toJSON(): { [k: string]: any };
901
+
902
+ /**
903
+ * Called when this object is added to a parent.
904
+ * @param parent Parent added to
905
+ */
906
+ public onAdd(parent: ReflectionObject): void;
907
+
908
+ /**
909
+ * Called when this object is removed from a parent.
910
+ * @param parent Parent removed from
911
+ */
912
+ public onRemove(parent: ReflectionObject): void;
913
+
914
+ /**
915
+ * Resolves this objects type references.
916
+ * @returns `this`
917
+ */
918
+ public resolve(): ReflectionObject;
919
+
920
+ /**
921
+ * Gets an option value.
922
+ * @param name Option name
923
+ * @returns Option value or `undefined` if not set
924
+ */
925
+ public getOption(name: string): any;
926
+
927
+ /**
928
+ * Sets an option.
929
+ * @param name Option name
930
+ * @param value Option value
931
+ * @param [ifNotSet] Sets the option only if it isn't currently set
932
+ * @returns `this`
933
+ */
934
+ public setOption(name: string, value: any, ifNotSet?: boolean): ReflectionObject;
935
+
936
+ /**
937
+ * Sets a parsed option.
938
+ * @param name parsed Option name
939
+ * @param value Option value
940
+ * @param propName dot '.' delimited full path of property within the option to set. if undefined\empty, will add a new option with that value
941
+ * @returns `this`
942
+ */
943
+ public setParsedOption(name: string, value: any, propName: string): ReflectionObject;
944
+
945
+ /**
946
+ * Sets multiple options.
947
+ * @param options Options to set
948
+ * @param [ifNotSet] Sets an option only if it isn't currently set
949
+ * @returns `this`
950
+ */
951
+ public setOptions(options: { [k: string]: any }, ifNotSet?: boolean): ReflectionObject;
952
+
953
+ /**
954
+ * Converts this instance to its string representation.
955
+ * @returns Class name[, space, full name]
956
+ */
957
+ public toString(): string;
958
+ }
959
+
960
+ /** Reflected oneof. */
961
+ export class OneOf extends ReflectionObject {
962
+
963
+ /**
964
+ * Constructs a new oneof instance.
965
+ * @param name Oneof name
966
+ * @param [fieldNames] Field names
967
+ * @param [options] Declared options
968
+ * @param [comment] Comment associated with this field
969
+ */
970
+ constructor(name: string, fieldNames?: (string[]|{ [k: string]: any }), options?: { [k: string]: any }, comment?: string);
971
+
972
+ /** Field names that belong to this oneof. */
973
+ public oneof: string[];
974
+
975
+ /** Fields that belong to this oneof as an array for iteration. */
976
+ public readonly fieldsArray: Field[];
977
+
978
+ /** Comment for this field. */
979
+ public comment: (string|null);
980
+
981
+ /**
982
+ * Constructs a oneof from a oneof descriptor.
983
+ * @param name Oneof name
984
+ * @param json Oneof descriptor
985
+ * @returns Created oneof
986
+ * @throws {TypeError} If arguments are invalid
987
+ */
988
+ public static fromJSON(name: string, json: IOneOf): OneOf;
989
+
990
+ /**
991
+ * Converts this oneof to a oneof descriptor.
992
+ * @param [toJSONOptions] JSON conversion options
993
+ * @returns Oneof descriptor
994
+ */
995
+ public toJSON(toJSONOptions?: IToJSONOptions): IOneOf;
996
+
997
+ /**
998
+ * Adds a field to this oneof and removes it from its current parent, if any.
999
+ * @param field Field to add
1000
+ * @returns `this`
1001
+ */
1002
+ public add(field: Field): OneOf;
1003
+
1004
+ /**
1005
+ * Removes a field from this oneof and puts it back to the oneof's parent.
1006
+ * @param field Field to remove
1007
+ * @returns `this`
1008
+ */
1009
+ public remove(field: Field): OneOf;
1010
+
1011
+ /**
1012
+ * OneOf decorator (TypeScript).
1013
+ * @param fieldNames Field names
1014
+ * @returns Decorator function
1015
+ */
1016
+ public static d<T extends string>(...fieldNames: string[]): OneOfDecorator;
1017
+ }
1018
+
1019
+ /** Oneof descriptor. */
1020
+ export interface IOneOf {
1021
+
1022
+ /** Oneof field names */
1023
+ oneof: string[];
1024
+
1025
+ /** Oneof options */
1026
+ options?: { [k: string]: any };
1027
+ }
1028
+
1029
+ /**
1030
+ * Decorator function as returned by {@link OneOf.d} (TypeScript).
1031
+ * @param prototype Target prototype
1032
+ * @param oneofName OneOf name
1033
+ */
1034
+ type OneOfDecorator = (prototype: object, oneofName: string) => void;
1035
+
1036
+ /**
1037
+ * Parses the given .proto source and returns an object with the parsed contents.
1038
+ * @param source Source contents
1039
+ * @param [options] Parse options. Defaults to {@link parse.defaults} when omitted.
1040
+ * @returns Parser result
1041
+ */
1042
+ export function parse(source: string, options?: IParseOptions): IParserResult;
1043
+
1044
+ /** Result object returned from {@link parse}. */
1045
+ export interface IParserResult {
1046
+
1047
+ /** Package name, if declared */
1048
+ package: (string|undefined);
1049
+
1050
+ /** Imports, if any */
1051
+ imports: (string[]|undefined);
1052
+
1053
+ /** Weak imports, if any */
1054
+ weakImports: (string[]|undefined);
1055
+
1056
+ /** Syntax, if specified (either `"proto2"` or `"proto3"`) */
1057
+ syntax: (string|undefined);
1058
+
1059
+ /** Populated root instance */
1060
+ root: Root;
1061
+ }
1062
+
1063
+ /** Options modifying the behavior of {@link parse}. */
1064
+ export interface IParseOptions {
1065
+
1066
+ /** Keeps field casing instead of converting to camel case */
1067
+ keepCase?: boolean;
1068
+
1069
+ /** Recognize double-slash comments in addition to doc-block comments. */
1070
+ alternateCommentMode?: boolean;
1071
+
1072
+ /** Use trailing comment when both leading comment and trailing comment exist. */
1073
+ preferTrailingComment?: boolean;
1074
+ }
1075
+
1076
+ /** Options modifying the behavior of JSON serialization. */
1077
+ export interface IToJSONOptions {
1078
+
1079
+ /** Serializes comments. */
1080
+ keepComments?: boolean;
1081
+ }
1082
+
1083
+ /**
1084
+ * Parses the given .proto source and returns an object with the parsed contents.
1085
+ * @param source Source contents
1086
+ * @param root Root to populate
1087
+ * @param [options] Parse options. Defaults to {@link parse.defaults} when omitted.
1088
+ * @returns Parser result
1089
+ */
1090
+ export function parse(source: string, root: Root, options?: IParseOptions): IParserResult;
1091
+
1092
+ /** Wire format reader using `Uint8Array` if available, otherwise `Array`. */
1093
+ export class Reader {
1094
+
1095
+ /**
1096
+ * Constructs a new reader instance using the specified buffer.
1097
+ * @param buffer Buffer to read from
1098
+ */
1099
+ constructor(buffer: Uint8Array);
1100
+
1101
+ /** Read buffer. */
1102
+ public buf: Uint8Array;
1103
+
1104
+ /** Read buffer position. */
1105
+ public pos: number;
1106
+
1107
+ /** Read buffer length. */
1108
+ public len: number;
1109
+
1110
+ /**
1111
+ * Creates a new reader using the specified buffer.
1112
+ * @param buffer Buffer to read from
1113
+ * @returns A {@link BufferReader} if `buffer` is a Buffer, otherwise a {@link Reader}
1114
+ * @throws {Error} If `buffer` is not a valid buffer
1115
+ */
1116
+ public static create(buffer: (Uint8Array|Buffer)): (Reader|BufferReader);
1117
+
1118
+ /**
1119
+ * Reads a varint as an unsigned 32 bit value.
1120
+ * @returns Value read
1121
+ */
1122
+ public uint32(): number;
1123
+
1124
+ /**
1125
+ * Reads a varint as a signed 32 bit value.
1126
+ * @returns Value read
1127
+ */
1128
+ public int32(): number;
1129
+
1130
+ /**
1131
+ * Reads a zig-zag encoded varint as a signed 32 bit value.
1132
+ * @returns Value read
1133
+ */
1134
+ public sint32(): number;
1135
+
1136
+ /**
1137
+ * Reads a varint as a signed 64 bit value.
1138
+ * @returns Value read
1139
+ */
1140
+ public int64(): Long;
1141
+
1142
+ /**
1143
+ * Reads a varint as an unsigned 64 bit value.
1144
+ * @returns Value read
1145
+ */
1146
+ public uint64(): Long;
1147
+
1148
+ /**
1149
+ * Reads a zig-zag encoded varint as a signed 64 bit value.
1150
+ * @returns Value read
1151
+ */
1152
+ public sint64(): Long;
1153
+
1154
+ /**
1155
+ * Reads a varint as a boolean.
1156
+ * @returns Value read
1157
+ */
1158
+ public bool(): boolean;
1159
+
1160
+ /**
1161
+ * Reads fixed 32 bits as an unsigned 32 bit integer.
1162
+ * @returns Value read
1163
+ */
1164
+ public fixed32(): number;
1165
+
1166
+ /**
1167
+ * Reads fixed 32 bits as a signed 32 bit integer.
1168
+ * @returns Value read
1169
+ */
1170
+ public sfixed32(): number;
1171
+
1172
+ /**
1173
+ * Reads fixed 64 bits.
1174
+ * @returns Value read
1175
+ */
1176
+ public fixed64(): Long;
1177
+
1178
+ /**
1179
+ * Reads zig-zag encoded fixed 64 bits.
1180
+ * @returns Value read
1181
+ */
1182
+ public sfixed64(): Long;
1183
+
1184
+ /**
1185
+ * Reads a float (32 bit) as a number.
1186
+ * @returns Value read
1187
+ */
1188
+ public float(): number;
1189
+
1190
+ /**
1191
+ * Reads a double (64 bit float) as a number.
1192
+ * @returns Value read
1193
+ */
1194
+ public double(): number;
1195
+
1196
+ /**
1197
+ * Reads a sequence of bytes preceeded by its length as a varint.
1198
+ * @returns Value read
1199
+ */
1200
+ public bytes(): Uint8Array;
1201
+
1202
+ /**
1203
+ * Reads a string preceeded by its byte length as a varint.
1204
+ * @returns Value read
1205
+ */
1206
+ public string(): string;
1207
+
1208
+ /**
1209
+ * Skips the specified number of bytes if specified, otherwise skips a varint.
1210
+ * @param [length] Length if known, otherwise a varint is assumed
1211
+ * @returns `this`
1212
+ */
1213
+ public skip(length?: number): Reader;
1214
+
1215
+ /**
1216
+ * Skips the next element of the specified wire type.
1217
+ * @param wireType Wire type received
1218
+ * @returns `this`
1219
+ */
1220
+ public skipType(wireType: number): Reader;
1221
+ }
1222
+
1223
+ /** Wire format reader using node buffers. */
1224
+ export class BufferReader extends Reader {
1225
+
1226
+ /**
1227
+ * Constructs a new buffer reader instance.
1228
+ * @param buffer Buffer to read from
1229
+ */
1230
+ constructor(buffer: Buffer);
1231
+
1232
+ /**
1233
+ * Reads a sequence of bytes preceeded by its length as a varint.
1234
+ * @returns Value read
1235
+ */
1236
+ public bytes(): Buffer;
1237
+ }
1238
+
1239
+ /** Root namespace wrapping all types, enums, services, sub-namespaces etc. that belong together. */
1240
+ export class Root extends NamespaceBase {
1241
+
1242
+ /**
1243
+ * Constructs a new root namespace instance.
1244
+ * @param [options] Top level options
1245
+ */
1246
+ constructor(options?: { [k: string]: any });
1247
+
1248
+ /** Deferred extension fields. */
1249
+ public deferred: Field[];
1250
+
1251
+ /** Resolved file names of loaded files. */
1252
+ public files: string[];
1253
+
1254
+ /**
1255
+ * Loads a namespace descriptor into a root namespace.
1256
+ * @param json Nameespace descriptor
1257
+ * @param [root] Root namespace, defaults to create a new one if omitted
1258
+ * @returns Root namespace
1259
+ */
1260
+ public static fromJSON(json: INamespace, root?: Root): Root;
1261
+
1262
+ /**
1263
+ * Resolves the path of an imported file, relative to the importing origin.
1264
+ * This method exists so you can override it with your own logic in case your imports are scattered over multiple directories.
1265
+ * @param origin The file name of the importing file
1266
+ * @param target The file name being imported
1267
+ * @returns Resolved path to `target` or `null` to skip the file
1268
+ */
1269
+ public resolvePath(origin: string, target: string): (string|null);
1270
+
1271
+ /**
1272
+ * Fetch content from file path or url
1273
+ * This method exists so you can override it with your own logic.
1274
+ * @param path File path or url
1275
+ * @param callback Callback function
1276
+ */
1277
+ public fetch(path: string, callback: FetchCallback): void;
1278
+
1279
+ /**
1280
+ * Loads one or multiple .proto or preprocessed .json files into this root namespace and calls the callback.
1281
+ * @param filename Names of one or multiple files to load
1282
+ * @param options Parse options
1283
+ * @param callback Callback function
1284
+ */
1285
+ public load(filename: (string|string[]), options: IParseOptions, callback: LoadCallback): void;
1286
+
1287
+ /**
1288
+ * Loads one or multiple .proto or preprocessed .json files into this root namespace and calls the callback.
1289
+ * @param filename Names of one or multiple files to load
1290
+ * @param callback Callback function
1291
+ */
1292
+ public load(filename: (string|string[]), callback: LoadCallback): void;
1293
+
1294
+ /**
1295
+ * Loads one or multiple .proto or preprocessed .json files into this root namespace and returns a promise.
1296
+ * @param filename Names of one or multiple files to load
1297
+ * @param [options] Parse options. Defaults to {@link parse.defaults} when omitted.
1298
+ * @returns Promise
1299
+ */
1300
+ public load(filename: (string|string[]), options?: IParseOptions): Promise<Root>;
1301
+
1302
+ /**
1303
+ * Synchronously loads one or multiple .proto or preprocessed .json files into this root namespace (node only).
1304
+ * @param filename Names of one or multiple files to load
1305
+ * @param [options] Parse options. Defaults to {@link parse.defaults} when omitted.
1306
+ * @returns Root namespace
1307
+ * @throws {Error} If synchronous fetching is not supported (i.e. in browsers) or if a file's syntax is invalid
1308
+ */
1309
+ public loadSync(filename: (string|string[]), options?: IParseOptions): Root;
1310
+ }
1311
+
1312
+ /**
1313
+ * Named roots.
1314
+ * This is where pbjs stores generated structures (the option `-r, --root` specifies a name).
1315
+ * Can also be used manually to make roots available accross modules.
1316
+ */
1317
+ export let roots: { [k: string]: Root };
1318
+
1319
+ /** Streaming RPC helpers. */
1320
+ export namespace rpc {
1321
+
1322
+ /**
1323
+ * A service method callback as used by {@link rpc.ServiceMethod|ServiceMethod}.
1324
+ *
1325
+ * Differs from {@link RPCImplCallback} in that it is an actual callback of a service method which may not return `response = null`.
1326
+ * @param error Error, if any
1327
+ * @param [response] Response message
1328
+ */
1329
+ type ServiceMethodCallback<TRes extends Message<TRes>> = (error: (Error|null), response?: TRes) => void;
1330
+
1331
+ /**
1332
+ * A service method part of a {@link rpc.Service} as created by {@link Service.create}.
1333
+ * @param request Request message or plain object
1334
+ * @param [callback] Node-style callback called with the error, if any, and the response message
1335
+ * @returns Promise if `callback` has been omitted, otherwise `undefined`
1336
+ */
1337
+ type ServiceMethod<TReq extends Message<TReq>, TRes extends Message<TRes>> = (request: (TReq|Properties<TReq>), callback?: rpc.ServiceMethodCallback<TRes>) => Promise<Message<TRes>>;
1338
+
1339
+ /** An RPC service as returned by {@link Service#create}. */
1340
+ class Service extends util.EventEmitter {
1341
+
1342
+ /**
1343
+ * Constructs a new RPC service instance.
1344
+ * @param rpcImpl RPC implementation
1345
+ * @param [requestDelimited=false] Whether requests are length-delimited
1346
+ * @param [responseDelimited=false] Whether responses are length-delimited
1347
+ */
1348
+ constructor(rpcImpl: RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
1349
+
1350
+ /** RPC implementation. Becomes `null` once the service is ended. */
1351
+ public rpcImpl: (RPCImpl|null);
1352
+
1353
+ /** Whether requests are length-delimited. */
1354
+ public requestDelimited: boolean;
1355
+
1356
+ /** Whether responses are length-delimited. */
1357
+ public responseDelimited: boolean;
1358
+
1359
+ /**
1360
+ * Calls a service method through {@link rpc.Service#rpcImpl|rpcImpl}.
1361
+ * @param method Reflected or static method
1362
+ * @param requestCtor Request constructor
1363
+ * @param responseCtor Response constructor
1364
+ * @param request Request message or plain object
1365
+ * @param callback Service callback
1366
+ */
1367
+ 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;
1368
+
1369
+ /**
1370
+ * Ends this service and emits the `end` event.
1371
+ * @param [endedByRPC=false] Whether the service has been ended by the RPC implementation.
1372
+ * @returns `this`
1373
+ */
1374
+ public end(endedByRPC?: boolean): rpc.Service;
1375
+ }
1376
+ }
1377
+
1378
+ /**
1379
+ * RPC implementation passed to {@link Service#create} performing a service request on network level, i.e. by utilizing http requests or websockets.
1380
+ * @param method Reflected or static method being called
1381
+ * @param requestData Request data
1382
+ * @param callback Callback function
1383
+ */
1384
+ type RPCImpl = (method: (Method|rpc.ServiceMethod<Message<{}>, Message<{}>>), requestData: Uint8Array, callback: RPCImplCallback) => void;
1385
+
1386
+ /**
1387
+ * Node-style callback as used by {@link RPCImpl}.
1388
+ * @param error Error, if any, otherwise `null`
1389
+ * @param [response] Response data or `null` to signal end of stream, if there hasn't been an error
1390
+ */
1391
+ type RPCImplCallback = (error: (Error|null), response?: (Uint8Array|null)) => void;
1392
+
1393
+ /** Reflected service. */
1394
+ export class Service extends NamespaceBase {
1395
+
1396
+ /**
1397
+ * Constructs a new service instance.
1398
+ * @param name Service name
1399
+ * @param [options] Service options
1400
+ * @throws {TypeError} If arguments are invalid
1401
+ */
1402
+ constructor(name: string, options?: { [k: string]: any });
1403
+
1404
+ /** Service methods. */
1405
+ public methods: { [k: string]: Method };
1406
+
1407
+ /**
1408
+ * Constructs a service from a service descriptor.
1409
+ * @param name Service name
1410
+ * @param json Service descriptor
1411
+ * @returns Created service
1412
+ * @throws {TypeError} If arguments are invalid
1413
+ */
1414
+ public static fromJSON(name: string, json: IService): Service;
1415
+
1416
+ /**
1417
+ * Converts this service to a service descriptor.
1418
+ * @param [toJSONOptions] JSON conversion options
1419
+ * @returns Service descriptor
1420
+ */
1421
+ public toJSON(toJSONOptions?: IToJSONOptions): IService;
1422
+
1423
+ /** Methods of this service as an array for iteration. */
1424
+ public readonly methodsArray: Method[];
1425
+
1426
+ /**
1427
+ * Creates a runtime service using the specified rpc implementation.
1428
+ * @param rpcImpl RPC implementation
1429
+ * @param [requestDelimited=false] Whether requests are length-delimited
1430
+ * @param [responseDelimited=false] Whether responses are length-delimited
1431
+ * @returns RPC service. Useful where requests and/or responses are streamed.
1432
+ */
1433
+ public create(rpcImpl: RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): rpc.Service;
1434
+ }
1435
+
1436
+ /** Service descriptor. */
1437
+ export interface IService extends INamespace {
1438
+
1439
+ /** Method descriptors */
1440
+ methods: { [k: string]: IMethod };
1441
+ }
1442
+
1443
+ /**
1444
+ * Gets the next token and advances.
1445
+ * @returns Next token or `null` on eof
1446
+ */
1447
+ type TokenizerHandleNext = () => (string|null);
1448
+
1449
+ /**
1450
+ * Peeks for the next token.
1451
+ * @returns Next token or `null` on eof
1452
+ */
1453
+ type TokenizerHandlePeek = () => (string|null);
1454
+
1455
+ /**
1456
+ * Pushes a token back to the stack.
1457
+ * @param token Token
1458
+ */
1459
+ type TokenizerHandlePush = (token: string) => void;
1460
+
1461
+ /**
1462
+ * Skips the next token.
1463
+ * @param expected Expected token
1464
+ * @param [optional=false] If optional
1465
+ * @returns Whether the token matched
1466
+ * @throws {Error} If the token didn't match and is not optional
1467
+ */
1468
+ type TokenizerHandleSkip = (expected: string, optional?: boolean) => boolean;
1469
+
1470
+ /**
1471
+ * Gets the comment on the previous line or, alternatively, the line comment on the specified line.
1472
+ * @param [line] Line number
1473
+ * @returns Comment text or `null` if none
1474
+ */
1475
+ type TokenizerHandleCmnt = (line?: number) => (string|null);
1476
+
1477
+ /** Handle object returned from {@link tokenize}. */
1478
+ export interface ITokenizerHandle {
1479
+
1480
+ /** Gets the next token and advances (`null` on eof) */
1481
+ next: TokenizerHandleNext;
1482
+
1483
+ /** Peeks for the next token (`null` on eof) */
1484
+ peek: TokenizerHandlePeek;
1485
+
1486
+ /** Pushes a token back to the stack */
1487
+ push: TokenizerHandlePush;
1488
+
1489
+ /** Skips a token, returns its presence and advances or, if non-optional and not present, throws */
1490
+ skip: TokenizerHandleSkip;
1491
+
1492
+ /** Gets the comment on the previous line or the line comment on the specified line, if any */
1493
+ cmnt: TokenizerHandleCmnt;
1494
+
1495
+ /** Current line number */
1496
+ line: number;
1497
+ }
1498
+
1499
+ /**
1500
+ * Tokenizes the given .proto source and returns an object with useful utility functions.
1501
+ * @param source Source contents
1502
+ * @param alternateCommentMode Whether we should activate alternate comment parsing mode.
1503
+ * @returns Tokenizer handle
1504
+ */
1505
+ export function tokenize(source: string, alternateCommentMode: boolean): ITokenizerHandle;
1506
+
1507
+ export namespace tokenize {
1508
+
1509
+ /**
1510
+ * Unescapes a string.
1511
+ * @param str String to unescape
1512
+ * @returns Unescaped string
1513
+ */
1514
+ function unescape(str: string): string;
1515
+ }
1516
+
1517
+ /** Reflected message type. */
1518
+ export class Type extends NamespaceBase {
1519
+
1520
+ /**
1521
+ * Constructs a new reflected message type instance.
1522
+ * @param name Message name
1523
+ * @param [options] Declared options
1524
+ */
1525
+ constructor(name: string, options?: { [k: string]: any });
1526
+
1527
+ /** Message fields. */
1528
+ public fields: { [k: string]: Field };
1529
+
1530
+ /** Oneofs declared within this namespace, if any. */
1531
+ public oneofs: { [k: string]: OneOf };
1532
+
1533
+ /** Extension ranges, if any. */
1534
+ public extensions: number[][];
1535
+
1536
+ /** Reserved ranges, if any. */
1537
+ public reserved: (number[]|string)[];
1538
+
1539
+ /** Message fields by id. */
1540
+ public readonly fieldsById: { [k: number]: Field };
1541
+
1542
+ /** Fields of this message as an array for iteration. */
1543
+ public readonly fieldsArray: Field[];
1544
+
1545
+ /** Oneofs of this message as an array for iteration. */
1546
+ public readonly oneofsArray: OneOf[];
1547
+
1548
+ /**
1549
+ * The registered constructor, if any registered, otherwise a generic constructor.
1550
+ * 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.
1551
+ */
1552
+ public ctor: Constructor<{}>;
1553
+
1554
+ /**
1555
+ * Generates a constructor function for the specified type.
1556
+ * @param mtype Message type
1557
+ * @returns Codegen instance
1558
+ */
1559
+ public static generateConstructor(mtype: Type): Codegen;
1560
+
1561
+ /**
1562
+ * Creates a message type from a message type descriptor.
1563
+ * @param name Message name
1564
+ * @param json Message type descriptor
1565
+ * @returns Created message type
1566
+ */
1567
+ public static fromJSON(name: string, json: IType): Type;
1568
+
1569
+ /**
1570
+ * Converts this message type to a message type descriptor.
1571
+ * @param [toJSONOptions] JSON conversion options
1572
+ * @returns Message type descriptor
1573
+ */
1574
+ public toJSON(toJSONOptions?: IToJSONOptions): IType;
1575
+
1576
+ /**
1577
+ * Adds a nested object to this type.
1578
+ * @param object Nested object to add
1579
+ * @returns `this`
1580
+ * @throws {TypeError} If arguments are invalid
1581
+ * @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
1582
+ */
1583
+ public add(object: ReflectionObject): Type;
1584
+
1585
+ /**
1586
+ * Removes a nested object from this type.
1587
+ * @param object Nested object to remove
1588
+ * @returns `this`
1589
+ * @throws {TypeError} If arguments are invalid
1590
+ * @throws {Error} If `object` is not a member of this type
1591
+ */
1592
+ public remove(object: ReflectionObject): Type;
1593
+
1594
+ /**
1595
+ * Tests if the specified id is reserved.
1596
+ * @param id Id to test
1597
+ * @returns `true` if reserved, otherwise `false`
1598
+ */
1599
+ public isReservedId(id: number): boolean;
1600
+
1601
+ /**
1602
+ * Tests if the specified name is reserved.
1603
+ * @param name Name to test
1604
+ * @returns `true` if reserved, otherwise `false`
1605
+ */
1606
+ public isReservedName(name: string): boolean;
1607
+
1608
+ /**
1609
+ * Creates a new message of this type using the specified properties.
1610
+ * @param [properties] Properties to set
1611
+ * @returns Message instance
1612
+ */
1613
+ public create(properties?: { [k: string]: any }): Message<{}>;
1614
+
1615
+ /**
1616
+ * Sets up {@link Type#encode|encode}, {@link Type#decode|decode} and {@link Type#verify|verify}.
1617
+ * @returns `this`
1618
+ */
1619
+ public setup(): Type;
1620
+
1621
+ /**
1622
+ * Encodes a message of this type. Does not implicitly {@link Type#verify|verify} messages.
1623
+ * @param message Message instance or plain object
1624
+ * @param [writer] Writer to encode to
1625
+ * @returns writer
1626
+ */
1627
+ public encode(message: (Message<{}>|{ [k: string]: any }), writer?: Writer): Writer;
1628
+
1629
+ /**
1630
+ * Encodes a message of this type preceeded by its byte length as a varint. Does not implicitly {@link Type#verify|verify} messages.
1631
+ * @param message Message instance or plain object
1632
+ * @param [writer] Writer to encode to
1633
+ * @returns writer
1634
+ */
1635
+ public encodeDelimited(message: (Message<{}>|{ [k: string]: any }), writer?: Writer): Writer;
1636
+
1637
+ /**
1638
+ * Decodes a message of this type.
1639
+ * @param reader Reader or buffer to decode from
1640
+ * @param [length] Length of the message, if known beforehand
1641
+ * @returns Decoded message
1642
+ * @throws {Error} If the payload is not a reader or valid buffer
1643
+ * @throws {util.ProtocolError<{}>} If required fields are missing
1644
+ */
1645
+ public decode(reader: (Reader|Uint8Array), length?: number): Message<{}>;
1646
+
1647
+ /**
1648
+ * Decodes a message of this type preceeded by its byte length as a varint.
1649
+ * @param reader Reader or buffer to decode from
1650
+ * @returns Decoded message
1651
+ * @throws {Error} If the payload is not a reader or valid buffer
1652
+ * @throws {util.ProtocolError} If required fields are missing
1653
+ */
1654
+ public decodeDelimited(reader: (Reader|Uint8Array)): Message<{}>;
1655
+
1656
+ /**
1657
+ * Verifies that field values are valid and that required fields are present.
1658
+ * @param message Plain object to verify
1659
+ * @returns `null` if valid, otherwise the reason why it is not
1660
+ */
1661
+ public verify(message: { [k: string]: any }): (null|string);
1662
+
1663
+ /**
1664
+ * Creates a new message of this type from a plain object. Also converts values to their respective internal types.
1665
+ * @param object Plain object to convert
1666
+ * @returns Message instance
1667
+ */
1668
+ public fromObject(object: { [k: string]: any }): Message<{}>;
1669
+
1670
+ /**
1671
+ * Creates a plain object from a message of this type. Also converts values to other types if specified.
1672
+ * @param message Message instance
1673
+ * @param [options] Conversion options
1674
+ * @returns Plain object
1675
+ */
1676
+ public toObject(message: Message<{}>, options?: IConversionOptions): { [k: string]: any };
1677
+
1678
+ /**
1679
+ * Type decorator (TypeScript).
1680
+ * @param [typeName] Type name, defaults to the constructor's name
1681
+ * @returns Decorator function
1682
+ */
1683
+ public static d<T extends Message<T>>(typeName?: string): TypeDecorator<T>;
1684
+ }
1685
+
1686
+ /** Message type descriptor. */
1687
+ export interface IType extends INamespace {
1688
+
1689
+ /** Oneof descriptors */
1690
+ oneofs?: { [k: string]: IOneOf };
1691
+
1692
+ /** Field descriptors */
1693
+ fields: { [k: string]: IField };
1694
+
1695
+ /** Extension ranges */
1696
+ extensions?: number[][];
1697
+
1698
+ /** Reserved ranges */
1699
+ reserved?: number[][];
1700
+
1701
+ /** Whether a legacy group or not */
1702
+ group?: boolean;
1703
+ }
1704
+
1705
+ /** Conversion options as used by {@link Type#toObject} and {@link Message.toObject}. */
1706
+ export interface IConversionOptions {
1707
+
1708
+ /**
1709
+ * Long conversion type.
1710
+ * Valid values are `String` and `Number` (the global types).
1711
+ * Defaults to copy the present value, which is a possibly unsafe number without and a {@link Long} with a long library.
1712
+ */
1713
+ longs?: Function;
1714
+
1715
+ /**
1716
+ * Enum value conversion type.
1717
+ * Only valid value is `String` (the global type).
1718
+ * Defaults to copy the present value, which is the numeric id.
1719
+ */
1720
+ enums?: Function;
1721
+
1722
+ /**
1723
+ * Bytes value conversion type.
1724
+ * Valid values are `Array` and (a base64 encoded) `String` (the global types).
1725
+ * Defaults to copy the present value, which usually is a Buffer under node and an Uint8Array in the browser.
1726
+ */
1727
+ bytes?: Function;
1728
+
1729
+ /** Also sets default values on the resulting object */
1730
+ defaults?: boolean;
1731
+
1732
+ /** Sets empty arrays for missing repeated fields even if `defaults=false` */
1733
+ arrays?: boolean;
1734
+
1735
+ /** Sets empty objects for missing map fields even if `defaults=false` */
1736
+ objects?: boolean;
1737
+
1738
+ /** Includes virtual oneof properties set to the present field's name, if any */
1739
+ oneofs?: boolean;
1740
+
1741
+ /** Performs additional JSON compatibility conversions, i.e. NaN and Infinity to strings */
1742
+ json?: boolean;
1743
+ }
1744
+
1745
+ /**
1746
+ * Decorator function as returned by {@link Type.d} (TypeScript).
1747
+ * @param target Target constructor
1748
+ */
1749
+ type TypeDecorator<T extends Message<T>> = (target: Constructor<T>) => void;
1750
+
1751
+ /** Common type constants. */
1752
+ export namespace types {
1753
+
1754
+ /** Basic type wire types. */
1755
+ const basic: {
1756
+ "double": number,
1757
+ "float": number,
1758
+ "int32": number,
1759
+ "uint32": number,
1760
+ "sint32": number,
1761
+ "fixed32": number,
1762
+ "sfixed32": number,
1763
+ "int64": number,
1764
+ "uint64": number,
1765
+ "sint64": number,
1766
+ "fixed64": number,
1767
+ "sfixed64": number,
1768
+ "bool": number,
1769
+ "string": number,
1770
+ "bytes": number
1771
+ };
1772
+
1773
+ /** Basic type defaults. */
1774
+ const defaults: {
1775
+ "double": number,
1776
+ "float": number,
1777
+ "int32": number,
1778
+ "uint32": number,
1779
+ "sint32": number,
1780
+ "fixed32": number,
1781
+ "sfixed32": number,
1782
+ "int64": number,
1783
+ "uint64": number,
1784
+ "sint64": number,
1785
+ "fixed64": number,
1786
+ "sfixed64": number,
1787
+ "bool": boolean,
1788
+ "string": string,
1789
+ "bytes": number[],
1790
+ "message": null
1791
+ };
1792
+
1793
+ /** Basic long type wire types. */
1794
+ const long: {
1795
+ "int64": number,
1796
+ "uint64": number,
1797
+ "sint64": number,
1798
+ "fixed64": number,
1799
+ "sfixed64": number
1800
+ };
1801
+
1802
+ /** Allowed types for map keys with their associated wire type. */
1803
+ const mapKey: {
1804
+ "int32": number,
1805
+ "uint32": number,
1806
+ "sint32": number,
1807
+ "fixed32": number,
1808
+ "sfixed32": number,
1809
+ "int64": number,
1810
+ "uint64": number,
1811
+ "sint64": number,
1812
+ "fixed64": number,
1813
+ "sfixed64": number,
1814
+ "bool": number,
1815
+ "string": number
1816
+ };
1817
+
1818
+ /** Allowed types for packed repeated fields with their associated wire type. */
1819
+ const packed: {
1820
+ "double": number,
1821
+ "float": number,
1822
+ "int32": number,
1823
+ "uint32": number,
1824
+ "sint32": number,
1825
+ "fixed32": number,
1826
+ "sfixed32": number,
1827
+ "int64": number,
1828
+ "uint64": number,
1829
+ "sint64": number,
1830
+ "fixed64": number,
1831
+ "sfixed64": number,
1832
+ "bool": number
1833
+ };
1834
+ }
1835
+
1836
+ /** Constructor type. */
1837
+ export interface Constructor<T> extends Function {
1838
+ new(...params: any[]): T; prototype: T;
1839
+ }
1840
+
1841
+ /** Properties type. */
1842
+ type Properties<T> = { [P in keyof T]?: T[P] };
1843
+
1844
+ /**
1845
+ * Any compatible Buffer instance.
1846
+ * This is a minimal stand-alone definition of a Buffer instance. The actual type is that exported by node's typings.
1847
+ */
1848
+ export interface Buffer extends Uint8Array {
1849
+ }
1850
+
1851
+ /**
1852
+ * Any compatible Long instance.
1853
+ * This is a minimal stand-alone definition of a Long instance. The actual type is that exported by long.js.
1854
+ */
1855
+ export interface Long {
1856
+
1857
+ /** Low bits */
1858
+ low: number;
1859
+
1860
+ /** High bits */
1861
+ high: number;
1862
+
1863
+ /** Whether unsigned or not */
1864
+ unsigned: boolean;
1865
+ }
1866
+
1867
+ /**
1868
+ * A OneOf getter as returned by {@link util.oneOfGetter}.
1869
+ * @returns Set field name, if any
1870
+ */
1871
+ type OneOfGetter = () => (string|undefined);
1872
+
1873
+ /**
1874
+ * A OneOf setter as returned by {@link util.oneOfSetter}.
1875
+ * @param value Field name
1876
+ */
1877
+ type OneOfSetter = (value: (string|undefined)) => void;
1878
+
1879
+ /** Various utility functions. */
1880
+ export namespace util {
1881
+
1882
+ /** Helper class for working with the low and high bits of a 64 bit value. */
1883
+ class LongBits {
1884
+
1885
+ /**
1886
+ * Constructs new long bits.
1887
+ * @param lo Low 32 bits, unsigned
1888
+ * @param hi High 32 bits, unsigned
1889
+ */
1890
+ constructor(lo: number, hi: number);
1891
+
1892
+ /** Low bits. */
1893
+ public lo: number;
1894
+
1895
+ /** High bits. */
1896
+ public hi: number;
1897
+
1898
+ /** Zero bits. */
1899
+ public static zero: util.LongBits;
1900
+
1901
+ /** Zero hash. */
1902
+ public static zeroHash: string;
1903
+
1904
+ /**
1905
+ * Constructs new long bits from the specified number.
1906
+ * @param value Value
1907
+ * @returns Instance
1908
+ */
1909
+ public static fromNumber(value: number): util.LongBits;
1910
+
1911
+ /**
1912
+ * Constructs new long bits from a number, long or string.
1913
+ * @param value Value
1914
+ * @returns Instance
1915
+ */
1916
+ public static from(value: (Long|number|string)): util.LongBits;
1917
+
1918
+ /**
1919
+ * Converts this long bits to a possibly unsafe JavaScript number.
1920
+ * @param [unsigned=false] Whether unsigned or not
1921
+ * @returns Possibly unsafe number
1922
+ */
1923
+ public toNumber(unsigned?: boolean): number;
1924
+
1925
+ /**
1926
+ * Converts this long bits to a long.
1927
+ * @param [unsigned=false] Whether unsigned or not
1928
+ * @returns Long
1929
+ */
1930
+ public toLong(unsigned?: boolean): Long;
1931
+
1932
+ /**
1933
+ * Constructs new long bits from the specified 8 characters long hash.
1934
+ * @param hash Hash
1935
+ * @returns Bits
1936
+ */
1937
+ public static fromHash(hash: string): util.LongBits;
1938
+
1939
+ /**
1940
+ * Converts this long bits to a 8 characters long hash.
1941
+ * @returns Hash
1942
+ */
1943
+ public toHash(): string;
1944
+
1945
+ /**
1946
+ * Zig-zag encodes this long bits.
1947
+ * @returns `this`
1948
+ */
1949
+ public zzEncode(): util.LongBits;
1950
+
1951
+ /**
1952
+ * Zig-zag decodes this long bits.
1953
+ * @returns `this`
1954
+ */
1955
+ public zzDecode(): util.LongBits;
1956
+
1957
+ /**
1958
+ * Calculates the length of this longbits when encoded as a varint.
1959
+ * @returns Length
1960
+ */
1961
+ public length(): number;
1962
+ }
1963
+
1964
+ /** Whether running within node or not. */
1965
+ let isNode: boolean;
1966
+
1967
+ /** Global object reference. */
1968
+ let global: object;
1969
+
1970
+ /** An immuable empty array. */
1971
+ const emptyArray: any[];
1972
+
1973
+ /** An immutable empty object. */
1974
+ const emptyObject: object;
1975
+
1976
+ /**
1977
+ * Tests if the specified value is an integer.
1978
+ * @param value Value to test
1979
+ * @returns `true` if the value is an integer
1980
+ */
1981
+ function isInteger(value: any): boolean;
1982
+
1983
+ /**
1984
+ * Tests if the specified value is a string.
1985
+ * @param value Value to test
1986
+ * @returns `true` if the value is a string
1987
+ */
1988
+ function isString(value: any): boolean;
1989
+
1990
+ /**
1991
+ * Tests if the specified value is a non-null object.
1992
+ * @param value Value to test
1993
+ * @returns `true` if the value is a non-null object
1994
+ */
1995
+ function isObject(value: any): boolean;
1996
+
1997
+ /**
1998
+ * Checks if a property on a message is considered to be present.
1999
+ * This is an alias of {@link util.isSet}.
2000
+ * @param obj Plain object or message instance
2001
+ * @param prop Property name
2002
+ * @returns `true` if considered to be present, otherwise `false`
2003
+ */
2004
+ function isset(obj: object, prop: string): boolean;
2005
+
2006
+ /**
2007
+ * Checks if a property on a message is considered to be present.
2008
+ * @param obj Plain object or message instance
2009
+ * @param prop Property name
2010
+ * @returns `true` if considered to be present, otherwise `false`
2011
+ */
2012
+ function isSet(obj: object, prop: string): boolean;
2013
+
2014
+ /** Node's Buffer class if available. */
2015
+ let Buffer: Constructor<Buffer>;
2016
+
2017
+ /**
2018
+ * Creates a new buffer of whatever type supported by the environment.
2019
+ * @param [sizeOrArray=0] Buffer size or number array
2020
+ * @returns Buffer
2021
+ */
2022
+ function newBuffer(sizeOrArray?: (number|number[])): (Uint8Array|Buffer);
2023
+
2024
+ /** Array implementation used in the browser. `Uint8Array` if supported, otherwise `Array`. */
2025
+ let Array: Constructor<Uint8Array>;
2026
+
2027
+ /** Long.js's Long class if available. */
2028
+ let Long: Constructor<Long>;
2029
+
2030
+ /** Regular expression used to verify 2 bit (`bool`) map keys. */
2031
+ const key2Re: RegExp;
2032
+
2033
+ /** Regular expression used to verify 32 bit (`int32` etc.) map keys. */
2034
+ const key32Re: RegExp;
2035
+
2036
+ /** Regular expression used to verify 64 bit (`int64` etc.) map keys. */
2037
+ const key64Re: RegExp;
2038
+
2039
+ /**
2040
+ * Converts a number or long to an 8 characters long hash string.
2041
+ * @param value Value to convert
2042
+ * @returns Hash
2043
+ */
2044
+ function longToHash(value: (Long|number)): string;
2045
+
2046
+ /**
2047
+ * Converts an 8 characters long hash string to a long or number.
2048
+ * @param hash Hash
2049
+ * @param [unsigned=false] Whether unsigned or not
2050
+ * @returns Original value
2051
+ */
2052
+ function longFromHash(hash: string, unsigned?: boolean): (Long|number);
2053
+
2054
+ /**
2055
+ * Merges the properties of the source object into the destination object.
2056
+ * @param dst Destination object
2057
+ * @param src Source object
2058
+ * @param [ifNotSet=false] Merges only if the key is not already set
2059
+ * @returns Destination object
2060
+ */
2061
+ function merge(dst: { [k: string]: any }, src: { [k: string]: any }, ifNotSet?: boolean): { [k: string]: any };
2062
+
2063
+ /**
2064
+ * Converts the first character of a string to lower case.
2065
+ * @param str String to convert
2066
+ * @returns Converted string
2067
+ */
2068
+ function lcFirst(str: string): string;
2069
+
2070
+ /**
2071
+ * Creates a custom error constructor.
2072
+ * @param name Error name
2073
+ * @returns Custom error constructor
2074
+ */
2075
+ function newError(name: string): Constructor<Error>;
2076
+
2077
+ /** Error subclass indicating a protocol specifc error. */
2078
+ class ProtocolError<T extends Message<T>> extends Error {
2079
+
2080
+ /**
2081
+ * Constructs a new protocol error.
2082
+ * @param message Error message
2083
+ * @param [properties] Additional properties
2084
+ */
2085
+ constructor(message: string, properties?: { [k: string]: any });
2086
+
2087
+ /** So far decoded message instance. */
2088
+ public instance: Message<T>;
2089
+ }
2090
+
2091
+ /**
2092
+ * Builds a getter for a oneof's present field name.
2093
+ * @param fieldNames Field names
2094
+ * @returns Unbound getter
2095
+ */
2096
+ function oneOfGetter(fieldNames: string[]): OneOfGetter;
2097
+
2098
+ /**
2099
+ * Builds a setter for a oneof's present field name.
2100
+ * @param fieldNames Field names
2101
+ * @returns Unbound setter
2102
+ */
2103
+ function oneOfSetter(fieldNames: string[]): OneOfSetter;
2104
+
2105
+ /**
2106
+ * Default conversion options used for {@link Message#toJSON} implementations.
2107
+ *
2108
+ * These options are close to proto3's JSON mapping with the exception that internal types like Any are handled just like messages. More precisely:
2109
+ *
2110
+ * - Longs become strings
2111
+ * - Enums become string keys
2112
+ * - Bytes become base64 encoded strings
2113
+ * - (Sub-)Messages become plain objects
2114
+ * - Maps become plain objects with all string keys
2115
+ * - Repeated fields become arrays
2116
+ * - NaN and Infinity for float and double fields become strings
2117
+ *
2118
+ * @see https://developers.google.com/protocol-buffers/docs/proto3?hl=en#json
2119
+ */
2120
+ let toJSONOptions: IConversionOptions;
2121
+
2122
+ /** Node's fs module if available. */
2123
+ let fs: { [k: string]: any };
2124
+
2125
+ /**
2126
+ * Converts an object's values to an array.
2127
+ * @param object Object to convert
2128
+ * @returns Converted array
2129
+ */
2130
+ function toArray(object: { [k: string]: any }): any[];
2131
+
2132
+ /**
2133
+ * Converts an array of keys immediately followed by their respective value to an object, omitting undefined values.
2134
+ * @param array Array to convert
2135
+ * @returns Converted object
2136
+ */
2137
+ function toObject(array: any[]): { [k: string]: any };
2138
+
2139
+ /**
2140
+ * Tests whether the specified name is a reserved word in JS.
2141
+ * @param name Name to test
2142
+ * @returns `true` if reserved, otherwise `false`
2143
+ */
2144
+ function isReserved(name: string): boolean;
2145
+
2146
+ /**
2147
+ * Returns a safe property accessor for the specified property name.
2148
+ * @param prop Property name
2149
+ * @returns Safe accessor
2150
+ */
2151
+ function safeProp(prop: string): string;
2152
+
2153
+ /**
2154
+ * Converts the first character of a string to upper case.
2155
+ * @param str String to convert
2156
+ * @returns Converted string
2157
+ */
2158
+ function ucFirst(str: string): string;
2159
+
2160
+ /**
2161
+ * Converts a string to camel case.
2162
+ * @param str String to convert
2163
+ * @returns Converted string
2164
+ */
2165
+ function camelCase(str: string): string;
2166
+
2167
+ /**
2168
+ * Compares reflected fields by id.
2169
+ * @param a First field
2170
+ * @param b Second field
2171
+ * @returns Comparison value
2172
+ */
2173
+ function compareFieldsById(a: Field, b: Field): number;
2174
+
2175
+ /**
2176
+ * Decorator helper for types (TypeScript).
2177
+ * @param ctor Constructor function
2178
+ * @param [typeName] Type name, defaults to the constructor's name
2179
+ * @returns Reflected type
2180
+ */
2181
+ function decorateType<T extends Message<T>>(ctor: Constructor<T>, typeName?: string): Type;
2182
+
2183
+ /**
2184
+ * Decorator helper for enums (TypeScript).
2185
+ * @param object Enum object
2186
+ * @returns Reflected enum
2187
+ */
2188
+ function decorateEnum(object: object): Enum;
2189
+
2190
+ /**
2191
+ * Sets the value of a property by property path. If a value already exists, it is turned to an array
2192
+ * @param dst Destination object
2193
+ * @param path dot '.' delimited path of the property to set
2194
+ * @param value the value to set
2195
+ * @returns Destination object
2196
+ */
2197
+ function setProperty(dst: { [k: string]: any }, path: string, value: object): { [k: string]: any };
2198
+
2199
+ /** Decorator root (TypeScript). */
2200
+ let decorateRoot: Root;
2201
+
2202
+ /**
2203
+ * Returns a promise from a node-style callback function.
2204
+ * @param fn Function to call
2205
+ * @param ctx Function context
2206
+ * @param params Function arguments
2207
+ * @returns Promisified function
2208
+ */
2209
+ function asPromise(fn: asPromiseCallback, ctx: any, ...params: any[]): Promise<any>;
2210
+
2211
+ /** A minimal base64 implementation for number arrays. */
2212
+ namespace base64 {
2213
+
2214
+ /**
2215
+ * Calculates the byte length of a base64 encoded string.
2216
+ * @param string Base64 encoded string
2217
+ * @returns Byte length
2218
+ */
2219
+ function length(string: string): number;
2220
+
2221
+ /**
2222
+ * Encodes a buffer to a base64 encoded string.
2223
+ * @param buffer Source buffer
2224
+ * @param start Source start
2225
+ * @param end Source end
2226
+ * @returns Base64 encoded string
2227
+ */
2228
+ function encode(buffer: Uint8Array, start: number, end: number): string;
2229
+
2230
+ /**
2231
+ * Decodes a base64 encoded string to a buffer.
2232
+ * @param string Source string
2233
+ * @param buffer Destination buffer
2234
+ * @param offset Destination offset
2235
+ * @returns Number of bytes written
2236
+ * @throws {Error} If encoding is invalid
2237
+ */
2238
+ function decode(string: string, buffer: Uint8Array, offset: number): number;
2239
+
2240
+ /**
2241
+ * Tests if the specified string appears to be base64 encoded.
2242
+ * @param string String to test
2243
+ * @returns `true` if probably base64 encoded, otherwise false
2244
+ */
2245
+ function test(string: string): boolean;
2246
+ }
2247
+
2248
+ /**
2249
+ * Begins generating a function.
2250
+ * @param functionParams Function parameter names
2251
+ * @param [functionName] Function name if not anonymous
2252
+ * @returns Appender that appends code to the function's body
2253
+ */
2254
+ function codegen(functionParams: string[], functionName?: string): Codegen;
2255
+
2256
+ namespace codegen {
2257
+
2258
+ /** When set to `true`, codegen will log generated code to console. Useful for debugging. */
2259
+ let verbose: boolean;
2260
+ }
2261
+
2262
+ /**
2263
+ * Begins generating a function.
2264
+ * @param [functionName] Function name if not anonymous
2265
+ * @returns Appender that appends code to the function's body
2266
+ */
2267
+ function codegen(functionName?: string): Codegen;
2268
+
2269
+ /** A minimal event emitter. */
2270
+ class EventEmitter {
2271
+
2272
+ /** Constructs a new event emitter instance. */
2273
+ constructor();
2274
+
2275
+ /**
2276
+ * Registers an event listener.
2277
+ * @param evt Event name
2278
+ * @param fn Listener
2279
+ * @param [ctx] Listener context
2280
+ * @returns `this`
2281
+ */
2282
+ public on(evt: string, fn: EventEmitterListener, ctx?: any): this;
2283
+
2284
+ /**
2285
+ * Removes an event listener or any matching listeners if arguments are omitted.
2286
+ * @param [evt] Event name. Removes all listeners if omitted.
2287
+ * @param [fn] Listener to remove. Removes all listeners of `evt` if omitted.
2288
+ * @returns `this`
2289
+ */
2290
+ public off(evt?: string, fn?: EventEmitterListener): this;
2291
+
2292
+ /**
2293
+ * Emits an event by calling its listeners with the specified arguments.
2294
+ * @param evt Event name
2295
+ * @param args Arguments
2296
+ * @returns `this`
2297
+ */
2298
+ public emit(evt: string, ...args: any[]): this;
2299
+ }
2300
+
2301
+ /** Reads / writes floats / doubles from / to buffers. */
2302
+ namespace float {
2303
+
2304
+ /**
2305
+ * Writes a 32 bit float to a buffer using little endian byte order.
2306
+ * @param val Value to write
2307
+ * @param buf Target buffer
2308
+ * @param pos Target buffer offset
2309
+ */
2310
+ function writeFloatLE(val: number, buf: Uint8Array, pos: number): void;
2311
+
2312
+ /**
2313
+ * Writes a 32 bit float to a buffer using big endian byte order.
2314
+ * @param val Value to write
2315
+ * @param buf Target buffer
2316
+ * @param pos Target buffer offset
2317
+ */
2318
+ function writeFloatBE(val: number, buf: Uint8Array, pos: number): void;
2319
+
2320
+ /**
2321
+ * Reads a 32 bit float from a buffer using little endian byte order.
2322
+ * @param buf Source buffer
2323
+ * @param pos Source buffer offset
2324
+ * @returns Value read
2325
+ */
2326
+ function readFloatLE(buf: Uint8Array, pos: number): number;
2327
+
2328
+ /**
2329
+ * Reads a 32 bit float from a buffer using big endian byte order.
2330
+ * @param buf Source buffer
2331
+ * @param pos Source buffer offset
2332
+ * @returns Value read
2333
+ */
2334
+ function readFloatBE(buf: Uint8Array, pos: number): number;
2335
+
2336
+ /**
2337
+ * Writes a 64 bit double to a buffer using little endian byte order.
2338
+ * @param val Value to write
2339
+ * @param buf Target buffer
2340
+ * @param pos Target buffer offset
2341
+ */
2342
+ function writeDoubleLE(val: number, buf: Uint8Array, pos: number): void;
2343
+
2344
+ /**
2345
+ * Writes a 64 bit double to a buffer using big endian byte order.
2346
+ * @param val Value to write
2347
+ * @param buf Target buffer
2348
+ * @param pos Target buffer offset
2349
+ */
2350
+ function writeDoubleBE(val: number, buf: Uint8Array, pos: number): void;
2351
+
2352
+ /**
2353
+ * Reads a 64 bit double from a buffer using little endian byte order.
2354
+ * @param buf Source buffer
2355
+ * @param pos Source buffer offset
2356
+ * @returns Value read
2357
+ */
2358
+ function readDoubleLE(buf: Uint8Array, pos: number): number;
2359
+
2360
+ /**
2361
+ * Reads a 64 bit double from a buffer using big endian byte order.
2362
+ * @param buf Source buffer
2363
+ * @param pos Source buffer offset
2364
+ * @returns Value read
2365
+ */
2366
+ function readDoubleBE(buf: Uint8Array, pos: number): number;
2367
+ }
2368
+
2369
+ /**
2370
+ * Fetches the contents of a file.
2371
+ * @param filename File path or url
2372
+ * @param options Fetch options
2373
+ * @param callback Callback function
2374
+ */
2375
+ function fetch(filename: string, options: IFetchOptions, callback: FetchCallback): void;
2376
+
2377
+ /**
2378
+ * Fetches the contents of a file.
2379
+ * @param path File path or url
2380
+ * @param callback Callback function
2381
+ */
2382
+ function fetch(path: string, callback: FetchCallback): void;
2383
+
2384
+ /**
2385
+ * Fetches the contents of a file.
2386
+ * @param path File path or url
2387
+ * @param [options] Fetch options
2388
+ * @returns Promise
2389
+ */
2390
+ function fetch(path: string, options?: IFetchOptions): Promise<(string|Uint8Array)>;
2391
+
2392
+ /**
2393
+ * Requires a module only if available.
2394
+ * @param moduleName Module to require
2395
+ * @returns Required module if available and not empty, otherwise `null`
2396
+ */
2397
+ function inquire(moduleName: string): object;
2398
+
2399
+ /** A minimal path module to resolve Unix, Windows and URL paths alike. */
2400
+ namespace path {
2401
+
2402
+ /**
2403
+ * Tests if the specified path is absolute.
2404
+ * @param path Path to test
2405
+ * @returns `true` if path is absolute
2406
+ */
2407
+ function isAbsolute(path: string): boolean;
2408
+
2409
+ /**
2410
+ * Normalizes the specified path.
2411
+ * @param path Path to normalize
2412
+ * @returns Normalized path
2413
+ */
2414
+ function normalize(path: string): string;
2415
+
2416
+ /**
2417
+ * Resolves the specified include path against the specified origin path.
2418
+ * @param originPath Path to the origin file
2419
+ * @param includePath Include path relative to origin path
2420
+ * @param [alreadyNormalized=false] `true` if both paths are already known to be normalized
2421
+ * @returns Path to the include file
2422
+ */
2423
+ function resolve(originPath: string, includePath: string, alreadyNormalized?: boolean): string;
2424
+ }
2425
+
2426
+ /**
2427
+ * A general purpose buffer pool.
2428
+ * @param alloc Allocator
2429
+ * @param slice Slicer
2430
+ * @param [size=8192] Slab size
2431
+ * @returns Pooled allocator
2432
+ */
2433
+ function pool(alloc: PoolAllocator, slice: PoolSlicer, size?: number): PoolAllocator;
2434
+
2435
+ /** A minimal UTF8 implementation for number arrays. */
2436
+ namespace utf8 {
2437
+
2438
+ /**
2439
+ * Calculates the UTF8 byte length of a string.
2440
+ * @param string String
2441
+ * @returns Byte length
2442
+ */
2443
+ function length(string: string): number;
2444
+
2445
+ /**
2446
+ * Reads UTF8 bytes as a string.
2447
+ * @param buffer Source buffer
2448
+ * @param start Source start
2449
+ * @param end Source end
2450
+ * @returns String read
2451
+ */
2452
+ function read(buffer: Uint8Array, start: number, end: number): string;
2453
+
2454
+ /**
2455
+ * Writes a string as UTF8 bytes.
2456
+ * @param string Source string
2457
+ * @param buffer Destination buffer
2458
+ * @param offset Destination offset
2459
+ * @returns Bytes written
2460
+ */
2461
+ function write(string: string, buffer: Uint8Array, offset: number): number;
2462
+ }
2463
+ }
2464
+
2465
+ /**
2466
+ * Generates a verifier specific to the specified message type.
2467
+ * @param mtype Message type
2468
+ * @returns Codegen instance
2469
+ */
2470
+ export function verifier(mtype: Type): Codegen;
2471
+
2472
+ /** Wrappers for common types. */
2473
+ export const wrappers: { [k: string]: IWrapper };
2474
+
2475
+ /**
2476
+ * From object converter part of an {@link IWrapper}.
2477
+ * @param object Plain object
2478
+ * @returns Message instance
2479
+ */
2480
+ type WrapperFromObjectConverter = (this: Type, object: { [k: string]: any }) => Message<{}>;
2481
+
2482
+ /**
2483
+ * To object converter part of an {@link IWrapper}.
2484
+ * @param message Message instance
2485
+ * @param [options] Conversion options
2486
+ * @returns Plain object
2487
+ */
2488
+ type WrapperToObjectConverter = (this: Type, message: Message<{}>, options?: IConversionOptions) => { [k: string]: any };
2489
+
2490
+ /** Common type wrapper part of {@link wrappers}. */
2491
+ export interface IWrapper {
2492
+
2493
+ /** From object converter */
2494
+ fromObject?: WrapperFromObjectConverter;
2495
+
2496
+ /** To object converter */
2497
+ toObject?: WrapperToObjectConverter;
2498
+ }
2499
+
2500
+ /** Wire format writer using `Uint8Array` if available, otherwise `Array`. */
2501
+ export class Writer {
2502
+
2503
+ /** Constructs a new writer instance. */
2504
+ constructor();
2505
+
2506
+ /** Current length. */
2507
+ public len: number;
2508
+
2509
+ /** Operations head. */
2510
+ public head: object;
2511
+
2512
+ /** Operations tail */
2513
+ public tail: object;
2514
+
2515
+ /** Linked forked states. */
2516
+ public states: (object|null);
2517
+
2518
+ /**
2519
+ * Creates a new writer.
2520
+ * @returns A {@link BufferWriter} when Buffers are supported, otherwise a {@link Writer}
2521
+ */
2522
+ public static create(): (BufferWriter|Writer);
2523
+
2524
+ /**
2525
+ * Allocates a buffer of the specified size.
2526
+ * @param size Buffer size
2527
+ * @returns Buffer
2528
+ */
2529
+ public static alloc(size: number): Uint8Array;
2530
+
2531
+ /**
2532
+ * Writes an unsigned 32 bit value as a varint.
2533
+ * @param value Value to write
2534
+ * @returns `this`
2535
+ */
2536
+ public uint32(value: number): Writer;
2537
+
2538
+ /**
2539
+ * Writes a signed 32 bit value as a varint.
2540
+ * @param value Value to write
2541
+ * @returns `this`
2542
+ */
2543
+ public int32(value: number): Writer;
2544
+
2545
+ /**
2546
+ * Writes a 32 bit value as a varint, zig-zag encoded.
2547
+ * @param value Value to write
2548
+ * @returns `this`
2549
+ */
2550
+ public sint32(value: number): Writer;
2551
+
2552
+ /**
2553
+ * Writes an unsigned 64 bit value as a varint.
2554
+ * @param value Value to write
2555
+ * @returns `this`
2556
+ * @throws {TypeError} If `value` is a string and no long library is present.
2557
+ */
2558
+ public uint64(value: (Long|number|string)): Writer;
2559
+
2560
+ /**
2561
+ * Writes a signed 64 bit value as a varint.
2562
+ * @param value Value to write
2563
+ * @returns `this`
2564
+ * @throws {TypeError} If `value` is a string and no long library is present.
2565
+ */
2566
+ public int64(value: (Long|number|string)): Writer;
2567
+
2568
+ /**
2569
+ * Writes a signed 64 bit value as a varint, zig-zag encoded.
2570
+ * @param value Value to write
2571
+ * @returns `this`
2572
+ * @throws {TypeError} If `value` is a string and no long library is present.
2573
+ */
2574
+ public sint64(value: (Long|number|string)): Writer;
2575
+
2576
+ /**
2577
+ * Writes a boolish value as a varint.
2578
+ * @param value Value to write
2579
+ * @returns `this`
2580
+ */
2581
+ public bool(value: boolean): Writer;
2582
+
2583
+ /**
2584
+ * Writes an unsigned 32 bit value as fixed 32 bits.
2585
+ * @param value Value to write
2586
+ * @returns `this`
2587
+ */
2588
+ public fixed32(value: number): Writer;
2589
+
2590
+ /**
2591
+ * Writes a signed 32 bit value as fixed 32 bits.
2592
+ * @param value Value to write
2593
+ * @returns `this`
2594
+ */
2595
+ public sfixed32(value: number): Writer;
2596
+
2597
+ /**
2598
+ * Writes an unsigned 64 bit value as fixed 64 bits.
2599
+ * @param value Value to write
2600
+ * @returns `this`
2601
+ * @throws {TypeError} If `value` is a string and no long library is present.
2602
+ */
2603
+ public fixed64(value: (Long|number|string)): Writer;
2604
+
2605
+ /**
2606
+ * Writes a signed 64 bit value as fixed 64 bits.
2607
+ * @param value Value to write
2608
+ * @returns `this`
2609
+ * @throws {TypeError} If `value` is a string and no long library is present.
2610
+ */
2611
+ public sfixed64(value: (Long|number|string)): Writer;
2612
+
2613
+ /**
2614
+ * Writes a float (32 bit).
2615
+ * @param value Value to write
2616
+ * @returns `this`
2617
+ */
2618
+ public float(value: number): Writer;
2619
+
2620
+ /**
2621
+ * Writes a double (64 bit float).
2622
+ * @param value Value to write
2623
+ * @returns `this`
2624
+ */
2625
+ public double(value: number): Writer;
2626
+
2627
+ /**
2628
+ * Writes a sequence of bytes.
2629
+ * @param value Buffer or base64 encoded string to write
2630
+ * @returns `this`
2631
+ */
2632
+ public bytes(value: (Uint8Array|string)): Writer;
2633
+
2634
+ /**
2635
+ * Writes a string.
2636
+ * @param value Value to write
2637
+ * @returns `this`
2638
+ */
2639
+ public string(value: string): Writer;
2640
+
2641
+ /**
2642
+ * Forks this writer's state by pushing it to a stack.
2643
+ * Calling {@link Writer#reset|reset} or {@link Writer#ldelim|ldelim} resets the writer to the previous state.
2644
+ * @returns `this`
2645
+ */
2646
+ public fork(): Writer;
2647
+
2648
+ /**
2649
+ * Resets this instance to the last state.
2650
+ * @returns `this`
2651
+ */
2652
+ public reset(): Writer;
2653
+
2654
+ /**
2655
+ * Resets to the last state and appends the fork state's current write length as a varint followed by its operations.
2656
+ * @returns `this`
2657
+ */
2658
+ public ldelim(): Writer;
2659
+
2660
+ /**
2661
+ * Finishes the write operation.
2662
+ * @returns Finished buffer
2663
+ */
2664
+ public finish(): Uint8Array;
2665
+ }
2666
+
2667
+ /** Wire format writer using node buffers. */
2668
+ export class BufferWriter extends Writer {
2669
+
2670
+ /** Constructs a new buffer writer instance. */
2671
+ constructor();
2672
+
2673
+ /**
2674
+ * Allocates a buffer of the specified size.
2675
+ * @param size Buffer size
2676
+ * @returns Buffer
2677
+ */
2678
+ public static alloc(size: number): Buffer;
2679
+
2680
+ /**
2681
+ * Finishes the write operation.
2682
+ * @returns Finished buffer
2683
+ */
2684
+ public finish(): Buffer;
2685
+ }
2686
+
2687
+ /**
2688
+ * Callback as used by {@link util.asPromise}.
2689
+ * @param error Error, if any
2690
+ * @param params Additional arguments
2691
+ */
2692
+ type asPromiseCallback = (error: (Error|null), ...params: any[]) => void;
2693
+
2694
+ /**
2695
+ * Appends code to the function's body or finishes generation.
2696
+ * @param [formatStringOrScope] Format string or, to finish the function, an object of additional scope variables, if any
2697
+ * @param [formatParams] Format parameters
2698
+ * @returns Itself or the generated function if finished
2699
+ * @throws {Error} If format parameter counts do not match
2700
+ */
2701
+ type Codegen = (formatStringOrScope?: (string|{ [k: string]: any }), ...formatParams: any[]) => (Codegen|Function);
2702
+
2703
+ /**
2704
+ * Event listener as used by {@link util.EventEmitter}.
2705
+ * @param args Arguments
2706
+ */
2707
+ type EventEmitterListener = (...args: any[]) => void;
2708
+
2709
+ /**
2710
+ * Node-style callback as used by {@link util.fetch}.
2711
+ * @param error Error, if any, otherwise `null`
2712
+ * @param [contents] File contents, if there hasn't been an error
2713
+ */
2714
+ type FetchCallback = (error: Error, contents?: string) => void;
2715
+
2716
+ /** Options as used by {@link util.fetch}. */
2717
+ export interface IFetchOptions {
2718
+
2719
+ /** Whether expecting a binary response */
2720
+ binary?: boolean;
2721
+
2722
+ /** If `true`, forces the use of XMLHttpRequest */
2723
+ xhr?: boolean;
2724
+ }
2725
+
2726
+ /**
2727
+ * An allocator as used by {@link util.pool}.
2728
+ * @param size Buffer size
2729
+ * @returns Buffer
2730
+ */
2731
+ type PoolAllocator = (size: number) => Uint8Array;
2732
+
2733
+ /**
2734
+ * A slicer as used by {@link util.pool}.
2735
+ * @param start Start offset
2736
+ * @param end End offset
2737
+ * @returns Buffer slice
2738
+ */
2739
+ type PoolSlicer = (this: Uint8Array, start: number, end: number) => Uint8Array;