@synnaxlabs/client 0.49.2 → 0.50.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 (268) 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 +29 -29
  5. package/dist/client.js +3660 -3598
  6. package/dist/src/access/policy/client.d.ts +90 -76
  7. package/dist/src/access/policy/client.d.ts.map +1 -1
  8. package/dist/src/access/policy/payload.d.ts +17 -14
  9. package/dist/src/access/policy/payload.d.ts.map +1 -1
  10. package/dist/src/access/role/payload.d.ts +2 -2
  11. package/dist/src/arc/payload.d.ts +21 -20
  12. package/dist/src/arc/payload.d.ts.map +1 -1
  13. package/dist/src/channel/client.d.ts +5 -10
  14. package/dist/src/channel/client.d.ts.map +1 -1
  15. package/dist/src/channel/payload.d.ts +11 -9
  16. package/dist/src/channel/payload.d.ts.map +1 -1
  17. package/dist/src/channel/retriever.d.ts.map +1 -1
  18. package/dist/src/client.d.ts +2 -0
  19. package/dist/src/client.d.ts.map +1 -1
  20. package/dist/src/device/client.d.ts +2 -2
  21. package/dist/src/device/payload.d.ts +1 -1
  22. package/dist/src/framer/client.d.ts +2 -2
  23. package/dist/src/framer/external.d.ts +1 -0
  24. package/dist/src/framer/external.d.ts.map +1 -1
  25. package/dist/src/framer/iterator.d.ts +5 -0
  26. package/dist/src/framer/iterator.d.ts.map +1 -1
  27. package/dist/src/framer/reader.d.ts +3 -1
  28. package/dist/src/framer/reader.d.ts.map +1 -1
  29. package/dist/src/framer/streamer.d.ts +1 -11
  30. package/dist/src/framer/streamer.d.ts.map +1 -1
  31. package/dist/src/framer/writer.d.ts +0 -10
  32. package/dist/src/framer/writer.d.ts.map +1 -1
  33. package/dist/src/index.d.ts +1 -0
  34. package/dist/src/index.d.ts.map +1 -1
  35. package/dist/src/label/client.d.ts +11 -8
  36. package/dist/src/label/client.d.ts.map +1 -1
  37. package/dist/src/ontology/client.d.ts +6 -4
  38. package/dist/src/ontology/client.d.ts.map +1 -1
  39. package/dist/src/ontology/group/client.d.ts +3 -2
  40. package/dist/src/ontology/group/client.d.ts.map +1 -1
  41. package/dist/src/ontology/group/payload.d.ts +1 -1
  42. package/dist/src/ontology/group/payload.d.ts.map +1 -1
  43. package/dist/src/ontology/payload.d.ts +25 -20
  44. package/dist/src/ontology/payload.d.ts.map +1 -1
  45. package/dist/src/ontology/writer.d.ts +15 -10
  46. package/dist/src/ontology/writer.d.ts.map +1 -1
  47. package/dist/src/rack/client.d.ts +2 -2
  48. package/dist/src/ranger/client.d.ts +2 -2
  49. package/dist/src/ranger/writer.d.ts +3 -2
  50. package/dist/src/ranger/writer.d.ts.map +1 -1
  51. package/dist/src/status/payload.d.ts +2 -2
  52. package/dist/src/task/client.d.ts +2 -2
  53. package/dist/src/task/client.d.ts.map +1 -1
  54. package/dist/src/task/payload.d.ts +1 -0
  55. package/dist/src/task/payload.d.ts.map +1 -1
  56. package/dist/src/task/payload.spec.d.ts +2 -0
  57. package/dist/src/task/payload.spec.d.ts.map +1 -0
  58. package/dist/src/user/client.d.ts +2 -2
  59. package/dist/src/view/client.d.ts +43 -0
  60. package/dist/src/view/client.d.ts.map +1 -0
  61. package/dist/src/view/external.d.ts +3 -0
  62. package/dist/src/view/external.d.ts.map +1 -0
  63. package/dist/src/view/index.d.ts +2 -0
  64. package/dist/src/view/index.d.ts.map +1 -0
  65. package/dist/src/view/payload.d.ts +20 -0
  66. package/dist/src/view/payload.d.ts.map +1 -0
  67. package/dist/src/view/view.spec.d.ts +2 -0
  68. package/dist/src/view/view.spec.d.ts.map +1 -0
  69. package/dist/src/workspace/client.d.ts +3 -3
  70. package/dist/src/workspace/lineplot/client.d.ts +2 -2
  71. package/dist/src/workspace/lineplot/payload.d.ts +3 -3
  72. package/dist/src/workspace/log/client.d.ts +2 -2
  73. package/dist/src/workspace/log/payload.d.ts +3 -3
  74. package/dist/src/workspace/payload.d.ts +3 -3
  75. package/dist/src/workspace/schematic/client.d.ts +2 -2
  76. package/dist/src/workspace/schematic/payload.d.ts +3 -3
  77. package/dist/src/workspace/table/client.d.ts +2 -2
  78. package/dist/src/workspace/table/payload.d.ts +3 -3
  79. package/eslint.config.ts +1 -1
  80. package/examples/node/basicReadWrite.js +1 -1
  81. package/examples/node/createChannels.js +50 -0
  82. package/examples/node/createRange.js +67 -0
  83. package/examples/node/readLatest.js +76 -0
  84. package/examples/node/seriesAndFrames.js +2 -2
  85. package/examples/node/{liveStream.js → streamRead.js} +1 -1
  86. package/examples/node/streamWrite.js +1 -1
  87. package/package.json +10 -10
  88. package/src/access/client.ts +1 -1
  89. package/src/access/enforce.spec.ts +1 -1
  90. package/src/access/enforce.ts +1 -1
  91. package/src/access/external.ts +1 -1
  92. package/src/access/index.ts +1 -1
  93. package/src/access/payload.ts +1 -1
  94. package/src/access/policy/access.spec.ts +1 -1
  95. package/src/access/policy/client.ts +1 -1
  96. package/src/access/policy/external.ts +1 -1
  97. package/src/access/policy/index.ts +1 -1
  98. package/src/access/policy/payload.ts +1 -1
  99. package/src/access/role/client.ts +1 -1
  100. package/src/access/role/external.ts +1 -1
  101. package/src/access/role/index.ts +1 -1
  102. package/src/access/role/payload.ts +1 -1
  103. package/src/access/role/role.spec.ts +1 -1
  104. package/src/arc/access.spec.ts +1 -7
  105. package/src/arc/client.ts +1 -1
  106. package/src/arc/external.ts +1 -1
  107. package/src/arc/index.ts +1 -1
  108. package/src/arc/lsp.spec.ts +2 -5
  109. package/src/arc/payload.ts +7 -12
  110. package/src/auth/auth.spec.ts +1 -1
  111. package/src/auth/auth.ts +1 -1
  112. package/src/auth/index.ts +1 -1
  113. package/src/channel/access.spec.ts +1 -1
  114. package/src/channel/batchRetriever.spec.ts +1 -3
  115. package/src/channel/channel.spec.ts +13 -20
  116. package/src/channel/client.ts +5 -36
  117. package/src/channel/external.ts +1 -1
  118. package/src/channel/index.ts +1 -1
  119. package/src/channel/payload.spec.ts +1 -1
  120. package/src/channel/payload.ts +12 -5
  121. package/src/channel/retriever.ts +5 -3
  122. package/src/channel/writer.ts +1 -1
  123. package/src/client.ts +8 -3
  124. package/src/connection/checker.ts +2 -2
  125. package/src/connection/connection.spec.ts +1 -1
  126. package/src/connection/index.ts +1 -1
  127. package/src/connection.spec.ts +1 -1
  128. package/src/control/client.ts +1 -1
  129. package/src/control/external.ts +1 -1
  130. package/src/control/index.ts +1 -1
  131. package/src/control/state.spec.ts +1 -1
  132. package/src/control/state.ts +1 -1
  133. package/src/device/access.spec.ts +1 -1
  134. package/src/device/client.ts +1 -1
  135. package/src/device/device.spec.ts +1 -1
  136. package/src/device/external.ts +1 -1
  137. package/src/device/index.ts +1 -1
  138. package/src/device/payload.ts +1 -1
  139. package/src/errors.spec.ts +1 -1
  140. package/src/errors.ts +1 -1
  141. package/src/framer/adapter.spec.ts +1 -1
  142. package/src/framer/adapter.ts +1 -1
  143. package/src/framer/client.spec.ts +1 -1
  144. package/src/framer/client.ts +1 -1
  145. package/src/framer/codec.spec.ts +1 -1
  146. package/src/framer/codec.ts +1 -1
  147. package/src/framer/deleter.spec.ts +1 -1
  148. package/src/framer/deleter.ts +1 -1
  149. package/src/framer/external.ts +2 -1
  150. package/src/framer/frame.spec.ts +1 -1
  151. package/src/framer/frame.ts +1 -1
  152. package/src/framer/index.ts +1 -1
  153. package/src/framer/iterator.spec.ts +68 -1
  154. package/src/framer/iterator.ts +8 -1
  155. package/src/framer/payload.ts +1 -1
  156. package/src/framer/reader.spec.ts +213 -84
  157. package/src/framer/reader.ts +14 -7
  158. package/src/framer/streamProxy.ts +1 -1
  159. package/src/framer/streamer.spec.ts +1 -2
  160. package/src/framer/streamer.ts +4 -4
  161. package/src/framer/writer.spec.ts +1 -1
  162. package/src/framer/writer.ts +1 -1
  163. package/src/index.ts +2 -1
  164. package/src/label/access.spec.ts +1 -1
  165. package/src/label/client.ts +1 -1
  166. package/src/label/external.ts +1 -1
  167. package/src/label/index.ts +1 -1
  168. package/src/label/label.spec.ts +1 -1
  169. package/src/label/payload.ts +1 -1
  170. package/src/ontology/client.ts +6 -7
  171. package/src/ontology/external.ts +1 -1
  172. package/src/ontology/group/access.spec.ts +1 -1
  173. package/src/ontology/group/client.ts +1 -1
  174. package/src/ontology/group/external.ts +1 -1
  175. package/src/ontology/group/group.spec.ts +1 -1
  176. package/src/ontology/group/index.ts +1 -1
  177. package/src/ontology/group/payload.ts +1 -1
  178. package/src/ontology/index.ts +1 -1
  179. package/src/ontology/ontology.spec.ts +1 -1
  180. package/src/ontology/payload.ts +6 -3
  181. package/src/ontology/writer.ts +1 -1
  182. package/src/rack/access.spec.ts +1 -1
  183. package/src/rack/client.ts +1 -1
  184. package/src/rack/external.ts +1 -1
  185. package/src/rack/index.ts +1 -1
  186. package/src/rack/payload.ts +1 -1
  187. package/src/rack/rack.spec.ts +1 -1
  188. package/src/ranger/access.spec.ts +1 -1
  189. package/src/ranger/alias.ts +1 -1
  190. package/src/ranger/client.ts +1 -1
  191. package/src/ranger/external.ts +1 -1
  192. package/src/ranger/index.ts +1 -1
  193. package/src/ranger/kv.ts +1 -1
  194. package/src/ranger/payload.ts +1 -1
  195. package/src/ranger/ranger.spec.ts +1 -1
  196. package/src/ranger/writer.ts +1 -1
  197. package/src/status/access.spec.ts +1 -1
  198. package/src/status/client.ts +1 -1
  199. package/src/status/external.ts +1 -1
  200. package/src/status/index.ts +1 -1
  201. package/src/status/payload.ts +1 -1
  202. package/src/status/status.spec.ts +1 -1
  203. package/src/task/access.spec.ts +1 -1
  204. package/src/task/client.ts +11 -6
  205. package/src/task/external.ts +1 -1
  206. package/src/task/index.ts +1 -1
  207. package/src/task/payload.spec.ts +113 -0
  208. package/src/task/payload.ts +10 -5
  209. package/src/task/task.spec.ts +1 -1
  210. package/src/testutil/access.ts +1 -1
  211. package/src/testutil/channels.ts +1 -1
  212. package/src/testutil/client.ts +1 -1
  213. package/src/testutil/telem.ts +1 -1
  214. package/src/transport.ts +1 -1
  215. package/src/user/access.spec.ts +1 -1
  216. package/src/user/client.ts +1 -1
  217. package/src/user/external.ts +1 -1
  218. package/src/user/index.ts +1 -1
  219. package/src/user/payload.ts +1 -1
  220. package/src/user/user.spec.ts +1 -1
  221. package/src/util/decodeJSONString.ts +1 -1
  222. package/src/util/parseWithoutKeyConversion.ts +1 -1
  223. package/src/util/retrieve.spec.ts +1 -1
  224. package/src/util/retrieve.ts +1 -1
  225. package/src/util/telem.ts +1 -1
  226. package/src/view/client.ts +96 -0
  227. package/src/view/external.ts +11 -0
  228. package/src/view/index.ts +10 -0
  229. package/src/view/payload.ts +25 -0
  230. package/src/view/view.spec.ts +161 -0
  231. package/src/vite-env.d.ts +1 -1
  232. package/src/workspace/access.spec.ts +1 -1
  233. package/src/workspace/client.ts +1 -1
  234. package/src/workspace/external.ts +1 -1
  235. package/src/workspace/index.ts +1 -1
  236. package/src/workspace/lineplot/access.spec.ts +1 -1
  237. package/src/workspace/lineplot/client.ts +1 -1
  238. package/src/workspace/lineplot/external.ts +1 -1
  239. package/src/workspace/lineplot/index.ts +1 -1
  240. package/src/workspace/lineplot/lineplot.spec.ts +1 -1
  241. package/src/workspace/lineplot/payload.ts +1 -1
  242. package/src/workspace/log/access.spec.ts +1 -1
  243. package/src/workspace/log/client.ts +1 -1
  244. package/src/workspace/log/external.ts +1 -1
  245. package/src/workspace/log/index.ts +1 -1
  246. package/src/workspace/log/log.spec.ts +1 -1
  247. package/src/workspace/log/payload.ts +1 -1
  248. package/src/workspace/payload.ts +1 -1
  249. package/src/workspace/schematic/access.spec.ts +1 -1
  250. package/src/workspace/schematic/client.ts +1 -1
  251. package/src/workspace/schematic/external.ts +1 -1
  252. package/src/workspace/schematic/index.ts +1 -1
  253. package/src/workspace/schematic/payload.ts +1 -1
  254. package/src/workspace/schematic/schematic.spec.ts +1 -1
  255. package/src/workspace/schematic/symbol/access.spec.ts +1 -1
  256. package/src/workspace/schematic/symbol/client.spec.ts +1 -1
  257. package/src/workspace/schematic/symbol/client.ts +1 -1
  258. package/src/workspace/schematic/symbol/external.ts +1 -1
  259. package/src/workspace/schematic/symbol/index.ts +1 -1
  260. package/src/workspace/schematic/symbol/payload.ts +1 -1
  261. package/src/workspace/table/access.spec.ts +1 -1
  262. package/src/workspace/table/client.ts +1 -1
  263. package/src/workspace/table/external.ts +1 -1
  264. package/src/workspace/table/index.ts +1 -1
  265. package/src/workspace/table/payload.ts +1 -1
  266. package/src/workspace/table/table.spec.ts +1 -1
  267. package/src/workspace/workspace.spec.ts +1 -1
  268. package/vite.config.ts +1 -1
