@synnaxlabs/client 0.20.0 → 0.22.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 (262) hide show
  1. package/.turbo/turbo-build.log +7 -7
  2. package/.vscode/settings.json +3 -0
  3. package/README.md +13 -0
  4. package/dist/auth/auth.d.ts +7 -6
  5. package/dist/auth/auth.d.ts.map +1 -1
  6. package/dist/channel/client.d.ts +14 -11
  7. package/dist/channel/client.d.ts.map +1 -1
  8. package/dist/channel/creator.d.ts +10 -0
  9. package/dist/channel/creator.d.ts.map +1 -0
  10. package/dist/channel/payload.d.ts +6 -2
  11. package/dist/channel/payload.d.ts.map +1 -1
  12. package/dist/channel/retriever.d.ts +65 -35
  13. package/dist/channel/retriever.d.ts.map +1 -1
  14. package/dist/channel/writer.d.ts +4 -3
  15. package/dist/client.cjs +19 -22
  16. package/dist/client.cjs.map +1 -1
  17. package/dist/client.d.ts +12 -10
  18. package/dist/client.d.ts.map +1 -1
  19. package/dist/client.js +6781 -6675
  20. package/dist/client.js.map +1 -1
  21. package/dist/connection/checker.d.ts +4 -3
  22. package/dist/connection/checker.d.ts.map +1 -1
  23. package/dist/control/authority.d.ts +2 -1
  24. package/dist/control/state.d.ts +6 -4
  25. package/dist/control/state.d.ts.map +1 -1
  26. package/dist/errors.d.ts +24 -20
  27. package/dist/errors.d.ts.map +1 -1
  28. package/dist/framer/adapter.d.ts +5 -4
  29. package/dist/framer/adapter.d.ts.map +1 -1
  30. package/dist/framer/client.d.ts +12 -12
  31. package/dist/framer/client.d.ts.map +1 -1
  32. package/dist/framer/frame.d.ts +13 -12
  33. package/dist/framer/frame.d.ts.map +1 -1
  34. package/dist/framer/iterator.d.ts +5 -4
  35. package/dist/framer/iterator.d.ts.map +1 -1
  36. package/dist/framer/streamProxy.d.ts +3 -2
  37. package/dist/framer/streamProxy.d.ts.map +1 -1
  38. package/dist/framer/streamer.d.ts +13 -4
  39. package/dist/framer/streamer.d.ts.map +1 -1
  40. package/dist/framer/writer.d.ts +67 -33
  41. package/dist/framer/writer.d.ts.map +1 -1
  42. package/dist/hardware/client.d.ts +4 -3
  43. package/dist/hardware/device/client.d.ts +107 -14
  44. package/dist/hardware/device/client.d.ts.map +1 -1
  45. package/dist/hardware/device/external.d.ts +0 -2
  46. package/dist/hardware/device/external.d.ts.map +1 -1
  47. package/dist/hardware/device/index.d.ts +1 -1
  48. package/dist/hardware/device/index.d.ts.map +1 -1
  49. package/dist/hardware/rack/client.d.ts +43 -20
  50. package/dist/hardware/rack/client.d.ts.map +1 -1
  51. package/dist/hardware/rack/external.d.ts +0 -2
  52. package/dist/hardware/rack/external.d.ts.map +1 -1
  53. package/dist/hardware/task/client.d.ts +197 -14
  54. package/dist/hardware/task/client.d.ts.map +1 -1
  55. package/dist/hardware/task/index.d.ts +1 -1
  56. package/dist/hardware/task/index.d.ts.map +1 -1
  57. package/dist/index.d.ts +4 -3
  58. package/dist/index.d.ts.map +1 -1
  59. package/dist/label/client.d.ts +8 -6
  60. package/dist/label/client.d.ts.map +1 -1
  61. package/dist/label/payload.d.ts +2 -1
  62. package/dist/label/retriever.d.ts +3 -2
  63. package/dist/label/writer.d.ts +4 -3
  64. package/dist/ontology/client.d.ts +82 -14
  65. package/dist/ontology/client.d.ts.map +1 -1
  66. package/dist/ontology/external.d.ts +0 -1
  67. package/dist/ontology/external.d.ts.map +1 -1
  68. package/dist/ontology/group/client.d.ts +3 -2
  69. package/dist/ontology/group/client.d.ts.map +1 -1
  70. package/dist/ontology/group/group.d.ts +1 -0
  71. package/dist/ontology/group/payload.d.ts +2 -1
  72. package/dist/ontology/group/writer.d.ts +4 -3
  73. package/dist/ontology/payload.d.ts +71 -60
  74. package/dist/ontology/payload.d.ts.map +1 -1
  75. package/dist/ontology/writer.d.ts +3 -2
  76. package/dist/ranger/active.d.ts +3 -2
  77. package/dist/ranger/alias.d.ts +7 -6
  78. package/dist/ranger/alias.d.ts.map +1 -1
  79. package/dist/ranger/client.d.ts +162 -11
  80. package/dist/ranger/client.d.ts.map +1 -1
  81. package/dist/ranger/external.d.ts +0 -1
  82. package/dist/ranger/external.d.ts.map +1 -1
  83. package/dist/ranger/kv.d.ts +5 -3
  84. package/dist/ranger/kv.d.ts.map +1 -1
  85. package/dist/ranger/payload.d.ts +57 -50
  86. package/dist/ranger/payload.d.ts.map +1 -1
  87. package/dist/ranger/range.d.ts +12 -10
  88. package/dist/ranger/range.d.ts.map +1 -1
  89. package/dist/ranger/writer.d.ts +3 -2
  90. package/dist/setupspecs.d.ts +2 -1
  91. package/dist/signals/observable.d.ts +8 -15
  92. package/dist/signals/observable.d.ts.map +1 -1
  93. package/dist/transport.d.ts +3 -2
  94. package/dist/transport.d.ts.map +1 -1
  95. package/dist/user/payload.d.ts +2 -1
  96. package/dist/util/retrieve.d.ts +24 -0
  97. package/dist/util/retrieve.d.ts.map +1 -0
  98. package/dist/util/retrieve.spec.d.ts +2 -0
  99. package/dist/util/retrieve.spec.d.ts.map +1 -0
  100. package/dist/util/telem.d.ts +2 -1
  101. package/dist/util/telem.d.ts.map +1 -1
  102. package/dist/util/zod.d.ts +4 -0
  103. package/dist/util/zod.d.ts.map +1 -0
  104. package/dist/workspace/client.d.ts +9 -6
  105. package/dist/workspace/client.d.ts.map +1 -1
  106. package/dist/workspace/lineplot/client.d.ts +6 -5
  107. package/dist/workspace/lineplot/client.d.ts.map +1 -1
  108. package/dist/workspace/lineplot/payload.d.ts +3 -2
  109. package/dist/workspace/lineplot/payload.d.ts.map +1 -1
  110. package/dist/workspace/lineplot/retriever.d.ts +3 -2
  111. package/dist/workspace/lineplot/retriever.d.ts.map +1 -1
  112. package/dist/workspace/lineplot/writer.d.ts +7 -6
  113. package/dist/workspace/lineplot/writer.d.ts.map +1 -1
  114. package/dist/workspace/payload.d.ts +3 -2
  115. package/dist/workspace/payload.d.ts.map +1 -1
  116. package/dist/workspace/retriever.d.ts +3 -2
  117. package/dist/workspace/schematic/client.d.ts +18 -0
  118. package/dist/workspace/schematic/client.d.ts.map +1 -0
  119. package/dist/workspace/schematic/external.d.ts.map +1 -0
  120. package/dist/workspace/schematic/index.d.ts +2 -0
  121. package/dist/workspace/schematic/index.d.ts.map +1 -0
  122. package/dist/workspace/{pid → schematic}/payload.d.ts +6 -5
  123. package/dist/workspace/schematic/payload.d.ts.map +1 -0
  124. package/dist/workspace/schematic/retriever.d.ts +10 -0
  125. package/dist/workspace/schematic/retriever.d.ts.map +1 -0
  126. package/dist/workspace/schematic/schematic.spec.d.ts +2 -0
  127. package/dist/workspace/schematic/schematic.spec.d.ts.map +1 -0
  128. package/dist/workspace/{pid → schematic}/writer.d.ts +11 -10
  129. package/dist/workspace/schematic/writer.d.ts.map +1 -0
  130. package/dist/workspace/writer.d.ts +5 -4
  131. package/dist/workspace/writer.d.ts.map +1 -1
  132. package/examples/node/package-lock.json +29 -12
  133. package/examples/node/package.json +2 -2
  134. package/examples/node/streamWrite.js +8 -11
  135. package/package.json +10 -9
  136. package/src/auth/auth.spec.ts +55 -15
  137. package/src/auth/auth.ts +41 -42
  138. package/src/channel/batchRetriever.spec.ts +37 -40
  139. package/src/channel/channel.spec.ts +4 -4
  140. package/src/channel/client.ts +42 -49
  141. package/src/channel/creator.ts +37 -0
  142. package/src/channel/payload.ts +2 -1
  143. package/src/channel/retriever.ts +55 -71
  144. package/src/client.ts +23 -20
  145. package/src/connection/checker.ts +1 -1
  146. package/src/connection/connection.spec.ts +1 -6
  147. package/src/control/state.ts +3 -1
  148. package/src/errors.ts +71 -67
  149. package/src/framer/adapter.spec.ts +33 -1
  150. package/src/framer/adapter.ts +10 -6
  151. package/src/framer/client.ts +13 -12
  152. package/src/framer/frame.spec.ts +1 -1
  153. package/src/framer/frame.ts +9 -6
  154. package/src/framer/iterator.spec.ts +1 -1
  155. package/src/framer/iterator.ts +1 -1
  156. package/src/framer/streamProxy.ts +12 -13
  157. package/src/framer/streamer.spec.ts +1 -1
  158. package/src/framer/streamer.ts +25 -1
  159. package/src/framer/writer.spec.ts +49 -2
  160. package/src/framer/writer.ts +27 -2
  161. package/src/hardware/device/client.ts +155 -28
  162. package/src/hardware/device/device.spec.ts +2 -2
  163. package/src/hardware/device/external.ts +0 -2
  164. package/src/hardware/device/index.ts +2 -2
  165. package/src/hardware/rack/client.ts +139 -56
  166. package/src/hardware/rack/external.ts +0 -2
  167. package/src/hardware/rack/rack.spec.ts +20 -1
  168. package/src/hardware/task/client.ts +324 -31
  169. package/src/hardware/task/index.ts +1 -1
  170. package/src/hardware/task/task.spec.ts +41 -0
  171. package/src/index.ts +3 -4
  172. package/src/label/client.ts +3 -2
  173. package/src/label/retriever.ts +1 -1
  174. package/src/label/writer.ts +1 -1
  175. package/src/ontology/client.ts +195 -41
  176. package/src/ontology/external.ts +0 -1
  177. package/src/ontology/group/client.ts +1 -2
  178. package/src/ontology/group/payload.ts +1 -1
  179. package/src/ontology/ontology.spec.ts +16 -0
  180. package/src/ontology/payload.ts +22 -13
  181. package/src/ranger/active.ts +5 -5
  182. package/src/ranger/alias.ts +2 -2
  183. package/src/ranger/client.ts +68 -17
  184. package/src/ranger/external.ts +0 -1
  185. package/src/ranger/kv.ts +6 -1
  186. package/src/ranger/payload.ts +6 -4
  187. package/src/ranger/range.ts +4 -1
  188. package/src/ranger/ranger.spec.ts +24 -2
  189. package/src/signals/observable.ts +24 -63
  190. package/src/transport.ts +2 -1
  191. package/src/util/retrieve.spec.ts +56 -0
  192. package/src/util/retrieve.ts +103 -0
  193. package/src/util/telem.ts +1 -1
  194. package/src/util/zod.ts +4 -0
  195. package/src/workspace/client.ts +6 -4
  196. package/src/workspace/lineplot/client.ts +3 -3
  197. package/src/workspace/lineplot/linePlot.spec.ts +11 -11
  198. package/src/workspace/lineplot/payload.ts +1 -1
  199. package/src/workspace/lineplot/retriever.ts +5 -13
  200. package/src/workspace/lineplot/writer.ts +8 -7
  201. package/src/workspace/payload.ts +6 -3
  202. package/src/workspace/retriever.ts +1 -1
  203. package/src/workspace/{pid → schematic}/client.ts +10 -10
  204. package/src/workspace/{pid → schematic}/external.ts +2 -2
  205. package/src/workspace/{pid → schematic}/index.ts +1 -1
  206. package/src/workspace/{pid → schematic}/payload.ts +4 -4
  207. package/src/workspace/{pid → schematic}/retriever.ts +10 -10
  208. package/src/workspace/{pid/pid.spec.ts → schematic/schematic.spec.ts} +35 -35
  209. package/src/workspace/{pid → schematic}/writer.ts +26 -25
  210. package/src/workspace/workspace.spec.ts +7 -7
  211. package/src/workspace/writer.ts +8 -2
  212. package/dist/hardware/device/payload.d.ts +0 -30
  213. package/dist/hardware/device/payload.d.ts.map +0 -1
  214. package/dist/hardware/device/retriever.d.ts +0 -10
  215. package/dist/hardware/device/retriever.d.ts.map +0 -1
  216. package/dist/hardware/device/writer.d.ts +0 -9
  217. package/dist/hardware/device/writer.d.ts.map +0 -1
  218. package/dist/hardware/rack/payload.d.ts +0 -26
  219. package/dist/hardware/rack/payload.d.ts.map +0 -1
  220. package/dist/hardware/rack/retriever.d.ts +0 -10
  221. package/dist/hardware/rack/retriever.d.ts.map +0 -1
  222. package/dist/hardware/rack/writer.d.ts +0 -9
  223. package/dist/hardware/rack/writer.d.ts.map +0 -1
  224. package/dist/hardware/task/external.d.ts +0 -4
  225. package/dist/hardware/task/external.d.ts.map +0 -1
  226. package/dist/hardware/task/payload.d.ts +0 -42
  227. package/dist/hardware/task/payload.d.ts.map +0 -1
  228. package/dist/hardware/task/retriever.d.ts +0 -29
  229. package/dist/hardware/task/retriever.d.ts.map +0 -1
  230. package/dist/hardware/task/writer.d.ts +0 -9
  231. package/dist/hardware/task/writer.d.ts.map +0 -1
  232. package/dist/ontology/retriever.d.ts +0 -13
  233. package/dist/ontology/retriever.d.ts.map +0 -1
  234. package/dist/ontology/signals.d.ts +0 -30
  235. package/dist/ontology/signals.d.ts.map +0 -1
  236. package/dist/ranger/retriever.d.ts +0 -11
  237. package/dist/ranger/retriever.d.ts.map +0 -1
  238. package/dist/workspace/pid/client.d.ts +0 -17
  239. package/dist/workspace/pid/client.d.ts.map +0 -1
  240. package/dist/workspace/pid/external.d.ts.map +0 -1
  241. package/dist/workspace/pid/index.d.ts +0 -2
  242. package/dist/workspace/pid/index.d.ts.map +0 -1
  243. package/dist/workspace/pid/payload.d.ts.map +0 -1
  244. package/dist/workspace/pid/pid.spec.d.ts +0 -2
  245. package/dist/workspace/pid/pid.spec.d.ts.map +0 -1
  246. package/dist/workspace/pid/retriever.d.ts +0 -9
  247. package/dist/workspace/pid/retriever.d.ts.map +0 -1
  248. package/dist/workspace/pid/writer.d.ts.map +0 -1
  249. package/src/hardware/device/payload.ts +0 -27
  250. package/src/hardware/device/retriever.ts +0 -60
  251. package/src/hardware/device/writer.ts +0 -59
  252. package/src/hardware/rack/payload.ts +0 -26
  253. package/src/hardware/rack/retriever.ts +0 -68
  254. package/src/hardware/rack/writer.ts +0 -59
  255. package/src/hardware/task/external.ts +0 -12
  256. package/src/hardware/task/payload.ts +0 -40
  257. package/src/hardware/task/retriever.ts +0 -70
  258. package/src/hardware/task/writer.ts +0 -65
  259. package/src/ontology/retriever.ts +0 -91
  260. package/src/ontology/signals.ts +0 -139
  261. package/src/ranger/retriever.ts +0 -50
  262. /package/dist/workspace/{pid → schematic}/external.d.ts +0 -0
