@synnaxlabs/client 0.2.0 → 0.13.5

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 (409) hide show
  1. package/.eslintrc.cjs +18 -0
  2. package/.pytest_cache/README.md +8 -0
  3. package/.turbo/turbo-build.log +16 -0
  4. package/LICENSE +4 -21
  5. package/{build/main/lib → dist/auth}/auth.d.ts +16 -19
  6. package/dist/auth/index.d.ts +1 -0
  7. package/dist/cdc/external.d.ts +1 -0
  8. package/dist/cdc/index.d.ts +1 -0
  9. package/dist/cdc/observable.d.ts +17 -0
  10. package/dist/channel/client.d.ts +58 -0
  11. package/dist/channel/creator.d.ts +8 -0
  12. package/dist/channel/external.d.ts +4 -0
  13. package/dist/channel/index.d.ts +1 -0
  14. package/dist/channel/payload.d.ts +63 -0
  15. package/dist/channel/retriever.d.ts +49 -0
  16. package/dist/client.cjs.js +23050 -0
  17. package/dist/client.cjs.js.map +1 -0
  18. package/dist/client.d.ts +73 -0
  19. package/dist/client.es.js +23050 -0
  20. package/dist/client.es.js.map +1 -0
  21. package/dist/connection/checker.d.ts +66 -0
  22. package/dist/connection/index.d.ts +1 -0
  23. package/dist/control/authority.d.ts +6 -0
  24. package/dist/control/external.d.ts +2 -0
  25. package/dist/control/index.d.ts +1 -0
  26. package/dist/control/state.d.ts +81 -0
  27. package/{build/main/lib → dist}/errors.d.ts +6 -3
  28. package/dist/framer/adapter.d.ts +21 -0
  29. package/dist/framer/client.d.ts +44 -0
  30. package/dist/framer/external.d.ts +5 -0
  31. package/dist/framer/frame.d.ts +251 -0
  32. package/dist/framer/index.d.ts +1 -0
  33. package/{build/module/lib/segment → dist/framer}/iterator.d.ts +32 -64
  34. package/dist/framer/streamProxy.d.ts +12 -0
  35. package/dist/framer/streamer.d.ts +17 -0
  36. package/dist/framer/writer.d.ts +257 -0
  37. package/dist/index.d.ts +16 -0
  38. package/dist/label/client.d.ts +25 -0
  39. package/dist/label/external.d.ts +4 -0
  40. package/dist/label/index.d.ts +1 -0
  41. package/dist/label/payload.d.ts +20 -0
  42. package/dist/label/retriever.d.ts +13 -0
  43. package/dist/label/writer.d.ts +26 -0
  44. package/dist/ontology/cdc.d.ts +25 -0
  45. package/dist/ontology/client.d.ts +25 -0
  46. package/dist/ontology/external.d.ts +3 -0
  47. package/dist/ontology/group/client.d.ts +11 -0
  48. package/dist/ontology/group/external.d.ts +2 -0
  49. package/dist/ontology/group/group.d.ts +7 -0
  50. package/dist/ontology/group/index.d.ts +1 -0
  51. package/dist/ontology/group/payload.d.ts +40 -0
  52. package/dist/ontology/group/writer.d.ts +13 -0
  53. package/dist/ontology/index.d.ts +1 -0
  54. package/dist/ontology/ontology.spec.d.ts +1 -0
  55. package/dist/ontology/payload.d.ts +235 -0
  56. package/dist/ontology/retriever.d.ts +12 -0
  57. package/dist/ontology/signals.d.ts +25 -0
  58. package/dist/ontology/writer.d.ts +9 -0
  59. package/dist/ranger/active.d.ts +9 -0
  60. package/dist/ranger/alias.d.ts +32 -0
  61. package/dist/ranger/client.d.ts +31 -0
  62. package/dist/ranger/external.d.ts +6 -0
  63. package/dist/ranger/index.d.ts +1 -0
  64. package/dist/ranger/kv.d.ts +50 -0
  65. package/dist/ranger/payload.d.ts +94 -0
  66. package/dist/ranger/range.d.ts +29 -0
  67. package/dist/ranger/ranger.spec.d.ts +1 -0
  68. package/dist/ranger/retriever.d.ts +10 -0
  69. package/dist/ranger/writer.d.ts +9 -0
  70. package/{build/main → dist}/setupspecs.d.ts +2 -2
  71. package/dist/signals/external.d.ts +1 -0
  72. package/dist/signals/index.d.ts +1 -0
  73. package/dist/signals/observable.d.ts +17 -0
  74. package/dist/transport.d.ts +10 -0
  75. package/dist/user/index.d.ts +1 -0
  76. package/{build/main/lib → dist}/user/payload.d.ts +3 -3
  77. package/dist/util/telem.d.ts +2 -0
  78. package/dist/workspace/client.d.ts +22 -0
  79. package/dist/workspace/external.d.ts +2 -0
  80. package/dist/workspace/index.d.ts +1 -0
  81. package/dist/workspace/lineplot/client.d.ts +15 -0
  82. package/dist/workspace/lineplot/external.d.ts +2 -0
  83. package/dist/workspace/lineplot/index.d.ts +1 -0
  84. package/dist/workspace/lineplot/linePlot.spec.d.ts +1 -0
  85. package/dist/workspace/lineplot/payload.d.ts +31 -0
  86. package/dist/workspace/lineplot/retriever.d.ts +9 -0
  87. package/dist/workspace/lineplot/writer.d.ts +39 -0
  88. package/dist/workspace/payload.d.ts +31 -0
  89. package/dist/workspace/pid/client.d.ts +16 -0
  90. package/dist/workspace/pid/external.d.ts +2 -0
  91. package/dist/workspace/pid/index.d.ts +1 -0
  92. package/dist/workspace/pid/payload.d.ts +37 -0
  93. package/dist/workspace/pid/pid.spec.d.ts +1 -0
  94. package/dist/workspace/pid/retriever.d.ts +9 -0
  95. package/dist/workspace/pid/writer.d.ts +46 -0
  96. package/dist/workspace/retriever.d.ts +12 -0
  97. package/dist/workspace/workspace.spec.d.ts +1 -0
  98. package/dist/workspace/writer.d.ts +55 -0
  99. package/package.json +27 -98
  100. package/src/auth/auth.spec.ts +46 -0
  101. package/src/auth/auth.ts +83 -0
  102. package/src/auth/index.ts +10 -0
  103. package/src/cdc/external.ts +10 -0
  104. package/src/cdc/index.ts +10 -0
  105. package/src/cdc/observable.ts +80 -0
  106. package/src/channel/channel.spec.ts +82 -0
  107. package/src/channel/client.ts +209 -0
  108. package/src/channel/creator.ts +43 -0
  109. package/src/channel/external.ts +13 -0
  110. package/src/channel/index.ts +10 -0
  111. package/src/channel/payload.ts +52 -0
  112. package/src/channel/retriever.ts +160 -0
  113. package/src/client.ts +112 -0
  114. package/src/connection/checker.ts +104 -0
  115. package/src/connection/connection.spec.ts +35 -0
  116. package/src/connection/index.ts +10 -0
  117. package/src/control/authority.ts +25 -0
  118. package/src/control/external.ts +11 -0
  119. package/src/control/index.ts +10 -0
  120. package/src/control/state.spec.ts +24 -0
  121. package/src/control/state.ts +117 -0
  122. package/src/errors.ts +153 -0
  123. package/src/framer/adapter.ts +116 -0
  124. package/src/framer/client.ts +116 -0
  125. package/src/framer/external.ts +14 -0
  126. package/src/framer/frame.spec.ts +317 -0
  127. package/src/framer/frame.ts +412 -0
  128. package/src/framer/index.ts +10 -0
  129. package/src/framer/iterator.spec.ts +62 -0
  130. package/src/framer/iterator.ts +240 -0
  131. package/src/framer/streamProxy.ts +59 -0
  132. package/src/framer/streamer.spec.ts +42 -0
  133. package/src/framer/streamer.ts +86 -0
  134. package/src/framer/writer.spec.ts +52 -0
  135. package/src/framer/writer.ts +236 -0
  136. package/src/index.ts +43 -4
  137. package/src/ontology/cdc.ts +135 -0
  138. package/src/ontology/client.ts +103 -0
  139. package/src/ontology/external.ts +12 -0
  140. package/src/ontology/group/client.ts +40 -0
  141. package/src/ontology/group/external.ts +11 -0
  142. package/src/ontology/group/group.spec.ts +46 -0
  143. package/src/ontology/group/group.ts +27 -0
  144. package/src/ontology/group/index.ts +10 -0
  145. package/src/ontology/group/payload.ts +65 -0
  146. package/src/ontology/group/writer.ts +48 -0
  147. package/src/ontology/index.ts +10 -0
  148. package/src/ontology/ontology.spec.ts +114 -0
  149. package/src/ontology/payload.ts +121 -0
  150. package/src/ontology/retriever.ts +91 -0
  151. package/src/ontology/writer.ts +49 -0
  152. package/src/ranger/active.ts +56 -0
  153. package/src/ranger/alias.ts +183 -0
  154. package/src/ranger/client.ts +124 -0
  155. package/src/ranger/external.ts +15 -0
  156. package/src/ranger/index.ts +10 -0
  157. package/src/ranger/kv.ts +91 -0
  158. package/src/ranger/payload.ts +70 -0
  159. package/src/ranger/range.ts +74 -0
  160. package/src/ranger/ranger.spec.ts +167 -0
  161. package/src/ranger/retriever.ts +50 -0
  162. package/src/ranger/writer.ts +80 -0
  163. package/src/setupspecs.ts +14 -5
  164. package/src/transport.ts +39 -0
  165. package/src/user/index.ts +10 -0
  166. package/src/user/payload.ts +17 -0
  167. package/src/util/telem.ts +19 -0
  168. package/src/vite-env.d.ts +11 -0
  169. package/src/workspace/client.ts +75 -0
  170. package/src/workspace/external.ts +11 -0
  171. package/src/workspace/index.ts +10 -0
  172. package/src/workspace/lineplot/client.ts +51 -0
  173. package/src/workspace/lineplot/external.ts +11 -0
  174. package/src/workspace/lineplot/index.ts +10 -0
  175. package/src/workspace/lineplot/linePlot.spec.ts +78 -0
  176. package/src/workspace/lineplot/payload.ts +29 -0
  177. package/src/workspace/lineplot/retriever.ts +49 -0
  178. package/src/workspace/lineplot/writer.ts +109 -0
  179. package/src/workspace/payload.ts +29 -0
  180. package/src/workspace/pid/client.ts +55 -0
  181. package/src/workspace/pid/external.ts +11 -0
  182. package/src/workspace/pid/index.ts +10 -0
  183. package/src/workspace/pid/payload.ts +31 -0
  184. package/src/workspace/pid/pid.spec.ts +111 -0
  185. package/src/workspace/pid/retriever.ts +45 -0
  186. package/src/workspace/pid/writer.ts +130 -0
  187. package/src/workspace/retriever.ts +67 -0
  188. package/src/workspace/workspace.spec.ts +62 -0
  189. package/src/workspace/writer.ts +103 -0
  190. package/tsconfig.json +3 -43
  191. package/tsconfig.vite.json +4 -0
  192. package/vite.config.ts +25 -0
  193. package/.DS_Store +0 -0
  194. package/.editorconfig +0 -15
  195. package/.eslintrc.json +0 -33
  196. package/.gitignore +0 -9
  197. package/.nyc_output/20720f2d-6abe-420f-a3c5-304d52d60827.json +0 -1
  198. package/.nyc_output/4725921c-6f1b-4ae9-9819-e455f702d31c.json +0 -1
  199. package/.nyc_output/47478588-5ffd-4332-873c-facaa4a2fc38.json +0 -1
  200. package/.nyc_output/48180641-e0b2-49ab-a6eb-e7910e9eac2f.json +0 -1
  201. package/.nyc_output/cb0abf31-740f-47db-b94a-8e3f8f117cb8.json +0 -1
  202. package/.nyc_output/fc77fce2-dad0-49a8-8d4b-0a9014ecf8c5.json +0 -1
  203. package/.nyc_output/processinfo/20720f2d-6abe-420f-a3c5-304d52d60827.json +0 -1
  204. package/.nyc_output/processinfo/4725921c-6f1b-4ae9-9819-e455f702d31c.json +0 -1
  205. package/.nyc_output/processinfo/47478588-5ffd-4332-873c-facaa4a2fc38.json +0 -1
  206. package/.nyc_output/processinfo/48180641-e0b2-49ab-a6eb-e7910e9eac2f.json +0 -1
  207. package/.nyc_output/processinfo/cb0abf31-740f-47db-b94a-8e3f8f117cb8.json +0 -1
  208. package/.nyc_output/processinfo/fc77fce2-dad0-49a8-8d4b-0a9014ecf8c5.json +0 -1
  209. package/.nyc_output/processinfo/index.json +0 -1
  210. package/.prettierignore +0 -2
  211. package/CHANGELOG.md +0 -5
  212. package/build/main/index.d.ts +0 -4
  213. package/build/main/index.js +0 -35
  214. package/build/main/lib/auth.js +0 -62
  215. package/build/main/lib/auth.spec.js +0 -39
  216. package/build/main/lib/channel/channel.spec.js +0 -49
  217. package/build/main/lib/channel/client.d.ts +0 -94
  218. package/build/main/lib/channel/client.js +0 -134
  219. package/build/main/lib/channel/creator.d.ts +0 -19
  220. package/build/main/lib/channel/creator.js +0 -44
  221. package/build/main/lib/channel/payload.d.ts +0 -25
  222. package/build/main/lib/channel/payload.js +0 -18
  223. package/build/main/lib/channel/registry.d.ts +0 -9
  224. package/build/main/lib/channel/registry.js +0 -37
  225. package/build/main/lib/channel/retriever.d.ts +0 -11
  226. package/build/main/lib/channel/retriever.js +0 -39
  227. package/build/main/lib/client.d.ts +0 -30
  228. package/build/main/lib/client.js +0 -46
  229. package/build/main/lib/errors.js +0 -122
  230. package/build/main/lib/segment/client.d.ts +0 -62
  231. package/build/main/lib/segment/client.js +0 -95
  232. package/build/main/lib/segment/iterator.d.ts +0 -134
  233. package/build/main/lib/segment/iterator.js +0 -253
  234. package/build/main/lib/segment/iterator.spec.js +0 -73
  235. package/build/main/lib/segment/payload.d.ts +0 -16
  236. package/build/main/lib/segment/payload.js +0 -13
  237. package/build/main/lib/segment/splitter.d.ts +0 -7
  238. package/build/main/lib/segment/splitter.js +0 -25
  239. package/build/main/lib/segment/typed.d.ts +0 -15
  240. package/build/main/lib/segment/typed.js +0 -49
  241. package/build/main/lib/segment/validator.d.ts +0 -22
  242. package/build/main/lib/segment/validator.js +0 -64
  243. package/build/main/lib/segment/writer.d.ts +0 -98
  244. package/build/main/lib/segment/writer.js +0 -183
  245. package/build/main/lib/segment/writer.spec.js +0 -90
  246. package/build/main/lib/telem.d.ts +0 -395
  247. package/build/main/lib/telem.js +0 -553
  248. package/build/main/lib/telem.spec.js +0 -152
  249. package/build/main/lib/transport.d.ts +0 -10
  250. package/build/main/lib/transport.js +0 -22
  251. package/build/main/lib/user/payload.js +0 -9
  252. package/build/main/lib/util/telem.d.ts +0 -2
  253. package/build/main/lib/util/telem.js +0 -13
  254. package/build/main/setupspecs.js +0 -17
  255. package/build/module/index.d.ts +0 -4
  256. package/build/module/index.js +0 -5
  257. package/build/module/lib/auth.d.ts +0 -54
  258. package/build/module/lib/auth.js +0 -63
  259. package/build/module/lib/auth.spec.js +0 -34
  260. package/build/module/lib/channel/channel.spec.js +0 -44
  261. package/build/module/lib/channel/client.d.ts +0 -94
  262. package/build/module/lib/channel/client.js +0 -134
  263. package/build/module/lib/channel/creator.d.ts +0 -19
  264. package/build/module/lib/channel/creator.js +0 -42
  265. package/build/module/lib/channel/payload.d.ts +0 -25
  266. package/build/module/lib/channel/payload.js +0 -15
  267. package/build/module/lib/channel/registry.d.ts +0 -9
  268. package/build/module/lib/channel/registry.js +0 -36
  269. package/build/module/lib/channel/retriever.d.ts +0 -11
  270. package/build/module/lib/channel/retriever.js +0 -37
  271. package/build/module/lib/client.d.ts +0 -30
  272. package/build/module/lib/client.js +0 -44
  273. package/build/module/lib/errors.d.ts +0 -53
  274. package/build/module/lib/errors.js +0 -113
  275. package/build/module/lib/segment/client.d.ts +0 -62
  276. package/build/module/lib/segment/client.js +0 -94
  277. package/build/module/lib/segment/iterator.js +0 -248
  278. package/build/module/lib/segment/iterator.spec.js +0 -68
  279. package/build/module/lib/segment/payload.d.ts +0 -16
  280. package/build/module/lib/segment/payload.js +0 -10
  281. package/build/module/lib/segment/splitter.d.ts +0 -7
  282. package/build/module/lib/segment/splitter.js +0 -26
  283. package/build/module/lib/segment/typed.d.ts +0 -15
  284. package/build/module/lib/segment/typed.js +0 -49
  285. package/build/module/lib/segment/validator.d.ts +0 -22
  286. package/build/module/lib/segment/validator.js +0 -60
  287. package/build/module/lib/segment/writer.d.ts +0 -98
  288. package/build/module/lib/segment/writer.js +0 -183
  289. package/build/module/lib/segment/writer.spec.js +0 -85
  290. package/build/module/lib/telem.d.ts +0 -395
  291. package/build/module/lib/telem.js +0 -545
  292. package/build/module/lib/telem.spec.js +0 -147
  293. package/build/module/lib/transport.d.ts +0 -10
  294. package/build/module/lib/transport.js +0 -22
  295. package/build/module/lib/user/payload.d.ts +0 -12
  296. package/build/module/lib/user/payload.js +0 -6
  297. package/build/module/lib/util/telem.d.ts +0 -2
  298. package/build/module/lib/util/telem.js +0 -9
  299. package/build/module/setupspecs.d.ts +0 -4
  300. package/build/module/setupspecs.js +0 -16
  301. package/build/tsconfig.module.tsbuildinfo +0 -1
  302. package/build/tsconfig.tsbuildinfo +0 -1
  303. package/coverage/base.css +0 -224
  304. package/coverage/block-navigation.js +0 -87
  305. package/coverage/favicon.png +0 -0
  306. package/coverage/index.html +0 -191
  307. package/coverage/lcov-report/base.css +0 -224
  308. package/coverage/lcov-report/block-navigation.js +0 -87
  309. package/coverage/lcov-report/favicon.png +0 -0
  310. package/coverage/lcov-report/index.html +0 -191
  311. package/coverage/lcov-report/prettify.css +0 -1
  312. package/coverage/lcov-report/prettify.js +0 -2
  313. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  314. package/coverage/lcov-report/sorter.js +0 -196
  315. package/coverage/lcov-report/src/index.html +0 -116
  316. package/coverage/lcov-report/src/lib/auth.ts.html +0 -340
  317. package/coverage/lcov-report/src/lib/channel/client.ts.html +0 -604
  318. package/coverage/lcov-report/src/lib/channel/creator.ts.html +0 -304
  319. package/coverage/lcov-report/src/lib/channel/index.html +0 -176
  320. package/coverage/lcov-report/src/lib/channel/payload.ts.html +0 -139
  321. package/coverage/lcov-report/src/lib/channel/registry.ts.html +0 -202
  322. package/coverage/lcov-report/src/lib/channel/retriever.ts.html +0 -244
  323. package/coverage/lcov-report/src/lib/client.ts.html +0 -244
  324. package/coverage/lcov-report/src/lib/errors.ts.html +0 -484
  325. package/coverage/lcov-report/src/lib/index.html +0 -176
  326. package/coverage/lcov-report/src/lib/segment/client.ts.html +0 -463
  327. package/coverage/lcov-report/src/lib/segment/index.html +0 -206
  328. package/coverage/lcov-report/src/lib/segment/iterator.ts.html +0 -928
  329. package/coverage/lcov-report/src/lib/segment/payload.ts.html +0 -139
  330. package/coverage/lcov-report/src/lib/segment/splitter.ts.html +0 -181
  331. package/coverage/lcov-report/src/lib/segment/typed.ts.html +0 -307
  332. package/coverage/lcov-report/src/lib/segment/validator.ts.html +0 -331
  333. package/coverage/lcov-report/src/lib/segment/writer.ts.html +0 -727
  334. package/coverage/lcov-report/src/lib/telem.ts.html +0 -2056
  335. package/coverage/lcov-report/src/lib/transport.ts.html +0 -196
  336. package/coverage/lcov-report/src/lib/user/index.html +0 -116
  337. package/coverage/lcov-report/src/lib/user/payload.ts.html +0 -109
  338. package/coverage/lcov-report/src/lib/util/index.html +0 -116
  339. package/coverage/lcov-report/src/lib/util/telem.ts.html +0 -124
  340. package/coverage/lcov-report/src/setupspecs.ts.html +0 -133
  341. package/coverage/lcov.info +0 -1230
  342. package/coverage/prettify.css +0 -1
  343. package/coverage/prettify.js +0 -2
  344. package/coverage/sort-arrow-sprite.png +0 -0
  345. package/coverage/sorter.js +0 -196
  346. package/coverage/src/index.html +0 -116
  347. package/coverage/src/lib/auth.ts.html +0 -340
  348. package/coverage/src/lib/channel/client.ts.html +0 -604
  349. package/coverage/src/lib/channel/creator.ts.html +0 -304
  350. package/coverage/src/lib/channel/index.html +0 -176
  351. package/coverage/src/lib/channel/payload.ts.html +0 -139
  352. package/coverage/src/lib/channel/registry.ts.html +0 -202
  353. package/coverage/src/lib/channel/retriever.ts.html +0 -244
  354. package/coverage/src/lib/client.ts.html +0 -244
  355. package/coverage/src/lib/errors.ts.html +0 -484
  356. package/coverage/src/lib/index.html +0 -176
  357. package/coverage/src/lib/segment/client.ts.html +0 -463
  358. package/coverage/src/lib/segment/index.html +0 -206
  359. package/coverage/src/lib/segment/iterator.ts.html +0 -928
  360. package/coverage/src/lib/segment/payload.ts.html +0 -139
  361. package/coverage/src/lib/segment/splitter.ts.html +0 -181
  362. package/coverage/src/lib/segment/typed.ts.html +0 -307
  363. package/coverage/src/lib/segment/validator.ts.html +0 -331
  364. package/coverage/src/lib/segment/writer.ts.html +0 -727
  365. package/coverage/src/lib/telem.ts.html +0 -2056
  366. package/coverage/src/lib/transport.ts.html +0 -196
  367. package/coverage/src/lib/user/index.html +0 -116
  368. package/coverage/src/lib/user/payload.ts.html +0 -109
  369. package/coverage/src/lib/util/index.html +0 -116
  370. package/coverage/src/lib/util/telem.ts.html +0 -124
  371. package/coverage/src/setupspecs.ts.html +0 -133
  372. package/src/lib/.DS_Store +0 -0
  373. package/src/lib/auth.spec.ts +0 -36
  374. package/src/lib/auth.ts +0 -85
  375. package/src/lib/channel/channel.spec.ts +0 -49
  376. package/src/lib/channel/client.ts +0 -173
  377. package/src/lib/channel/creator.ts +0 -73
  378. package/src/lib/channel/payload.ts +0 -18
  379. package/src/lib/channel/registry.ts +0 -39
  380. package/src/lib/channel/retriever.ts +0 -53
  381. package/src/lib/client.ts +0 -53
  382. package/src/lib/errors.ts +0 -133
  383. package/src/lib/segment/client.ts +0 -126
  384. package/src/lib/segment/iterator.spec.ts +0 -78
  385. package/src/lib/segment/iterator.ts +0 -281
  386. package/src/lib/segment/payload.ts +0 -18
  387. package/src/lib/segment/splitter.ts +0 -32
  388. package/src/lib/segment/typed.ts +0 -74
  389. package/src/lib/segment/validator.ts +0 -82
  390. package/src/lib/segment/writer.spec.ts +0 -85
  391. package/src/lib/segment/writer.ts +0 -214
  392. package/src/lib/telem.spec.ts +0 -200
  393. package/src/lib/telem.ts +0 -657
  394. package/src/lib/transport.ts +0 -37
  395. package/src/lib/user/payload.ts +0 -8
  396. package/src/lib/util/telem.ts +0 -13
  397. package/tsconfig.module.json +0 -9
  398. package/yarn-error.log +0 -5756
  399. package/yarn.lock +0 -5936
  400. /package/{build/main/lib → dist/auth}/auth.spec.d.ts +0 -0
  401. /package/{build/main/lib → dist}/channel/channel.spec.d.ts +0 -0
  402. /package/{build/main/lib/segment/iterator.spec.d.ts → dist/connection/connection.spec.d.ts} +0 -0
  403. /package/{build/main/lib/segment/writer.spec.d.ts → dist/control/state.spec.d.ts} +0 -0
  404. /package/{build/main/lib/telem.spec.d.ts → dist/framer/frame.spec.d.ts} +0 -0
  405. /package/{build/module/lib/segment → dist/framer}/iterator.spec.d.ts +0 -0
  406. /package/{build/module/lib/auth.spec.d.ts → dist/framer/streamer.spec.d.ts} +0 -0
  407. /package/{build/module/lib/segment → dist/framer}/writer.spec.d.ts +0 -0
  408. /package/{build/module/lib/channel/channel.spec.d.ts → dist/label/label.spec.d.ts} +0 -0
  409. /package/{build/module/lib/telem.spec.d.ts → dist/ontology/group/group.spec.d.ts} +0 -0
