@synnaxlabs/client 0.49.3 → 0.52.3

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 (407) hide show
  1. package/.turbo/turbo-build.log +10 -10
  2. package/CONTRIBUTING.md +1 -2
  3. package/README.md +1 -1
  4. package/dist/client.cjs +58 -34
  5. package/dist/client.js +5256 -4528
  6. package/dist/eslint.config.d.ts +2 -2
  7. package/dist/eslint.config.d.ts.map +1 -1
  8. package/dist/src/access/policy/client.d.ts +90 -76
  9. package/dist/src/access/policy/client.d.ts.map +1 -1
  10. package/dist/src/access/policy/payload.d.ts +17 -14
  11. package/dist/src/access/policy/payload.d.ts.map +1 -1
  12. package/dist/src/access/role/payload.d.ts +2 -2
  13. package/dist/src/arc/payload.d.ts +21 -20
  14. package/dist/src/arc/payload.d.ts.map +1 -1
  15. package/dist/src/channel/client.d.ts +9 -15
  16. package/dist/src/channel/client.d.ts.map +1 -1
  17. package/dist/src/channel/payload.d.ts +18 -18
  18. package/dist/src/channel/payload.d.ts.map +1 -1
  19. package/dist/src/channel/retriever.d.ts.map +1 -1
  20. package/dist/src/client.d.ts +12 -0
  21. package/dist/src/client.d.ts.map +1 -1
  22. package/dist/src/device/client.d.ts +14 -7
  23. package/dist/src/device/client.d.ts.map +1 -1
  24. package/dist/src/device/payload.d.ts +65 -32
  25. package/dist/src/device/payload.d.ts.map +1 -1
  26. package/dist/src/device/payload.spec.d.ts +2 -0
  27. package/dist/src/device/payload.spec.d.ts.map +1 -0
  28. package/dist/src/framer/adapter.d.ts.map +1 -1
  29. package/dist/src/framer/client.d.ts +2 -2
  30. package/dist/src/framer/frame.d.ts +5 -5
  31. package/dist/src/framer/frame.d.ts.map +1 -1
  32. package/dist/src/framer/streamer.d.ts +7 -17
  33. package/dist/src/framer/streamer.d.ts.map +1 -1
  34. package/dist/src/framer/writer.d.ts +9 -19
  35. package/dist/src/framer/writer.d.ts.map +1 -1
  36. package/dist/src/group/access.spec.d.ts.map +1 -0
  37. package/dist/src/{ontology/group → group}/client.d.ts +3 -2
  38. package/dist/src/group/client.d.ts.map +1 -0
  39. package/dist/src/group/external.d.ts.map +1 -0
  40. package/dist/src/group/group.spec.d.ts.map +1 -0
  41. package/dist/src/group/index.d.ts.map +1 -0
  42. package/dist/src/{ontology/group → group}/payload.d.ts +1 -1
  43. package/dist/src/group/payload.d.ts.map +1 -0
  44. package/dist/src/index.d.ts +6 -5
  45. package/dist/src/index.d.ts.map +1 -1
  46. package/dist/src/label/client.d.ts +27 -10
  47. package/dist/src/label/client.d.ts.map +1 -1
  48. package/dist/src/label/payload.d.ts +15 -1
  49. package/dist/src/label/payload.d.ts.map +1 -1
  50. package/dist/src/lineplot/access.spec.d.ts.map +1 -0
  51. package/dist/src/{workspace/lineplot → lineplot}/client.d.ts +6 -6
  52. package/dist/src/lineplot/client.d.ts.map +1 -0
  53. package/dist/src/lineplot/external.d.ts.map +1 -0
  54. package/dist/src/lineplot/index.d.ts.map +1 -0
  55. package/dist/src/lineplot/lineplot.spec.d.ts.map +1 -0
  56. package/dist/src/{workspace/lineplot → lineplot}/payload.d.ts +3 -3
  57. package/dist/src/lineplot/payload.d.ts.map +1 -0
  58. package/dist/src/log/access.spec.d.ts.map +1 -0
  59. package/dist/src/{workspace/log → log}/client.d.ts +6 -6
  60. package/dist/src/log/client.d.ts.map +1 -0
  61. package/dist/src/log/external.d.ts.map +1 -0
  62. package/dist/src/log/index.d.ts.map +1 -0
  63. package/dist/src/log/log.spec.d.ts.map +1 -0
  64. package/dist/src/{workspace/log → log}/payload.d.ts +3 -3
  65. package/dist/src/log/payload.d.ts.map +1 -0
  66. package/dist/src/ontology/client.d.ts +7 -9
  67. package/dist/src/ontology/client.d.ts.map +1 -1
  68. package/dist/src/ontology/payload.d.ts +25 -20
  69. package/dist/src/ontology/payload.d.ts.map +1 -1
  70. package/dist/src/ontology/writer.d.ts +15 -10
  71. package/dist/src/ontology/writer.d.ts.map +1 -1
  72. package/dist/src/rack/client.d.ts +2 -2
  73. package/dist/src/rack/payload.d.ts +44 -16
  74. package/dist/src/rack/payload.d.ts.map +1 -1
  75. package/dist/src/ranger/alias/client.d.ts +17 -0
  76. package/dist/src/ranger/alias/client.d.ts.map +1 -0
  77. package/dist/src/ranger/alias/external.d.ts +2 -0
  78. package/dist/src/ranger/alias/external.d.ts.map +1 -0
  79. package/dist/src/ranger/alias/index.d.ts +2 -0
  80. package/dist/src/ranger/alias/index.d.ts.map +1 -0
  81. package/dist/src/ranger/{alias.d.ts → alias/payload.d.ts} +14 -20
  82. package/dist/src/ranger/alias/payload.d.ts.map +1 -0
  83. package/dist/src/ranger/client.d.ts +10 -10
  84. package/dist/src/ranger/client.d.ts.map +1 -1
  85. package/dist/src/ranger/external.d.ts +20 -0
  86. package/dist/src/ranger/external.d.ts.map +1 -1
  87. package/dist/src/ranger/kv/client.d.ts +14 -0
  88. package/dist/src/ranger/kv/client.d.ts.map +1 -0
  89. package/dist/src/ranger/kv/external.d.ts +2 -0
  90. package/dist/src/ranger/kv/external.d.ts.map +1 -0
  91. package/dist/src/ranger/kv/index.d.ts +2 -0
  92. package/dist/src/ranger/kv/index.d.ts.map +1 -0
  93. package/dist/src/ranger/kv/payload.d.ts +26 -0
  94. package/dist/src/ranger/kv/payload.d.ts.map +1 -0
  95. package/dist/src/ranger/payload.d.ts +45 -3
  96. package/dist/src/ranger/payload.d.ts.map +1 -1
  97. package/dist/src/ranger/writer.d.ts +18 -3
  98. package/dist/src/ranger/writer.d.ts.map +1 -1
  99. package/dist/src/schematic/access.spec.d.ts.map +1 -0
  100. package/dist/src/{workspace/schematic → schematic}/client.d.ts +6 -6
  101. package/dist/src/schematic/client.d.ts.map +1 -0
  102. package/dist/src/schematic/external.d.ts.map +1 -0
  103. package/dist/src/schematic/index.d.ts.map +1 -0
  104. package/dist/src/{workspace/schematic → schematic}/payload.d.ts +3 -3
  105. package/dist/src/schematic/payload.d.ts.map +1 -0
  106. package/dist/src/schematic/schematic.spec.d.ts.map +1 -0
  107. package/dist/src/schematic/symbol/access.spec.d.ts.map +1 -0
  108. package/dist/src/{workspace/schematic → schematic}/symbol/client.d.ts +2 -2
  109. package/dist/src/schematic/symbol/client.d.ts.map +1 -0
  110. package/dist/src/schematic/symbol/client.spec.d.ts.map +1 -0
  111. package/dist/src/schematic/symbol/external.d.ts.map +1 -0
  112. package/dist/src/schematic/symbol/index.d.ts.map +1 -0
  113. package/dist/src/schematic/symbol/payload.d.ts.map +1 -0
  114. package/dist/src/status/payload.d.ts +43 -7
  115. package/dist/src/status/payload.d.ts.map +1 -1
  116. package/dist/src/table/access.spec.d.ts.map +1 -0
  117. package/dist/src/{workspace/table → table}/client.d.ts +6 -6
  118. package/dist/src/table/client.d.ts.map +1 -0
  119. package/dist/src/table/external.d.ts.map +1 -0
  120. package/dist/src/table/index.d.ts.map +1 -0
  121. package/dist/src/{workspace/table → table}/payload.d.ts +3 -3
  122. package/dist/src/table/payload.d.ts.map +1 -0
  123. package/dist/src/table/table.spec.d.ts.map +1 -0
  124. package/dist/src/task/client.d.ts +2 -2
  125. package/dist/src/task/client.d.ts.map +1 -1
  126. package/dist/src/task/payload.d.ts +5 -4
  127. package/dist/src/task/payload.d.ts.map +1 -1
  128. package/dist/src/task/payload.spec.d.ts +2 -0
  129. package/dist/src/task/payload.spec.d.ts.map +1 -0
  130. package/dist/src/user/client.d.ts +2 -2
  131. package/dist/src/view/client.d.ts +43 -0
  132. package/dist/src/view/client.d.ts.map +1 -0
  133. package/dist/src/view/external.d.ts +3 -0
  134. package/dist/src/view/external.d.ts.map +1 -0
  135. package/dist/src/view/index.d.ts +2 -0
  136. package/dist/src/view/index.d.ts.map +1 -0
  137. package/dist/src/view/payload.d.ts +20 -0
  138. package/dist/src/view/payload.d.ts.map +1 -0
  139. package/dist/src/view/view.spec.d.ts +2 -0
  140. package/dist/src/view/view.spec.d.ts.map +1 -0
  141. package/dist/src/workspace/client.d.ts +3 -11
  142. package/dist/src/workspace/client.d.ts.map +1 -1
  143. package/dist/src/workspace/payload.d.ts +3 -3
  144. package/eslint.config.ts +3 -4
  145. package/examples/node/basicReadWrite.js +1 -1
  146. package/examples/node/createChannels.js +50 -0
  147. package/examples/node/createRange.js +67 -0
  148. package/examples/node/readLatest.js +76 -0
  149. package/examples/node/seriesAndFrames.js +2 -2
  150. package/examples/node/{liveStream.js → streamRead.js} +1 -1
  151. package/examples/node/streamWrite.js +1 -1
  152. package/package.json +11 -10
  153. package/src/access/client.ts +1 -1
  154. package/src/access/enforce.spec.ts +1 -1
  155. package/src/access/enforce.ts +1 -1
  156. package/src/access/external.ts +1 -1
  157. package/src/access/index.ts +1 -1
  158. package/src/access/payload.ts +1 -1
  159. package/src/access/policy/access.spec.ts +1 -1
  160. package/src/access/policy/client.ts +1 -1
  161. package/src/access/policy/external.ts +1 -1
  162. package/src/access/policy/index.ts +1 -1
  163. package/src/access/policy/payload.ts +1 -1
  164. package/src/access/role/client.ts +1 -1
  165. package/src/access/role/external.ts +1 -1
  166. package/src/access/role/index.ts +1 -1
  167. package/src/access/role/payload.ts +1 -1
  168. package/src/access/role/role.spec.ts +1 -1
  169. package/src/arc/access.spec.ts +1 -7
  170. package/src/arc/client.ts +1 -1
  171. package/src/arc/external.ts +1 -1
  172. package/src/arc/index.ts +1 -1
  173. package/src/arc/lsp.spec.ts +156 -287
  174. package/src/arc/payload.ts +7 -12
  175. package/src/auth/auth.spec.ts +1 -1
  176. package/src/auth/auth.ts +1 -1
  177. package/src/auth/index.ts +1 -1
  178. package/src/channel/access.spec.ts +1 -1
  179. package/src/channel/batchRetriever.spec.ts +1 -3
  180. package/src/channel/channel.spec.ts +13 -20
  181. package/src/channel/client.ts +8 -41
  182. package/src/channel/external.ts +1 -1
  183. package/src/channel/index.ts +1 -1
  184. package/src/channel/payload.spec.ts +1 -58
  185. package/src/channel/payload.ts +19 -19
  186. package/src/channel/retriever.ts +7 -6
  187. package/src/channel/writer.ts +1 -1
  188. package/src/client.ts +24 -4
  189. package/src/connection/checker.ts +2 -2
  190. package/src/connection/connection.spec.ts +1 -1
  191. package/src/connection/index.ts +1 -1
  192. package/src/connection.spec.ts +1 -1
  193. package/src/control/client.ts +1 -1
  194. package/src/control/external.ts +1 -1
  195. package/src/control/index.ts +1 -1
  196. package/src/control/state.spec.ts +1 -1
  197. package/src/control/state.ts +1 -1
  198. package/src/device/access.spec.ts +1 -1
  199. package/src/device/client.ts +90 -44
  200. package/src/device/device.spec.ts +1 -1
  201. package/src/device/external.ts +1 -1
  202. package/src/device/index.ts +1 -1
  203. package/src/device/payload.spec.ts +118 -0
  204. package/src/device/payload.ts +56 -31
  205. package/src/errors.spec.ts +2 -2
  206. package/src/errors.ts +1 -1
  207. package/src/framer/adapter.spec.ts +1 -1
  208. package/src/framer/adapter.ts +6 -8
  209. package/src/framer/client.spec.ts +1 -1
  210. package/src/framer/client.ts +1 -1
  211. package/src/framer/codec.spec.ts +1 -1
  212. package/src/framer/codec.ts +1 -1
  213. package/src/framer/deleter.spec.ts +1 -1
  214. package/src/framer/deleter.ts +1 -1
  215. package/src/framer/external.ts +1 -1
  216. package/src/framer/frame.spec.ts +1 -1
  217. package/src/framer/frame.ts +9 -9
  218. package/src/framer/index.ts +1 -1
  219. package/src/framer/iterator.spec.ts +1 -1
  220. package/src/framer/iterator.ts +1 -1
  221. package/src/framer/payload.ts +1 -1
  222. package/src/framer/reader.spec.ts +1 -1
  223. package/src/framer/reader.ts +1 -1
  224. package/src/framer/streamProxy.ts +1 -1
  225. package/src/framer/streamer.spec.ts +1 -2
  226. package/src/framer/streamer.ts +4 -4
  227. package/src/framer/writer.spec.ts +1 -1
  228. package/src/framer/writer.ts +1 -1
  229. package/src/{ontology/group → group}/access.spec.ts +8 -8
  230. package/src/{ontology/group → group}/client.ts +2 -2
  231. package/src/group/external.ts +11 -0
  232. package/src/{ontology/group → group}/group.spec.ts +10 -10
  233. package/src/{workspace/log → group}/index.ts +2 -2
  234. package/src/{ontology/group → group}/payload.ts +1 -1
  235. package/src/index.ts +7 -6
  236. package/src/label/access.spec.ts +2 -2
  237. package/src/label/client.ts +2 -2
  238. package/src/label/external.ts +1 -1
  239. package/src/label/index.ts +1 -1
  240. package/src/label/label.spec.ts +5 -5
  241. package/src/label/payload.ts +1 -1
  242. package/src/{workspace/lineplot → lineplot}/access.spec.ts +15 -15
  243. package/src/{workspace/lineplot → lineplot}/client.ts +14 -14
  244. package/src/lineplot/external.ts +11 -0
  245. package/src/{ontology/group → lineplot}/index.ts +2 -2
  246. package/src/{workspace/lineplot → lineplot}/lineplot.spec.ts +13 -13
  247. package/src/{workspace/lineplot → lineplot}/payload.ts +1 -1
  248. package/src/{workspace/log → log}/access.spec.ts +17 -19
  249. package/src/{workspace/log → log}/client.ts +14 -14
  250. package/src/{workspace/schematic/index.ts → log/external.ts} +3 -2
  251. package/src/{workspace/table → log}/index.ts +2 -2
  252. package/src/{workspace/log → log}/log.spec.ts +11 -11
  253. package/src/{workspace/log → log}/payload.ts +1 -1
  254. package/src/ontology/client.ts +7 -14
  255. package/src/ontology/external.ts +1 -1
  256. package/src/ontology/index.ts +1 -1
  257. package/src/ontology/ontology.spec.ts +13 -13
  258. package/src/ontology/payload.ts +6 -3
  259. package/src/ontology/writer.ts +1 -1
  260. package/src/rack/access.spec.ts +1 -1
  261. package/src/rack/client.ts +1 -1
  262. package/src/rack/external.ts +1 -1
  263. package/src/rack/index.ts +1 -1
  264. package/src/rack/payload.ts +1 -1
  265. package/src/rack/rack.spec.ts +1 -1
  266. package/src/ranger/access.spec.ts +1 -1
  267. package/src/ranger/{alias.ts → alias/client.ts} +7 -38
  268. package/src/{workspace/lineplot → ranger/alias}/external.ts +11 -3
  269. package/src/{workspace/lineplot → ranger/alias}/index.ts +2 -2
  270. package/src/ranger/alias/payload.ts +50 -0
  271. package/src/ranger/client.ts +27 -20
  272. package/src/ranger/external.ts +23 -1
  273. package/src/ranger/index.ts +1 -1
  274. package/src/ranger/{kv.ts → kv/client.ts} +6 -20
  275. package/src/{workspace/schematic → ranger/kv}/external.ts +8 -4
  276. package/src/ranger/kv/index.ts +10 -0
  277. package/src/ranger/kv/payload.ts +32 -0
  278. package/src/ranger/payload.ts +3 -3
  279. package/src/ranger/ranger.spec.ts +2 -2
  280. package/src/ranger/writer.ts +1 -1
  281. package/src/{workspace/schematic → schematic}/access.spec.ts +15 -15
  282. package/src/{workspace/schematic → schematic}/client.ts +15 -15
  283. package/src/{workspace/log → schematic}/external.ts +4 -3
  284. package/src/schematic/index.ts +10 -0
  285. package/src/{workspace/schematic → schematic}/payload.ts +1 -1
  286. package/src/{workspace/schematic → schematic}/schematic.spec.ts +18 -18
  287. package/src/{workspace/schematic → schematic}/symbol/access.spec.ts +20 -20
  288. package/src/{workspace/schematic → schematic}/symbol/client.spec.ts +17 -17
  289. package/src/{workspace/schematic → schematic}/symbol/client.ts +9 -9
  290. package/src/{ontology/group → schematic/symbol}/external.ts +3 -3
  291. package/src/schematic/symbol/index.ts +10 -0
  292. package/src/{workspace/schematic → schematic}/symbol/payload.ts +1 -1
  293. package/src/status/access.spec.ts +1 -1
  294. package/src/status/client.ts +1 -1
  295. package/src/status/external.ts +1 -1
  296. package/src/status/index.ts +1 -1
  297. package/src/status/payload.ts +2 -2
  298. package/src/status/status.spec.ts +3 -3
  299. package/src/{workspace/table → table}/access.spec.ts +15 -15
  300. package/src/{workspace/table → table}/client.ts +16 -13
  301. package/src/table/external.ts +11 -0
  302. package/src/table/index.ts +10 -0
  303. package/src/{workspace/table → table}/payload.ts +1 -1
  304. package/src/{workspace/table → table}/table.spec.ts +13 -13
  305. package/src/task/access.spec.ts +1 -1
  306. package/src/task/client.ts +11 -6
  307. package/src/task/external.ts +1 -1
  308. package/src/task/index.ts +1 -1
  309. package/src/task/payload.spec.ts +113 -0
  310. package/src/task/payload.ts +14 -10
  311. package/src/task/task.spec.ts +1 -1
  312. package/src/testutil/access.ts +1 -1
  313. package/src/testutil/channels.ts +1 -1
  314. package/src/testutil/client.ts +1 -1
  315. package/src/testutil/telem.ts +1 -1
  316. package/src/transport.ts +1 -1
  317. package/src/user/access.spec.ts +1 -1
  318. package/src/user/client.ts +1 -1
  319. package/src/user/external.ts +1 -1
  320. package/src/user/index.ts +1 -1
  321. package/src/user/payload.ts +1 -1
  322. package/src/user/user.spec.ts +1 -1
  323. package/src/util/decodeJSONString.ts +1 -1
  324. package/src/util/parseWithoutKeyConversion.ts +1 -1
  325. package/src/util/retrieve.spec.ts +1 -1
  326. package/src/util/retrieve.ts +1 -1
  327. package/src/util/telem.ts +1 -1
  328. package/src/view/client.ts +96 -0
  329. package/src/view/external.ts +11 -0
  330. package/src/view/index.ts +10 -0
  331. package/src/view/payload.ts +25 -0
  332. package/src/view/view.spec.ts +161 -0
  333. package/src/vite-env.d.ts +1 -1
  334. package/src/workspace/access.spec.ts +1 -1
  335. package/src/workspace/client.ts +1 -13
  336. package/src/workspace/external.ts +1 -1
  337. package/src/workspace/index.ts +1 -1
  338. package/src/workspace/payload.ts +1 -1
  339. package/src/workspace/workspace.spec.ts +1 -1
  340. package/vite.config.ts +1 -1
  341. package/dist/src/ontology/group/access.spec.d.ts.map +0 -1
  342. package/dist/src/ontology/group/client.d.ts.map +0 -1
  343. package/dist/src/ontology/group/external.d.ts.map +0 -1
  344. package/dist/src/ontology/group/group.spec.d.ts.map +0 -1
  345. package/dist/src/ontology/group/index.d.ts.map +0 -1
  346. package/dist/src/ontology/group/payload.d.ts.map +0 -1
  347. package/dist/src/ranger/alias.d.ts.map +0 -1
  348. package/dist/src/ranger/kv.d.ts +0 -48
  349. package/dist/src/ranger/kv.d.ts.map +0 -1
  350. package/dist/src/workspace/lineplot/access.spec.d.ts.map +0 -1
  351. package/dist/src/workspace/lineplot/client.d.ts.map +0 -1
  352. package/dist/src/workspace/lineplot/external.d.ts.map +0 -1
  353. package/dist/src/workspace/lineplot/index.d.ts.map +0 -1
  354. package/dist/src/workspace/lineplot/lineplot.spec.d.ts.map +0 -1
  355. package/dist/src/workspace/lineplot/payload.d.ts.map +0 -1
  356. package/dist/src/workspace/log/access.spec.d.ts.map +0 -1
  357. package/dist/src/workspace/log/client.d.ts.map +0 -1
  358. package/dist/src/workspace/log/external.d.ts.map +0 -1
  359. package/dist/src/workspace/log/index.d.ts.map +0 -1
  360. package/dist/src/workspace/log/log.spec.d.ts.map +0 -1
  361. package/dist/src/workspace/log/payload.d.ts.map +0 -1
  362. package/dist/src/workspace/schematic/access.spec.d.ts.map +0 -1
  363. package/dist/src/workspace/schematic/client.d.ts.map +0 -1
  364. package/dist/src/workspace/schematic/external.d.ts.map +0 -1
  365. package/dist/src/workspace/schematic/index.d.ts.map +0 -1
  366. package/dist/src/workspace/schematic/payload.d.ts.map +0 -1
  367. package/dist/src/workspace/schematic/schematic.spec.d.ts.map +0 -1
  368. package/dist/src/workspace/schematic/symbol/access.spec.d.ts.map +0 -1
  369. package/dist/src/workspace/schematic/symbol/client.d.ts.map +0 -1
  370. package/dist/src/workspace/schematic/symbol/client.spec.d.ts.map +0 -1
  371. package/dist/src/workspace/schematic/symbol/external.d.ts.map +0 -1
  372. package/dist/src/workspace/schematic/symbol/index.d.ts.map +0 -1
  373. package/dist/src/workspace/schematic/symbol/payload.d.ts.map +0 -1
  374. package/dist/src/workspace/table/access.spec.d.ts.map +0 -1
  375. package/dist/src/workspace/table/client.d.ts.map +0 -1
  376. package/dist/src/workspace/table/external.d.ts.map +0 -1
  377. package/dist/src/workspace/table/index.d.ts.map +0 -1
  378. package/dist/src/workspace/table/payload.d.ts.map +0 -1
  379. package/dist/src/workspace/table/table.spec.d.ts.map +0 -1
  380. package/src/workspace/schematic/symbol/external.ts +0 -11
  381. package/src/workspace/schematic/symbol/index.ts +0 -10
  382. package/src/workspace/table/external.ts +0 -11
  383. /package/dist/src/{ontology/group → group}/access.spec.d.ts +0 -0
  384. /package/dist/src/{ontology/group → group}/external.d.ts +0 -0
  385. /package/dist/src/{ontology/group → group}/group.spec.d.ts +0 -0
  386. /package/dist/src/{ontology/group → group}/index.d.ts +0 -0
  387. /package/dist/src/{workspace/lineplot → lineplot}/access.spec.d.ts +0 -0
  388. /package/dist/src/{workspace/lineplot → lineplot}/external.d.ts +0 -0
  389. /package/dist/src/{workspace/lineplot → lineplot}/index.d.ts +0 -0
  390. /package/dist/src/{workspace/lineplot → lineplot}/lineplot.spec.d.ts +0 -0
  391. /package/dist/src/{workspace/log → log}/access.spec.d.ts +0 -0
  392. /package/dist/src/{workspace/log → log}/external.d.ts +0 -0
  393. /package/dist/src/{workspace/log → log}/index.d.ts +0 -0
  394. /package/dist/src/{workspace/log → log}/log.spec.d.ts +0 -0
  395. /package/dist/src/{workspace/schematic → schematic}/access.spec.d.ts +0 -0
  396. /package/dist/src/{workspace/schematic → schematic}/external.d.ts +0 -0
  397. /package/dist/src/{workspace/schematic → schematic}/index.d.ts +0 -0
  398. /package/dist/src/{workspace/schematic → schematic}/schematic.spec.d.ts +0 -0
  399. /package/dist/src/{workspace/schematic → schematic}/symbol/access.spec.d.ts +0 -0
  400. /package/dist/src/{workspace/schematic → schematic}/symbol/client.spec.d.ts +0 -0
  401. /package/dist/src/{workspace/schematic → schematic}/symbol/external.d.ts +0 -0
  402. /package/dist/src/{workspace/schematic → schematic}/symbol/index.d.ts +0 -0
  403. /package/dist/src/{workspace/schematic → schematic}/symbol/payload.d.ts +0 -0
  404. /package/dist/src/{workspace/table → table}/access.spec.d.ts +0 -0
  405. /package/dist/src/{workspace/table → table}/external.d.ts +0 -0
  406. /package/dist/src/{workspace/table → table}/index.d.ts +0 -0
  407. /package/dist/src/{workspace/table → table}/table.spec.d.ts +0 -0