@@ -1,32 +1,41 @@
1
- import { z } from "zod";
2
- declare const resourceTypeZ: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"pid">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">]>;
1
+ import { z } from 'zod';
2
+ import { change } from '@synnaxlabs/x';
3
+
4
+ export type ResourceChange = change.Change<ID, Resource>;
5
+ export type ResourceSet = change.Set<ID, Resource>;
6
+ export type ResourceDelete = change.Delete<ID, Resource>;
7
+ export type RelationshipChange = change.Change<Relationship, undefined>;
8
+ export type RelationshipSet = change.Set<Relationship, undefined>;
9
+ export type RelationshipDelete = change.Delete<Relationship, undefined>;
10
+ declare const resourceTypeZ: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">]>;
3
11
  export type ResourceType = z.infer<typeof resourceTypeZ>;
4
12
  export declare const idZ: z.ZodObject<{
5
- type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"pid">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">]>;
13
+ type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">]>;
6
14
  key: z.ZodString;
7
15
  }, "strip", z.ZodTypeAny, {
8
16
  key: string;
9
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
17
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
10
18
  }, {
11
19
  key: string;
12
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
20
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
13
21
  }>;
22
+ export type IDPayload = z.infer<typeof idZ>;
14
23
  export declare const stringIDZ: z.ZodEffects<z.ZodString, {
15
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
24
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
16
25
  key: string;
17
26
  }, string>;