@@ -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.
@@ -13,13 +13,14 @@ import { type CrudeTimeRange, csv, runtime } from "@synnaxlabs/x";
13
13
  import { type channel } from "@/channel";
14
14
  import { UnexpectedError } from "@/errors";
15
15
  import { type Frame } from "@/framer/frame";
16
- import { Iterator } from "@/framer/iterator";
16
+ import { Iterator, type IteratorConfig } from "@/framer/iterator";
17
17
 
18
18
  export interface ReadRequest {
19
19
  channels: channel.Params;
20
20
  timeRange: CrudeTimeRange;
21
- channelNames?: Map<channel.KeyOrName, string>;
21
+ channelNames?: Record<channel.KeyOrName, string>;
22
22
  responseType: "csv";
23
+ iteratorConfig?: IteratorConfig;
23
24
  }
24
25
 
25
26
  export class Reader {
@@ -32,7 +33,12 @@ export class Reader {
32
33
  }
33
34
 
34
35
  async read(request: ReadRequest): Promise<ReadableStream<Uint8Array>> {
35
- const { channels: channelParams, timeRange, channelNames } = request;
36
+ const {
37
+ channels: channelParams,
38
+ timeRange,
39
+ channelNames,
40
+ iteratorConfig,
41
+ } = request;
36
42
  const channelPayloads = await this.retriever.retrieve(channelParams);
37
43
  const allKeys = new Set<channel.Key>();
38
44
  channelPayloads.forEach((ch) => {
@@ -51,6 +57,7 @@ export class Reader {
51
57
  Array.from(allKeys),
52
58
  this.retriever,
53
59
  this.streamClient,
60
+ iteratorConfig,
54
61
  );
55
62
  return createCSVReadableStream({
56
63
  iterator,
@@ -63,7 +70,7 @@ export class Reader {
63
70
  interface CreateCSVExportStreamParams {
64
71
  iterator: Iterator;
65
72
  channelPayloads: channel.Payload[];
66
- headers?: Map<channel.KeyOrName, string>;
73
+ headers?: Record<channel.KeyOrName, string>;
67
74
  }
68
75
 
69
76
  const createCSVReadableStream = ({
@@ -219,7 +226,7 @@ interface ColumnMetaResult {
219
226
  const buildColumnMeta = (
220
227
  channels: channel.Payload[],
221
228
  groups: Map<channel.Key, channel.Keys>,
222
- headers?: Map<channel.KeyOrName, string>,
229
+ headers?: Record<channel.KeyOrName, string>,
223
230
  ): ColumnMetaResult => {
224
231
  const channelMap = new Map(channels.map((ch) => [ch.key, ch]));
225
232
  const columns: ColumnMeta[] = [];
@@ -233,7 +240,7 @@ const buildColumnMeta = (
233
240
  if (ch == null) throw new UnexpectedError(`Channel ${key} not found`);
234
241
  const meta: ColumnMeta = {
235
242
  key,
236
- header: headers?.get(key) ?? headers?.get(ch.name) ?? ch.name,
243
+ header: headers?.[key] ?? headers?.[ch.name] ?? ch.name,
237
244
  };
238
245
  columns.push(meta);
239
246
  groupColumns.push(meta);
@@ -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.
@@ -389,7 +389,6 @@ describe("Streamer", () => {
389
389
  dataType: DataType.FLOAT64,
390
390
  virtual: true,
391
391
  expression: `return ${channelA.name} + ${channelB.name}`,
392
- requires: [channelA.key, channelB.key],
393
392
  });
394
393
 
395
394
  const streamer = await client.openStreamer(calcChannel.key);
@@ -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.
@@ -74,7 +74,7 @@ type ParsedStreamerConfig = z.output<typeof streamerConfigZ>;
74
74
  * resources. We recommend using the streamer within a try-finally block to ensure
75
75
  * that it is closed properly in the event of an error.
76
76
  *
77
- * For details documentation, see https://docs.synnaxlabs.com/reference/typescript-client/stream-data
77
+ * For detailed documentation, see https://docs.synnaxlabs.com/reference/client/working-with-data/streaming-data
78
78
  */
79
79
  export interface Streamer extends AsyncIterator<Frame>, AsyncIterable<Frame> {
80
80
  /** The keys of the channels currently being streamed from. */
@@ -111,7 +111,7 @@ export const createStreamOpener =
111
111
  if (cfg.useHighPerformanceCodec)
112
112
  client = client.withCodec(new WSStreamerCodec(adapter.codec));
113
113
  const stream = await client.stream("/frame/stream", reqZ, resZ);
114
- const streamer = new CoreStreamer(
114
+ const streamer = new BaseStreamer(
115
115
  stream,
116
116
  adapter,
117
117
  cfg.downsampleFactor,
@@ -140,7 +140,7 @@ export const openStreamer = async (
140
140
  config: StreamerConfig,
141
141
  ): Promise<Streamer> => await createStreamOpener(retriever, client)(config);
142
142
 
143
- class CoreStreamer implements Streamer {
143
+ class BaseStreamer implements Streamer {
144
144
  private readonly stream: StreamProxy<typeof reqZ, typeof resZ>;
145
145
  private readonly adapter: ReadAdapter;
146
146
  private readonly downsampleFactor: number;
@@ -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/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.
@@ -45,6 +45,7 @@ export { task } from "@/task";
45
45
  export { createTestClientWithPolicy } from "@/testutil/access";
46
46
  export { createTestClient, TEST_CLIENT_PARAMS } from "@/testutil/client";
47
47
  export { user } from "@/user";
48
+ export { view } from "@/view";
48
49
  export { workspace } from "@/workspace";
49
50
  export { lineplot } from "@/workspace/lineplot";
50
51
  export { log } from "@/workspace/log";
@@ -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.
@@ -37,15 +37,14 @@ const retrieveReqZ = z.object({
37
37
  });
38
38
  export interface RetrieveRequest extends z.infer<typeof retrieveReqZ> {}
39
39
 
40
- export interface RetrieveOptions
41
- extends Pick<
42
- RetrieveRequest,
43
- "excludeFieldData" | "types" | "children" | "parents"
44
- > {}
40
+ export interface RetrieveOptions extends Pick<
41
+ RetrieveRequest,
42
+ "excludeFieldData" | "types" | "children" | "parents"
43
+ > {}
45
44
 
46
45
  const retrieveResZ = z.object({ resources: resourceZ.array() });
47
46
 
48
- /** The core client class for executing queries against a Synnax cluster ontology */
47
+ /** The main client class for executing queries against a Synnax cluster ontology */
49
48
  export class Client {
50
49
  readonly type: string = "ontology";
51
50
  groups: group.Client;
@@ -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.
@@ -43,6 +43,7 @@ export const resourceTypeZ = z.enum([
43
43
  "arc",
44
44
  "schematic_symbol",
45
45
  "status",
46
+ "view",
46
47
  ]);
47
48
  export type ResourceType = z.infer<typeof resourceTypeZ>;
48
49
 
@@ -103,8 +104,10 @@ export const resourceZ = z
103
104
  data: record.unknownZ.optional().nullable(),
104
105
  })
105
106
  .transform((resource) => ({ key: idToString(resource.id), ...resource }));
106
- export interface Resource<T extends record.Unknown = record.Unknown>
107
- extends Omit<z.infer<typeof resourceZ>, "data"> {
107
+ export interface Resource<T extends record.Unknown = record.Unknown> extends Omit<
108
+ z.infer<typeof resourceZ>,
109
+ "data"
110
+ > {
108
111
  data?: T | null;
109
112
  }
110
113
 
@@ -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.
package/src/rack/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.
@@ -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.
package/src/ranger/kv.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.
@@ -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.
@@ -66,11 +66,15 @@ export interface TaskExecuteCommandSyncParams extends TaskExecuteCommandParams {
66
66
  timeout?: CrudeTimeSpan;
67
67
  }
68
68
 
69
- export interface ExecuteCommandsSyncParams<StatusData extends z.ZodType>
70
- extends Omit<ExecuteCommandsSyncInternalParams<StatusData>, "frameClient" | "name"> {}
69
+ export interface ExecuteCommandsSyncParams<StatusData extends z.ZodType> extends Omit<
70
+ ExecuteCommandsSyncInternalParams<StatusData>,
71
+ "frameClient" | "name"
72
+ > {}
71
73
 
72
- export interface ExecuteCommandSyncParams<StatusData extends z.ZodType>
73
- extends Omit<ExecuteCommandSyncInternalParams<StatusData>, "frameClient" | "name"> {}
74
+ export interface ExecuteCommandSyncParams<StatusData extends z.ZodType> extends Omit<
75
+ ExecuteCommandSyncInternalParams<StatusData>,
76
+ "frameClient" | "name"
77
+ > {}
74
78
 
75
79
  export class Task<
76
80
  Type extends z.ZodLiteral<string> = z.ZodLiteral<string>,
@@ -558,7 +562,8 @@ const executeCommands = async ({
558
562
  };
559
563
 
560
564
  interface ExecuteCommandSyncInternalParams<StatusData extends z.ZodType = z.ZodType>
561
- extends Omit<ExecuteCommandsSyncInternalParams<StatusData>, "commands">,
565
+ extends
566
+ Omit<ExecuteCommandsSyncInternalParams<StatusData>, "commands">,
562
567
  TaskExecuteCommandSyncParams {
563
568
  task: Key;
564
569
  }
@@ -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/task/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.