@@ -0,0 +1,76 @@
1
+ // Copyright 2026 Synnax Labs, Inc.
2
+ //
3
+ // Use of this software is governed by the Business Source License included in the file
4
+ // licenses/BSL.txt.
5
+ //
6
+ // As of the Change Date specified in that file, in accordance with the Business Source
7
+ // License, use of this software will be governed by the Apache License, Version 2.0,
8
+ // included in the file licenses/APL.txt.
9
+
10
+ /**
11
+ * This example demonstrates how to read the latest N samples from Synnax channels. We'll:
12
+ * 1. Create an index channel for timestamps and a data channel for values
13
+ * 2. Write some sample data to these channels
14
+ * 3. Read the latest N samples using an iterator
15
+ * 4. Print the results
16
+ *
17
+ * This pattern is useful for real-time monitoring applications where you need to access
18
+ * the most recent data points.
19
+ */
20
+
21
+ import { DataType, Synnax, TimeSpan, TimeStamp } from "@synnaxlabs/client";
22
+
23
+ // Connect to a locally running, insecure Synnax cluster. If your connection parameters
24
+ // are different, enter them here. See https://docs.synnaxlabs.com/reference/client/quick-start.
25
+ const client = new Synnax({
26
+ host: "localhost",
27
+ port: 9090,
28
+ username: "synnax",
29
+ password: "seldon",
30
+ secure: false,
31
+ });
32
+
33
+ // Create an index channel that will be used to store our timestamps.
34
+ const timeChannel = await client.channels.create({
35
+ name: "read_latest_time",
36
+ isIndex: true,
37
+ dataType: DataType.TIMESTAMP,
38
+ });
39
+
40
+ // Create a data channel that will be used to store our data.
41
+ const dataChannel = await client.channels.create({
42
+ name: "read_latest_data",
43
+ // We need to specify the index channel that will be used to store the timestamps for
44
+ // this data channel.
45
+ index: timeChannel.key,
46
+ dataType: DataType.FLOAT32,
47
+ });
48
+
49
+ const SAMPLE_COUNT = 100;
50
+
51
+ // We'll start our write at the current time. This timestamp should be the same as or
52
+ // just before the first timestamp we write.
53
+ const start = TimeStamp.now();
54
+
55
+ // We'll end our write 100 seconds later
56
+ const end = start.add(TimeSpan.seconds(2));
57
+
58
+ // Generate linearly spaced int64 timestamps
59
+ const stamps = BigInt64Array.from({ length: SAMPLE_COUNT }, (_, i) =>
60
+ start.add(TimeSpan.milliseconds((i * 2000) / SAMPLE_COUNT)).valueOf(),
61
+ );
62
+
63
+ // Generate a sine wave with some noise as our data
64
+ const data = Float32Array.from(
65
+ { length: SAMPLE_COUNT },
66
+ (_, i) => Math.sin(1 + (i * 9) / SAMPLE_COUNT) * 20 + (Math.random() - 0.5),
67
+ );
68
+
69
+ // Write the data to the Synnax cluster through the channels. Note that we need to write
70
+ // to the index channel first, otherwise our write will fail.
71
+ await timeChannel.write(start, stamps);
72
+ await dataChannel.write(start, data);
73
+
74
+ console.log(await client.readLatest(["read_latest_time", "read_latest_data"], 1));
75
+
76
+ client.close();
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -82,7 +82,7 @@ import { DataType } from "@synnaxlabs/client";
82
82
 