18
27
  export declare const crudeIDZ: z.ZodUnion<[z.ZodEffects<z.ZodString, {
19
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
28
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
20
29
  key: string;
21
30
  }, string>, z.ZodObject<{
22
- type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"pid">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">]>;
31
+ type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">]>;
23
32
  key: z.ZodString;
24
33
  }, "strip", z.ZodTypeAny, {
25
34
  key: string;
26
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
35
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
27
36
  }, {
28
37
  key: string;
29
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
38
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
30
39
  }>]>;
31
40
  export declare class ID {
32
41
  type: ResourceType;
@@ -35,20 +44,20 @@ export declare class ID {
35
44
  toString(): string;
36
45
  get payload(): z.infer<typeof idZ>;
37
46
  static readonly z: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodString, {
38
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
47
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
39
48
  key: string;
40
49
  }, string>, z.ZodObject<{
41
- type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"pid">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">]>;
50
+ type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">]>;
42
51
  key: z.ZodString;
43
52
  }, "strip", z.ZodTypeAny, {
44
53
  key: string;
45
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
54
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
46
55
  }, {
47
56
  key: string;
48
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
57
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
49
58
  }>]>, z.ZodType<ID, z.ZodTypeDef, ID>]>, ID, string | ID | {
50
59
  key: string;
51
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
60
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
52
61
  }>;