@@ -1,9 +0,0 @@
1
- import { ChannelPayload } from './payload';
2
- import Retriever from './retriever';
3
- export default class Registry {
4
- private retriever;
5
- private channels;
6
- constructor(retriever: Retriever);
7
- get(key: string): Promise<ChannelPayload>;
8
- getN(...keys: string[]): Promise<ChannelPayload[]>;
9
- }
@@ -1,37 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- class Registry {
4
- constructor(retriever) {
5
- this.retriever = retriever;
6
- this.channels = new Map();
7
- }
8
- async get(key) {
9
- let channel = this.channels.get(key);
10
- if (channel === undefined) {
11
- channel = (await this.retriever.retrieveByKeys(key))[0];
12
- this.channels.set(key, channel);
13
- }
14
- return channel;
15
- }
16
- async getN(...keys) {
17
- const results = [];
18
- const retrieveKeys = [];
19
- keys.forEach((key) => {
20
- const channel = this.channels.get(key);
21
- if (channel === undefined)
22
- retrieveKeys.push(key);
23
- else
24
- results.push(channel);
25
- });
26
- if (retrieveKeys.length > 0) {
27
- const channels = await this.retriever.retrieveByKeys(...retrieveKeys);
28
- channels.forEach((channel) => {
29
- this.channels.set(channel.key, channel);
30
- results.push(channel);
31
- });
32
- }
33
- return results;
34
- }
35
- }
36
- exports.default = Registry;
37
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVnaXN0cnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvbGliL2NoYW5uZWwvcmVnaXN0cnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFHQSxNQUFxQixRQUFRO0lBSTNCLFlBQVksU0FBb0I7UUFDOUIsSUFBSSxDQUFDLFNBQVMsR0FBRyxTQUFTLENBQUM7UUFDM0IsSUFBSSxDQUFDLFFBQVEsR0FBRyxJQUFJLEdBQUcsRUFBRSxDQUFDO0lBQzVCLENBQUM7SUFFRCxLQUFLLENBQUMsR0FBRyxDQUFDLEdBQVc7UUFDbkIsSUFBSSxPQUFPLEdBQUcsSUFBSSxDQUFDLFFBQVEsQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLENBQUM7UUFDckMsSUFBSSxPQUFPLEtBQUssU0FBUyxFQUFFO1lBQ3pCLE9BQU8sR0FBRyxDQUFDLE1BQU0sSUFBSSxDQUFDLFNBQVMsQ0FBQyxjQUFjLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztZQUN4RCxJQUFJLENBQUMsUUFBUSxDQUFDLEdBQUcsQ0FBQyxHQUFHLEVBQUUsT0FBTyxDQUFDLENBQUM7U0FDakM7UUFDRCxPQUFPLE9BQU8sQ0FBQztJQUNqQixDQUFDO0lBRUQsS0FBSyxDQUFDLElBQUksQ0FBQyxHQUFHLElBQWM7UUFDMUIsTUFBTSxPQUFPLEdBQXFCLEVBQUUsQ0FBQztRQUNyQyxNQUFNLFlBQVksR0FBYSxFQUFFLENBQUM7UUFDbEMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDLEdBQUcsRUFBRSxFQUFFO1lBQ25CLE1BQU0sT0FBTyxHQUFHLElBQUksQ0FBQyxRQUFRLENBQUMsR0FBRyxDQUFDLEdBQUcsQ0FBQyxDQUFDO1lBQ3ZDLElBQUksT0FBTyxLQUFLLFNBQVM7Z0JBQUUsWUFBWSxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQzs7Z0JBQzdDLE9BQU8sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLENBQUM7UUFDN0IsQ0FBQyxDQUFDLENBQUM7UUFDSCxJQUFJLFlBQVksQ0FBQyxNQUFNLEdBQUcsQ0FBQyxFQUFFO1lBQzNCLE1BQU0sUUFBUSxHQUFHLE1BQU0sSUFBSSxDQUFDLFNBQVMsQ0FBQyxjQUFjLENBQUMsR0FBRyxZQUFZLENBQUMsQ0FBQztZQUN0RSxRQUFRLENBQUMsT0FBTyxDQUFDLENBQUMsT0FBTyxFQUFFLEVBQUU7Z0JBQzNCLElBQUksQ0FBQyxRQUFRLENBQUMsR0FBRyxDQUFDLE9BQU8sQ0FBQyxHQUFhLEVBQUUsT0FBTyxDQUFDLENBQUM7Z0JBQ2xELE9BQU8sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLENBQUM7WUFDeEIsQ0FBQyxDQUFDLENBQUM7U0FDSjtRQUNELE9BQU8sT0FBTyxDQUFDO0lBQ2pCLENBQUM7Q0FDRjtBQW5DRCwyQkFtQ0MifQ==
@@ -1,11 +0,0 @@
1
- import Transport from '../transport';
2
- import { ChannelPayload } from './payload';
3
- export default class Retriever {
4
- private static ENDPOINT;
5
- private client;
6
- constructor(transport: Transport);
7
- private execute;
8
- retrieveByKeys(...keys: string[]): Promise<ChannelPayload[]>;
9
- retrieveByNames(...names: string[]): Promise<ChannelPayload[]>;
10
- retrieveByNodeID(nodeId: number): Promise<ChannelPayload[]>;
11
- }
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const zod_1 = require("zod");
4
- const payload_1 = require("./payload");
5
- const RequestSchema = zod_1.z.object({
6
- keys: zod_1.z.string().array().optional(),
7
- nodeId: zod_1.z.number().optional(),
8
- names: zod_1.z.string().array().optional(),
9
- });
10
- const ResponseSchema = zod_1.z.object({
11
- channels: payload_1.ChannelPayloadSchema.array(),
12
- });
13
- class Retriever {
14
- constructor(transport) {
15
- this.client = transport.getClient();
16
- }
17
- async execute(request) {
18
- const [res, err] = await this.client.send(Retriever.ENDPOINT, request,
19
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
20
- // @ts-ignore
21
- ResponseSchema);
22
- if (err) {
23
- throw err;
24
- }
25
- return res === null || res === void 0 ? void 0 : res.channels;
26
- }
27
- async retrieveByKeys(...keys) {
28
- return await this.execute({ keys });
29
- }
30
- async retrieveByNames(...names) {
31
- return await this.execute({ names });
32
- }
33
- async retrieveByNodeID(nodeId) {
34
- return await this.execute({ nodeId: nodeId });
35
- }
36
- }
37
- exports.default = Retriever;
38
- Retriever.ENDPOINT = '/channel/retrieve';
39
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmV0cmlldmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2xpYi9jaGFubmVsL3JldHJpZXZlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUNBLDZCQUF3QjtBQUl4Qix1Q0FBaUU7QUFFakUsTUFBTSxhQUFhLEdBQUcsT0FBQyxDQUFDLE1BQU0sQ0FBQztJQUM3QixJQUFJLEVBQUUsT0FBQyxDQUFDLE1BQU0sRUFBRSxDQUFDLEtBQUssRUFBRSxDQUFDLFFBQVEsRUFBRTtJQUNuQyxNQUFNLEVBQUUsT0FBQyxDQUFDLE1BQU0sRUFBRSxDQUFDLFFBQVEsRUFBRTtJQUM3Q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LGdCQUFnQixDQUFDLE1BQWM7UUFDbkMsT0FBTyxNQUFNLElBQUksQ0FBQyxPQUFPLENBQUMsRUFBRSxNQUFNLEVBQUUsTUFBTSxFQUFFLENBQUMsQ0FBQztJQUNoRCxDQUFDOztBQWhDSCw0QkFpQ0M7QUFoQ2dCLGtCQUFRLEdBQUcsbUJBQW1CLENBQUMifQ==
@@ -1,30 +0,0 @@
1
- import AuthenticationClient from './auth';
2
- import ChannelClient from './channel/client';
3
- import SegmentClient from './segment/client';
4
- export declare type SynnaxProps = {
5
- host: string;
6
- port: number;
7
- username?: string;
8
- password?: string;
9
- };
10
- /**
11
- * Client to perform operations against a Synnax cluster.
12
- *
13
- * @property channel - Channel client for creating and retrieving channels.
14
- * @property data - Data client for reading and writing telemetry.
15
- */
16
- export default class Synnax {
17
- private transport;
18
- data: SegmentClient;
19
- channel: ChannelClient;
20
- auth: AuthenticationClient | undefined;
21
- /**
22
- * @param props.host - Hostname of a node in the cluster.
23
- * @param props.port - Port of the node in the cluster.
24
- * @param props.username - Username for authentication. Not required if the
25
- * cluster is insecure.
26
- * @param props.password - Password for authentication. Not required if the
27
- * cluster is insecure.
28
- */
29
- constructor({ host, port, username, password }: SynnaxProps);
30
- }
@@ -1,46 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const freighter_1 = require("@synnaxlabs/freighter");
7
- const auth_1 = __importDefault(require("./auth"));
8
- const client_1 = __importDefault(require("./channel/client"));
9
- const creator_1 = __importDefault(require("./channel/creator"));
10
- const registry_1 = __importDefault(require("./channel/registry"));
11
- const retriever_1 = __importDefault(require("./channel/retriever"));
12
- const client_2 = __importDefault(require("./segment/client"));
13
- const transport_1 = __importDefault(require("./transport"));
14
- /**
15
- * Client to perform operations against a Synnax cluster.
16
- *
17
- * @property channel - Channel client for creating and retrieving channels.
18
- * @property data - Data client for reading and writing telemetry.
19
- */
20
- class Synnax {
21
- /**
22
- * @param props.host - Hostname of a node in the cluster.
23
- * @param props.port - Port of the node in the cluster.
24
- * @param props.username - Username for authentication. Not required if the
25
- * cluster is insecure.
26
- * @param props.password - Password for authentication. Not required if the
27
- * cluster is insecure.
28
- */
29
- constructor({ host, port, username, password }) {
30
- this.transport = new transport_1.default(new freighter_1.URL({ host, port }));
31
- if (username && password) {
32
- this.auth = new auth_1.default(this.transport.httpFactory, {
33
- username,
34
- password,
35
- });
36
- this.transport.use(this.auth.middleware());
37
- }
38
- const chRetriever = new retriever_1.default(this.transport);
39
- const chCreator = new creator_1.default(this.transport);
40
- const chRegistry = new registry_1.default(chRetriever);
41
- this.data = new client_2.default(this.transport, chRegistry);
42
- this.channel = new client_1.default(this.data, chRetriever, chCreator);
43
- }
44
- }
45
- exports.default = Synnax;
46
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xpZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi9jbGllbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxxREFBNEM7QUFFNUMsa0RBQTBDO0FBQzFDLDhEQUE2QztBQUM3QyxnRUFBK0M7QUFDL0Msa0VBQTBDO0FBQzFDLG9FQUFtRDtBQUNuRCw4REFBNkM7QUFDN0MsNERBQW9DO0FBU3BDOzs7OztHQUtHO0FBQ0gsTUFBcUIsTUFBTTtJQU16Qjs7Ozs7OztPQU9HO0lBQ0gsWUFBWSxFQUFFLElBQUksRUFBRSxJQUFJLEVBQUUsUUFBUSxFQUFFLFFBQVEsRUFBZTtRQUN6RCxJQUFJLENBQUMsU0FBUyxHQUFHLElBQUksbUJBQVMsQ0FBQyxJQUFJLGVBQUcsQ0FBQyxFQUFFLElBQUksRUFBRSxJQUFJLEVBQUUsQ0FBQyxDQUFDLENBQUM7UUFDeEQsSUFBSSxRQUFRLElBQUksUUFBUSxFQUFFO1lBQ3hCLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxjQUFvQixDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsV0FBVyxFQUFFO2dCQUMvRCxRQUFRO2dCQUNSLFFBQVE7YUFDVCxDQUFDLENBQUM7WUFDSCxJQUFJLENBQUMsU0FBUyxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLFVBQVUsRUFBRSxDQUFDLENBQUM7U0FDNUM7UUFDRCxNQUFNLFdBQVcsR0FBRyxJQUFJLG1CQUFnQixDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsQ0FBQztRQUN6RCxNQUFNLFNBQVMsR0FBRyxJQUFJLGlCQUFjLENBQUMsSUFBSSxDQUFDLFNBQVMsQ0FBQyxDQUFDO1FBQ3JELE1BQU0sVUFBVSxHQUFHLElBQUksa0JBQVEsQ0FBQyxXQUFXLENBQUMsQ0FBQztRQUM3QyxJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksZ0JBQWEsQ0FBQyxJQUFJLENBQUMsU0FBUyxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBQzFELElBQUksQ0FBQyxPQUFPLEdBQUcsSUFBSSxnQkFBYSxDQUFDLElBQUksQ0FBQyxJQUFJLEVBQUUsV0FBVyxFQUFFLFNBQVMsQ0FBQyxDQUFDO0lBQ3RFLENBQUM7Q0FDRjtBQTdCRCx5QkE2QkMifQ==
@@ -1,122 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ContiguityError = exports.RouteError = exports.QueryError = exports.UnexpectedError = exports.AuthError = exports.ParseError = exports.GeneralError = exports.ValidationError = void 0;
4
- const freighter_1 = require("@synnaxlabs/freighter");
5
- const zod_1 = require("zod");
6
- const _FREIGHTER_EXCEPTION_TYPE = 'synnax.api.errors';
7
- const APIErrorPayloadSchema = zod_1.z.object({
8
- type: zod_1.z.string(),
9
- error: zod_1.z.record(zod_1.z.unknown()),
10
- });
11
- var APIErrorType;
12
- (function (APIErrorType) {
13
- APIErrorType["General"] = "general";
14
- APIErrorType["Nil"] = "nil";
15
- APIErrorType["Parse"] = "parse";
16
- APIErrorType["Auth"] = "auth";
17
- APIErrorType["Unexpected"] = "unexpected";
18
- APIErrorType["Validation"] = "validation";
19
- APIErrorType["Query"] = "query";
20
- APIErrorType["Route"] = "route";
21
- })(APIErrorType || (APIErrorType = {}));
22
- class BaseError extends freighter_1.BaseTypedError {
23
- constructor(message) {
24
- super(message, _FREIGHTER_EXCEPTION_TYPE);
25
- }
26
- }
27
- /**
28
- * Raised when a validation error occurs.
29
- */
30
- class ValidationError extends BaseError {
31
- constructor(fieldsOrMessage) {
32
- if (typeof fieldsOrMessage === 'string') {
33
- super(fieldsOrMessage);
34
- this.fields = [];
35
- }
36
- else if (Array.isArray(fieldsOrMessage)) {
37
- super(fieldsOrMessage
38
- .map((field) => `${field.field}: ${field.message}`)
39
- .join('\n'));
40
- this.fields = fieldsOrMessage;
41
- }
42
- else {
43
- super(`${fieldsOrMessage.field}: ${fieldsOrMessage.message}`);
44
- this.fields = [fieldsOrMessage];
45
- }
46
- }
47
- }
48
- exports.ValidationError = ValidationError;
49
- /**
50
- * GeneralError is raised when a general error occurs.
51
- */
52
- class GeneralError extends BaseError {
53
- }
54
- exports.GeneralError = GeneralError;
55
- /**
56
- * ParseError is raised when a parse error occurs.
57
- */
58
- class ParseError extends BaseError {
59
- }
60
- exports.ParseError = ParseError;
61
- /**
62
- * AuthError is raised when an authentication error occurs.
63
- */
64
- class AuthError extends BaseError {
65
- }
66
- exports.AuthError = AuthError;
67
- /**
68
- * UnexpectedError is raised when an unexpected error occurs.
69
- */
70
- class UnexpectedError extends BaseError {
71
- }
72
- exports.UnexpectedError = UnexpectedError;
73
- /**
74
- * QueryError is raised when a query error occurs.
75
- */
76
- class QueryError extends BaseError {
77
- }
78
- exports.QueryError = QueryError;
79
- /**
80
- * RouteError is raised when a routing error occurs.
81
- */
82
- class RouteError extends BaseError {
83
- constructor(message, path) {
84
- super(message);
85
- this.path = path;
86
- }
87
- }
88
- exports.RouteError = RouteError;
89
- /**
90
- * Raised when time-series data is not contiguous.
91
- */
92
- class ContiguityError extends BaseError {
93
- }
94
- exports.ContiguityError = ContiguityError;
95
- const parsePayload = (payload) => {
96
- switch (payload.type) {
97
- case APIErrorType.General:
98
- return new GeneralError(payload.error.message);
99
- case APIErrorType.Parse:
100
- return new ParseError(payload.error.message);
101
- case APIErrorType.Auth:
102
- return new AuthError(payload.error.message);
103
- case APIErrorType.Unexpected:
104
- return new UnexpectedError(JSON.stringify(payload.error));
105
- case APIErrorType.Validation:
106
- return new ValidationError(payload.error.fields);
107
- case APIErrorType.Query:
108
- return new QueryError(payload.error.message);
109
- case APIErrorType.Route:
110
- return new RouteError(payload.error.path, payload.error.message);
111
- default:
112
- return undefined;
113
- }
114
- };
115
- const decode = (encoded) => {
116
- return parsePayload(APIErrorPayloadSchema.parse(JSON.parse(encoded)));
117
- };
118
- const encode = () => {
119
- throw new Error('Not implemented');
120
- };
121
- (0, freighter_1.registerError)({ type: _FREIGHTER_EXCEPTION_TYPE, encode, decode });
122
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3JzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi9lcnJvcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEscURBQXNFO0FBQ3RFLDZCQUF3QjtBQUV4QixNQUFNLHlCQUF5QixHQUFHLG1CQUFtQixDQUFDO0FBRXRELE1BQU0scUJBQXFCLEdBQUcsT0FBQyxDQUFDLE1BQU0sQ0FBQztJQUNyQyxJQUFJLEVBQUUsT0FBQyxDQUFDLE1BQU0sRUFBRTtJQUNoQixLQUFLLEVBQUUsT0FBQyxDQUFDLE1BQU0sQ0FBQyxPQUFDLENBQUMsT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ksS0FBSyxDQUFDLGlCQUFpQixDQUFDLENBQUM7QUFDckMsQ0FBQyxDQUFDO0FBRUYsSUFBQSx5QkFBYSxFQUFDLEVBQUUsSUFBSSxFQUFFLHlCQUF5QixFQUFFLE1BQU0sRUFBRSxNQUFNLEVBQUUsQ0FBQyxDQUFDIn0=
@@ -1,62 +0,0 @@
1
- import Registry from '../channel/registry';
2
- import { TimeRange, TypedArray, UnparsedTimeStamp } from '../telem';
3
- import Transport from '../transport';
4
- import { TypedIterator } from './iterator';
5
- import TypedSegment from './typed';
6
- import { TypedWriter } from './writer';
7
- export default class SegmentClient {
8
- private transport;
9
- private channels;
10
- constructor(transport: Transport, channels: Registry);
11
- /**
12
- * Opens a new iterator over the given channels within the provided time range.
13
- *
14
- * @param tr - A time range to iterate over.
15
- * @param keys - A list of channel keys to iterate over.
16
- * @param aggregate - Whether to accumulate iteration results or reset them
17
- * on every iterator method call.
18
- * @returns a new {@link TypedIterator}.
19
- */
20
- newIterator(tr: TimeRange, keys: string[], aggregate: boolean): Promise<TypedIterator>;
21
- /**
22
- * Opens a new writer on the given channels.
23
- *
24
- * @param keys - The keys of the channels to write to. A writer cannot write to
25
- * a channel that is not in this list. See the {@link TypedWriter} documentation
26
- * for more information.
27
- * @returns a new {@link TypedWriter}.
28
- */
29
- newWriter(keys: string[]): Promise<TypedWriter>;
30
- /**
31
- * Writes telemetry to the given channel starting at the given timestamp.
32
- *
33
- * @param to - The key of the channel to write to.
34
- * @param start - The starting timestamp of the first sample in data.
35
- * @param data - The telemetry to write. This telemetry must have the same
36
- * data type as the channel.
37
- * @throws if the channel does not exist.
38
- */
39
- write(to: string, start: UnparsedTimeStamp, data: TypedArray): Promise<boolean>;
40
- /**
41
- * Reads telemetry from the channel between the two timestamps.
42
- *
43
- * @param from - The key of the channel to read from.
44
- * @param start - The starting timestamp of the range to read from.
45
- * @param end - The ending timestamp of the range to read from.
46
- * @returns a typed array containing the retrieved telemetry.
47
- * @throws if the channel does not exist.
48
- * @throws if the telemetry between start and end is not contiguous.
49
- */
50
- read(from: string, start: UnparsedTimeStamp, end: UnparsedTimeStamp): Promise<TypedArray>;
51
- /**
52
- * Reads a segment from the channel between the two timestamps.
53
- *
54
- * @param from - The key of the channel to read from.
55
- * @param start - The starting timestamp of the range to read from.
56
- * @param end - The ending timestamp of the range to read from.
57
- * @returns a segment containing the retrieved telemetry.
58
- * @throws if the channel does not exist.
59
- * @throws if the telemetry between start and end is not contiguous.
60
- */
61
- readSegment(from: string, start: UnparsedTimeStamp, end: UnparsedTimeStamp): Promise<TypedSegment>;
62
- }
@@ -1,95 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const telem_1 = require("../telem");
4
- const iterator_1 = require("./iterator");
5
- const writer_1 = require("./writer");
6
- class SegmentClient {
7
- constructor(transport, channels) {
8
- this.transport = transport;
9
- this.channels = channels;
10
- }
11
- /**
12
- * Opens a new iterator over the given channels within the provided time range.
13
- *
14
- * @param tr - A time range to iterate over.
15
- * @param keys - A list of channel keys to iterate over.
16
- * @param aggregate - Whether to accumulate iteration results or reset them
17
- * on every iterator method call.
18
- * @returns a new {@link TypedIterator}.
19
- */
20
- async newIterator(tr, keys, aggregate) {
21
- const iter = new iterator_1.TypedIterator(this.transport.streamClient, this.channels, aggregate);
22
- await iter.open(tr, keys);
23
- return iter;
24
- }
25
- /**
26
- * Opens a new writer on the given channels.
27
- *
28
- * @param keys - The keys of the channels to write to. A writer cannot write to
29
- * a channel that is not in this list. See the {@link TypedWriter} documentation
30
- * for more information.
31
- * @returns a new {@link TypedWriter}.
32
- */
33
- async newWriter(keys) {
34
- const writer = new writer_1.TypedWriter(this.transport.streamClient, this.channels);
35
- await writer.open(keys);
36
- return writer;
37
- }
38
- /**
39
- * Writes telemetry to the given channel starting at the given timestamp.
40
- *
41
- * @param to - The key of the channel to write to.
42
- * @param start - The starting timestamp of the first sample in data.
43
- * @param data - The telemetry to write. This telemetry must have the same
44
- * data type as the channel.
45
- * @throws if the channel does not exist.
46
- */
47
- async write(to, start, data) {
48
- const writer = await this.newWriter([to]);
49
- try {
50
- return await writer.write(to, start, data);
51
- }
52
- finally {
53
- await writer.close();
54
- }
55
- }
56
- /**
57
- * Reads telemetry from the channel between the two timestamps.
58
- *
59
- * @param from - The key of the channel to read from.
60
- * @param start - The starting timestamp of the range to read from.
61
- * @param end - The ending timestamp of the range to read from.
62
- * @returns a typed array containing the retrieved telemetry.
63
- * @throws if the channel does not exist.
64
- * @throws if the telemetry between start and end is not contiguous.
65
- */
66
- async read(from, start, end) {
67
- return (await this.readSegment(from, start, end)).view;
68
- }
69
- /**
70
- * Reads a segment from the channel between the two timestamps.
71
- *
72
- * @param from - The key of the channel to read from.
73
- * @param start - The starting timestamp of the range to read from.
74
- * @param end - The ending timestamp of the range to read from.
75
- * @returns a segment containing the retrieved telemetry.
76
- * @throws if the channel does not exist.
77
- * @throws if the telemetry between start and end is not contiguous.
78
- */
79
- async readSegment(from, start, end) {
80
- const iter = await this.newIterator(new telem_1.TimeRange(start, end), [from], true);
81
- let seg;
82
- try {
83
- await iter.first();
84
- // eslint-disable-next-line no-empty
85
- while (await iter.next()) { }
86
- seg = (await iter.value())[from];
87
- }
88
- finally {
89
- await iter.close();
90
- }
91
- return seg;
92
- }
93
- }
94
- exports.default = SegmentClient;
95
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xpZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2xpYi9zZWdtZW50L2NsaWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUNBLG9DQUFvRTtBQUdwRSx5Q0FBMkM7QUFFM0MscUNBQXVDO0FBRXZDLE1BQXFCLGFBQWE7SUFJaEMsWUFBWSxTQUFvQixFQUFFLFFBQWtCO1FBQ2xELElBQUksQ0FBQyxTQUFTLEdBQUcsU0FBUyxDQUFDO1FBQzNCLElBQUksQ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0QjtJQUNILENBQUM7SUFFRDs7Ozs7Ozs7O09BU0c7SUFDSCxLQUFLLENBQUMsSUFBSSxDQUNSLElBQVksRUFDWixLQUF3QixFQUN4QixHQUFzQjtRQUV0QixPQUFPLENBQUMsTUFBTSxJQUFJLENBQUMsV0FBVyxDQUFDLElBQUksRUFBRSxLQUFLLEVBQUUsR0FBRyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUM7SUFDekQsQ0FBQztJQUVEOzs7Ozs7Ozs7T0FTRztJQUNILEtBQUssQ0FBQyxXQUFXLENBQ2YsSUFBWSxFQUNaLEtBQXdCLEVBQ3hCLEdBQXNCO1FBRXRCLE1BQU0sSUFBSSxHQUFHLE1BQU0sSUFBSSxDQUFDLFdBQVcsQ0FDakMsSUFBSSxpQkFBUyxDQUFDLEtBQUssRUFBRSxHQUFHLENBQUMsRUFDekIsQ0FBQyxJQUFJLENBQUMsRUFDTixJQUFJLENBQ0wsQ0FBQztRQUNGLElBQUksR0FBaUIsQ0FBQztRQUN0QixJQUFJO1lBQ0YsTUFBTSxJQUFJLENBQUMsS0FBSyxFQUFFLENBQUM7WUFDbkIsb0NBQW9DO1lBQ3BDLE9BQU8sTUFBTSxJQUFJLENBQUMsSUFBSSxFQUFFLEVBQUUsR0FBRTtZQUM1QixHQUFHLEdBQUcsQ0FBQyxNQUFNLElBQUksQ0FBQyxLQUFLLEVBQUUsQ0FBQyxDQUFDLElBQUksQ0FBQyxDQUFDO1NBQ2xDO2dCQUFTO1lBQ1IsTUFBTSxJQUFJLENBQUMsS0FBSyxFQUFFLENBQUM7U0FDcEI7UUFDRCxPQUFPLEdBQW1CLENBQUM7SUFDN0IsQ0FBQztDQUNGO0FBckhELGdDQXFIQyJ9
@@ -1,134 +0,0 @@
1
- import { StreamClient } from '@synnaxlabs/freighter';
2
- import Registry from '../channel/registry';
3
- import { TimeRange } from '../telem';
4
- import { SegmentPayload } from './payload';
5
- import TypedSegment from './typed';
6
- /**
7
- * Used to iterate over a clusters telemetry in time-order. It should not be
8
- * instantiated directly, and should instead be instantiated via the SegmentClient.
9
- *
10
- * Using an iterator is ideal when querying/processing large ranges of data, but
11
- * is relatively complex and difficult to use. If you're looking to retrieve
12
- * telemetry between two timestamps, see the SegmentClient.read method.
13
- */
14
- export declare class CoreIterator {
15
- private static ENDPOINT;
16
- private client;
17
- private stream;
18
- private readonly aggregate;
19
- values: SegmentPayload[];
20
- constructor(client: StreamClient, aggregate?: boolean);
21
- /**
22
- * Opens the iterator, configuring it to iterate over the telemetry in the
23
- * channels with the given keys within the provided time range.
24
- *
25
- * @param tr - The time range to iterate over.
26
- * @param keys - The keys of the channels to iterate over.
27
- */
28
- open(tr: TimeRange, keys: string[]): Promise<void>;
29
- /**
30
- * Reads the next segment for each channel in the iterator.
31
- *
32
- * @returns false if the next segment can't be found for one or more channels or
33
- * the iterator has accumulated an error.
34
- */
35
- next(): Promise<boolean>;
36
- /**
37
- * Reads the previous segment for each channel in the iterator.
38
- *
39
- * @returns false if the next segment can't be found for one or more channels or
40
- * the iterator has accumulated an error.
41
- */
42
- prev(): Promise<boolean>;
43
- /**
44
- * Seeks to the beginning of the time range and reads the first segment of each
45
- * channel in the iterator.
46
- *
47
- * @returns false if no segments exists in the time range for a particular channel
48
- * or the iterator has accumulated an error.
49
- */
50
- first(): Promise<boolean>;
51
- /**
52
- * Seeks to the end of the time range and reads the last segment of each channel
53
- * in the iterator.
54
- *
55
- * @returns false if no segments exists in the time range for a particular channel,
56
- * or the iterator has accumulated an error.
57
- */
58
- last(): Promise<boolean>;
59
- /**
60
- * Reads the next time span of telemetry for each channel in the iterator.
61
- *
62
- * @returns false if a segment satisfying the request can't be found for a
63
- * particular channel or the iterator has accumulated an error.
64
- */
65
- nextSpan(span: number): Promise<boolean>;
66
- /**
67
- * Reads the previous time span of telemetry for each channel in the iterator.
68
- *
69
- * @returns false if a segment satisfying the request can't be found for a particular
70
- * channel or the iterator has accumulated an error.
71
- */
72
- prevSpan(span: number): Promise<boolean>;
73
- /**
74
- * Seeks the iterator to the start of the time range and reads the telemetry within
75
- * the range for each channel.
76
- *
77
- * @returns: False if a segment satisfying the request can't be found for a particular
78
- * channel or the iterator has accumulated an error.
79
- */
80
- nextRange(range: TimeRange): Promise<boolean>;
81
- /**
82
- * Seeks the iterator to the first segment in the time range, but does not read
83
- * it. Also invalidates the iterator. The iterator will not be considered valid
84
- * until a call to first, last, next, prev, prev_span, next_span, or next_range.
85
- *
86
- * @returns false if the iterator is not pointing to a valid segment for a particular
87
- * channel or has accumulated an error.
88
- */
89
- seekFirst(): Promise<boolean>;
90
- /** Seeks the iterator to the last segment in the time range, but does not read it.
91
- * Also invalidates the iterator. The iterator will not be considered valid
92
- * until a call to first, last, next, prev, prev_span, next_span, or next_range.
93
- *
94
- * @returns false if the iterator is not pointing to a valid segment for a particular
95
- * channel or has accumulated an error.
96
- */
97
- seekLast(): Promise<boolean>;
98
- /**
99
- * Seeks the iterator to the first segment whose start is less than or equal to
100
- * the provided timestamp. Also invalidates the iterator. The iterator will not be
101
- * considered valid until a call to first, last, next, prev, prev_span, next_span, or next_range.
102
- *
103
- * @returns false if the iterator is not pointing to a valid segment for a particular
104
- * channel or has accumulated an error.
105
- */
106
- seekLT(stamp: number): Promise<boolean>;
107
- /**
108
- * Seeks the iterator to the first segment whose start is greater than or equal to
109
- * the provided timestamp. Also invalidates the iterator. The iterator will not be
110
- * considered valid until a call to first, last, next, prev, prev_span, next_span, or next_range.
111
- *
112
- * @returns false if the iterator is not pointing to a valid segment for a particular
113
- * channel or has accumulated an error.
114
- */
115
- seekGE(stamp: number): Promise<boolean>;
116
- /**
117
- * @returns true if the iterator value contains a valid segment, and fale otherwise.
118
- * valid most commonly returns false when the iterator is exhausted or has
119
- * accumulated an error.
120
- */
121
- valid(): Promise<boolean>;
122
- /**
123
- * Closes the iterator. An iterator MUST be closed after use, and this method
124
- * should probably be placed in a 'finally' block. If the iterator is not closed,
125
- * it may leak resources.
126
- */
127
- close(): Promise<void>;
128
- private execute;
129
- }
130
- export declare class TypedIterator extends CoreIterator {
131
- channels: Registry;
132
- constructor(client: StreamClient, channels: Registry, aggregate?: boolean);
133
- value(): Promise<Record<string, TypedSegment>>;
134
- }