83
83
  series = new Series([1, 2, 3, 4, 5]);
84
84
  console.log(series.dataType.toString()); // "float64"
85
- console.log(series.dataType.equals(DataType.STRING)); // true
85
+ console.log(series.dataType.equals(DataType.FLOAT64)); // true
86
86
 
87
87
  series = new Series([1, 2, 3, 4, 5]);
88
88
  console.log(series.max); // 5
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synnaxlabs/client",
3
- "version": "0.49.3",
3
+ "version": "0.52.3",
4
4
  "description": "The Synnax Client Library",
5
5
  "keywords": [
6
6
  "synnax",
@@ -25,21 +25,21 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "async-mutex": "^0.5.0",
28
- "zod": "^4.1.12",
29
- "@synnaxlabs/x": "^0.49.3",
30
- "@synnaxlabs/freighter": "^0.49.0"
28
+ "zod": "^4.3.6",
29
+ "@synnaxlabs/x": "^0.52.3",
30
+ "@synnaxlabs/freighter": "^0.52.3"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@vitest/coverage-v8": "^3.2.4",
34
- "@types/node": "^24.10.0",
35
- "eslint": "^9.39.1",
34
+ "@types/node": "^25.1.0",
35
+ "eslint": "^9.39.2",
36
36
  "madge": "^8.0.0",
37
37
  "typescript": "^5.9.3",
38
- "vite": "^7.1.12",
38
+ "vite": "^7.3.1",
39
39
  "vitest": "^3.2.4",
40
- "@synnaxlabs/tsconfig": "^0.43.0",
41
- "eslint-config-synnaxlabs": "^0.43.0",
42
- "@synnaxlabs/vite-plugin": "^0.43.0"
40
+ "@synnaxlabs/tsconfig": "^0.0.0",
41
+ "@synnaxlabs/eslint-config": "^0.0.0",
42
+ "@synnaxlabs/vite-plugin": "^0.0.0"
43
43
  },