53
62
  }
54
63
  export declare const Root: ID;
@@ -61,7 +70,7 @@ export declare const schemaFieldZ: z.ZodObject<{
61
70
  }>;
62
71
  export type SchemaField = z.infer<typeof schemaFieldZ>;
63
72
  export declare const schemaZ: z.ZodObject<{
64
- type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"pid">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">]>;
73
+ type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">]>;
65
74
  fields: z.ZodRecord<z.ZodString, z.ZodObject<{
66
75
  type: z.ZodNumber;
67
76
  }, "strip", z.ZodTypeAny, {
@@ -70,12 +79,12 @@ export declare const schemaZ: z.ZodObject<{
70
79
  type: number;
71
80
  }>>;
72
81
  }, "strip", z.ZodTypeAny, {
73
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
82
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
74
83
  fields: Record<string, {
75
84
  type: number;
76
85
  }>;
77
86
  }, {
78
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
87
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
79
88
  fields: Record<string, {
80
89
  type: number;
81
90
  }>;
@@ -83,24 +92,24 @@ export declare const schemaZ: z.ZodObject<{
83
92
  export type Schema = z.infer<typeof schemaZ>;
84
93
  export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
85
94
  id: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodString, {
86
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
95
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
87
96
  key: string;
88
97
  }, string>, z.ZodObject<{
89
- type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"pid">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">]>;
98
+ type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">]>;
90
99
  key: z.ZodString;
91
100
  }, "strip", z.ZodTypeAny, {
92
101
  key: string;
93
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
102
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
94
103
  }, {
95
104
  key: string;
96
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
105
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
97
106
  }>]>, z.ZodType<ID, z.ZodTypeDef, ID>]>, ID, string | ID | {
98
107
  key: string;
99
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
108
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
100
109
  }>;
101
110
  name: z.ZodString;
102
- schema: z.ZodOptional<z.ZodObject<{
103
- type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"pid">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">]>;
111
+ schema: z.ZodNullable<z.ZodOptional<z.ZodObject<{
112
+ type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">]>;
104
113
  fields: z.ZodRecord<z.ZodString, z.ZodObject<{
105
114
  type: z.ZodNumber;
106
115
  }, "strip", z.ZodTypeAny, {
@@ -109,105 +118,107 @@ export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
109
118
  type: number;
110
119
  }>>;
111
120
  }, "strip", z.ZodTypeAny, {
112
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
121
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
113
122
  fields: Record<string, {
114
123
  type: number;
115
124
  }>;
116
125
  }, {
117
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
126
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
118
127
  fields: Record<string, {
119
128
  type: number;
120
129
  }>;
121
- }>>;
122
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
130
+ }>>>;
131
+ data: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
123
132
  }, "strip", z.ZodTypeAny, {
124
133
  name: string;
125
134
  id: ID;
126
135
  schema?: {
127
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
136
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
128
137
  fields: Record<string, {
129
138
  type: number;
130
139
  }>;
131
- } | undefined;
132
- data?: Record<string, unknown> | undefined;
140
+ } | null | undefined;
141
+ data?: Record<string, unknown> | null | undefined;
133
142
  }, {
134
143
  name: string;
135
144
  id: (string | ID | {
136
145
  key: string;
137
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
146
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
138
147
  }) & (string | ID | {
139
148
  key: string;
140
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
149
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
141
150
  } | undefined);
142
151
  schema?: {
143
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
152
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
144
153
  fields: Record<string, {
145
154
  type: number;
146
155
  }>;
147
- } | undefined;
148
- data?: Record<string, unknown> | undefined;
156
+ } | null | undefined;
157
+ data?: Record<string, unknown> | null | undefined;
149
158
  }>, {
150
159
  name: string;
151
160
  id: ID;
152
161
  schema?: {
153
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
162
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
154
163
  fields: Record<string, {
155
164
  type: number;
156
165
  }>;
157
- } | undefined;
158
- data?: Record<string, unknown> | undefined;
166
+ } | null | undefined;
167
+ data?: Record<string, unknown> | null | undefined;
159
168
  key: string;
160
169
  }, {
161
170
  name: string;
162
171
  id: (string | ID | {
163
172
  key: string;
164
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
173
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
165
174
  }) & (string | ID | {
166
175
  key: string;
167
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
176
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
168
177
  } | undefined);
169
178
  schema?: {
170
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
179
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
171
180
  fields: Record<string, {
172
181
  type: number;
173
182
  }>;
174
- } | undefined;
175
- data?: Record<string, unknown> | undefined;
183
+ } | null | undefined;
184
+ data?: Record<string, unknown> | null | undefined;
176
185
  }>;
177
- export type Resource = z.infer<typeof resourceSchemaZ>;
186
+ export type Resource<T extends {} = {}> = Omit<z.output<typeof resourceSchemaZ>, "data"> & {
187
+ data?: T | null;
188
+ };
178
189
  export declare const relationshipSchemaZ: z.ZodObject<{
179
190
  from: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodString, {
180
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
191
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
181
192
  key: string;
182
193
  }, string>, z.ZodObject<{
183
- type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"pid">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">]>;
194
+ type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">]>;
184
195
  key: z.ZodString;
185
196
  }, "strip", z.ZodTypeAny, {
186
197
  key: string;
187
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
198
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
188
199
  }, {
189
200
  key: string;
190
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
201
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
191
202
  }>]>, z.ZodType<ID, z.ZodTypeDef, ID>]>, ID, string | ID | {
192
203
  key: string;
193
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
204
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
194
205
  }>;
195
206
  type: z.ZodString;
196
207
  to: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodString, {
197
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
208
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
198
209
  key: string;
199
210
  }, string>, z.ZodObject<{
200
- type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"pid">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">]>;
211
+ type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">]>;
201
212
  key: z.ZodString;
202
213
  }, "strip", z.ZodTypeAny, {
203
214
  key: string;
204
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
215
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
205
216
  }, {
206
217
  key: string;
207
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
218
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
208
219
  }>]>, z.ZodType<ID, z.ZodTypeDef, ID>]>, ID, string | ID | {
209
220
  key: string;
210
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
221
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
211
222
  }>;