44
44
  "type": "module",
45
45
  "types": "dist/src/index.d.ts",
@@ -49,6 +49,7 @@
49
49
  "check-types": "tsc --noEmit",
50
50
  "watch": "tsc --noEmit && vite build --watch",
51
51
  "test": "vitest",
52
+ "cov": "vitest --coverage",
52
53
  "lint": "eslint",
53
54
  "fix": "eslint --fix",
54
55
  "madge": "madge --circular src"
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -31,7 +31,6 @@ describe("arc", () => {
31
31
  edges: [],
32
32
  },
33
33
  text: { raw: "" },
34
- deploy: false,
35
34
  version: "1.0.0",
36
35
  };
37
36
  const randomArc = await client.arcs.create(a);
@@ -53,7 +52,6 @@ describe("arc", () => {
53
52
  edges: [],
54
53
  },
55
54
  text: { raw: "" },
56
- deploy: false,
57
55
  version: "1.0.0",
58
56
  });
59
57
  const retrieved = await userClient.arcs.retrieve({ key: randomArc.key });
@@ -74,7 +72,6 @@ describe("arc", () => {
74
72
  edges: [],
75
73
  },
76
74
  text: { raw: "" },
77
- deploy: false,
78
75
  version: "1.0.0",
79
76
  });
80
77
  });
@@ -93,7 +90,6 @@ describe("arc", () => {
93
90
  edges: [],
94
91
  },
95
92
  text: { raw: "" },
96
- deploy: false,
97
93
  version: "1.0.0",
98
94
  }),
99
95
  ).rejects.toThrow(AuthError);
@@ -112,7 +108,6 @@ describe("arc", () => {
112
108
  edges: [],
113
109
  },
114
110
  text: { raw: "" },
115
- deploy: false,
116
111
  version: "1.0.0",
117
112
  });
118
113
  await userClient.arcs.delete(randomArc.key);
@@ -134,7 +129,6 @@ describe("arc", () => {
134
129
  edges: [],
135
130
  },
136
131
  text: { raw: "" },
137
- deploy: false,
138
132
  version: "1.0.0",
139
133
  });
140
134
  await expect(userClient.arcs.delete(randomArc.key)).rejects.toThrow(AuthError);
package/src/arc/client.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
package/src/arc/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.