212
223
  }, "strip", z.ZodTypeAny, {
213
224
  type: string;
@@ -217,17 +228,17 @@ export declare const relationshipSchemaZ: z.ZodObject<{
217
228
  type: string;
218
229
  from: (string | ID | {
219
230
  key: string;
220
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
231
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
221
232
  }) & (string | ID | {
222
233
  key: string;
223
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
234
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
224
235
  } | undefined);
225
236
  to: (string | ID | {
226
237
  key: string;
227
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
238
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
228
239
  }) & (string | ID | {
229
240
  key: string;
230
- type: "user" | "cluster" | "rack" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
241
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
231
242
  } | undefined);
232
243
  }>;
233
244
  export type Relationship = z.infer<typeof relationshipSchemaZ>;
@@ -1 +1 @@
1
- {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../src/ontology/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,QAAA,MAAM,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CAAC,OAAO,QAAQ,CAAC,GAAG,EAAE;IAc/C,QAAQ,IAAI,MAAM;IAIlB,IAAI,OAAO,IAAI,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,CAAC,CAKjC;IAED,MAAM,CAAC,QAAQ,CAAC,CAAC;;;;;;;;;;;;;;;OAAqE;CACvF;AAED,eAAO,MAAM,IAAI,IAA2C,CAAC;AAE7D,eAAO,MAAM,YAAY;;;;;;EAEvB,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAEvD,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;EAGlB,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC;AAE7C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYxB,CAAC;AAEL,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,EAAE,GAAG,EAAE,IAAI,IAAI,CAC5C,CAAC,CAAC,MAAM,CAAC,OAAO,eAAe,CAAC,EAChC,MAAM,CACP,GAAG;IAAE,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAA;CAAE,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI9B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAE/D,eAAO,MAAM,iBAAiB,QAAS,MAAM,KAAG,YAG/C,CAAC"}
@@ -1,5 +1,6 @@
1
- import { type UnaryClient } from "@synnaxlabs/freighter";
2
- import { type ID } from './payload';
1
+ import { ID } from './payload';
2
+ import { UnaryClient } from '@synnaxlabs/freighter';
3
+
3
4
  export declare class Writer {
4
5
  client: UnaryClient;
5
6
  constructor(client: UnaryClient);
@@ -1,5 +1,6 @@
1
- import { type UnaryClient } from "@synnaxlabs/freighter";
2
- import { type Payload, type Key } from './payload';
1
+ import { Payload, Key } from './payload';
2
+ import { UnaryClient } from '@synnaxlabs/freighter';
3
+
3
4
  export declare class Active {
4
5
  private readonly client;
5
6
  constructor(client: UnaryClient);
@@ -1,10 +1,11 @@
1
- import { type UnaryClient } from "@synnaxlabs/freighter";
2
- import { type change } from "@synnaxlabs/x";
3
- import { type channel } from '../channel';
4
- import { type Key as ChannelKey } from '../channel/payload';
5
- import { type Client as FrameClient } from '../framer/client';
6
- import { type Key } from './payload';
7
1
  import { signals } from '../signals';
2
+ import { Key } from './payload';
3
+ import { Client as FrameClient } from '../framer/client';
4
+ import { Key as ChannelKey } from '../channel/payload';
5
+ import { channel } from '../channel';
6
+ import { change } from '@synnaxlabs/x/change';
7
+ import { UnaryClient } from '@synnaxlabs/freighter';
8
+
8
9
  export declare const ALIAS_SET_NAME = "sy_range_alias_set";
9
10
  export declare const ALIAS_DELETE_NAME = "sy_range_alias_delete";
10
11
  export declare class Aliaser {
@@ -1 +1 @@
1
- {"version":3,"file":"alias.d.ts","sourceRoot":"","sources":["../../src/ranger/alias.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAG5C,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAuB,KAAK,GAAG,IAAI,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAAE,KAAK,MAAM,IAAI,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,KAAK,GAAG,EAAQ,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,eAAO,M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AAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IA8BzD,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAUvD,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IAY3C,MAAM,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAU5C,iBAAiB,IAAI,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;CAQtE;AAED,MAAM,WAAW,KAAK;IACpB,KAAK,EAAE,GAAG,CAAC;IACX,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC"}
@@ -1,32 +1,183 @@
1
- import { type UnaryClient } from "@synnaxlabs/freighter";
2
- import { type AsyncTermSearcher } from "@synnaxlabs/x";
3
- import { type Retriever as ChannelRetriever } from '../channel/retriever';
4
- import { type framer } from '../framer';
5
- import { type label } from '../label';
6
- import { type NewPayload, type Key, type Keys, type Name, type Names } from './payload';
1
+ import { CrudeTimeRange, TimeRange } from '@synnaxlabs/x';
2
+ import { z } from 'zod';
3
+ import { signals } from '../signals';
4
+ import { Writer } from './writer';
7
5
  import { Range } from './range';
8
- import { type Retriever } from './retriever';
9
- import { type Writer } from './writer';
6
+ import { NewPayload, Key, Keys, Name, Names } from './payload';
7
+ import { label } from '../label';
8
+ import { framer } from '../framer';
9
+ import { Retriever as ChannelRetriever } from '../channel/retriever';
10
+ import { AsyncTermSearcher } from '@synnaxlabs/x/search';
11
+ import { UnaryClient } from '@synnaxlabs/freighter';
12
+
13
+ declare const retrieveReqZ: z.ZodObject<{
14
+ keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
15
+ names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16
+ term: z.ZodOptional<z.ZodString>;
17
+ overlapsWith: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
18
+ start: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
19
+ value: z.ZodBigInt;
20
+ }, "strip", z.ZodTypeAny, {
21
+ value: bigint;
22
+ }, {
23
+ value: bigint;
24
+ }>, import('@synnaxlabs/x').TimeStamp, {
25
+ value: bigint;
26
+ }>, z.ZodEffects<z.ZodString, import('@synnaxlabs/x').TimeStamp, string>, z.ZodEffects<z.ZodType<Number, z.ZodTypeDef, Number>, import('@synnaxlabs/x').TimeStamp, Number>, z.ZodEffects<z.ZodNumber, import('@synnaxlabs/x').TimeStamp, number>, z.ZodType<import('@synnaxlabs/x').TimeStamp, z.ZodTypeDef, import('@synnaxlabs/x').TimeStamp>]>;
27
+ end: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
28
+ value: z.ZodBigInt;
29
+ }, "strip", z.ZodTypeAny, {
30
+ value: bigint;
31
+ }, {
32
+ value: bigint;
33
+ }>, import('@synnaxlabs/x').TimeStamp, {
34
+ value: bigint;
35
+ }>, z.ZodEffects<z.ZodString, import('@synnaxlabs/x').TimeStamp, string>, z.ZodEffects<z.ZodType<Number, z.ZodTypeDef, Number>, import('@synnaxlabs/x').TimeStamp, Number>, z.ZodEffects<z.ZodNumber, import('@synnaxlabs/x').TimeStamp, number>, z.ZodType<import('@synnaxlabs/x').TimeStamp, z.ZodTypeDef, import('@synnaxlabs/x').TimeStamp>]>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ start: import('@synnaxlabs/x').TimeStamp;
38
+ end: import('@synnaxlabs/x').TimeStamp;
39
+ }, {
40
+ start: string | number | Number | import('@synnaxlabs/x').TimeStamp | (string & Number) | (string & import('@synnaxlabs/x').TimeStamp) | (number & Number) | (number & import('@synnaxlabs/x').TimeStamp) | (Number & string) | (Number & number) | (Number & import('@synnaxlabs/x').TimeStamp) | (import('@synnaxlabs/x').TimeStamp & string) | (import('@synnaxlabs/x').TimeStamp & number) | (import('@synnaxlabs/x').TimeStamp & Number) | (string & {
41
+ value: bigint;
42
+ }) | (number & {
43
+ value: bigint;
44
+ }) | (Number & {
45
+ value: bigint;
46
+ }) | ({
47
+ value: bigint;
48
+ } & string) | ({
49
+ value: bigint;
50
+ } & number) | ({
51
+ value: bigint;
52
+ } & Number) | ({
53
+ value: bigint;
54
+ } & {
55
+ value: bigint;
56
+ });
57
+ end: string | number | Number | import('@synnaxlabs/x').TimeStamp | (string & Number) | (string & import('@synnaxlabs/x').TimeStamp) | (number & Number) | (number & import('@synnaxlabs/x').TimeStamp) | (Number & string) | (Number & number) | (Number & import('@synnaxlabs/x').TimeStamp) | (import('@synnaxlabs/x').TimeStamp & string) | (import('@synnaxlabs/x').TimeStamp & number) | (import('@synnaxlabs/x').TimeStamp & Number) | (string & {
58
+ value: bigint;
59
+ }) | (number & {
60
+ value: bigint;
61
+ }) | (Number & {
62
+ value: bigint;
63
+ }) | ({
64
+ value: bigint;
65
+ } & string) | ({
66
+ value: bigint;
67
+ } & number) | ({
68
+ value: bigint;
69
+ } & Number) | ({
70
+ value: bigint;
71
+ } & {
72
+ value: bigint;
73
+ });
74
+ }>, TimeRange, {
75
+ start: string | number | Number | import('@synnaxlabs/x').TimeStamp | (string & Number) | (string & import('@synnaxlabs/x').TimeStamp) | (string & {
76
+ value: bigint;
77
+ }) | (number & Number) | (number & import('@synnaxlabs/x').TimeStamp) | (number & {
78
+ value: bigint;
79
+ }) | (Number & string) | (Number & number) | (Number & import('@synnaxlabs/x').TimeStamp) | (Number & {
80
+ value: bigint;
81
+ }) | (import('@synnaxlabs/x').TimeStamp & string) | (import('@synnaxlabs/x').TimeStamp & number) | (import('@synnaxlabs/x').TimeStamp & Number) | ({
82
+ value: bigint;
83
+ } & string) | ({
84
+ value: bigint;
85
+ } & number) | ({
86
+ value: bigint;
87
+ } & Number) | ({
88
+ value: bigint;
89
+ } & {
90
+ value: bigint;
91
+ });
92
+ end: string | number | Number | import('@synnaxlabs/x').TimeStamp | (string & Number) | (string & import('@synnaxlabs/x').TimeStamp) | (number & Number) | (number & import('@synnaxlabs/x').TimeStamp) | (Number & string) | (Number & number) | (Number & import('@synnaxlabs/x').TimeStamp) | (import('@synnaxlabs/x').TimeStamp & string) | (import('@synnaxlabs/x').TimeStamp & number) | (import('@synnaxlabs/x').TimeStamp & Number) | (string & {
93
+ value: bigint;
94
+ }) | (number & {
95
+ value: bigint;
96
+ }) | (Number & {
97
+ value: bigint;
98
+ }) | ({
99
+ value: bigint;
100
+ } & string) | ({
101
+ value: bigint;
102
+ } & number) | ({
103
+ value: bigint;
104
+ } & Number) | ({
105
+ value: bigint;
106
+ } & {
107
+ value: bigint;
108
+ });
109
+ }>, z.ZodType<TimeRange, z.ZodTypeDef, TimeRange>]>>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ keys?: string[] | undefined;
112
+ names?: string[] | undefined;
113
+ term?: string | undefined;
114
+ overlapsWith?: TimeRange | undefined;
115
+ }, {
116
+ keys?: string[] | undefined;
117
+ names?: string[] | undefined;
118
+ term?: string | undefined;
119
+ overlapsWith?: TimeRange | {
120
+ start: string | number | Number | import('@synnaxlabs/x').TimeStamp | (string & Number) | (string & import('@synnaxlabs/x').TimeStamp) | (string & {
121
+ value: bigint;
122
+ }) | (number & Number) | (number & import('@synnaxlabs/x').TimeStamp) | (number & {
123
+ value: bigint;
124
+ }) | (Number & string) | (Number & number) | (Number & import('@synnaxlabs/x').TimeStamp) | (Number & {
125
+ value: bigint;
126
+ }) | (import('@synnaxlabs/x').TimeStamp & string) | (import('@synnaxlabs/x').TimeStamp & number) | (import('@synnaxlabs/x').TimeStamp & Number) | ({
127
+ value: bigint;
128
+ } & string) | ({
129
+ value: bigint;
130
+ } & number) | ({
131
+ value: bigint;
132
+ } & Number) | ({
133
+ value: bigint;
134
+ } & {
135
+ value: bigint;
136
+ });
137
+ end: string | number | Number | import('@synnaxlabs/x').TimeStamp | (string & Number) | (string & import('@synnaxlabs/x').TimeStamp) | (number & Number) | (number & import('@synnaxlabs/x').TimeStamp) | (Number & string) | (Number & number) | (Number & import('@synnaxlabs/x').TimeStamp) | (import('@synnaxlabs/x').TimeStamp & string) | (import('@synnaxlabs/x').TimeStamp & number) | (import('@synnaxlabs/x').TimeStamp & Number) | (string & {
138
+ value: bigint;
139
+ }) | (number & {
140
+ value: bigint;
141
+ }) | (Number & {
142
+ value: bigint;
143
+ }) | ({
144
+ value: bigint;
145
+ } & string) | ({
146
+ value: bigint;
147
+ } & number) | ({
148
+ value: bigint;
149
+ } & Number) | ({
150
+ value: bigint;
151
+ } & {
152
+ value: bigint;
153
+ });
154
+ } | undefined;
155
+ }>;
156
+ export type RetrieveRequest = z.infer<typeof retrieveReqZ>;
10
157
  export declare class Client implements AsyncTermSearcher<string, Key, Range> {
158
+ readonly type: string;
11
159
  private readonly frameClient;
12
- private readonly retriever;
13
160
  private readonly writer;
14
161
  private readonly unaryClient;
15
162
  private readonly channels;
16
163
  private readonly active;
17
164
  private readonly labelClient;
18
- constructor(frameClient: framer.Client, retriever: Retriever, writer: Writer, unary: UnaryClient, channels: ChannelRetriever, labelClient: label.Client);
165
+ constructor(frameClient: framer.Client, writer: Writer, unary: UnaryClient, channels: ChannelRetriever, labelClient: label.Client);
19
166
  create(range: NewPayload): Promise<Range>;
20
167
  create(ranges: NewPayload[]): Promise<Range[]>;
21
168
  rename(key: Key, name: Name): Promise<void>;
22
169
  delete(key: Key | Keys): Promise<void>;
23
170
  search(term: string): Promise<Range[]>;
24
171
  page(offset: number, limit: number): Promise<Range[]>;
172
+ retrieve(range: CrudeTimeRange): Promise<Range[]>;
25
173
  retrieve(range: Key | Name): Promise<Range>;
26
- retrieve(params: Keys | Names): Promise<Range[]>;
174
+ retrieve(range: Keys | Names): Promise<Range[]>;
175
+ private execRetrieve;
27
176
  setActive(range: Key): Promise<void>;
28
177
  retrieveActive(): Promise<Range | null>;
29
178
  clearActive(range: Key): Promise<void>;
30
179
  private sugar;
180
+ openTracker(): Promise<signals.Observable<string, Range>>;
31
181
  }
182
+ export {};
32
183
  //# sourceMappingURL=client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/ranger/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,KAAK,iBAAiB,EAAW,MAAM,eAAe,CAAC;AAEhE,OAAO,EAAE,KAAK,SAAS,IAAI,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEzE,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,SAAS,CAAC;AAIrC,OAAO,EACL,KAAK,UAAU,EACf,KAAK,GAAG,EACR,KAAK,IAAI,EACT,KAAK,IAAI,EACT,KAAK,KAAK,EAIX,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAE9C,qBAAa,MAAO,YAAW,iBAAiB,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC;IAClE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAgB;IAC5C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAY;IACtC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAc;IAC1C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAmB;IAC5C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAe;gBAGzC,WAAW,EAAE,MAAM,CAA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'./writer';
3
3
  export * from './payload';
4
4
  export * from './range';
5
- export * from './retriever';
6
5
  export type { Alias, AliasChange } from './alias';
7
6
  //# sourceMappingURL=external.d.ts.map